]> code.delx.au - gnu-emacs/blob - autogen/configure
Merge from emacs-24; up to 2012-11-13T18:57:26Z!dgutov@yandex.ru
[gnu-emacs] / autogen / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.3.50.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
179 fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200 fi
201 fi
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235 fi
236 exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254 { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263 return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334 else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351 else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356 fi # as_fn_arith
357
358
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
365 {
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370 fi
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
374
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
412
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
435 N
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
450 }
451
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
461 *)
462 ECHO_N='-n';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
471 fi
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
485 fi
486 else
487 as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
518 '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
531
532 # Name of the host.
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
537 #
538 # Initializations.
539 #
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
548
549 # Identity of this package.
550 PACKAGE_NAME='emacs'
551 PACKAGE_TARNAME='emacs'
552 PACKAGE_VERSION='24.3.50'
553 PACKAGE_STRING='emacs 24.3.50'
554 PACKAGE_BUGREPORT=''
555 PACKAGE_URL=''
556
557 ac_unique_file="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
593
594 ac_header_list=
595 ac_func_list=
596 gl_getopt_required=POSIX
597 gl_getopt_required=POSIX
598 ac_subst_vars='gltests_LTLIBOBJS
599 gltests_LIBOBJS
600 gl_LTLIBOBJS
601 gl_LIBOBJS
602 am__EXEEXT_FALSE
603 am__EXEEXT_TRUE
604 LTLIBOBJS
605 LIBOBJS
606 SUBDIR_MAKEFILES_IN
607 WINDOW_SYSTEM_OBJ
608 LIB_GCC
609 LD_FIRSTFLAG
610 LD_SWITCH_SYSTEM_TEMACS
611 LIBGNU_LTLIBDEPS
612 LIBGNU_LIBDEPS
613 gltests_WITNESS
614 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE
615 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE
616 gl_GNULIB_ENABLED_verify_FALSE
617 gl_GNULIB_ENABLED_verify_TRUE
618 gl_GNULIB_ENABLED_strtoull_FALSE
619 gl_GNULIB_ENABLED_strtoull_TRUE
620 gl_GNULIB_ENABLED_strtoll_FALSE
621 gl_GNULIB_ENABLED_strtoll_TRUE
622 gl_GNULIB_ENABLED_stat_FALSE
623 gl_GNULIB_ENABLED_stat_TRUE
624 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE
625 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE
626 gl_GNULIB_ENABLED_pathmax_FALSE
627 gl_GNULIB_ENABLED_pathmax_TRUE
628 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE
629 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE
630 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
631 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
632 gl_GNULIB_ENABLED_getgroups_FALSE
633 gl_GNULIB_ENABLED_getgroups_TRUE
634 gl_GNULIB_ENABLED_euidaccess_FALSE
635 gl_GNULIB_ENABLED_euidaccess_TRUE
636 gl_GNULIB_ENABLED_dosname_FALSE
637 gl_GNULIB_ENABLED_dosname_TRUE
638 LTLIBINTL
639 LIBINTL
640 LIB_EACCESS
641 WINDOWS_64_BIT_OFF_T
642 HAVE_UNISTD_H
643 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
644 NEXT_UNISTD_H
645 LIB_TIMER_TIME
646 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
647 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
648 TIME_H_DEFINES_STRUCT_TIMESPEC
649 NEXT_AS_FIRST_DIRECTIVE_TIME_H
650 NEXT_TIME_H
651 WINDOWS_64_BIT_ST_SIZE
652 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
653 NEXT_SYS_STAT_H
654 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
655 NEXT_STDLIB_H
656 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
657 NEXT_STDIO_H
658 REPLACE_VSPRINTF
659 REPLACE_VSNPRINTF
660 REPLACE_VPRINTF
661 REPLACE_VFPRINTF
662 REPLACE_VDPRINTF
663 REPLACE_VASPRINTF
664 REPLACE_TMPFILE
665 REPLACE_STDIO_WRITE_FUNCS
666 REPLACE_STDIO_READ_FUNCS
667 REPLACE_SPRINTF
668 REPLACE_SNPRINTF
669 REPLACE_RENAMEAT
670 REPLACE_RENAME
671 REPLACE_REMOVE
672 REPLACE_PRINTF
673 REPLACE_POPEN
674 REPLACE_PERROR
675 REPLACE_OBSTACK_PRINTF
676 REPLACE_GETLINE
677 REPLACE_GETDELIM
678 REPLACE_FTELLO
679 REPLACE_FTELL
680 REPLACE_FSEEKO
681 REPLACE_FSEEK
682 REPLACE_FREOPEN
683 REPLACE_FPURGE
684 REPLACE_FPRINTF
685 REPLACE_FOPEN
686 REPLACE_FFLUSH
687 REPLACE_FDOPEN
688 REPLACE_FCLOSE
689 REPLACE_DPRINTF
690 HAVE_VDPRINTF
691 HAVE_VASPRINTF
692 HAVE_RENAMEAT
693 HAVE_POPEN
694 HAVE_PCLOSE
695 HAVE_FTELLO
696 HAVE_FSEEKO
697 HAVE_DPRINTF
698 HAVE_DECL_VSNPRINTF
699 HAVE_DECL_SNPRINTF
700 HAVE_DECL_OBSTACK_PRINTF
701 HAVE_DECL_GETLINE
702 HAVE_DECL_GETDELIM
703 HAVE_DECL_FTELLO
704 HAVE_DECL_FSEEKO
705 HAVE_DECL_FPURGE
706 GNULIB_VSPRINTF_POSIX
707 GNULIB_VSNPRINTF
708 GNULIB_VPRINTF_POSIX
709 GNULIB_VPRINTF
710 GNULIB_VFPRINTF_POSIX
711 GNULIB_VFPRINTF
712 GNULIB_VDPRINTF
713 GNULIB_VSCANF
714 GNULIB_VFSCANF
715 GNULIB_VASPRINTF
716 GNULIB_TMPFILE
717 GNULIB_STDIO_H_SIGPIPE
718 GNULIB_STDIO_H_NONBLOCKING
719 GNULIB_SPRINTF_POSIX
720 GNULIB_SNPRINTF
721 GNULIB_SCANF
722 GNULIB_RENAMEAT
723 GNULIB_RENAME
724 GNULIB_REMOVE
725 GNULIB_PUTS
726 GNULIB_PUTCHAR
727 GNULIB_PUTC
728 GNULIB_PRINTF_POSIX
729 GNULIB_PRINTF
730 GNULIB_POPEN
731 GNULIB_PERROR
732 GNULIB_PCLOSE
733 GNULIB_OBSTACK_PRINTF_POSIX
734 GNULIB_OBSTACK_PRINTF
735 GNULIB_GETLINE
736 GNULIB_GETDELIM
737 GNULIB_GETCHAR
738 GNULIB_GETC
739 GNULIB_FWRITE
740 GNULIB_FTELLO
741 GNULIB_FTELL
742 GNULIB_FSEEKO
743 GNULIB_FSEEK
744 GNULIB_FSCANF
745 GNULIB_FREOPEN
746 GNULIB_FREAD
747 GNULIB_FPUTS
748 GNULIB_FPUTC
749 GNULIB_FPURGE
750 GNULIB_FPRINTF_POSIX
751 GNULIB_FPRINTF
752 GNULIB_FOPEN
753 GNULIB_FGETS
754 GNULIB_FGETC
755 GNULIB_FFLUSH
756 GNULIB_FDOPEN
757 GNULIB_FCLOSE
758 GNULIB_DPRINTF
759 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
760 NEXT_STDDEF_H
761 GL_GENERATE_STDDEF_H_FALSE
762 GL_GENERATE_STDDEF_H_TRUE
763 STDDEF_H
764 HAVE_WCHAR_T
765 REPLACE_NULL
766 HAVE__BOOL
767 GL_GENERATE_STDBOOL_H_FALSE
768 GL_GENERATE_STDBOOL_H_TRUE
769 STDBOOL_H
770 GL_GENERATE_STDARG_H_FALSE
771 GL_GENERATE_STDARG_H_TRUE
772 STDARG_H
773 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
774 NEXT_STDARG_H
775 GL_GENERATE_STDALIGN_H_FALSE
776 GL_GENERATE_STDALIGN_H_TRUE
777 STDALIGN_H
778 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
779 NEXT_SIGNAL_H
780 LIB_PTHREAD_SIGMASK
781 REPLACE_RAISE
782 REPLACE_PTHREAD_SIGMASK
783 HAVE_SIGHANDLER_T
784 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
785 HAVE_STRUCT_SIGACTION_SA_SIGACTION
786 HAVE_SIGACTION
787 HAVE_SIGINFO_T
788 HAVE_SIGSET_T
789 HAVE_RAISE
790 HAVE_PTHREAD_SIGMASK
791 HAVE_POSIX_SIGNALBLOCKING
792 GNULIB_SIGACTION
793 GNULIB_SIGPROCMASK
794 GNULIB_SIGNAL_H_SIGPIPE
795 GNULIB_RAISE
796 GNULIB_PTHREAD_SIGMASK
797 HAVE_SYS_SELECT_H
798 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
799 NEXT_SYS_SELECT_H
800 REPLACE_SELECT
801 REPLACE_PSELECT
802 HAVE_PSELECT
803 GNULIB_SELECT
804 GNULIB_PSELECT
805 REPLACE_TIMEGM
806 REPLACE_NANOSLEEP
807 REPLACE_MKTIME
808 REPLACE_LOCALTIME_R
809 HAVE_TIMEGM
810 HAVE_STRPTIME
811 HAVE_NANOSLEEP
812 HAVE_DECL_LOCALTIME_R
813 GNULIB_TIME_R
814 GNULIB_TIMEGM
815 GNULIB_STRPTIME
816 GNULIB_NANOSLEEP
817 GNULIB_MKTIME
818 REPLACE_UTIMENSAT
819 REPLACE_STAT
820 REPLACE_MKNOD
821 REPLACE_MKFIFO
822 REPLACE_MKDIR
823 REPLACE_LSTAT
824 REPLACE_FUTIMENS
825 REPLACE_FSTATAT
826 REPLACE_FSTAT
827 HAVE_UTIMENSAT
828 HAVE_MKNODAT
829 HAVE_MKNOD
830 HAVE_MKFIFOAT
831 HAVE_MKFIFO
832 HAVE_MKDIRAT
833 HAVE_LSTAT
834 HAVE_LCHMOD
835 HAVE_FUTIMENS
836 HAVE_FSTATAT
837 HAVE_FCHMODAT
838 GNULIB_UTIMENSAT
839 GNULIB_STAT
840 GNULIB_MKNODAT
841 GNULIB_MKNOD
842 GNULIB_MKFIFOAT
843 GNULIB_MKFIFO
844 GNULIB_MKDIRAT
845 GNULIB_LSTAT
846 GNULIB_LCHMOD
847 GNULIB_FUTIMENS
848 GNULIB_FSTATAT
849 GNULIB_FSTAT
850 GNULIB_FCHMODAT
851 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
852 NEXT_INTTYPES_H
853 UINT64_MAX_EQ_ULONG_MAX
854 UINT32_MAX_LT_UINTMAX_MAX
855 PRIPTR_PREFIX
856 PRI_MACROS_BROKEN
857 INT64_MAX_EQ_LONG_MAX
858 INT32_MAX_LT_INTMAX_MAX
859 REPLACE_STRTOIMAX
860 HAVE_DECL_STRTOUMAX
861 HAVE_DECL_STRTOIMAX
862 HAVE_DECL_IMAXDIV
863 HAVE_DECL_IMAXABS
864 GNULIB_STRTOUMAX
865 GNULIB_STRTOIMAX
866 GNULIB_IMAXDIV
867 GNULIB_IMAXABS
868 GL_GENERATE_STDINT_H_FALSE
869 GL_GENERATE_STDINT_H_TRUE
870 STDINT_H
871 WINT_T_SUFFIX
872 WCHAR_T_SUFFIX
873 SIG_ATOMIC_T_SUFFIX
874 SIZE_T_SUFFIX
875 PTRDIFF_T_SUFFIX
876 HAVE_SIGNED_WINT_T
877 HAVE_SIGNED_WCHAR_T
878 HAVE_SIGNED_SIG_ATOMIC_T
879 BITSIZEOF_WINT_T
880 BITSIZEOF_WCHAR_T
881 BITSIZEOF_SIG_ATOMIC_T
882 BITSIZEOF_SIZE_T
883 BITSIZEOF_PTRDIFF_T
884 APPLE_UNIVERSAL_BUILD
885 HAVE_SYS_BITYPES_H
886 HAVE_SYS_INTTYPES_H
887 HAVE_STDINT_H
888 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
889 NEXT_STDINT_H
890 HAVE_SYS_TYPES_H
891 HAVE_INTTYPES_H
892 HAVE_WCHAR_H
893 HAVE_UNSIGNED_LONG_LONG_INT
894 HAVE_LONG_LONG_INT
895 HAVE_WINSOCK2_H
896 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
897 NEXT_SYS_TIME_H
898 REPLACE_STRUCT_TIMEVAL
899 REPLACE_GETTIMEOFDAY
900 HAVE_SYS_TIME_H
901 HAVE_STRUCT_TIMEVAL
902 HAVE_GETTIMEOFDAY
903 GNULIB_GETTIMEOFDAY
904 GNULIB_GL_UNISTD_H_GETOPT
905 GETOPT_H
906 HAVE_GETOPT_H
907 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
908 NEXT_GETOPT_H
909 GETLOADAVG_LIBS
910 REPLACE_WCTOMB
911 REPLACE_UNSETENV
912 REPLACE_STRTOD
913 REPLACE_SETENV
914 REPLACE_REALPATH
915 REPLACE_REALLOC
916 REPLACE_RANDOM_R
917 REPLACE_PUTENV
918 REPLACE_PTSNAME_R
919 REPLACE_PTSNAME
920 REPLACE_MKSTEMP
921 REPLACE_MBTOWC
922 REPLACE_MALLOC
923 REPLACE_CANONICALIZE_FILE_NAME
924 REPLACE_CALLOC
925 HAVE_DECL_UNSETENV
926 HAVE_UNLOCKPT
927 HAVE_SYS_LOADAVG_H
928 HAVE_STRUCT_RANDOM_DATA
929 HAVE_STRTOULL
930 HAVE_STRTOLL
931 HAVE_STRTOD
932 HAVE_DECL_SETENV
933 HAVE_SETENV
934 HAVE_RPMATCH
935 HAVE_REALPATH
936 HAVE_RANDOM_R
937 HAVE_RANDOM_H
938 HAVE_RANDOM
939 HAVE_PTSNAME_R
940 HAVE_PTSNAME
941 HAVE_POSIX_OPENPT
942 HAVE_MKSTEMPS
943 HAVE_MKSTEMP
944 HAVE_MKOSTEMPS
945 HAVE_MKOSTEMP
946 HAVE_MKDTEMP
947 HAVE_GRANTPT
948 HAVE_GETSUBOPT
949 HAVE_DECL_GETLOADAVG
950 HAVE_CANONICALIZE_FILE_NAME
951 HAVE_ATOLL
952 HAVE__EXIT
953 GNULIB_WCTOMB
954 GNULIB_UNSETENV
955 GNULIB_UNLOCKPT
956 GNULIB_SYSTEM_POSIX
957 GNULIB_STRTOULL
958 GNULIB_STRTOLL
959 GNULIB_STRTOD
960 GNULIB_SETENV
961 GNULIB_RPMATCH
962 GNULIB_REALPATH
963 GNULIB_REALLOC_POSIX
964 GNULIB_RANDOM_R
965 GNULIB_RANDOM
966 GNULIB_PUTENV
967 GNULIB_PTSNAME_R
968 GNULIB_PTSNAME
969 GNULIB_POSIX_OPENPT
970 GNULIB_MKSTEMPS
971 GNULIB_MKSTEMP
972 GNULIB_MKOSTEMPS
973 GNULIB_MKOSTEMP
974 GNULIB_MKDTEMP
975 GNULIB_MBTOWC
976 GNULIB_MALLOC_POSIX
977 GNULIB_GRANTPT
978 GNULIB_GETSUBOPT
979 GNULIB_GETLOADAVG
980 GNULIB_CANONICALIZE_FILE_NAME
981 GNULIB_CALLOC_POSIX
982 GNULIB_ATOLL
983 GNULIB__EXIT
984 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
985 NEXT_FCNTL_H
986 PRAGMA_COLUMNS
987 PRAGMA_SYSTEM_HEADER
988 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
989 INCLUDE_NEXT
990 REPLACE_OPENAT
991 REPLACE_OPEN
992 REPLACE_FCNTL
993 HAVE_OPENAT
994 HAVE_FCNTL
995 GNULIB_OPENAT
996 GNULIB_OPEN
997 GNULIB_NONBLOCKING
998 GNULIB_FCNTL
999 GL_GENERATE_EXECINFO_H_FALSE
1000 GL_GENERATE_EXECINFO_H_TRUE
1001 LIB_EXECINFO
1002 EXECINFO_H
1003 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1004 UNISTD_H_HAVE_WINSOCK2_H
1005 REPLACE_WRITE
1006 REPLACE_USLEEP
1007 REPLACE_UNLINKAT
1008 REPLACE_UNLINK
1009 REPLACE_TTYNAME_R
1010 REPLACE_SYMLINK
1011 REPLACE_SLEEP
1012 REPLACE_RMDIR
1013 REPLACE_READLINK
1014 REPLACE_READ
1015 REPLACE_PWRITE
1016 REPLACE_PREAD
1017 REPLACE_LSEEK
1018 REPLACE_LINKAT
1019 REPLACE_LINK
1020 REPLACE_LCHOWN
1021 REPLACE_ISATTY
1022 REPLACE_GETPAGESIZE
1023 REPLACE_GETGROUPS
1024 REPLACE_GETLOGIN_R
1025 REPLACE_GETDOMAINNAME
1026 REPLACE_GETCWD
1027 REPLACE_FTRUNCATE
1028 REPLACE_FCHOWNAT
1029 REPLACE_DUP2
1030 REPLACE_DUP
1031 REPLACE_CLOSE
1032 REPLACE_CHOWN
1033 HAVE_SYS_PARAM_H
1034 HAVE_OS_H
1035 HAVE_DECL_TTYNAME_R
1036 HAVE_DECL_SETHOSTNAME
1037 HAVE_DECL_GETUSERSHELL
1038 HAVE_DECL_GETPAGESIZE
1039 HAVE_DECL_GETLOGIN_R
1040 HAVE_DECL_GETDOMAINNAME
1041 HAVE_DECL_FDATASYNC
1042 HAVE_DECL_FCHDIR
1043 HAVE_DECL_ENVIRON
1044 HAVE_USLEEP
1045 HAVE_UNLINKAT
1046 HAVE_SYMLINKAT
1047 HAVE_SYMLINK
1048 HAVE_SLEEP
1049 HAVE_SETHOSTNAME
1050 HAVE_READLINKAT
1051 HAVE_READLINK
1052 HAVE_PWRITE
1053 HAVE_PREAD
1054 HAVE_PIPE2
1055 HAVE_PIPE
1056 HAVE_LINKAT
1057 HAVE_LINK
1058 HAVE_LCHOWN
1059 HAVE_GROUP_MEMBER
1060 HAVE_GETPAGESIZE
1061 HAVE_GETLOGIN
1062 HAVE_GETHOSTNAME
1063 HAVE_GETGROUPS
1064 HAVE_GETDTABLESIZE
1065 HAVE_FTRUNCATE
1066 HAVE_FSYNC
1067 HAVE_FDATASYNC
1068 HAVE_FCHOWNAT
1069 HAVE_FCHDIR
1070 HAVE_FACCESSAT
1071 HAVE_EUIDACCESS
1072 HAVE_DUP3
1073 HAVE_DUP2
1074 HAVE_CHOWN
1075 GNULIB_WRITE
1076 GNULIB_USLEEP
1077 GNULIB_UNLINKAT
1078 GNULIB_UNLINK
1079 GNULIB_UNISTD_H_SIGPIPE
1080 GNULIB_UNISTD_H_NONBLOCKING
1081 GNULIB_TTYNAME_R
1082 GNULIB_SYMLINKAT
1083 GNULIB_SYMLINK
1084 GNULIB_SLEEP
1085 GNULIB_SETHOSTNAME
1086 GNULIB_RMDIR
1087 GNULIB_READLINKAT
1088 GNULIB_READLINK
1089 GNULIB_READ
1090 GNULIB_PWRITE
1091 GNULIB_PREAD
1092 GNULIB_PIPE2
1093 GNULIB_PIPE
1094 GNULIB_LSEEK
1095 GNULIB_LINKAT
1096 GNULIB_LINK
1097 GNULIB_LCHOWN
1098 GNULIB_ISATTY
1099 GNULIB_GROUP_MEMBER
1100 GNULIB_GETUSERSHELL
1101 GNULIB_GETPAGESIZE
1102 GNULIB_GETLOGIN_R
1103 GNULIB_GETLOGIN
1104 GNULIB_GETHOSTNAME
1105 GNULIB_GETGROUPS
1106 GNULIB_GETDTABLESIZE
1107 GNULIB_GETDOMAINNAME
1108 GNULIB_GETCWD
1109 GNULIB_FTRUNCATE
1110 GNULIB_FSYNC
1111 GNULIB_FDATASYNC
1112 GNULIB_FCHOWNAT
1113 GNULIB_FCHDIR
1114 GNULIB_FACCESSAT
1115 GNULIB_EUIDACCESS
1116 GNULIB_ENVIRON
1117 GNULIB_DUP3
1118 GNULIB_DUP2
1119 GNULIB_DUP
1120 GNULIB_CLOSE
1121 GNULIB_CHOWN
1122 GNULIB_CHDIR
1123 LIB_CLOCK_GETTIME
1124 GL_GENERATE_ALLOCA_H_FALSE
1125 GL_GENERATE_ALLOCA_H_TRUE
1126 ALLOCA_H
1127 ALLOCA
1128 GL_COND_LIBTOOL_FALSE
1129 GL_COND_LIBTOOL_TRUE
1130 POST_ALLOC_OBJ
1131 PRE_ALLOC_OBJ
1132 CYGWIN_OBJ
1133 RALLOC_OBJ
1134 OLDXMENU_DEPS
1135 LIBX_OTHER
1136 LIBXMENU
1137 OLDXMENU
1138 OLDXMENU_TARGET
1139 LIBXT_OTHER
1140 TOOLKIT_LIBW
1141 WIDGET_OBJ
1142 XOBJ
1143 XMENU_OBJ
1144 FONT_OBJ
1145 OTHER_FILES
1146 GNU_OBJC_CFLAGS
1147 ns_appsrc
1148 ns_appresdir
1149 ns_appbindir
1150 ns_appdir
1151 X_TOOLKIT_TYPE
1152 GNUSTEP_CFLAGS
1153 C_SWITCH_X_SITE
1154 LD_SWITCH_X_SITE
1155 gameuser
1156 gamedir
1157 bitmapdir
1158 archlibdir
1159 etcdir
1160 x_default_search_path
1161 lisppath
1162 locallisppath
1163 standardlisppath
1164 leimdir
1165 lispdir
1166 srcdir
1167 canonical
1168 configuration
1169 version
1170 copyright
1171 KRB4LIB
1172 DESLIB
1173 KRB5LIB
1174 CRYPTOLIB
1175 COM_ERRLIB
1176 LIBRESOLV
1177 LIBHESIOD
1178 TERMCAP_OBJ
1179 LIBS_TERMCAP
1180 BLESSMAIL_TARGET
1181 LIBS_MAIL
1182 liblockfile
1183 LIBXML2_LIBS
1184 LIBXML2_CFLAGS
1185 LIBXSM
1186 LIBGPM
1187 LIBGIF
1188 LIBTIFF
1189 LIBPNG
1190 LIBJPEG
1191 LIBXPM
1192 M17N_FLT_LIBS
1193 M17N_FLT_CFLAGS
1194 LIBOTF_LIBS
1195 LIBOTF_CFLAGS
1196 FREETYPE_LIBS
1197 FREETYPE_CFLAGS
1198 XFT_LIBS
1199 XFT_CFLAGS
1200 FONTCONFIG_LIBS
1201 FONTCONFIG_CFLAGS
1202 LIBXMU
1203 LIBXTR6
1204 LIBGNUTLS_LIBS
1205 LIBGNUTLS_CFLAGS
1206 LIBSELINUX_LIBS
1207 SETTINGS_LIBS
1208 SETTINGS_CFLAGS
1209 GOBJECT_LIBS
1210 GOBJECT_CFLAGS
1211 GCONF_LIBS
1212 GCONF_CFLAGS
1213 GSETTINGS_LIBS
1214 GSETTINGS_CFLAGS
1215 DBUS_OBJ
1216 DBUS_LIBS
1217 DBUS_CFLAGS
1218 GTK_OBJ
1219 GTK_LIBS
1220 GTK_CFLAGS
1221 IMAGEMAGICK_LIBS
1222 IMAGEMAGICK_CFLAGS
1223 RSVG_LIBS
1224 RSVG_CFLAGS
1225 LIB_PTHREAD
1226 VMLIMIT_OBJ
1227 GMALLOC_OBJ
1228 HAVE_XSERVER
1229 W32_LIBS
1230 W32_OBJ
1231 LIB_STANDARD
1232 NS_OBJC_OBJ
1233 NS_OBJ
1234 ns_self_contained
1235 INSTALL_ARCH_INDEP_EXTRA
1236 TEMACS_LDFLAGS2
1237 LD_SWITCH_X_SITE_RPATH
1238 XMKMF
1239 DEPFLAGS
1240 MKDEPDIR
1241 CFLAGS_SOUND
1242 ALSA_LIBS
1243 ALSA_CFLAGS
1244 LIBSOUND
1245 PKG_CONFIG
1246 CRT_DIR
1247 START_FILES
1248 LIB_MATH
1249 LIBS_SYSTEM
1250 C_SWITCH_SYSTEM
1251 UNEXEC_OBJ
1252 C_SWITCH_MACHINE
1253 LD_SWITCH_SYSTEM
1254 CANNOT_DUMP
1255 INFO_OPTS
1256 INFO_EXT
1257 HAVE_MAKEINFO
1258 PAXCTL
1259 GZIP_PROG
1260 INSTALL_INFO
1261 LN_S
1262 GNULIB_WARN_CFLAGS
1263 WARN_CFLAGS
1264 WERROR_CFLAGS
1265 RANLIB
1266 ARFLAGS
1267 AR
1268 EGREP
1269 GREP
1270 CPP
1271 am__fastdepCC_FALSE
1272 am__fastdepCC_TRUE
1273 CCDEPMODE
1274 AMDEPBACKSLASH
1275 AMDEP_FALSE
1276 AMDEP_TRUE
1277 am__quote
1278 am__include
1279 DEPDIR
1280 OBJEXT
1281 EXEEXT
1282 ac_ct_CC
1283 CPPFLAGS
1284 LDFLAGS
1285 CFLAGS
1286 CC
1287 host_os
1288 host_vendor
1289 host_cpu
1290 host
1291 build_os
1292 build_vendor
1293 build_cpu
1294 build
1295 PROFILING_CFLAGS
1296 GZIP_INFO
1297 cache_file
1298 am__untar
1299 am__tar
1300 AMTAR
1301 am__leading_dot
1302 SET_MAKE
1303 AWK
1304 mkdir_p
1305 MKDIR_P
1306 INSTALL_STRIP_PROGRAM
1307 STRIP
1308 install_sh
1309 MAKEINFO
1310 AUTOHEADER
1311 AUTOMAKE
1312 AUTOCONF
1313 ACLOCAL
1314 VERSION
1315 PACKAGE
1316 CYGPATH_W
1317 am__isrc
1318 INSTALL_DATA
1319 INSTALL_SCRIPT
1320 INSTALL_PROGRAM
1321 target_alias
1322 host_alias
1323 build_alias
1324 LIBS
1325 ECHO_T
1326 ECHO_N
1327 ECHO_C
1328 DEFS
1329 mandir
1330 localedir
1331 libdir
1332 psdir
1333 pdfdir
1334 dvidir
1335 htmldir
1336 infodir
1337 docdir
1338 oldincludedir
1339 includedir
1340 localstatedir
1341 sharedstatedir
1342 sysconfdir
1343 datadir
1344 datarootdir
1345 libexecdir
1346 sbindir
1347 bindir
1348 program_transform_name
1349 prefix
1350 exec_prefix
1351 PACKAGE_URL
1352 PACKAGE_BUGREPORT
1353 PACKAGE_STRING
1354 PACKAGE_VERSION
1355 PACKAGE_TARNAME
1356 PACKAGE_NAME
1357 PATH_SEPARATOR
1358 SHELL'
1359 ac_subst_files='deps_frag
1360 lisp_frag'
1361 ac_user_opts='
1362 enable_option_checking
1363 with_all
1364 with_pop
1365 with_kerberos
1366 with_kerberos5
1367 with_hesiod
1368 with_mmdf
1369 with_mail_unlink
1370 with_mailhost
1371 with_sound
1372 with_x_toolkit
1373 with_wide_int
1374 with_xpm
1375 with_jpeg
1376 with_tiff
1377 with_gif
1378 with_png
1379 with_rsvg
1380 with_xml2
1381 with_imagemagick
1382 with_xft
1383 with_libotf
1384 with_m17n_flt
1385 with_toolkit_scroll_bars
1386 with_xaw3d
1387 with_xim
1388 with_ns
1389 with_w32
1390 with_gpm
1391 with_dbus
1392 with_gconf
1393 with_gsettings
1394 with_selinux
1395 with_gnutls
1396 with_makeinfo
1397 with_compress_info
1398 with_pkg_config_prog
1399 with_crt_dir
1400 with_gameuser
1401 with_gnustep_conf
1402 enable_ns_self_contained
1403 enable_locallisppath
1404 enable_checking
1405 enable_check_lisp_object_type
1406 enable_profiling
1407 enable_autodepend
1408 enable_dependency_tracking
1409 enable_largefile
1410 enable_gcc_warnings
1411 enable_link_time_optimization
1412 with_x
1413 '
1414 ac_precious_vars='build_alias
1415 host_alias
1416 target_alias
1417 CC
1418 CFLAGS
1419 LDFLAGS
1420 LIBS
1421 CPPFLAGS
1422 CPP
1423 XMKMF'
1424
1425
1426 # Initialize some variables set by options.
1427 ac_init_help=
1428 ac_init_version=false
1429 ac_unrecognized_opts=
1430 ac_unrecognized_sep=
1431 # The variables have the same names as the options, with
1432 # dashes changed to underlines.
1433 cache_file=/dev/null
1434 exec_prefix=NONE
1435 no_create=
1436 no_recursion=
1437 prefix=NONE
1438 program_prefix=NONE
1439 program_suffix=NONE
1440 program_transform_name=s,x,x,
1441 silent=
1442 site=
1443 srcdir=
1444 verbose=
1445 x_includes=NONE
1446 x_libraries=NONE
1447
1448 # Installation directory options.
1449 # These are left unexpanded so users can "make install exec_prefix=/foo"
1450 # and all the variables that are supposed to be based on exec_prefix
1451 # by default will actually change.
1452 # Use braces instead of parens because sh, perl, etc. also accept them.
1453 # (The list follows the same order as the GNU Coding Standards.)
1454 bindir='${exec_prefix}/bin'
1455 sbindir='${exec_prefix}/sbin'
1456 libexecdir='${exec_prefix}/libexec'
1457 datarootdir='${prefix}/share'
1458 datadir='${datarootdir}'
1459 sysconfdir='${prefix}/etc'
1460 sharedstatedir='${prefix}/com'
1461 localstatedir='${prefix}/var'
1462 includedir='${prefix}/include'
1463 oldincludedir='/usr/include'
1464 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1465 infodir='${datarootdir}/info'
1466 htmldir='${docdir}'
1467 dvidir='${docdir}'
1468 pdfdir='${docdir}'
1469 psdir='${docdir}'
1470 libdir='${exec_prefix}/lib'
1471 localedir='${datarootdir}/locale'
1472 mandir='${datarootdir}/man'
1473
1474 ac_prev=
1475 ac_dashdash=
1476 for ac_option
1477 do
1478 # If the previous option needs an argument, assign it.
1479 if test -n "$ac_prev"; then
1480 eval $ac_prev=\$ac_option
1481 ac_prev=
1482 continue
1483 fi
1484
1485 case $ac_option in
1486 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1487 *) ac_optarg=yes ;;
1488 esac
1489
1490 # Accept the important Cygnus configure options, so we can diagnose typos.
1491
1492 case $ac_dashdash$ac_option in
1493 --)
1494 ac_dashdash=yes ;;
1495
1496 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1497 ac_prev=bindir ;;
1498 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1499 bindir=$ac_optarg ;;
1500
1501 -build | --build | --buil | --bui | --bu)
1502 ac_prev=build_alias ;;
1503 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1504 build_alias=$ac_optarg ;;
1505
1506 -cache-file | --cache-file | --cache-fil | --cache-fi \
1507 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1508 ac_prev=cache_file ;;
1509 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1510 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1511 cache_file=$ac_optarg ;;
1512
1513 --config-cache | -C)
1514 cache_file=config.cache ;;
1515
1516 -datadir | --datadir | --datadi | --datad)
1517 ac_prev=datadir ;;
1518 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1519 datadir=$ac_optarg ;;
1520
1521 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1522 | --dataroo | --dataro | --datar)
1523 ac_prev=datarootdir ;;
1524 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1525 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1526 datarootdir=$ac_optarg ;;
1527
1528 -disable-* | --disable-*)
1529 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1530 # Reject names that are not valid shell variable names.
1531 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1532 as_fn_error "invalid feature name: $ac_useropt"
1533 ac_useropt_orig=$ac_useropt
1534 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1535 case $ac_user_opts in
1536 *"
1537 "enable_$ac_useropt"
1538 "*) ;;
1539 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1540 ac_unrecognized_sep=', ';;
1541 esac
1542 eval enable_$ac_useropt=no ;;
1543
1544 -docdir | --docdir | --docdi | --doc | --do)
1545 ac_prev=docdir ;;
1546 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1547 docdir=$ac_optarg ;;
1548
1549 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1550 ac_prev=dvidir ;;
1551 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1552 dvidir=$ac_optarg ;;
1553
1554 -enable-* | --enable-*)
1555 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1556 # Reject names that are not valid shell variable names.
1557 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1558 as_fn_error "invalid feature name: $ac_useropt"
1559 ac_useropt_orig=$ac_useropt
1560 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1561 case $ac_user_opts in
1562 *"
1563 "enable_$ac_useropt"
1564 "*) ;;
1565 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1566 ac_unrecognized_sep=', ';;
1567 esac
1568 eval enable_$ac_useropt=\$ac_optarg ;;
1569
1570 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1571 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1572 | --exec | --exe | --ex)
1573 ac_prev=exec_prefix ;;
1574 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1575 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1576 | --exec=* | --exe=* | --ex=*)
1577 exec_prefix=$ac_optarg ;;
1578
1579 -gas | --gas | --ga | --g)
1580 # Obsolete; use --with-gas.
1581 with_gas=yes ;;
1582
1583 -help | --help | --hel | --he | -h)
1584 ac_init_help=long ;;
1585 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1586 ac_init_help=recursive ;;
1587 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1588 ac_init_help=short ;;
1589
1590 -host | --host | --hos | --ho)
1591 ac_prev=host_alias ;;
1592 -host=* | --host=* | --hos=* | --ho=*)
1593 host_alias=$ac_optarg ;;
1594
1595 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1596 ac_prev=htmldir ;;
1597 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1598 | --ht=*)
1599 htmldir=$ac_optarg ;;
1600
1601 -includedir | --includedir | --includedi | --included | --include \
1602 | --includ | --inclu | --incl | --inc)
1603 ac_prev=includedir ;;
1604 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1605 | --includ=* | --inclu=* | --incl=* | --inc=*)
1606 includedir=$ac_optarg ;;
1607
1608 -infodir | --infodir | --infodi | --infod | --info | --inf)
1609 ac_prev=infodir ;;
1610 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1611 infodir=$ac_optarg ;;
1612
1613 -libdir | --libdir | --libdi | --libd)
1614 ac_prev=libdir ;;
1615 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1616 libdir=$ac_optarg ;;
1617
1618 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1619 | --libexe | --libex | --libe)
1620 ac_prev=libexecdir ;;
1621 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1622 | --libexe=* | --libex=* | --libe=*)
1623 libexecdir=$ac_optarg ;;
1624
1625 -localedir | --localedir | --localedi | --localed | --locale)
1626 ac_prev=localedir ;;
1627 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1628 localedir=$ac_optarg ;;
1629
1630 -localstatedir | --localstatedir | --localstatedi | --localstated \
1631 | --localstate | --localstat | --localsta | --localst | --locals)
1632 ac_prev=localstatedir ;;
1633 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1634 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1635 localstatedir=$ac_optarg ;;
1636
1637 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1638 ac_prev=mandir ;;
1639 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1640 mandir=$ac_optarg ;;
1641
1642 -nfp | --nfp | --nf)
1643 # Obsolete; use --without-fp.
1644 with_fp=no ;;
1645
1646 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1647 | --no-cr | --no-c | -n)
1648 no_create=yes ;;
1649
1650 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1651 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1652 no_recursion=yes ;;
1653
1654 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1655 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1656 | --oldin | --oldi | --old | --ol | --o)
1657 ac_prev=oldincludedir ;;
1658 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1659 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1660 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1661 oldincludedir=$ac_optarg ;;
1662
1663 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1664 ac_prev=prefix ;;
1665 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1666 prefix=$ac_optarg ;;
1667
1668 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1669 | --program-pre | --program-pr | --program-p)
1670 ac_prev=program_prefix ;;
1671 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1672 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1673 program_prefix=$ac_optarg ;;
1674
1675 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1676 | --program-suf | --program-su | --program-s)
1677 ac_prev=program_suffix ;;
1678 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1679 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1680 program_suffix=$ac_optarg ;;
1681
1682 -program-transform-name | --program-transform-name \
1683 | --program-transform-nam | --program-transform-na \
1684 | --program-transform-n | --program-transform- \
1685 | --program-transform | --program-transfor \
1686 | --program-transfo | --program-transf \
1687 | --program-trans | --program-tran \
1688 | --progr-tra | --program-tr | --program-t)
1689 ac_prev=program_transform_name ;;
1690 -program-transform-name=* | --program-transform-name=* \
1691 | --program-transform-nam=* | --program-transform-na=* \
1692 | --program-transform-n=* | --program-transform-=* \
1693 | --program-transform=* | --program-transfor=* \
1694 | --program-transfo=* | --program-transf=* \
1695 | --program-trans=* | --program-tran=* \
1696 | --progr-tra=* | --program-tr=* | --program-t=*)
1697 program_transform_name=$ac_optarg ;;
1698
1699 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1700 ac_prev=pdfdir ;;
1701 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1702 pdfdir=$ac_optarg ;;
1703
1704 -psdir | --psdir | --psdi | --psd | --ps)
1705 ac_prev=psdir ;;
1706 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1707 psdir=$ac_optarg ;;
1708
1709 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1710 | -silent | --silent | --silen | --sile | --sil)
1711 silent=yes ;;
1712
1713 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1714 ac_prev=sbindir ;;
1715 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1716 | --sbi=* | --sb=*)
1717 sbindir=$ac_optarg ;;
1718
1719 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1720 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1721 | --sharedst | --shareds | --shared | --share | --shar \
1722 | --sha | --sh)
1723 ac_prev=sharedstatedir ;;
1724 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1725 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1726 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1727 | --sha=* | --sh=*)
1728 sharedstatedir=$ac_optarg ;;
1729
1730 -site | --site | --sit)
1731 ac_prev=site ;;
1732 -site=* | --site=* | --sit=*)
1733 site=$ac_optarg ;;
1734
1735 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1736 ac_prev=srcdir ;;
1737 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1738 srcdir=$ac_optarg ;;
1739
1740 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1741 | --syscon | --sysco | --sysc | --sys | --sy)
1742 ac_prev=sysconfdir ;;
1743 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1744 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1745 sysconfdir=$ac_optarg ;;
1746
1747 -target | --target | --targe | --targ | --tar | --ta | --t)
1748 ac_prev=target_alias ;;
1749 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1750 target_alias=$ac_optarg ;;
1751
1752 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1753 verbose=yes ;;
1754
1755 -version | --version | --versio | --versi | --vers | -V)
1756 ac_init_version=: ;;
1757
1758 -with-* | --with-*)
1759 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1760 # Reject names that are not valid shell variable names.
1761 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1762 as_fn_error "invalid package name: $ac_useropt"
1763 ac_useropt_orig=$ac_useropt
1764 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1765 case $ac_user_opts in
1766 *"
1767 "with_$ac_useropt"
1768 "*) ;;
1769 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1770 ac_unrecognized_sep=', ';;
1771 esac
1772 eval with_$ac_useropt=\$ac_optarg ;;
1773
1774 -without-* | --without-*)
1775 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1776 # Reject names that are not valid shell variable names.
1777 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1778 as_fn_error "invalid package name: $ac_useropt"
1779 ac_useropt_orig=$ac_useropt
1780 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1781 case $ac_user_opts in
1782 *"
1783 "with_$ac_useropt"
1784 "*) ;;
1785 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1786 ac_unrecognized_sep=', ';;
1787 esac
1788 eval with_$ac_useropt=no ;;
1789
1790 --x)
1791 # Obsolete; use --with-x.
1792 with_x=yes ;;
1793
1794 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1795 | --x-incl | --x-inc | --x-in | --x-i)
1796 ac_prev=x_includes ;;
1797 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1798 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1799 x_includes=$ac_optarg ;;
1800
1801 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1802 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1803 ac_prev=x_libraries ;;
1804 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1805 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1806 x_libraries=$ac_optarg ;;
1807
1808 -*) as_fn_error "unrecognized option: \`$ac_option'
1809 Try \`$0 --help' for more information."
1810 ;;
1811
1812 *=*)
1813 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1814 # Reject names that are not valid shell variable names.
1815 case $ac_envvar in #(
1816 '' | [0-9]* | *[!_$as_cr_alnum]* )
1817 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1818 esac
1819 eval $ac_envvar=\$ac_optarg
1820 export $ac_envvar ;;
1821
1822 *)
1823 # FIXME: should be removed in autoconf 3.0.
1824 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1825 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1826 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1827 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1828 ;;
1829
1830 esac
1831 done
1832
1833 if test -n "$ac_prev"; then
1834 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1835 as_fn_error "missing argument to $ac_option"
1836 fi
1837
1838 if test -n "$ac_unrecognized_opts"; then
1839 case $enable_option_checking in
1840 no) ;;
1841 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1842 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1843 esac
1844 fi
1845
1846 # Check all directory arguments for consistency.
1847 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1848 datadir sysconfdir sharedstatedir localstatedir includedir \
1849 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1850 libdir localedir mandir
1851 do
1852 eval ac_val=\$$ac_var
1853 # Remove trailing slashes.
1854 case $ac_val in
1855 */ )
1856 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1857 eval $ac_var=\$ac_val;;
1858 esac
1859 # Be sure to have absolute directory names.
1860 case $ac_val in
1861 [\\/$]* | ?:[\\/]* ) continue;;
1862 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1863 esac
1864 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1865 done
1866
1867 # There might be people who depend on the old broken behavior: `$host'
1868 # used to hold the argument of --host etc.
1869 # FIXME: To remove some day.
1870 build=$build_alias
1871 host=$host_alias
1872 target=$target_alias
1873
1874 # FIXME: To remove some day.
1875 if test "x$host_alias" != x; then
1876 if test "x$build_alias" = x; then
1877 cross_compiling=maybe
1878 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1879 If a cross compiler is detected then cross compile mode will be used." >&2
1880 elif test "x$build_alias" != "x$host_alias"; then
1881 cross_compiling=yes
1882 fi
1883 fi
1884
1885 ac_tool_prefix=
1886 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1887
1888 test "$silent" = yes && exec 6>/dev/null
1889
1890
1891 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1892 ac_ls_di=`ls -di .` &&
1893 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1894 as_fn_error "working directory cannot be determined"
1895 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1896 as_fn_error "pwd does not report name of working directory"
1897
1898
1899 # Find the source files, if location was not specified.
1900 if test -z "$srcdir"; then
1901 ac_srcdir_defaulted=yes
1902 # Try the directory containing this script, then the parent directory.
1903 ac_confdir=`$as_dirname -- "$as_myself" ||
1904 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1905 X"$as_myself" : 'X\(//\)[^/]' \| \
1906 X"$as_myself" : 'X\(//\)$' \| \
1907 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1908 $as_echo X"$as_myself" |
1909 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1910 s//\1/
1911 q
1912 }
1913 /^X\(\/\/\)[^/].*/{
1914 s//\1/
1915 q
1916 }
1917 /^X\(\/\/\)$/{
1918 s//\1/
1919 q
1920 }
1921 /^X\(\/\).*/{
1922 s//\1/
1923 q
1924 }
1925 s/.*/./; q'`
1926 srcdir=$ac_confdir
1927 if test ! -r "$srcdir/$ac_unique_file"; then
1928 srcdir=..
1929 fi
1930 else
1931 ac_srcdir_defaulted=no
1932 fi
1933 if test ! -r "$srcdir/$ac_unique_file"; then
1934 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1935 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1936 fi
1937 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1938 ac_abs_confdir=`(
1939 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1940 pwd)`
1941 # When building in place, set srcdir=.
1942 if test "$ac_abs_confdir" = "$ac_pwd"; then
1943 srcdir=.
1944 fi
1945 # Remove unnecessary trailing slashes from srcdir.
1946 # Double slashes in file names in object file debugging info
1947 # mess up M-x gdb in Emacs.
1948 case $srcdir in
1949 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1950 esac
1951 for ac_var in $ac_precious_vars; do
1952 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1953 eval ac_env_${ac_var}_value=\$${ac_var}
1954 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1955 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1956 done
1957
1958 #
1959 # Report the --help message.
1960 #
1961 if test "$ac_init_help" = "long"; then
1962 # Omit some internal or obsolete options to make the list less imposing.
1963 # This message is too long to be a string in the A/UX 3.1 sh.
1964 cat <<_ACEOF
1965 \`configure' configures emacs 24.3.50 to adapt to many kinds of systems.
1966
1967 Usage: $0 [OPTION]... [VAR=VALUE]...
1968
1969 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1970 VAR=VALUE. See below for descriptions of some of the useful variables.
1971
1972 Defaults for the options are specified in brackets.
1973
1974 Configuration:
1975 -h, --help display this help and exit
1976 --help=short display options specific to this package
1977 --help=recursive display the short help of all the included packages
1978 -V, --version display version information and exit
1979 -q, --quiet, --silent do not print \`checking...' messages
1980 --cache-file=FILE cache test results in FILE [disabled]
1981 -C, --config-cache alias for \`--cache-file=config.cache'
1982 -n, --no-create do not create output files
1983 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1984
1985 Installation directories:
1986 --prefix=PREFIX install architecture-independent files in PREFIX
1987 [$ac_default_prefix]
1988 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1989 [PREFIX]
1990
1991 By default, \`make install' will install all the files in
1992 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1993 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1994 for instance \`--prefix=\$HOME'.
1995
1996 For better control, use the options below.
1997
1998 Fine tuning of the installation directories:
1999 --bindir=DIR user executables [EPREFIX/bin]
2000 --sbindir=DIR system admin executables [EPREFIX/sbin]
2001 --libexecdir=DIR program executables [EPREFIX/libexec]
2002 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2003 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2004 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2005 --libdir=DIR object code libraries [EPREFIX/lib]
2006 --includedir=DIR C header files [PREFIX/include]
2007 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2008 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2009 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2010 --infodir=DIR info documentation [DATAROOTDIR/info]
2011 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2012 --mandir=DIR man documentation [DATAROOTDIR/man]
2013 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
2014 --htmldir=DIR html documentation [DOCDIR]
2015 --dvidir=DIR dvi documentation [DOCDIR]
2016 --pdfdir=DIR pdf documentation [DOCDIR]
2017 --psdir=DIR ps documentation [DOCDIR]
2018 _ACEOF
2019
2020 cat <<\_ACEOF
2021
2022 Program names:
2023 --program-prefix=PREFIX prepend PREFIX to installed program names
2024 --program-suffix=SUFFIX append SUFFIX to installed program names
2025 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2026
2027 X features:
2028 --x-includes=DIR X include files are in DIR
2029 --x-libraries=DIR X library files are in DIR
2030
2031 System types:
2032 --build=BUILD configure for building on BUILD [guessed]
2033 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2034 _ACEOF
2035 fi
2036
2037 if test -n "$ac_init_help"; then
2038 case $ac_init_help in
2039 short | recursive ) echo "Configuration of emacs 24.3.50:";;
2040 esac
2041 cat <<\_ACEOF
2042
2043 Optional Features:
2044 --disable-option-checking ignore unrecognized --enable/--with options
2045 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2046 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2047 --disable-ns-self-contained
2048 disable self contained build under NeXTstep
2049 --enable-locallisppath=PATH
2050 directories Emacs should search for lisp files
2051 specific to this site
2052 --enable-checking[=LIST]
2053 enable expensive run-time checks. With LIST, enable
2054 only specific categories of checks. Categories are:
2055 all,yes,no. Flags are: stringbytes, stringoverrun,
2056 stringfreelist, xmallocoverrun, conslist, glyphs
2057 --enable-check-lisp-object-type
2058 enable compile time checks for the Lisp_Object data
2059 type. This is useful for development for catching
2060 certain types of bugs.
2061 --enable-profiling build emacs with profiling support. This might not
2062 work on all platforms
2063 --enable-autodepend automatically generate dependencies to .h-files.
2064 Requires GNU Make and Gcc. Enabled if GNU Make and
2065 Gcc is found
2066 --disable-dependency-tracking speeds up one-time build
2067 --enable-dependency-tracking do not reject slow dependency extractors
2068 --disable-largefile omit support for large files
2069 --enable-gcc-warnings turn on lots of GCC warnings. This is intended for
2070 developers, and may generate false alarms when used
2071 with older or non-GNU development tools.
2072 --enable-link-time-optimization
2073 build emacs with link-time optimization. This is
2074 supported only for GCC since 4.5.0.
2075
2076 Optional Packages:
2077 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2078 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2079 --without-all omit almost all features and build small executable
2080 with minimal dependencies
2081 --without-pop don't support POP mail retrieval with movemail
2082 --with-kerberos support Kerberos-authenticated POP
2083 --with-kerberos5 support Kerberos version 5 authenticated POP
2084 --with-hesiod support Hesiod to get the POP server host
2085 --with-mmdf support MMDF mailboxes
2086 --with-mail-unlink unlink, rather than empty, mail spool after reading
2087 --with-mailhost=HOSTNAME
2088 string giving default POP mail host
2089 --without-sound don't compile with sound support
2090 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk2,
2091 gtk3, lucid or athena, motif, no)
2092 --with-wide-int prefer wide Emacs integers (typically 62-bit)
2093 --without-xpm don't compile with XPM image support
2094 --without-jpeg don't compile with JPEG image support
2095 --without-tiff don't compile with TIFF image support
2096 --without-gif don't compile with GIF image support
2097 --without-png don't compile with PNG image support
2098 --without-rsvg don't compile with SVG image support
2099 --without-xml2 don't compile with XML parsing support
2100 --without-imagemagick don't compile with ImageMagick image support
2101 --without-xft don't use XFT for anti aliased fonts
2102 --without-libotf don't use libotf for OpenType font support
2103 --without-m17n-flt don't use m17n-flt for text shaping
2104 --without-toolkit-scroll-bars
2105 don't use Motif or Xaw3d scroll bars
2106 --without-xaw3d don't use Xaw3d
2107 --without-xim don't use X11 XIM
2108 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
2109 --with-w32 use native MS Windows GUI
2110 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
2111 console
2112 --without-dbus don't compile with D-Bus support
2113 --without-gconf don't compile with GConf support
2114 --without-gsettings don't compile with GSettings support
2115 --without-selinux don't compile with SELinux support
2116 --without-gnutls don't use -lgnutls for SSL/TLS support
2117 --without-makeinfo don't require makeinfo for building manuals
2118 --without-compress-info don't compress the installed Info pages
2119 --with-pkg-config-prog=PATH
2120 path to pkg-config for finding GTK and librsvg
2121 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2122 /usr/lib, or /usr/lib64 on some platforms.
2123 --with-gameuser=USER user for shared game score files
2124 --with-gnustep-conf=PATH
2125 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
2126 or /etc/GNUstep/GNUstep.conf
2127 --with-x use the X Window System
2128
2129 Some influential environment variables:
2130 CC C compiler command
2131 CFLAGS C compiler flags
2132 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2133 nonstandard directory <lib dir>
2134 LIBS libraries to pass to the linker, e.g. -l<library>
2135 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2136 you have headers in a nonstandard directory <include dir>
2137 CPP C preprocessor
2138 XMKMF Path to xmkmf, Makefile generator for X Window System
2139
2140 Use these variables to override the choices made by `configure' or to help
2141 it to find libraries and programs with nonstandard names/locations.
2142
2143 Report bugs to the package provider.
2144 _ACEOF
2145 ac_status=$?
2146 fi
2147
2148 if test "$ac_init_help" = "recursive"; then
2149 # If there are subdirs, report their specific --help.
2150 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2151 test -d "$ac_dir" ||
2152 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2153 continue
2154 ac_builddir=.
2155
2156 case "$ac_dir" in
2157 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2158 *)
2159 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2160 # A ".." for each directory in $ac_dir_suffix.
2161 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2162 case $ac_top_builddir_sub in
2163 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2164 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2165 esac ;;
2166 esac
2167 ac_abs_top_builddir=$ac_pwd
2168 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2169 # for backward compatibility:
2170 ac_top_builddir=$ac_top_build_prefix
2171
2172 case $srcdir in
2173 .) # We are building in place.
2174 ac_srcdir=.
2175 ac_top_srcdir=$ac_top_builddir_sub
2176 ac_abs_top_srcdir=$ac_pwd ;;
2177 [\\/]* | ?:[\\/]* ) # Absolute name.
2178 ac_srcdir=$srcdir$ac_dir_suffix;
2179 ac_top_srcdir=$srcdir
2180 ac_abs_top_srcdir=$srcdir ;;
2181 *) # Relative name.
2182 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2183 ac_top_srcdir=$ac_top_build_prefix$srcdir
2184 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2185 esac
2186 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2187
2188 cd "$ac_dir" || { ac_status=$?; continue; }
2189 # Check for guested configure.
2190 if test -f "$ac_srcdir/configure.gnu"; then
2191 echo &&
2192 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2193 elif test -f "$ac_srcdir/configure"; then
2194 echo &&
2195 $SHELL "$ac_srcdir/configure" --help=recursive
2196 else
2197 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2198 fi || ac_status=$?
2199 cd "$ac_pwd" || { ac_status=$?; break; }
2200 done
2201 fi
2202
2203 test -n "$ac_init_help" && exit $ac_status
2204 if $ac_init_version; then
2205 cat <<\_ACEOF
2206 emacs configure 24.3.50
2207 generated by GNU Autoconf 2.65
2208
2209 Copyright (C) 2009 Free Software Foundation, Inc.
2210 This configure script is free software; the Free Software Foundation
2211 gives unlimited permission to copy, distribute and modify it.
2212 _ACEOF
2213 exit
2214 fi
2215
2216 ## ------------------------ ##
2217 ## Autoconf initialization. ##
2218 ## ------------------------ ##
2219
2220 # ac_fn_c_try_compile LINENO
2221 # --------------------------
2222 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2223 ac_fn_c_try_compile ()
2224 {
2225 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2226 rm -f conftest.$ac_objext
2227 if { { ac_try="$ac_compile"
2228 case "(($ac_try" in
2229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2230 *) ac_try_echo=$ac_try;;
2231 esac
2232 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2233 $as_echo "$ac_try_echo"; } >&5
2234 (eval "$ac_compile") 2>conftest.err
2235 ac_status=$?
2236 if test -s conftest.err; then
2237 grep -v '^ *+' conftest.err >conftest.er1
2238 cat conftest.er1 >&5
2239 mv -f conftest.er1 conftest.err
2240 fi
2241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2242 test $ac_status = 0; } && {
2243 test -z "$ac_c_werror_flag" ||
2244 test ! -s conftest.err
2245 } && test -s conftest.$ac_objext; then :
2246 ac_retval=0
2247 else
2248 $as_echo "$as_me: failed program was:" >&5
2249 sed 's/^/| /' conftest.$ac_ext >&5
2250
2251 ac_retval=1
2252 fi
2253 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2254 as_fn_set_status $ac_retval
2255
2256 } # ac_fn_c_try_compile
2257
2258 # ac_fn_c_try_cpp LINENO
2259 # ----------------------
2260 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2261 ac_fn_c_try_cpp ()
2262 {
2263 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2264 if { { ac_try="$ac_cpp conftest.$ac_ext"
2265 case "(($ac_try" in
2266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2267 *) ac_try_echo=$ac_try;;
2268 esac
2269 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2270 $as_echo "$ac_try_echo"; } >&5
2271 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2272 ac_status=$?
2273 if test -s conftest.err; then
2274 grep -v '^ *+' conftest.err >conftest.er1
2275 cat conftest.er1 >&5
2276 mv -f conftest.er1 conftest.err
2277 fi
2278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2279 test $ac_status = 0; } >/dev/null && {
2280 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2281 test ! -s conftest.err
2282 }; then :
2283 ac_retval=0
2284 else
2285 $as_echo "$as_me: failed program was:" >&5
2286 sed 's/^/| /' conftest.$ac_ext >&5
2287
2288 ac_retval=1
2289 fi
2290 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2291 as_fn_set_status $ac_retval
2292
2293 } # ac_fn_c_try_cpp
2294
2295 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2296 # -------------------------------------------------------
2297 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2298 # the include files in INCLUDES and setting the cache variable VAR
2299 # accordingly.
2300 ac_fn_c_check_header_mongrel ()
2301 {
2302 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2303 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2305 $as_echo_n "checking for $2... " >&6; }
2306 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2307 $as_echo_n "(cached) " >&6
2308 fi
2309 eval ac_res=\$$3
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2311 $as_echo "$ac_res" >&6; }
2312 else
2313 # Is the header compilable?
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2315 $as_echo_n "checking $2 usability... " >&6; }
2316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2317 /* end confdefs.h. */
2318 $4
2319 #include <$2>
2320 _ACEOF
2321 if ac_fn_c_try_compile "$LINENO"; then :
2322 ac_header_compiler=yes
2323 else
2324 ac_header_compiler=no
2325 fi
2326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2328 $as_echo "$ac_header_compiler" >&6; }
2329
2330 # Is the header present?
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2332 $as_echo_n "checking $2 presence... " >&6; }
2333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2334 /* end confdefs.h. */
2335 #include <$2>
2336 _ACEOF
2337 if ac_fn_c_try_cpp "$LINENO"; then :
2338 ac_header_preproc=yes
2339 else
2340 ac_header_preproc=no
2341 fi
2342 rm -f conftest.err conftest.$ac_ext
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2344 $as_echo "$ac_header_preproc" >&6; }
2345
2346 # So? What about this header?
2347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2348 yes:no: )
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2350 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2352 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2353 ;;
2354 no:yes:* )
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2356 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2358 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2360 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2362 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2364 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2365 ;;
2366 esac
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2368 $as_echo_n "checking for $2... " >&6; }
2369 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2370 $as_echo_n "(cached) " >&6
2371 else
2372 eval "$3=\$ac_header_compiler"
2373 fi
2374 eval ac_res=\$$3
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2376 $as_echo "$ac_res" >&6; }
2377 fi
2378 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2379
2380 } # ac_fn_c_check_header_mongrel
2381
2382 # ac_fn_c_try_run LINENO
2383 # ----------------------
2384 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2385 # that executables *can* be run.
2386 ac_fn_c_try_run ()
2387 {
2388 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2389 if { { ac_try="$ac_link"
2390 case "(($ac_try" in
2391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2392 *) ac_try_echo=$ac_try;;
2393 esac
2394 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2395 $as_echo "$ac_try_echo"; } >&5
2396 (eval "$ac_link") 2>&5
2397 ac_status=$?
2398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2399 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2400 { { case "(($ac_try" in
2401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2402 *) ac_try_echo=$ac_try;;
2403 esac
2404 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2405 $as_echo "$ac_try_echo"; } >&5
2406 (eval "$ac_try") 2>&5
2407 ac_status=$?
2408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2409 test $ac_status = 0; }; }; then :
2410 ac_retval=0
2411 else
2412 $as_echo "$as_me: program exited with status $ac_status" >&5
2413 $as_echo "$as_me: failed program was:" >&5
2414 sed 's/^/| /' conftest.$ac_ext >&5
2415
2416 ac_retval=$ac_status
2417 fi
2418 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2419 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2420 as_fn_set_status $ac_retval
2421
2422 } # ac_fn_c_try_run
2423
2424 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2425 # -------------------------------------------------------
2426 # Tests whether HEADER exists and can be compiled using the include files in
2427 # INCLUDES, setting the cache variable VAR accordingly.
2428 ac_fn_c_check_header_compile ()
2429 {
2430 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2432 $as_echo_n "checking for $2... " >&6; }
2433 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2434 $as_echo_n "(cached) " >&6
2435 else
2436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2437 /* end confdefs.h. */
2438 $4
2439 #include <$2>
2440 _ACEOF
2441 if ac_fn_c_try_compile "$LINENO"; then :
2442 eval "$3=yes"
2443 else
2444 eval "$3=no"
2445 fi
2446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2447 fi
2448 eval ac_res=\$$3
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2450 $as_echo "$ac_res" >&6; }
2451 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2452
2453 } # ac_fn_c_check_header_compile
2454
2455 # ac_fn_c_try_link LINENO
2456 # -----------------------
2457 # Try to link conftest.$ac_ext, and return whether this succeeded.
2458 ac_fn_c_try_link ()
2459 {
2460 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2461 rm -f conftest.$ac_objext conftest$ac_exeext
2462 if { { ac_try="$ac_link"
2463 case "(($ac_try" in
2464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2465 *) ac_try_echo=$ac_try;;
2466 esac
2467 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2468 $as_echo "$ac_try_echo"; } >&5
2469 (eval "$ac_link") 2>conftest.err
2470 ac_status=$?
2471 if test -s conftest.err; then
2472 grep -v '^ *+' conftest.err >conftest.er1
2473 cat conftest.er1 >&5
2474 mv -f conftest.er1 conftest.err
2475 fi
2476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2477 test $ac_status = 0; } && {
2478 test -z "$ac_c_werror_flag" ||
2479 test ! -s conftest.err
2480 } && test -s conftest$ac_exeext && {
2481 test "$cross_compiling" = yes ||
2482 $as_test_x conftest$ac_exeext
2483 }; then :
2484 ac_retval=0
2485 else
2486 $as_echo "$as_me: failed program was:" >&5
2487 sed 's/^/| /' conftest.$ac_ext >&5
2488
2489 ac_retval=1
2490 fi
2491 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2492 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2493 # interfere with the next link command; also delete a directory that is
2494 # left behind by Apple's compiler. We do this before executing the actions.
2495 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2496 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2497 as_fn_set_status $ac_retval
2498
2499 } # ac_fn_c_try_link
2500
2501 # ac_fn_c_check_decl LINENO SYMBOL VAR
2502 # ------------------------------------
2503 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2504 ac_fn_c_check_decl ()
2505 {
2506 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2508 $as_echo_n "checking whether $2 is declared... " >&6; }
2509 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2510 $as_echo_n "(cached) " >&6
2511 else
2512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2513 /* end confdefs.h. */
2514 $4
2515 int
2516 main ()
2517 {
2518 #ifndef $2
2519 (void) $2;
2520 #endif
2521
2522 ;
2523 return 0;
2524 }
2525 _ACEOF
2526 if ac_fn_c_try_compile "$LINENO"; then :
2527 eval "$3=yes"
2528 else
2529 eval "$3=no"
2530 fi
2531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2532 fi
2533 eval ac_res=\$$3
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2535 $as_echo "$ac_res" >&6; }
2536 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2537
2538 } # ac_fn_c_check_decl
2539
2540 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2541 # ----------------------------------------------
2542 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2543 ac_fn_c_check_header_preproc ()
2544 {
2545 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2547 $as_echo_n "checking for $2... " >&6; }
2548 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2549 $as_echo_n "(cached) " >&6
2550 else
2551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2552 /* end confdefs.h. */
2553 #include <$2>
2554 _ACEOF
2555 if ac_fn_c_try_cpp "$LINENO"; then :
2556 eval "$3=yes"
2557 else
2558 eval "$3=no"
2559 fi
2560 rm -f conftest.err conftest.$ac_ext
2561 fi
2562 eval ac_res=\$$3
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2564 $as_echo "$ac_res" >&6; }
2565 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2566
2567 } # ac_fn_c_check_header_preproc
2568
2569 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2570 # ----------------------------------------------------
2571 # Tries to find if the field MEMBER exists in type AGGR, after including
2572 # INCLUDES, setting cache variable VAR accordingly.
2573 ac_fn_c_check_member ()
2574 {
2575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2577 $as_echo_n "checking for $2.$3... " >&6; }
2578 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2579 $as_echo_n "(cached) " >&6
2580 else
2581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2582 /* end confdefs.h. */
2583 $5
2584 int
2585 main ()
2586 {
2587 static $2 ac_aggr;
2588 if (ac_aggr.$3)
2589 return 0;
2590 ;
2591 return 0;
2592 }
2593 _ACEOF
2594 if ac_fn_c_try_compile "$LINENO"; then :
2595 eval "$4=yes"
2596 else
2597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2598 /* end confdefs.h. */
2599 $5
2600 int
2601 main ()
2602 {
2603 static $2 ac_aggr;
2604 if (sizeof ac_aggr.$3)
2605 return 0;
2606 ;
2607 return 0;
2608 }
2609 _ACEOF
2610 if ac_fn_c_try_compile "$LINENO"; then :
2611 eval "$4=yes"
2612 else
2613 eval "$4=no"
2614 fi
2615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2616 fi
2617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2618 fi
2619 eval ac_res=\$$4
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2621 $as_echo "$ac_res" >&6; }
2622 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2623
2624 } # ac_fn_c_check_member
2625
2626 # ac_fn_c_check_func LINENO FUNC VAR
2627 # ----------------------------------
2628 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2629 ac_fn_c_check_func ()
2630 {
2631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2633 $as_echo_n "checking for $2... " >&6; }
2634 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2635 $as_echo_n "(cached) " >&6
2636 else
2637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2638 /* end confdefs.h. */
2639 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2640 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2641 #define $2 innocuous_$2
2642
2643 /* System header to define __stub macros and hopefully few prototypes,
2644 which can conflict with char $2 (); below.
2645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2646 <limits.h> exists even on freestanding compilers. */
2647
2648 #ifdef __STDC__
2649 # include <limits.h>
2650 #else
2651 # include <assert.h>
2652 #endif
2653
2654 #undef $2
2655
2656 /* Override any GCC internal prototype to avoid an error.
2657 Use char because int might match the return type of a GCC
2658 builtin and then its argument prototype would still apply. */
2659 #ifdef __cplusplus
2660 extern "C"
2661 #endif
2662 char $2 ();
2663 /* The GNU C library defines this for functions which it implements
2664 to always fail with ENOSYS. Some functions are actually named
2665 something starting with __ and the normal name is an alias. */
2666 #if defined __stub_$2 || defined __stub___$2
2667 choke me
2668 #endif
2669
2670 int
2671 main ()
2672 {
2673 return $2 ();
2674 ;
2675 return 0;
2676 }
2677 _ACEOF
2678 if ac_fn_c_try_link "$LINENO"; then :
2679 eval "$3=yes"
2680 else
2681 eval "$3=no"
2682 fi
2683 rm -f core conftest.err conftest.$ac_objext \
2684 conftest$ac_exeext conftest.$ac_ext
2685 fi
2686 eval ac_res=\$$3
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2688 $as_echo "$ac_res" >&6; }
2689 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2690
2691 } # ac_fn_c_check_func
2692
2693 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2694 # -------------------------------------------
2695 # Tests whether TYPE exists after having included INCLUDES, setting cache
2696 # variable VAR accordingly.
2697 ac_fn_c_check_type ()
2698 {
2699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2701 $as_echo_n "checking for $2... " >&6; }
2702 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2703 $as_echo_n "(cached) " >&6
2704 else
2705 eval "$3=no"
2706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2707 /* end confdefs.h. */
2708 $4
2709 int
2710 main ()
2711 {
2712 if (sizeof ($2))
2713 return 0;
2714 ;
2715 return 0;
2716 }
2717 _ACEOF
2718 if ac_fn_c_try_compile "$LINENO"; then :
2719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2720 /* end confdefs.h. */
2721 $4
2722 int
2723 main ()
2724 {
2725 if (sizeof (($2)))
2726 return 0;
2727 ;
2728 return 0;
2729 }
2730 _ACEOF
2731 if ac_fn_c_try_compile "$LINENO"; then :
2732
2733 else
2734 eval "$3=yes"
2735 fi
2736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2737 fi
2738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2739 fi
2740 eval ac_res=\$$3
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2742 $as_echo "$ac_res" >&6; }
2743 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2744
2745 } # ac_fn_c_check_type
2746
2747 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2748 # --------------------------------------------
2749 # Tries to find the compile-time value of EXPR in a program that includes
2750 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2751 # computed
2752 ac_fn_c_compute_int ()
2753 {
2754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2755 if test "$cross_compiling" = yes; then
2756 # Depending upon the size, compute the lo and hi bounds.
2757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2758 /* end confdefs.h. */
2759 $4
2760 int
2761 main ()
2762 {
2763 static int test_array [1 - 2 * !(($2) >= 0)];
2764 test_array [0] = 0
2765
2766 ;
2767 return 0;
2768 }
2769 _ACEOF
2770 if ac_fn_c_try_compile "$LINENO"; then :
2771 ac_lo=0 ac_mid=0
2772 while :; do
2773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2774 /* end confdefs.h. */
2775 $4
2776 int
2777 main ()
2778 {
2779 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2780 test_array [0] = 0
2781
2782 ;
2783 return 0;
2784 }
2785 _ACEOF
2786 if ac_fn_c_try_compile "$LINENO"; then :
2787 ac_hi=$ac_mid; break
2788 else
2789 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2790 if test $ac_lo -le $ac_mid; then
2791 ac_lo= ac_hi=
2792 break
2793 fi
2794 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2795 fi
2796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2797 done
2798 else
2799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2800 /* end confdefs.h. */
2801 $4
2802 int
2803 main ()
2804 {
2805 static int test_array [1 - 2 * !(($2) < 0)];
2806 test_array [0] = 0
2807
2808 ;
2809 return 0;
2810 }
2811 _ACEOF
2812 if ac_fn_c_try_compile "$LINENO"; then :
2813 ac_hi=-1 ac_mid=-1
2814 while :; do
2815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2816 /* end confdefs.h. */
2817 $4
2818 int
2819 main ()
2820 {
2821 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2822 test_array [0] = 0
2823
2824 ;
2825 return 0;
2826 }
2827 _ACEOF
2828 if ac_fn_c_try_compile "$LINENO"; then :
2829 ac_lo=$ac_mid; break
2830 else
2831 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2832 if test $ac_mid -le $ac_hi; then
2833 ac_lo= ac_hi=
2834 break
2835 fi
2836 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2837 fi
2838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2839 done
2840 else
2841 ac_lo= ac_hi=
2842 fi
2843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2844 fi
2845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2846 # Binary search between lo and hi bounds.
2847 while test "x$ac_lo" != "x$ac_hi"; do
2848 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2850 /* end confdefs.h. */
2851 $4
2852 int
2853 main ()
2854 {
2855 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2856 test_array [0] = 0
2857
2858 ;
2859 return 0;
2860 }
2861 _ACEOF
2862 if ac_fn_c_try_compile "$LINENO"; then :
2863 ac_hi=$ac_mid
2864 else
2865 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2866 fi
2867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2868 done
2869 case $ac_lo in #((
2870 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2871 '') ac_retval=1 ;;
2872 esac
2873 else
2874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2875 /* end confdefs.h. */
2876 $4
2877 static long int longval () { return $2; }
2878 static unsigned long int ulongval () { return $2; }
2879 #include <stdio.h>
2880 #include <stdlib.h>
2881 int
2882 main ()
2883 {
2884
2885 FILE *f = fopen ("conftest.val", "w");
2886 if (! f)
2887 return 1;
2888 if (($2) < 0)
2889 {
2890 long int i = longval ();
2891 if (i != ($2))
2892 return 1;
2893 fprintf (f, "%ld", i);
2894 }
2895 else
2896 {
2897 unsigned long int i = ulongval ();
2898 if (i != ($2))
2899 return 1;
2900 fprintf (f, "%lu", i);
2901 }
2902 /* Do not output a trailing newline, as this causes \r\n confusion
2903 on some platforms. */
2904 return ferror (f) || fclose (f) != 0;
2905
2906 ;
2907 return 0;
2908 }
2909 _ACEOF
2910 if ac_fn_c_try_run "$LINENO"; then :
2911 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2912 else
2913 ac_retval=1
2914 fi
2915 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2916 conftest.$ac_objext conftest.beam conftest.$ac_ext
2917 rm -f conftest.val
2918
2919 fi
2920 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2921 as_fn_set_status $ac_retval
2922
2923 } # ac_fn_c_compute_int
2924 cat >config.log <<_ACEOF
2925 This file contains any messages produced by compilers while
2926 running configure, to aid debugging if configure makes a mistake.
2927
2928 It was created by emacs $as_me 24.3.50, which was
2929 generated by GNU Autoconf 2.65. Invocation command line was
2930
2931 $ $0 $@
2932
2933 _ACEOF
2934 exec 5>>config.log
2935 {
2936 cat <<_ASUNAME
2937 ## --------- ##
2938 ## Platform. ##
2939 ## --------- ##
2940
2941 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2942 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2943 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2944 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2945 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2946
2947 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2948 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2949
2950 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2951 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2952 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2953 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2954 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2955 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2956 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2957
2958 _ASUNAME
2959
2960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2961 for as_dir in $PATH
2962 do
2963 IFS=$as_save_IFS
2964 test -z "$as_dir" && as_dir=.
2965 $as_echo "PATH: $as_dir"
2966 done
2967 IFS=$as_save_IFS
2968
2969 } >&5
2970
2971 cat >&5 <<_ACEOF
2972
2973
2974 ## ----------- ##
2975 ## Core tests. ##
2976 ## ----------- ##
2977
2978 _ACEOF
2979
2980
2981 # Keep a trace of the command line.
2982 # Strip out --no-create and --no-recursion so they do not pile up.
2983 # Strip out --silent because we don't want to record it for future runs.
2984 # Also quote any args containing shell meta-characters.
2985 # Make two passes to allow for proper duplicate-argument suppression.
2986 ac_configure_args=
2987 ac_configure_args0=
2988 ac_configure_args1=
2989 ac_must_keep_next=false
2990 for ac_pass in 1 2
2991 do
2992 for ac_arg
2993 do
2994 case $ac_arg in
2995 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2996 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2997 | -silent | --silent | --silen | --sile | --sil)
2998 continue ;;
2999 *\'*)
3000 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3001 esac
3002 case $ac_pass in
3003 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3004 2)
3005 as_fn_append ac_configure_args1 " '$ac_arg'"
3006 if test $ac_must_keep_next = true; then
3007 ac_must_keep_next=false # Got value, back to normal.
3008 else
3009 case $ac_arg in
3010 *=* | --config-cache | -C | -disable-* | --disable-* \
3011 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3012 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3013 | -with-* | --with-* | -without-* | --without-* | --x)
3014 case "$ac_configure_args0 " in
3015 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3016 esac
3017 ;;
3018 -* ) ac_must_keep_next=true ;;
3019 esac
3020 fi
3021 as_fn_append ac_configure_args " '$ac_arg'"
3022 ;;
3023 esac
3024 done
3025 done
3026 { ac_configure_args0=; unset ac_configure_args0;}
3027 { ac_configure_args1=; unset ac_configure_args1;}
3028
3029 # When interrupted or exit'd, cleanup temporary files, and complete
3030 # config.log. We remove comments because anyway the quotes in there
3031 # would cause problems or look ugly.
3032 # WARNING: Use '\'' to represent an apostrophe within the trap.
3033 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3034 trap 'exit_status=$?
3035 # Save into config.log some information that might help in debugging.
3036 {
3037 echo
3038
3039 cat <<\_ASBOX
3040 ## ---------------- ##
3041 ## Cache variables. ##
3042 ## ---------------- ##
3043 _ASBOX
3044 echo
3045 # The following way of writing the cache mishandles newlines in values,
3046 (
3047 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3048 eval ac_val=\$$ac_var
3049 case $ac_val in #(
3050 *${as_nl}*)
3051 case $ac_var in #(
3052 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3053 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3054 esac
3055 case $ac_var in #(
3056 _ | IFS | as_nl) ;; #(
3057 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3058 *) { eval $ac_var=; unset $ac_var;} ;;
3059 esac ;;
3060 esac
3061 done
3062 (set) 2>&1 |
3063 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3064 *${as_nl}ac_space=\ *)
3065 sed -n \
3066 "s/'\''/'\''\\\\'\'''\''/g;
3067 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3068 ;; #(
3069 *)
3070 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3071 ;;
3072 esac |
3073 sort
3074 )
3075 echo
3076
3077 cat <<\_ASBOX
3078 ## ----------------- ##
3079 ## Output variables. ##
3080 ## ----------------- ##
3081 _ASBOX
3082 echo
3083 for ac_var in $ac_subst_vars
3084 do
3085 eval ac_val=\$$ac_var
3086 case $ac_val in
3087 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3088 esac
3089 $as_echo "$ac_var='\''$ac_val'\''"
3090 done | sort
3091 echo
3092
3093 if test -n "$ac_subst_files"; then
3094 cat <<\_ASBOX
3095 ## ------------------- ##
3096 ## File substitutions. ##
3097 ## ------------------- ##
3098 _ASBOX
3099 echo
3100 for ac_var in $ac_subst_files
3101 do
3102 eval ac_val=\$$ac_var
3103 case $ac_val in
3104 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3105 esac
3106 $as_echo "$ac_var='\''$ac_val'\''"
3107 done | sort
3108 echo
3109 fi
3110
3111 if test -s confdefs.h; then
3112 cat <<\_ASBOX
3113 ## ----------- ##
3114 ## confdefs.h. ##
3115 ## ----------- ##
3116 _ASBOX
3117 echo
3118 cat confdefs.h
3119 echo
3120 fi
3121 test "$ac_signal" != 0 &&
3122 $as_echo "$as_me: caught signal $ac_signal"
3123 $as_echo "$as_me: exit $exit_status"
3124 } >&5
3125 rm -f core *.core core.conftest.* &&
3126 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3127 exit $exit_status
3128 ' 0
3129 for ac_signal in 1 2 13 15; do
3130 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3131 done
3132 ac_signal=0
3133
3134 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3135 rm -f -r conftest* confdefs.h
3136
3137 $as_echo "/* confdefs.h */" > confdefs.h
3138
3139 # Predefined preprocessor variables.
3140
3141 cat >>confdefs.h <<_ACEOF
3142 #define PACKAGE_NAME "$PACKAGE_NAME"
3143 _ACEOF
3144
3145 cat >>confdefs.h <<_ACEOF
3146 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3147 _ACEOF
3148
3149 cat >>confdefs.h <<_ACEOF
3150 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3151 _ACEOF
3152
3153 cat >>confdefs.h <<_ACEOF
3154 #define PACKAGE_STRING "$PACKAGE_STRING"
3155 _ACEOF
3156
3157 cat >>confdefs.h <<_ACEOF
3158 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3159 _ACEOF
3160
3161 cat >>confdefs.h <<_ACEOF
3162 #define PACKAGE_URL "$PACKAGE_URL"
3163 _ACEOF
3164
3165
3166 # Let the site file select an alternate cache file if it wants to.
3167 # Prefer an explicitly selected file to automatically selected ones.
3168 ac_site_file1=NONE
3169 ac_site_file2=NONE
3170 if test -n "$CONFIG_SITE"; then
3171 ac_site_file1=$CONFIG_SITE
3172 elif test "x$prefix" != xNONE; then
3173 ac_site_file1=$prefix/share/config.site
3174 ac_site_file2=$prefix/etc/config.site
3175 else
3176 ac_site_file1=$ac_default_prefix/share/config.site
3177 ac_site_file2=$ac_default_prefix/etc/config.site
3178 fi
3179 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3180 do
3181 test "x$ac_site_file" = xNONE && continue
3182 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3184 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3185 sed 's/^/| /' "$ac_site_file" >&5
3186 . "$ac_site_file"
3187 fi
3188 done
3189
3190 if test -r "$cache_file"; then
3191 # Some versions of bash will fail to source /dev/null (special files
3192 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3193 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3195 $as_echo "$as_me: loading cache $cache_file" >&6;}
3196 case $cache_file in
3197 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3198 *) . "./$cache_file";;
3199 esac
3200 fi
3201 else
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3203 $as_echo "$as_me: creating cache $cache_file" >&6;}
3204 >$cache_file
3205 fi
3206
3207 as_fn_append ac_header_list " linux/version.h"
3208 as_fn_append ac_header_list " sys/systeminfo.h"
3209 as_fn_append ac_header_list " fcntl.h"
3210 as_fn_append ac_header_list " coff.h"
3211 as_fn_append ac_header_list " pty.h"
3212 as_fn_append ac_header_list " sys/vlimit.h"
3213 as_fn_append ac_header_list " sys/resource.h"
3214 as_fn_append ac_header_list " sys/utsname.h"
3215 as_fn_append ac_header_list " pwd.h"
3216 as_fn_append ac_header_list " utmp.h"
3217 as_fn_append ac_header_list " dirent.h"
3218 as_fn_append ac_header_list " util.h"
3219 as_fn_append ac_header_list " sys/socket.h"
3220 as_fn_append ac_header_list " stdlib.h"
3221 as_fn_append ac_header_list " unistd.h"
3222 as_fn_append ac_header_list " sys/param.h"
3223 as_fn_append ac_header_list " pthread.h"
3224 as_fn_append ac_header_list " malloc/malloc.h"
3225 as_fn_append ac_header_list " maillock.h"
3226 as_fn_append ac_header_list " sys/un.h"
3227 as_fn_append ac_func_list " tzset"
3228 as_fn_append ac_func_list " readlinkat"
3229 as_fn_append ac_header_list " execinfo.h"
3230 as_fn_append ac_func_list " faccessat"
3231 as_fn_append ac_header_list " stdio_ext.h"
3232 as_fn_append ac_func_list " __fpending"
3233 gl_getopt_required=GNU
3234 as_fn_append ac_header_list " getopt.h"
3235 as_fn_append ac_func_list " gettimeofday"
3236 as_fn_append ac_func_list " nanotime"
3237 as_fn_append ac_header_list " sys/time.h"
3238 as_fn_append ac_header_list " wchar.h"
3239 as_fn_append ac_header_list " stdint.h"
3240 as_fn_append ac_header_list " inttypes.h"
3241 as_fn_append ac_func_list " lstat"
3242 as_fn_append ac_func_list " alarm"
3243 as_fn_append ac_header_list " sys/select.h"
3244 as_fn_append ac_func_list " pselect"
3245 as_fn_append ac_func_list " pthread_sigmask"
3246 as_fn_append ac_func_list " readlink"
3247 as_fn_append ac_func_list " strtoimax"
3248 as_fn_append ac_func_list " strtoumax"
3249 as_fn_append ac_func_list " symlink"
3250 as_fn_append ac_header_list " sys/stat.h"
3251 as_fn_append ac_func_list " localtime_r"
3252 as_fn_append ac_header_list " utime.h"
3253 as_fn_append ac_func_list " futimes"
3254 as_fn_append ac_func_list " futimesat"
3255 as_fn_append ac_func_list " futimens"
3256 as_fn_append ac_func_list " utimensat"
3257 as_fn_append ac_func_list " lutimes"
3258 # Check that the precious variables saved in the cache have kept the same
3259 # value.
3260 ac_cache_corrupted=false
3261 for ac_var in $ac_precious_vars; do
3262 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3263 eval ac_new_set=\$ac_env_${ac_var}_set
3264 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3265 eval ac_new_val=\$ac_env_${ac_var}_value
3266 case $ac_old_set,$ac_new_set in
3267 set,)
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3269 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3270 ac_cache_corrupted=: ;;
3271 ,set)
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3273 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3274 ac_cache_corrupted=: ;;
3275 ,);;
3276 *)
3277 if test "x$ac_old_val" != "x$ac_new_val"; then
3278 # differences in whitespace do not lead to failure.
3279 ac_old_val_w=`echo x $ac_old_val`
3280 ac_new_val_w=`echo x $ac_new_val`
3281 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3283 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3284 ac_cache_corrupted=:
3285 else
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3287 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3288 eval $ac_var=\$ac_old_val
3289 fi
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3291 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3293 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3294 fi;;
3295 esac
3296 # Pass precious variables to config.status.
3297 if test "$ac_new_set" = set; then
3298 case $ac_new_val in
3299 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3300 *) ac_arg=$ac_var=$ac_new_val ;;
3301 esac
3302 case " $ac_configure_args " in
3303 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3304 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3305 esac
3306 fi
3307 done
3308 if $ac_cache_corrupted; then
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3310 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3312 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3313 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3314 fi
3315 ## -------------------- ##
3316 ## Main body of script. ##
3317 ## -------------------- ##
3318
3319 ac_ext=c
3320 ac_cpp='$CPP $CPPFLAGS'
3321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3324
3325
3326 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3327
3328
3329 ac_aux_dir=
3330 for ac_dir in build-aux "$srcdir"/build-aux; do
3331 for ac_t in install-sh install.sh shtool; do
3332 if test -f "$ac_dir/$ac_t"; then
3333 ac_aux_dir=$ac_dir
3334 ac_install_sh="$ac_aux_dir/$ac_t -c"
3335 break 2
3336 fi
3337 done
3338 done
3339 if test -z "$ac_aux_dir"; then
3340 as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3341 fi
3342
3343 # These three variables are undocumented and unsupported,
3344 # and are intended to be withdrawn in a future Autoconf release.
3345 # They can cause serious problems if a builder's source tree is in a directory
3346 # whose full name contains unusual characters.
3347 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3348 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3349 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3350
3351
3352 am__api_version='1.11'
3353
3354 # Find a good install program. We prefer a C program (faster),
3355 # so one script is as good as another. But avoid the broken or
3356 # incompatible versions:
3357 # SysV /etc/install, /usr/sbin/install
3358 # SunOS /usr/etc/install
3359 # IRIX /sbin/install
3360 # AIX /bin/install
3361 # AmigaOS /C/install, which installs bootblocks on floppy discs
3362 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3363 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3364 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3365 # OS/2's system install, which has a completely different semantic
3366 # ./install, which can be erroneously created by make from ./install.sh.
3367 # Reject install programs that cannot install multiple files.
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3369 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3370 if test -z "$INSTALL"; then
3371 if test "${ac_cv_path_install+set}" = set; then :
3372 $as_echo_n "(cached) " >&6
3373 else
3374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3375 for as_dir in $PATH
3376 do
3377 IFS=$as_save_IFS
3378 test -z "$as_dir" && as_dir=.
3379 # Account for people who put trailing slashes in PATH elements.
3380 case $as_dir/ in #((
3381 ./ | .// | /[cC]/* | \
3382 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3383 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3384 /usr/ucb/* ) ;;
3385 *)
3386 # OSF1 and SCO ODT 3.0 have their own names for install.
3387 # Don't use installbsd from OSF since it installs stuff as root
3388 # by default.
3389 for ac_prog in ginstall scoinst install; do
3390 for ac_exec_ext in '' $ac_executable_extensions; do
3391 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3392 if test $ac_prog = install &&
3393 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3394 # AIX install. It has an incompatible calling convention.
3395 :
3396 elif test $ac_prog = install &&
3397 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3398 # program-specific install script used by HP pwplus--don't use.
3399 :
3400 else
3401 rm -rf conftest.one conftest.two conftest.dir
3402 echo one > conftest.one
3403 echo two > conftest.two
3404 mkdir conftest.dir
3405 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3406 test -s conftest.one && test -s conftest.two &&
3407 test -s conftest.dir/conftest.one &&
3408 test -s conftest.dir/conftest.two
3409 then
3410 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3411 break 3
3412 fi
3413 fi
3414 fi
3415 done
3416 done
3417 ;;
3418 esac
3419
3420 done
3421 IFS=$as_save_IFS
3422
3423 rm -rf conftest.one conftest.two conftest.dir
3424
3425 fi
3426 if test "${ac_cv_path_install+set}" = set; then
3427 INSTALL=$ac_cv_path_install
3428 else
3429 # As a last resort, use the slow shell script. Don't cache a
3430 # value for INSTALL within a source directory, because that will
3431 # break other packages using the cache if that directory is
3432 # removed, or if the value is a relative name.
3433 INSTALL=$ac_install_sh
3434 fi
3435 fi
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3437 $as_echo "$INSTALL" >&6; }
3438
3439 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3440 # It thinks the first close brace ends the variable substitution.
3441 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3442
3443 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3444
3445 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3446
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3448 $as_echo_n "checking whether build environment is sane... " >&6; }
3449 # Just in case
3450 sleep 1
3451 echo timestamp > conftest.file
3452 # Reject unsafe characters in $srcdir or the absolute working directory
3453 # name. Accept space and tab only in the latter.
3454 am_lf='
3455 '
3456 case `pwd` in
3457 *[\\\"\#\$\&\'\`$am_lf]*)
3458 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3459 esac
3460 case $srcdir in
3461 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3462 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3463 esac
3464
3465 # Do `set' in a subshell so we don't clobber the current shell's
3466 # arguments. Must try -L first in case configure is actually a
3467 # symlink; some systems play weird games with the mod time of symlinks
3468 # (eg FreeBSD returns the mod time of the symlink's containing
3469 # directory).
3470 if (
3471 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3472 if test "$*" = "X"; then
3473 # -L didn't work.
3474 set X `ls -t "$srcdir/configure" conftest.file`
3475 fi
3476 rm -f conftest.file
3477 if test "$*" != "X $srcdir/configure conftest.file" \
3478 && test "$*" != "X conftest.file $srcdir/configure"; then
3479
3480 # If neither matched, then we have a broken ls. This can happen
3481 # if, for instance, CONFIG_SHELL is bash and it inherits a
3482 # broken ls alias from the environment. This has actually
3483 # happened. Such a system could not be considered "sane".
3484 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3485 alias in your environment" "$LINENO" 5
3486 fi
3487
3488 test "$2" = conftest.file
3489 )
3490 then
3491 # Ok.
3492 :
3493 else
3494 as_fn_error "newly created file is older than distributed files!
3495 Check your system clock" "$LINENO" 5
3496 fi
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3498 $as_echo "yes" >&6; }
3499 test "$program_prefix" != NONE &&
3500 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3501 # Use a double $ so make ignores it.
3502 test "$program_suffix" != NONE &&
3503 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3504 # Double any \ or $.
3505 # By default was `s,x,x', remove it if useless.
3506 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3507 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3508
3509 # expand $ac_aux_dir to an absolute path
3510 am_aux_dir=`cd $ac_aux_dir && pwd`
3511
3512 if test x"${MISSING+set}" != xset; then
3513 case $am_aux_dir in
3514 *\ * | *\ *)
3515 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3516 *)
3517 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3518 esac
3519 fi
3520 # Use eval to expand $SHELL
3521 if eval "$MISSING --run true"; then
3522 am_missing_run="$MISSING --run "
3523 else
3524 am_missing_run=
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3526 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3527 fi
3528
3529 if test x"${install_sh}" != xset; then
3530 case $am_aux_dir in
3531 *\ * | *\ *)
3532 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3533 *)
3534 install_sh="\${SHELL} $am_aux_dir/install-sh"
3535 esac
3536 fi
3537
3538 # Installed binaries are usually stripped using `strip' when the user
3539 # run `make install-strip'. However `strip' might not be the right
3540 # tool to use in cross-compilation environments, therefore Automake
3541 # will honor the `STRIP' environment variable to overrule this program.
3542 if test "$cross_compiling" != no; then
3543 if test -n "$ac_tool_prefix"; then
3544 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3545 set dummy ${ac_tool_prefix}strip; ac_word=$2
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3547 $as_echo_n "checking for $ac_word... " >&6; }
3548 if test "${ac_cv_prog_STRIP+set}" = set; then :
3549 $as_echo_n "(cached) " >&6
3550 else
3551 if test -n "$STRIP"; then
3552 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3553 else
3554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3555 for as_dir in $PATH
3556 do
3557 IFS=$as_save_IFS
3558 test -z "$as_dir" && as_dir=.
3559 for ac_exec_ext in '' $ac_executable_extensions; do
3560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3561 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3563 break 2
3564 fi
3565 done
3566 done
3567 IFS=$as_save_IFS
3568
3569 fi
3570 fi
3571 STRIP=$ac_cv_prog_STRIP
3572 if test -n "$STRIP"; then
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3574 $as_echo "$STRIP" >&6; }
3575 else
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3577 $as_echo "no" >&6; }
3578 fi
3579
3580
3581 fi
3582 if test -z "$ac_cv_prog_STRIP"; then
3583 ac_ct_STRIP=$STRIP
3584 # Extract the first word of "strip", so it can be a program name with args.
3585 set dummy strip; ac_word=$2
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3587 $as_echo_n "checking for $ac_word... " >&6; }
3588 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3589 $as_echo_n "(cached) " >&6
3590 else
3591 if test -n "$ac_ct_STRIP"; then
3592 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3593 else
3594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595 for as_dir in $PATH
3596 do
3597 IFS=$as_save_IFS
3598 test -z "$as_dir" && as_dir=.
3599 for ac_exec_ext in '' $ac_executable_extensions; do
3600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3601 ac_cv_prog_ac_ct_STRIP="strip"
3602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3603 break 2
3604 fi
3605 done
3606 done
3607 IFS=$as_save_IFS
3608
3609 fi
3610 fi
3611 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3612 if test -n "$ac_ct_STRIP"; then
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3614 $as_echo "$ac_ct_STRIP" >&6; }
3615 else
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3617 $as_echo "no" >&6; }
3618 fi
3619
3620 if test "x$ac_ct_STRIP" = x; then
3621 STRIP=":"
3622 else
3623 case $cross_compiling:$ac_tool_warned in
3624 yes:)
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3627 ac_tool_warned=yes ;;
3628 esac
3629 STRIP=$ac_ct_STRIP
3630 fi
3631 else
3632 STRIP="$ac_cv_prog_STRIP"
3633 fi
3634
3635 fi
3636 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3637
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3639 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3640 if test -z "$MKDIR_P"; then
3641 if test "${ac_cv_path_mkdir+set}" = set; then :
3642 $as_echo_n "(cached) " >&6
3643 else
3644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3645 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3646 do
3647 IFS=$as_save_IFS
3648 test -z "$as_dir" && as_dir=.
3649 for ac_prog in mkdir gmkdir; do
3650 for ac_exec_ext in '' $ac_executable_extensions; do
3651 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3652 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3653 'mkdir (GNU coreutils) '* | \
3654 'mkdir (coreutils) '* | \
3655 'mkdir (fileutils) '4.1*)
3656 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3657 break 3;;
3658 esac
3659 done
3660 done
3661 done
3662 IFS=$as_save_IFS
3663
3664 fi
3665
3666 test -d ./--version && rmdir ./--version
3667 if test "${ac_cv_path_mkdir+set}" = set; then
3668 MKDIR_P="$ac_cv_path_mkdir -p"
3669 else
3670 # As a last resort, use the slow shell script. Don't cache a
3671 # value for MKDIR_P within a source directory, because that will
3672 # break other packages using the cache if that directory is
3673 # removed, or if the value is a relative name.
3674 MKDIR_P="$ac_install_sh -d"
3675 fi
3676 fi
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3678 $as_echo "$MKDIR_P" >&6; }
3679
3680
3681 mkdir_p="$MKDIR_P"
3682 case $mkdir_p in
3683 [\\/$]* | ?:[\\/]*) ;;
3684 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3685 esac
3686
3687 for ac_prog in gawk mawk nawk awk
3688 do
3689 # Extract the first word of "$ac_prog", so it can be a program name with args.
3690 set dummy $ac_prog; ac_word=$2
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3692 $as_echo_n "checking for $ac_word... " >&6; }
3693 if test "${ac_cv_prog_AWK+set}" = set; then :
3694 $as_echo_n "(cached) " >&6
3695 else
3696 if test -n "$AWK"; then
3697 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3698 else
3699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3700 for as_dir in $PATH
3701 do
3702 IFS=$as_save_IFS
3703 test -z "$as_dir" && as_dir=.
3704 for ac_exec_ext in '' $ac_executable_extensions; do
3705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3706 ac_cv_prog_AWK="$ac_prog"
3707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3708 break 2
3709 fi
3710 done
3711 done
3712 IFS=$as_save_IFS
3713
3714 fi
3715 fi
3716 AWK=$ac_cv_prog_AWK
3717 if test -n "$AWK"; then
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3719 $as_echo "$AWK" >&6; }
3720 else
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3722 $as_echo "no" >&6; }
3723 fi
3724
3725
3726 test -n "$AWK" && break
3727 done
3728
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3730 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3731 set x ${MAKE-make}
3732 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3733 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3734 $as_echo_n "(cached) " >&6
3735 else
3736 cat >conftest.make <<\_ACEOF
3737 SHELL = /bin/sh
3738 all:
3739 @echo '@@@%%%=$(MAKE)=@@@%%%'
3740 _ACEOF
3741 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3742 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3743 *@@@%%%=?*=@@@%%%*)
3744 eval ac_cv_prog_make_${ac_make}_set=yes;;
3745 *)
3746 eval ac_cv_prog_make_${ac_make}_set=no;;
3747 esac
3748 rm -f conftest.make
3749 fi
3750 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3752 $as_echo "yes" >&6; }
3753 SET_MAKE=
3754 else
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3756 $as_echo "no" >&6; }
3757 SET_MAKE="MAKE=${MAKE-make}"
3758 fi
3759
3760 rm -rf .tst 2>/dev/null
3761 mkdir .tst 2>/dev/null
3762 if test -d .tst; then
3763 am__leading_dot=.
3764 else
3765 am__leading_dot=_
3766 fi
3767 rmdir .tst 2>/dev/null
3768
3769 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3770 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3771 # is not polluted with repeated "-I."
3772 am__isrc=' -I$(srcdir)'
3773 # test to see if srcdir already configured
3774 if test -f $srcdir/config.status; then
3775 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3776 fi
3777 fi
3778
3779 # test whether we have cygpath
3780 if test -z "$CYGPATH_W"; then
3781 if (cygpath --version) >/dev/null 2>/dev/null; then
3782 CYGPATH_W='cygpath -w'
3783 else
3784 CYGPATH_W=echo
3785 fi
3786 fi
3787
3788
3789 # Define the identity of the package.
3790 PACKAGE='emacs'
3791 VERSION='24.3.50'
3792
3793
3794 cat >>confdefs.h <<_ACEOF
3795 #define PACKAGE "$PACKAGE"
3796 _ACEOF
3797
3798
3799 cat >>confdefs.h <<_ACEOF
3800 #define VERSION "$VERSION"
3801 _ACEOF
3802
3803 # Some tools Automake needs.
3804
3805 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3806
3807
3808 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3809
3810
3811 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3812
3813
3814 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3815
3816
3817 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3818
3819 # We need awk for the "check" target. The system "awk" is bad on
3820 # some platforms.
3821 # Always define AMTAR for backward compatibility.
3822
3823 AMTAR=${AMTAR-"${am_missing_run}tar"}
3824
3825 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3826
3827
3828
3829
3830
3831
3832
3833
3834 lispdir='${datadir}/emacs/${version}/lisp'
3835 leimdir='${datadir}/emacs/${version}/leim'
3836 standardlisppath='${lispdir}:${leimdir}'
3837 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3838 '${datadir}/emacs/site-lisp'
3839 lisppath='${locallisppath}:${standardlisppath}'
3840 etcdir='${datadir}/emacs/${version}/etc'
3841 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3842 docdir='${datadir}/emacs/${version}/etc'
3843 gamedir='${localstatedir}/games/emacs'
3844
3845
3846 # Check whether --with-all was given.
3847 if test "${with_all+set}" = set; then :
3848 withval=$with_all; with_features=$withval
3849 else
3850 with_features=yes
3851 fi
3852
3853
3854
3855
3856
3857 # Check whether --with-pop was given.
3858 if test "${with_pop+set}" = set; then :
3859 withval=$with_pop;
3860 else
3861 with_pop=$with_features
3862 fi
3863
3864 if test "$with_pop" = yes; then
3865 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3866
3867 fi
3868
3869
3870 # Check whether --with-kerberos was given.
3871 if test "${with_kerberos+set}" = set; then :
3872 withval=$with_kerberos;
3873 else
3874 with_kerberos=no
3875 fi
3876
3877 if test "$with_kerberos" != no; then
3878 $as_echo "#define KERBEROS 1" >>confdefs.h
3879
3880 fi
3881
3882
3883 # Check whether --with-kerberos5 was given.
3884 if test "${with_kerberos5+set}" = set; then :
3885 withval=$with_kerberos5;
3886 else
3887 with_kerberos5=no
3888 fi
3889
3890 if test "${with_kerberos5}" != no; then
3891 if test "${with_kerberos}" = no; then
3892 with_kerberos=yes
3893 $as_echo "#define KERBEROS 1" >>confdefs.h
3894
3895 fi
3896
3897 $as_echo "#define KERBEROS5 1" >>confdefs.h
3898
3899 fi
3900
3901
3902 # Check whether --with-hesiod was given.
3903 if test "${with_hesiod+set}" = set; then :
3904 withval=$with_hesiod;
3905 else
3906 with_hesiod=no
3907 fi
3908
3909 if test "$with_hesiod" != no; then
3910
3911 $as_echo "#define HESIOD 1" >>confdefs.h
3912
3913 fi
3914
3915
3916 # Check whether --with-mmdf was given.
3917 if test "${with_mmdf+set}" = set; then :
3918 withval=$with_mmdf;
3919 else
3920 with_mmdf=no
3921 fi
3922
3923 if test "$with_mmdf" != no; then
3924
3925 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3926
3927 fi
3928
3929
3930 # Check whether --with-mail-unlink was given.
3931 if test "${with_mail_unlink+set}" = set; then :
3932 withval=$with_mail_unlink;
3933 else
3934 with_mail_unlink=no
3935 fi
3936
3937 if test "$with_mail_unlink" != no; then
3938
3939 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3940
3941 fi
3942
3943
3944 # Check whether --with-mailhost was given.
3945 if test "${with_mailhost+set}" = set; then :
3946 withval=$with_mailhost;
3947 cat >>confdefs.h <<_ACEOF
3948 #define MAILHOST "$withval"
3949 _ACEOF
3950
3951 fi
3952
3953
3954
3955 # Check whether --with-sound was given.
3956 if test "${with_sound+set}" = set; then :
3957 withval=$with_sound;
3958 else
3959 with_sound=$with_features
3960 fi
3961
3962
3963
3964 # Check whether --with-x-toolkit was given.
3965 if test "${with_x_toolkit+set}" = set; then :
3966 withval=$with_x_toolkit; case "${withval}" in
3967 y | ye | yes ) val=gtk ;;
3968 n | no ) val=no ;;
3969 l | lu | luc | luci | lucid ) val=lucid ;;
3970 a | at | ath | athe | athen | athena ) val=athena ;;
3971 m | mo | mot | moti | motif ) val=motif ;;
3972 g | gt | gtk ) val=gtk ;;
3973 gtk2 ) val=gtk2 ;;
3974 gtk3 ) val=gtk3 ;;
3975 * )
3976 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
3977 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk',
3978 \`gtk2' or \`gtk3'. \`yes' and \`gtk' are synonyms.
3979 \`athena' and \`lucid' are synonyms." "$LINENO" 5
3980 ;;
3981 esac
3982 with_x_toolkit=$val
3983
3984 fi
3985
3986
3987
3988 # Check whether --with-wide-int was given.
3989 if test "${with_wide_int+set}" = set; then :
3990 withval=$with_wide_int;
3991 else
3992 with_wide_int=no
3993 fi
3994
3995 if test "$with_wide_int" = yes; then
3996
3997 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
3998
3999 fi
4000
4001
4002 # Check whether --with-xpm was given.
4003 if test "${with_xpm+set}" = set; then :
4004 withval=$with_xpm;
4005 else
4006 with_xpm=$with_features
4007 fi
4008
4009
4010 # Check whether --with-jpeg was given.
4011 if test "${with_jpeg+set}" = set; then :
4012 withval=$with_jpeg;
4013 else
4014 with_jpeg=$with_features
4015 fi
4016
4017
4018 # Check whether --with-tiff was given.
4019 if test "${with_tiff+set}" = set; then :
4020 withval=$with_tiff;
4021 else
4022 with_tiff=$with_features
4023 fi
4024
4025
4026 # Check whether --with-gif was given.
4027 if test "${with_gif+set}" = set; then :
4028 withval=$with_gif;
4029 else
4030 with_gif=$with_features
4031 fi
4032
4033
4034 # Check whether --with-png was given.
4035 if test "${with_png+set}" = set; then :
4036 withval=$with_png;
4037 else
4038 with_png=$with_features
4039 fi
4040
4041
4042 # Check whether --with-rsvg was given.
4043 if test "${with_rsvg+set}" = set; then :
4044 withval=$with_rsvg;
4045 else
4046 with_rsvg=$with_features
4047 fi
4048
4049
4050 # Check whether --with-xml2 was given.
4051 if test "${with_xml2+set}" = set; then :
4052 withval=$with_xml2;
4053 else
4054 with_xml2=$with_features
4055 fi
4056
4057
4058 # Check whether --with-imagemagick was given.
4059 if test "${with_imagemagick+set}" = set; then :
4060 withval=$with_imagemagick;
4061 else
4062 with_imagemagick=$with_features
4063 fi
4064
4065
4066
4067 # Check whether --with-xft was given.
4068 if test "${with_xft+set}" = set; then :
4069 withval=$with_xft;
4070 else
4071 with_xft=$with_features
4072 fi
4073
4074
4075 # Check whether --with-libotf was given.
4076 if test "${with_libotf+set}" = set; then :
4077 withval=$with_libotf;
4078 else
4079 with_libotf=$with_features
4080 fi
4081
4082
4083 # Check whether --with-m17n-flt was given.
4084 if test "${with_m17n_flt+set}" = set; then :
4085 withval=$with_m17n_flt;
4086 else
4087 with_m17n_flt=$with_features
4088 fi
4089
4090
4091
4092 # Check whether --with-toolkit-scroll-bars was given.
4093 if test "${with_toolkit_scroll_bars+set}" = set; then :
4094 withval=$with_toolkit_scroll_bars;
4095 else
4096 with_toolkit_scroll_bars=$with_features
4097 fi
4098
4099
4100 # Check whether --with-xaw3d was given.
4101 if test "${with_xaw3d+set}" = set; then :
4102 withval=$with_xaw3d;
4103 else
4104 with_xaw3d=$with_features
4105 fi
4106
4107
4108 # Check whether --with-xim was given.
4109 if test "${with_xim+set}" = set; then :
4110 withval=$with_xim;
4111 else
4112 with_xim=$with_features
4113 fi
4114
4115
4116 # Check whether --with-ns was given.
4117 if test "${with_ns+set}" = set; then :
4118 withval=$with_ns;
4119 else
4120 with_ns=no
4121 fi
4122
4123
4124 # Check whether --with-w32 was given.
4125 if test "${with_w32+set}" = set; then :
4126 withval=$with_w32;
4127 else
4128 with_w32=no
4129 fi
4130
4131
4132
4133 # Check whether --with-gpm was given.
4134 if test "${with_gpm+set}" = set; then :
4135 withval=$with_gpm;
4136 else
4137 with_gpm=$with_features
4138 fi
4139
4140
4141 # Check whether --with-dbus was given.
4142 if test "${with_dbus+set}" = set; then :
4143 withval=$with_dbus;
4144 else
4145 with_dbus=$with_features
4146 fi
4147
4148
4149 # Check whether --with-gconf was given.
4150 if test "${with_gconf+set}" = set; then :
4151 withval=$with_gconf;
4152 else
4153 with_gconf=$with_features
4154 fi
4155
4156
4157 # Check whether --with-gsettings was given.
4158 if test "${with_gsettings+set}" = set; then :
4159 withval=$with_gsettings;
4160 else
4161 with_gsettings=$with_features
4162 fi
4163
4164
4165 # Check whether --with-selinux was given.
4166 if test "${with_selinux+set}" = set; then :
4167 withval=$with_selinux;
4168 else
4169 with_selinux=$with_features
4170 fi
4171
4172
4173 # Check whether --with-gnutls was given.
4174 if test "${with_gnutls+set}" = set; then :
4175 withval=$with_gnutls;
4176 else
4177 with_gnutls=$with_features
4178 fi
4179
4180
4181 ## For the times when you want to build Emacs but don't have
4182 ## a suitable makeinfo, and can live without the manuals.
4183
4184 # Check whether --with-makeinfo was given.
4185 if test "${with_makeinfo+set}" = set; then :
4186 withval=$with_makeinfo;
4187 else
4188 with_makeinfo=$with_features
4189 fi
4190
4191
4192 ## Makefile.in needs the cache file name.
4193
4194
4195 ## This is an option because I do not know if all info/man support
4196 ## compressed files, nor how to test if they do so.
4197
4198 # Check whether --with-compress-info was given.
4199 if test "${with_compress_info+set}" = set; then :
4200 withval=$with_compress_info;
4201 else
4202 with_compress_info=$with_features
4203 fi
4204
4205 if test $with_compress_info = yes; then
4206 GZIP_INFO=yes
4207 else
4208 GZIP_INFO=
4209 fi
4210
4211
4212
4213 # Check whether --with-pkg-config-prog was given.
4214 if test "${with_pkg_config_prog+set}" = set; then :
4215 withval=$with_pkg_config_prog;
4216 fi
4217
4218 if test "X${with_pkg_config_prog}" != X; then
4219 if test "${with_pkg_config_prog}" != yes; then
4220 PKG_CONFIG="${with_pkg_config_prog}"
4221 fi
4222 fi
4223
4224 CRT_DIR=
4225
4226 # Check whether --with-crt-dir was given.
4227 if test "${with_crt_dir+set}" = set; then :
4228 withval=$with_crt_dir;
4229 fi
4230
4231 CRT_DIR="${with_crt_dir}"
4232
4233
4234 # Check whether --with-gameuser was given.
4235 if test "${with_gameuser+set}" = set; then :
4236 withval=$with_gameuser;
4237 fi
4238
4239 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
4240 && gameuser="${with_gameuser}"
4241 test "X$gameuser" = X && gameuser=games
4242
4243
4244 # Check whether --with-gnustep-conf was given.
4245 if test "${with_gnustep_conf+set}" = set; then :
4246 withval=$with_gnustep_conf;
4247 fi
4248
4249 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4250 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4251 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4252 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4253
4254 # Check whether --enable-ns-self-contained was given.
4255 if test "${enable_ns_self_contained+set}" = set; then :
4256 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4257 else
4258 EN_NS_SELF_CONTAINED=yes
4259 fi
4260
4261
4262 # Check whether --enable-locallisppath was given.
4263 if test "${enable_locallisppath+set}" = set; then :
4264 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4265 locallisppath=
4266 elif test "${enableval}" != "yes"; then
4267 locallisppath=${enableval}
4268 fi
4269 fi
4270
4271
4272 # Check whether --enable-checking was given.
4273 if test "${enable_checking+set}" = set; then :
4274 enableval=$enable_checking; ac_checking_flags="${enableval}"
4275 fi
4276
4277 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4278 for check in $ac_checking_flags
4279 do
4280 case $check in
4281 # these set all the flags to specific states
4282 yes) ac_enable_checking=1 ;;
4283 no) ac_enable_checking= ;
4284 ac_gc_check_stringbytes= ;
4285 ac_gc_check_string_overrun= ;
4286 ac_gc_check_string_free_list= ;
4287 ac_xmalloc_overrun= ;
4288 ac_gc_check_cons_list= ;
4289 ac_glyphs_debug= ;;
4290 all) ac_enable_checking=1 ;
4291 ac_gc_check_stringbytes=1 ;
4292 ac_gc_check_string_overrun=1 ;
4293 ac_gc_check_string_free_list=1 ;
4294 ac_xmalloc_overrun=1 ;
4295 ac_gc_check_cons_list=1 ;
4296 ac_glyphs_debug=1 ;;
4297 # these enable particular checks
4298 stringbytes) ac_gc_check_stringbytes=1 ;;
4299 stringoverrun) ac_gc_check_string_overrun=1 ;;
4300 stringfreelist) ac_gc_check_string_free_list=1 ;;
4301 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4302 conslist) ac_gc_check_cons_list=1 ;;
4303 glyphs) ac_glyphs_debug=1 ;;
4304 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
4305 esac
4306 done
4307 IFS="$ac_save_IFS"
4308
4309 if test x$ac_enable_checking != x ; then
4310
4311 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4312
4313 fi
4314 if test x$ac_gc_check_stringbytes != x ; then
4315
4316 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4317
4318 fi
4319 if test x$ac_gc_check_string_overrun != x ; then
4320
4321 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4322
4323 fi
4324 if test x$ac_gc_check_string_free_list != x ; then
4325
4326 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4327
4328 fi
4329 if test x$ac_xmalloc_overrun != x ; then
4330
4331 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4332
4333 fi
4334 if test x$ac_gc_check_cons_list != x ; then
4335
4336 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4337
4338 fi
4339 if test x$ac_glyphs_debug != x ; then
4340
4341 $as_echo "#define GLYPH_DEBUG 1" >>confdefs.h
4342
4343 fi
4344
4345 # Check whether --enable-check-lisp-object-type was given.
4346 if test "${enable_check_lisp_object_type+set}" = set; then :
4347 enableval=$enable_check_lisp_object_type; if test "${enableval}" != "no"; then
4348
4349 $as_echo "#define CHECK_LISP_OBJECT_TYPE 1" >>confdefs.h
4350
4351 fi
4352 fi
4353
4354
4355
4356 # Check whether --enable-profiling was given.
4357 if test "${enable_profiling+set}" = set; then :
4358 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4359 fi
4360
4361 if test x$ac_enable_profiling != x ; then
4362 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4363 else
4364 PROFILING_CFLAGS=
4365 fi
4366
4367
4368 # Check whether --enable-autodepend was given.
4369 if test "${enable_autodepend+set}" = set; then :
4370 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4371 else
4372 ac_enable_autodepend=yes
4373 fi
4374
4375
4376 #### Make srcdir absolute, if it isn't already. It's important to
4377 #### avoid running the path through pwd unnecessarily, since pwd can
4378 #### give you automounter prefixes, which can go away. We do all this
4379 #### so Emacs can find its files when run uninstalled.
4380 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4381 unset CDPATH
4382 case "${srcdir}" in
4383 /* ) ;;
4384 . )
4385 ## We may be able to use the $PWD environment variable to make this
4386 ## absolute. But sometimes PWD is inaccurate.
4387 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4388 ## but that tested only for a well-formed and valid PWD,
4389 ## it did not object when PWD was well-formed and valid but just wrong.
4390 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4391 then
4392 srcdir="$PWD"
4393 else
4394 srcdir="`(cd ${srcdir}; pwd)`"
4395 fi
4396 ;;
4397 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
4398 esac
4399
4400 ### Canonicalize the configuration name.
4401
4402 # Make sure we can run config.sub.
4403 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4404 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4405
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4407 $as_echo_n "checking build system type... " >&6; }
4408 if test "${ac_cv_build+set}" = set; then :
4409 $as_echo_n "(cached) " >&6
4410 else
4411 ac_build_alias=$build_alias
4412 test "x$ac_build_alias" = x &&
4413 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4414 test "x$ac_build_alias" = x &&
4415 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4416 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4417 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4418
4419 fi
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4421 $as_echo "$ac_cv_build" >&6; }
4422 case $ac_cv_build in
4423 *-*-*) ;;
4424 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4425 esac
4426 build=$ac_cv_build
4427 ac_save_IFS=$IFS; IFS='-'
4428 set x $ac_cv_build
4429 shift
4430 build_cpu=$1
4431 build_vendor=$2
4432 shift; shift
4433 # Remember, the first character of IFS is used to create $*,
4434 # except with old shells:
4435 build_os=$*
4436 IFS=$ac_save_IFS
4437 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4438
4439
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4441 $as_echo_n "checking host system type... " >&6; }
4442 if test "${ac_cv_host+set}" = set; then :
4443 $as_echo_n "(cached) " >&6
4444 else
4445 if test "x$host_alias" = x; then
4446 ac_cv_host=$ac_cv_build
4447 else
4448 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4449 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4450 fi
4451
4452 fi
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4454 $as_echo "$ac_cv_host" >&6; }
4455 case $ac_cv_host in
4456 *-*-*) ;;
4457 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4458 esac
4459 host=$ac_cv_host
4460 ac_save_IFS=$IFS; IFS='-'
4461 set x $ac_cv_host
4462 shift
4463 host_cpu=$1
4464 host_vendor=$2
4465 shift; shift
4466 # Remember, the first character of IFS is used to create $*,
4467 # except with old shells:
4468 host_os=$*
4469 IFS=$ac_save_IFS
4470 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4471
4472
4473 canonical=$host
4474 configuration=${host_alias-${build_alias-$host}}
4475
4476
4477
4478 ### If you add support for a new configuration, add code to this
4479 ### switch statement to recognize your configuration name and select
4480 ### the appropriate operating system file.
4481
4482 ### You would hope that you could choose an s/*.h
4483 ### file based on the operating system portion. However, it turns out
4484 ### that each s/*.h file is pretty manufacturer-specific.
4485 ### So we basically have to have a special case for each
4486 ### configuration name.
4487 ###
4488 ### As far as handling version numbers on operating systems is
4489 ### concerned, make sure things will fail in a fixable way. If
4490 ### /etc/MACHINES doesn't say anything about version numbers, be
4491 ### prepared to handle anything reasonably. If version numbers
4492 ### matter, be sure /etc/MACHINES says something about it.
4493
4494 opsys='' unported=no
4495 case "${canonical}" in
4496
4497 ## GNU/Linux and similar ports
4498 *-*-linux* )
4499 opsys=gnu-linux
4500 ;;
4501
4502 ## FreeBSD ports
4503 *-*-freebsd* )
4504 opsys=freebsd
4505 ;;
4506
4507 ## FreeBSD kernel + glibc based userland
4508 *-*-kfreebsd*gnu* )
4509 opsys=gnu-kfreebsd
4510 ;;
4511
4512 ## NetBSD ports
4513 *-*-netbsd* )
4514 opsys=netbsd
4515 ;;
4516
4517 ## OpenBSD ports
4518 *-*-openbsd* )
4519 opsys=openbsd
4520 ;;
4521
4522 ## Apple Darwin / Mac OS X
4523 *-apple-darwin* )
4524 case "${canonical}" in
4525 i[3456]86-* ) ;;
4526 powerpc-* ) ;;
4527 x86_64-* ) ;;
4528 * ) unported=yes ;;
4529 esac
4530 opsys=darwin
4531 ## Use fink packages if available.
4532 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4533 ## if test -d /sw/include && test -d /sw/lib; then
4534 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4535 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4536 ## fi
4537 ;;
4538
4539 ## HP 9000 series 700 and 800, running HP/UX
4540 hppa*-hp-hpux10.2* )
4541 opsys=hpux10-20
4542 ;;
4543 hppa*-hp-hpux1[1-9]* )
4544 opsys=hpux11
4545 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4546 ;;
4547
4548 ## IBM machines
4549 rs6000-ibm-aix4.[23]* )
4550 opsys=aix4-2
4551 ;;
4552 powerpc-ibm-aix4.[23]* )
4553 opsys=aix4-2
4554 ;;
4555 rs6000-ibm-aix[56]* )
4556 opsys=aix4-2
4557 ;;
4558 powerpc-ibm-aix[56]* )
4559 opsys=aix4-2
4560 ;;
4561
4562 ## Silicon Graphics machines
4563 ## Iris 4D
4564 mips-sgi-irix6.5 )
4565 opsys=irix6-5
4566 # Without defining _LANGUAGE_C, things get masked out in the headers
4567 # so that, for instance, grepping for `free' in stdlib.h fails and
4568 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4569 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4570 ;;
4571
4572 ## Suns
4573 *-sun-solaris* \
4574 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4575 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4576 case "${canonical}" in
4577 i[3456]86-*-* ) ;;
4578 amd64-*-*|x86_64-*-*) ;;
4579 sparc* ) ;;
4580 * ) unported=yes ;;
4581 esac
4582 case "${canonical}" in
4583 *-sunos5.6* | *-solaris2.6* )
4584 opsys=sol2-6
4585 RANLIB="ar -ts"
4586 ;;
4587 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4588 opsys=sol2-6
4589 emacs_check_sunpro_c=yes
4590 ;;
4591 *-sunos5* | *-solaris* )
4592 opsys=sol2-10
4593 emacs_check_sunpro_c=yes
4594 ;;
4595 esac
4596 ## Watch out for a compiler that we know will not work.
4597 case "${canonical}" in
4598 *-solaris* | *-sunos5* )
4599 if [ "x$CC" = x/usr/ucb/cc ]; then
4600 ## /usr/ucb/cc doesn't work;
4601 ## we should find some other compiler that does work.
4602 unset CC
4603 fi
4604 ;;
4605 *) ;;
4606 esac
4607 ;;
4608
4609 ## Intel 386 machines where we don't care about the manufacturer.
4610 i[3456]86-*-* )
4611 case "${canonical}" in
4612 *-cygwin ) opsys=cygwin ;;
4613 *-darwin* ) opsys=darwin ;;
4614 *-sysv4.2uw* ) opsys=unixware ;;
4615 *-sysv5uw* ) opsys=unixware ;;
4616 *-sysv5OpenUNIX* ) opsys=unixware ;;
4617 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4618 esac
4619 ;;
4620
4621 * )
4622 unported=yes
4623 ;;
4624 esac
4625
4626 ### If the code above didn't choose an operating system, just choose
4627 ### an operating system based on the configuration name. You really
4628 ### only want to use this when you have no idea what the right
4629 ### operating system is; if you know what operating systems a machine
4630 ### runs, it's cleaner to make it explicit in the case statement
4631 ### above.
4632 if test x"${opsys}" = x; then
4633 case "${canonical}" in
4634 *-gnu* ) opsys=gnu ;;
4635 * )
4636 unported=yes
4637 ;;
4638 esac
4639 fi
4640
4641
4642
4643 if test $unported = yes; then
4644 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
4645 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4646 fi
4647
4648
4649 #### Choose a compiler.
4650
4651 ac_ext=c
4652 ac_cpp='$CPP $CPPFLAGS'
4653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4656 if test -n "$ac_tool_prefix"; then
4657 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4658 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4660 $as_echo_n "checking for $ac_word... " >&6; }
4661 if test "${ac_cv_prog_CC+set}" = set; then :
4662 $as_echo_n "(cached) " >&6
4663 else
4664 if test -n "$CC"; then
4665 ac_cv_prog_CC="$CC" # Let the user override the test.
4666 else
4667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668 for as_dir in $PATH
4669 do
4670 IFS=$as_save_IFS
4671 test -z "$as_dir" && as_dir=.
4672 for ac_exec_ext in '' $ac_executable_extensions; do
4673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4674 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4676 break 2
4677 fi
4678 done
4679 done
4680 IFS=$as_save_IFS
4681
4682 fi
4683 fi
4684 CC=$ac_cv_prog_CC
4685 if test -n "$CC"; then
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4687 $as_echo "$CC" >&6; }
4688 else
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4690 $as_echo "no" >&6; }
4691 fi
4692
4693
4694 fi
4695 if test -z "$ac_cv_prog_CC"; then
4696 ac_ct_CC=$CC
4697 # Extract the first word of "gcc", so it can be a program name with args.
4698 set dummy gcc; ac_word=$2
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4700 $as_echo_n "checking for $ac_word... " >&6; }
4701 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4702 $as_echo_n "(cached) " >&6
4703 else
4704 if test -n "$ac_ct_CC"; then
4705 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4706 else
4707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708 for as_dir in $PATH
4709 do
4710 IFS=$as_save_IFS
4711 test -z "$as_dir" && as_dir=.
4712 for ac_exec_ext in '' $ac_executable_extensions; do
4713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4714 ac_cv_prog_ac_ct_CC="gcc"
4715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4716 break 2
4717 fi
4718 done
4719 done
4720 IFS=$as_save_IFS
4721
4722 fi
4723 fi
4724 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4725 if test -n "$ac_ct_CC"; then
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4727 $as_echo "$ac_ct_CC" >&6; }
4728 else
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4730 $as_echo "no" >&6; }
4731 fi
4732
4733 if test "x$ac_ct_CC" = x; then
4734 CC=""
4735 else
4736 case $cross_compiling:$ac_tool_warned in
4737 yes:)
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4739 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4740 ac_tool_warned=yes ;;
4741 esac
4742 CC=$ac_ct_CC
4743 fi
4744 else
4745 CC="$ac_cv_prog_CC"
4746 fi
4747
4748 if test -z "$CC"; then
4749 if test -n "$ac_tool_prefix"; then
4750 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4751 set dummy ${ac_tool_prefix}cc; ac_word=$2
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4753 $as_echo_n "checking for $ac_word... " >&6; }
4754 if test "${ac_cv_prog_CC+set}" = set; then :
4755 $as_echo_n "(cached) " >&6
4756 else
4757 if test -n "$CC"; then
4758 ac_cv_prog_CC="$CC" # Let the user override the test.
4759 else
4760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761 for as_dir in $PATH
4762 do
4763 IFS=$as_save_IFS
4764 test -z "$as_dir" && as_dir=.
4765 for ac_exec_ext in '' $ac_executable_extensions; do
4766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4767 ac_cv_prog_CC="${ac_tool_prefix}cc"
4768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4769 break 2
4770 fi
4771 done
4772 done
4773 IFS=$as_save_IFS
4774
4775 fi
4776 fi
4777 CC=$ac_cv_prog_CC
4778 if test -n "$CC"; then
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4780 $as_echo "$CC" >&6; }
4781 else
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4783 $as_echo "no" >&6; }
4784 fi
4785
4786
4787 fi
4788 fi
4789 if test -z "$CC"; then
4790 # Extract the first word of "cc", so it can be a program name with args.
4791 set dummy cc; ac_word=$2
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4793 $as_echo_n "checking for $ac_word... " >&6; }
4794 if test "${ac_cv_prog_CC+set}" = set; then :
4795 $as_echo_n "(cached) " >&6
4796 else
4797 if test -n "$CC"; then
4798 ac_cv_prog_CC="$CC" # Let the user override the test.
4799 else
4800 ac_prog_rejected=no
4801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4802 for as_dir in $PATH
4803 do
4804 IFS=$as_save_IFS
4805 test -z "$as_dir" && as_dir=.
4806 for ac_exec_ext in '' $ac_executable_extensions; do
4807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4808 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4809 ac_prog_rejected=yes
4810 continue
4811 fi
4812 ac_cv_prog_CC="cc"
4813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4814 break 2
4815 fi
4816 done
4817 done
4818 IFS=$as_save_IFS
4819
4820 if test $ac_prog_rejected = yes; then
4821 # We found a bogon in the path, so make sure we never use it.
4822 set dummy $ac_cv_prog_CC
4823 shift
4824 if test $# != 0; then
4825 # We chose a different compiler from the bogus one.
4826 # However, it has the same basename, so the bogon will be chosen
4827 # first if we set CC to just the basename; use the full file name.
4828 shift
4829 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4830 fi
4831 fi
4832 fi
4833 fi
4834 CC=$ac_cv_prog_CC
4835 if test -n "$CC"; then
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4837 $as_echo "$CC" >&6; }
4838 else
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4840 $as_echo "no" >&6; }
4841 fi
4842
4843
4844 fi
4845 if test -z "$CC"; then
4846 if test -n "$ac_tool_prefix"; then
4847 for ac_prog in cl.exe
4848 do
4849 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4850 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4852 $as_echo_n "checking for $ac_word... " >&6; }
4853 if test "${ac_cv_prog_CC+set}" = set; then :
4854 $as_echo_n "(cached) " >&6
4855 else
4856 if test -n "$CC"; then
4857 ac_cv_prog_CC="$CC" # Let the user override the test.
4858 else
4859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860 for as_dir in $PATH
4861 do
4862 IFS=$as_save_IFS
4863 test -z "$as_dir" && as_dir=.
4864 for ac_exec_ext in '' $ac_executable_extensions; do
4865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4866 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4868 break 2
4869 fi
4870 done
4871 done
4872 IFS=$as_save_IFS
4873
4874 fi
4875 fi
4876 CC=$ac_cv_prog_CC
4877 if test -n "$CC"; then
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4879 $as_echo "$CC" >&6; }
4880 else
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4882 $as_echo "no" >&6; }
4883 fi
4884
4885
4886 test -n "$CC" && break
4887 done
4888 fi
4889 if test -z "$CC"; then
4890 ac_ct_CC=$CC
4891 for ac_prog in cl.exe
4892 do
4893 # Extract the first word of "$ac_prog", so it can be a program name with args.
4894 set dummy $ac_prog; ac_word=$2
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4896 $as_echo_n "checking for $ac_word... " >&6; }
4897 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4898 $as_echo_n "(cached) " >&6
4899 else
4900 if test -n "$ac_ct_CC"; then
4901 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4902 else
4903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904 for as_dir in $PATH
4905 do
4906 IFS=$as_save_IFS
4907 test -z "$as_dir" && as_dir=.
4908 for ac_exec_ext in '' $ac_executable_extensions; do
4909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4910 ac_cv_prog_ac_ct_CC="$ac_prog"
4911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4912 break 2
4913 fi
4914 done
4915 done
4916 IFS=$as_save_IFS
4917
4918 fi
4919 fi
4920 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4921 if test -n "$ac_ct_CC"; then
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4923 $as_echo "$ac_ct_CC" >&6; }
4924 else
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4926 $as_echo "no" >&6; }
4927 fi
4928
4929
4930 test -n "$ac_ct_CC" && break
4931 done
4932
4933 if test "x$ac_ct_CC" = x; then
4934 CC=""
4935 else
4936 case $cross_compiling:$ac_tool_warned in
4937 yes:)
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4939 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4940 ac_tool_warned=yes ;;
4941 esac
4942 CC=$ac_ct_CC
4943 fi
4944 fi
4945
4946 fi
4947
4948
4949 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4951 as_fn_error "no acceptable C compiler found in \$PATH
4952 See \`config.log' for more details." "$LINENO" 5; }
4953
4954 # Provide some information about the compiler.
4955 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4956 set X $ac_compile
4957 ac_compiler=$2
4958 for ac_option in --version -v -V -qversion; do
4959 { { ac_try="$ac_compiler $ac_option >&5"
4960 case "(($ac_try" in
4961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4962 *) ac_try_echo=$ac_try;;
4963 esac
4964 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4965 $as_echo "$ac_try_echo"; } >&5
4966 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4967 ac_status=$?
4968 if test -s conftest.err; then
4969 sed '10a\
4970 ... rest of stderr output deleted ...
4971 10q' conftest.err >conftest.er1
4972 cat conftest.er1 >&5
4973 fi
4974 rm -f conftest.er1 conftest.err
4975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4976 test $ac_status = 0; }
4977 done
4978
4979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4980 /* end confdefs.h. */
4981
4982 int
4983 main ()
4984 {
4985
4986 ;
4987 return 0;
4988 }
4989 _ACEOF
4990 ac_clean_files_save=$ac_clean_files
4991 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4992 # Try to create an executable without -o first, disregard a.out.
4993 # It will help us diagnose broken compilers, and finding out an intuition
4994 # of exeext.
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4996 $as_echo_n "checking whether the C compiler works... " >&6; }
4997 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4998
4999 # The possible output files:
5000 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5001
5002 ac_rmfiles=
5003 for ac_file in $ac_files
5004 do
5005 case $ac_file in
5006 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5007 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5008 esac
5009 done
5010 rm -f $ac_rmfiles
5011
5012 if { { ac_try="$ac_link_default"
5013 case "(($ac_try" in
5014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5015 *) ac_try_echo=$ac_try;;
5016 esac
5017 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5018 $as_echo "$ac_try_echo"; } >&5
5019 (eval "$ac_link_default") 2>&5
5020 ac_status=$?
5021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5022 test $ac_status = 0; }; then :
5023 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5024 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5025 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5026 # so that the user can short-circuit this test for compilers unknown to
5027 # Autoconf.
5028 for ac_file in $ac_files ''
5029 do
5030 test -f "$ac_file" || continue
5031 case $ac_file in
5032 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5033 ;;
5034 [ab].out )
5035 # We found the default executable, but exeext='' is most
5036 # certainly right.
5037 break;;
5038 *.* )
5039 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5040 then :; else
5041 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5042 fi
5043 # We set ac_cv_exeext here because the later test for it is not
5044 # safe: cross compilers may not add the suffix if given an `-o'
5045 # argument, so we may need to know it at that point already.
5046 # Even if this section looks crufty: it has the advantage of
5047 # actually working.
5048 break;;
5049 * )
5050 break;;
5051 esac
5052 done
5053 test "$ac_cv_exeext" = no && ac_cv_exeext=
5054
5055 else
5056 ac_file=''
5057 fi
5058 if test -z "$ac_file"; then :
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5060 $as_echo "no" >&6; }
5061 $as_echo "$as_me: failed program was:" >&5
5062 sed 's/^/| /' conftest.$ac_ext >&5
5063
5064 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5065 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5066 { as_fn_set_status 77
5067 as_fn_error "C compiler cannot create executables
5068 See \`config.log' for more details." "$LINENO" 5; }; }
5069 else
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5071 $as_echo "yes" >&6; }
5072 fi
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5074 $as_echo_n "checking for C compiler default output file name... " >&6; }
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5076 $as_echo "$ac_file" >&6; }
5077 ac_exeext=$ac_cv_exeext
5078
5079 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5080 ac_clean_files=$ac_clean_files_save
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5082 $as_echo_n "checking for suffix of executables... " >&6; }
5083 if { { ac_try="$ac_link"
5084 case "(($ac_try" in
5085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5086 *) ac_try_echo=$ac_try;;
5087 esac
5088 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5089 $as_echo "$ac_try_echo"; } >&5
5090 (eval "$ac_link") 2>&5
5091 ac_status=$?
5092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5093 test $ac_status = 0; }; then :
5094 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5095 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5096 # work properly (i.e., refer to `conftest.exe'), while it won't with
5097 # `rm'.
5098 for ac_file in conftest.exe conftest conftest.*; do
5099 test -f "$ac_file" || continue
5100 case $ac_file in
5101 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5102 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5103 break;;
5104 * ) break;;
5105 esac
5106 done
5107 else
5108 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5109 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5110 as_fn_error "cannot compute suffix of executables: cannot compile and link
5111 See \`config.log' for more details." "$LINENO" 5; }
5112 fi
5113 rm -f conftest conftest$ac_cv_exeext
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5115 $as_echo "$ac_cv_exeext" >&6; }
5116
5117 rm -f conftest.$ac_ext
5118 EXEEXT=$ac_cv_exeext
5119 ac_exeext=$EXEEXT
5120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5121 /* end confdefs.h. */
5122 #include <stdio.h>
5123 int
5124 main ()
5125 {
5126 FILE *f = fopen ("conftest.out", "w");
5127 return ferror (f) || fclose (f) != 0;
5128
5129 ;
5130 return 0;
5131 }
5132 _ACEOF
5133 ac_clean_files="$ac_clean_files conftest.out"
5134 # Check that the compiler produces executables we can run. If not, either
5135 # the compiler is broken, or we cross compile.
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5137 $as_echo_n "checking whether we are cross compiling... " >&6; }
5138 if test "$cross_compiling" != yes; then
5139 { { ac_try="$ac_link"
5140 case "(($ac_try" in
5141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5142 *) ac_try_echo=$ac_try;;
5143 esac
5144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5145 $as_echo "$ac_try_echo"; } >&5
5146 (eval "$ac_link") 2>&5
5147 ac_status=$?
5148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5149 test $ac_status = 0; }
5150 if { ac_try='./conftest$ac_cv_exeext'
5151 { { case "(($ac_try" in
5152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5153 *) ac_try_echo=$ac_try;;
5154 esac
5155 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5156 $as_echo "$ac_try_echo"; } >&5
5157 (eval "$ac_try") 2>&5
5158 ac_status=$?
5159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5160 test $ac_status = 0; }; }; then
5161 cross_compiling=no
5162 else
5163 if test "$cross_compiling" = maybe; then
5164 cross_compiling=yes
5165 else
5166 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5168 as_fn_error "cannot run C compiled programs.
5169 If you meant to cross compile, use \`--host'.
5170 See \`config.log' for more details." "$LINENO" 5; }
5171 fi
5172 fi
5173 fi
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5175 $as_echo "$cross_compiling" >&6; }
5176
5177 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5178 ac_clean_files=$ac_clean_files_save
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5180 $as_echo_n "checking for suffix of object files... " >&6; }
5181 if test "${ac_cv_objext+set}" = set; then :
5182 $as_echo_n "(cached) " >&6
5183 else
5184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5185 /* end confdefs.h. */
5186
5187 int
5188 main ()
5189 {
5190
5191 ;
5192 return 0;
5193 }
5194 _ACEOF
5195 rm -f conftest.o conftest.obj
5196 if { { ac_try="$ac_compile"
5197 case "(($ac_try" in
5198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5199 *) ac_try_echo=$ac_try;;
5200 esac
5201 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5202 $as_echo "$ac_try_echo"; } >&5
5203 (eval "$ac_compile") 2>&5
5204 ac_status=$?
5205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5206 test $ac_status = 0; }; then :
5207 for ac_file in conftest.o conftest.obj conftest.*; do
5208 test -f "$ac_file" || continue;
5209 case $ac_file in
5210 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5211 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5212 break;;
5213 esac
5214 done
5215 else
5216 $as_echo "$as_me: failed program was:" >&5
5217 sed 's/^/| /' conftest.$ac_ext >&5
5218
5219 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5220 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5221 as_fn_error "cannot compute suffix of object files: cannot compile
5222 See \`config.log' for more details." "$LINENO" 5; }
5223 fi
5224 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5225 fi
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5227 $as_echo "$ac_cv_objext" >&6; }
5228 OBJEXT=$ac_cv_objext
5229 ac_objext=$OBJEXT
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5231 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5232 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5233 $as_echo_n "(cached) " >&6
5234 else
5235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5236 /* end confdefs.h. */
5237
5238 int
5239 main ()
5240 {
5241 #ifndef __GNUC__
5242 choke me
5243 #endif
5244
5245 ;
5246 return 0;
5247 }
5248 _ACEOF
5249 if ac_fn_c_try_compile "$LINENO"; then :
5250 ac_compiler_gnu=yes
5251 else
5252 ac_compiler_gnu=no
5253 fi
5254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5255 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5256
5257 fi
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5259 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5260 if test $ac_compiler_gnu = yes; then
5261 GCC=yes
5262 else
5263 GCC=
5264 fi
5265 ac_test_CFLAGS=${CFLAGS+set}
5266 ac_save_CFLAGS=$CFLAGS
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5268 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5269 if test "${ac_cv_prog_cc_g+set}" = set; then :
5270 $as_echo_n "(cached) " >&6
5271 else
5272 ac_save_c_werror_flag=$ac_c_werror_flag
5273 ac_c_werror_flag=yes
5274 ac_cv_prog_cc_g=no
5275 CFLAGS="-g"
5276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5277 /* end confdefs.h. */
5278
5279 int
5280 main ()
5281 {
5282
5283 ;
5284 return 0;
5285 }
5286 _ACEOF
5287 if ac_fn_c_try_compile "$LINENO"; then :
5288 ac_cv_prog_cc_g=yes
5289 else
5290 CFLAGS=""
5291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5292 /* end confdefs.h. */
5293
5294 int
5295 main ()
5296 {
5297
5298 ;
5299 return 0;
5300 }
5301 _ACEOF
5302 if ac_fn_c_try_compile "$LINENO"; then :
5303
5304 else
5305 ac_c_werror_flag=$ac_save_c_werror_flag
5306 CFLAGS="-g"
5307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5308 /* end confdefs.h. */
5309
5310 int
5311 main ()
5312 {
5313
5314 ;
5315 return 0;
5316 }
5317 _ACEOF
5318 if ac_fn_c_try_compile "$LINENO"; then :
5319 ac_cv_prog_cc_g=yes
5320 fi
5321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5322 fi
5323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5324 fi
5325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5326 ac_c_werror_flag=$ac_save_c_werror_flag
5327 fi
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5329 $as_echo "$ac_cv_prog_cc_g" >&6; }
5330 if test "$ac_test_CFLAGS" = set; then
5331 CFLAGS=$ac_save_CFLAGS
5332 elif test $ac_cv_prog_cc_g = yes; then
5333 if test "$GCC" = yes; then
5334 CFLAGS="-g -O2"
5335 else
5336 CFLAGS="-g"
5337 fi
5338 else
5339 if test "$GCC" = yes; then
5340 CFLAGS="-O2"
5341 else
5342 CFLAGS=
5343 fi
5344 fi
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5346 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5347 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5348 $as_echo_n "(cached) " >&6
5349 else
5350 ac_cv_prog_cc_c89=no
5351 ac_save_CC=$CC
5352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5353 /* end confdefs.h. */
5354 #include <stdarg.h>
5355 #include <stdio.h>
5356 #include <sys/types.h>
5357 #include <sys/stat.h>
5358 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5359 struct buf { int x; };
5360 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5361 static char *e (p, i)
5362 char **p;
5363 int i;
5364 {
5365 return p[i];
5366 }
5367 static char *f (char * (*g) (char **, int), char **p, ...)
5368 {
5369 char *s;
5370 va_list v;
5371 va_start (v,p);
5372 s = g (p, va_arg (v,int));
5373 va_end (v);
5374 return s;
5375 }
5376
5377 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5378 function prototypes and stuff, but not '\xHH' hex character constants.
5379 These don't provoke an error unfortunately, instead are silently treated
5380 as 'x'. The following induces an error, until -std is added to get
5381 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5382 array size at least. It's necessary to write '\x00'==0 to get something
5383 that's true only with -std. */
5384 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5385
5386 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5387 inside strings and character constants. */
5388 #define FOO(x) 'x'
5389 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5390
5391 int test (int i, double x);
5392 struct s1 {int (*f) (int a);};
5393 struct s2 {int (*f) (double a);};
5394 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5395 int argc;
5396 char **argv;
5397 int
5398 main ()
5399 {
5400 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5401 ;
5402 return 0;
5403 }
5404 _ACEOF
5405 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5406 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5407 do
5408 CC="$ac_save_CC $ac_arg"
5409 if ac_fn_c_try_compile "$LINENO"; then :
5410 ac_cv_prog_cc_c89=$ac_arg
5411 fi
5412 rm -f core conftest.err conftest.$ac_objext
5413 test "x$ac_cv_prog_cc_c89" != "xno" && break
5414 done
5415 rm -f conftest.$ac_ext
5416 CC=$ac_save_CC
5417
5418 fi
5419 # AC_CACHE_VAL
5420 case "x$ac_cv_prog_cc_c89" in
5421 x)
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5423 $as_echo "none needed" >&6; } ;;
5424 xno)
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5426 $as_echo "unsupported" >&6; } ;;
5427 *)
5428 CC="$CC $ac_cv_prog_cc_c89"
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5430 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5431 esac
5432 if test "x$ac_cv_prog_cc_c89" != xno; then :
5433
5434 fi
5435
5436 ac_ext=c
5437 ac_cpp='$CPP $CPPFLAGS'
5438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5441 DEPDIR="${am__leading_dot}deps"
5442
5443 ac_config_commands="$ac_config_commands depfiles"
5444
5445
5446 am_make=${MAKE-make}
5447 cat > confinc << 'END'
5448 am__doit:
5449 @echo this is the am__doit target
5450 .PHONY: am__doit
5451 END
5452 # If we don't find an include directive, just comment out the code.
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5454 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5455 am__include="#"
5456 am__quote=
5457 _am_result=none
5458 # First try GNU make style include.
5459 echo "include confinc" > confmf
5460 # Ignore all kinds of additional output from `make'.
5461 case `$am_make -s -f confmf 2> /dev/null` in #(
5462 *the\ am__doit\ target*)
5463 am__include=include
5464 am__quote=
5465 _am_result=GNU
5466 ;;
5467 esac
5468 # Now try BSD make style include.
5469 if test "$am__include" = "#"; then
5470 echo '.include "confinc"' > confmf
5471 case `$am_make -s -f confmf 2> /dev/null` in #(
5472 *the\ am__doit\ target*)
5473 am__include=.include
5474 am__quote="\""
5475 _am_result=BSD
5476 ;;
5477 esac
5478 fi
5479
5480
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5482 $as_echo "$_am_result" >&6; }
5483 rm -f confinc confmf
5484
5485 # Check whether --enable-dependency-tracking was given.
5486 if test "${enable_dependency_tracking+set}" = set; then :
5487 enableval=$enable_dependency_tracking;
5488 fi
5489
5490 if test "x$enable_dependency_tracking" != xno; then
5491 am_depcomp="$ac_aux_dir/depcomp"
5492 AMDEPBACKSLASH='\'
5493 fi
5494 if test "x$enable_dependency_tracking" != xno; then
5495 AMDEP_TRUE=
5496 AMDEP_FALSE='#'
5497 else
5498 AMDEP_TRUE='#'
5499 AMDEP_FALSE=
5500 fi
5501
5502
5503
5504 depcc="$CC" am_compiler_list=
5505
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5507 $as_echo_n "checking dependency style of $depcc... " >&6; }
5508 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5509 $as_echo_n "(cached) " >&6
5510 else
5511 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5512 # We make a subdir and do the tests there. Otherwise we can end up
5513 # making bogus files that we don't know about and never remove. For
5514 # instance it was reported that on HP-UX the gcc test will end up
5515 # making a dummy file named `D' -- because `-MD' means `put the output
5516 # in D'.
5517 mkdir conftest.dir
5518 # Copy depcomp to subdir because otherwise we won't find it if we're
5519 # using a relative directory.
5520 cp "$am_depcomp" conftest.dir
5521 cd conftest.dir
5522 # We will build objects and dependencies in a subdirectory because
5523 # it helps to detect inapplicable dependency modes. For instance
5524 # both Tru64's cc and ICC support -MD to output dependencies as a
5525 # side effect of compilation, but ICC will put the dependencies in
5526 # the current directory while Tru64 will put them in the object
5527 # directory.
5528 mkdir sub
5529
5530 am_cv_CC_dependencies_compiler_type=none
5531 if test "$am_compiler_list" = ""; then
5532 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5533 fi
5534 am__universal=false
5535 case " $depcc " in #(
5536 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5537 esac
5538
5539 for depmode in $am_compiler_list; do
5540 # Setup a source with many dependencies, because some compilers
5541 # like to wrap large dependency lists on column 80 (with \), and
5542 # we should not choose a depcomp mode which is confused by this.
5543 #
5544 # We need to recreate these files for each test, as the compiler may
5545 # overwrite some of them when testing with obscure command lines.
5546 # This happens at least with the AIX C compiler.
5547 : > sub/conftest.c
5548 for i in 1 2 3 4 5 6; do
5549 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5550 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5551 # Solaris 8's {/usr,}/bin/sh.
5552 touch sub/conftst$i.h
5553 done
5554 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5555
5556 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5557 # mode. It turns out that the SunPro C++ compiler does not properly
5558 # handle `-M -o', and we need to detect this. Also, some Intel
5559 # versions had trouble with output in subdirs
5560 am__obj=sub/conftest.${OBJEXT-o}
5561 am__minus_obj="-o $am__obj"
5562 case $depmode in
5563 gcc)
5564 # This depmode causes a compiler race in universal mode.
5565 test "$am__universal" = false || continue
5566 ;;
5567 nosideeffect)
5568 # after this tag, mechanisms are not by side-effect, so they'll
5569 # only be used when explicitly requested
5570 if test "x$enable_dependency_tracking" = xyes; then
5571 continue
5572 else
5573 break
5574 fi
5575 ;;
5576 msvisualcpp | msvcmsys)
5577 # This compiler won't grok `-c -o', but also, the minuso test has
5578 # not run yet. These depmodes are late enough in the game, and
5579 # so weak that their functioning should not be impacted.
5580 am__obj=conftest.${OBJEXT-o}
5581 am__minus_obj=
5582 ;;
5583 none) break ;;
5584 esac
5585 if depmode=$depmode \
5586 source=sub/conftest.c object=$am__obj \
5587 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5588 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5589 >/dev/null 2>conftest.err &&
5590 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5591 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5592 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5593 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5594 # icc doesn't choke on unknown options, it will just issue warnings
5595 # or remarks (even with -Werror). So we grep stderr for any message
5596 # that says an option was ignored or not supported.
5597 # When given -MP, icc 7.0 and 7.1 complain thusly:
5598 # icc: Command line warning: ignoring option '-M'; no argument required
5599 # The diagnosis changed in icc 8.0:
5600 # icc: Command line remark: option '-MP' not supported
5601 if (grep 'ignoring option' conftest.err ||
5602 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5603 am_cv_CC_dependencies_compiler_type=$depmode
5604 break
5605 fi
5606 fi
5607 done
5608
5609 cd ..
5610 rm -rf conftest.dir
5611 else
5612 am_cv_CC_dependencies_compiler_type=none
5613 fi
5614
5615 fi
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5617 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5618 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5619
5620 if
5621 test "x$enable_dependency_tracking" != xno \
5622 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5623 am__fastdepCC_TRUE=
5624 am__fastdepCC_FALSE='#'
5625 else
5626 am__fastdepCC_TRUE='#'
5627 am__fastdepCC_FALSE=
5628 fi
5629
5630
5631 if test "x$CC" != xcc; then
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5633 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5634 else
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5636 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5637 fi
5638 set dummy $CC; ac_cc=`$as_echo "$2" |
5639 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5640 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5641 $as_echo_n "(cached) " >&6
5642 else
5643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5644 /* end confdefs.h. */
5645
5646 int
5647 main ()
5648 {
5649
5650 ;
5651 return 0;
5652 }
5653 _ACEOF
5654 # Make sure it works both with $CC and with simple cc.
5655 # We do the test twice because some compilers refuse to overwrite an
5656 # existing .o file with -o, though they will create one.
5657 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5658 rm -f conftest2.*
5659 if { { case "(($ac_try" in
5660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5661 *) ac_try_echo=$ac_try;;
5662 esac
5663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5664 $as_echo "$ac_try_echo"; } >&5
5665 (eval "$ac_try") 2>&5
5666 ac_status=$?
5667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5668 test $ac_status = 0; } &&
5669 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5671 *) ac_try_echo=$ac_try;;
5672 esac
5673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5674 $as_echo "$ac_try_echo"; } >&5
5675 (eval "$ac_try") 2>&5
5676 ac_status=$?
5677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5678 test $ac_status = 0; };
5679 then
5680 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5681 if test "x$CC" != xcc; then
5682 # Test first that cc exists at all.
5683 if { ac_try='cc -c conftest.$ac_ext >&5'
5684 { { case "(($ac_try" in
5685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5686 *) ac_try_echo=$ac_try;;
5687 esac
5688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5689 $as_echo "$ac_try_echo"; } >&5
5690 (eval "$ac_try") 2>&5
5691 ac_status=$?
5692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5693 test $ac_status = 0; }; }; then
5694 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5695 rm -f conftest2.*
5696 if { { case "(($ac_try" in
5697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5698 *) ac_try_echo=$ac_try;;
5699 esac
5700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5701 $as_echo "$ac_try_echo"; } >&5
5702 (eval "$ac_try") 2>&5
5703 ac_status=$?
5704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5705 test $ac_status = 0; } &&
5706 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5708 *) ac_try_echo=$ac_try;;
5709 esac
5710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5711 $as_echo "$ac_try_echo"; } >&5
5712 (eval "$ac_try") 2>&5
5713 ac_status=$?
5714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5715 test $ac_status = 0; };
5716 then
5717 # cc works too.
5718 :
5719 else
5720 # cc exists but doesn't like -o.
5721 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5722 fi
5723 fi
5724 fi
5725 else
5726 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5727 fi
5728 rm -f core conftest*
5729
5730 fi
5731 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5733 $as_echo "yes" >&6; }
5734 else
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5736 $as_echo "no" >&6; }
5737
5738 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5739
5740 fi
5741
5742 # FIXME: we rely on the cache variable name because
5743 # there is no other way.
5744 set dummy $CC
5745 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5746 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5747 if test "$am_t" != yes; then
5748 # Losing compiler, so override with the script.
5749 # FIXME: It is wrong to rewrite CC.
5750 # But if we don't then we get into trouble of one sort or another.
5751 # A longer-term fix would be to have automake use am__CC in this case,
5752 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5753 CC="$am_aux_dir/compile $CC"
5754 fi
5755
5756
5757
5758 if test x$GCC = xyes; then
5759 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5760 else
5761 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5762 fi
5763
5764 # Avoid gnulib's tests for O_NOATIME and O_NOFOLLOW, as we don't use them.
5765
5766 # Avoid gnulib's threadlib module, as we do threads our own way.
5767
5768
5769 # Initialize gnulib right after choosing the compiler.
5770
5771 ac_ext=c
5772 ac_cpp='$CPP $CPPFLAGS'
5773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5777 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5778 # On Suns, sometimes $CPP names a directory.
5779 if test -n "$CPP" && test -d "$CPP"; then
5780 CPP=
5781 fi
5782 if test -z "$CPP"; then
5783 if test "${ac_cv_prog_CPP+set}" = set; then :
5784 $as_echo_n "(cached) " >&6
5785 else
5786 # Double quotes because CPP needs to be expanded
5787 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5788 do
5789 ac_preproc_ok=false
5790 for ac_c_preproc_warn_flag in '' yes
5791 do
5792 # Use a header file that comes with gcc, so configuring glibc
5793 # with a fresh cross-compiler works.
5794 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5795 # <limits.h> exists even on freestanding compilers.
5796 # On the NeXT, cc -E runs the code through the compiler's parser,
5797 # not just through cpp. "Syntax error" is here to catch this case.
5798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5799 /* end confdefs.h. */
5800 #ifdef __STDC__
5801 # include <limits.h>
5802 #else
5803 # include <assert.h>
5804 #endif
5805 Syntax error
5806 _ACEOF
5807 if ac_fn_c_try_cpp "$LINENO"; then :
5808
5809 else
5810 # Broken: fails on valid input.
5811 continue
5812 fi
5813 rm -f conftest.err conftest.$ac_ext
5814
5815 # OK, works on sane cases. Now check whether nonexistent headers
5816 # can be detected and how.
5817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5818 /* end confdefs.h. */
5819 #include <ac_nonexistent.h>
5820 _ACEOF
5821 if ac_fn_c_try_cpp "$LINENO"; then :
5822 # Broken: success on invalid input.
5823 continue
5824 else
5825 # Passes both tests.
5826 ac_preproc_ok=:
5827 break
5828 fi
5829 rm -f conftest.err conftest.$ac_ext
5830
5831 done
5832 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5833 rm -f conftest.err conftest.$ac_ext
5834 if $ac_preproc_ok; then :
5835 break
5836 fi
5837
5838 done
5839 ac_cv_prog_CPP=$CPP
5840
5841 fi
5842 CPP=$ac_cv_prog_CPP
5843 else
5844 ac_cv_prog_CPP=$CPP
5845 fi
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5847 $as_echo "$CPP" >&6; }
5848 ac_preproc_ok=false
5849 for ac_c_preproc_warn_flag in '' yes
5850 do
5851 # Use a header file that comes with gcc, so configuring glibc
5852 # with a fresh cross-compiler works.
5853 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5854 # <limits.h> exists even on freestanding compilers.
5855 # On the NeXT, cc -E runs the code through the compiler's parser,
5856 # not just through cpp. "Syntax error" is here to catch this case.
5857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5858 /* end confdefs.h. */
5859 #ifdef __STDC__
5860 # include <limits.h>
5861 #else
5862 # include <assert.h>
5863 #endif
5864 Syntax error
5865 _ACEOF
5866 if ac_fn_c_try_cpp "$LINENO"; then :
5867
5868 else
5869 # Broken: fails on valid input.
5870 continue
5871 fi
5872 rm -f conftest.err conftest.$ac_ext
5873
5874 # OK, works on sane cases. Now check whether nonexistent headers
5875 # can be detected and how.
5876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5877 /* end confdefs.h. */
5878 #include <ac_nonexistent.h>
5879 _ACEOF
5880 if ac_fn_c_try_cpp "$LINENO"; then :
5881 # Broken: success on invalid input.
5882 continue
5883 else
5884 # Passes both tests.
5885 ac_preproc_ok=:
5886 break
5887 fi
5888 rm -f conftest.err conftest.$ac_ext
5889
5890 done
5891 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5892 rm -f conftest.err conftest.$ac_ext
5893 if $ac_preproc_ok; then :
5894
5895 else
5896 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5897 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5898 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5899 See \`config.log' for more details." "$LINENO" 5; }
5900 fi
5901
5902 ac_ext=c
5903 ac_cpp='$CPP $CPPFLAGS'
5904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5907
5908
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5910 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5911 if test "${ac_cv_path_GREP+set}" = set; then :
5912 $as_echo_n "(cached) " >&6
5913 else
5914 if test -z "$GREP"; then
5915 ac_path_GREP_found=false
5916 # Loop through the user's path and test for each of PROGNAME-LIST
5917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5918 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5919 do
5920 IFS=$as_save_IFS
5921 test -z "$as_dir" && as_dir=.
5922 for ac_prog in grep ggrep; do
5923 for ac_exec_ext in '' $ac_executable_extensions; do
5924 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5925 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5926 # Check for GNU ac_path_GREP and select it if it is found.
5927 # Check for GNU $ac_path_GREP
5928 case `"$ac_path_GREP" --version 2>&1` in
5929 *GNU*)
5930 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5931 *)
5932 ac_count=0
5933 $as_echo_n 0123456789 >"conftest.in"
5934 while :
5935 do
5936 cat "conftest.in" "conftest.in" >"conftest.tmp"
5937 mv "conftest.tmp" "conftest.in"
5938 cp "conftest.in" "conftest.nl"
5939 $as_echo 'GREP' >> "conftest.nl"
5940 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5941 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5942 as_fn_arith $ac_count + 1 && ac_count=$as_val
5943 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5944 # Best one so far, save it but keep looking for a better one
5945 ac_cv_path_GREP="$ac_path_GREP"
5946 ac_path_GREP_max=$ac_count
5947 fi
5948 # 10*(2^10) chars as input seems more than enough
5949 test $ac_count -gt 10 && break
5950 done
5951 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5952 esac
5953
5954 $ac_path_GREP_found && break 3
5955 done
5956 done
5957 done
5958 IFS=$as_save_IFS
5959 if test -z "$ac_cv_path_GREP"; then
5960 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5961 fi
5962 else
5963 ac_cv_path_GREP=$GREP
5964 fi
5965
5966 fi
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5968 $as_echo "$ac_cv_path_GREP" >&6; }
5969 GREP="$ac_cv_path_GREP"
5970
5971
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5973 $as_echo_n "checking for egrep... " >&6; }
5974 if test "${ac_cv_path_EGREP+set}" = set; then :
5975 $as_echo_n "(cached) " >&6
5976 else
5977 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5978 then ac_cv_path_EGREP="$GREP -E"
5979 else
5980 if test -z "$EGREP"; then
5981 ac_path_EGREP_found=false
5982 # Loop through the user's path and test for each of PROGNAME-LIST
5983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5984 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5985 do
5986 IFS=$as_save_IFS
5987 test -z "$as_dir" && as_dir=.
5988 for ac_prog in egrep; do
5989 for ac_exec_ext in '' $ac_executable_extensions; do
5990 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5991 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5992 # Check for GNU ac_path_EGREP and select it if it is found.
5993 # Check for GNU $ac_path_EGREP
5994 case `"$ac_path_EGREP" --version 2>&1` in
5995 *GNU*)
5996 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5997 *)
5998 ac_count=0
5999 $as_echo_n 0123456789 >"conftest.in"
6000 while :
6001 do
6002 cat "conftest.in" "conftest.in" >"conftest.tmp"
6003 mv "conftest.tmp" "conftest.in"
6004 cp "conftest.in" "conftest.nl"
6005 $as_echo 'EGREP' >> "conftest.nl"
6006 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6007 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6008 as_fn_arith $ac_count + 1 && ac_count=$as_val
6009 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6010 # Best one so far, save it but keep looking for a better one
6011 ac_cv_path_EGREP="$ac_path_EGREP"
6012 ac_path_EGREP_max=$ac_count
6013 fi
6014 # 10*(2^10) chars as input seems more than enough
6015 test $ac_count -gt 10 && break
6016 done
6017 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6018 esac
6019
6020 $ac_path_EGREP_found && break 3
6021 done
6022 done
6023 done
6024 IFS=$as_save_IFS
6025 if test -z "$ac_cv_path_EGREP"; then
6026 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6027 fi
6028 else
6029 ac_cv_path_EGREP=$EGREP
6030 fi
6031
6032 fi
6033 fi
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6035 $as_echo "$ac_cv_path_EGREP" >&6; }
6036 EGREP="$ac_cv_path_EGREP"
6037
6038
6039
6040
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6042 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6043 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6044 $as_echo_n "(cached) " >&6
6045 else
6046
6047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6048 /* end confdefs.h. */
6049
6050 #ifdef __ACK__
6051 Amsterdam
6052 #endif
6053
6054 _ACEOF
6055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6056 $EGREP "Amsterdam" >/dev/null 2>&1; then :
6057 gl_cv_c_amsterdam_compiler=yes
6058 else
6059 gl_cv_c_amsterdam_compiler=no
6060 fi
6061 rm -f conftest*
6062
6063
6064 fi
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6066 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6067 if test -z "$AR"; then
6068 if test $gl_cv_c_amsterdam_compiler = yes; then
6069 AR='cc -c.a'
6070 if test -z "$ARFLAGS"; then
6071 ARFLAGS='-o'
6072 fi
6073 else
6074 if test -n "$ac_tool_prefix"; then
6075 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6076 set dummy ${ac_tool_prefix}ar; ac_word=$2
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6078 $as_echo_n "checking for $ac_word... " >&6; }
6079 if test "${ac_cv_prog_AR+set}" = set; then :
6080 $as_echo_n "(cached) " >&6
6081 else
6082 if test -n "$AR"; then
6083 ac_cv_prog_AR="$AR" # Let the user override the test.
6084 else
6085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6086 for as_dir in $PATH
6087 do
6088 IFS=$as_save_IFS
6089 test -z "$as_dir" && as_dir=.
6090 for ac_exec_ext in '' $ac_executable_extensions; do
6091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6092 ac_cv_prog_AR="${ac_tool_prefix}ar"
6093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6094 break 2
6095 fi
6096 done
6097 done
6098 IFS=$as_save_IFS
6099
6100 fi
6101 fi
6102 AR=$ac_cv_prog_AR
6103 if test -n "$AR"; then
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6105 $as_echo "$AR" >&6; }
6106 else
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6108 $as_echo "no" >&6; }
6109 fi
6110
6111
6112 fi
6113 if test -z "$ac_cv_prog_AR"; then
6114 ac_ct_AR=$AR
6115 # Extract the first word of "ar", so it can be a program name with args.
6116 set dummy ar; ac_word=$2
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6118 $as_echo_n "checking for $ac_word... " >&6; }
6119 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6120 $as_echo_n "(cached) " >&6
6121 else
6122 if test -n "$ac_ct_AR"; then
6123 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6124 else
6125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6126 for as_dir in $PATH
6127 do
6128 IFS=$as_save_IFS
6129 test -z "$as_dir" && as_dir=.
6130 for ac_exec_ext in '' $ac_executable_extensions; do
6131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6132 ac_cv_prog_ac_ct_AR="ar"
6133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6134 break 2
6135 fi
6136 done
6137 done
6138 IFS=$as_save_IFS
6139
6140 fi
6141 fi
6142 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6143 if test -n "$ac_ct_AR"; then
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6145 $as_echo "$ac_ct_AR" >&6; }
6146 else
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6148 $as_echo "no" >&6; }
6149 fi
6150
6151 if test "x$ac_ct_AR" = x; then
6152 AR="ar"
6153 else
6154 case $cross_compiling:$ac_tool_warned in
6155 yes:)
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6157 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6158 ac_tool_warned=yes ;;
6159 esac
6160 AR=$ac_ct_AR
6161 fi
6162 else
6163 AR="$ac_cv_prog_AR"
6164 fi
6165
6166 if test -z "$ARFLAGS"; then
6167 ARFLAGS='cru'
6168 fi
6169 fi
6170 else
6171 if test -z "$ARFLAGS"; then
6172 ARFLAGS='cru'
6173 fi
6174 fi
6175
6176
6177 if test -z "$RANLIB"; then
6178 if test $gl_cv_c_amsterdam_compiler = yes; then
6179 RANLIB=':'
6180 else
6181 if test -n "$ac_tool_prefix"; then
6182 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6183 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6185 $as_echo_n "checking for $ac_word... " >&6; }
6186 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6187 $as_echo_n "(cached) " >&6
6188 else
6189 if test -n "$RANLIB"; then
6190 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6191 else
6192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6193 for as_dir in $PATH
6194 do
6195 IFS=$as_save_IFS
6196 test -z "$as_dir" && as_dir=.
6197 for ac_exec_ext in '' $ac_executable_extensions; do
6198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6199 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6201 break 2
6202 fi
6203 done
6204 done
6205 IFS=$as_save_IFS
6206
6207 fi
6208 fi
6209 RANLIB=$ac_cv_prog_RANLIB
6210 if test -n "$RANLIB"; then
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6212 $as_echo "$RANLIB" >&6; }
6213 else
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6215 $as_echo "no" >&6; }
6216 fi
6217
6218
6219 fi
6220 if test -z "$ac_cv_prog_RANLIB"; then
6221 ac_ct_RANLIB=$RANLIB
6222 # Extract the first word of "ranlib", so it can be a program name with args.
6223 set dummy ranlib; ac_word=$2
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6225 $as_echo_n "checking for $ac_word... " >&6; }
6226 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6227 $as_echo_n "(cached) " >&6
6228 else
6229 if test -n "$ac_ct_RANLIB"; then
6230 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6231 else
6232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233 for as_dir in $PATH
6234 do
6235 IFS=$as_save_IFS
6236 test -z "$as_dir" && as_dir=.
6237 for ac_exec_ext in '' $ac_executable_extensions; do
6238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6239 ac_cv_prog_ac_ct_RANLIB="ranlib"
6240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6241 break 2
6242 fi
6243 done
6244 done
6245 IFS=$as_save_IFS
6246
6247 fi
6248 fi
6249 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6250 if test -n "$ac_ct_RANLIB"; then
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6252 $as_echo "$ac_ct_RANLIB" >&6; }
6253 else
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6255 $as_echo "no" >&6; }
6256 fi
6257
6258 if test "x$ac_ct_RANLIB" = x; then
6259 RANLIB=":"
6260 else
6261 case $cross_compiling:$ac_tool_warned in
6262 yes:)
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6265 ac_tool_warned=yes ;;
6266 esac
6267 RANLIB=$ac_ct_RANLIB
6268 fi
6269 else
6270 RANLIB="$ac_cv_prog_RANLIB"
6271 fi
6272
6273 fi
6274 fi
6275
6276
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6278 $as_echo_n "checking for ANSI C header files... " >&6; }
6279 if test "${ac_cv_header_stdc+set}" = set; then :
6280 $as_echo_n "(cached) " >&6
6281 else
6282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6283 /* end confdefs.h. */
6284 #include <stdlib.h>
6285 #include <stdarg.h>
6286 #include <string.h>
6287 #include <float.h>
6288
6289 int
6290 main ()
6291 {
6292
6293 ;
6294 return 0;
6295 }
6296 _ACEOF
6297 if ac_fn_c_try_compile "$LINENO"; then :
6298 ac_cv_header_stdc=yes
6299 else
6300 ac_cv_header_stdc=no
6301 fi
6302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6303
6304 if test $ac_cv_header_stdc = yes; then
6305 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6307 /* end confdefs.h. */
6308 #include <string.h>
6309
6310 _ACEOF
6311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6312 $EGREP "memchr" >/dev/null 2>&1; then :
6313
6314 else
6315 ac_cv_header_stdc=no
6316 fi
6317 rm -f conftest*
6318
6319 fi
6320
6321 if test $ac_cv_header_stdc = yes; then
6322 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6324 /* end confdefs.h. */
6325 #include <stdlib.h>
6326
6327 _ACEOF
6328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6329 $EGREP "free" >/dev/null 2>&1; then :
6330
6331 else
6332 ac_cv_header_stdc=no
6333 fi
6334 rm -f conftest*
6335
6336 fi
6337
6338 if test $ac_cv_header_stdc = yes; then
6339 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6340 if test "$cross_compiling" = yes; then :
6341 :
6342 else
6343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6344 /* end confdefs.h. */
6345 #include <ctype.h>
6346 #include <stdlib.h>
6347 #if ((' ' & 0x0FF) == 0x020)
6348 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6349 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6350 #else
6351 # define ISLOWER(c) \
6352 (('a' <= (c) && (c) <= 'i') \
6353 || ('j' <= (c) && (c) <= 'r') \
6354 || ('s' <= (c) && (c) <= 'z'))
6355 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6356 #endif
6357
6358 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6359 int
6360 main ()
6361 {
6362 int i;
6363 for (i = 0; i < 256; i++)
6364 if (XOR (islower (i), ISLOWER (i))
6365 || toupper (i) != TOUPPER (i))
6366 return 2;
6367 return 0;
6368 }
6369 _ACEOF
6370 if ac_fn_c_try_run "$LINENO"; then :
6371
6372 else
6373 ac_cv_header_stdc=no
6374 fi
6375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6376 conftest.$ac_objext conftest.beam conftest.$ac_ext
6377 fi
6378
6379 fi
6380 fi
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6382 $as_echo "$ac_cv_header_stdc" >&6; }
6383 if test $ac_cv_header_stdc = yes; then
6384
6385 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6386
6387 fi
6388
6389 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6390 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6391 inttypes.h stdint.h unistd.h
6392 do :
6393 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6394 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6395 "
6396 eval as_val=\$$as_ac_Header
6397 if test "x$as_val" = x""yes; then :
6398 cat >>confdefs.h <<_ACEOF
6399 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6400 _ACEOF
6401
6402 fi
6403
6404 done
6405
6406
6407
6408
6409
6410 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6411 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6412 MINIX=yes
6413 else
6414 MINIX=
6415 fi
6416
6417
6418 if test "$MINIX" = yes; then
6419
6420 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6421
6422
6423 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6424
6425
6426 $as_echo "#define _MINIX 1" >>confdefs.h
6427
6428 fi
6429
6430 case "$host_os" in
6431 hpux*)
6432
6433 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6434
6435 ;;
6436 esac
6437
6438
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6440 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6441 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6442 $as_echo_n "(cached) " >&6
6443 else
6444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6445 /* end confdefs.h. */
6446
6447 # define __EXTENSIONS__ 1
6448 $ac_includes_default
6449 int
6450 main ()
6451 {
6452
6453 ;
6454 return 0;
6455 }
6456 _ACEOF
6457 if ac_fn_c_try_compile "$LINENO"; then :
6458 ac_cv_safe_to_define___extensions__=yes
6459 else
6460 ac_cv_safe_to_define___extensions__=no
6461 fi
6462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6463 fi
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6465 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6466 test $ac_cv_safe_to_define___extensions__ = yes &&
6467 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6468
6469 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6470
6471 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6472
6473 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6474
6475 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6476
6477 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6478
6479
6480
6481
6482
6483
6484
6485
6486 # Check whether --enable-largefile was given.
6487 if test "${enable_largefile+set}" = set; then :
6488 enableval=$enable_largefile;
6489 fi
6490
6491 if test "$enable_largefile" != no; then
6492
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6494 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6495 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6496 $as_echo_n "(cached) " >&6
6497 else
6498 ac_cv_sys_largefile_CC=no
6499 if test "$GCC" != yes; then
6500 ac_save_CC=$CC
6501 while :; do
6502 # IRIX 6.2 and later do not support large files by default,
6503 # so use the C compiler's -n32 option if that helps.
6504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6505 /* end confdefs.h. */
6506 #include <sys/types.h>
6507 /* Check that off_t can represent 2**63 - 1 correctly.
6508 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6509 since some C++ compilers masquerading as C compilers
6510 incorrectly reject 9223372036854775807. */
6511 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6512 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6513 && LARGE_OFF_T % 2147483647 == 1)
6514 ? 1 : -1];
6515 int
6516 main ()
6517 {
6518
6519 ;
6520 return 0;
6521 }
6522 _ACEOF
6523 if ac_fn_c_try_compile "$LINENO"; then :
6524 break
6525 fi
6526 rm -f core conftest.err conftest.$ac_objext
6527 CC="$CC -n32"
6528 if ac_fn_c_try_compile "$LINENO"; then :
6529 ac_cv_sys_largefile_CC=' -n32'; break
6530 fi
6531 rm -f core conftest.err conftest.$ac_objext
6532 break
6533 done
6534 CC=$ac_save_CC
6535 rm -f conftest.$ac_ext
6536 fi
6537 fi
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6539 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6540 if test "$ac_cv_sys_largefile_CC" != no; then
6541 CC=$CC$ac_cv_sys_largefile_CC
6542 fi
6543
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6545 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6546 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6547 $as_echo_n "(cached) " >&6
6548 else
6549 while :; do
6550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6551 /* end confdefs.h. */
6552 #include <sys/types.h>
6553 /* Check that off_t can represent 2**63 - 1 correctly.
6554 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6555 since some C++ compilers masquerading as C compilers
6556 incorrectly reject 9223372036854775807. */
6557 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6558 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6559 && LARGE_OFF_T % 2147483647 == 1)
6560 ? 1 : -1];
6561 int
6562 main ()
6563 {
6564
6565 ;
6566 return 0;
6567 }
6568 _ACEOF
6569 if ac_fn_c_try_compile "$LINENO"; then :
6570 ac_cv_sys_file_offset_bits=no; break
6571 fi
6572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6574 /* end confdefs.h. */
6575 #define _FILE_OFFSET_BITS 64
6576 #include <sys/types.h>
6577 /* Check that off_t can represent 2**63 - 1 correctly.
6578 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6579 since some C++ compilers masquerading as C compilers
6580 incorrectly reject 9223372036854775807. */
6581 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6582 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6583 && LARGE_OFF_T % 2147483647 == 1)
6584 ? 1 : -1];
6585 int
6586 main ()
6587 {
6588
6589 ;
6590 return 0;
6591 }
6592 _ACEOF
6593 if ac_fn_c_try_compile "$LINENO"; then :
6594 ac_cv_sys_file_offset_bits=64; break
6595 fi
6596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6597 ac_cv_sys_file_offset_bits=unknown
6598 break
6599 done
6600 fi
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6602 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6603 case $ac_cv_sys_file_offset_bits in #(
6604 no | unknown) ;;
6605 *)
6606 cat >>confdefs.h <<_ACEOF
6607 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6608 _ACEOF
6609 ;;
6610 esac
6611 rm -rf conftest*
6612 if test $ac_cv_sys_file_offset_bits = unknown; then
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6614 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6615 if test "${ac_cv_sys_large_files+set}" = set; then :
6616 $as_echo_n "(cached) " >&6
6617 else
6618 while :; do
6619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6620 /* end confdefs.h. */
6621 #include <sys/types.h>
6622 /* Check that off_t can represent 2**63 - 1 correctly.
6623 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6624 since some C++ compilers masquerading as C compilers
6625 incorrectly reject 9223372036854775807. */
6626 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6627 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6628 && LARGE_OFF_T % 2147483647 == 1)
6629 ? 1 : -1];
6630 int
6631 main ()
6632 {
6633
6634 ;
6635 return 0;
6636 }
6637 _ACEOF
6638 if ac_fn_c_try_compile "$LINENO"; then :
6639 ac_cv_sys_large_files=no; break
6640 fi
6641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6643 /* end confdefs.h. */
6644 #define _LARGE_FILES 1
6645 #include <sys/types.h>
6646 /* Check that off_t can represent 2**63 - 1 correctly.
6647 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6648 since some C++ compilers masquerading as C compilers
6649 incorrectly reject 9223372036854775807. */
6650 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6651 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6652 && LARGE_OFF_T % 2147483647 == 1)
6653 ? 1 : -1];
6654 int
6655 main ()
6656 {
6657
6658 ;
6659 return 0;
6660 }
6661 _ACEOF
6662 if ac_fn_c_try_compile "$LINENO"; then :
6663 ac_cv_sys_large_files=1; break
6664 fi
6665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6666 ac_cv_sys_large_files=unknown
6667 break
6668 done
6669 fi
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6671 $as_echo "$ac_cv_sys_large_files" >&6; }
6672 case $ac_cv_sys_large_files in #(
6673 no | unknown) ;;
6674 *)
6675 cat >>confdefs.h <<_ACEOF
6676 #define _LARGE_FILES $ac_cv_sys_large_files
6677 _ACEOF
6678 ;;
6679 esac
6680 rm -rf conftest*
6681 fi
6682
6683
6684 fi
6685
6686 case $ac_cv_prog_cc_stdc in #(
6687 no) :
6688 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6689 *) :
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6691 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6692 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6693 $as_echo_n "(cached) " >&6
6694 else
6695 ac_cv_prog_cc_c99=no
6696 ac_save_CC=$CC
6697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6698 /* end confdefs.h. */
6699 #include <stdarg.h>
6700 #include <stdbool.h>
6701 #include <stdlib.h>
6702 #include <wchar.h>
6703 #include <stdio.h>
6704
6705 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6706 #define debug(...) fprintf (stderr, __VA_ARGS__)
6707 #define showlist(...) puts (#__VA_ARGS__)
6708 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6709 static void
6710 test_varargs_macros (void)
6711 {
6712 int x = 1234;
6713 int y = 5678;
6714 debug ("Flag");
6715 debug ("X = %d\n", x);
6716 showlist (The first, second, and third items.);
6717 report (x>y, "x is %d but y is %d", x, y);
6718 }
6719
6720 // Check long long types.
6721 #define BIG64 18446744073709551615ull
6722 #define BIG32 4294967295ul
6723 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6724 #if !BIG_OK
6725 your preprocessor is broken;
6726 #endif
6727 #if BIG_OK
6728 #else
6729 your preprocessor is broken;
6730 #endif
6731 static long long int bignum = -9223372036854775807LL;
6732 static unsigned long long int ubignum = BIG64;
6733
6734 struct incomplete_array
6735 {
6736 int datasize;
6737 double data[];
6738 };
6739
6740 struct named_init {
6741 int number;
6742 const wchar_t *name;
6743 double average;
6744 };
6745
6746 typedef const char *ccp;
6747
6748 static inline int
6749 test_restrict (ccp restrict text)
6750 {
6751 // See if C++-style comments work.
6752 // Iterate through items via the restricted pointer.
6753 // Also check for declarations in for loops.
6754 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6755 continue;
6756 return 0;
6757 }
6758
6759 // Check varargs and va_copy.
6760 static void
6761 test_varargs (const char *format, ...)
6762 {
6763 va_list args;
6764 va_start (args, format);
6765 va_list args_copy;
6766 va_copy (args_copy, args);
6767
6768 const char *str;
6769 int number;
6770 float fnumber;
6771
6772 while (*format)
6773 {
6774 switch (*format++)
6775 {
6776 case 's': // string
6777 str = va_arg (args_copy, const char *);
6778 break;
6779 case 'd': // int
6780 number = va_arg (args_copy, int);
6781 break;
6782 case 'f': // float
6783 fnumber = va_arg (args_copy, double);
6784 break;
6785 default:
6786 break;
6787 }
6788 }
6789 va_end (args_copy);
6790 va_end (args);
6791 }
6792
6793 int
6794 main ()
6795 {
6796
6797 // Check bool.
6798 _Bool success = false;
6799
6800 // Check restrict.
6801 if (test_restrict ("String literal") == 0)
6802 success = true;
6803 char *restrict newvar = "Another string";
6804
6805 // Check varargs.
6806 test_varargs ("s, d' f .", "string", 65, 34.234);
6807 test_varargs_macros ();
6808
6809 // Check flexible array members.
6810 struct incomplete_array *ia =
6811 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6812 ia->datasize = 10;
6813 for (int i = 0; i < ia->datasize; ++i)
6814 ia->data[i] = i * 1.234;
6815
6816 // Check named initializers.
6817 struct named_init ni = {
6818 .number = 34,
6819 .name = L"Test wide string",
6820 .average = 543.34343,
6821 };
6822
6823 ni.number = 58;
6824
6825 int dynamic_array[ni.number];
6826 dynamic_array[ni.number - 1] = 543;
6827
6828 // work around unused variable warnings
6829 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6830 || dynamic_array[ni.number - 1] != 543);
6831
6832 ;
6833 return 0;
6834 }
6835 _ACEOF
6836 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6837 do
6838 CC="$ac_save_CC $ac_arg"
6839 if ac_fn_c_try_compile "$LINENO"; then :
6840 ac_cv_prog_cc_c99=$ac_arg
6841 fi
6842 rm -f core conftest.err conftest.$ac_objext
6843 test "x$ac_cv_prog_cc_c99" != "xno" && break
6844 done
6845 rm -f conftest.$ac_ext
6846 CC=$ac_save_CC
6847
6848 fi
6849 # AC_CACHE_VAL
6850 case "x$ac_cv_prog_cc_c99" in
6851 x)
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6853 $as_echo "none needed" >&6; } ;;
6854 xno)
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6856 $as_echo "unsupported" >&6; } ;;
6857 *)
6858 CC="$CC $ac_cv_prog_cc_c99"
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6860 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6861 esac
6862 if test "x$ac_cv_prog_cc_c99" != xno; then :
6863 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6864 else
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6866 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6867 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6868 $as_echo_n "(cached) " >&6
6869 else
6870 ac_cv_prog_cc_c89=no
6871 ac_save_CC=$CC
6872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6873 /* end confdefs.h. */
6874 #include <stdarg.h>
6875 #include <stdio.h>
6876 #include <sys/types.h>
6877 #include <sys/stat.h>
6878 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6879 struct buf { int x; };
6880 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6881 static char *e (p, i)
6882 char **p;
6883 int i;
6884 {
6885 return p[i];
6886 }
6887 static char *f (char * (*g) (char **, int), char **p, ...)
6888 {
6889 char *s;
6890 va_list v;
6891 va_start (v,p);
6892 s = g (p, va_arg (v,int));
6893 va_end (v);
6894 return s;
6895 }
6896
6897 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6898 function prototypes and stuff, but not '\xHH' hex character constants.
6899 These don't provoke an error unfortunately, instead are silently treated
6900 as 'x'. The following induces an error, until -std is added to get
6901 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6902 array size at least. It's necessary to write '\x00'==0 to get something
6903 that's true only with -std. */
6904 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6905
6906 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6907 inside strings and character constants. */
6908 #define FOO(x) 'x'
6909 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6910
6911 int test (int i, double x);
6912 struct s1 {int (*f) (int a);};
6913 struct s2 {int (*f) (double a);};
6914 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6915 int argc;
6916 char **argv;
6917 int
6918 main ()
6919 {
6920 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6921 ;
6922 return 0;
6923 }
6924 _ACEOF
6925 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6926 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6927 do
6928 CC="$ac_save_CC $ac_arg"
6929 if ac_fn_c_try_compile "$LINENO"; then :
6930 ac_cv_prog_cc_c89=$ac_arg
6931 fi
6932 rm -f core conftest.err conftest.$ac_objext
6933 test "x$ac_cv_prog_cc_c89" != "xno" && break
6934 done
6935 rm -f conftest.$ac_ext
6936 CC=$ac_save_CC
6937
6938 fi
6939 # AC_CACHE_VAL
6940 case "x$ac_cv_prog_cc_c89" in
6941 x)
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6943 $as_echo "none needed" >&6; } ;;
6944 xno)
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6946 $as_echo "unsupported" >&6; } ;;
6947 *)
6948 CC="$CC $ac_cv_prog_cc_c89"
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6950 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6951 esac
6952 if test "x$ac_cv_prog_cc_c89" != xno; then :
6953 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6954 else
6955 ac_cv_prog_cc_stdc=no
6956 fi
6957
6958 fi
6959 ;;
6960 esac
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6962 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6963 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6964 $as_echo_n "(cached) " >&6
6965 fi
6966
6967 case $ac_cv_prog_cc_stdc in #(
6968 no) :
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6970 $as_echo "unsupported" >&6; } ;; #(
6971 '') :
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6973 $as_echo "none needed" >&6; } ;; #(
6974 *) :
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6976 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6977 esac
6978
6979
6980
6981 # Code from module alloca-opt:
6982 # Code from module allocator:
6983 # Code from module c-ctype:
6984 # Code from module c-strcase:
6985 # Code from module careadlinkat:
6986 # Code from module clock-time:
6987 # Code from module close-stream:
6988 # Code from module crypto/md5:
6989 # Code from module crypto/sha1:
6990 # Code from module crypto/sha256:
6991 # Code from module crypto/sha512:
6992 # Code from module dosname:
6993 # Code from module dtoastr:
6994 # Code from module dtotimespec:
6995 # Code from module dup2:
6996 # Code from module environ:
6997 # Code from module euidaccess:
6998 # Code from module execinfo:
6999 # Code from module extensions:
7000
7001 # Code from module extern-inline:
7002 # Code from module faccessat:
7003 # Code from module fcntl-h:
7004 # Code from module filemode:
7005 # Code from module fpending:
7006 # Code from module getgroups:
7007 # Code from module getloadavg:
7008 # Code from module getopt-gnu:
7009 # Code from module getopt-posix:
7010 # Code from module gettext-h:
7011 # Code from module gettime:
7012 # Code from module gettimeofday:
7013 # Code from module group-member:
7014 # Code from module ignore-value:
7015 # Code from module include_next:
7016 # Code from module intprops:
7017 # Code from module inttypes-incomplete:
7018 # Code from module largefile:
7019
7020 # Code from module lstat:
7021 # Code from module manywarnings:
7022 # Code from module mktime:
7023 # Code from module multiarch:
7024 # Code from module nocrash:
7025 # Code from module pathmax:
7026 # Code from module pselect:
7027 # Code from module pthread_sigmask:
7028 # Code from module readlink:
7029 # Code from module root-uid:
7030 # Code from module signal-h:
7031 # Code from module snippet/_Noreturn:
7032 # Code from module snippet/arg-nonnull:
7033 # Code from module snippet/c++defs:
7034 # Code from module snippet/warn-on-use:
7035 # Code from module socklen:
7036 # Code from module ssize_t:
7037 # Code from module stat:
7038 # Code from module stat-time:
7039 # Code from module stdalign:
7040 # Code from module stdarg:
7041
7042
7043
7044 # Code from module stdbool:
7045 # Code from module stddef:
7046 # Code from module stdint:
7047 # Code from module stdio:
7048 # Code from module stdlib:
7049 # Code from module strftime:
7050 # Code from module strtoimax:
7051 # Code from module strtoll:
7052 # Code from module strtoull:
7053 # Code from module strtoumax:
7054 # Code from module symlink:
7055 # Code from module sys_select:
7056 # Code from module sys_stat:
7057 # Code from module sys_time:
7058 # Code from module time:
7059 # Code from module time_r:
7060 # Code from module timer-time:
7061 # Code from module timespec:
7062 # Code from module timespec-add:
7063 # Code from module timespec-sub:
7064 # Code from module u64:
7065 # Code from module unistd:
7066 # Code from module utimens:
7067 # Code from module verify:
7068 # Code from module warnings:
7069 # Code from module xalloc-oversized:
7070
7071
7072 # It's helpful to have C macros available to GDB, so prefer -g3 to -g
7073 # if -g3 works and the user does not specify CFLAGS.
7074 # This test must follow gl_EARLY; otherwise AC_LINK_IFELSE complains.
7075 if test "$ac_test_CFLAGS" != set; then
7076 case $CFLAGS in
7077 '-g')
7078 emacs_g3_CFLAGS='-g3';;
7079 '-g -O2')
7080 emacs_g3_CFLAGS='-g3 -O2';;
7081 *)
7082 emacs_g3_CFLAGS='';;
7083 esac
7084 if test -n "$emacs_g3_CFLAGS"; then
7085 emacs_save_CFLAGS=$CFLAGS
7086 CFLAGS=$emacs_g3_CFLAGS
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $emacs_g3_CFLAGS" >&5
7088 $as_echo_n "checking whether $CC accepts $emacs_g3_CFLAGS... " >&6; }
7089 if test "${emacs_cv_prog_cc_g3+set}" = set; then :
7090 $as_echo_n "(cached) " >&6
7091 else
7092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7093 /* end confdefs.h. */
7094
7095 int
7096 main ()
7097 {
7098
7099 ;
7100 return 0;
7101 }
7102 _ACEOF
7103 if ac_fn_c_try_link "$LINENO"; then :
7104 emacs_cv_prog_cc_g3=yes
7105 else
7106 emacs_cv_prog_cc_g3=no
7107 fi
7108 rm -f core conftest.err conftest.$ac_objext \
7109 conftest$ac_exeext conftest.$ac_ext
7110 fi
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_g3" >&5
7112 $as_echo "$emacs_cv_prog_cc_g3" >&6; }
7113 if test $emacs_cv_prog_cc_g3 = yes; then
7114 CFLAGS=$emacs_g3_CFLAGS
7115 else
7116 CFLAGS=$emacs_save_CFLAGS
7117 fi
7118 fi
7119 fi
7120
7121 # Check whether --enable-gcc-warnings was given.
7122 if test "${enable_gcc_warnings+set}" = set; then :
7123 enableval=$enable_gcc_warnings; case $enableval in
7124 yes|no) ;;
7125 *) as_fn_error "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7126 esac
7127 gl_gcc_warnings=$enableval
7128 else
7129 gl_gcc_warnings=no
7130
7131 fi
7132
7133
7134 # Check whether --enable-link-time-optimization was given.
7135 if test "${enable_link_time_optimization+set}" = set; then :
7136 enableval=$enable_link_time_optimization; if test "${enableval}" != "no"; then
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link-time optimization is supported" >&5
7138 $as_echo_n "checking whether link-time optimization is supported... " >&6; }
7139 ac_lto_supported=no
7140 if test x$GCC = xyes; then
7141 CPUS=`getconf _NPROCESSORS_ONLN 2>/dev/null`
7142 if test x$CPUS != x; then
7143 LTO="-flto=$CPUS"
7144 else
7145 LTO="-flto"
7146 fi
7147 old_CFLAGS=$CFLAGS
7148 CFLAGS="$CFLAGS $LTO"
7149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7150 /* end confdefs.h. */
7151
7152 int
7153 main ()
7154 {
7155
7156 ;
7157 return 0;
7158 }
7159 _ACEOF
7160 if ac_fn_c_try_compile "$LINENO"; then :
7161 ac_lto_supported=yes
7162 else
7163 ac_lto_supported=no
7164 fi
7165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7166 CFLAGS="$old_CFLAGS"
7167 fi
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_lto_supported" >&5
7169 $as_echo "$ac_lto_supported" >&6; }
7170 if test "$ac_lto_supported" = "yes"; then
7171 CFLAGS="$CFLAGS $LTO"
7172 fi
7173 fi
7174 fi
7175
7176
7177 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7178 # ------------------------------------------------
7179 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7180 # Otherwise, run RUN-IF-NOT-FOUND.
7181
7182
7183 # When compiling with GCC, prefer -isystem to -I when including system
7184 # include files, to avoid generating useless diagnostics for the files.
7185 if test "$gl_gcc_warnings" != yes; then
7186 isystem='-I'
7187 else
7188 isystem='-isystem '
7189
7190 # This, $nw, is the list of warnings we disable.
7191 nw=
7192
7193 case $with_x_toolkit in
7194 lucid | athena | motif)
7195 # Old toolkits mishandle 'const'.
7196 nw="$nw -Wwrite-strings"
7197 ;;
7198 *)
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7200 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7201 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7202 $as_echo_n "(cached) " >&6
7203 else
7204
7205 gl_save_compiler_FLAGS="$CFLAGS"
7206 as_fn_append CFLAGS " -Werror"
7207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7208 /* end confdefs.h. */
7209
7210 int
7211 main ()
7212 {
7213
7214 ;
7215 return 0;
7216 }
7217 _ACEOF
7218 if ac_fn_c_try_compile "$LINENO"; then :
7219 gl_cv_warn_c__Werror=yes
7220 else
7221 gl_cv_warn_c__Werror=no
7222 fi
7223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7224 CFLAGS="$gl_save_compiler_FLAGS"
7225
7226 fi
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7228 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7229 if test "x$gl_cv_warn_c__Werror" = x""yes; then :
7230 as_fn_append WERROR_CFLAGS " -Werror"
7231 fi
7232
7233
7234 ;;
7235 esac
7236
7237
7238 nw="$nw -Waggregate-return" # anachronistic
7239 nw="$nw -Wlong-long" # C90 is anachronistic
7240 nw="$nw -Wc++-compat" # We don't care about C++ compilers
7241 nw="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
7242 nw="$nw -Wtraditional" # Warns on #elif which we use often
7243 nw="$nw -Wcast-qual" # Too many warnings for now
7244 nw="$nw -Wconversion" # Too many warnings for now
7245 nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7246 nw="$nw -Wsign-conversion" # Too many warnings for now
7247 nw="$nw -Woverlength-strings" # Not a problem these days
7248 nw="$nw -Wtraditional-conversion" # Too many warnings for now
7249 nw="$nw -Wunreachable-code" # so buggy that it's now silently ignored
7250 nw="$nw -Wpadded" # Our structs are not padded
7251 nw="$nw -Wredundant-decls" # we regularly (re)declare functions
7252 nw="$nw -Wlogical-op" # any use of fwrite provokes this
7253 nw="$nw -Wformat-nonliteral" # we do this a lot
7254 nw="$nw -Wvla" # warnings in gettext.h
7255 nw="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7256 nw="$nw -Wswitch-enum" # Too many warnings for now
7257 nw="$nw -Wswitch-default" # Too many warnings for now
7258 nw="$nw -Wfloat-equal" # warns about high-quality code
7259 nw="$nw -Winline" # OK to ignore 'inline'
7260 nw="$nw -Wjump-misses-init" # We sometimes safely jump over init.
7261 nw="$nw -Wsync-nand" # irrelevant here, and provokes ObjC warning
7262 nw="$nw -Wunsafe-loop-optimizations" # OK to suppress unsafe optimizations
7263
7264 # Emacs doesn't care about shadowing; see
7265 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7266 nw="$nw -Wshadow"
7267
7268 # The following lines should be removable at some point.
7269 nw="$nw -Wstack-protector"
7270 nw="$nw -Wstrict-overflow"
7271 nw="$nw -Wsuggest-attribute=pure"
7272
7273
7274
7275 if test -n "$GCC"; then
7276
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7278 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7279 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7280 $as_echo_n "(cached) " >&6
7281 else
7282
7283 gl_save_CFLAGS="$CFLAGS"
7284 CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7286 /* end confdefs.h. */
7287
7288 int
7289 main ()
7290 {
7291
7292 ;
7293 return 0;
7294 }
7295 _ACEOF
7296 if ac_fn_c_try_compile "$LINENO"; then :
7297 gl_cv_cc_nomfi_supported=yes
7298 else
7299 gl_cv_cc_nomfi_supported=no
7300 fi
7301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7302 CFLAGS="$gl_save_CFLAGS"
7303 fi
7304
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7306 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7307
7308 if test "$gl_cv_cc_nomfi_supported" = yes; then
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7310 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7311 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7312 $as_echo_n "(cached) " >&6
7313 else
7314
7315 gl_save_CFLAGS="$CFLAGS"
7316 CFLAGS="$CFLAGS -W -Werror"
7317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7318 /* end confdefs.h. */
7319 void f (void)
7320 {
7321 typedef struct { int a; int b; } s_t;
7322 s_t s1 = { 0, };
7323 }
7324
7325 int
7326 main ()
7327 {
7328
7329 ;
7330 return 0;
7331 }
7332 _ACEOF
7333 if ac_fn_c_try_compile "$LINENO"; then :
7334 gl_cv_cc_nomfi_needed=no
7335 else
7336 gl_cv_cc_nomfi_needed=yes
7337 fi
7338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7339 CFLAGS="$gl_save_CFLAGS"
7340
7341 fi
7342
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7344 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7345 fi
7346
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5
7348 $as_echo_n "checking whether -Wuninitialized is supported... " >&6; }
7349 if test "${gl_cv_cc_uninitialized_supported+set}" = set; then :
7350 $as_echo_n "(cached) " >&6
7351 else
7352
7353 gl_save_CFLAGS="$CFLAGS"
7354 CFLAGS="$CFLAGS -Werror -Wuninitialized"
7355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7356 /* end confdefs.h. */
7357
7358 int
7359 main ()
7360 {
7361
7362 ;
7363 return 0;
7364 }
7365 _ACEOF
7366 if ac_fn_c_try_compile "$LINENO"; then :
7367 gl_cv_cc_uninitialized_supported=yes
7368 else
7369 gl_cv_cc_uninitialized_supported=no
7370 fi
7371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7372 CFLAGS="$gl_save_CFLAGS"
7373 fi
7374
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5
7376 $as_echo "$gl_cv_cc_uninitialized_supported" >&6; }
7377
7378 fi
7379
7380 # List all gcc warning categories.
7381 gl_manywarn_set=
7382 for gl_manywarn_item in \
7383 -W \
7384 -Wabi \
7385 -Waddress \
7386 -Wall \
7387 -Warray-bounds \
7388 -Wattributes \
7389 -Wbad-function-cast \
7390 -Wbuiltin-macro-redefined \
7391 -Wcast-align \
7392 -Wchar-subscripts \
7393 -Wclobbered \
7394 -Wcomment \
7395 -Wcomments \
7396 -Wcoverage-mismatch \
7397 -Wcpp \
7398 -Wdeprecated \
7399 -Wdeprecated-declarations \
7400 -Wdisabled-optimization \
7401 -Wdiv-by-zero \
7402 -Wdouble-promotion \
7403 -Wempty-body \
7404 -Wendif-labels \
7405 -Wenum-compare \
7406 -Wextra \
7407 -Wformat-contains-nul \
7408 -Wformat-extra-args \
7409 -Wformat-nonliteral \
7410 -Wformat-security \
7411 -Wformat-y2k \
7412 -Wformat-zero-length \
7413 -Wformat=2 \
7414 -Wfree-nonheap-object \
7415 -Wignored-qualifiers \
7416 -Wimplicit \
7417 -Wimplicit-function-declaration \
7418 -Wimplicit-int \
7419 -Winit-self \
7420 -Winline \
7421 -Wint-to-pointer-cast \
7422 -Winvalid-memory-model \
7423 -Winvalid-pch \
7424 -Wjump-misses-init \
7425 -Wlogical-op \
7426 -Wmain \
7427 -Wmaybe-uninitialized \
7428 -Wmissing-braces \
7429 -Wmissing-declarations \
7430 -Wmissing-field-initializers \
7431 -Wmissing-format-attribute \
7432 -Wmissing-include-dirs \
7433 -Wmissing-noreturn \
7434 -Wmissing-parameter-type \
7435 -Wmissing-prototypes \
7436 -Wmudflap \
7437 -Wmultichar \
7438 -Wnarrowing \
7439 -Wnested-externs \
7440 -Wnonnull \
7441 -Wnormalized=nfc \
7442 -Wold-style-declaration \
7443 -Wold-style-definition \
7444 -Woverflow \
7445 -Woverlength-strings \
7446 -Woverride-init \
7447 -Wpacked \
7448 -Wpacked-bitfield-compat \
7449 -Wparentheses \
7450 -Wpointer-arith \
7451 -Wpointer-sign \
7452 -Wpointer-to-int-cast \
7453 -Wpragmas \
7454 -Wreturn-type \
7455 -Wsequence-point \
7456 -Wshadow \
7457 -Wsizeof-pointer-memaccess \
7458 -Wstack-protector \
7459 -Wstrict-aliasing \
7460 -Wstrict-overflow \
7461 -Wstrict-prototypes \
7462 -Wsuggest-attribute=const \
7463 -Wsuggest-attribute=format \
7464 -Wsuggest-attribute=noreturn \
7465 -Wsuggest-attribute=pure \
7466 -Wswitch \
7467 -Wswitch-default \
7468 -Wsync-nand \
7469 -Wsystem-headers \
7470 -Wtrampolines \
7471 -Wtrigraphs \
7472 -Wtype-limits \
7473 -Wuninitialized \
7474 -Wunknown-pragmas \
7475 -Wunreachable-code \
7476 -Wunsafe-loop-optimizations \
7477 -Wunused \
7478 -Wunused-but-set-parameter \
7479 -Wunused-but-set-variable \
7480 -Wunused-function \
7481 -Wunused-label \
7482 -Wunused-local-typedefs \
7483 -Wunused-macros \
7484 -Wunused-parameter \
7485 -Wunused-result \
7486 -Wunused-value \
7487 -Wunused-variable \
7488 -Wvarargs \
7489 -Wvariadic-macros \
7490 -Wvector-operation-performance \
7491 -Wvla \
7492 -Wvolatile-register-var \
7493 -Wwrite-strings \
7494 \
7495 ; do
7496 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7497 done
7498
7499 # Disable specific options as needed.
7500 if test "$gl_cv_cc_nomfi_needed" = yes; then
7501 gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
7502 fi
7503
7504 if test "$gl_cv_cc_uninitialized_supported" = no; then
7505 gl_manywarn_set="$gl_manywarn_set -Wno-uninitialized"
7506 fi
7507
7508 ws=$gl_manywarn_set
7509
7510
7511 gl_warn_set=
7512 set x $ws; shift
7513 for gl_warn_item
7514 do
7515 case " $nw " in
7516 *" $gl_warn_item "*)
7517 ;;
7518 *)
7519 gl_warn_set="$gl_warn_set $gl_warn_item"
7520 ;;
7521 esac
7522 done
7523 ws=$gl_warn_set
7524
7525 for w in $ws; do
7526 as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7528 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7529 if { as_var=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7530 $as_echo_n "(cached) " >&6
7531 else
7532
7533 gl_save_compiler_FLAGS="$CFLAGS"
7534 as_fn_append CFLAGS " $w"
7535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7536 /* end confdefs.h. */
7537
7538 int
7539 main ()
7540 {
7541
7542 ;
7543 return 0;
7544 }
7545 _ACEOF
7546 if ac_fn_c_try_compile "$LINENO"; then :
7547 eval "$as_gl_Warn=yes"
7548 else
7549 eval "$as_gl_Warn=no"
7550 fi
7551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7552 CFLAGS="$gl_save_compiler_FLAGS"
7553
7554 fi
7555 eval ac_res=\$$as_gl_Warn
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7557 $as_echo "$ac_res" >&6; }
7558 eval as_val=\$$as_gl_Warn
7559 if test "x$as_val" = x""yes; then :
7560 as_fn_append WARN_CFLAGS " $w"
7561 fi
7562
7563
7564 done
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7566 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7567 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7568 $as_echo_n "(cached) " >&6
7569 else
7570
7571 gl_save_compiler_FLAGS="$CFLAGS"
7572 as_fn_append CFLAGS " -Wno-missing-field-initializers"
7573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7574 /* end confdefs.h. */
7575
7576 int
7577 main ()
7578 {
7579
7580 ;
7581 return 0;
7582 }
7583 _ACEOF
7584 if ac_fn_c_try_compile "$LINENO"; then :
7585 gl_cv_warn_c__Wno_missing_field_initializers=yes
7586 else
7587 gl_cv_warn_c__Wno_missing_field_initializers=no
7588 fi
7589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7590 CFLAGS="$gl_save_compiler_FLAGS"
7591
7592 fi
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7594 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7595 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x""yes; then :
7596 as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
7597 fi
7598
7599 # We need this one
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7601 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7602 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7603 $as_echo_n "(cached) " >&6
7604 else
7605
7606 gl_save_compiler_FLAGS="$CFLAGS"
7607 as_fn_append CFLAGS " -Wno-sign-compare"
7608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7609 /* end confdefs.h. */
7610
7611 int
7612 main ()
7613 {
7614
7615 ;
7616 return 0;
7617 }
7618 _ACEOF
7619 if ac_fn_c_try_compile "$LINENO"; then :
7620 gl_cv_warn_c__Wno_sign_compare=yes
7621 else
7622 gl_cv_warn_c__Wno_sign_compare=no
7623 fi
7624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7625 CFLAGS="$gl_save_compiler_FLAGS"
7626
7627 fi
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7629 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7630 if test "x$gl_cv_warn_c__Wno_sign_compare" = x""yes; then :
7631 as_fn_append WARN_CFLAGS " -Wno-sign-compare"
7632 fi
7633
7634 # Too many warnings for now
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
7636 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
7637 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
7638 $as_echo_n "(cached) " >&6
7639 else
7640
7641 gl_save_compiler_FLAGS="$CFLAGS"
7642 as_fn_append CFLAGS " -Wno-type-limits"
7643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7644 /* end confdefs.h. */
7645
7646 int
7647 main ()
7648 {
7649
7650 ;
7651 return 0;
7652 }
7653 _ACEOF
7654 if ac_fn_c_try_compile "$LINENO"; then :
7655 gl_cv_warn_c__Wno_type_limits=yes
7656 else
7657 gl_cv_warn_c__Wno_type_limits=no
7658 fi
7659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7660 CFLAGS="$gl_save_compiler_FLAGS"
7661
7662 fi
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
7664 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
7665 if test "x$gl_cv_warn_c__Wno_type_limits" = x""yes; then :
7666 as_fn_append WARN_CFLAGS " -Wno-type-limits"
7667 fi
7668
7669 # Too many warnings for now
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7671 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7672 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7673 $as_echo_n "(cached) " >&6
7674 else
7675
7676 gl_save_compiler_FLAGS="$CFLAGS"
7677 as_fn_append CFLAGS " -Wno-switch"
7678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7679 /* end confdefs.h. */
7680
7681 int
7682 main ()
7683 {
7684
7685 ;
7686 return 0;
7687 }
7688 _ACEOF
7689 if ac_fn_c_try_compile "$LINENO"; then :
7690 gl_cv_warn_c__Wno_switch=yes
7691 else
7692 gl_cv_warn_c__Wno_switch=no
7693 fi
7694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7695 CFLAGS="$gl_save_compiler_FLAGS"
7696
7697 fi
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7699 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7700 if test "x$gl_cv_warn_c__Wno_switch" = x""yes; then :
7701 as_fn_append WARN_CFLAGS " -Wno-switch"
7702 fi
7703
7704 # Too many warnings for now
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
7706 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
7707 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
7708 $as_echo_n "(cached) " >&6
7709 else
7710
7711 gl_save_compiler_FLAGS="$CFLAGS"
7712 as_fn_append CFLAGS " -Wno-unused-parameter"
7713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7714 /* end confdefs.h. */
7715
7716 int
7717 main ()
7718 {
7719
7720 ;
7721 return 0;
7722 }
7723 _ACEOF
7724 if ac_fn_c_try_compile "$LINENO"; then :
7725 gl_cv_warn_c__Wno_unused_parameter=yes
7726 else
7727 gl_cv_warn_c__Wno_unused_parameter=no
7728 fi
7729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7730 CFLAGS="$gl_save_compiler_FLAGS"
7731
7732 fi
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
7734 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
7735 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x""yes; then :
7736 as_fn_append WARN_CFLAGS " -Wno-unused-parameter"
7737 fi
7738
7739 # Too many warnings for now
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
7741 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
7742 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
7743 $as_echo_n "(cached) " >&6
7744 else
7745
7746 gl_save_compiler_FLAGS="$CFLAGS"
7747 as_fn_append CFLAGS " -Wno-format-nonliteral"
7748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7749 /* end confdefs.h. */
7750
7751 int
7752 main ()
7753 {
7754
7755 ;
7756 return 0;
7757 }
7758 _ACEOF
7759 if ac_fn_c_try_compile "$LINENO"; then :
7760 gl_cv_warn_c__Wno_format_nonliteral=yes
7761 else
7762 gl_cv_warn_c__Wno_format_nonliteral=no
7763 fi
7764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7765 CFLAGS="$gl_save_compiler_FLAGS"
7766
7767 fi
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
7769 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
7770 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x""yes; then :
7771 as_fn_append WARN_CFLAGS " -Wno-format-nonliteral"
7772 fi
7773
7774
7775
7776 # In spite of excluding -Wlogical-op above, it is enabled, as of
7777 # gcc 4.5.0 20090517.
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
7779 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
7780 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
7781 $as_echo_n "(cached) " >&6
7782 else
7783
7784 gl_save_compiler_FLAGS="$CFLAGS"
7785 as_fn_append CFLAGS " -Wno-logical-op"
7786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7787 /* end confdefs.h. */
7788
7789 int
7790 main ()
7791 {
7792
7793 ;
7794 return 0;
7795 }
7796 _ACEOF
7797 if ac_fn_c_try_compile "$LINENO"; then :
7798 gl_cv_warn_c__Wno_logical_op=yes
7799 else
7800 gl_cv_warn_c__Wno_logical_op=no
7801 fi
7802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7803 CFLAGS="$gl_save_compiler_FLAGS"
7804
7805 fi
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
7807 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
7808 if test "x$gl_cv_warn_c__Wno_logical_op" = x""yes; then :
7809 as_fn_append WARN_CFLAGS " -Wno-logical-op"
7810 fi
7811
7812
7813
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
7815 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
7816 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
7817 $as_echo_n "(cached) " >&6
7818 else
7819
7820 gl_save_compiler_FLAGS="$CFLAGS"
7821 as_fn_append CFLAGS " -fdiagnostics-show-option"
7822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7823 /* end confdefs.h. */
7824
7825 int
7826 main ()
7827 {
7828
7829 ;
7830 return 0;
7831 }
7832 _ACEOF
7833 if ac_fn_c_try_compile "$LINENO"; then :
7834 gl_cv_warn_c__fdiagnostics_show_option=yes
7835 else
7836 gl_cv_warn_c__fdiagnostics_show_option=no
7837 fi
7838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7839 CFLAGS="$gl_save_compiler_FLAGS"
7840
7841 fi
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
7843 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
7844 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x""yes; then :
7845 as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
7846 fi
7847
7848
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
7850 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
7851 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
7852 $as_echo_n "(cached) " >&6
7853 else
7854
7855 gl_save_compiler_FLAGS="$CFLAGS"
7856 as_fn_append CFLAGS " -funit-at-a-time"
7857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7858 /* end confdefs.h. */
7859
7860 int
7861 main ()
7862 {
7863
7864 ;
7865 return 0;
7866 }
7867 _ACEOF
7868 if ac_fn_c_try_compile "$LINENO"; then :
7869 gl_cv_warn_c__funit_at_a_time=yes
7870 else
7871 gl_cv_warn_c__funit_at_a_time=no
7872 fi
7873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7874 CFLAGS="$gl_save_compiler_FLAGS"
7875
7876 fi
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
7878 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
7879 if test "x$gl_cv_warn_c__funit_at_a_time" = x""yes; then :
7880 as_fn_append WARN_CFLAGS " -funit-at-a-time"
7881 fi
7882
7883
7884
7885
7886 $as_echo "#define lint 1" >>confdefs.h
7887
7888
7889
7890 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
7891
7892
7893 # We use a slightly smaller set of warning options for lib/.
7894 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
7895 nw=
7896 nw="$nw -Wunused-macros"
7897
7898
7899 gl_warn_set=
7900 set x $WARN_CFLAGS; shift
7901 for gl_warn_item
7902 do
7903 case " $nw " in
7904 *" $gl_warn_item "*)
7905 ;;
7906 *)
7907 gl_warn_set="$gl_warn_set $gl_warn_item"
7908 ;;
7909 esac
7910 done
7911 GNULIB_WARN_CFLAGS=$gl_warn_set
7912
7913
7914 fi
7915
7916
7917
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7919 $as_echo_n "checking whether ln -s works... " >&6; }
7920 LN_S=$as_ln_s
7921 if test "$LN_S" = "ln -s"; then
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7923 $as_echo "yes" >&6; }
7924 else
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7926 $as_echo "no, using $LN_S" >&6; }
7927 fi
7928
7929
7930 # Extract the first word of "install-info", so it can be a program name with args.
7931 set dummy install-info; ac_word=$2
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7933 $as_echo_n "checking for $ac_word... " >&6; }
7934 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7935 $as_echo_n "(cached) " >&6
7936 else
7937 case $INSTALL_INFO in
7938 [\\/]* | ?:[\\/]*)
7939 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7940 ;;
7941 *)
7942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7943 for as_dir in $PATH$PATH_SEPARATOR/usr/sbin$PATH_SEPARATOR/sbin
7944 do
7945 IFS=$as_save_IFS
7946 test -z "$as_dir" && as_dir=.
7947 for ac_exec_ext in '' $ac_executable_extensions; do
7948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7949 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7951 break 2
7952 fi
7953 done
7954 done
7955 IFS=$as_save_IFS
7956
7957 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
7958 ;;
7959 esac
7960 fi
7961 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7962 if test -n "$INSTALL_INFO"; then
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7964 $as_echo "$INSTALL_INFO" >&6; }
7965 else
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7967 $as_echo "no" >&6; }
7968 fi
7969
7970
7971 # Extract the first word of "gzip", so it can be a program name with args.
7972 set dummy gzip; ac_word=$2
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7974 $as_echo_n "checking for $ac_word... " >&6; }
7975 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
7976 $as_echo_n "(cached) " >&6
7977 else
7978 case $GZIP_PROG in
7979 [\\/]* | ?:[\\/]*)
7980 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
7981 ;;
7982 *)
7983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7984 for as_dir in $PATH
7985 do
7986 IFS=$as_save_IFS
7987 test -z "$as_dir" && as_dir=.
7988 for ac_exec_ext in '' $ac_executable_extensions; do
7989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7990 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
7991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7992 break 2
7993 fi
7994 done
7995 done
7996 IFS=$as_save_IFS
7997
7998 ;;
7999 esac
8000 fi
8001 GZIP_PROG=$ac_cv_path_GZIP_PROG
8002 if test -n "$GZIP_PROG"; then
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
8004 $as_echo "$GZIP_PROG" >&6; }
8005 else
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8007 $as_echo "no" >&6; }
8008 fi
8009
8010
8011
8012 if test $opsys = gnu-linux; then
8013 # Extract the first word of "paxctl", so it can be a program name with args.
8014 set dummy paxctl; ac_word=$2
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8016 $as_echo_n "checking for $ac_word... " >&6; }
8017 if test "${ac_cv_path_PAXCTL+set}" = set; then :
8018 $as_echo_n "(cached) " >&6
8019 else
8020 case $PAXCTL in
8021 [\\/]* | ?:[\\/]*)
8022 ac_cv_path_PAXCTL="$PAXCTL" # Let the user override the test with a path.
8023 ;;
8024 *)
8025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8026 for as_dir in $PATH$PATH_SEPARATOR/sbin$PATH_SEPARATOR/usr/sbin
8027 do
8028 IFS=$as_save_IFS
8029 test -z "$as_dir" && as_dir=.
8030 for ac_exec_ext in '' $ac_executable_extensions; do
8031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8032 ac_cv_path_PAXCTL="$as_dir/$ac_word$ac_exec_ext"
8033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8034 break 2
8035 fi
8036 done
8037 done
8038 IFS=$as_save_IFS
8039
8040 ;;
8041 esac
8042 fi
8043 PAXCTL=$ac_cv_path_PAXCTL
8044 if test -n "$PAXCTL"; then
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
8046 $as_echo "$PAXCTL" >&6; }
8047 else
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8049 $as_echo "no" >&6; }
8050 fi
8051
8052
8053 if test "X$PAXCTL" != X; then
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether binaries have a PT_PAX_FLAGS header" >&5
8055 $as_echo_n "checking whether binaries have a PT_PAX_FLAGS header... " >&6; }
8056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8057 /* end confdefs.h. */
8058
8059 int
8060 main ()
8061 {
8062
8063 ;
8064 return 0;
8065 }
8066 _ACEOF
8067 if ac_fn_c_try_link "$LINENO"; then :
8068 if $PAXCTL -v conftest$EXEEXT >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8069 $as_echo "yes" >&6; }
8070 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8071 $as_echo "no" >&6; }; PAXCTL=""; fi
8072 fi
8073 rm -f core conftest.err conftest.$ac_objext \
8074 conftest$ac_exeext conftest.$ac_ext
8075 fi
8076 fi
8077
8078 ## Need makeinfo >= 4.7 (?) to build the manuals.
8079 # Extract the first word of "makeinfo", so it can be a program name with args.
8080 set dummy makeinfo; ac_word=$2
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8082 $as_echo_n "checking for $ac_word... " >&6; }
8083 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
8084 $as_echo_n "(cached) " >&6
8085 else
8086 case $MAKEINFO in
8087 [\\/]* | ?:[\\/]*)
8088 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
8089 ;;
8090 *)
8091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8092 for as_dir in $PATH
8093 do
8094 IFS=$as_save_IFS
8095 test -z "$as_dir" && as_dir=.
8096 for ac_exec_ext in '' $ac_executable_extensions; do
8097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8098 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
8099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8100 break 2
8101 fi
8102 done
8103 done
8104 IFS=$as_save_IFS
8105
8106 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
8107 ;;
8108 esac
8109 fi
8110 MAKEINFO=$ac_cv_path_MAKEINFO
8111 if test -n "$MAKEINFO"; then
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8113 $as_echo "$MAKEINFO" >&6; }
8114 else
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8116 $as_echo "no" >&6; }
8117 fi
8118
8119
8120 if test "$MAKEINFO" != "no" && \
8121 test x"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[7-9]|4\.[1-6][0-9]+)'`" = x; then
8122 MAKEINFO=no
8123 fi
8124
8125 ## Makeinfo is unusual. For a released Emacs, the manuals are
8126 ## pre-built, and not deleted by the normal clean rules. makeinfo is
8127 ## therefore in the category of "special tools" not normally required, which
8128 ## configure does not have to check for (eg autoconf itself).
8129 ## In a Bazaar checkout on the other hand, the manuals are not included.
8130 ## So makeinfo is a requirement to build from Bazaar, and configure
8131 ## should test for it as it does for any other build requirement.
8132 ## We use the presence of $srcdir/info/emacs to distinguish a release,
8133 ## with pre-built manuals, from a Bazaar checkout.
8134 HAVE_MAKEINFO=yes
8135
8136 if test "$MAKEINFO" = "no"; then
8137 MAKEINFO=makeinfo
8138 if test "x${with_makeinfo}" = "xno"; then
8139 HAVE_MAKEINFO=no
8140 elif test ! -e $srcdir/info/emacs; then
8141 as_fn_error "You do not seem to have makeinfo >= 4.7, and your
8142 source tree does not seem to have pre-built manuals in the \`info' directory.
8143 Either install a suitable version of makeinfo, or re-run configure
8144 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
8145 fi
8146 fi
8147
8148
8149 INFO_EXT=.info
8150 INFO_OPTS=--no-split
8151
8152
8153
8154
8155 if test x$GCC = xyes; then
8156 test "x$GCC_LINK_TEST_OPTIONS" != x && \
8157 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
8158 else
8159 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
8160 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
8161 fi
8162
8163
8164 late_LDFLAGS=$LDFLAGS
8165 if test x$GCC = xyes; then
8166 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
8167 else
8168 LDFLAGS="$LDFLAGS -znocombreloc"
8169 fi
8170
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
8172 $as_echo_n "checking for -znocombreloc... " >&6; }
8173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8174 /* end confdefs.h. */
8175
8176 int
8177 main ()
8178 {
8179
8180 ;
8181 return 0;
8182 }
8183 _ACEOF
8184 if ac_fn_c_try_link "$LINENO"; then :
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8186 $as_echo "yes" >&6; }
8187 else
8188 LDFLAGS=$late_LDFLAGS
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8190 $as_echo "no" >&6; }
8191 fi
8192 rm -f core conftest.err conftest.$ac_objext \
8193 conftest$ac_exeext conftest.$ac_ext
8194
8195
8196 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
8197 case "$opsys" in
8198 your-opsys-here) CANNOT_DUMP=yes ;;
8199 esac
8200
8201 test "$CANNOT_DUMP" = "yes" && \
8202
8203 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8204
8205
8206
8207
8208
8209 UNEXEC_OBJ=unexelf.o
8210 case "$opsys" in
8211 # MSDOS uses unexcoff.o
8212 # MSWindows uses unexw32.o
8213 aix4-2)
8214 UNEXEC_OBJ=unexaix.o
8215 ;;
8216 cygwin)
8217 UNEXEC_OBJ=unexcw.o
8218 ;;
8219 darwin)
8220 UNEXEC_OBJ=unexmacosx.o
8221 ;;
8222 hpux10-20 | hpux11)
8223 UNEXEC_OBJ=unexhp9k800.o
8224 ;;
8225 sol2-10)
8226 # Use the Solaris dldump() function, called from unexsol.c, to dump
8227 # emacs, instead of the generic ELF dump code found in unexelf.c.
8228 # The resulting binary has a complete symbol table, and is better
8229 # for debugging and other observability tools (debuggers, pstack, etc).
8230 #
8231 # If you encounter a problem using dldump(), please consider sending
8232 # a message to the OpenSolaris tools-linking mailing list:
8233 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8234 #
8235 # It is likely that dldump() works with older Solaris too, but this has
8236 # not been tested, so for now this change is for Solaris 10 or newer.
8237 UNEXEC_OBJ=unexsol.o
8238 ;;
8239 esac
8240
8241 LD_SWITCH_SYSTEM=
8242 case "$opsys" in
8243 freebsd)
8244 ## Let `ld' find image libs and similar things in /usr/local/lib.
8245 ## The system compiler, GCC, has apparently been modified to not
8246 ## look there, contrary to what a stock GCC would do.
8247 ### It's not our place to do this. See bug#10313#17.
8248 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8249 :
8250 ;;
8251
8252 gnu-linux)
8253 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8254 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
8255 ;;
8256
8257 netbsd)
8258 ### It's not our place to do this. See bug#10313#17.
8259 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8260 :
8261 ;;
8262
8263 openbsd)
8264 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
8265 ## otherwise Emacs dumps core on elf systems.
8266 LD_SWITCH_SYSTEM="-Z"
8267 ;;
8268 esac
8269
8270
8271 ac_link="$ac_link $LD_SWITCH_SYSTEM"
8272
8273 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8274 ## which has not been defined yet. When this was handled with cpp,
8275 ## it was expanded to null when configure sourced the s/*.h file.
8276 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8277 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8278 ## (or somesuch), but because it is supposed to go at the _front_
8279 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8280 ## Compare with the gnu-linux case below, which added to the end
8281 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8282 ## LD_SWITCH_SYSTEM_TEMACS.
8283 case "$opsys" in
8284 netbsd|openbsd)
8285 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8286 esac
8287
8288
8289 C_SWITCH_MACHINE=
8290 case $canonical in
8291 alpha*)
8292 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8293 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
8294
8295 fi
8296
8297 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8298 ## With ELF, make sure that all common symbols get allocated to in the
8299 ## data section. Otherwise, the dump of temacs may miss variables in
8300 ## the shared library that have been initialized. For example, with
8301 ## GNU libc, __malloc_initialized would normally be resolved to the
8302 ## shared library's .bss section, which is fatal.
8303 if test "x$GCC" = "xyes"; then
8304 C_SWITCH_MACHINE="-fno-common"
8305 else
8306 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8307 fi
8308 else
8309 UNEXEC_OBJ=unexalpha.o
8310 fi
8311 ;;
8312 esac
8313
8314
8315
8316
8317 C_SWITCH_SYSTEM=
8318 ## Some programs in src produce warnings saying certain subprograms
8319 ## are too complex and need a MAXMEM value greater than 2000 for
8320 ## additional optimization. --nils@exp-math.uni-essen.de
8321 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8322 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
8323 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8324 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8325
8326
8327
8328 LIBS_SYSTEM=
8329 case "$opsys" in
8330 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8331 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
8332
8333 freebsd) LIBS_SYSTEM="-lutil" ;;
8334
8335 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
8336
8337 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
8338
8339 ## Motif needs -lgen.
8340 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
8341 esac
8342
8343
8344
8345 ### Make sure subsequent tests use flags consistent with the build flags.
8346
8347 if test x"${OVERRIDE_CPPFLAGS}" != x; then
8348 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
8349 else
8350 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8351 fi
8352
8353 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8354
8355 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8356
8357
8358
8359 LIB_MATH=-lm
8360 LIB_STANDARD=
8361 START_FILES=
8362 SYSTEM_TYPE=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'`
8363
8364 case $opsys in
8365 cygwin )
8366 LIB_MATH=
8367 START_FILES='pre-crt0.o'
8368 ;;
8369 darwin )
8370 ## Adding -lm confuses the dynamic linker, so omit it.
8371 LIB_MATH=
8372 START_FILES='pre-crt0.o'
8373 ;;
8374 freebsd )
8375 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8376 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8377 SYSTEM_TYPE=berkeley-unix
8378 ;;
8379 gnu-linux | gnu-kfreebsd )
8380 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8381 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8382 ;;
8383 hpux10-20 | hpux11 )
8384 LIB_STANDARD=-lc
8385 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
8386 ;;
8387 netbsd | openbsd )
8388 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8389 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8390 SYSTEM_TYPE=berkeley-unix
8391 ;;
8392
8393 sol2* | unixware )
8394 SYSTEM_TYPE=usg-unix-v
8395 ;;
8396
8397 esac
8398
8399
8400
8401
8402 cat >>confdefs.h <<_ACEOF
8403 #define SYSTEM_TYPE "$SYSTEM_TYPE"
8404 _ACEOF
8405
8406
8407 crt_files=
8408
8409 for file in x $LIB_STANDARD $START_FILES; do
8410 case "$file" in
8411 *CRT_DIR*) crt_files="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8412 esac
8413 done
8414
8415 if test "x$crt_files" != x; then
8416
8417 ## If user specified a crt-dir, use that unconditionally.
8418 crt_gcc=no
8419
8420 if test "X$CRT_DIR" = "X"; then
8421
8422 CRT_DIR=/usr/lib # default
8423
8424 case "$canonical" in
8425 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
8426 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8427 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8428 ## For anything else (eg /usr/lib32), it is up the user to specify
8429 ## the location (bug#5655).
8430 ## Test for crtn.o, not just the directory, because sometimes the
8431 ## directory exists but does not have the relevant files (bug#1287).
8432 ## FIXME better to test for binary compatibility somehow.
8433 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
8434 ;;
8435
8436 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
8437 esac
8438
8439 case "$opsys" in
8440 hpux10-20) CRT_DIR=/lib ;;
8441 esac
8442
8443 test "x${GCC}" = xyes && crt_gcc=yes
8444
8445 fi # CRT_DIR = ""
8446
8447 crt_missing=
8448
8449 for file in $crt_files; do
8450
8451 ## If we're using gcc, try to determine it automatically by asking
8452 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8453 ## system-dependent default from above.]
8454 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8455
8456 crt_file=`$CC --print-file-name=$file 2>/dev/null`
8457 case "$crt_file" in
8458 */*)
8459 CRT_DIR=`$as_dirname -- "$crt_file" ||
8460 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8461 X"$crt_file" : 'X\(//\)[^/]' \| \
8462 X"$crt_file" : 'X\(//\)$' \| \
8463 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8464 $as_echo X"$crt_file" |
8465 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8466 s//\1/
8467 q
8468 }
8469 /^X\(\/\/\)[^/].*/{
8470 s//\1/
8471 q
8472 }
8473 /^X\(\/\/\)$/{
8474 s//\1/
8475 q
8476 }
8477 /^X\(\/\).*/{
8478 s//\1/
8479 q
8480 }
8481 s/.*/./; q'`
8482 ;;
8483 esac
8484 fi
8485
8486 crt_gcc=no
8487
8488 test -e $CRT_DIR/$file || crt_missing="$crt_missing $file"
8489 done # $crt_files
8490
8491 test "x$crt_missing" = x || \
8492 as_fn_error "Required file(s) not found:$crt_missing
8493 Try using the --with-crt-dir option." "$LINENO" 5
8494
8495 fi # crt_files != ""
8496
8497
8498
8499 case $opsys in
8500 netbsd | openbsd )
8501 if test -f $CRT_DIR/crti.o; then
8502
8503 test -f $CRT_DIR/crtn.o || \
8504 as_fn_error "Required file not found: crtn.o" "$LINENO" 5
8505
8506 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8507 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8508 fi
8509 ;;
8510 esac
8511
8512
8513 pre_PKG_CONFIG_CFLAGS=$CFLAGS
8514 pre_PKG_CONFIG_LIBS=$LIBS
8515
8516 # Extract the first word of "pkg-config", so it can be a program name with args.
8517 set dummy pkg-config; ac_word=$2
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8519 $as_echo_n "checking for $ac_word... " >&6; }
8520 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8521 $as_echo_n "(cached) " >&6
8522 else
8523 case $PKG_CONFIG in
8524 [\\/]* | ?:[\\/]*)
8525 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8526 ;;
8527 *)
8528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8529 for as_dir in $PATH
8530 do
8531 IFS=$as_save_IFS
8532 test -z "$as_dir" && as_dir=.
8533 for ac_exec_ext in '' $ac_executable_extensions; do
8534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8535 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8537 break 2
8538 fi
8539 done
8540 done
8541 IFS=$as_save_IFS
8542
8543 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8544 ;;
8545 esac
8546 fi
8547 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8548 if test -n "$PKG_CONFIG"; then
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8550 $as_echo "$PKG_CONFIG" >&6; }
8551 else
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8553 $as_echo "no" >&6; }
8554 fi
8555
8556
8557
8558
8559
8560
8561 if test "${with_sound}" != "no"; then
8562 # Sound support for GNU/Linux and the free BSDs.
8563 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
8564 do :
8565 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8566 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8567 eval as_val=\$$as_ac_Header
8568 if test "x$as_val" = x""yes; then :
8569 cat >>confdefs.h <<_ACEOF
8570 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8571 _ACEOF
8572 have_sound_header=yes
8573 fi
8574
8575 done
8576
8577 # Emulation library used on NetBSD.
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8579 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8580 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8581 $as_echo_n "(cached) " >&6
8582 else
8583 ac_check_lib_save_LIBS=$LIBS
8584 LIBS="-lossaudio $LIBS"
8585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8586 /* end confdefs.h. */
8587
8588 /* Override any GCC internal prototype to avoid an error.
8589 Use char because int might match the return type of a GCC
8590 builtin and then its argument prototype would still apply. */
8591 #ifdef __cplusplus
8592 extern "C"
8593 #endif
8594 char _oss_ioctl ();
8595 int
8596 main ()
8597 {
8598 return _oss_ioctl ();
8599 ;
8600 return 0;
8601 }
8602 _ACEOF
8603 if ac_fn_c_try_link "$LINENO"; then :
8604 ac_cv_lib_ossaudio__oss_ioctl=yes
8605 else
8606 ac_cv_lib_ossaudio__oss_ioctl=no
8607 fi
8608 rm -f core conftest.err conftest.$ac_objext \
8609 conftest$ac_exeext conftest.$ac_ext
8610 LIBS=$ac_check_lib_save_LIBS
8611 fi
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8613 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8614 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
8615 LIBSOUND=-lossaudio
8616 else
8617 LIBSOUND=
8618 fi
8619
8620
8621
8622 ALSA_REQUIRED=1.0.0
8623 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
8624
8625 succeeded=no
8626
8627 if test "$PKG_CONFIG" = "no" ; then
8628 HAVE_ALSA=no
8629 else
8630 PKG_CONFIG_MIN_VERSION=0.9.0
8631 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8633 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8634
8635 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5 &&
8636 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES" 2>&5` &&
8637 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES" 2>&5`; then
8638 edit_cflags="
8639 s,///*,/,g
8640 s/^/ /
8641 s/ -I/ $isystem/g
8642 s/^ //
8643 "
8644 ALSA_CFLAGS=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
8645 ALSA_LIBS=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
8647 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
8648 succeeded=yes
8649 else
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8651 $as_echo "no" >&6; }
8652 ALSA_CFLAGS=""
8653 ALSA_LIBS=""
8654 ## If we have a custom action on failure, don't print errors, but
8655 ## do set a variable so people can do so. Do it in a subshell
8656 ## to capture any diagnostics in invoking pkg-config.
8657 ALSA_PKG_ERRORS=`($PKG_CONFIG --print-errors "$ALSA_MODULES") 2>&1`
8658
8659 fi
8660
8661
8662
8663 else
8664 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8665 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8666 fi
8667 fi
8668
8669 if test $succeeded = yes; then
8670 HAVE_ALSA=yes
8671 else
8672 HAVE_ALSA=no
8673 fi
8674
8675 if test $HAVE_ALSA = yes; then
8676 SAVE_CFLAGS="$CFLAGS"
8677 SAVE_LIBS="$LIBS"
8678 CFLAGS="$ALSA_CFLAGS $CFLAGS"
8679 LIBS="$ALSA_LIBS $LIBS"
8680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8681 /* end confdefs.h. */
8682 #include <asoundlib.h>
8683 int
8684 main ()
8685 {
8686 snd_lib_error_set_handler (0);
8687 ;
8688 return 0;
8689 }
8690 _ACEOF
8691 if ac_fn_c_try_compile "$LINENO"; then :
8692 emacs_alsa_normal=yes
8693 else
8694 emacs_alsa_normal=no
8695 fi
8696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8697 if test "$emacs_alsa_normal" != yes; then
8698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8699 /* end confdefs.h. */
8700 #include <alsa/asoundlib.h>
8701 int
8702 main ()
8703 {
8704 snd_lib_error_set_handler (0);
8705 ;
8706 return 0;
8707 }
8708 _ACEOF
8709 if ac_fn_c_try_compile "$LINENO"; then :
8710 emacs_alsa_subdir=yes
8711 else
8712 emacs_alsa_subdir=no
8713 fi
8714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8715 if test "$emacs_alsa_subdir" != yes; then
8716 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8717 fi
8718 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8719 fi
8720
8721 CFLAGS="$SAVE_CFLAGS"
8722 LIBS="$SAVE_LIBS"
8723 LIBSOUND="$LIBSOUND $ALSA_LIBS"
8724 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
8725
8726 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8727
8728 fi
8729
8730 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
8731 case "$opsys" in
8732 gnu-linux|freebsd|netbsd)
8733
8734 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8735
8736 ;;
8737 esac
8738 fi
8739
8740
8741 fi
8742
8743
8744
8745
8746 for ac_header in $ac_header_list
8747 do :
8748 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8749 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8750 "
8751 eval as_val=\$$as_ac_Header
8752 if test "x$as_val" = x""yes; then :
8753 cat >>confdefs.h <<_ACEOF
8754 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8755 _ACEOF
8756
8757 fi
8758
8759 done
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8788 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8790 /* end confdefs.h. */
8791 #include <sys/personality.h>
8792 int
8793 main ()
8794 {
8795 personality (PER_LINUX32)
8796 ;
8797 return 0;
8798 }
8799 _ACEOF
8800 if ac_fn_c_try_compile "$LINENO"; then :
8801 emacs_cv_personality_linux32=yes
8802 else
8803 emacs_cv_personality_linux32=no
8804 fi
8805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8807 $as_echo "$emacs_cv_personality_linux32" >&6; }
8808
8809 if test $emacs_cv_personality_linux32 = yes; then
8810
8811 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8812
8813 fi
8814
8815 for ac_header in term.h
8816 do :
8817 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
8818 if test "x$ac_cv_header_term_h" = x""yes; then :
8819 cat >>confdefs.h <<_ACEOF
8820 #define HAVE_TERM_H 1
8821 _ACEOF
8822
8823 fi
8824
8825 done
8826
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8828 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8829 if test "${ac_cv_header_time+set}" = set; then :
8830 $as_echo_n "(cached) " >&6
8831 else
8832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8833 /* end confdefs.h. */
8834 #include <sys/types.h>
8835 #include <sys/time.h>
8836 #include <time.h>
8837
8838 int
8839 main ()
8840 {
8841 if ((struct tm *) 0)
8842 return 0;
8843 ;
8844 return 0;
8845 }
8846 _ACEOF
8847 if ac_fn_c_try_compile "$LINENO"; then :
8848 ac_cv_header_time=yes
8849 else
8850 ac_cv_header_time=no
8851 fi
8852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8853 fi
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8855 $as_echo "$ac_cv_header_time" >&6; }
8856 if test $ac_cv_header_time = yes; then
8857
8858 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8859
8860 fi
8861
8862 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
8863
8864 "
8865 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
8866 ac_have_decl=1
8867 else
8868 ac_have_decl=0
8869 fi
8870
8871 cat >>confdefs.h <<_ACEOF
8872 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8873 _ACEOF
8874
8875 if test $ac_cv_have_decl_sys_siglist != yes; then
8876 # For Tru64, at least:
8877 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "#include <signal.h>
8878
8879 "
8880 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
8881 ac_have_decl=1
8882 else
8883 ac_have_decl=0
8884 fi
8885
8886 cat >>confdefs.h <<_ACEOF
8887 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8888 _ACEOF
8889
8890 if test $ac_cv_have_decl___sys_siglist = yes; then
8891
8892 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8893
8894 fi
8895 fi
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8897 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8898 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8899 $as_echo_n "(cached) " >&6
8900 else
8901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8902 /* end confdefs.h. */
8903 #include <sys/types.h>
8904 #include <sys/wait.h>
8905 #ifndef WEXITSTATUS
8906 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8907 #endif
8908 #ifndef WIFEXITED
8909 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8910 #endif
8911
8912 int
8913 main ()
8914 {
8915 int s;
8916 wait (&s);
8917 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8918 ;
8919 return 0;
8920 }
8921 _ACEOF
8922 if ac_fn_c_try_compile "$LINENO"; then :
8923 ac_cv_header_sys_wait_h=yes
8924 else
8925 ac_cv_header_sys_wait_h=no
8926 fi
8927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8928 fi
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8930 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8931 if test $ac_cv_header_sys_wait_h = yes; then
8932
8933 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8934
8935 fi
8936
8937
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
8939 $as_echo_n "checking for speed_t... " >&6; }
8940 if test "${emacs_cv_speed_t+set}" = set; then :
8941 $as_echo_n "(cached) " >&6
8942 else
8943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8944 /* end confdefs.h. */
8945 #include <termios.h>
8946 int
8947 main ()
8948 {
8949 speed_t x = 1;
8950 ;
8951 return 0;
8952 }
8953 _ACEOF
8954 if ac_fn_c_try_compile "$LINENO"; then :
8955 emacs_cv_speed_t=yes
8956 else
8957 emacs_cv_speed_t=no
8958 fi
8959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8960 fi
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
8962 $as_echo "$emacs_cv_speed_t" >&6; }
8963 if test $emacs_cv_speed_t = yes; then
8964
8965 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
8966
8967 fi
8968
8969
8970
8971
8972 for ac_header in net/if.h
8973 do :
8974 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8975 #if HAVE_SYS_SOCKET_H
8976 #include <sys/socket.h>
8977 #endif
8978 "
8979 if test "x$ac_cv_header_net_if_h" = x""yes; then :
8980 cat >>confdefs.h <<_ACEOF
8981 #define HAVE_NET_IF_H 1
8982 _ACEOF
8983
8984 fi
8985
8986 done
8987
8988 for ac_header in ifaddrs.h
8989 do :
8990 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
8991 #if HAVE_SYS_SOCKET_H
8992 #include <sys/socket.h>
8993 #endif
8994 "
8995 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
8996 cat >>confdefs.h <<_ACEOF
8997 #define HAVE_IFADDRS_H 1
8998 _ACEOF
8999
9000 fi
9001
9002 done
9003
9004 for ac_header in net/if_dl.h
9005 do :
9006 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
9007 #if HAVE_SYS_SOCKET_H
9008 #include <sys/socket.h>
9009 #endif
9010 "
9011 if test "x$ac_cv_header_net_if_dl_h" = x""yes; then :
9012 cat >>confdefs.h <<_ACEOF
9013 #define HAVE_NET_IF_DL_H 1
9014 _ACEOF
9015
9016 fi
9017
9018 done
9019
9020
9021 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
9022 #if HAVE_SYS_SOCKET_H
9023 #include <sys/socket.h>
9024 #endif
9025 #if HAVE_NET_IF_H
9026 #include <net/if.h>
9027 #endif
9028 "
9029 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
9030
9031 cat >>confdefs.h <<_ACEOF
9032 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
9033 _ACEOF
9034
9035
9036 fi
9037 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
9038 #if HAVE_SYS_SOCKET_H
9039 #include <sys/socket.h>
9040 #endif
9041 #if HAVE_NET_IF_H
9042 #include <net/if.h>
9043 #endif
9044 "
9045 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
9046
9047 cat >>confdefs.h <<_ACEOF
9048 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
9049 _ACEOF
9050
9051
9052 fi
9053 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
9054 #if HAVE_SYS_SOCKET_H
9055 #include <sys/socket.h>
9056 #endif
9057 #if HAVE_NET_IF_H
9058 #include <net/if.h>
9059 #endif
9060 "
9061 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
9062
9063 cat >>confdefs.h <<_ACEOF
9064 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
9065 _ACEOF
9066
9067
9068 fi
9069 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
9070 #if HAVE_SYS_SOCKET_H
9071 #include <sys/socket.h>
9072 #endif
9073 #if HAVE_NET_IF_H
9074 #include <net/if.h>
9075 #endif
9076 "
9077 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
9078
9079 cat >>confdefs.h <<_ACEOF
9080 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9081 _ACEOF
9082
9083
9084 fi
9085 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
9086 #if HAVE_SYS_SOCKET_H
9087 #include <sys/socket.h>
9088 #endif
9089 #if HAVE_NET_IF_H
9090 #include <net/if.h>
9091 #endif
9092 "
9093 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
9094
9095 cat >>confdefs.h <<_ACEOF
9096 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9097 _ACEOF
9098
9099
9100 fi
9101 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
9102 #if HAVE_SYS_SOCKET_H
9103 #include <sys/socket.h>
9104 #endif
9105 #if HAVE_NET_IF_H
9106 #include <net/if.h>
9107 #endif
9108 "
9109 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x""yes; then :
9110
9111 cat >>confdefs.h <<_ACEOF
9112 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9113 _ACEOF
9114
9115
9116 fi
9117
9118
9119
9120
9121 DEPFLAGS=
9122 MKDEPDIR=":"
9123 deps_frag=deps.mk
9124 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9126 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9127 HAVE_GNU_MAKE=no
9128 testval=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9129 if test "x$testval" != x; then
9130 HAVE_GNU_MAKE=yes
9131 else
9132 ac_enable_autodepend=no
9133 fi
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9135 $as_echo "$HAVE_GNU_MAKE" >&6; }
9136 if test $HAVE_GNU_MAKE = yes; then
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9138 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9139 SAVE_CFLAGS="$CFLAGS"
9140 CFLAGS="$CFLAGS -MMD -MF deps.d -MP"
9141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9142 /* end confdefs.h. */
9143
9144 int
9145 main ()
9146 {
9147
9148 ;
9149 return 0;
9150 }
9151 _ACEOF
9152 if ac_fn_c_try_compile "$LINENO"; then :
9153
9154 else
9155 ac_enable_autodepend=no
9156 fi
9157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9158 CFLAGS="$SAVE_CFLAGS"
9159 test -f deps.d || ac_enable_autodepend=no
9160 rm -rf deps.d
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9162 $as_echo "$ac_enable_autodepend" >&6; }
9163 fi
9164 if test $ac_enable_autodepend = yes; then
9165 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP'
9166 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
9167 MKDEPDIR='${MKDIR_P} ${DEPDIR}'
9168 deps_frag=autodeps.mk
9169 fi
9170 fi
9171 deps_frag=$srcdir/src/$deps_frag
9172
9173
9174
9175
9176
9177 lisp_frag=$srcdir/src/lisp.mk
9178
9179
9180
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9182 $as_echo_n "checking for long file names... " >&6; }
9183 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9184 $as_echo_n "(cached) " >&6
9185 else
9186 ac_cv_sys_long_file_names=yes
9187 # Test for long file names in all the places we know might matter:
9188 # . the current directory, where building will happen
9189 # $prefix/lib where we will be installing things
9190 # $exec_prefix/lib likewise
9191 # $TMPDIR if set, where it might want to write temporary files
9192 # /tmp where it might want to write temporary files
9193 # /var/tmp likewise
9194 # /usr/tmp likewise
9195 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9196 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9197 # in the usual case where exec_prefix is '${prefix}'.
9198 case $ac_dir in #(
9199 . | /* | ?:[\\/]*) ;; #(
9200 *) continue;;
9201 esac
9202 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9203 ac_xdir=$ac_dir/cf$$
9204 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9205 ac_tf1=$ac_xdir/conftest9012345
9206 ac_tf2=$ac_xdir/conftest9012346
9207 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9208 ac_cv_sys_long_file_names=no
9209 rm -f -r "$ac_xdir" 2>/dev/null
9210 test $ac_cv_sys_long_file_names = no && break
9211 done
9212 fi
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9214 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9215 if test $ac_cv_sys_long_file_names = yes; then
9216
9217 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9218
9219 fi
9220
9221
9222 #### Choose a window system.
9223
9224 ## We leave window_system equal to none if
9225 ## we end up building without one. Any new window system should
9226 ## set window_system to an appropriate value and add objects to
9227 ## window-system-specific substs.
9228
9229 window_system=none
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9231 $as_echo_n "checking for X... " >&6; }
9232
9233
9234 # Check whether --with-x was given.
9235 if test "${with_x+set}" = set; then :
9236 withval=$with_x;
9237 fi
9238
9239 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9240 if test "x$with_x" = xno; then
9241 # The user explicitly disabled X.
9242 have_x=disabled
9243 else
9244 case $x_includes,$x_libraries in #(
9245 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9246 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9247 $as_echo_n "(cached) " >&6
9248 else
9249 # One or both of the vars are not set, and there is no cached value.
9250 ac_x_includes=no ac_x_libraries=no
9251 rm -f -r conftest.dir
9252 if mkdir conftest.dir; then
9253 cd conftest.dir
9254 cat >Imakefile <<'_ACEOF'
9255 incroot:
9256 @echo incroot='${INCROOT}'
9257 usrlibdir:
9258 @echo usrlibdir='${USRLIBDIR}'
9259 libdir:
9260 @echo libdir='${LIBDIR}'
9261 _ACEOF
9262 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9263 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9264 for ac_var in incroot usrlibdir libdir; do
9265 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9266 done
9267 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9268 for ac_extension in a so sl dylib la dll; do
9269 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9270 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9271 ac_im_usrlibdir=$ac_im_libdir; break
9272 fi
9273 done
9274 # Screen out bogus values from the imake configuration. They are
9275 # bogus both because they are the default anyway, and because
9276 # using them would break gcc on systems where it needs fixed includes.
9277 case $ac_im_incroot in
9278 /usr/include) ac_x_includes= ;;
9279 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9280 esac
9281 case $ac_im_usrlibdir in
9282 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9283 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9284 esac
9285 fi
9286 cd ..
9287 rm -f -r conftest.dir
9288 fi
9289
9290 # Standard set of common directories for X headers.
9291 # Check X11 before X11Rn because it is often a symlink to the current release.
9292 ac_x_header_dirs='
9293 /usr/X11/include
9294 /usr/X11R7/include
9295 /usr/X11R6/include
9296 /usr/X11R5/include
9297 /usr/X11R4/include
9298
9299 /usr/include/X11
9300 /usr/include/X11R7
9301 /usr/include/X11R6
9302 /usr/include/X11R5
9303 /usr/include/X11R4
9304
9305 /usr/local/X11/include
9306 /usr/local/X11R7/include
9307 /usr/local/X11R6/include
9308 /usr/local/X11R5/include
9309 /usr/local/X11R4/include
9310
9311 /usr/local/include/X11
9312 /usr/local/include/X11R7
9313 /usr/local/include/X11R6
9314 /usr/local/include/X11R5
9315 /usr/local/include/X11R4
9316
9317 /usr/X386/include
9318 /usr/x386/include
9319 /usr/XFree86/include/X11
9320
9321 /usr/include
9322 /usr/local/include
9323 /usr/unsupported/include
9324 /usr/athena/include
9325 /usr/local/x11r5/include
9326 /usr/lpp/Xamples/include
9327
9328 /usr/openwin/include
9329 /usr/openwin/share/include'
9330
9331 if test "$ac_x_includes" = no; then
9332 # Guess where to find include files, by looking for Xlib.h.
9333 # First, try using that file with no special directory specified.
9334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9335 /* end confdefs.h. */
9336 #include <X11/Xlib.h>
9337 _ACEOF
9338 if ac_fn_c_try_cpp "$LINENO"; then :
9339 # We can compile using X headers with no special include directory.
9340 ac_x_includes=
9341 else
9342 for ac_dir in $ac_x_header_dirs; do
9343 if test -r "$ac_dir/X11/Xlib.h"; then
9344 ac_x_includes=$ac_dir
9345 break
9346 fi
9347 done
9348 fi
9349 rm -f conftest.err conftest.$ac_ext
9350 fi # $ac_x_includes = no
9351
9352 if test "$ac_x_libraries" = no; then
9353 # Check for the libraries.
9354 # See if we find them without any special options.
9355 # Don't add to $LIBS permanently.
9356 ac_save_LIBS=$LIBS
9357 LIBS="-lX11 $LIBS"
9358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9359 /* end confdefs.h. */
9360 #include <X11/Xlib.h>
9361 int
9362 main ()
9363 {
9364 XrmInitialize ()
9365 ;
9366 return 0;
9367 }
9368 _ACEOF
9369 if ac_fn_c_try_link "$LINENO"; then :
9370 LIBS=$ac_save_LIBS
9371 # We can link X programs with no special library path.
9372 ac_x_libraries=
9373 else
9374 LIBS=$ac_save_LIBS
9375 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9376 do
9377 # Don't even attempt the hair of trying to link an X program!
9378 for ac_extension in a so sl dylib la dll; do
9379 if test -r "$ac_dir/libX11.$ac_extension"; then
9380 ac_x_libraries=$ac_dir
9381 break 2
9382 fi
9383 done
9384 done
9385 fi
9386 rm -f core conftest.err conftest.$ac_objext \
9387 conftest$ac_exeext conftest.$ac_ext
9388 fi # $ac_x_libraries = no
9389
9390 case $ac_x_includes,$ac_x_libraries in #(
9391 no,* | *,no | *\'*)
9392 # Didn't find X, or a directory has "'" in its name.
9393 ac_cv_have_x="have_x=no";; #(
9394 *)
9395 # Record where we found X for the cache.
9396 ac_cv_have_x="have_x=yes\
9397 ac_x_includes='$ac_x_includes'\
9398 ac_x_libraries='$ac_x_libraries'"
9399 esac
9400 fi
9401 ;; #(
9402 *) have_x=yes;;
9403 esac
9404 eval "$ac_cv_have_x"
9405 fi # $with_x != no
9406
9407 if test "$have_x" != yes; then
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9409 $as_echo "$have_x" >&6; }
9410 no_x=yes
9411 else
9412 # If each of the values was on the command line, it overrides each guess.
9413 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9414 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9415 # Update the cache value to reflect the command line values.
9416 ac_cv_have_x="have_x=yes\
9417 ac_x_includes='$x_includes'\
9418 ac_x_libraries='$x_libraries'"
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9420 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9421 fi
9422
9423 if test "$no_x" != yes; then
9424 window_system=x11
9425 fi
9426
9427 LD_SWITCH_X_SITE_RPATH=
9428 if test "${x_libraries}" != NONE; then
9429 if test -n "${x_libraries}"; then
9430 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9431 LD_SWITCH_X_SITE_RPATH=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
9432 fi
9433 x_default_search_path=""
9434 x_search_path=${x_libraries}
9435 if test -z "${x_search_path}"; then
9436 x_search_path=/usr/lib
9437 fi
9438 for x_library in `echo ${x_search_path}: | \
9439 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9440 x_search_path="\
9441 ${x_library}/X11/%L/%T/%N%C%S:\
9442 ${x_library}/X11/%l/%T/%N%C%S:\
9443 ${x_library}/X11/%T/%N%C%S:\
9444 ${x_library}/X11/%L/%T/%N%S:\
9445 ${x_library}/X11/%l/%T/%N%S:\
9446 ${x_library}/X11/%T/%N%S"
9447 if test x"${x_default_search_path}" = x; then
9448 x_default_search_path=${x_search_path}
9449 else
9450 x_default_search_path="${x_search_path}:${x_default_search_path}"
9451 fi
9452 done
9453 fi
9454
9455
9456 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9457 C_SWITCH_X_SITE="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
9458 fi
9459
9460 if test x"${x_includes}" = x; then
9461 bitmapdir=/usr/include/X11/bitmaps
9462 else
9463 # accumulate include directories that have X11 bitmap subdirectories
9464 bmd_acc="dummyval"
9465 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9466 if test -d "${bmd}/X11/bitmaps"; then
9467 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9468 fi
9469 if test -d "${bmd}/bitmaps"; then
9470 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9471 fi
9472 done
9473 if test ${bmd_acc} != "dummyval"; then
9474 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9475 fi
9476 fi
9477
9478 HAVE_NS=no
9479 NS_IMPL_COCOA=no
9480 NS_IMPL_GNUSTEP=no
9481 tmp_CPPFLAGS="$CPPFLAGS"
9482 tmp_CFLAGS="$CFLAGS"
9483 CPPFLAGS="$CPPFLAGS -x objective-c"
9484 CFLAGS="$CFLAGS -x objective-c"
9485 TEMACS_LDFLAGS2="\${LDFLAGS}"
9486 GNU_OBJC_CFLAGS=
9487 if test "${with_ns}" != no; then
9488 if test "${opsys}" = darwin; then
9489 NS_IMPL_COCOA=yes
9490 ns_appdir=`pwd`/nextstep/Emacs.app
9491 ns_appbindir=${ns_appdir}/Contents/MacOS
9492 ns_appresdir=${ns_appdir}/Contents/Resources
9493 ns_appsrc=Cocoa/Emacs.base
9494 elif test -f $GNUSTEP_CONFIG_FILE; then
9495 NS_IMPL_GNUSTEP=yes
9496 ns_appdir=`pwd`/nextstep/Emacs.app
9497 ns_appbindir=${ns_appdir}
9498 ns_appresdir=${ns_appdir}/Resources
9499 ns_appsrc=GNUstep/Emacs.base
9500 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9501 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9502 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9503 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9504 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9505 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9506 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9507 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9508 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9509 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9510 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9511 LIB_STANDARD=
9512 START_FILES=
9513 TEMACS_LDFLAGS2=
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9515 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9516 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9517 $as_echo_n "(cached) " >&6
9518 else
9519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9520 /* end confdefs.h. */
9521 #include <GNUstepBase/GSConfig.h>
9522 int
9523 main ()
9524 {
9525 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9526 1;
9527 #else
9528 fail;
9529 #endif
9530 ;
9531 return 0;
9532 }
9533 _ACEOF
9534 if ac_fn_c_try_compile "$LINENO"; then :
9535 emacs_cv_objc_exceptions=yes
9536 else
9537 emacs_cv_objc_exceptions=no
9538 fi
9539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9540 fi
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9542 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9543 if test $emacs_cv_objc_exceptions = yes; then
9544
9545 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9546
9547 GNU_OBJC_CFLAGS="-fobjc-exceptions"
9548 fi
9549 fi
9550
9551 CFLAGS="$CFLAGS $GNU_OBJC_CFLAGS"
9552
9553 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9554 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
9555 HAVE_NS=yes
9556 else
9557 as_fn_error "\`--with-ns' was specified, but the include
9558 files are missing or cannot be compiled." "$LINENO" 5
9559 fi
9560
9561
9562
9563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9564 /* end confdefs.h. */
9565 #include <AppKit/AppKit.h>
9566 int
9567 main ()
9568 {
9569
9570 #ifdef MAC_OS_X_VERSION_MAX_ALLOWED
9571 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1040
9572 ; /* OK */
9573 #else
9574 #error "OSX 10.4 or newer required"
9575 #endif
9576 #endif
9577
9578 ;
9579 return 0;
9580 }
9581 _ACEOF
9582 if ac_fn_c_try_compile "$LINENO"; then :
9583 ns_osx_have_104=yes
9584 else
9585 ns_osx_have_104=no
9586 fi
9587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9589 /* end confdefs.h. */
9590 #include <Foundation/NSObjCRuntime.h>
9591 int
9592 main ()
9593 {
9594 NSInteger i;
9595 ;
9596 return 0;
9597 }
9598 _ACEOF
9599 if ac_fn_c_try_compile "$LINENO"; then :
9600 ns_have_nsinteger=yes
9601 else
9602 ns_have_nsinteger=no
9603 fi
9604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9605 if test $ns_osx_have_104 = no; then
9606 as_fn_error "\`OSX 10.4 or newer is required'" "$LINENO" 5;
9607 fi
9608 if test $ns_have_nsinteger = yes; then
9609
9610 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
9611
9612 fi
9613 fi
9614
9615
9616
9617 INSTALL_ARCH_INDEP_EXTRA=install-etc
9618 ns_self_contained=no
9619 NS_OBJ=
9620 NS_OBJC_OBJ=
9621 if test "${HAVE_NS}" = yes; then
9622 if test "$with_toolkit_scroll_bars" = "no"; then
9623 as_fn_error "Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
9624 fi
9625
9626 window_system=nextstep
9627 # set up packaging dirs
9628 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9629 ns_self_contained=yes
9630 prefix=${ns_appresdir}
9631 exec_prefix=${ns_appbindir}
9632 libexecdir="\${ns_appbindir}/libexec"
9633 archlibdir="\${ns_appbindir}/libexec"
9634 docdir="\${ns_appresdir}/etc"
9635 etcdir="\${ns_appresdir}/etc"
9636 infodir="\${ns_appresdir}/info"
9637 mandir="\${ns_appresdir}/man"
9638 lispdir="\${ns_appresdir}/lisp"
9639 leimdir="\${ns_appresdir}/leim"
9640 INSTALL_ARCH_INDEP_EXTRA=
9641 fi
9642 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9643 fi
9644 CFLAGS="$tmp_CFLAGS"
9645 CPPFLAGS="$tmp_CPPFLAGS"
9646
9647
9648
9649
9650
9651
9652 HAVE_W32=no
9653 W32_OBJ=
9654 W32_LIBS=
9655 if test "${with_w32}" != no; then
9656 if test "${opsys}" != "cygwin"; then
9657 as_fn_error "Using w32 with an autotools build is only supported for Cygwin." "$LINENO" 5
9658 fi
9659 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
9660 if test "x$ac_cv_header_windows_h" = x""yes; then :
9661 HAVE_W32=yes
9662 else
9663 as_fn_error "\`--with-w32' was specified, but windows.h
9664 cannot be found." "$LINENO" 5
9665 fi
9666
9667
9668
9669 $as_echo "#define HAVE_NTGUI 1" >>confdefs.h
9670
9671 W32_OBJ="w32fns.o w32menu.o w32reg.o w32font.o w32term.o"
9672 W32_OBJ="$W32_OBJ w32xfns.o w32select.o w32uniscribe.o"
9673 W32_LIBS="$W32_LIBS -lkernel32 -luser32 -lgdi32 -lole32 -lcomdlg32"
9674 W32_LIBS="$W32_LIBS -lusp10 -lcomctl32 -lwinspool"
9675 fi
9676
9677
9678
9679 if test "${HAVE_W32}" = "yes"; then
9680 window_system=w32
9681 with_xft=no
9682 fi
9683
9684 ## $window_system is now set to the window system we will
9685 ## ultimately use.
9686
9687 term_header=
9688 HAVE_X_WINDOWS=no
9689 HAVE_X11=no
9690 USE_X_TOOLKIT=none
9691
9692 case "${window_system}" in
9693 x11 )
9694 HAVE_X_WINDOWS=yes
9695 HAVE_X11=yes
9696 term_header=xterm.h
9697 case "${with_x_toolkit}" in
9698 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9699 motif ) USE_X_TOOLKIT=MOTIF ;;
9700 gtk ) with_gtk=yes
9701 term_header=gtkutil.h
9702 USE_X_TOOLKIT=none ;;
9703 gtk2 ) with_gtk2=yes
9704 term_header=gtkutil.h
9705 USE_X_TOOLKIT=none ;;
9706 gtk3 ) with_gtk3=yes
9707 term_header=gtkutil.h
9708 USE_X_TOOLKIT=none ;;
9709 no ) USE_X_TOOLKIT=none ;;
9710 * ) USE_X_TOOLKIT=maybe ;;
9711 esac
9712 ;;
9713 nextstep )
9714 term_header=nsterm.h
9715 ;;
9716 w32 )
9717 term_header=w32term.h
9718 ;;
9719 esac
9720
9721 if test -n "${term_header}"; then
9722
9723 cat >>confdefs.h <<_ACEOF
9724 #define TERM_HEADER "${term_header}"
9725 _ACEOF
9726
9727 fi
9728
9729 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9730 # Extract the first word of "X", so it can be a program name with args.
9731 set dummy X; ac_word=$2
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9733 $as_echo_n "checking for $ac_word... " >&6; }
9734 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9735 $as_echo_n "(cached) " >&6
9736 else
9737 if test -n "$HAVE_XSERVER"; then
9738 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9739 else
9740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9741 for as_dir in $PATH
9742 do
9743 IFS=$as_save_IFS
9744 test -z "$as_dir" && as_dir=.
9745 for ac_exec_ext in '' $ac_executable_extensions; do
9746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9747 ac_cv_prog_HAVE_XSERVER="true"
9748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9749 break 2
9750 fi
9751 done
9752 done
9753 IFS=$as_save_IFS
9754
9755 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9756 fi
9757 fi
9758 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9759 if test -n "$HAVE_XSERVER"; then
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9761 $as_echo "$HAVE_XSERVER" >&6; }
9762 else
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9764 $as_echo "no" >&6; }
9765 fi
9766
9767
9768 if test "$HAVE_XSERVER" = true ||
9769 test -n "$DISPLAY" ||
9770 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9771 as_fn_error "You seem to be running X, but no X development libraries
9772 were found. You should install the relevant development files for X
9773 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9774 sure you have development files for image handling, i.e.
9775 tiff, gif, jpeg, png and xpm.
9776 If you are sure you want Emacs compiled without X window support, pass
9777 --without-x
9778 to configure." "$LINENO" 5
9779 fi
9780 fi
9781
9782 ### If we're using X11, we should use the X menu package.
9783 HAVE_MENUS=no
9784 case ${HAVE_X11} in
9785 yes ) HAVE_MENUS=yes ;;
9786 esac
9787
9788 # Does the opsystem file prohibit the use of the GNU malloc?
9789 # Assume not, until told otherwise.
9790 GNU_MALLOC=yes
9791
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
9793 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
9794 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
9795 $as_echo_n "(cached) " >&6
9796 else
9797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9798 /* end confdefs.h. */
9799 #include <malloc.h>
9800 static void hook (void) {}
9801 int
9802 main ()
9803 {
9804 malloc_set_state (malloc_get_state ());
9805 __after_morecore_hook = hook;
9806 __malloc_initialize_hook = hook;
9807 ;
9808 return 0;
9809 }
9810 _ACEOF
9811 if ac_fn_c_try_link "$LINENO"; then :
9812 emacs_cv_var_doug_lea_malloc=yes
9813 else
9814 emacs_cv_var_doug_lea_malloc=no
9815 fi
9816 rm -f core conftest.err conftest.$ac_objext \
9817 conftest$ac_exeext conftest.$ac_ext
9818 fi
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
9820 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
9821 doug_lea_malloc=$emacs_cv_var_doug_lea_malloc
9822
9823
9824 system_malloc=no
9825 case "$opsys" in
9826 ## darwin ld insists on the use of malloc routines in the System framework.
9827 darwin|sol2-10) system_malloc=yes ;;
9828 esac
9829
9830 if test "${system_malloc}" = "yes"; then
9831
9832 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9833
9834 GNU_MALLOC=no
9835 GNU_MALLOC_reason="
9836 (The GNU allocators don't work with this system configuration.)"
9837 GMALLOC_OBJ=
9838 VMLIMIT_OBJ=
9839 else
9840 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
9841 VMLIMIT_OBJ=vm-limit.o
9842 fi
9843
9844
9845
9846 if test "$doug_lea_malloc" = "yes" ; then
9847 if test "$GNU_MALLOC" = yes ; then
9848 GNU_MALLOC_reason="
9849 (Using Doug Lea's new malloc from the GNU C Library.)"
9850 fi
9851
9852 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9853
9854
9855 ## Use mmap directly for allocating larger buffers.
9856 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9857 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9858 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
9859 case "$opsys" in
9860 gnu*) REL_ALLOC=no ;;
9861 esac
9862 fi
9863
9864 if test x"${REL_ALLOC}" = x; then
9865 REL_ALLOC=${GNU_MALLOC}
9866 fi
9867
9868 use_mmap_for_buffers=no
9869 case "$opsys" in
9870 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
9871 esac
9872
9873
9874
9875
9876
9877
9878
9879
9880 for ac_func in getpagesize
9881 do :
9882 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9883 if test "x$ac_cv_func_getpagesize" = x""yes; then :
9884 cat >>confdefs.h <<_ACEOF
9885 #define HAVE_GETPAGESIZE 1
9886 _ACEOF
9887
9888 fi
9889 done
9890
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9892 $as_echo_n "checking for working mmap... " >&6; }
9893 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9894 $as_echo_n "(cached) " >&6
9895 else
9896 if test "$cross_compiling" = yes; then :
9897 ac_cv_func_mmap_fixed_mapped=no
9898 else
9899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9900 /* end confdefs.h. */
9901 $ac_includes_default
9902 /* malloc might have been renamed as rpl_malloc. */
9903 #undef malloc
9904
9905 /* Thanks to Mike Haertel and Jim Avera for this test.
9906 Here is a matrix of mmap possibilities:
9907 mmap private not fixed
9908 mmap private fixed at somewhere currently unmapped
9909 mmap private fixed at somewhere already mapped
9910 mmap shared not fixed
9911 mmap shared fixed at somewhere currently unmapped
9912 mmap shared fixed at somewhere already mapped
9913 For private mappings, we should verify that changes cannot be read()
9914 back from the file, nor mmap's back from the file at a different
9915 address. (There have been systems where private was not correctly
9916 implemented like the infamous i386 svr4.0, and systems where the
9917 VM page cache was not coherent with the file system buffer cache
9918 like early versions of FreeBSD and possibly contemporary NetBSD.)
9919 For shared mappings, we should conversely verify that changes get
9920 propagated back to all the places they're supposed to be.
9921
9922 Grep wants private fixed already mapped.
9923 The main things grep needs to know about mmap are:
9924 * does it exist and is it safe to write into the mmap'd area
9925 * how to use it (BSD variants) */
9926
9927 #include <fcntl.h>
9928 #include <sys/mman.h>
9929
9930 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9931 char *malloc ();
9932 #endif
9933
9934 /* This mess was copied from the GNU getpagesize.h. */
9935 #ifndef HAVE_GETPAGESIZE
9936 # ifdef _SC_PAGESIZE
9937 # define getpagesize() sysconf(_SC_PAGESIZE)
9938 # else /* no _SC_PAGESIZE */
9939 # ifdef HAVE_SYS_PARAM_H
9940 # include <sys/param.h>
9941 # ifdef EXEC_PAGESIZE
9942 # define getpagesize() EXEC_PAGESIZE
9943 # else /* no EXEC_PAGESIZE */
9944 # ifdef NBPG
9945 # define getpagesize() NBPG * CLSIZE
9946 # ifndef CLSIZE
9947 # define CLSIZE 1
9948 # endif /* no CLSIZE */
9949 # else /* no NBPG */
9950 # ifdef NBPC
9951 # define getpagesize() NBPC
9952 # else /* no NBPC */
9953 # ifdef PAGESIZE
9954 # define getpagesize() PAGESIZE
9955 # endif /* PAGESIZE */
9956 # endif /* no NBPC */
9957 # endif /* no NBPG */
9958 # endif /* no EXEC_PAGESIZE */
9959 # else /* no HAVE_SYS_PARAM_H */
9960 # define getpagesize() 8192 /* punt totally */
9961 # endif /* no HAVE_SYS_PARAM_H */
9962 # endif /* no _SC_PAGESIZE */
9963
9964 #endif /* no HAVE_GETPAGESIZE */
9965
9966 int
9967 main ()
9968 {
9969 char *data, *data2, *data3;
9970 const char *cdata2;
9971 int i, pagesize;
9972 int fd, fd2;
9973
9974 pagesize = getpagesize ();
9975
9976 /* First, make a file with some known garbage in it. */
9977 data = (char *) malloc (pagesize);
9978 if (!data)
9979 return 1;
9980 for (i = 0; i < pagesize; ++i)
9981 *(data + i) = rand ();
9982 umask (0);
9983 fd = creat ("conftest.mmap", 0600);
9984 if (fd < 0)
9985 return 2;
9986 if (write (fd, data, pagesize) != pagesize)
9987 return 3;
9988 close (fd);
9989
9990 /* Next, check that the tail of a page is zero-filled. File must have
9991 non-zero length, otherwise we risk SIGBUS for entire page. */
9992 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9993 if (fd2 < 0)
9994 return 4;
9995 cdata2 = "";
9996 if (write (fd2, cdata2, 1) != 1)
9997 return 5;
9998 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9999 if (data2 == MAP_FAILED)
10000 return 6;
10001 for (i = 0; i < pagesize; ++i)
10002 if (*(data2 + i))
10003 return 7;
10004 close (fd2);
10005 if (munmap (data2, pagesize))
10006 return 8;
10007
10008 /* Next, try to mmap the file at a fixed address which already has
10009 something else allocated at it. If we can, also make sure that
10010 we see the same garbage. */
10011 fd = open ("conftest.mmap", O_RDWR);
10012 if (fd < 0)
10013 return 9;
10014 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10015 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10016 return 10;
10017 for (i = 0; i < pagesize; ++i)
10018 if (*(data + i) != *(data2 + i))
10019 return 11;
10020
10021 /* Finally, make sure that changes to the mapped area do not
10022 percolate back to the file as seen by read(). (This is a bug on
10023 some variants of i386 svr4.0.) */
10024 for (i = 0; i < pagesize; ++i)
10025 *(data2 + i) = *(data2 + i) + 1;
10026 data3 = (char *) malloc (pagesize);
10027 if (!data3)
10028 return 12;
10029 if (read (fd, data3, pagesize) != pagesize)
10030 return 13;
10031 for (i = 0; i < pagesize; ++i)
10032 if (*(data + i) != *(data3 + i))
10033 return 14;
10034 close (fd);
10035 return 0;
10036 }
10037 _ACEOF
10038 if ac_fn_c_try_run "$LINENO"; then :
10039 ac_cv_func_mmap_fixed_mapped=yes
10040 else
10041 ac_cv_func_mmap_fixed_mapped=no
10042 fi
10043 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10044 conftest.$ac_objext conftest.beam conftest.$ac_ext
10045 fi
10046
10047 fi
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10049 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10050 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10051
10052 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10053
10054 fi
10055 rm -f conftest.mmap conftest.txt
10056
10057 if test $use_mmap_for_buffers = yes; then
10058
10059 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10060
10061 REL_ALLOC=no
10062 fi
10063
10064 LIBS="$LIBS_SYSTEM $LIBS"
10065
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10067 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10068 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10069 $as_echo_n "(cached) " >&6
10070 else
10071 ac_check_lib_save_LIBS=$LIBS
10072 LIBS="-ldnet $LIBS"
10073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10074 /* end confdefs.h. */
10075
10076 /* Override any GCC internal prototype to avoid an error.
10077 Use char because int might match the return type of a GCC
10078 builtin and then its argument prototype would still apply. */
10079 #ifdef __cplusplus
10080 extern "C"
10081 #endif
10082 char dnet_ntoa ();
10083 int
10084 main ()
10085 {
10086 return dnet_ntoa ();
10087 ;
10088 return 0;
10089 }
10090 _ACEOF
10091 if ac_fn_c_try_link "$LINENO"; then :
10092 ac_cv_lib_dnet_dnet_ntoa=yes
10093 else
10094 ac_cv_lib_dnet_dnet_ntoa=no
10095 fi
10096 rm -f core conftest.err conftest.$ac_objext \
10097 conftest$ac_exeext conftest.$ac_ext
10098 LIBS=$ac_check_lib_save_LIBS
10099 fi
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10101 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10102 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
10103 cat >>confdefs.h <<_ACEOF
10104 #define HAVE_LIBDNET 1
10105 _ACEOF
10106
10107 LIBS="-ldnet $LIBS"
10108
10109 fi
10110
10111
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10113 $as_echo_n "checking for main in -lXbsd... " >&6; }
10114 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10115 $as_echo_n "(cached) " >&6
10116 else
10117 ac_check_lib_save_LIBS=$LIBS
10118 LIBS="-lXbsd $LIBS"
10119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10120 /* end confdefs.h. */
10121
10122
10123 int
10124 main ()
10125 {
10126 return main ();
10127 ;
10128 return 0;
10129 }
10130 _ACEOF
10131 if ac_fn_c_try_link "$LINENO"; then :
10132 ac_cv_lib_Xbsd_main=yes
10133 else
10134 ac_cv_lib_Xbsd_main=no
10135 fi
10136 rm -f core conftest.err conftest.$ac_objext \
10137 conftest$ac_exeext conftest.$ac_ext
10138 LIBS=$ac_check_lib_save_LIBS
10139 fi
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10141 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10142 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
10143 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10144 fi
10145
10146
10147 LIB_PTHREAD=
10148
10149
10150
10151 if test "$ac_cv_header_pthread_h"; then
10152 if test "$GMALLOC_OBJ" = gmalloc.o; then
10153 emacs_pthread_function=pthread_atfork
10154 else
10155 emacs_pthread_function=pthread_self
10156 fi
10157 as_ac_Lib=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
10159 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
10160 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
10161 $as_echo_n "(cached) " >&6
10162 else
10163 ac_check_lib_save_LIBS=$LIBS
10164 LIBS="-lpthread $LIBS"
10165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10166 /* end confdefs.h. */
10167
10168 /* Override any GCC internal prototype to avoid an error.
10169 Use char because int might match the return type of a GCC
10170 builtin and then its argument prototype would still apply. */
10171 #ifdef __cplusplus
10172 extern "C"
10173 #endif
10174 char $emacs_pthread_function ();
10175 int
10176 main ()
10177 {
10178 return $emacs_pthread_function ();
10179 ;
10180 return 0;
10181 }
10182 _ACEOF
10183 if ac_fn_c_try_link "$LINENO"; then :
10184 eval "$as_ac_Lib=yes"
10185 else
10186 eval "$as_ac_Lib=no"
10187 fi
10188 rm -f core conftest.err conftest.$ac_objext \
10189 conftest$ac_exeext conftest.$ac_ext
10190 LIBS=$ac_check_lib_save_LIBS
10191 fi
10192 eval ac_res=\$$as_ac_Lib
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10194 $as_echo "$ac_res" >&6; }
10195 eval as_val=\$$as_ac_Lib
10196 if test "x$as_val" = x""yes; then :
10197 HAVE_PTHREAD=yes
10198 fi
10199
10200 fi
10201 if test "$HAVE_PTHREAD" = yes; then
10202 case "${canonical}" in
10203 *-hpux*) ;;
10204 *) LIB_PTHREAD="-lpthread"
10205 LIBS="$LIB_PTHREAD $LIBS" ;;
10206 esac
10207
10208 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10209
10210 fi
10211
10212
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10214 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10215 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10216 $as_echo_n "(cached) " >&6
10217 else
10218 ac_check_lib_save_LIBS=$LIBS
10219 LIBS="-lpthreads $LIBS"
10220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10221 /* end confdefs.h. */
10222
10223 /* Override any GCC internal prototype to avoid an error.
10224 Use char because int might match the return type of a GCC
10225 builtin and then its argument prototype would still apply. */
10226 #ifdef __cplusplus
10227 extern "C"
10228 #endif
10229 char cma_open ();
10230 int
10231 main ()
10232 {
10233 return cma_open ();
10234 ;
10235 return 0;
10236 }
10237 _ACEOF
10238 if ac_fn_c_try_link "$LINENO"; then :
10239 ac_cv_lib_pthreads_cma_open=yes
10240 else
10241 ac_cv_lib_pthreads_cma_open=no
10242 fi
10243 rm -f core conftest.err conftest.$ac_objext \
10244 conftest$ac_exeext conftest.$ac_ext
10245 LIBS=$ac_check_lib_save_LIBS
10246 fi
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10248 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10249 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
10250 cat >>confdefs.h <<_ACEOF
10251 #define HAVE_LIBPTHREADS 1
10252 _ACEOF
10253
10254 LIBS="-lpthreads $LIBS"
10255
10256 fi
10257
10258
10259 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10260 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10261 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10262 ## added to LIBS in configure would never contain the pthreads part,
10263 ## but the value used in Makefiles might. FIXME?
10264 ##
10265 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10266 ## be harmless on older versions of X where it happens to exist.
10267 test "$opsys" = "aix4-2" && \
10268 test $ac_cv_lib_pthreads_cma_open = yes && \
10269 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
10270
10271
10272 case ${host_os} in
10273 aix*)
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10275 $as_echo_n "checking for -bbigtoc option... " >&6; }
10276 if test "${gdb_cv_bigtoc+set}" = set; then :
10277 $as_echo_n "(cached) " >&6
10278 else
10279
10280 case $GCC in
10281 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10282 *) gdb_cv_bigtoc=-bbigtoc ;;
10283 esac
10284
10285 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10287 /* end confdefs.h. */
10288
10289 int
10290 main ()
10291 {
10292 int i;
10293 ;
10294 return 0;
10295 }
10296 _ACEOF
10297 if ac_fn_c_try_link "$LINENO"; then :
10298
10299 else
10300 gdb_cv_bigtoc=
10301 fi
10302 rm -f core conftest.err conftest.$ac_objext \
10303 conftest$ac_exeext conftest.$ac_ext
10304
10305 fi
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10307 $as_echo "$gdb_cv_bigtoc" >&6; }
10308 ;;
10309 esac
10310
10311 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10312 # used for the tests that follow. We set them back to REAL_CFLAGS and
10313 # REAL_CPPFLAGS later on.
10314
10315 REAL_CFLAGS="$CFLAGS"
10316 REAL_CPPFLAGS="$CPPFLAGS"
10317
10318 if test "${HAVE_X11}" = "yes"; then
10319 DEFS="$C_SWITCH_X_SITE $DEFS"
10320 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10321 LIBS="-lX11 $LIBS"
10322 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10323 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10324
10325 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10326 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
10327 # but it's more convenient here to set LD_RUN_PATH since this
10328 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
10329 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10330 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10331 export LD_RUN_PATH
10332 fi
10333
10334 if test "${opsys}" = "gnu-linux"; then
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10336 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10338 /* end confdefs.h. */
10339
10340 int
10341 main ()
10342 {
10343 XOpenDisplay ("foo");
10344 ;
10345 return 0;
10346 }
10347 _ACEOF
10348 if ac_fn_c_try_link "$LINENO"; then :
10349 xgnu_linux_first_failure=no
10350 else
10351 xgnu_linux_first_failure=yes
10352 fi
10353 rm -f core conftest.err conftest.$ac_objext \
10354 conftest$ac_exeext conftest.$ac_ext
10355 if test "${xgnu_linux_first_failure}" = "yes"; then
10356 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10357 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10358 OLD_CPPFLAGS="$CPPFLAGS"
10359 OLD_LIBS="$LIBS"
10360 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10361 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10362 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10363 LIBS="$LIBS -b i486-linuxaout"
10364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10365 /* end confdefs.h. */
10366
10367 int
10368 main ()
10369 {
10370 XOpenDisplay ("foo");
10371 ;
10372 return 0;
10373 }
10374 _ACEOF
10375 if ac_fn_c_try_link "$LINENO"; then :
10376 xgnu_linux_second_failure=no
10377 else
10378 xgnu_linux_second_failure=yes
10379 fi
10380 rm -f core conftest.err conftest.$ac_objext \
10381 conftest$ac_exeext conftest.$ac_ext
10382 if test "${xgnu_linux_second_failure}" = "yes"; then
10383 # If we get the same failure with -b, there is no use adding -b.
10384 # So take it out. This plays safe.
10385 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10386 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10387 CPPFLAGS="$OLD_CPPFLAGS"
10388 LIBS="$OLD_LIBS"
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10390 $as_echo "no" >&6; }
10391 else
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10393 $as_echo "yes" >&6; }
10394 fi
10395 else
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10397 $as_echo "no" >&6; }
10398 fi
10399 fi
10400
10401 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10402 # header files included from there.
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10404 $as_echo_n "checking for Xkb... " >&6; }
10405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10406 /* end confdefs.h. */
10407 #include <X11/Xlib.h>
10408 #include <X11/XKBlib.h>
10409 int
10410 main ()
10411 {
10412 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10413 ;
10414 return 0;
10415 }
10416 _ACEOF
10417 if ac_fn_c_try_link "$LINENO"; then :
10418 emacs_xkb=yes
10419 else
10420 emacs_xkb=no
10421 fi
10422 rm -f core conftest.err conftest.$ac_objext \
10423 conftest$ac_exeext conftest.$ac_ext
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10425 $as_echo "$emacs_xkb" >&6; }
10426 if test $emacs_xkb = yes; then
10427
10428 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10429
10430 fi
10431
10432 for ac_func in XrmSetDatabase XScreenResourceString \
10433 XScreenNumberOfScreen
10434 do :
10435 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10436 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10437 eval as_val=\$$as_ac_var
10438 if test "x$as_val" = x""yes; then :
10439 cat >>confdefs.h <<_ACEOF
10440 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10441 _ACEOF
10442
10443 fi
10444 done
10445
10446 fi
10447
10448 if test "${window_system}" = "x11"; then
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10450 $as_echo_n "checking X11 version 6... " >&6; }
10451 if test "${emacs_cv_x11_version_6+set}" = set; then :
10452 $as_echo_n "(cached) " >&6
10453 else
10454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10455 /* end confdefs.h. */
10456 #include <X11/Xlib.h>
10457 int
10458 main ()
10459 {
10460 #if XlibSpecificationRelease < 6
10461 fail;
10462 #endif
10463
10464 ;
10465 return 0;
10466 }
10467 _ACEOF
10468 if ac_fn_c_try_link "$LINENO"; then :
10469 emacs_cv_x11_version_6=yes
10470 else
10471 emacs_cv_x11_version_6=no
10472 fi
10473 rm -f core conftest.err conftest.$ac_objext \
10474 conftest$ac_exeext conftest.$ac_ext
10475 fi
10476
10477 if test $emacs_cv_x11_version_6 = yes; then
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10479 $as_echo "6 or newer" >&6; }
10480
10481 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10482
10483
10484 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10485
10486 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10487 ## XIM support.
10488 case "$opsys" in
10489 sol2-*) : ;;
10490 *)
10491 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10492
10493 ;;
10494 esac
10495 else
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10497 $as_echo "before 6" >&6; }
10498 fi
10499 fi
10500
10501
10502 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10503 HAVE_RSVG=no
10504 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
10505 if test "${with_rsvg}" != "no"; then
10506 RSVG_REQUIRED=2.11.0
10507 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10508
10509
10510 succeeded=no
10511
10512 if test "$PKG_CONFIG" = "no" ; then
10513 :
10514 else
10515 PKG_CONFIG_MIN_VERSION=0.9.0
10516 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10518 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10519
10520 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5 &&
10521 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE" 2>&5` &&
10522 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE" 2>&5`; then
10523 edit_cflags="
10524 s,///*,/,g
10525 s/^/ /
10526 s/ -I/ $isystem/g
10527 s/^ //
10528 "
10529 RSVG_CFLAGS=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
10530 RSVG_LIBS=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
10532 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
10533 succeeded=yes
10534 else
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10536 $as_echo "no" >&6; }
10537 RSVG_CFLAGS=""
10538 RSVG_LIBS=""
10539 ## If we have a custom action on failure, don't print errors, but
10540 ## do set a variable so people can do so. Do it in a subshell
10541 ## to capture any diagnostics in invoking pkg-config.
10542 RSVG_PKG_ERRORS=`($PKG_CONFIG --print-errors "$RSVG_MODULE") 2>&1`
10543
10544 fi
10545
10546
10547
10548 else
10549 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10550 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10551 fi
10552 fi
10553
10554 if test $succeeded = yes; then
10555 HAVE_RSVG=yes
10556 else
10557 :
10558 fi
10559
10560
10561
10562
10563 if test $HAVE_RSVG = yes; then
10564
10565 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10566
10567 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10568 LIBS="$RSVG_LIBS $LIBS"
10569 fi
10570 fi
10571 fi
10572
10573 HAVE_IMAGEMAGICK=no
10574 if test "${HAVE_X11}" = "yes"; then
10575 if test "${with_imagemagick}" != "no"; then
10576 ## 6.2.8 is the earliest version known to work, but earlier versions
10577 ## might work - let us know if you find one.
10578 ## 6.0.7 does not work. See bug#7955.
10579 IMAGEMAGICK_MODULE="Wand >= 6.2.8"
10580
10581 succeeded=no
10582
10583 if test "$PKG_CONFIG" = "no" ; then
10584 :
10585 else
10586 PKG_CONFIG_MIN_VERSION=0.9.0
10587 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10589 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10590
10591 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
10592 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
10593 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
10594 edit_cflags="
10595 s,///*,/,g
10596 s/^/ /
10597 s/ -I/ $isystem/g
10598 s/^ //
10599 "
10600 IMAGEMAGICK_CFLAGS=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
10601 IMAGEMAGICK_LIBS=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
10603 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
10604 succeeded=yes
10605 else
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10607 $as_echo "no" >&6; }
10608 IMAGEMAGICK_CFLAGS=""
10609 IMAGEMAGICK_LIBS=""
10610 ## If we have a custom action on failure, don't print errors, but
10611 ## do set a variable so people can do so. Do it in a subshell
10612 ## to capture any diagnostics in invoking pkg-config.
10613 IMAGEMAGICK_PKG_ERRORS=`($PKG_CONFIG --print-errors "$IMAGEMAGICK_MODULE") 2>&1`
10614
10615 fi
10616
10617
10618
10619 else
10620 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10621 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10622 fi
10623 fi
10624
10625 if test $succeeded = yes; then
10626 HAVE_IMAGEMAGICK=yes
10627 else
10628 :
10629 fi
10630
10631
10632
10633
10634 if test $HAVE_IMAGEMAGICK = yes; then
10635
10636 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10637
10638 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
10639 LIBS="$IMAGEMAGICK_LIBS $LIBS"
10640 for ac_func in MagickExportImagePixels MagickMergeImageLayers
10641 do :
10642 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10643 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10644 eval as_val=\$$as_ac_var
10645 if test "x$as_val" = x""yes; then :
10646 cat >>confdefs.h <<_ACEOF
10647 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10648 _ACEOF
10649
10650 fi
10651 done
10652
10653 fi
10654 fi
10655 fi
10656
10657
10658 HAVE_GTK=no
10659 GTK_OBJ=
10660 check_gtk2=no
10661 gtk3_pkg_errors=
10662 if test "${with_gtk3}" = "yes" || test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10663 GLIB_REQUIRED=2.28
10664 GTK_REQUIRED=3.0
10665 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10666
10667
10668 succeeded=no
10669
10670 if test "$PKG_CONFIG" = "no" ; then
10671 pkg_check_gtk=no
10672 else
10673 PKG_CONFIG_MIN_VERSION=0.9.0
10674 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10676 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10677
10678 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
10679 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
10680 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
10681 edit_cflags="
10682 s,///*,/,g
10683 s/^/ /
10684 s/ -I/ $isystem/g
10685 s/^ //
10686 "
10687 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10688 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10690 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10691 succeeded=yes
10692 else
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10694 $as_echo "no" >&6; }
10695 GTK_CFLAGS=""
10696 GTK_LIBS=""
10697 ## If we have a custom action on failure, don't print errors, but
10698 ## do set a variable so people can do so. Do it in a subshell
10699 ## to capture any diagnostics in invoking pkg-config.
10700 GTK_PKG_ERRORS=`($PKG_CONFIG --print-errors "$GTK_MODULES") 2>&1`
10701
10702 fi
10703
10704
10705
10706 else
10707 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10708 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10709 fi
10710 fi
10711
10712 if test $succeeded = yes; then
10713 pkg_check_gtk=yes
10714 else
10715 pkg_check_gtk=no
10716 fi
10717
10718 if test "$pkg_check_gtk" = "no" && test "$with_gtk3" = "yes"; then
10719 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
10720 fi
10721 if test "$pkg_check_gtk" = "yes"; then
10722
10723 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
10724
10725 GTK_OBJ=emacsgtkfixed.o
10726 term_header=gtkutil.h
10727 USE_GTK_TOOLKIT="GTK3"
10728 else
10729 check_gtk2=yes
10730 gtk3_pkg_errors="$GTK_PKG_ERRORS "
10731 fi
10732 fi
10733
10734 if test "${with_gtk2}" = "yes" || test "$check_gtk2" = "yes"; then
10735 GLIB_REQUIRED=2.10
10736 GTK_REQUIRED=2.10
10737 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10738
10739
10740 succeeded=no
10741
10742 if test "$PKG_CONFIG" = "no" ; then
10743 pkg_check_gtk=no
10744 else
10745 PKG_CONFIG_MIN_VERSION=0.9.0
10746 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10748 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10749
10750 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
10751 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
10752 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
10753 edit_cflags="
10754 s,///*,/,g
10755 s/^/ /
10756 s/ -I/ $isystem/g
10757 s/^ //
10758 "
10759 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10760 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10762 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10763 succeeded=yes
10764 else
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10766 $as_echo "no" >&6; }
10767 GTK_CFLAGS=""
10768 GTK_LIBS=""
10769 ## If we have a custom action on failure, don't print errors, but
10770 ## do set a variable so people can do so. Do it in a subshell
10771 ## to capture any diagnostics in invoking pkg-config.
10772 GTK_PKG_ERRORS=`($PKG_CONFIG --print-errors "$GTK_MODULES") 2>&1`
10773
10774 fi
10775
10776
10777
10778 else
10779 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10780 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10781 fi
10782 fi
10783
10784 if test $succeeded = yes; then
10785 pkg_check_gtk=yes
10786 else
10787 pkg_check_gtk=no
10788 fi
10789
10790 if test "$pkg_check_gtk" = "no" &&
10791 { test "$with_gtk" = yes || test "$with_gtk2" = "yes"; }
10792 then
10793 as_fn_error "$gtk3_pkg_errors$GTK_PKG_ERRORS" "$LINENO" 5
10794 fi
10795 test "$pkg_check_gtk" = "yes" && USE_GTK_TOOLKIT="GTK2"
10796 fi
10797
10798 if test x"$pkg_check_gtk" = xyes; then
10799
10800
10801
10802 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10803 CFLAGS="$CFLAGS $GTK_CFLAGS"
10804 LIBS="$GTK_LIBS $LIBS"
10805 GTK_COMPILES=no
10806 for ac_func in gtk_main
10807 do :
10808 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10809 if test "x$ac_cv_func_gtk_main" = x""yes; then :
10810 cat >>confdefs.h <<_ACEOF
10811 #define HAVE_GTK_MAIN 1
10812 _ACEOF
10813 GTK_COMPILES=yes
10814 fi
10815 done
10816
10817 if test "${GTK_COMPILES}" != "yes"; then
10818 if test "$USE_X_TOOLKIT" != "maybe"; then
10819 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10820 fi
10821 else
10822 HAVE_GTK=yes
10823
10824 $as_echo "#define USE_GTK 1" >>confdefs.h
10825
10826 GTK_OBJ="gtkutil.o $GTK_OBJ"
10827 USE_X_TOOLKIT=none
10828 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
10829 :
10830 else
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10832 closing open displays. This is no problem if you just use
10833 one display, but if you use more than one and close one of them
10834 Emacs may crash." >&5
10835 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10836 closing open displays. This is no problem if you just use
10837 one display, but if you use more than one and close one of them
10838 Emacs may crash." >&2;}
10839 sleep 3
10840 fi
10841 fi
10842
10843 fi
10844
10845
10846
10847 if test "${HAVE_GTK}" = "yes"; then
10848
10849 if test "$with_toolkit_scroll_bars" != no; then
10850 with_toolkit_scroll_bars=yes
10851 fi
10852
10853 HAVE_GTK_FILE_SELECTION=no
10854 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10855 #include <gtk/gtk.h>
10856 "
10857 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
10858 HAVE_GTK_FILE_SELECTION=yes
10859 else
10860 HAVE_GTK_FILE_SELECTION=no
10861 fi
10862
10863 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10864 for ac_func in gtk_file_selection_new
10865 do :
10866 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10867 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
10868 cat >>confdefs.h <<_ACEOF
10869 #define HAVE_GTK_FILE_SELECTION_NEW 1
10870 _ACEOF
10871
10872 fi
10873 done
10874
10875 fi
10876
10877
10878 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
10879 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10880 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10881 gtk_orientable_set_orientation \
10882 gtk_window_set_has_resize_grip
10883 do :
10884 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10885 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10886 eval as_val=\$$as_ac_var
10887 if test "x$as_val" = x""yes; then :
10888 cat >>confdefs.h <<_ACEOF
10889 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10890 _ACEOF
10891
10892 fi
10893 done
10894
10895
10896 term_header=gtkutil.h
10897 fi
10898
10899 HAVE_DBUS=no
10900 DBUS_OBJ=
10901 if test "${with_dbus}" = "yes"; then
10902
10903 succeeded=no
10904
10905 if test "$PKG_CONFIG" = "no" ; then
10906 HAVE_DBUS=no
10907 else
10908 PKG_CONFIG_MIN_VERSION=0.9.0
10909 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10911 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10912
10913 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5 &&
10914 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0" 2>&5` &&
10915 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0" 2>&5`; then
10916 edit_cflags="
10917 s,///*,/,g
10918 s/^/ /
10919 s/ -I/ $isystem/g
10920 s/^ //
10921 "
10922 DBUS_CFLAGS=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
10923 DBUS_LIBS=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
10925 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
10926 succeeded=yes
10927 else
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10929 $as_echo "no" >&6; }
10930 DBUS_CFLAGS=""
10931 DBUS_LIBS=""
10932 ## If we have a custom action on failure, don't print errors, but
10933 ## do set a variable so people can do so. Do it in a subshell
10934 ## to capture any diagnostics in invoking pkg-config.
10935 DBUS_PKG_ERRORS=`($PKG_CONFIG --print-errors "dbus-1 >= 1.0") 2>&1`
10936
10937 fi
10938
10939
10940
10941 else
10942 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10943 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10944 fi
10945 fi
10946
10947 if test $succeeded = yes; then
10948 HAVE_DBUS=yes
10949 else
10950 HAVE_DBUS=no
10951 fi
10952
10953 if test "$HAVE_DBUS" = yes; then
10954 LIBS="$LIBS $DBUS_LIBS"
10955
10956 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10957
10958 for ac_func in dbus_watch_get_unix_fd \
10959 dbus_type_is_valid \
10960 dbus_validate_bus_name \
10961 dbus_validate_path \
10962 dbus_validate_interface \
10963 dbus_validate_member
10964 do :
10965 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10966 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10967 eval as_val=\$$as_ac_var
10968 if test "x$as_val" = x""yes; then :
10969 cat >>confdefs.h <<_ACEOF
10970 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10971 _ACEOF
10972
10973 fi
10974 done
10975
10976 DBUS_OBJ=dbusbind.o
10977 fi
10978 fi
10979
10980
10981 HAVE_GSETTINGS=no
10982 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
10983
10984 succeeded=no
10985
10986 if test "$PKG_CONFIG" = "no" ; then
10987 HAVE_GSETTINGS=no
10988 else
10989 PKG_CONFIG_MIN_VERSION=0.9.0
10990 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
10992 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
10993
10994 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5 &&
10995 GSETTINGS_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>&5` &&
10996 GSETTINGS_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>&5`; then
10997 edit_cflags="
10998 s,///*,/,g
10999 s/^/ /
11000 s/ -I/ $isystem/g
11001 s/^ //
11002 "
11003 GSETTINGS_CFLAGS=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
11004 GSETTINGS_LIBS=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
11006 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
11007 succeeded=yes
11008 else
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11010 $as_echo "no" >&6; }
11011 GSETTINGS_CFLAGS=""
11012 GSETTINGS_LIBS=""
11013 ## If we have a custom action on failure, don't print errors, but
11014 ## do set a variable so people can do so. Do it in a subshell
11015 ## to capture any diagnostics in invoking pkg-config.
11016 GSETTINGS_PKG_ERRORS=`($PKG_CONFIG --print-errors "gio-2.0 >= 2.26") 2>&1`
11017
11018 fi
11019
11020
11021
11022 else
11023 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11024 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11025 fi
11026 fi
11027
11028 if test $succeeded = yes; then
11029 HAVE_GSETTINGS=yes
11030 else
11031 HAVE_GSETTINGS=no
11032 fi
11033
11034 if test "$HAVE_GSETTINGS" = "yes"; then
11035
11036 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
11037
11038 SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
11039 SETTINGS_LIBS="$GSETTINGS_LIBS"
11040 fi
11041 fi
11042
11043 HAVE_GCONF=no
11044 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
11045
11046 succeeded=no
11047
11048 if test "$PKG_CONFIG" = "no" ; then
11049 HAVE_GCONF=no
11050 else
11051 PKG_CONFIG_MIN_VERSION=0.9.0
11052 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11054 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11055
11056 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5 &&
11057 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13" 2>&5` &&
11058 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13" 2>&5`; then
11059 edit_cflags="
11060 s,///*,/,g
11061 s/^/ /
11062 s/ -I/ $isystem/g
11063 s/^ //
11064 "
11065 GCONF_CFLAGS=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
11066 GCONF_LIBS=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
11068 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
11069 succeeded=yes
11070 else
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11072 $as_echo "no" >&6; }
11073 GCONF_CFLAGS=""
11074 GCONF_LIBS=""
11075 ## If we have a custom action on failure, don't print errors, but
11076 ## do set a variable so people can do so. Do it in a subshell
11077 ## to capture any diagnostics in invoking pkg-config.
11078 GCONF_PKG_ERRORS=`($PKG_CONFIG --print-errors "gconf-2.0 >= 2.13") 2>&1`
11079
11080 fi
11081
11082
11083
11084 else
11085 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11086 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11087 fi
11088 fi
11089
11090 if test $succeeded = yes; then
11091 HAVE_GCONF=yes
11092 else
11093 HAVE_GCONF=no
11094 fi
11095
11096 if test "$HAVE_GCONF" = yes; then
11097
11098 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11099
11100 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GCONF_CFLAGS"
11101 SETTINGS_LIBS="$SETTINGS_LIBS $GCONF_LIBS"
11102 fi
11103 fi
11104
11105 if test "$HAVE_GSETTINGS" = "yes" || test "$HAVE_GCONF" = "yes"; then
11106
11107 succeeded=no
11108
11109 if test "$PKG_CONFIG" = "no" ; then
11110 HAVE_GOBJECT=no
11111 else
11112 PKG_CONFIG_MIN_VERSION=0.9.0
11113 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-2.0 >= 2.0" >&5
11115 $as_echo_n "checking for gobject-2.0 >= 2.0... " >&6; }
11116
11117 if $PKG_CONFIG --exists "gobject-2.0 >= 2.0" 2>&5 &&
11118 GOBJECT_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0 >= 2.0" 2>&5` &&
11119 GOBJECT_LIBS=`$PKG_CONFIG --libs "gobject-2.0 >= 2.0" 2>&5`; then
11120 edit_cflags="
11121 s,///*,/,g
11122 s/^/ /
11123 s/ -I/ $isystem/g
11124 s/^ //
11125 "
11126 GOBJECT_CFLAGS=`$as_echo "$GOBJECT_CFLAGS" | sed -e "$edit_cflags"`
11127 GOBJECT_LIBS=`$as_echo "$GOBJECT_LIBS" | sed -e 's,///*,/,g'`
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&5
11129 $as_echo "yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&6; }
11130 succeeded=yes
11131 else
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11133 $as_echo "no" >&6; }
11134 GOBJECT_CFLAGS=""
11135 GOBJECT_LIBS=""
11136 ## If we have a custom action on failure, don't print errors, but
11137 ## do set a variable so people can do so. Do it in a subshell
11138 ## to capture any diagnostics in invoking pkg-config.
11139 GOBJECT_PKG_ERRORS=`($PKG_CONFIG --print-errors "gobject-2.0 >= 2.0") 2>&1`
11140
11141 fi
11142
11143
11144
11145 else
11146 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11147 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11148 fi
11149 fi
11150
11151 if test $succeeded = yes; then
11152 HAVE_GOBJECT=yes
11153 else
11154 HAVE_GOBJECT=no
11155 fi
11156
11157 if test "$HAVE_GOBJECT" = "yes"; then
11158 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GOBJECT_CFLAGS"
11159 SETTINGS_LIBS="$SETTINGS_LIBS $GOBJECT_LIBS"
11160 fi
11161 SAVE_CFLAGS="$CFLAGS"
11162 SAVE_LIBS="$LIBS"
11163 CFLAGS="$SETTINGS_CFLAGS $CFLAGS"
11164 LIBS="$SETTINGS_LIBS $LIBS"
11165 for ac_func in g_type_init
11166 do :
11167 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11168 if test "x$ac_cv_func_g_type_init" = x""yes; then :
11169 cat >>confdefs.h <<_ACEOF
11170 #define HAVE_G_TYPE_INIT 1
11171 _ACEOF
11172
11173 fi
11174 done
11175
11176 CFLAGS="$SAVE_CFLAGS"
11177 LIBS="$SAVE_LIBS"
11178 fi
11179
11180
11181
11182
11183 HAVE_LIBSELINUX=no
11184 LIBSELINUX_LIBS=
11185 if test "${with_selinux}" = "yes"; then
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11187 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11188 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11189 $as_echo_n "(cached) " >&6
11190 else
11191 ac_check_lib_save_LIBS=$LIBS
11192 LIBS="-lselinux $LIBS"
11193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11194 /* end confdefs.h. */
11195
11196 /* Override any GCC internal prototype to avoid an error.
11197 Use char because int might match the return type of a GCC
11198 builtin and then its argument prototype would still apply. */
11199 #ifdef __cplusplus
11200 extern "C"
11201 #endif
11202 char lgetfilecon ();
11203 int
11204 main ()
11205 {
11206 return lgetfilecon ();
11207 ;
11208 return 0;
11209 }
11210 _ACEOF
11211 if ac_fn_c_try_link "$LINENO"; then :
11212 ac_cv_lib_selinux_lgetfilecon=yes
11213 else
11214 ac_cv_lib_selinux_lgetfilecon=no
11215 fi
11216 rm -f core conftest.err conftest.$ac_objext \
11217 conftest$ac_exeext conftest.$ac_ext
11218 LIBS=$ac_check_lib_save_LIBS
11219 fi
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11221 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11222 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
11223 HAVE_LIBSELINUX=yes
11224 else
11225 HAVE_LIBSELINUX=no
11226 fi
11227
11228 if test "$HAVE_LIBSELINUX" = yes; then
11229
11230 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11231
11232 LIBSELINUX_LIBS=-lselinux
11233 fi
11234 fi
11235
11236
11237 HAVE_GNUTLS=no
11238 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=no
11239 if test "${with_gnutls}" = "yes" ; then
11240
11241 succeeded=no
11242
11243 if test "$PKG_CONFIG" = "no" ; then
11244 HAVE_GNUTLS=no
11245 else
11246 PKG_CONFIG_MIN_VERSION=0.9.0
11247 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
11249 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
11250
11251 if $PKG_CONFIG --exists "gnutls >= 2.6.6" 2>&5 &&
11252 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.6.6" 2>&5` &&
11253 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.6.6" 2>&5`; then
11254 edit_cflags="
11255 s,///*,/,g
11256 s/^/ /
11257 s/ -I/ $isystem/g
11258 s/^ //
11259 "
11260 LIBGNUTLS_CFLAGS=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
11261 LIBGNUTLS_LIBS=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
11263 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
11264 succeeded=yes
11265 else
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11267 $as_echo "no" >&6; }
11268 LIBGNUTLS_CFLAGS=""
11269 LIBGNUTLS_LIBS=""
11270 ## If we have a custom action on failure, don't print errors, but
11271 ## do set a variable so people can do so. Do it in a subshell
11272 ## to capture any diagnostics in invoking pkg-config.
11273 LIBGNUTLS_PKG_ERRORS=`($PKG_CONFIG --print-errors "gnutls >= 2.6.6") 2>&1`
11274
11275 fi
11276
11277
11278
11279 else
11280 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11281 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11282 fi
11283 fi
11284
11285 if test $succeeded = yes; then
11286 HAVE_GNUTLS=yes
11287 else
11288 HAVE_GNUTLS=no
11289 fi
11290
11291 if test "${HAVE_GNUTLS}" = "yes"; then
11292
11293 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11294
11295 fi
11296
11297 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
11298 LIBS="$LIBGNUTLS_LIBS $LIBS"
11299 for ac_func in gnutls_certificate_set_verify_function
11300 do :
11301 ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11302 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x""yes; then :
11303 cat >>confdefs.h <<_ACEOF
11304 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11305 _ACEOF
11306 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=yes
11307 fi
11308 done
11309
11310
11311 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11312
11313 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11314
11315 fi
11316 fi
11317
11318
11319
11320
11321 HAVE_XAW3D=no
11322 LUCID_LIBW=
11323 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11324 if test "$with_xaw3d" != no; then
11325 if test "${emacs_cv_xaw3d+set}" = set; then :
11326 $as_echo_n "(cached) " >&6
11327 else
11328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11329 /* end confdefs.h. */
11330
11331 #include <X11/Intrinsic.h>
11332 #include <X11/Xaw3d/Simple.h>
11333 int
11334 main ()
11335 {
11336
11337 ;
11338 return 0;
11339 }
11340 _ACEOF
11341 if ac_fn_c_try_link "$LINENO"; then :
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11343 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11344 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11345 $as_echo_n "(cached) " >&6
11346 else
11347 ac_check_lib_save_LIBS=$LIBS
11348 LIBS="-lXaw3d $LIBS"
11349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11350 /* end confdefs.h. */
11351
11352 /* Override any GCC internal prototype to avoid an error.
11353 Use char because int might match the return type of a GCC
11354 builtin and then its argument prototype would still apply. */
11355 #ifdef __cplusplus
11356 extern "C"
11357 #endif
11358 char XawScrollbarSetThumb ();
11359 int
11360 main ()
11361 {
11362 return XawScrollbarSetThumb ();
11363 ;
11364 return 0;
11365 }
11366 _ACEOF
11367 if ac_fn_c_try_link "$LINENO"; then :
11368 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11369 else
11370 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11371 fi
11372 rm -f core conftest.err conftest.$ac_objext \
11373 conftest$ac_exeext conftest.$ac_ext
11374 LIBS=$ac_check_lib_save_LIBS
11375 fi
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11377 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11378 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
11379 emacs_cv_xaw3d=yes
11380 else
11381 emacs_cv_xaw3d=no
11382 fi
11383
11384 else
11385 emacs_cv_xaw3d=no
11386 fi
11387 rm -f core conftest.err conftest.$ac_objext \
11388 conftest$ac_exeext conftest.$ac_ext
11389 fi
11390
11391 else
11392 emacs_cv_xaw3d=no
11393 fi
11394 if test $emacs_cv_xaw3d = yes; then
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11396 $as_echo_n "checking for xaw3d... " >&6; }
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11398 $as_echo "yes; using Lucid toolkit" >&6; }
11399 USE_X_TOOLKIT=LUCID
11400 HAVE_XAW3D=yes
11401 LUCID_LIBW=-lXaw3d
11402
11403 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11404
11405 else
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11407 $as_echo_n "checking for xaw3d... " >&6; }
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11409 $as_echo "no" >&6; }
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11411 $as_echo_n "checking for libXaw... " >&6; }
11412 if test "${emacs_cv_xaw+set}" = set; then :
11413 $as_echo_n "(cached) " >&6
11414 else
11415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11416 /* end confdefs.h. */
11417
11418 #include <X11/Intrinsic.h>
11419 #include <X11/Xaw/Simple.h>
11420 int
11421 main ()
11422 {
11423
11424 ;
11425 return 0;
11426 }
11427 _ACEOF
11428 if ac_fn_c_try_link "$LINENO"; then :
11429 emacs_cv_xaw=yes
11430 else
11431 emacs_cv_xaw=no
11432 fi
11433 rm -f core conftest.err conftest.$ac_objext \
11434 conftest$ac_exeext conftest.$ac_ext
11435 fi
11436
11437 if test $emacs_cv_xaw = yes; then
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11439 $as_echo "yes; using Lucid toolkit" >&6; }
11440 USE_X_TOOLKIT=LUCID
11441 LUCID_LIBW=-lXaw
11442 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11443 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11444 else
11445 as_fn_error "No X toolkit could be found.
11446 If you are sure you want Emacs compiled without an X toolkit, pass
11447 --with-x-toolkit=no
11448 to configure. Otherwise, install the development libraries for the toolkit
11449 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11450 fi
11451 fi
11452 fi
11453
11454 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11455
11456 LIBXTR6=
11457 if test "${USE_X_TOOLKIT}" != "none"; then
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11459 $as_echo_n "checking X11 toolkit version... " >&6; }
11460 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11461 $as_echo_n "(cached) " >&6
11462 else
11463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11464 /* end confdefs.h. */
11465 #include <X11/Intrinsic.h>
11466 int
11467 main ()
11468 {
11469 #if XtSpecificationRelease < 6
11470 fail;
11471 #endif
11472
11473 ;
11474 return 0;
11475 }
11476 _ACEOF
11477 if ac_fn_c_try_link "$LINENO"; then :
11478 emacs_cv_x11_toolkit_version_6=yes
11479 else
11480 emacs_cv_x11_toolkit_version_6=no
11481 fi
11482 rm -f core conftest.err conftest.$ac_objext \
11483 conftest$ac_exeext conftest.$ac_ext
11484 fi
11485
11486 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11487 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11489 $as_echo "6 or newer" >&6; }
11490
11491 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11492
11493 LIBXTR6="-lSM -lICE"
11494 case "$opsys" in
11495 ## Use libw.a along with X11R6 Xt.
11496 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
11497 esac
11498 else
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11500 $as_echo "before 6" >&6; }
11501 fi
11502
11503 OLDLIBS="$LIBS"
11504 if test x$HAVE_X11XTR6 = xyes; then
11505 LIBS="-lXt -lSM -lICE $LIBS"
11506 else
11507 LIBS="-lXt $LIBS"
11508 fi
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11510 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11511 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11512 $as_echo_n "(cached) " >&6
11513 else
11514 ac_check_lib_save_LIBS=$LIBS
11515 LIBS="-lXmu $LIBS"
11516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11517 /* end confdefs.h. */
11518
11519 /* Override any GCC internal prototype to avoid an error.
11520 Use char because int might match the return type of a GCC
11521 builtin and then its argument prototype would still apply. */
11522 #ifdef __cplusplus
11523 extern "C"
11524 #endif
11525 char XmuConvertStandardSelection ();
11526 int
11527 main ()
11528 {
11529 return XmuConvertStandardSelection ();
11530 ;
11531 return 0;
11532 }
11533 _ACEOF
11534 if ac_fn_c_try_link "$LINENO"; then :
11535 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11536 else
11537 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11538 fi
11539 rm -f core conftest.err conftest.$ac_objext \
11540 conftest$ac_exeext conftest.$ac_ext
11541 LIBS=$ac_check_lib_save_LIBS
11542 fi
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11544 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11545 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
11546 cat >>confdefs.h <<_ACEOF
11547 #define HAVE_LIBXMU 1
11548 _ACEOF
11549
11550 LIBS="-lXmu $LIBS"
11551
11552 fi
11553
11554 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11555 fi
11556
11557
11558 LIBXMU=-lXmu
11559 case $opsys in
11560 ## These systems don't supply Xmu.
11561 hpux* | aix4-2 )
11562 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
11563 ;;
11564 esac
11565
11566
11567 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11568 if test "${HAVE_X11}" = "yes"; then
11569 if test "${USE_X_TOOLKIT}" != "none"; then
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11571 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11572 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11573 $as_echo_n "(cached) " >&6
11574 else
11575 ac_check_lib_save_LIBS=$LIBS
11576 LIBS="-lXext $LIBS"
11577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11578 /* end confdefs.h. */
11579
11580 /* Override any GCC internal prototype to avoid an error.
11581 Use char because int might match the return type of a GCC
11582 builtin and then its argument prototype would still apply. */
11583 #ifdef __cplusplus
11584 extern "C"
11585 #endif
11586 char XShapeQueryExtension ();
11587 int
11588 main ()
11589 {
11590 return XShapeQueryExtension ();
11591 ;
11592 return 0;
11593 }
11594 _ACEOF
11595 if ac_fn_c_try_link "$LINENO"; then :
11596 ac_cv_lib_Xext_XShapeQueryExtension=yes
11597 else
11598 ac_cv_lib_Xext_XShapeQueryExtension=no
11599 fi
11600 rm -f core conftest.err conftest.$ac_objext \
11601 conftest$ac_exeext conftest.$ac_ext
11602 LIBS=$ac_check_lib_save_LIBS
11603 fi
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11605 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11606 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
11607 cat >>confdefs.h <<_ACEOF
11608 #define HAVE_LIBXEXT 1
11609 _ACEOF
11610
11611 LIBS="-lXext $LIBS"
11612
11613 fi
11614
11615 fi
11616 fi
11617
11618 LIBXP=
11619 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11620 # OpenMotif may be installed in such a way on some GNU/Linux systems.
11621 if test -d /usr/include/openmotif; then
11622 CPPFLAGS="-I/usr/include/openmotif $CPPFLAGS"
11623 emacs_cv_openmotif=yes
11624 case "$canonical" in
11625 x86_64-*-linux-gnu* | powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*)
11626 test -d /usr/lib64/openmotif && LDFLAGS="-L/usr/lib64/openmotif $LDFLAGS"
11627 ;;
11628 *)
11629 test -d /usr/lib/openmotif && LDFLAGS="-L/usr/lib/openmotif $LDFLAGS"
11630 esac
11631 else
11632 emacs_cv_openmotif=no
11633 fi
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (Open)Motif version 2.1" >&5
11635 $as_echo_n "checking for (Open)Motif version 2.1... " >&6; }
11636 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
11637 $as_echo_n "(cached) " >&6
11638 else
11639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11640 /* end confdefs.h. */
11641 #include <Xm/Xm.h>
11642 int
11643 main ()
11644 {
11645 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11646 int x = 5;
11647 #else
11648 Motif version prior to 2.1.
11649 #endif
11650 ;
11651 return 0;
11652 }
11653 _ACEOF
11654 if ac_fn_c_try_compile "$LINENO"; then :
11655 emacs_cv_motif_version_2_1=yes
11656 else
11657 emacs_cv_motif_version_2_1=no
11658 fi
11659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11660 fi
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11662 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11663 if test $emacs_cv_motif_version_2_1 = yes; then
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11665 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11666 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
11667 $as_echo_n "(cached) " >&6
11668 else
11669 ac_check_lib_save_LIBS=$LIBS
11670 LIBS="-lXp $LIBS"
11671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11672 /* end confdefs.h. */
11673
11674 /* Override any GCC internal prototype to avoid an error.
11675 Use char because int might match the return type of a GCC
11676 builtin and then its argument prototype would still apply. */
11677 #ifdef __cplusplus
11678 extern "C"
11679 #endif
11680 char XpCreateContext ();
11681 int
11682 main ()
11683 {
11684 return XpCreateContext ();
11685 ;
11686 return 0;
11687 }
11688 _ACEOF
11689 if ac_fn_c_try_link "$LINENO"; then :
11690 ac_cv_lib_Xp_XpCreateContext=yes
11691 else
11692 ac_cv_lib_Xp_XpCreateContext=no
11693 fi
11694 rm -f core conftest.err conftest.$ac_objext \
11695 conftest$ac_exeext conftest.$ac_ext
11696 LIBS=$ac_check_lib_save_LIBS
11697 fi
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11699 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11700 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
11701 LIBXP=-lXp
11702 fi
11703
11704 if test x$emacs_cv_openmotif = xyes; then
11705 REAL_CPPFLAGS="-I/usr/include/openmotif $REAL_CPPFLAGS"
11706 fi
11707 else
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11709 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11710 if test "${emacs_cv_lesstif+set}" = set; then :
11711 $as_echo_n "(cached) " >&6
11712 else
11713 # We put this in CFLAGS temporarily to precede other -I options
11714 # that might be in CFLAGS temporarily.
11715 # We put this in CPPFLAGS where it precedes the other -I options.
11716 OLD_CPPFLAGS=$CPPFLAGS
11717 OLD_CFLAGS=$CFLAGS
11718 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11719 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11721 /* end confdefs.h. */
11722 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11723 int
11724 main ()
11725 {
11726 int x = 5;
11727 ;
11728 return 0;
11729 }
11730 _ACEOF
11731 if ac_fn_c_try_compile "$LINENO"; then :
11732 emacs_cv_lesstif=yes
11733 else
11734 emacs_cv_lesstif=no
11735 fi
11736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11737 fi
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11739 $as_echo "$emacs_cv_lesstif" >&6; }
11740 if test $emacs_cv_lesstif = yes; then
11741 # Make sure this -I option remains in CPPFLAGS after it is set
11742 # back to REAL_CPPFLAGS.
11743 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11744 # have those other -I options anyway. Ultimately, having this
11745 # directory ultimately in CPPFLAGS will be enough.
11746 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11747 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11748 else
11749 CFLAGS=$OLD_CFLAGS
11750 CPPFLAGS=$OLD_CPPFLAGS
11751 fi
11752 fi
11753 ac_fn_c_check_header_mongrel "$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
11754 if test "x$ac_cv_header_Xm_BulletinB_h" = x""yes; then :
11755
11756 else
11757 as_fn_error "Motif toolkit requested but requirements not found." "$LINENO" 5
11758 fi
11759
11760
11761 fi
11762
11763
11764 USE_TOOLKIT_SCROLL_BARS=no
11765 if test "${with_toolkit_scroll_bars}" != "no"; then
11766 if test "${USE_X_TOOLKIT}" != "none"; then
11767 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11768 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11769
11770 HAVE_XAW3D=no
11771 USE_TOOLKIT_SCROLL_BARS=yes
11772 elif test "${HAVE_XAW3D}" = "yes" || test "${USE_X_TOOLKIT}" = "LUCID"; then
11773 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11774
11775 USE_TOOLKIT_SCROLL_BARS=yes
11776 fi
11777 elif test "${HAVE_GTK}" = "yes"; then
11778 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11779
11780 USE_TOOLKIT_SCROLL_BARS=yes
11781 elif test "${HAVE_NS}" = "yes"; then
11782 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11783
11784 USE_TOOLKIT_SCROLL_BARS=yes
11785 elif test "${HAVE_W32}" = "yes"; then
11786 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11787
11788 USE_TOOLKIT_SCROLL_BARS=yes
11789 fi
11790 fi
11791
11792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11793 /* end confdefs.h. */
11794
11795 #include <X11/Xlib.h>
11796 #include <X11/Xresource.h>
11797 int
11798 main ()
11799 {
11800 XIMProc callback;
11801 ;
11802 return 0;
11803 }
11804 _ACEOF
11805 if ac_fn_c_try_compile "$LINENO"; then :
11806 HAVE_XIM=yes
11807
11808 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11809
11810 else
11811 HAVE_XIM=no
11812 fi
11813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11814
11815
11816 if test "${with_xim}" != "no"; then
11817
11818 $as_echo "#define USE_XIM 1" >>confdefs.h
11819
11820 fi
11821
11822
11823 if test "${HAVE_XIM}" != "no"; then
11824 late_CFLAGS=$CFLAGS
11825 if test "$GCC" = yes; then
11826 CFLAGS="$CFLAGS --pedantic-errors"
11827 fi
11828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11829 /* end confdefs.h. */
11830
11831 #include <X11/Xlib.h>
11832 #include <X11/Xresource.h>
11833 int
11834 main ()
11835 {
11836 Display *display;
11837 XrmDatabase db;
11838 char *res_name;
11839 char *res_class;
11840 XIMProc callback;
11841 XPointer *client_data;
11842 #ifndef __GNUC__
11843 /* If we're not using GCC, it's probably not XFree86, and this is
11844 probably right, but we can't use something like --pedantic-errors. */
11845 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11846 char*, XIMProc, XPointer*);
11847 #endif
11848 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11849 client_data);
11850 ;
11851 return 0;
11852 }
11853 _ACEOF
11854 if ac_fn_c_try_compile "$LINENO"; then :
11855 emacs_cv_arg6_star=yes
11856 fi
11857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11858 if test "$emacs_cv_arg6_star" = yes; then
11859 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11860
11861 else
11862 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11863
11864 fi
11865 CFLAGS=$late_CFLAGS
11866 fi
11867
11868 ### Start of font-backend (under any platform) section.
11869 # (nothing here yet -- this is a placeholder)
11870 ### End of font-backend (under any platform) section.
11871
11872 ### Start of font-backend (under X11) section.
11873 if test "${HAVE_X11}" = "yes"; then
11874
11875 succeeded=no
11876
11877 if test "$PKG_CONFIG" = "no" ; then
11878 HAVE_FC=no
11879 else
11880 PKG_CONFIG_MIN_VERSION=0.9.0
11881 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11883 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11884
11885 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5 &&
11886 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0" 2>&5` &&
11887 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0" 2>&5`; then
11888 edit_cflags="
11889 s,///*,/,g
11890 s/^/ /
11891 s/ -I/ $isystem/g
11892 s/^ //
11893 "
11894 FONTCONFIG_CFLAGS=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
11895 FONTCONFIG_LIBS=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
11897 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
11898 succeeded=yes
11899 else
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11901 $as_echo "no" >&6; }
11902 FONTCONFIG_CFLAGS=""
11903 FONTCONFIG_LIBS=""
11904 ## If we have a custom action on failure, don't print errors, but
11905 ## do set a variable so people can do so. Do it in a subshell
11906 ## to capture any diagnostics in invoking pkg-config.
11907 FONTCONFIG_PKG_ERRORS=`($PKG_CONFIG --print-errors "fontconfig >= 2.2.0") 2>&1`
11908
11909 fi
11910
11911
11912
11913 else
11914 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11915 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11916 fi
11917 fi
11918
11919 if test $succeeded = yes; then
11920 HAVE_FC=yes
11921 else
11922 HAVE_FC=no
11923 fi
11924
11925
11926 ## Use -lXft if available, unless `--with-xft=no'.
11927 HAVE_XFT=maybe
11928 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
11929 with_xft="no";
11930 fi
11931 if test "x${with_xft}" != "xno"; then
11932
11933
11934 succeeded=no
11935
11936 if test "$PKG_CONFIG" = "no" ; then
11937 HAVE_XFT=no
11938 else
11939 PKG_CONFIG_MIN_VERSION=0.9.0
11940 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11942 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11943
11944 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5 &&
11945 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0" 2>&5` &&
11946 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0" 2>&5`; then
11947 edit_cflags="
11948 s,///*,/,g
11949 s/^/ /
11950 s/ -I/ $isystem/g
11951 s/^ //
11952 "
11953 XFT_CFLAGS=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
11954 XFT_LIBS=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
11956 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
11957 succeeded=yes
11958 else
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11960 $as_echo "no" >&6; }
11961 XFT_CFLAGS=""
11962 XFT_LIBS=""
11963 ## If we have a custom action on failure, don't print errors, but
11964 ## do set a variable so people can do so. Do it in a subshell
11965 ## to capture any diagnostics in invoking pkg-config.
11966 XFT_PKG_ERRORS=`($PKG_CONFIG --print-errors "xft >= 0.13.0") 2>&1`
11967
11968 fi
11969
11970
11971
11972 else
11973 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11974 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11975 fi
11976 fi
11977
11978 if test $succeeded = yes; then
11979 :
11980 else
11981 HAVE_XFT=no
11982 fi
11983
11984 ## Because xftfont.c uses XRenderQueryExtension, we also
11985 ## need to link to -lXrender.
11986 HAVE_XRENDER=no
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11988 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11989 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
11990 $as_echo_n "(cached) " >&6
11991 else
11992 ac_check_lib_save_LIBS=$LIBS
11993 LIBS="-lXrender $LIBS"
11994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11995 /* end confdefs.h. */
11996
11997 /* Override any GCC internal prototype to avoid an error.
11998 Use char because int might match the return type of a GCC
11999 builtin and then its argument prototype would still apply. */
12000 #ifdef __cplusplus
12001 extern "C"
12002 #endif
12003 char XRenderQueryExtension ();
12004 int
12005 main ()
12006 {
12007 return XRenderQueryExtension ();
12008 ;
12009 return 0;
12010 }
12011 _ACEOF
12012 if ac_fn_c_try_link "$LINENO"; then :
12013 ac_cv_lib_Xrender_XRenderQueryExtension=yes
12014 else
12015 ac_cv_lib_Xrender_XRenderQueryExtension=no
12016 fi
12017 rm -f core conftest.err conftest.$ac_objext \
12018 conftest$ac_exeext conftest.$ac_ext
12019 LIBS=$ac_check_lib_save_LIBS
12020 fi
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
12022 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
12023 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
12024 HAVE_XRENDER=yes
12025 fi
12026
12027 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
12028 OLD_CPPFLAGS="$CPPFLAGS"
12029 OLD_CFLAGS="$CFLAGS"
12030 OLD_LIBS="$LIBS"
12031 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12032 CFLAGS="$CFLAGS $XFT_CFLAGS"
12033 XFT_LIBS="-lXrender $XFT_LIBS"
12034 LIBS="$XFT_LIBS $LIBS"
12035 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
12036 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
12038 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
12039 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
12040 $as_echo_n "(cached) " >&6
12041 else
12042 ac_check_lib_save_LIBS=$LIBS
12043 LIBS="-lXft $XFT_LIBS $LIBS"
12044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12045 /* end confdefs.h. */
12046
12047 /* Override any GCC internal prototype to avoid an error.
12048 Use char because int might match the return type of a GCC
12049 builtin and then its argument prototype would still apply. */
12050 #ifdef __cplusplus
12051 extern "C"
12052 #endif
12053 char XftFontOpen ();
12054 int
12055 main ()
12056 {
12057 return XftFontOpen ();
12058 ;
12059 return 0;
12060 }
12061 _ACEOF
12062 if ac_fn_c_try_link "$LINENO"; then :
12063 ac_cv_lib_Xft_XftFontOpen=yes
12064 else
12065 ac_cv_lib_Xft_XftFontOpen=no
12066 fi
12067 rm -f core conftest.err conftest.$ac_objext \
12068 conftest$ac_exeext conftest.$ac_ext
12069 LIBS=$ac_check_lib_save_LIBS
12070 fi
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12072 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
12073 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
12074 HAVE_XFT=yes
12075 fi
12076
12077 fi
12078
12079
12080
12081 if test "${HAVE_XFT}" = "yes"; then
12082
12083 $as_echo "#define HAVE_XFT 1" >>confdefs.h
12084
12085
12086 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12087 else
12088 CPPFLAGS="$OLD_CPPFLAGS"
12089 CFLAGS="$OLD_CFLAGS"
12090 LIBS="$OLD_LIBS"
12091 fi # "${HAVE_XFT}" = "yes"
12092 fi # "$HAVE_XFT" != no
12093 fi # "x${with_xft}" != "xno"
12094
12095 ## We used to allow building with FreeType and without Xft.
12096 ## However, the ftx font backend driver is not in good shape.
12097 if test "$HAVE_XFT" != "yes"; then
12098 HAVE_XFT=no
12099 HAVE_FREETYPE=no
12100 else
12101
12102 succeeded=no
12103
12104 if test "$PKG_CONFIG" = "no" ; then
12105 HAVE_FREETYPE=no
12106 else
12107 PKG_CONFIG_MIN_VERSION=0.9.0
12108 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12110 $as_echo_n "checking for freetype2... " >&6; }
12111
12112 if $PKG_CONFIG --exists "freetype2" 2>&5 &&
12113 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>&5` &&
12114 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>&5`; then
12115 edit_cflags="
12116 s,///*,/,g
12117 s/^/ /
12118 s/ -I/ $isystem/g
12119 s/^ //
12120 "
12121 FREETYPE_CFLAGS=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
12122 FREETYPE_LIBS=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
12124 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
12125 succeeded=yes
12126 else
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12128 $as_echo "no" >&6; }
12129 FREETYPE_CFLAGS=""
12130 FREETYPE_LIBS=""
12131 ## If we have a custom action on failure, don't print errors, but
12132 ## do set a variable so people can do so. Do it in a subshell
12133 ## to capture any diagnostics in invoking pkg-config.
12134 FREETYPE_PKG_ERRORS=`($PKG_CONFIG --print-errors "freetype2") 2>&1`
12135
12136 fi
12137
12138
12139
12140 else
12141 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12142 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12143 fi
12144 fi
12145
12146 if test $succeeded = yes; then
12147 HAVE_FREETYPE=yes
12148 else
12149 HAVE_FREETYPE=no
12150 fi
12151
12152
12153 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
12154 fi
12155
12156 HAVE_LIBOTF=no
12157 if test "${HAVE_FREETYPE}" = "yes"; then
12158
12159 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12160
12161 if test "${with_libotf}" != "no"; then
12162
12163 succeeded=no
12164
12165 if test "$PKG_CONFIG" = "no" ; then
12166 HAVE_LIBOTF=no
12167 else
12168 PKG_CONFIG_MIN_VERSION=0.9.0
12169 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
12171 $as_echo_n "checking for libotf... " >&6; }
12172
12173 if $PKG_CONFIG --exists "libotf" 2>&5 &&
12174 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf" 2>&5` &&
12175 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf" 2>&5`; then
12176 edit_cflags="
12177 s,///*,/,g
12178 s/^/ /
12179 s/ -I/ $isystem/g
12180 s/^ //
12181 "
12182 LIBOTF_CFLAGS=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
12183 LIBOTF_LIBS=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
12185 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
12186 succeeded=yes
12187 else
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12189 $as_echo "no" >&6; }
12190 LIBOTF_CFLAGS=""
12191 LIBOTF_LIBS=""
12192 ## If we have a custom action on failure, don't print errors, but
12193 ## do set a variable so people can do so. Do it in a subshell
12194 ## to capture any diagnostics in invoking pkg-config.
12195 LIBOTF_PKG_ERRORS=`($PKG_CONFIG --print-errors "libotf") 2>&1`
12196
12197 fi
12198
12199
12200
12201 else
12202 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12203 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12204 fi
12205 fi
12206
12207 if test $succeeded = yes; then
12208 HAVE_LIBOTF=yes
12209 else
12210 HAVE_LIBOTF=no
12211 fi
12212
12213 if test "$HAVE_LIBOTF" = "yes"; then
12214
12215 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
12216
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
12218 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
12219 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
12220 $as_echo_n "(cached) " >&6
12221 else
12222 ac_check_lib_save_LIBS=$LIBS
12223 LIBS="-lotf $LIBS"
12224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12225 /* end confdefs.h. */
12226
12227 /* Override any GCC internal prototype to avoid an error.
12228 Use char because int might match the return type of a GCC
12229 builtin and then its argument prototype would still apply. */
12230 #ifdef __cplusplus
12231 extern "C"
12232 #endif
12233 char OTF_get_variation_glyphs ();
12234 int
12235 main ()
12236 {
12237 return OTF_get_variation_glyphs ();
12238 ;
12239 return 0;
12240 }
12241 _ACEOF
12242 if ac_fn_c_try_link "$LINENO"; then :
12243 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
12244 else
12245 ac_cv_lib_otf_OTF_get_variation_glyphs=no
12246 fi
12247 rm -f core conftest.err conftest.$ac_objext \
12248 conftest$ac_exeext conftest.$ac_ext
12249 LIBS=$ac_check_lib_save_LIBS
12250 fi
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12252 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12253 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
12254 HAVE_OTF_GET_VARIATION_GLYPHS=yes
12255 else
12256 HAVE_OTF_GET_VARIATION_GLYPHS=no
12257 fi
12258
12259 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12260
12261 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12262
12263 fi
12264 fi
12265 fi
12266 fi
12267
12268 HAVE_M17N_FLT=no
12269 if test "${HAVE_LIBOTF}" = yes; then
12270 if test "${with_m17n_flt}" != "no"; then
12271
12272 succeeded=no
12273
12274 if test "$PKG_CONFIG" = "no" ; then
12275 HAVE_M17N_FLT=no
12276 else
12277 PKG_CONFIG_MIN_VERSION=0.9.0
12278 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12280 $as_echo_n "checking for m17n-flt... " >&6; }
12281
12282 if $PKG_CONFIG --exists "m17n-flt" 2>&5 &&
12283 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt" 2>&5` &&
12284 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt" 2>&5`; then
12285 edit_cflags="
12286 s,///*,/,g
12287 s/^/ /
12288 s/ -I/ $isystem/g
12289 s/^ //
12290 "
12291 M17N_FLT_CFLAGS=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
12292 M17N_FLT_LIBS=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
12294 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
12295 succeeded=yes
12296 else
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12298 $as_echo "no" >&6; }
12299 M17N_FLT_CFLAGS=""
12300 M17N_FLT_LIBS=""
12301 ## If we have a custom action on failure, don't print errors, but
12302 ## do set a variable so people can do so. Do it in a subshell
12303 ## to capture any diagnostics in invoking pkg-config.
12304 M17N_FLT_PKG_ERRORS=`($PKG_CONFIG --print-errors "m17n-flt") 2>&1`
12305
12306 fi
12307
12308
12309
12310 else
12311 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12312 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12313 fi
12314 fi
12315
12316 if test $succeeded = yes; then
12317 HAVE_M17N_FLT=yes
12318 else
12319 HAVE_M17N_FLT=no
12320 fi
12321
12322 if test "$HAVE_M17N_FLT" = "yes"; then
12323
12324 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12325
12326 fi
12327 fi
12328 fi
12329 else
12330 HAVE_XFT=no
12331 HAVE_FREETYPE=no
12332 HAVE_LIBOTF=no
12333 HAVE_M17N_FLT=no
12334 fi
12335
12336 ### End of font-backend (under X11) section.
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347 ### Use -lXpm if available, unless `--with-xpm=no'.
12348 HAVE_XPM=no
12349 LIBXPM=
12350
12351 if test "${HAVE_W32}" = "yes"; then
12352 if test "${with_xpm}" != "no"; then
12353 SAVE_CPPFLAGS="$CPPFLAGS"
12354 SAVE_LDFLAGS="$LDFLAGS"
12355 CPPFLAGS="$CPPFLAGS -I/usr/include/noX"
12356 LDFLAGS="$LDFLAGS -L/usr/lib/noX"
12357 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12358 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToImage in -lXpm" >&5
12360 $as_echo_n "checking for XpmReadFileToImage in -lXpm... " >&6; }
12361 if test "${ac_cv_lib_Xpm_XpmReadFileToImage+set}" = set; then :
12362 $as_echo_n "(cached) " >&6
12363 else
12364 ac_check_lib_save_LIBS=$LIBS
12365 LIBS="-lXpm $LIBS"
12366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12367 /* end confdefs.h. */
12368
12369 /* Override any GCC internal prototype to avoid an error.
12370 Use char because int might match the return type of a GCC
12371 builtin and then its argument prototype would still apply. */
12372 #ifdef __cplusplus
12373 extern "C"
12374 #endif
12375 char XpmReadFileToImage ();
12376 int
12377 main ()
12378 {
12379 return XpmReadFileToImage ();
12380 ;
12381 return 0;
12382 }
12383 _ACEOF
12384 if ac_fn_c_try_link "$LINENO"; then :
12385 ac_cv_lib_Xpm_XpmReadFileToImage=yes
12386 else
12387 ac_cv_lib_Xpm_XpmReadFileToImage=no
12388 fi
12389 rm -f core conftest.err conftest.$ac_objext \
12390 conftest$ac_exeext conftest.$ac_ext
12391 LIBS=$ac_check_lib_save_LIBS
12392 fi
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToImage" >&5
12394 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToImage" >&6; }
12395 if test "x$ac_cv_lib_Xpm_XpmReadFileToImage" = x""yes; then :
12396 HAVE_XPM=yes
12397 fi
12398
12399 fi
12400
12401
12402 if test "${HAVE_XPM}" = "yes"; then
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12404 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12406 /* end confdefs.h. */
12407 #include "X11/xpm.h"
12408 #ifndef XpmReturnAllocPixels
12409 no_return_alloc_pixels
12410 #endif
12411
12412 _ACEOF
12413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12414 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12415 HAVE_XPM=no
12416 else
12417 HAVE_XPM=yes
12418 fi
12419 rm -f conftest*
12420
12421
12422 if test "${HAVE_XPM}" = "yes"; then
12423 REAL_CPPFLAGS="$REAL_CPPFLAGS -I/usr/include/noX"
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12425 $as_echo "yes" >&6; }
12426 else
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12428 $as_echo "no" >&6; }
12429 CPPFLAGS="$SAVE_CPPFLAGS"
12430 LDFLAGS="$SAVE_LDFLAGS"
12431 fi
12432 fi
12433 fi
12434
12435 if test "${HAVE_XPM}" = "yes"; then
12436
12437 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12438
12439 LIBXPM=-lXpm
12440 fi
12441 fi
12442
12443 if test "${HAVE_X11}" = "yes"; then
12444 if test "${with_xpm}" != "no"; then
12445 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12446 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12448 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12449 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12450 $as_echo_n "(cached) " >&6
12451 else
12452 ac_check_lib_save_LIBS=$LIBS
12453 LIBS="-lXpm -lX11 $LIBS"
12454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12455 /* end confdefs.h. */
12456
12457 /* Override any GCC internal prototype to avoid an error.
12458 Use char because int might match the return type of a GCC
12459 builtin and then its argument prototype would still apply. */
12460 #ifdef __cplusplus
12461 extern "C"
12462 #endif
12463 char XpmReadFileToPixmap ();
12464 int
12465 main ()
12466 {
12467 return XpmReadFileToPixmap ();
12468 ;
12469 return 0;
12470 }
12471 _ACEOF
12472 if ac_fn_c_try_link "$LINENO"; then :
12473 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12474 else
12475 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12476 fi
12477 rm -f core conftest.err conftest.$ac_objext \
12478 conftest$ac_exeext conftest.$ac_ext
12479 LIBS=$ac_check_lib_save_LIBS
12480 fi
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12482 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12483 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
12484 HAVE_XPM=yes
12485 fi
12486
12487 fi
12488
12489
12490 if test "${HAVE_XPM}" = "yes"; then
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12492 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12494 /* end confdefs.h. */
12495 #include "X11/xpm.h"
12496 #ifndef XpmReturnAllocPixels
12497 no_return_alloc_pixels
12498 #endif
12499
12500 _ACEOF
12501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12502 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12503 HAVE_XPM=no
12504 else
12505 HAVE_XPM=yes
12506 fi
12507 rm -f conftest*
12508
12509
12510 if test "${HAVE_XPM}" = "yes"; then
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12512 $as_echo "yes" >&6; }
12513 else
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12515 $as_echo "no" >&6; }
12516 fi
12517 fi
12518 fi
12519
12520 if test "${HAVE_XPM}" = "yes"; then
12521
12522 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12523
12524 LIBXPM=-lXpm
12525 fi
12526 fi
12527
12528
12529
12530 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12531 HAVE_JPEG=no
12532 LIBJPEG=
12533 if test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
12534 if test "${with_jpeg}" != "no"; then
12535 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12536 if test "x$ac_cv_header_jerror_h" = x""yes; then :
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12538 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12539 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12540 $as_echo_n "(cached) " >&6
12541 else
12542 ac_check_lib_save_LIBS=$LIBS
12543 LIBS="-ljpeg $LIBS"
12544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12545 /* end confdefs.h. */
12546
12547 /* Override any GCC internal prototype to avoid an error.
12548 Use char because int might match the return type of a GCC
12549 builtin and then its argument prototype would still apply. */
12550 #ifdef __cplusplus
12551 extern "C"
12552 #endif
12553 char jpeg_destroy_compress ();
12554 int
12555 main ()
12556 {
12557 return jpeg_destroy_compress ();
12558 ;
12559 return 0;
12560 }
12561 _ACEOF
12562 if ac_fn_c_try_link "$LINENO"; then :
12563 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12564 else
12565 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12566 fi
12567 rm -f core conftest.err conftest.$ac_objext \
12568 conftest$ac_exeext conftest.$ac_ext
12569 LIBS=$ac_check_lib_save_LIBS
12570 fi
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12572 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12573 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
12574 HAVE_JPEG=yes
12575 fi
12576
12577 fi
12578
12579
12580 fi
12581
12582 if test "${HAVE_JPEG}" = "yes"; then
12583 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12584
12585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12586 /* end confdefs.h. */
12587 #include <jpeglib.h>
12588 version=JPEG_LIB_VERSION
12589
12590 _ACEOF
12591 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12592 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
12593 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12594
12595 else
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12597 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12598 HAVE_JPEG=no
12599 fi
12600 rm -f conftest*
12601
12602 fi
12603 if test "${HAVE_JPEG}" = "yes"; then
12604 LIBJPEG=-ljpeg
12605 fi
12606 fi
12607
12608
12609 ### Use -lpng if available, unless `--with-png=no'.
12610 HAVE_PNG=no
12611 LIBPNG=
12612 if test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
12613 if test "${with_png}" != "no"; then
12614 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12615 # in /usr/include/libpng.
12616 for ac_header in png.h libpng/png.h
12617 do :
12618 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12619 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12620 eval as_val=\$$as_ac_Header
12621 if test "x$as_val" = x""yes; then :
12622 cat >>confdefs.h <<_ACEOF
12623 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12624 _ACEOF
12625 break
12626 fi
12627
12628 done
12629
12630 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12632 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12633 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12634 $as_echo_n "(cached) " >&6
12635 else
12636 ac_check_lib_save_LIBS=$LIBS
12637 LIBS="-lpng -lz -lm $LIBS"
12638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12639 /* end confdefs.h. */
12640
12641 /* Override any GCC internal prototype to avoid an error.
12642 Use char because int might match the return type of a GCC
12643 builtin and then its argument prototype would still apply. */
12644 #ifdef __cplusplus
12645 extern "C"
12646 #endif
12647 char png_get_channels ();
12648 int
12649 main ()
12650 {
12651 return png_get_channels ();
12652 ;
12653 return 0;
12654 }
12655 _ACEOF
12656 if ac_fn_c_try_link "$LINENO"; then :
12657 ac_cv_lib_png_png_get_channels=yes
12658 else
12659 ac_cv_lib_png_png_get_channels=no
12660 fi
12661 rm -f core conftest.err conftest.$ac_objext \
12662 conftest$ac_exeext conftest.$ac_ext
12663 LIBS=$ac_check_lib_save_LIBS
12664 fi
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12666 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12667 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
12668 HAVE_PNG=yes
12669 fi
12670
12671 fi
12672 fi
12673
12674 if test "${HAVE_PNG}" = "yes"; then
12675
12676 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12677
12678 LIBPNG="-lpng -lz -lm"
12679
12680 ac_fn_c_check_decl "$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
12681 # include <libpng/png.h>
12682 #else
12683 # include <png.h>
12684 #endif
12685
12686 "
12687 if test "x$ac_cv_have_decl_png_longjmp" = x""yes; then :
12688
12689 else
12690
12691 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
12692
12693 fi
12694
12695 fi
12696 fi
12697
12698
12699 ### Use -ltiff if available, unless `--with-tiff=no'.
12700 HAVE_TIFF=no
12701 LIBTIFF=
12702 if test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
12703 if test "${with_tiff}" != "no"; then
12704 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12705 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
12706 tifflibs="-lz -lm"
12707 # At least one tiff package requires the jpeg library.
12708 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12710 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12711 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
12712 $as_echo_n "(cached) " >&6
12713 else
12714 ac_check_lib_save_LIBS=$LIBS
12715 LIBS="-ltiff $tifflibs $LIBS"
12716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12717 /* end confdefs.h. */
12718
12719 /* Override any GCC internal prototype to avoid an error.
12720 Use char because int might match the return type of a GCC
12721 builtin and then its argument prototype would still apply. */
12722 #ifdef __cplusplus
12723 extern "C"
12724 #endif
12725 char TIFFGetVersion ();
12726 int
12727 main ()
12728 {
12729 return TIFFGetVersion ();
12730 ;
12731 return 0;
12732 }
12733 _ACEOF
12734 if ac_fn_c_try_link "$LINENO"; then :
12735 ac_cv_lib_tiff_TIFFGetVersion=yes
12736 else
12737 ac_cv_lib_tiff_TIFFGetVersion=no
12738 fi
12739 rm -f core conftest.err conftest.$ac_objext \
12740 conftest$ac_exeext conftest.$ac_ext
12741 LIBS=$ac_check_lib_save_LIBS
12742 fi
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12744 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12745 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
12746 HAVE_TIFF=yes
12747 fi
12748
12749 fi
12750
12751
12752 fi
12753
12754 if test "${HAVE_TIFF}" = "yes"; then
12755
12756 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12757
12758 LIBTIFF=-ltiff
12759 fi
12760 fi
12761
12762
12763 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12764 HAVE_GIF=no
12765 LIBGIF=
12766 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no" \
12767 || test "${HAVE_W32}" = "yes"; then
12768 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12769 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
12770 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12771 # Earlier versions can crash Emacs.
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12773 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12774 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
12775 $as_echo_n "(cached) " >&6
12776 else
12777 ac_check_lib_save_LIBS=$LIBS
12778 LIBS="-lgif $LIBS"
12779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12780 /* end confdefs.h. */
12781
12782 /* Override any GCC internal prototype to avoid an error.
12783 Use char because int might match the return type of a GCC
12784 builtin and then its argument prototype would still apply. */
12785 #ifdef __cplusplus
12786 extern "C"
12787 #endif
12788 char EGifPutExtensionLast ();
12789 int
12790 main ()
12791 {
12792 return EGifPutExtensionLast ();
12793 ;
12794 return 0;
12795 }
12796 _ACEOF
12797 if ac_fn_c_try_link "$LINENO"; then :
12798 ac_cv_lib_gif_EGifPutExtensionLast=yes
12799 else
12800 ac_cv_lib_gif_EGifPutExtensionLast=no
12801 fi
12802 rm -f core conftest.err conftest.$ac_objext \
12803 conftest$ac_exeext conftest.$ac_ext
12804 LIBS=$ac_check_lib_save_LIBS
12805 fi
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12807 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12808 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
12809 HAVE_GIF=yes
12810 else
12811 HAVE_GIF=maybe
12812 fi
12813
12814 fi
12815
12816
12817
12818 if test "$HAVE_GIF" = yes; then
12819 LIBGIF=-lgif
12820 elif test "$HAVE_GIF" = maybe; then
12821 # If gif_lib.h but no libgif, try libungif.
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12823 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12824 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
12825 $as_echo_n "(cached) " >&6
12826 else
12827 ac_check_lib_save_LIBS=$LIBS
12828 LIBS="-lungif $LIBS"
12829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12830 /* end confdefs.h. */
12831
12832 /* Override any GCC internal prototype to avoid an error.
12833 Use char because int might match the return type of a GCC
12834 builtin and then its argument prototype would still apply. */
12835 #ifdef __cplusplus
12836 extern "C"
12837 #endif
12838 char EGifPutExtensionLast ();
12839 int
12840 main ()
12841 {
12842 return EGifPutExtensionLast ();
12843 ;
12844 return 0;
12845 }
12846 _ACEOF
12847 if ac_fn_c_try_link "$LINENO"; then :
12848 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12849 else
12850 ac_cv_lib_ungif_EGifPutExtensionLast=no
12851 fi
12852 rm -f core conftest.err conftest.$ac_objext \
12853 conftest$ac_exeext conftest.$ac_ext
12854 LIBS=$ac_check_lib_save_LIBS
12855 fi
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12857 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12858 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
12859 HAVE_GIF=yes
12860 else
12861 HAVE_GIF=no
12862 fi
12863
12864 test "$HAVE_GIF" = yes && LIBGIF=-lungif
12865 fi
12866
12867 if test "${HAVE_GIF}" = "yes"; then
12868
12869 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12870
12871 fi
12872 fi
12873
12874
12875 if test "${HAVE_X11}" = "yes"; then
12876 MISSING=""
12877 WITH_NO=""
12878 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12879 MISSING="libXpm" && WITH_NO="--with-xpm=no"
12880 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12881 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
12882 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12883 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
12884 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12885 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
12886 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12887 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
12888
12889 if test "X${MISSING}" != X; then
12890 as_fn_error "The following required libraries were not found:
12891 $MISSING
12892 Maybe some development libraries/packages are missing?
12893 If you don't want to link with them give
12894 $WITH_NO
12895 as options to configure" "$LINENO" 5
12896 fi
12897 fi
12898
12899 ### Use -lgpm if available, unless `--with-gpm=no'.
12900 HAVE_GPM=no
12901 LIBGPM=
12902 if test "${with_gpm}" != "no"; then
12903 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12904 if test "x$ac_cv_header_gpm_h" = x""yes; then :
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12906 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12907 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
12908 $as_echo_n "(cached) " >&6
12909 else
12910 ac_check_lib_save_LIBS=$LIBS
12911 LIBS="-lgpm $LIBS"
12912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12913 /* end confdefs.h. */
12914
12915 /* Override any GCC internal prototype to avoid an error.
12916 Use char because int might match the return type of a GCC
12917 builtin and then its argument prototype would still apply. */
12918 #ifdef __cplusplus
12919 extern "C"
12920 #endif
12921 char Gpm_Open ();
12922 int
12923 main ()
12924 {
12925 return Gpm_Open ();
12926 ;
12927 return 0;
12928 }
12929 _ACEOF
12930 if ac_fn_c_try_link "$LINENO"; then :
12931 ac_cv_lib_gpm_Gpm_Open=yes
12932 else
12933 ac_cv_lib_gpm_Gpm_Open=no
12934 fi
12935 rm -f core conftest.err conftest.$ac_objext \
12936 conftest$ac_exeext conftest.$ac_ext
12937 LIBS=$ac_check_lib_save_LIBS
12938 fi
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12940 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12941 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
12942 HAVE_GPM=yes
12943 fi
12944
12945 fi
12946
12947
12948
12949 if test "${HAVE_GPM}" = "yes"; then
12950
12951 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12952
12953 LIBGPM=-lgpm
12954 fi
12955 fi
12956
12957
12958
12959
12960
12961
12962 GNUSTEP_CFLAGS=
12963 ### Use NeXTstep API to implement GUI.
12964 if test "${HAVE_NS}" = "yes"; then
12965
12966 $as_echo "#define HAVE_NS 1" >>confdefs.h
12967
12968 if test "${NS_IMPL_COCOA}" = "yes"; then
12969
12970 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12971
12972 fi
12973 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12974
12975 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12976
12977 # See also .m.o rule in Makefile.in */
12978 # FIXME: are all these flags really needed? Document here why. */
12979 GNUSTEP_CFLAGS="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
12980 ## Extra CFLAGS applied to src/*.m files.
12981 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"
12982 fi
12983 # We also have mouse menus.
12984 HAVE_MENUS=yes
12985 OTHER_FILES=ns-app
12986 fi
12987
12988 if test "${HAVE_W32}" = "yes"; then
12989 HAVE_MENUS=yes
12990 fi
12991
12992 ### Use session management (-lSM -lICE) if available
12993 HAVE_X_SM=no
12994 LIBXSM=
12995 if test "${HAVE_X11}" = "yes"; then
12996 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12997 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12999 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
13000 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
13001 $as_echo_n "(cached) " >&6
13002 else
13003 ac_check_lib_save_LIBS=$LIBS
13004 LIBS="-lSM -lICE $LIBS"
13005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13006 /* end confdefs.h. */
13007
13008 /* Override any GCC internal prototype to avoid an error.
13009 Use char because int might match the return type of a GCC
13010 builtin and then its argument prototype would still apply. */
13011 #ifdef __cplusplus
13012 extern "C"
13013 #endif
13014 char SmcOpenConnection ();
13015 int
13016 main ()
13017 {
13018 return SmcOpenConnection ();
13019 ;
13020 return 0;
13021 }
13022 _ACEOF
13023 if ac_fn_c_try_link "$LINENO"; then :
13024 ac_cv_lib_SM_SmcOpenConnection=yes
13025 else
13026 ac_cv_lib_SM_SmcOpenConnection=no
13027 fi
13028 rm -f core conftest.err conftest.$ac_objext \
13029 conftest$ac_exeext conftest.$ac_ext
13030 LIBS=$ac_check_lib_save_LIBS
13031 fi
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13033 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
13034 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
13035 HAVE_X_SM=yes
13036 fi
13037
13038 fi
13039
13040
13041
13042 if test "${HAVE_X_SM}" = "yes"; then
13043
13044 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
13045
13046 LIBXSM="-lSM -lICE"
13047 case "$LIBS" in
13048 *-lSM*) ;;
13049 *) LIBS="$LIBXSM $LIBS" ;;
13050 esac
13051 fi
13052 fi
13053
13054
13055 ### Use libxml (-lxml2) if available
13056 HAVE_LIBXML2=no
13057 if test "${with_xml2}" != "no"; then
13058 ### I'm not sure what the version number should be, so I just guessed.
13059
13060 succeeded=no
13061
13062 if test "$PKG_CONFIG" = "no" ; then
13063 HAVE_LIBXML2=no
13064 else
13065 PKG_CONFIG_MIN_VERSION=0.9.0
13066 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
13068 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
13069
13070 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5 &&
13071 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
13072 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17" 2>&5`; then
13073 edit_cflags="
13074 s,///*,/,g
13075 s/^/ /
13076 s/ -I/ $isystem/g
13077 s/^ //
13078 "
13079 LIBXML2_CFLAGS=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
13080 LIBXML2_LIBS=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
13082 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
13083 succeeded=yes
13084 else
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13086 $as_echo "no" >&6; }
13087 LIBXML2_CFLAGS=""
13088 LIBXML2_LIBS=""
13089 ## If we have a custom action on failure, don't print errors, but
13090 ## do set a variable so people can do so. Do it in a subshell
13091 ## to capture any diagnostics in invoking pkg-config.
13092 LIBXML2_PKG_ERRORS=`($PKG_CONFIG --print-errors "libxml-2.0 > 2.6.17") 2>&1`
13093
13094 fi
13095
13096
13097
13098 else
13099 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13100 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13101 fi
13102 fi
13103
13104 if test $succeeded = yes; then
13105 HAVE_LIBXML2=yes
13106 else
13107 HAVE_LIBXML2=no
13108 fi
13109
13110 if test "${HAVE_LIBXML2}" = "yes"; then
13111 LIBS="$LIBXML2_LIBS $LIBS"
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
13113 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
13114 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
13115 $as_echo_n "(cached) " >&6
13116 else
13117 ac_check_lib_save_LIBS=$LIBS
13118 LIBS="-lxml2 $LIBS"
13119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13120 /* end confdefs.h. */
13121
13122 /* Override any GCC internal prototype to avoid an error.
13123 Use char because int might match the return type of a GCC
13124 builtin and then its argument prototype would still apply. */
13125 #ifdef __cplusplus
13126 extern "C"
13127 #endif
13128 char htmlReadMemory ();
13129 int
13130 main ()
13131 {
13132 return htmlReadMemory ();
13133 ;
13134 return 0;
13135 }
13136 _ACEOF
13137 if ac_fn_c_try_link "$LINENO"; then :
13138 ac_cv_lib_xml2_htmlReadMemory=yes
13139 else
13140 ac_cv_lib_xml2_htmlReadMemory=no
13141 fi
13142 rm -f core conftest.err conftest.$ac_objext \
13143 conftest$ac_exeext conftest.$ac_ext
13144 LIBS=$ac_check_lib_save_LIBS
13145 fi
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
13147 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
13148 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
13149 HAVE_LIBXML2=yes
13150 else
13151 HAVE_LIBXML2=no
13152 fi
13153
13154 if test "${HAVE_LIBXML2}" = "yes"; then
13155
13156 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
13157
13158 else
13159 LIBXML2_LIBS=""
13160 LIBXML2_CFLAGS=""
13161 fi
13162 fi
13163 fi
13164
13165
13166
13167 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
13169 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
13170 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
13171 $as_echo_n "(cached) " >&6
13172 else
13173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13174 /* end confdefs.h. */
13175 #include <netdb.h>
13176 int
13177 main ()
13178 {
13179 return h_errno;
13180 ;
13181 return 0;
13182 }
13183 _ACEOF
13184 if ac_fn_c_try_link "$LINENO"; then :
13185 emacs_cv_netdb_declares_h_errno=yes
13186 else
13187 emacs_cv_netdb_declares_h_errno=no
13188 fi
13189 rm -f core conftest.err conftest.$ac_objext \
13190 conftest$ac_exeext conftest.$ac_ext
13191 fi
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
13193 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
13194 if test $emacs_cv_netdb_declares_h_errno = yes; then
13195
13196 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
13197
13198 fi
13199
13200 # sqrt and other floating-point functions such as fmod and frexp
13201 # are found in -lm on most systems.
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13203 $as_echo_n "checking for sqrt in -lm... " >&6; }
13204 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13205 $as_echo_n "(cached) " >&6
13206 else
13207 ac_check_lib_save_LIBS=$LIBS
13208 LIBS="-lm $LIBS"
13209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13210 /* end confdefs.h. */
13211
13212 /* Override any GCC internal prototype to avoid an error.
13213 Use char because int might match the return type of a GCC
13214 builtin and then its argument prototype would still apply. */
13215 #ifdef __cplusplus
13216 extern "C"
13217 #endif
13218 char sqrt ();
13219 int
13220 main ()
13221 {
13222 return sqrt ();
13223 ;
13224 return 0;
13225 }
13226 _ACEOF
13227 if ac_fn_c_try_link "$LINENO"; then :
13228 ac_cv_lib_m_sqrt=yes
13229 else
13230 ac_cv_lib_m_sqrt=no
13231 fi
13232 rm -f core conftest.err conftest.$ac_objext \
13233 conftest$ac_exeext conftest.$ac_ext
13234 LIBS=$ac_check_lib_save_LIBS
13235 fi
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13237 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13238 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13239 cat >>confdefs.h <<_ACEOF
13240 #define HAVE_LIBM 1
13241 _ACEOF
13242
13243 LIBS="-lm $LIBS"
13244
13245 fi
13246
13247
13248 # Check for mail-locking functions in a "mail" library. Probably this should
13249 # have the same check as for liblockfile below.
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13251 $as_echo_n "checking for maillock in -lmail... " >&6; }
13252 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13253 $as_echo_n "(cached) " >&6
13254 else
13255 ac_check_lib_save_LIBS=$LIBS
13256 LIBS="-lmail $LIBS"
13257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13258 /* end confdefs.h. */
13259
13260 /* Override any GCC internal prototype to avoid an error.
13261 Use char because int might match the return type of a GCC
13262 builtin and then its argument prototype would still apply. */
13263 #ifdef __cplusplus
13264 extern "C"
13265 #endif
13266 char maillock ();
13267 int
13268 main ()
13269 {
13270 return maillock ();
13271 ;
13272 return 0;
13273 }
13274 _ACEOF
13275 if ac_fn_c_try_link "$LINENO"; then :
13276 ac_cv_lib_mail_maillock=yes
13277 else
13278 ac_cv_lib_mail_maillock=no
13279 fi
13280 rm -f core conftest.err conftest.$ac_objext \
13281 conftest$ac_exeext conftest.$ac_ext
13282 LIBS=$ac_check_lib_save_LIBS
13283 fi
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13285 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13286 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
13287 have_mail=yes
13288 else
13289 have_mail=no
13290 fi
13291
13292 if test $have_mail = yes; then
13293 LIBS_MAIL=-lmail
13294 LIBS="$LIBS_MAIL $LIBS"
13295
13296 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13297
13298 else
13299 LIBS_MAIL=
13300 fi
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13302 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13303 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13304 $as_echo_n "(cached) " >&6
13305 else
13306 ac_check_lib_save_LIBS=$LIBS
13307 LIBS="-llockfile $LIBS"
13308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13309 /* end confdefs.h. */
13310
13311 /* Override any GCC internal prototype to avoid an error.
13312 Use char because int might match the return type of a GCC
13313 builtin and then its argument prototype would still apply. */
13314 #ifdef __cplusplus
13315 extern "C"
13316 #endif
13317 char maillock ();
13318 int
13319 main ()
13320 {
13321 return maillock ();
13322 ;
13323 return 0;
13324 }
13325 _ACEOF
13326 if ac_fn_c_try_link "$LINENO"; then :
13327 ac_cv_lib_lockfile_maillock=yes
13328 else
13329 ac_cv_lib_lockfile_maillock=no
13330 fi
13331 rm -f core conftest.err conftest.$ac_objext \
13332 conftest$ac_exeext conftest.$ac_ext
13333 LIBS=$ac_check_lib_save_LIBS
13334 fi
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13336 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13337 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
13338 have_lockfile=yes
13339 else
13340 have_lockfile=no
13341 fi
13342
13343 if test $have_lockfile = yes; then
13344 LIBS_MAIL=-llockfile
13345 LIBS="$LIBS_MAIL $LIBS"
13346
13347 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13348
13349 else
13350 # If we have the shared liblockfile, assume we must use it for mail
13351 # locking (e.g. Debian). If we couldn't link against liblockfile
13352 # (no liblockfile.a installed), ensure that we don't need to.
13353 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13354 set dummy liblockfile.so; ac_word=$2
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13356 $as_echo_n "checking for $ac_word... " >&6; }
13357 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13358 $as_echo_n "(cached) " >&6
13359 else
13360 if test -n "$liblockfile"; then
13361 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13362 else
13363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13364 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13365 for as_dir in $as_dummy
13366 do
13367 IFS=$as_save_IFS
13368 test -z "$as_dir" && as_dir=.
13369 for ac_exec_ext in '' $ac_executable_extensions; do
13370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13371 ac_cv_prog_liblockfile="yes"
13372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13373 break 2
13374 fi
13375 done
13376 done
13377 IFS=$as_save_IFS
13378
13379 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13380 fi
13381 fi
13382 liblockfile=$ac_cv_prog_liblockfile
13383 if test -n "$liblockfile"; then
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13385 $as_echo "$liblockfile" >&6; }
13386 else
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13388 $as_echo "no" >&6; }
13389 fi
13390
13391
13392 if test $ac_cv_prog_liblockfile = yes; then
13393 as_fn_error "Shared liblockfile found but can't link against it.
13394 This probably means that movemail could lose mail.
13395 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13396 fi
13397 fi
13398
13399
13400
13401
13402
13403 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13404 ## interlock access to the mail spool. The alternative is a lock file named
13405 ## /usr/spool/mail/$USER.lock.
13406 mail_lock=no
13407 case "$opsys" in
13408 aix4-2) mail_lock="lockf" ;;
13409
13410 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
13411
13412 ## On GNU/Linux systems, both methods are used by various mail programs.
13413 ## I assume most people are using newer mailers that have heard of flock.
13414 ## Change this if you need to.
13415 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13416 ## configure gets the right answers, and that means *NOT* using flock.
13417 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13418 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13419 ## Debian maintainer hasn't provided a clean fix for Emacs.
13420 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13421 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13422 ## correct logic. -- fx
13423 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13424 ## liblockfile is a Free Software replacement for libmail, used on
13425 ## Debian systems and elsewhere. -rfr.
13426 gnu-*)
13427 mail_lock="flock"
13428 if test $have_mail = yes || test $have_lockfile = yes; then
13429 test $ac_cv_header_maillock_h = yes && mail_lock=no
13430 fi
13431 ;;
13432 esac
13433
13434 BLESSMAIL_TARGET=
13435 case "$mail_lock" in
13436 flock)
13437 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13438 ;;
13439
13440 lockf)
13441 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13442 ;;
13443
13444 *) BLESSMAIL_TARGET="need-blessmail" ;;
13445 esac
13446
13447
13448
13449 for ac_func in gethostname \
13450 closedir getrusage get_current_dir_name \
13451 lrand48 \
13452 fpathconf select getpagesize setlocale \
13453 utimes getrlimit setrlimit getcwd shutdown getaddrinfo \
13454 strsignal setitimer \
13455 sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
13456 gai_strerror mkstemp getline getdelim fsync sync \
13457 difftime posix_memalign \
13458 getpwent endpwent getgrent endgrent \
13459 touchlock \
13460 cfmakeraw cfsetspeed copysign __executable_start
13461 do :
13462 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13463 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13464 eval as_val=\$$as_ac_var
13465 if test "x$as_val" = x""yes; then :
13466 cat >>confdefs.h <<_ACEOF
13467 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13468 _ACEOF
13469
13470 fi
13471 done
13472
13473
13474 if test $opsys = unixware; then
13475
13476 $as_echo "#define BROKEN_GETWD 1" >>confdefs.h
13477
13478 else
13479 for ac_func in getwd
13480 do :
13481 ac_fn_c_check_func "$LINENO" "getwd" "ac_cv_func_getwd"
13482 if test "x$ac_cv_func_getwd" = x""yes; then :
13483 cat >>confdefs.h <<_ACEOF
13484 #define HAVE_GETWD 1
13485 _ACEOF
13486
13487 fi
13488 done
13489
13490 fi
13491
13492 ## Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines
13493 ## has a broken `rint' in some library versions including math library
13494 ## version number A.09.05.
13495 ## You can fix the math library by installing patch number PHSS_4630.
13496 ## But we can fix it more reliably for Emacs by just not using rint.
13497 ## We also skip HAVE_RANDOM - see comments in src/conf_post.h.
13498 case $opsys in
13499 hpux*) : ;;
13500 *) for ac_func in random rint
13501 do :
13502 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13503 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13504 eval as_val=\$$as_ac_var
13505 if test "x$as_val" = x""yes; then :
13506 cat >>confdefs.h <<_ACEOF
13507 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13508 _ACEOF
13509
13510 fi
13511 done
13512 ;;
13513 esac
13514
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13516 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13517 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13518 $as_echo_n "(cached) " >&6
13519 else
13520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13521 /* end confdefs.h. */
13522
13523 int
13524 main ()
13525 {
13526 __builtin_unwind_init ();
13527 ;
13528 return 0;
13529 }
13530 _ACEOF
13531 if ac_fn_c_try_link "$LINENO"; then :
13532 emacs_cv_func___builtin_unwind_init=yes
13533 else
13534 emacs_cv_func___builtin_unwind_init=no
13535 fi
13536 rm -f core conftest.err conftest.$ac_objext \
13537 conftest$ac_exeext conftest.$ac_ext
13538 fi
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13540 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13541 if test $emacs_cv_func___builtin_unwind_init = yes; then
13542
13543 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13544
13545 fi
13546
13547
13548
13549
13550
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13552 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13553 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13554 $as_echo_n "(cached) " >&6
13555 else
13556 while :; do
13557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13558 /* end confdefs.h. */
13559 #include <sys/types.h> /* for off_t */
13560 #include <stdio.h>
13561 int
13562 main ()
13563 {
13564 int (*fp) (FILE *, off_t, int) = fseeko;
13565 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13566 ;
13567 return 0;
13568 }
13569 _ACEOF
13570 if ac_fn_c_try_link "$LINENO"; then :
13571 ac_cv_sys_largefile_source=no; break
13572 fi
13573 rm -f core conftest.err conftest.$ac_objext \
13574 conftest$ac_exeext conftest.$ac_ext
13575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13576 /* end confdefs.h. */
13577 #define _LARGEFILE_SOURCE 1
13578 #include <sys/types.h> /* for off_t */
13579 #include <stdio.h>
13580 int
13581 main ()
13582 {
13583 int (*fp) (FILE *, off_t, int) = fseeko;
13584 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13585 ;
13586 return 0;
13587 }
13588 _ACEOF
13589 if ac_fn_c_try_link "$LINENO"; then :
13590 ac_cv_sys_largefile_source=1; break
13591 fi
13592 rm -f core conftest.err conftest.$ac_objext \
13593 conftest$ac_exeext conftest.$ac_ext
13594 ac_cv_sys_largefile_source=unknown
13595 break
13596 done
13597 fi
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13599 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13600 case $ac_cv_sys_largefile_source in #(
13601 no | unknown) ;;
13602 *)
13603 cat >>confdefs.h <<_ACEOF
13604 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13605 _ACEOF
13606 ;;
13607 esac
13608 rm -rf conftest*
13609
13610 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13611 # in glibc 2.1.3, but that breaks too many other things.
13612 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13613 if test $ac_cv_sys_largefile_source != unknown; then
13614
13615 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13616
13617 fi
13618
13619
13620 # UNIX98 PTYs.
13621 for ac_func in grantpt
13622 do :
13623 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
13624 if test "x$ac_cv_func_grantpt" = x""yes; then :
13625 cat >>confdefs.h <<_ACEOF
13626 #define HAVE_GRANTPT 1
13627 _ACEOF
13628
13629 fi
13630 done
13631
13632
13633 # PTY-related GNU extensions.
13634 for ac_func in getpt posix_openpt
13635 do :
13636 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13637 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13638 eval as_val=\$$as_ac_var
13639 if test "x$as_val" = x""yes; then :
13640 cat >>confdefs.h <<_ACEOF
13641 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13642 _ACEOF
13643
13644 fi
13645 done
13646
13647
13648 # Check this now, so that we will NOT find the above functions in ncurses.
13649 # That is because we have not set up to link ncurses in lib-src.
13650 # It's better to believe a function is not available
13651 # than to expect to find it in ncurses.
13652 # Also we need tputs and friends to be able to build at all.
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
13654 $as_echo_n "checking for library containing tputs... " >&6; }
13655 # Run a test program that contains a call to tputs, a call that is
13656 # never executed. This tests whether a pre-'main' dynamic linker
13657 # works with the library. It's too much trouble to actually call
13658 # tputs in the test program, due to portability hassles. When
13659 # cross-compiling, assume the test program will run if it links.
13660
13661 # Maybe curses should be tried earlier?
13662 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
13663 for tputs_library in '' tinfo ncurses terminfo termcap curses; do
13664 OLIBS=$LIBS
13665 if test -z "$tputs_library"; then
13666 LIBS_TERMCAP=
13667 msg='none required'
13668 else
13669 LIBS_TERMCAP=-l$tputs_library
13670 msg=$LIBS_TERMCAP
13671 LIBS="$LIBS_TERMCAP $LIBS"
13672 fi
13673 if test "$cross_compiling" = yes; then :
13674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13675 /* end confdefs.h. */
13676
13677 extern void tputs (const char *, int, int (*)(int));
13678 int main (int argc, char **argv)
13679 {
13680 if (argc == 10000)
13681 tputs (argv[0], 0, 0);
13682 return 0;
13683 }
13684
13685 _ACEOF
13686 if ac_fn_c_try_link "$LINENO"; then :
13687
13688 else
13689 msg=no
13690 fi
13691 rm -f core conftest.err conftest.$ac_objext \
13692 conftest$ac_exeext conftest.$ac_ext
13693 else
13694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13695 /* end confdefs.h. */
13696
13697 extern void tputs (const char *, int, int (*)(int));
13698 int main (int argc, char **argv)
13699 {
13700 if (argc == 10000)
13701 tputs (argv[0], 0, 0);
13702 return 0;
13703 }
13704
13705 _ACEOF
13706 if ac_fn_c_try_run "$LINENO"; then :
13707
13708 else
13709 msg=no
13710 fi
13711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13712 conftest.$ac_objext conftest.beam conftest.$ac_ext
13713 fi
13714
13715 LIBS=$OLIBS
13716 if test "X$msg" != Xno; then
13717 break
13718 fi
13719 done
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
13721 $as_echo "$msg" >&6; }
13722 if test "X$msg" = Xno; then
13723 as_fn_error "The required function \`tputs' was not found in any library.
13724 The following libraries were tried (in order):
13725 libtinfo, libncurses, libterminfo, libtermcap, libcurses
13726 Please try installing whichever of these libraries is most appropriate
13727 for your system, together with its header files.
13728 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
13729 fi
13730
13731 ## Use termcap instead of terminfo?
13732 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
13733 TERMINFO=yes
13734 ## FIXME? In the cases below where we unconditionally set
13735 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
13736 ## if that was found above to have tputs.
13737 ## Should we use the gnu* logic everywhere?
13738 case "$opsys" in
13739 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
13740 ## The ncurses library has been moved out of the System framework in
13741 ## Mac OS X 10.2. So if configure detects it, set the command-line
13742 ## option to use it.
13743 darwin) LIBS_TERMCAP="-lncurses" ;;
13744
13745 gnu*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP="-lncurses" ;;
13746
13747 freebsd)
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
13749 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
13750 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
13751 $as_echo_n "(cached) " >&6
13752 else
13753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13754 /* end confdefs.h. */
13755 #include <osreldate.h>
13756 int
13757 main ()
13758 {
13759 #if __FreeBSD_version < 400000
13760 fail;
13761 #endif
13762
13763 ;
13764 return 0;
13765 }
13766 _ACEOF
13767 if ac_fn_c_try_link "$LINENO"; then :
13768 emacs_cv_freebsd_terminfo=yes
13769 else
13770 emacs_cv_freebsd_terminfo=no
13771 fi
13772 rm -f core conftest.err conftest.$ac_objext \
13773 conftest$ac_exeext conftest.$ac_ext
13774 fi
13775
13776
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
13778 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
13779
13780 if test $emacs_cv_freebsd_terminfo = yes; then
13781 LIBS_TERMCAP="-lncurses"
13782 else
13783 TERMINFO=no
13784 LIBS_TERMCAP="-ltermcap"
13785 fi
13786 ;;
13787
13788 netbsd)
13789 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
13790 TERMINFO=no
13791 LIBS_TERMCAP="-ltermcap"
13792 fi
13793 ;;
13794
13795 openbsd) LIBS_TERMCAP="-lncurses" ;;
13796
13797 ## hpux: Make sure we get select from libc rather than from libcurses
13798 ## because libcurses on HPUX 10.10 has a broken version of select.
13799 ## We used to use -lc -lcurses, but this may be cleaner.
13800 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
13801 # set that way, now it uses the default). Isn't this a contradiction?
13802 hpux*) LIBS_TERMCAP="-ltermcap" ;;
13803
13804 esac
13805
13806 TERMCAP_OBJ=tparam.o
13807 if test $TERMINFO = yes; then
13808
13809 $as_echo "#define TERMINFO 1" >>confdefs.h
13810
13811 TERMCAP_OBJ=terminfo.o
13812 fi
13813
13814
13815
13816
13817 # Do we have res_init, for detecting changes in /etc/resolv.conf?
13818 # On Darwin, res_init appears not to be useful: see bug#562 and
13819 # http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html
13820 resolv=no
13821
13822 if test $opsys != darwin; then
13823
13824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13825 /* end confdefs.h. */
13826 #include <netinet/in.h>
13827 #include <arpa/nameser.h>
13828 #include <resolv.h>
13829 int
13830 main ()
13831 {
13832 return res_init();
13833 ;
13834 return 0;
13835 }
13836 _ACEOF
13837 if ac_fn_c_try_link "$LINENO"; then :
13838 have_res_init=yes
13839 else
13840 have_res_init=no
13841 fi
13842 rm -f core conftest.err conftest.$ac_objext \
13843 conftest$ac_exeext conftest.$ac_ext
13844 if test "$have_res_init" = no; then
13845 OLIBS="$LIBS"
13846 LIBS="$LIBS -lresolv"
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
13848 $as_echo_n "checking for res_init with -lresolv... " >&6; }
13849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13850 /* end confdefs.h. */
13851 #include <netinet/in.h>
13852 #include <arpa/nameser.h>
13853 #include <resolv.h>
13854 int
13855 main ()
13856 {
13857 return res_init();
13858 ;
13859 return 0;
13860 }
13861 _ACEOF
13862 if ac_fn_c_try_link "$LINENO"; then :
13863 have_res_init=yes
13864 else
13865 have_res_init=no
13866 fi
13867 rm -f core conftest.err conftest.$ac_objext \
13868 conftest$ac_exeext conftest.$ac_ext
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
13870 $as_echo "$have_res_init" >&6; }
13871 if test "$have_res_init" = yes ; then
13872 resolv=yes
13873 fi
13874 LIBS="$OLIBS"
13875 fi
13876
13877 if test "$have_res_init" = yes; then
13878
13879 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
13880
13881 fi
13882 fi
13883 # Do we need the Hesiod library to provide the support routines?
13884 LIBHESIOD=
13885 if test "$with_hesiod" != no ; then
13886 # Don't set $LIBS here -- see comments above. FIXME which comments?
13887 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
13888 if test "x$ac_cv_func_res_send" = x""yes; then :
13889
13890 else
13891 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
13892 if test "x$ac_cv_func___res_send" = x""yes; then :
13893
13894 else
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
13896 $as_echo_n "checking for res_send in -lresolv... " >&6; }
13897 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
13898 $as_echo_n "(cached) " >&6
13899 else
13900 ac_check_lib_save_LIBS=$LIBS
13901 LIBS="-lresolv $LIBS"
13902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13903 /* end confdefs.h. */
13904
13905 /* Override any GCC internal prototype to avoid an error.
13906 Use char because int might match the return type of a GCC
13907 builtin and then its argument prototype would still apply. */
13908 #ifdef __cplusplus
13909 extern "C"
13910 #endif
13911 char res_send ();
13912 int
13913 main ()
13914 {
13915 return res_send ();
13916 ;
13917 return 0;
13918 }
13919 _ACEOF
13920 if ac_fn_c_try_link "$LINENO"; then :
13921 ac_cv_lib_resolv_res_send=yes
13922 else
13923 ac_cv_lib_resolv_res_send=no
13924 fi
13925 rm -f core conftest.err conftest.$ac_objext \
13926 conftest$ac_exeext conftest.$ac_ext
13927 LIBS=$ac_check_lib_save_LIBS
13928 fi
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
13930 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
13931 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
13932 resolv=yes
13933 else
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
13935 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
13936 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
13937 $as_echo_n "(cached) " >&6
13938 else
13939 ac_check_lib_save_LIBS=$LIBS
13940 LIBS="-lresolv $LIBS"
13941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13942 /* end confdefs.h. */
13943
13944 /* Override any GCC internal prototype to avoid an error.
13945 Use char because int might match the return type of a GCC
13946 builtin and then its argument prototype would still apply. */
13947 #ifdef __cplusplus
13948 extern "C"
13949 #endif
13950 char __res_send ();
13951 int
13952 main ()
13953 {
13954 return __res_send ();
13955 ;
13956 return 0;
13957 }
13958 _ACEOF
13959 if ac_fn_c_try_link "$LINENO"; then :
13960 ac_cv_lib_resolv___res_send=yes
13961 else
13962 ac_cv_lib_resolv___res_send=no
13963 fi
13964 rm -f core conftest.err conftest.$ac_objext \
13965 conftest$ac_exeext conftest.$ac_ext
13966 LIBS=$ac_check_lib_save_LIBS
13967 fi
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
13969 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
13970 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
13971 resolv=yes
13972 fi
13973
13974 fi
13975
13976 fi
13977
13978 fi
13979
13980 if test "$resolv" = yes ; then
13981 RESOLVLIB=-lresolv
13982 else
13983 RESOLVLIB=
13984 fi
13985 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
13986 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
13987
13988 else
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
13990 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
13991 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
13992 $as_echo_n "(cached) " >&6
13993 else
13994 ac_check_lib_save_LIBS=$LIBS
13995 LIBS="-lhesiod $RESOLVLIB $LIBS"
13996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13997 /* end confdefs.h. */
13998
13999 /* Override any GCC internal prototype to avoid an error.
14000 Use char because int might match the return type of a GCC
14001 builtin and then its argument prototype would still apply. */
14002 #ifdef __cplusplus
14003 extern "C"
14004 #endif
14005 char hes_getmailhost ();
14006 int
14007 main ()
14008 {
14009 return hes_getmailhost ();
14010 ;
14011 return 0;
14012 }
14013 _ACEOF
14014 if ac_fn_c_try_link "$LINENO"; then :
14015 ac_cv_lib_hesiod_hes_getmailhost=yes
14016 else
14017 ac_cv_lib_hesiod_hes_getmailhost=no
14018 fi
14019 rm -f core conftest.err conftest.$ac_objext \
14020 conftest$ac_exeext conftest.$ac_ext
14021 LIBS=$ac_check_lib_save_LIBS
14022 fi
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14024 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
14025 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
14026 hesiod=yes
14027 else
14028 :
14029 fi
14030
14031 fi
14032
14033
14034 if test x"$hesiod" = xyes; then
14035
14036 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
14037
14038 LIBHESIOD=-lhesiod
14039 fi
14040 fi
14041
14042
14043 # Do we need libresolv (due to res_init or Hesiod)?
14044 if test "$resolv" = yes && test $opsys != darwin; then
14045
14046 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
14047
14048 LIBRESOLV=-lresolv
14049 else
14050 LIBRESOLV=
14051 fi
14052
14053
14054 # These tell us which Kerberos-related libraries to use.
14055 COM_ERRLIB=
14056 CRYPTOLIB=
14057 KRB5LIB=
14058 DESLIB=
14059 KRB4LIB=
14060
14061 if test "${with_kerberos}" != no; then
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
14063 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
14064 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
14065 $as_echo_n "(cached) " >&6
14066 else
14067 ac_check_lib_save_LIBS=$LIBS
14068 LIBS="-lcom_err $LIBS"
14069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14070 /* end confdefs.h. */
14071
14072 /* Override any GCC internal prototype to avoid an error.
14073 Use char because int might match the return type of a GCC
14074 builtin and then its argument prototype would still apply. */
14075 #ifdef __cplusplus
14076 extern "C"
14077 #endif
14078 char com_err ();
14079 int
14080 main ()
14081 {
14082 return com_err ();
14083 ;
14084 return 0;
14085 }
14086 _ACEOF
14087 if ac_fn_c_try_link "$LINENO"; then :
14088 ac_cv_lib_com_err_com_err=yes
14089 else
14090 ac_cv_lib_com_err_com_err=no
14091 fi
14092 rm -f core conftest.err conftest.$ac_objext \
14093 conftest$ac_exeext conftest.$ac_ext
14094 LIBS=$ac_check_lib_save_LIBS
14095 fi
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
14097 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
14098 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
14099 have_com_err=yes
14100 else
14101 have_com_err=no
14102 fi
14103
14104 if test $have_com_err = yes; then
14105 COM_ERRLIB=-lcom_err
14106 LIBS="$COM_ERRLIB $LIBS"
14107
14108 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
14109
14110 fi
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14112 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
14113 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
14114 $as_echo_n "(cached) " >&6
14115 else
14116 ac_check_lib_save_LIBS=$LIBS
14117 LIBS="-lcrypto $LIBS"
14118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14119 /* end confdefs.h. */
14120
14121 /* Override any GCC internal prototype to avoid an error.
14122 Use char because int might match the return type of a GCC
14123 builtin and then its argument prototype would still apply. */
14124 #ifdef __cplusplus
14125 extern "C"
14126 #endif
14127 char mit_des_cbc_encrypt ();
14128 int
14129 main ()
14130 {
14131 return mit_des_cbc_encrypt ();
14132 ;
14133 return 0;
14134 }
14135 _ACEOF
14136 if ac_fn_c_try_link "$LINENO"; then :
14137 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
14138 else
14139 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
14140 fi
14141 rm -f core conftest.err conftest.$ac_objext \
14142 conftest$ac_exeext conftest.$ac_ext
14143 LIBS=$ac_check_lib_save_LIBS
14144 fi
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14146 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
14147 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
14148 have_crypto=yes
14149 else
14150 have_crypto=no
14151 fi
14152
14153 if test $have_crypto = yes; then
14154 CRYPTOLIB=-lcrypto
14155 LIBS="$CRYPTOLIB $LIBS"
14156
14157 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
14158
14159 fi
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14161 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
14162 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
14163 $as_echo_n "(cached) " >&6
14164 else
14165 ac_check_lib_save_LIBS=$LIBS
14166 LIBS="-lk5crypto $LIBS"
14167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14168 /* end confdefs.h. */
14169
14170 /* Override any GCC internal prototype to avoid an error.
14171 Use char because int might match the return type of a GCC
14172 builtin and then its argument prototype would still apply. */
14173 #ifdef __cplusplus
14174 extern "C"
14175 #endif
14176 char mit_des_cbc_encrypt ();
14177 int
14178 main ()
14179 {
14180 return mit_des_cbc_encrypt ();
14181 ;
14182 return 0;
14183 }
14184 _ACEOF
14185 if ac_fn_c_try_link "$LINENO"; then :
14186 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
14187 else
14188 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
14189 fi
14190 rm -f core conftest.err conftest.$ac_objext \
14191 conftest$ac_exeext conftest.$ac_ext
14192 LIBS=$ac_check_lib_save_LIBS
14193 fi
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14195 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
14196 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
14197 have_k5crypto=yes
14198 else
14199 have_k5crypto=no
14200 fi
14201
14202 if test $have_k5crypto = yes; then
14203 CRYPTOLIB=-lk5crypto
14204 LIBS="$CRYPTOLIB $LIBS"
14205
14206 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
14207
14208 fi
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
14210 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
14211 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
14212 $as_echo_n "(cached) " >&6
14213 else
14214 ac_check_lib_save_LIBS=$LIBS
14215 LIBS="-lkrb5 $LIBS"
14216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14217 /* end confdefs.h. */
14218
14219 /* Override any GCC internal prototype to avoid an error.
14220 Use char because int might match the return type of a GCC
14221 builtin and then its argument prototype would still apply. */
14222 #ifdef __cplusplus
14223 extern "C"
14224 #endif
14225 char krb5_init_context ();
14226 int
14227 main ()
14228 {
14229 return krb5_init_context ();
14230 ;
14231 return 0;
14232 }
14233 _ACEOF
14234 if ac_fn_c_try_link "$LINENO"; then :
14235 ac_cv_lib_krb5_krb5_init_context=yes
14236 else
14237 ac_cv_lib_krb5_krb5_init_context=no
14238 fi
14239 rm -f core conftest.err conftest.$ac_objext \
14240 conftest$ac_exeext conftest.$ac_ext
14241 LIBS=$ac_check_lib_save_LIBS
14242 fi
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14244 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
14245 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
14246 have_krb5=yes
14247 else
14248 have_krb5=no
14249 fi
14250
14251 if test $have_krb5=yes; then
14252 KRB5LIB=-lkrb5
14253 LIBS="$KRB5LIB $LIBS"
14254
14255 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
14256
14257 fi
14258 if test "${with_kerberos5}" = no; then
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
14260 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
14261 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
14262 $as_echo_n "(cached) " >&6
14263 else
14264 ac_check_lib_save_LIBS=$LIBS
14265 LIBS="-ldes425 $LIBS"
14266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14267 /* end confdefs.h. */
14268
14269 /* Override any GCC internal prototype to avoid an error.
14270 Use char because int might match the return type of a GCC
14271 builtin and then its argument prototype would still apply. */
14272 #ifdef __cplusplus
14273 extern "C"
14274 #endif
14275 char des_cbc_encrypt ();
14276 int
14277 main ()
14278 {
14279 return des_cbc_encrypt ();
14280 ;
14281 return 0;
14282 }
14283 _ACEOF
14284 if ac_fn_c_try_link "$LINENO"; then :
14285 ac_cv_lib_des425_des_cbc_encrypt=yes
14286 else
14287 ac_cv_lib_des425_des_cbc_encrypt=no
14288 fi
14289 rm -f core conftest.err conftest.$ac_objext \
14290 conftest$ac_exeext conftest.$ac_ext
14291 LIBS=$ac_check_lib_save_LIBS
14292 fi
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14294 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
14295 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
14296 have_des425=yes
14297 else
14298 have_des425=no
14299 fi
14300
14301 if test $have_des425 = yes; then
14302 DESLIB=-ldes425
14303 LIBS="$DESLIB $LIBS"
14304
14305 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
14306
14307 else
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
14309 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
14310 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
14311 $as_echo_n "(cached) " >&6
14312 else
14313 ac_check_lib_save_LIBS=$LIBS
14314 LIBS="-ldes $LIBS"
14315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14316 /* end confdefs.h. */
14317
14318 /* Override any GCC internal prototype to avoid an error.
14319 Use char because int might match the return type of a GCC
14320 builtin and then its argument prototype would still apply. */
14321 #ifdef __cplusplus
14322 extern "C"
14323 #endif
14324 char des_cbc_encrypt ();
14325 int
14326 main ()
14327 {
14328 return des_cbc_encrypt ();
14329 ;
14330 return 0;
14331 }
14332 _ACEOF
14333 if ac_fn_c_try_link "$LINENO"; then :
14334 ac_cv_lib_des_des_cbc_encrypt=yes
14335 else
14336 ac_cv_lib_des_des_cbc_encrypt=no
14337 fi
14338 rm -f core conftest.err conftest.$ac_objext \
14339 conftest$ac_exeext conftest.$ac_ext
14340 LIBS=$ac_check_lib_save_LIBS
14341 fi
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14343 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
14344 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
14345 have_des=yes
14346 else
14347 have_des=no
14348 fi
14349
14350 if test $have_des = yes; then
14351 DESLIB=-ldes
14352 LIBS="$DESLIB $LIBS"
14353
14354 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
14355
14356 fi
14357 fi
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
14359 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
14360 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
14361 $as_echo_n "(cached) " >&6
14362 else
14363 ac_check_lib_save_LIBS=$LIBS
14364 LIBS="-lkrb4 $LIBS"
14365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14366 /* end confdefs.h. */
14367
14368 /* Override any GCC internal prototype to avoid an error.
14369 Use char because int might match the return type of a GCC
14370 builtin and then its argument prototype would still apply. */
14371 #ifdef __cplusplus
14372 extern "C"
14373 #endif
14374 char krb_get_cred ();
14375 int
14376 main ()
14377 {
14378 return krb_get_cred ();
14379 ;
14380 return 0;
14381 }
14382 _ACEOF
14383 if ac_fn_c_try_link "$LINENO"; then :
14384 ac_cv_lib_krb4_krb_get_cred=yes
14385 else
14386 ac_cv_lib_krb4_krb_get_cred=no
14387 fi
14388 rm -f core conftest.err conftest.$ac_objext \
14389 conftest$ac_exeext conftest.$ac_ext
14390 LIBS=$ac_check_lib_save_LIBS
14391 fi
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14393 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
14394 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
14395 have_krb4=yes
14396 else
14397 have_krb4=no
14398 fi
14399
14400 if test $have_krb4 = yes; then
14401 KRB4LIB=-lkrb4
14402 LIBS="$KRB4LIB $LIBS"
14403
14404 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
14405
14406 else
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
14408 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
14409 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
14410 $as_echo_n "(cached) " >&6
14411 else
14412 ac_check_lib_save_LIBS=$LIBS
14413 LIBS="-lkrb $LIBS"
14414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14415 /* end confdefs.h. */
14416
14417 /* Override any GCC internal prototype to avoid an error.
14418 Use char because int might match the return type of a GCC
14419 builtin and then its argument prototype would still apply. */
14420 #ifdef __cplusplus
14421 extern "C"
14422 #endif
14423 char krb_get_cred ();
14424 int
14425 main ()
14426 {
14427 return krb_get_cred ();
14428 ;
14429 return 0;
14430 }
14431 _ACEOF
14432 if ac_fn_c_try_link "$LINENO"; then :
14433 ac_cv_lib_krb_krb_get_cred=yes
14434 else
14435 ac_cv_lib_krb_krb_get_cred=no
14436 fi
14437 rm -f core conftest.err conftest.$ac_objext \
14438 conftest$ac_exeext conftest.$ac_ext
14439 LIBS=$ac_check_lib_save_LIBS
14440 fi
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
14442 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
14443 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
14444 have_krb=yes
14445 else
14446 have_krb=no
14447 fi
14448
14449 if test $have_krb = yes; then
14450 KRB4LIB=-lkrb
14451 LIBS="$KRB4LIB $LIBS"
14452
14453 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
14454
14455 fi
14456 fi
14457 fi
14458
14459 if test "${with_kerberos5}" != no; then
14460 for ac_header in krb5.h
14461 do :
14462 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
14463 if test "x$ac_cv_header_krb5_h" = x""yes; then :
14464 cat >>confdefs.h <<_ACEOF
14465 #define HAVE_KRB5_H 1
14466 _ACEOF
14467 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
14468 "
14469 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
14470
14471 cat >>confdefs.h <<_ACEOF
14472 #define HAVE_KRB5_ERROR_TEXT 1
14473 _ACEOF
14474
14475
14476 fi
14477 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
14478 "
14479 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
14480
14481 cat >>confdefs.h <<_ACEOF
14482 #define HAVE_KRB5_ERROR_E_TEXT 1
14483 _ACEOF
14484
14485
14486 fi
14487
14488 fi
14489
14490 done
14491
14492 else
14493 for ac_header in des.h
14494 do :
14495 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
14496 if test "x$ac_cv_header_des_h" = x""yes; then :
14497 cat >>confdefs.h <<_ACEOF
14498 #define HAVE_DES_H 1
14499 _ACEOF
14500
14501 else
14502 for ac_header in kerberosIV/des.h
14503 do :
14504 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
14505 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
14506 cat >>confdefs.h <<_ACEOF
14507 #define HAVE_KERBEROSIV_DES_H 1
14508 _ACEOF
14509
14510 else
14511 for ac_header in kerberos/des.h
14512 do :
14513 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
14514 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
14515 cat >>confdefs.h <<_ACEOF
14516 #define HAVE_KERBEROS_DES_H 1
14517 _ACEOF
14518
14519 fi
14520
14521 done
14522
14523 fi
14524
14525 done
14526
14527 fi
14528
14529 done
14530
14531 for ac_header in krb.h
14532 do :
14533 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
14534 if test "x$ac_cv_header_krb_h" = x""yes; then :
14535 cat >>confdefs.h <<_ACEOF
14536 #define HAVE_KRB_H 1
14537 _ACEOF
14538
14539 else
14540 for ac_header in kerberosIV/krb.h
14541 do :
14542 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
14543 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
14544 cat >>confdefs.h <<_ACEOF
14545 #define HAVE_KERBEROSIV_KRB_H 1
14546 _ACEOF
14547
14548 else
14549 for ac_header in kerberos/krb.h
14550 do :
14551 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
14552 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
14553 cat >>confdefs.h <<_ACEOF
14554 #define HAVE_KERBEROS_KRB_H 1
14555 _ACEOF
14556
14557 fi
14558
14559 done
14560
14561 fi
14562
14563 done
14564
14565 fi
14566
14567 done
14568
14569 fi
14570 for ac_header in com_err.h
14571 do :
14572 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
14573 if test "x$ac_cv_header_com_err_h" = x""yes; then :
14574 cat >>confdefs.h <<_ACEOF
14575 #define HAVE_COM_ERR_H 1
14576 _ACEOF
14577
14578 fi
14579
14580 done
14581
14582 fi
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593 for ac_func in $ac_func_list
14594 do :
14595 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14596 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14597 eval as_val=\$$as_ac_var
14598 if test "x$as_val" = x""yes; then :
14599 cat >>confdefs.h <<_ACEOF
14600 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14601 _ACEOF
14602
14603 fi
14604 done
14605
14606
14607
14608
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
14610 $as_echo_n "checking whether localtime caches TZ... " >&6; }
14611 if test "${emacs_cv_localtime_cache+set}" = set; then :
14612 $as_echo_n "(cached) " >&6
14613 else
14614 if test x$ac_cv_func_tzset = xyes; then
14615 if test "$cross_compiling" = yes; then :
14616 # If we have tzset, assume the worst when cross-compiling.
14617 emacs_cv_localtime_cache=yes
14618 else
14619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14620 /* end confdefs.h. */
14621 #include <time.h>
14622 char TZ_GMT0[] = "TZ=GMT0";
14623 char TZ_PST8[] = "TZ=PST8";
14624 main()
14625 {
14626 time_t now = time ((time_t *) 0);
14627 int hour_GMT0, hour_unset;
14628 if (putenv (TZ_GMT0) != 0)
14629 exit (1);
14630 hour_GMT0 = localtime (&now)->tm_hour;
14631 unsetenv("TZ");
14632 hour_unset = localtime (&now)->tm_hour;
14633 if (putenv (TZ_PST8) != 0)
14634 exit (1);
14635 if (localtime (&now)->tm_hour == hour_GMT0)
14636 exit (1);
14637 unsetenv("TZ");
14638 if (localtime (&now)->tm_hour != hour_unset)
14639 exit (1);
14640 exit (0);
14641 }
14642 _ACEOF
14643 if ac_fn_c_try_run "$LINENO"; then :
14644 emacs_cv_localtime_cache=no
14645 else
14646 emacs_cv_localtime_cache=yes
14647 fi
14648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14649 conftest.$ac_objext conftest.beam conftest.$ac_ext
14650 fi
14651
14652 else
14653 # If we lack tzset, report that localtime does not cache TZ,
14654 # since we can't invalidate the cache if we don't have tzset.
14655 emacs_cv_localtime_cache=no
14656 fi
14657 fi
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
14659 $as_echo "$emacs_cv_localtime_cache" >&6; }
14660 if test $emacs_cv_localtime_cache = yes; then
14661
14662 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
14663
14664 fi
14665
14666 ok_so_far=yes
14667 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
14668 if test "x$ac_cv_func_socket" = x""yes; then :
14669
14670 else
14671 ok_so_far=no
14672 fi
14673
14674 if test $ok_so_far = yes; then
14675 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
14676 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
14677
14678 else
14679 ok_so_far=no
14680 fi
14681
14682
14683 fi
14684 if test $ok_so_far = yes; then
14685 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
14686 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
14687
14688 else
14689 ok_so_far=no
14690 fi
14691
14692
14693 fi
14694 if test $ok_so_far = yes; then
14695
14696 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
14697
14698 fi
14699
14700 if test -f /usr/lpp/X11/bin/smt.exp; then
14701
14702 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
14703
14704 fi
14705
14706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
14707 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
14708 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14710 $as_echo "yes" >&6; }
14711
14712 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
14713
14714 else
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14716 $as_echo "no" >&6; }
14717 fi
14718
14719 case $canonical in
14720 *-solaris2.4 | *-solaris2.4.*)
14721 : ${ac_cv_func_vfork_works=no};;
14722 esac
14723
14724 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14725 if test "x$ac_cv_type_pid_t" = x""yes; then :
14726
14727 else
14728
14729 cat >>confdefs.h <<_ACEOF
14730 #define pid_t int
14731 _ACEOF
14732
14733 fi
14734
14735 for ac_header in vfork.h
14736 do :
14737 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14738 if test "x$ac_cv_header_vfork_h" = x""yes; then :
14739 cat >>confdefs.h <<_ACEOF
14740 #define HAVE_VFORK_H 1
14741 _ACEOF
14742
14743 fi
14744
14745 done
14746
14747 for ac_func in fork vfork
14748 do :
14749 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14750 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14751 eval as_val=\$$as_ac_var
14752 if test "x$as_val" = x""yes; then :
14753 cat >>confdefs.h <<_ACEOF
14754 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14755 _ACEOF
14756
14757 fi
14758 done
14759
14760 if test "x$ac_cv_func_fork" = xyes; then
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14762 $as_echo_n "checking for working fork... " >&6; }
14763 if test "${ac_cv_func_fork_works+set}" = set; then :
14764 $as_echo_n "(cached) " >&6
14765 else
14766 if test "$cross_compiling" = yes; then :
14767 ac_cv_func_fork_works=cross
14768 else
14769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14770 /* end confdefs.h. */
14771 $ac_includes_default
14772 int
14773 main ()
14774 {
14775
14776 /* By Ruediger Kuhlmann. */
14777 return fork () < 0;
14778
14779 ;
14780 return 0;
14781 }
14782 _ACEOF
14783 if ac_fn_c_try_run "$LINENO"; then :
14784 ac_cv_func_fork_works=yes
14785 else
14786 ac_cv_func_fork_works=no
14787 fi
14788 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14789 conftest.$ac_objext conftest.beam conftest.$ac_ext
14790 fi
14791
14792 fi
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14794 $as_echo "$ac_cv_func_fork_works" >&6; }
14795
14796 else
14797 ac_cv_func_fork_works=$ac_cv_func_fork
14798 fi
14799 if test "x$ac_cv_func_fork_works" = xcross; then
14800 case $host in
14801 *-*-amigaos* | *-*-msdosdjgpp*)
14802 # Override, as these systems have only a dummy fork() stub
14803 ac_cv_func_fork_works=no
14804 ;;
14805 *)
14806 ac_cv_func_fork_works=yes
14807 ;;
14808 esac
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14810 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14811 fi
14812 ac_cv_func_vfork_works=$ac_cv_func_vfork
14813 if test "x$ac_cv_func_vfork" = xyes; then
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14815 $as_echo_n "checking for working vfork... " >&6; }
14816 if test "${ac_cv_func_vfork_works+set}" = set; then :
14817 $as_echo_n "(cached) " >&6
14818 else
14819 if test "$cross_compiling" = yes; then :
14820 ac_cv_func_vfork_works=cross
14821 else
14822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14823 /* end confdefs.h. */
14824 /* Thanks to Paul Eggert for this test. */
14825 $ac_includes_default
14826 #include <sys/wait.h>
14827 #ifdef HAVE_VFORK_H
14828 # include <vfork.h>
14829 #endif
14830 /* On some sparc systems, changes by the child to local and incoming
14831 argument registers are propagated back to the parent. The compiler
14832 is told about this with #include <vfork.h>, but some compilers
14833 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14834 static variable whose address is put into a register that is
14835 clobbered by the vfork. */
14836 static void
14837 #ifdef __cplusplus
14838 sparc_address_test (int arg)
14839 # else
14840 sparc_address_test (arg) int arg;
14841 #endif
14842 {
14843 static pid_t child;
14844 if (!child) {
14845 child = vfork ();
14846 if (child < 0) {
14847 perror ("vfork");
14848 _exit(2);
14849 }
14850 if (!child) {
14851 arg = getpid();
14852 write(-1, "", 0);
14853 _exit (arg);
14854 }
14855 }
14856 }
14857
14858 int
14859 main ()
14860 {
14861 pid_t parent = getpid ();
14862 pid_t child;
14863
14864 sparc_address_test (0);
14865
14866 child = vfork ();
14867
14868 if (child == 0) {
14869 /* Here is another test for sparc vfork register problems. This
14870 test uses lots of local variables, at least as many local
14871 variables as main has allocated so far including compiler
14872 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14873 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14874 reuse the register of parent for one of the local variables,
14875 since it will think that parent can't possibly be used any more
14876 in this routine. Assigning to the local variable will thus
14877 munge parent in the parent process. */
14878 pid_t
14879 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14880 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14881 /* Convince the compiler that p..p7 are live; otherwise, it might
14882 use the same hardware register for all 8 local variables. */
14883 if (p != p1 || p != p2 || p != p3 || p != p4
14884 || p != p5 || p != p6 || p != p7)
14885 _exit(1);
14886
14887 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14888 from child file descriptors. If the child closes a descriptor
14889 before it execs or exits, this munges the parent's descriptor
14890 as well. Test for this by closing stdout in the child. */
14891 _exit(close(fileno(stdout)) != 0);
14892 } else {
14893 int status;
14894 struct stat st;
14895
14896 while (wait(&status) != child)
14897 ;
14898 return (
14899 /* Was there some problem with vforking? */
14900 child < 0
14901
14902 /* Did the child fail? (This shouldn't happen.) */
14903 || status
14904
14905 /* Did the vfork/compiler bug occur? */
14906 || parent != getpid()
14907
14908 /* Did the file descriptor bug occur? */
14909 || fstat(fileno(stdout), &st) != 0
14910 );
14911 }
14912 }
14913 _ACEOF
14914 if ac_fn_c_try_run "$LINENO"; then :
14915 ac_cv_func_vfork_works=yes
14916 else
14917 ac_cv_func_vfork_works=no
14918 fi
14919 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14920 conftest.$ac_objext conftest.beam conftest.$ac_ext
14921 fi
14922
14923 fi
14924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14925 $as_echo "$ac_cv_func_vfork_works" >&6; }
14926
14927 fi;
14928 if test "x$ac_cv_func_fork_works" = xcross; then
14929 ac_cv_func_vfork_works=$ac_cv_func_vfork
14930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14931 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14932 fi
14933
14934 if test "x$ac_cv_func_vfork_works" = xyes; then
14935
14936 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14937
14938 else
14939
14940 $as_echo "#define vfork fork" >>confdefs.h
14941
14942 fi
14943 if test "x$ac_cv_func_fork_works" = xyes; then
14944
14945 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14946
14947 fi
14948
14949
14950 for ac_func in snprintf
14951 do :
14952 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
14953 if test "x$ac_cv_func_snprintf" = x""yes; then :
14954 cat >>confdefs.h <<_ACEOF
14955 #define HAVE_SNPRINTF 1
14956 _ACEOF
14957
14958 fi
14959 done
14960
14961
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14963 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14964 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
14965 $as_echo_n "(cached) " >&6
14966 else
14967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14968 /* end confdefs.h. */
14969 #include <langinfo.h>
14970 int
14971 main ()
14972 {
14973 char* cs = nl_langinfo(CODESET);
14974 ;
14975 return 0;
14976 }
14977 _ACEOF
14978 if ac_fn_c_try_link "$LINENO"; then :
14979 emacs_cv_langinfo_codeset=yes
14980 else
14981 emacs_cv_langinfo_codeset=no
14982 fi
14983 rm -f core conftest.err conftest.$ac_objext \
14984 conftest$ac_exeext conftest.$ac_ext
14985
14986 fi
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
14988 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
14989 if test $emacs_cv_langinfo_codeset = yes; then
14990
14991 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14992
14993 fi
14994
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
14996 $as_echo_n "checking for mbstate_t... " >&6; }
14997 if test "${ac_cv_type_mbstate_t+set}" = set; then :
14998 $as_echo_n "(cached) " >&6
14999 else
15000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15001 /* end confdefs.h. */
15002 $ac_includes_default
15003 # include <wchar.h>
15004 int
15005 main ()
15006 {
15007 mbstate_t x; return sizeof x;
15008 ;
15009 return 0;
15010 }
15011 _ACEOF
15012 if ac_fn_c_try_compile "$LINENO"; then :
15013 ac_cv_type_mbstate_t=yes
15014 else
15015 ac_cv_type_mbstate_t=no
15016 fi
15017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15018 fi
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
15020 $as_echo "$ac_cv_type_mbstate_t" >&6; }
15021 if test $ac_cv_type_mbstate_t = yes; then
15022
15023 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
15024
15025 else
15026
15027 $as_echo "#define mbstate_t int" >>confdefs.h
15028
15029 fi
15030
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
15032 $as_echo_n "checking for C restricted array declarations... " >&6; }
15033 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
15034 $as_echo_n "(cached) " >&6
15035 else
15036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15037 /* end confdefs.h. */
15038 void fred (int x[__restrict]);
15039 int
15040 main ()
15041 {
15042
15043 ;
15044 return 0;
15045 }
15046 _ACEOF
15047 if ac_fn_c_try_compile "$LINENO"; then :
15048 emacs_cv_c_restrict_arr=yes
15049 else
15050 emacs_cv_c_restrict_arr=no
15051 fi
15052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15053 fi
15054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
15055 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
15056 if test "$emacs_cv_c_restrict_arr" = yes; then
15057
15058 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
15059
15060 fi
15061
15062
15063
15064 $as_echo "#define AMPERSAND_FULL_NAME 1" >>confdefs.h
15065
15066
15067
15068 $as_echo "#define CLASH_DETECTION 1" >>confdefs.h
15069
15070
15071 ## Note: PTYs are broken on darwin <6. Use at your own risk.
15072
15073 $as_echo "#define HAVE_PTYS 1" >>confdefs.h
15074
15075
15076
15077 $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
15078
15079
15080
15081
15082
15083 $as_echo "#define NULL_DEVICE \"/dev/null\"" >>confdefs.h
15084
15085
15086
15087 $as_echo "#define SEPCHAR ':'" >>confdefs.h
15088
15089
15090
15091 $as_echo "#define subprocesses 1" >>confdefs.h
15092
15093
15094
15095 $as_echo "#define USER_FULL_NAME pw->pw_gecos" >>confdefs.h
15096
15097
15098
15099
15100 $as_echo "#define DIRECTORY_SEP '/'" >>confdefs.h
15101
15102
15103
15104
15105
15106 $as_echo "#define IS_DEVICE_SEP(_c_) 0" >>confdefs.h
15107
15108
15109
15110 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)" >>confdefs.h
15111
15112
15113
15114 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_))" >>confdefs.h
15115
15116
15117
15118
15119
15120 case $opsys in
15121 aix4-2)
15122 if test x$ac_cv_lib_Xmu_XmuConvertStandardSelection != xyes; then
15123 $as_echo "#define NO_EDITRES 1" >>confdefs.h
15124
15125 fi
15126 ;;
15127
15128 hpux*)
15129 $as_echo "#define NO_EDITRES 1" >>confdefs.h
15130
15131 ;;
15132 esac
15133
15134
15135 case $opsys in
15136 irix6-5 | sol2* | unixware )
15137
15138 $as_echo "#define NSIG_MINIMUM 32" >>confdefs.h
15139
15140 ;;
15141 esac
15142
15143 emacs_broken_SIGIO=no
15144
15145 case $opsys in
15146 hpux* | irix6-5 | openbsd | sol2* | unixware )
15147 emacs_broken_SIGIO=yes
15148 ;;
15149
15150 aix4-2)
15151
15152 $as_echo "#define BROKEN_GET_CURRENT_DIR_NAME 1" >>confdefs.h
15153
15154 ;;
15155
15156 freebsd)
15157
15158 $as_echo "#define BROKEN_PTY_READ_AFTER_EAGAIN 1" >>confdefs.h
15159
15160 ;;
15161 esac
15162
15163 case $opsys in
15164 gnu-* | sol2-10 )
15165
15166 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
15167
15168 ;;
15169 esac
15170
15171 case $opsys in
15172 darwin | freebsd | netbsd | openbsd )
15173
15174 $as_echo "#define DONT_REOPEN_PTY 1" >>confdefs.h
15175
15176 ;;
15177 esac
15178
15179 case $opsys in
15180 netbsd | openbsd) sound_device="/dev/audio" ;;
15181 *) sound_device="/dev/dsp" ;;
15182 esac
15183
15184
15185 cat >>confdefs.h <<_ACEOF
15186 #define DEFAULT_SOUND_DEVICE "$sound_device"
15187 _ACEOF
15188
15189
15190
15191 case $opsys in
15192 darwin | gnu-linux | gnu-kfreebsd )
15193
15194 $as_echo "#define INTERRUPT_INPUT 1" >>confdefs.h
15195
15196 ;;
15197 esac
15198
15199
15200 case $opsys in
15201 cygwin|gnu|gnu-linux|gnu-kfreebsd|irix6-5|freebsd|netbsd|openbsd)
15202
15203 $as_echo "#define NARROWPROTO 1" >>confdefs.h
15204
15205 ;;
15206 esac
15207
15208
15209
15210
15211
15212
15213
15214
15215 case $opsys in
15216 aix4-2 )
15217 $as_echo "#define PTY_ITERATION int c; for (c = 0; !c ; c++)" >>confdefs.h
15218
15219 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptc\");" >>confdefs.h
15220
15221 $as_echo "#define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));" >>confdefs.h
15222
15223 ;;
15224
15225 cygwin )
15226 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15227
15228 $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
15229
15230 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15231
15232 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15233
15234 ;;
15235
15236 darwin )
15237 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15238
15239 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15240
15241 $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
15242
15243 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15244
15245 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15246
15247 ;;
15248
15249 gnu | openbsd )
15250 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15251
15252 ;;
15253
15254 gnu-linux | gnu-kfreebsd | freebsd | netbsd )
15255 if test "x$ac_cv_func_grantpt" = xyes; then
15256
15257 $as_echo "#define UNIX98_PTYS 1" >>confdefs.h
15258
15259 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15260
15261 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptyname = 0; sigset_t blocked; sigemptyset (&blocked); sigaddset (&blocked, SIGCHLD); pthread_sigmask (SIG_BLOCK, &blocked, 0); if (grantpt (fd) != -1 && unlockpt (fd) != -1) ptyname = ptsname(fd); pthread_sigmask (SIG_UNBLOCK, &blocked, 0); if (!ptyname) { close (fd); return -1; } snprintf (pty_name, sizeof pty_name, \"%s\", ptyname); }" >>confdefs.h
15262
15263 if test "x$ac_cv_func_posix_openpt" = xyes; then
15264 $as_echo "#define PTY_OPEN fd = posix_openpt (O_RDWR | O_NOCTTY)" >>confdefs.h
15265
15266 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15267
15268 elif test "x$ac_cv_func_getpt" = xyes; then
15269 $as_echo "#define PTY_OPEN fd = getpt ()" >>confdefs.h
15270
15271 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15272
15273 else
15274 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15275
15276 fi
15277 else
15278 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15279
15280 fi
15281 ;;
15282
15283 hpux*)
15284 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15285
15286 $as_echo "#define PTY_NAME_SPRINTF sprintf (pty_name, \"/dev/ptym/pty%c%x\", c, i);" >>confdefs.h
15287
15288 $as_echo "#define PTY_TTY_NAME_SPRINTF sprintf (pty_name, \"/dev/pty/tty%c%x\", c, i);" >>confdefs.h
15289
15290 ;;
15291
15292 irix6-5 )
15293 $as_echo "#define PTY_ITERATION /**/" >>confdefs.h
15294
15295 $as_echo "#define FIRST_PTY_LETTER 'q'" >>confdefs.h
15296
15297 $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(SIGCLD, &cstat, &ocstat); name = _getpty (&fd, O_RDWR | O_NDELAY, 0600, 0); sigaction(SIGCLD, &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
15298
15299 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15300
15301 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15302
15303 ;;
15304
15305 sol2* )
15306 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptsname (int), *ptyname; int grantpt_result; sigset_t blocked; sigemptyset (&blocked); sigaddset (&blocked, SIGCLD); pthread_sigmask (SIG_BLOCK, &blocked, 0); grantpt_result = grantpt (fd); pthread_sigmask (SIG_UNBLOCK, &blocked, 0); if (grantpt_result == -1 || unlockpt (fd) == -1 || !(ptyname = ptsname (fd))) { emacs_close (fd); return -1; } snprintf (pty_name, sizeof pty_name, \"%s\", ptyname); }" >>confdefs.h
15307
15308 ;;
15309
15310 unixware )
15311 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptsname (int), *ptyname; int grantpt_result; sigset_t blocked; sigemptyset (&blocked); sigaddset (&blocked, SIGCLD); pthread_sigmask (SIG_BLOCK, &blocked, 0); grantpt_result = grantpt (fd); pthread_sigmask (SIG_UNBLOCK, &blocked, 0); if (grantpt_result == -1) fatal(\"could not grant slave pty\"); if (unlockpt(fd) == -1) fatal(\"could not unlock slave pty\"); if (!(ptyname = ptsname(fd))) fatal (\"could not enable slave pty\"); snprintf (pty_name, sizeof pty_name, \"%s\", ptyname); }" >>confdefs.h
15312
15313 ;;
15314 esac
15315
15316
15317 case $opsys in
15318 sol2* | unixware )
15319 $as_echo "#define FIRST_PTY_LETTER 'z'" >>confdefs.h
15320
15321 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15322
15323
15324 $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
15325
15326 ;;
15327 esac
15328
15329
15330
15331
15332 case $opsys in
15333 aix4-2 | cygwin | gnu | irix6-5 | freebsd | netbsd | openbsd )
15334 $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15335
15336 ;;
15337
15338 gnu-linux | gnu-kfreebsd )
15339
15340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signals via characters" >&5
15341 $as_echo_n "checking for signals via characters... " >&6; }
15342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15343 /* end confdefs.h. */
15344
15345 #include <linux/version.h>
15346 #if LINUX_VERSION_CODE < 0x20400
15347 # error "Linux version too old"
15348 #endif
15349
15350 int
15351 main ()
15352 {
15353
15354 ;
15355 return 0;
15356 }
15357 _ACEOF
15358 if ac_fn_c_try_cpp "$LINENO"; then :
15359 emacs_signals_via_chars=yes
15360 else
15361 emacs_signals_via_chars=no
15362 fi
15363 rm -f conftest.err conftest.$ac_ext
15364
15365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_signals_via_chars" >&5
15366 $as_echo "$emacs_signals_via_chars" >&6; }
15367 test $emacs_signals_via_chars = yes && $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15368
15369 ;;
15370 esac
15371
15372
15373
15374
15375
15376 case $opsys in
15377 gnu)
15378 $as_echo "#define DATA_START ({ extern int data_start; (char *) &data_start; })" >>confdefs.h
15379
15380 ;;
15381
15382 hpux*)
15383 $as_echo "#define DATA_START 0x40000000" >>confdefs.h
15384
15385 $as_echo "#define DATA_SEG_BITS 0x40000000" >>confdefs.h
15386
15387 ;;
15388 irix6-5)
15389 $as_echo "#define DATA_START 0x10000000" >>confdefs.h
15390
15391 $as_echo "#define DATA_SEG_BITS 0x10000000" >>confdefs.h
15392
15393 ;;
15394 esac
15395
15396
15397
15398
15399
15400 case $opsys in
15401 darwin) $as_echo "#define TAB3 OXTABS" >>confdefs.h
15402 ;;
15403
15404 gnu | freebsd | netbsd | openbsd )
15405
15406 $as_echo "#define TABDLY OXTABS" >>confdefs.h
15407
15408 $as_echo "#define TAB3 OXTABS" >>confdefs.h
15409
15410 ;;
15411
15412 gnu-linux | gnu-kfreebsd )
15413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15414 /* end confdefs.h. */
15415
15416 #ifndef __i386__
15417 # error "not i386"
15418 #endif
15419
15420 int
15421 main ()
15422 {
15423
15424 ;
15425 return 0;
15426 }
15427 _ACEOF
15428 if ac_fn_c_try_cpp "$LINENO"; then :
15429 $as_echo "#define ULIMIT_BREAK_VALUE (32*1024*1024)" >>confdefs.h
15430
15431 fi
15432 rm -f conftest.err conftest.$ac_ext
15433
15434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15435 /* end confdefs.h. */
15436
15437 #ifndef __ia64__
15438 # error "not ia64"
15439 #endif
15440
15441 int
15442 main ()
15443 {
15444
15445 ;
15446 return 0;
15447 }
15448 _ACEOF
15449 if ac_fn_c_try_cpp "$LINENO"; then :
15450
15451 $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
15452
15453 fi
15454 rm -f conftest.err conftest.$ac_ext
15455 ;;
15456
15457 hpux*)
15458
15459 $as_echo "#define RUN_TIME_REMAP 1" >>confdefs.h
15460
15461 ;;
15462
15463 irix6-5)
15464 $as_echo "#define ULIMIT_BREAK_VALUE 0x14000000" >>confdefs.h
15465
15466 ;;
15467 esac
15468
15469
15470
15471
15472
15473
15474
15475 case $opsys in
15476 aix4-2 | hpux* | unixware)
15477 $as_echo "#define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE" >>confdefs.h
15478
15479 ;;
15480
15481 gnu-linux | gnu-kfreebsd )
15482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15483 /* end confdefs.h. */
15484
15485 #if defined __i386__ || defined __sparc__ || defined __mc68000__ \
15486 || defined __alpha__ || defined __mips__ || defined __s390__ \
15487 || defined __arm__ || defined __powerpc__ || defined __amd64__ \
15488 || defined __ia64__ || defined __sh__
15489 /* ok */
15490 #else
15491 # error "setjmp not known to work on this arch"
15492 #endif
15493
15494 int
15495 main ()
15496 {
15497
15498 ;
15499 return 0;
15500 }
15501 _ACEOF
15502 if ac_fn_c_try_cpp "$LINENO"; then :
15503 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15504
15505 else
15506 $as_echo "#define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE" >>confdefs.h
15507
15508 fi
15509 rm -f conftest.err conftest.$ac_ext
15510 ;;
15511 esac
15512
15513
15514 if test x$GCC = xyes; then
15515 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15516
15517 else
15518 case $opsys in
15519 freebsd | netbsd | openbsd | irix6-5 | sol2* )
15520 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15521
15522 ;;
15523 esac
15524 fi
15525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _setjmp" >&5
15526 $as_echo_n "checking for _setjmp... " >&6; }
15527 if test "${emacs_cv_func__setjmp+set}" = set; then :
15528 $as_echo_n "(cached) " >&6
15529 else
15530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15531 /* end confdefs.h. */
15532 #include <setjmp.h>
15533
15534 int
15535 main ()
15536 {
15537 jmp_buf j;
15538 if (! _setjmp (j))
15539 _longjmp (j, 1);
15540 ;
15541 return 0;
15542 }
15543 _ACEOF
15544 if ac_fn_c_try_link "$LINENO"; then :
15545 emacs_cv_func__setjmp=yes
15546 else
15547 emacs_cv_func__setjmp=no
15548 fi
15549 rm -f core conftest.err conftest.$ac_objext \
15550 conftest$ac_exeext conftest.$ac_ext
15551 fi
15552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func__setjmp" >&5
15553 $as_echo "$emacs_cv_func__setjmp" >&6; }
15554 if test $emacs_cv_func__setjmp = yes; then
15555
15556 $as_echo "#define HAVE__SETJMP 1" >>confdefs.h
15557
15558 else
15559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
15560 $as_echo_n "checking for sigsetjmp... " >&6; }
15561 if test "${emacs_cv_func_sigsetjmp+set}" = set; then :
15562 $as_echo_n "(cached) " >&6
15563 else
15564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15565 /* end confdefs.h. */
15566 #include <setjmp.h>
15567
15568 int
15569 main ()
15570 {
15571 sigjmp_buf j;
15572 if (! sigsetjmp (j, 1))
15573 siglongjmp (j, 1);
15574 ;
15575 return 0;
15576 }
15577 _ACEOF
15578 if ac_fn_c_try_link "$LINENO"; then :
15579 emacs_cv_func_sigsetjmp=yes
15580 else
15581 emacs_cv_func_sigsetjmp=no
15582 fi
15583 rm -f core conftest.err conftest.$ac_objext \
15584 conftest$ac_exeext conftest.$ac_ext
15585 fi
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func_sigsetjmp" >&5
15587 $as_echo "$emacs_cv_func_sigsetjmp" >&6; }
15588 if test $emacs_cv_func_sigsetjmp = yes; then
15589
15590 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
15591
15592 fi
15593 fi
15594
15595 case $opsys in
15596 sol2* | unixware )
15597
15598 $as_echo "#define TIOCSIGSEND TIOCSIGNAL" >>confdefs.h
15599
15600 ;;
15601 esac
15602
15603
15604 case $opsys in
15605 hpux* | sol2* )
15606
15607 $as_echo "#define XOS_NEEDS_TIME_H 1" >>confdefs.h
15608
15609 ;;
15610 esac
15611
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621 case $opsys in
15622 aix4-2)
15623 $as_echo "#define USG /**/" >>confdefs.h
15624
15625 $as_echo "#define USG5 /**/" >>confdefs.h
15626
15627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15628 /* end confdefs.h. */
15629
15630 #ifndef _AIX
15631 # error "_AIX not defined"
15632 #endif
15633
15634 int
15635 main ()
15636 {
15637
15638 ;
15639 return 0;
15640 }
15641 _ACEOF
15642 if ac_fn_c_try_cpp "$LINENO"; then :
15643
15644 else
15645
15646 $as_echo "#define _AIX /**/" >>confdefs.h
15647
15648 fi
15649 rm -f conftest.err conftest.$ac_ext
15650 ;;
15651
15652 cygwin)
15653
15654 $as_echo "#define CYGWIN 1" >>confdefs.h
15655
15656 ;;
15657
15658 darwin)
15659 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15660
15661 $as_echo "#define BSD_SYSTEM /**/" >>confdefs.h
15662
15663
15664 $as_echo "#define DARWIN_OS /**/" >>confdefs.h
15665
15666 ;;
15667
15668 freebsd)
15669 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15670
15671
15672 $as_echo "#define BSD_SYSTEM_AHB 1" >>confdefs.h
15673
15674 ;;
15675
15676 gnu | netbsd | openbsd )
15677 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15678
15679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15680 /* end confdefs.h. */
15681
15682 #ifndef BSD_SYSTEM
15683 # error "BSD_SYSTEM not defined"
15684 #endif
15685
15686 int
15687 main ()
15688 {
15689
15690 ;
15691 return 0;
15692 }
15693 _ACEOF
15694 if ac_fn_c_try_cpp "$LINENO"; then :
15695
15696 else
15697 $as_echo "#define BSD_SYSTEM 43" >>confdefs.h
15698
15699 fi
15700 rm -f conftest.err conftest.$ac_ext
15701 ;;
15702
15703 gnu-linux | gnu-kfreebsd )
15704 $as_echo "#define USG /**/" >>confdefs.h
15705
15706
15707 $as_echo "#define GNU_LINUX /**/" >>confdefs.h
15708
15709 ;;
15710
15711 hpux*)
15712 $as_echo "#define USG /**/" >>confdefs.h
15713
15714 $as_echo "#define USG5 /**/" >>confdefs.h
15715
15716
15717 $as_echo "#define HPUX /**/" >>confdefs.h
15718
15719 ;;
15720
15721 irix6-5)
15722 $as_echo "#define USG /**/" >>confdefs.h
15723
15724 $as_echo "#define USG5 /**/" >>confdefs.h
15725
15726 $as_echo "#define USG5_4 /**/" >>confdefs.h
15727
15728
15729 $as_echo "#define IRIX6_5 /**/" >>confdefs.h
15730
15731 ;;
15732
15733 sol2*)
15734 $as_echo "#define USG /**/" >>confdefs.h
15735
15736 $as_echo "#define USG5 /**/" >>confdefs.h
15737
15738 $as_echo "#define USG5_4 /**/" >>confdefs.h
15739
15740
15741 $as_echo "#define SOLARIS2 /**/" >>confdefs.h
15742
15743 ;;
15744
15745 unixware)
15746 $as_echo "#define USG /**/" >>confdefs.h
15747
15748 $as_echo "#define USG5 /**/" >>confdefs.h
15749
15750 $as_echo "#define USG5_4 /**/" >>confdefs.h
15751
15752 ;;
15753 esac
15754
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable FIONREAD" >&5
15756 $as_echo_n "checking for usable FIONREAD... " >&6; }
15757 if test "${emacs_cv_usable_FIONREAD+set}" = set; then :
15758 $as_echo_n "(cached) " >&6
15759 else
15760 case $opsys in
15761 aix4-2)
15762 emacs_cv_usable_FIONREAD=no
15763 ;;
15764
15765 *)
15766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15767 /* end confdefs.h. */
15768 #include <sys/types.h>
15769 #include <sys/ioctl.h>
15770 #ifdef USG5_4
15771 # include <sys/filio.h>
15772 #endif
15773
15774 int
15775 main ()
15776 {
15777 int foo = ioctl (0, FIONREAD, &foo);
15778 ;
15779 return 0;
15780 }
15781 _ACEOF
15782 if ac_fn_c_try_compile "$LINENO"; then :
15783 emacs_cv_usable_FIONREAD=yes
15784 else
15785 emacs_cv_usable_FIONREAD=no
15786 fi
15787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15788 ;;
15789 esac
15790 fi
15791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_FIONREAD" >&5
15792 $as_echo "$emacs_cv_usable_FIONREAD" >&6; }
15793 if test $emacs_cv_usable_FIONREAD = yes; then
15794
15795 $as_echo "#define USABLE_FIONREAD 1" >>confdefs.h
15796
15797
15798 if test $emacs_broken_SIGIO = no; then
15799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable SIGIO" >&5
15800 $as_echo_n "checking for usable SIGIO... " >&6; }
15801 if test "${emacs_cv_usable_SIGIO+set}" = set; then :
15802 $as_echo_n "(cached) " >&6
15803 else
15804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15805 /* end confdefs.h. */
15806 #include <fcntl.h>
15807 #include <signal.h>
15808
15809 int
15810 main ()
15811 {
15812 int foo = SIGIO | F_SETFL | FASYNC;
15813 ;
15814 return 0;
15815 }
15816 _ACEOF
15817 if ac_fn_c_try_compile "$LINENO"; then :
15818 emacs_cv_usable_SIGIO=yes
15819 else
15820 emacs_cv_usable_SIGIO=no
15821 fi
15822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15823 fi
15824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_SIGIO" >&5
15825 $as_echo "$emacs_cv_usable_SIGIO" >&6; }
15826 if test $emacs_cv_usable_SIGIO = yes; then
15827
15828 $as_echo "#define USABLE_SIGIO 1" >>confdefs.h
15829
15830 fi
15831 fi
15832 fi
15833
15834
15835 case $opsys in
15836 cygwin)
15837
15838 $as_echo "#define G_SLICE_ALWAYS_MALLOC 1" >>confdefs.h
15839
15840 ;;
15841
15842 hpux11)
15843
15844 $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h
15845
15846 ;;
15847
15848 irix6-5)
15849
15850 $as_echo "#define PREFER_VSUSP 1" >>confdefs.h
15851
15852 ;;
15853
15854 sol2-10)
15855
15856 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
15857
15858 ;;
15859 esac
15860
15861 # Set up the CFLAGS for real compilation, so we can substitute it.
15862 CFLAGS="$REAL_CFLAGS"
15863 CPPFLAGS="$REAL_CPPFLAGS"
15864
15865 ## Hack to detect a buggy GCC version.
15866 if test "x$GCC" = xyes \
15867 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
15868 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
15869 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
15870 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
15871 fi
15872
15873 version=$PACKAGE_VERSION
15874
15875 copyright="Copyright (C) 2012 Free Software Foundation, Inc."
15876
15877 cat >>confdefs.h <<_ACEOF
15878 #define COPYRIGHT "$copyright"
15879 _ACEOF
15880
15881
15882
15883 ### Specify what sort of things we'll be editing into Makefile and config.h.
15884 ### Use configuration here uncanonicalized to avoid exceeding size limits.
15885
15886
15887 ## Unused?
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
15911 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
15912 ## end of LIBX_BASE, but nothing ever set it.
15913
15914
15915
15916
15917 ## Used in lwlib/Makefile.in.
15918
15919
15920
15921
15922
15923
15924
15925
15926 if test -n "${term_header}"; then
15927
15928 cat >>confdefs.h <<_ACEOF
15929 #define TERM_HEADER "${term_header}"
15930 _ACEOF
15931
15932 fi
15933
15934
15935 cat >>confdefs.h <<_ACEOF
15936 #define EMACS_CONFIGURATION "${canonical}"
15937 _ACEOF
15938
15939
15940 cat >>confdefs.h <<_ACEOF
15941 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
15942 _ACEOF
15943
15944
15945
15946 XMENU_OBJ=
15947 XOBJ=
15948 FONT_OBJ=
15949 if test "${HAVE_X_WINDOWS}" = "yes" ; then
15950
15951 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
15952
15953 XMENU_OBJ=xmenu.o
15954 XOBJ="xterm.o xfns.o xselect.o xrdb.o xsmfns.o xsettings.o xgselect.o"
15955 FONT_OBJ=xfont.o
15956 if test "$HAVE_XFT" = "yes"; then
15957 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
15958 elif test "$HAVE_FREETYPE" = "yes"; then
15959 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
15960 fi
15961
15962 fi
15963
15964
15965
15966
15967 WIDGET_OBJ=
15968 MOTIF_LIBW=
15969 if test "${USE_X_TOOLKIT}" != "none" ; then
15970 WIDGET_OBJ=widget.o
15971
15972 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
15973
15974 if test "${USE_X_TOOLKIT}" = "LUCID"; then
15975
15976 $as_echo "#define USE_LUCID 1" >>confdefs.h
15977
15978 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
15979
15980 $as_echo "#define USE_MOTIF 1" >>confdefs.h
15981
15982 MOTIF_LIBW=-lXm
15983 case "$opsys" in
15984 gnu-linux)
15985 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
15986 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
15987 ;;
15988
15989 unixware)
15990 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
15991 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
15992 MOTIF_LIBW="MOTIF_LIBW -lXimp"
15993 ;;
15994
15995 aix4-2)
15996 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
15997 MOTIF_LIBW="$MOTIF_LIBW -li18n"
15998 ;;
15999 esac
16000 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
16001 fi
16002 fi
16003
16004
16005 TOOLKIT_LIBW=
16006 case "$USE_X_TOOLKIT" in
16007 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
16008 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
16009 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
16010 esac
16011
16012
16013 if test "$USE_X_TOOLKIT" = "none"; then
16014 LIBXT_OTHER="\$(LIBXSM)"
16015 OLDXMENU_TARGET="really-oldXMenu"
16016 else
16017 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
16018 OLDXMENU_TARGET="really-lwlib"
16019 fi
16020
16021
16022 ## The X Menu stuff is present in the X10 distribution, but missing
16023 ## from X11. If we have X10, just use the installed library;
16024 ## otherwise, use our own copy.
16025 if test "${HAVE_X11}" = "yes" ; then
16026
16027 $as_echo "#define HAVE_X11 1" >>confdefs.h
16028
16029
16030 if test "$USE_X_TOOLKIT" = "none"; then
16031 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
16032 else
16033 OLDXMENU="\${lwlibdir}/liblw.a"
16034 fi
16035 LIBXMENU="\$(OLDXMENU)"
16036 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
16037 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
16038 else
16039 ## For a syntactically valid Makefile; not actually used for anything.
16040 ## See comments in src/Makefile.in.
16041 OLDXMENU=nothing
16042 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
16043 if test "${HAVE_X_WINDOWS}" = "yes"; then
16044 LIBXMENU="-lXMenu"
16045 else
16046 LIBXMENU=
16047 fi
16048 LIBX_OTHER=
16049 OLDXMENU_DEPS=
16050 fi
16051
16052 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
16053 OLDXMENU_TARGET=
16054 OLDXMENU=nothing
16055 LIBXMENU=
16056 OLDXMENU_DEPS=
16057 fi
16058
16059
16060
16061
16062
16063
16064
16065 if test "${HAVE_MENUS}" = "yes" ; then
16066
16067 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
16068
16069 fi
16070
16071 if test "${GNU_MALLOC}" = "yes" ; then
16072
16073 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
16074
16075 fi
16076
16077 RALLOC_OBJ=
16078 if test "${REL_ALLOC}" = "yes" ; then
16079
16080 $as_echo "#define REL_ALLOC 1" >>confdefs.h
16081
16082
16083 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
16084 fi
16085
16086
16087 if test "$opsys" = "cygwin"; then
16088 CYGWIN_OBJ="sheap.o cygw32.o"
16089 ## Cygwin differs because of its unexec().
16090 PRE_ALLOC_OBJ=
16091 POST_ALLOC_OBJ=lastfile.o
16092 else
16093 CYGWIN_OBJ=
16094 PRE_ALLOC_OBJ=lastfile.o
16095 POST_ALLOC_OBJ=
16096 fi
16097
16098
16099
16100
16101 # Configure gnulib. Although this does not affect CFLAGS or LIBS permanently.
16102 # it temporarily reverts them to their pre-pkg-config values,
16103 # because gnulib needs to work with both src (which uses the
16104 # pkg-config stuff) and lib-src (which does not). For example, gnulib
16105 # may need to determine whether LIB_CLOCK_GETTIME should contain -lrt,
16106 # and it therefore needs to run in an environment where LIBS does not
16107 # already contain -lrt merely because 'pkg-config --libs' printed '-lrt'
16108 # for some package unrelated to lib-src.
16109 SAVE_CFLAGS=$CFLAGS
16110 SAVE_LIBS=$LIBS
16111 CFLAGS=$pre_PKG_CONFIG_CFLAGS
16112 LIBS="$LIB_PTHREAD $pre_PKG_CONFIG_LIBS"
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124 LIBC_FATAL_STDERR_=1
16125 export LIBC_FATAL_STDERR_
16126
16127 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16128 # for constant arguments. Useless!
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16130 $as_echo_n "checking for working alloca.h... " >&6; }
16131 if test "${ac_cv_working_alloca_h+set}" = set; then :
16132 $as_echo_n "(cached) " >&6
16133 else
16134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16135 /* end confdefs.h. */
16136 #include <alloca.h>
16137 int
16138 main ()
16139 {
16140 char *p = (char *) alloca (2 * sizeof (int));
16141 if (p) return 0;
16142 ;
16143 return 0;
16144 }
16145 _ACEOF
16146 if ac_fn_c_try_link "$LINENO"; then :
16147 ac_cv_working_alloca_h=yes
16148 else
16149 ac_cv_working_alloca_h=no
16150 fi
16151 rm -f core conftest.err conftest.$ac_objext \
16152 conftest$ac_exeext conftest.$ac_ext
16153 fi
16154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16155 $as_echo "$ac_cv_working_alloca_h" >&6; }
16156 if test $ac_cv_working_alloca_h = yes; then
16157
16158 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16159
16160 fi
16161
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16163 $as_echo_n "checking for alloca... " >&6; }
16164 if test "${ac_cv_func_alloca_works+set}" = set; then :
16165 $as_echo_n "(cached) " >&6
16166 else
16167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16168 /* end confdefs.h. */
16169 #ifdef __GNUC__
16170 # define alloca __builtin_alloca
16171 #else
16172 # ifdef _MSC_VER
16173 # include <malloc.h>
16174 # define alloca _alloca
16175 # else
16176 # ifdef HAVE_ALLOCA_H
16177 # include <alloca.h>
16178 # else
16179 # ifdef _AIX
16180 #pragma alloca
16181 # else
16182 # ifndef alloca /* predefined by HP cc +Olibcalls */
16183 char *alloca ();
16184 # endif
16185 # endif
16186 # endif
16187 # endif
16188 #endif
16189
16190 int
16191 main ()
16192 {
16193 char *p = (char *) alloca (1);
16194 if (p) return 0;
16195 ;
16196 return 0;
16197 }
16198 _ACEOF
16199 if ac_fn_c_try_link "$LINENO"; then :
16200 ac_cv_func_alloca_works=yes
16201 else
16202 ac_cv_func_alloca_works=no
16203 fi
16204 rm -f core conftest.err conftest.$ac_objext \
16205 conftest$ac_exeext conftest.$ac_ext
16206 fi
16207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16208 $as_echo "$ac_cv_func_alloca_works" >&6; }
16209
16210 if test $ac_cv_func_alloca_works = yes; then
16211
16212 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16213
16214 else
16215 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16216 # that cause trouble. Some versions do not even contain alloca or
16217 # contain a buggy version. If you still want to use their alloca,
16218 # use ar to extract alloca.o from them instead of compiling alloca.c.
16219
16220
16221
16222
16223
16224 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16225
16226 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16227
16228
16229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
16230 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
16231 if test "${ac_cv_os_cray+set}" = set; then :
16232 $as_echo_n "(cached) " >&6
16233 else
16234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16235 /* end confdefs.h. */
16236 #if defined CRAY && ! defined CRAY2
16237 webecray
16238 #else
16239 wenotbecray
16240 #endif
16241
16242 _ACEOF
16243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16244 $EGREP "webecray" >/dev/null 2>&1; then :
16245 ac_cv_os_cray=yes
16246 else
16247 ac_cv_os_cray=no
16248 fi
16249 rm -f conftest*
16250
16251 fi
16252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16253 $as_echo "$ac_cv_os_cray" >&6; }
16254 if test $ac_cv_os_cray = yes; then
16255 for ac_func in _getb67 GETB67 getb67; do
16256 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16257 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16258 eval as_val=\$$as_ac_var
16259 if test "x$as_val" = x""yes; then :
16260
16261 cat >>confdefs.h <<_ACEOF
16262 #define CRAY_STACKSEG_END $ac_func
16263 _ACEOF
16264
16265 break
16266 fi
16267
16268 done
16269 fi
16270
16271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16272 $as_echo_n "checking stack direction for C alloca... " >&6; }
16273 if test "${ac_cv_c_stack_direction+set}" = set; then :
16274 $as_echo_n "(cached) " >&6
16275 else
16276 if test "$cross_compiling" = yes; then :
16277 ac_cv_c_stack_direction=0
16278 else
16279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16280 /* end confdefs.h. */
16281 $ac_includes_default
16282 int
16283 find_stack_direction (int *addr, int depth)
16284 {
16285 int dir, dummy = 0;
16286 if (! addr)
16287 addr = &dummy;
16288 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16289 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16290 return dir + dummy;
16291 }
16292
16293 int
16294 main (int argc, char **argv)
16295 {
16296 return find_stack_direction (0, argc + !argv + 20) < 0;
16297 }
16298 _ACEOF
16299 if ac_fn_c_try_run "$LINENO"; then :
16300 ac_cv_c_stack_direction=1
16301 else
16302 ac_cv_c_stack_direction=-1
16303 fi
16304 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16305 conftest.$ac_objext conftest.beam conftest.$ac_ext
16306 fi
16307
16308 fi
16309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16310 $as_echo "$ac_cv_c_stack_direction" >&6; }
16311 cat >>confdefs.h <<_ACEOF
16312 #define STACK_DIRECTION $ac_cv_c_stack_direction
16313 _ACEOF
16314
16315
16316 fi
16317
16318
16319
16320
16321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16322 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16323 if test "${ac_cv_c_bigendian+set}" = set; then :
16324 $as_echo_n "(cached) " >&6
16325 else
16326 ac_cv_c_bigendian=unknown
16327 # See if we're dealing with a universal compiler.
16328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16329 /* end confdefs.h. */
16330 #ifndef __APPLE_CC__
16331 not a universal capable compiler
16332 #endif
16333 typedef int dummy;
16334
16335 _ACEOF
16336 if ac_fn_c_try_compile "$LINENO"; then :
16337
16338 # Check for potential -arch flags. It is not universal unless
16339 # there are at least two -arch flags with different values.
16340 ac_arch=
16341 ac_prev=
16342 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16343 if test -n "$ac_prev"; then
16344 case $ac_word in
16345 i?86 | x86_64 | ppc | ppc64)
16346 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16347 ac_arch=$ac_word
16348 else
16349 ac_cv_c_bigendian=universal
16350 break
16351 fi
16352 ;;
16353 esac
16354 ac_prev=
16355 elif test "x$ac_word" = "x-arch"; then
16356 ac_prev=arch
16357 fi
16358 done
16359 fi
16360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16361 if test $ac_cv_c_bigendian = unknown; then
16362 # See if sys/param.h defines the BYTE_ORDER macro.
16363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16364 /* end confdefs.h. */
16365 #include <sys/types.h>
16366 #include <sys/param.h>
16367
16368 int
16369 main ()
16370 {
16371 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16372 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16373 && LITTLE_ENDIAN)
16374 bogus endian macros
16375 #endif
16376
16377 ;
16378 return 0;
16379 }
16380 _ACEOF
16381 if ac_fn_c_try_compile "$LINENO"; then :
16382 # It does; now see whether it defined to BIG_ENDIAN or not.
16383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16384 /* end confdefs.h. */
16385 #include <sys/types.h>
16386 #include <sys/param.h>
16387
16388 int
16389 main ()
16390 {
16391 #if BYTE_ORDER != BIG_ENDIAN
16392 not big endian
16393 #endif
16394
16395 ;
16396 return 0;
16397 }
16398 _ACEOF
16399 if ac_fn_c_try_compile "$LINENO"; then :
16400 ac_cv_c_bigendian=yes
16401 else
16402 ac_cv_c_bigendian=no
16403 fi
16404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16405 fi
16406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16407 fi
16408 if test $ac_cv_c_bigendian = unknown; then
16409 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16411 /* end confdefs.h. */
16412 #include <limits.h>
16413
16414 int
16415 main ()
16416 {
16417 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16418 bogus endian macros
16419 #endif
16420
16421 ;
16422 return 0;
16423 }
16424 _ACEOF
16425 if ac_fn_c_try_compile "$LINENO"; then :
16426 # It does; now see whether it defined to _BIG_ENDIAN or not.
16427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16428 /* end confdefs.h. */
16429 #include <limits.h>
16430
16431 int
16432 main ()
16433 {
16434 #ifndef _BIG_ENDIAN
16435 not big endian
16436 #endif
16437
16438 ;
16439 return 0;
16440 }
16441 _ACEOF
16442 if ac_fn_c_try_compile "$LINENO"; then :
16443 ac_cv_c_bigendian=yes
16444 else
16445 ac_cv_c_bigendian=no
16446 fi
16447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16448 fi
16449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16450 fi
16451 if test $ac_cv_c_bigendian = unknown; then
16452 # Compile a test program.
16453 if test "$cross_compiling" = yes; then :
16454 # Try to guess by grepping values from an object file.
16455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16456 /* end confdefs.h. */
16457 short int ascii_mm[] =
16458 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16459 short int ascii_ii[] =
16460 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16461 int use_ascii (int i) {
16462 return ascii_mm[i] + ascii_ii[i];
16463 }
16464 short int ebcdic_ii[] =
16465 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16466 short int ebcdic_mm[] =
16467 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16468 int use_ebcdic (int i) {
16469 return ebcdic_mm[i] + ebcdic_ii[i];
16470 }
16471 extern int foo;
16472
16473 int
16474 main ()
16475 {
16476 return use_ascii (foo) == use_ebcdic (foo);
16477 ;
16478 return 0;
16479 }
16480 _ACEOF
16481 if ac_fn_c_try_compile "$LINENO"; then :
16482 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16483 ac_cv_c_bigendian=yes
16484 fi
16485 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16486 if test "$ac_cv_c_bigendian" = unknown; then
16487 ac_cv_c_bigendian=no
16488 else
16489 # finding both strings is unlikely to happen, but who knows?
16490 ac_cv_c_bigendian=unknown
16491 fi
16492 fi
16493 fi
16494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16495 else
16496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16497 /* end confdefs.h. */
16498 $ac_includes_default
16499 int
16500 main ()
16501 {
16502
16503 /* Are we little or big endian? From Harbison&Steele. */
16504 union
16505 {
16506 long int l;
16507 char c[sizeof (long int)];
16508 } u;
16509 u.l = 1;
16510 return u.c[sizeof (long int) - 1] == 1;
16511
16512 ;
16513 return 0;
16514 }
16515 _ACEOF
16516 if ac_fn_c_try_run "$LINENO"; then :
16517 ac_cv_c_bigendian=no
16518 else
16519 ac_cv_c_bigendian=yes
16520 fi
16521 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16522 conftest.$ac_objext conftest.beam conftest.$ac_ext
16523 fi
16524
16525 fi
16526 fi
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16528 $as_echo "$ac_cv_c_bigendian" >&6; }
16529 case $ac_cv_c_bigendian in #(
16530 yes)
16531 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16532 ;; #(
16533 no)
16534 ;; #(
16535 universal)
16536
16537 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16538
16539 ;; #(
16540 *)
16541 as_fn_error "unknown endianness
16542 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16543 esac
16544
16545
16546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16547 $as_echo_n "checking for inline... " >&6; }
16548 if test "${ac_cv_c_inline+set}" = set; then :
16549 $as_echo_n "(cached) " >&6
16550 else
16551 ac_cv_c_inline=no
16552 for ac_kw in inline __inline__ __inline; do
16553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16554 /* end confdefs.h. */
16555 #ifndef __cplusplus
16556 typedef int foo_t;
16557 static $ac_kw foo_t static_foo () {return 0; }
16558 $ac_kw foo_t foo () {return 0; }
16559 #endif
16560
16561 _ACEOF
16562 if ac_fn_c_try_compile "$LINENO"; then :
16563 ac_cv_c_inline=$ac_kw
16564 fi
16565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16566 test "$ac_cv_c_inline" != no && break
16567 done
16568
16569 fi
16570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16571 $as_echo "$ac_cv_c_inline" >&6; }
16572
16573 case $ac_cv_c_inline in
16574 inline | yes) ;;
16575 *)
16576 case $ac_cv_c_inline in
16577 no) ac_val=;;
16578 *) ac_val=$ac_cv_c_inline;;
16579 esac
16580 cat >>confdefs.h <<_ACEOF
16581 #ifndef __cplusplus
16582 #define inline $ac_val
16583 #endif
16584 _ACEOF
16585 ;;
16586 esac
16587
16588
16589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
16590 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
16591 if test "${gl_cv_func_c99_strtold+set}" = set; then :
16592 $as_echo_n "(cached) " >&6
16593 else
16594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16595 /* end confdefs.h. */
16596 /* On HP-UX before 11.23, strtold returns a struct instead of
16597 long double. Reject implementations like that, by requiring
16598 compatibility with the C99 prototype. */
16599 #include <stdlib.h>
16600 static long double (*p) (char const *, char **) = strtold;
16601 static long double
16602 test (char const *nptr, char **endptr)
16603 {
16604 long double r;
16605 r = strtold (nptr, endptr);
16606 return r;
16607 }
16608 int
16609 main ()
16610 {
16611 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
16612 ;
16613 return 0;
16614 }
16615 _ACEOF
16616 if ac_fn_c_try_link "$LINENO"; then :
16617 gl_cv_func_c99_strtold=yes
16618 else
16619 gl_cv_func_c99_strtold=no
16620 fi
16621 rm -f core conftest.err conftest.$ac_objext \
16622 conftest$ac_exeext conftest.$ac_ext
16623 fi
16624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
16625 $as_echo "$gl_cv_func_c99_strtold" >&6; }
16626 if test $gl_cv_func_c99_strtold = yes; then
16627
16628 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
16629
16630 fi
16631
16632
16633 GNULIB_CHDIR=0;
16634 GNULIB_CHOWN=0;
16635 GNULIB_CLOSE=0;
16636 GNULIB_DUP=0;
16637 GNULIB_DUP2=0;
16638 GNULIB_DUP3=0;
16639 GNULIB_ENVIRON=0;
16640 GNULIB_EUIDACCESS=0;
16641 GNULIB_FACCESSAT=0;
16642 GNULIB_FCHDIR=0;
16643 GNULIB_FCHOWNAT=0;
16644 GNULIB_FDATASYNC=0;
16645 GNULIB_FSYNC=0;
16646 GNULIB_FTRUNCATE=0;
16647 GNULIB_GETCWD=0;
16648 GNULIB_GETDOMAINNAME=0;
16649 GNULIB_GETDTABLESIZE=0;
16650 GNULIB_GETGROUPS=0;
16651 GNULIB_GETHOSTNAME=0;
16652 GNULIB_GETLOGIN=0;
16653 GNULIB_GETLOGIN_R=0;
16654 GNULIB_GETPAGESIZE=0;
16655 GNULIB_GETUSERSHELL=0;
16656 GNULIB_GROUP_MEMBER=0;
16657 GNULIB_ISATTY=0;
16658 GNULIB_LCHOWN=0;
16659 GNULIB_LINK=0;
16660 GNULIB_LINKAT=0;
16661 GNULIB_LSEEK=0;
16662 GNULIB_PIPE=0;
16663 GNULIB_PIPE2=0;
16664 GNULIB_PREAD=0;
16665 GNULIB_PWRITE=0;
16666 GNULIB_READ=0;
16667 GNULIB_READLINK=0;
16668 GNULIB_READLINKAT=0;
16669 GNULIB_RMDIR=0;
16670 GNULIB_SETHOSTNAME=0;
16671 GNULIB_SLEEP=0;
16672 GNULIB_SYMLINK=0;
16673 GNULIB_SYMLINKAT=0;
16674 GNULIB_TTYNAME_R=0;
16675 GNULIB_UNISTD_H_NONBLOCKING=0;
16676 GNULIB_UNISTD_H_SIGPIPE=0;
16677 GNULIB_UNLINK=0;
16678 GNULIB_UNLINKAT=0;
16679 GNULIB_USLEEP=0;
16680 GNULIB_WRITE=0;
16681 HAVE_CHOWN=1;
16682 HAVE_DUP2=1;
16683 HAVE_DUP3=1;
16684 HAVE_EUIDACCESS=1;
16685 HAVE_FACCESSAT=1;
16686 HAVE_FCHDIR=1;
16687 HAVE_FCHOWNAT=1;
16688 HAVE_FDATASYNC=1;
16689 HAVE_FSYNC=1;
16690 HAVE_FTRUNCATE=1;
16691 HAVE_GETDTABLESIZE=1;
16692 HAVE_GETGROUPS=1;
16693 HAVE_GETHOSTNAME=1;
16694 HAVE_GETLOGIN=1;
16695 HAVE_GETPAGESIZE=1;
16696 HAVE_GROUP_MEMBER=1;
16697 HAVE_LCHOWN=1;
16698 HAVE_LINK=1;
16699 HAVE_LINKAT=1;
16700 HAVE_PIPE=1;
16701 HAVE_PIPE2=1;
16702 HAVE_PREAD=1;
16703 HAVE_PWRITE=1;
16704 HAVE_READLINK=1;
16705 HAVE_READLINKAT=1;
16706 HAVE_SETHOSTNAME=1;
16707 HAVE_SLEEP=1;
16708 HAVE_SYMLINK=1;
16709 HAVE_SYMLINKAT=1;
16710 HAVE_UNLINKAT=1;
16711 HAVE_USLEEP=1;
16712 HAVE_DECL_ENVIRON=1;
16713 HAVE_DECL_FCHDIR=1;
16714 HAVE_DECL_FDATASYNC=1;
16715 HAVE_DECL_GETDOMAINNAME=1;
16716 HAVE_DECL_GETLOGIN_R=1;
16717 HAVE_DECL_GETPAGESIZE=1;
16718 HAVE_DECL_GETUSERSHELL=1;
16719 HAVE_DECL_SETHOSTNAME=1;
16720 HAVE_DECL_TTYNAME_R=1;
16721 HAVE_OS_H=0;
16722 HAVE_SYS_PARAM_H=0;
16723 REPLACE_CHOWN=0;
16724 REPLACE_CLOSE=0;
16725 REPLACE_DUP=0;
16726 REPLACE_DUP2=0;
16727 REPLACE_FCHOWNAT=0;
16728 REPLACE_FTRUNCATE=0;
16729 REPLACE_GETCWD=0;
16730 REPLACE_GETDOMAINNAME=0;
16731 REPLACE_GETLOGIN_R=0;
16732 REPLACE_GETGROUPS=0;
16733 REPLACE_GETPAGESIZE=0;
16734 REPLACE_ISATTY=0;
16735 REPLACE_LCHOWN=0;
16736 REPLACE_LINK=0;
16737 REPLACE_LINKAT=0;
16738 REPLACE_LSEEK=0;
16739 REPLACE_PREAD=0;
16740 REPLACE_PWRITE=0;
16741 REPLACE_READ=0;
16742 REPLACE_READLINK=0;
16743 REPLACE_RMDIR=0;
16744 REPLACE_SLEEP=0;
16745 REPLACE_SYMLINK=0;
16746 REPLACE_TTYNAME_R=0;
16747 REPLACE_UNLINK=0;
16748 REPLACE_UNLINKAT=0;
16749 REPLACE_USLEEP=0;
16750 REPLACE_WRITE=0;
16751 UNISTD_H_HAVE_WINSOCK2_H=0;
16752 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
16763 $as_echo_n "checking if environ is properly declared... " >&6; }
16764 if test "${gt_cv_var_environ_declaration+set}" = set; then :
16765 $as_echo_n "(cached) " >&6
16766 else
16767
16768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16769 /* end confdefs.h. */
16770 #if HAVE_UNISTD_H
16771 #include <unistd.h>
16772 #endif
16773 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
16774 #include <stdlib.h>
16775
16776 extern struct { int foo; } environ;
16777 int
16778 main ()
16779 {
16780 environ.foo = 1;
16781 ;
16782 return 0;
16783 }
16784 _ACEOF
16785 if ac_fn_c_try_compile "$LINENO"; then :
16786 gt_cv_var_environ_declaration=no
16787 else
16788 gt_cv_var_environ_declaration=yes
16789 fi
16790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16791 fi
16792
16793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
16794 $as_echo "$gt_cv_var_environ_declaration" >&6; }
16795 if test $gt_cv_var_environ_declaration = yes; then
16796
16797 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
16798
16799 fi
16800
16801
16802 if test $gt_cv_var_environ_declaration != yes; then
16803 HAVE_DECL_ENVIRON=0
16804 fi
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815 GNULIB_FCNTL=0;
16816 GNULIB_NONBLOCKING=0;
16817 GNULIB_OPEN=0;
16818 GNULIB_OPENAT=0;
16819 HAVE_FCNTL=1;
16820 HAVE_OPENAT=1;
16821 REPLACE_FCNTL=0;
16822 REPLACE_OPEN=0;
16823 REPLACE_OPENAT=0;
16824
16825
16826
16827
16828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
16829 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
16830 if test "${gl_cv_have_include_next+set}" = set; then :
16831 $as_echo_n "(cached) " >&6
16832 else
16833 rm -rf conftestd1a conftestd1b conftestd2
16834 mkdir conftestd1a conftestd1b conftestd2
16835 cat <<EOF > conftestd1a/conftest.h
16836 #define DEFINED_IN_CONFTESTD1
16837 #include_next <conftest.h>
16838 #ifdef DEFINED_IN_CONFTESTD2
16839 int foo;
16840 #else
16841 #error "include_next doesn't work"
16842 #endif
16843 EOF
16844 cat <<EOF > conftestd1b/conftest.h
16845 #define DEFINED_IN_CONFTESTD1
16846 #include <stdio.h>
16847 #include_next <conftest.h>
16848 #ifdef DEFINED_IN_CONFTESTD2
16849 int foo;
16850 #else
16851 #error "include_next doesn't work"
16852 #endif
16853 EOF
16854 cat <<EOF > conftestd2/conftest.h
16855 #ifndef DEFINED_IN_CONFTESTD1
16856 #error "include_next test doesn't work"
16857 #endif
16858 #define DEFINED_IN_CONFTESTD2
16859 EOF
16860 gl_save_CPPFLAGS="$CPPFLAGS"
16861 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
16862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16863 /* end confdefs.h. */
16864 #include <conftest.h>
16865 _ACEOF
16866 if ac_fn_c_try_compile "$LINENO"; then :
16867 gl_cv_have_include_next=yes
16868 else
16869 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
16870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16871 /* end confdefs.h. */
16872 #include <conftest.h>
16873 _ACEOF
16874 if ac_fn_c_try_compile "$LINENO"; then :
16875 gl_cv_have_include_next=buggy
16876 else
16877 gl_cv_have_include_next=no
16878 fi
16879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16880
16881 fi
16882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16883 CPPFLAGS="$gl_save_CPPFLAGS"
16884 rm -rf conftestd1a conftestd1b conftestd2
16885
16886 fi
16887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
16888 $as_echo "$gl_cv_have_include_next" >&6; }
16889 PRAGMA_SYSTEM_HEADER=
16890 if test $gl_cv_have_include_next = yes; then
16891 INCLUDE_NEXT=include_next
16892 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16893 if test -n "$GCC"; then
16894 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
16895 fi
16896 else
16897 if test $gl_cv_have_include_next = buggy; then
16898 INCLUDE_NEXT=include
16899 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16900 else
16901 INCLUDE_NEXT=include
16902 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
16903 fi
16904 fi
16905
16906
16907
16908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
16909 $as_echo_n "checking whether system header files limit the line length... " >&6; }
16910 if test "${gl_cv_pragma_columns+set}" = set; then :
16911 $as_echo_n "(cached) " >&6
16912 else
16913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16914 /* end confdefs.h. */
16915
16916 #ifdef __TANDEM
16917 choke me
16918 #endif
16919
16920 _ACEOF
16921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16922 $EGREP "choke me" >/dev/null 2>&1; then :
16923 gl_cv_pragma_columns=yes
16924 else
16925 gl_cv_pragma_columns=no
16926 fi
16927 rm -f conftest*
16928
16929
16930 fi
16931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
16932 $as_echo "$gl_cv_pragma_columns" >&6; }
16933 if test $gl_cv_pragma_columns = yes; then
16934 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
16935 else
16936 PRAGMA_COLUMNS=
16937 fi
16938
16939
16940 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
16941 if test "x$ac_cv_type_mode_t" = x""yes; then :
16942
16943 else
16944
16945 cat >>confdefs.h <<_ACEOF
16946 #define mode_t int
16947 _ACEOF
16948
16949 fi
16950
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
16952 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
16953 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
16954 $as_echo_n "(cached) " >&6
16955 else
16956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16957 /* end confdefs.h. */
16958
16959 #include <sys/types.h>
16960 #include <sys/stat.h>
16961 int
16962 main ()
16963 {
16964 struct stat s; s.st_dm_mode;
16965 ;
16966 return 0;
16967 }
16968 _ACEOF
16969 if ac_fn_c_try_compile "$LINENO"; then :
16970 ac_cv_struct_st_dm_mode=yes
16971 else
16972 ac_cv_struct_st_dm_mode=no
16973 fi
16974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16975 fi
16976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
16977 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
16978
16979 if test $ac_cv_struct_st_dm_mode = yes; then
16980
16981 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
16982
16983 fi
16984
16985
16986 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
16987 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
16988 ac_have_decl=1
16989 else
16990 ac_have_decl=0
16991 fi
16992
16993 cat >>confdefs.h <<_ACEOF
16994 #define HAVE_DECL_STRMODE $ac_have_decl
16995 _ACEOF
16996
16997
16998
16999
17000
17001
17002 GNULIB__EXIT=0;
17003 GNULIB_ATOLL=0;
17004 GNULIB_CALLOC_POSIX=0;
17005 GNULIB_CANONICALIZE_FILE_NAME=0;
17006 GNULIB_GETLOADAVG=0;
17007 GNULIB_GETSUBOPT=0;
17008 GNULIB_GRANTPT=0;
17009 GNULIB_MALLOC_POSIX=0;
17010 GNULIB_MBTOWC=0;
17011 GNULIB_MKDTEMP=0;
17012 GNULIB_MKOSTEMP=0;
17013 GNULIB_MKOSTEMPS=0;
17014 GNULIB_MKSTEMP=0;
17015 GNULIB_MKSTEMPS=0;
17016 GNULIB_POSIX_OPENPT=0;
17017 GNULIB_PTSNAME=0;
17018 GNULIB_PTSNAME_R=0;
17019 GNULIB_PUTENV=0;
17020 GNULIB_RANDOM=0;
17021 GNULIB_RANDOM_R=0;
17022 GNULIB_REALLOC_POSIX=0;
17023 GNULIB_REALPATH=0;
17024 GNULIB_RPMATCH=0;
17025 GNULIB_SETENV=0;
17026 GNULIB_STRTOD=0;
17027 GNULIB_STRTOLL=0;
17028 GNULIB_STRTOULL=0;
17029 GNULIB_SYSTEM_POSIX=0;
17030 GNULIB_UNLOCKPT=0;
17031 GNULIB_UNSETENV=0;
17032 GNULIB_WCTOMB=0;
17033 HAVE__EXIT=1;
17034 HAVE_ATOLL=1;
17035 HAVE_CANONICALIZE_FILE_NAME=1;
17036 HAVE_DECL_GETLOADAVG=1;
17037 HAVE_GETSUBOPT=1;
17038 HAVE_GRANTPT=1;
17039 HAVE_MKDTEMP=1;
17040 HAVE_MKOSTEMP=1;
17041 HAVE_MKOSTEMPS=1;
17042 HAVE_MKSTEMP=1;
17043 HAVE_MKSTEMPS=1;
17044 HAVE_POSIX_OPENPT=1;
17045 HAVE_PTSNAME=1;
17046 HAVE_PTSNAME_R=1;
17047 HAVE_RANDOM=1;
17048 HAVE_RANDOM_H=1;
17049 HAVE_RANDOM_R=1;
17050 HAVE_REALPATH=1;
17051 HAVE_RPMATCH=1;
17052 HAVE_SETENV=1;
17053 HAVE_DECL_SETENV=1;
17054 HAVE_STRTOD=1;
17055 HAVE_STRTOLL=1;
17056 HAVE_STRTOULL=1;
17057 HAVE_STRUCT_RANDOM_DATA=1;
17058 HAVE_SYS_LOADAVG_H=0;
17059 HAVE_UNLOCKPT=1;
17060 HAVE_DECL_UNSETENV=1;
17061 REPLACE_CALLOC=0;
17062 REPLACE_CANONICALIZE_FILE_NAME=0;
17063 REPLACE_MALLOC=0;
17064 REPLACE_MBTOWC=0;
17065 REPLACE_MKSTEMP=0;
17066 REPLACE_PTSNAME=0;
17067 REPLACE_PTSNAME_R=0;
17068 REPLACE_PUTENV=0;
17069 REPLACE_RANDOM_R=0;
17070 REPLACE_REALLOC=0;
17071 REPLACE_REALPATH=0;
17072 REPLACE_SETENV=0;
17073 REPLACE_STRTOD=0;
17074 REPLACE_UNSETENV=0;
17075 REPLACE_WCTOMB=0;
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092 if test $gl_cv_have_include_next = yes; then
17093 gl_cv_next_getopt_h='<'getopt.h'>'
17094 else
17095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
17096 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
17097 if test "${gl_cv_next_getopt_h+set}" = set; then :
17098 $as_echo_n "(cached) " >&6
17099 else
17100
17101 if test $ac_cv_header_getopt_h = yes; then
17102
17103
17104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17105 /* end confdefs.h. */
17106 #include <getopt.h>
17107
17108 _ACEOF
17109 case "$host_os" in
17110 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17111 *) gl_absname_cpp="$ac_cpp" ;;
17112 esac
17113
17114 case "$host_os" in
17115 mingw*)
17116 gl_dirsep_regex='[/\\]'
17117 ;;
17118 *)
17119 gl_dirsep_regex='\/'
17120 ;;
17121 esac
17122 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17123
17124 gl_header_literal_regex=`echo 'getopt.h' \
17125 | sed -e "$gl_make_literal_regex_sed"`
17126 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17127 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17128 s|^/[^/]|//&|
17129 p
17130 q
17131 }'
17132 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17133 sed -n "$gl_absolute_header_sed"`'"'
17134 else
17135 gl_cv_next_getopt_h='<'getopt.h'>'
17136 fi
17137
17138
17139 fi
17140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
17141 $as_echo "$gl_cv_next_getopt_h" >&6; }
17142 fi
17143 NEXT_GETOPT_H=$gl_cv_next_getopt_h
17144
17145 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17146 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17147 gl_next_as_first_directive='<'getopt.h'>'
17148 else
17149 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17150 gl_next_as_first_directive=$gl_cv_next_getopt_h
17151 fi
17152 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
17153
17154
17155
17156
17157 if test $ac_cv_header_getopt_h = yes; then
17158 HAVE_GETOPT_H=1
17159 else
17160 HAVE_GETOPT_H=0
17161 fi
17162
17163
17164 gl_replace_getopt=
17165
17166 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17167 for ac_header in getopt.h
17168 do :
17169 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
17170 if test "x$ac_cv_header_getopt_h" = x""yes; then :
17171 cat >>confdefs.h <<_ACEOF
17172 #define HAVE_GETOPT_H 1
17173 _ACEOF
17174
17175 else
17176 gl_replace_getopt=yes
17177 fi
17178
17179 done
17180
17181 fi
17182
17183 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17184 for ac_func in getopt_long_only
17185 do :
17186 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
17187 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
17188 cat >>confdefs.h <<_ACEOF
17189 #define HAVE_GETOPT_LONG_ONLY 1
17190 _ACEOF
17191
17192 else
17193 gl_replace_getopt=yes
17194 fi
17195 done
17196
17197 fi
17198
17199 if test -z "$gl_replace_getopt"; then
17200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
17201 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
17202 if test "${gl_cv_func_getopt_posix+set}" = set; then :
17203 $as_echo_n "(cached) " >&6
17204 else
17205
17206 if test $cross_compiling = no; then
17207 if test "$cross_compiling" = yes; then :
17208 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17209 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17210 as_fn_error "cannot run test program while cross compiling
17211 See \`config.log' for more details." "$LINENO" 5; }
17212 else
17213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17214 /* end confdefs.h. */
17215
17216 #include <unistd.h>
17217 #include <stdlib.h>
17218 #include <string.h>
17219
17220 int
17221 main ()
17222 {
17223 static char program[] = "program";
17224 static char a[] = "-a";
17225 static char foo[] = "foo";
17226 static char bar[] = "bar";
17227 char *argv[] = { program, a, foo, bar, NULL };
17228 int c;
17229
17230 c = getopt (4, argv, "ab");
17231 if (!(c == 'a'))
17232 return 1;
17233 c = getopt (4, argv, "ab");
17234 if (!(c == -1))
17235 return 2;
17236 if (!(optind == 2))
17237 return 3;
17238 return 0;
17239 }
17240
17241 _ACEOF
17242 if ac_fn_c_try_run "$LINENO"; then :
17243 gl_cv_func_getopt_posix=maybe
17244 else
17245 gl_cv_func_getopt_posix=no
17246 fi
17247 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17248 conftest.$ac_objext conftest.beam conftest.$ac_ext
17249 fi
17250
17251 if test $gl_cv_func_getopt_posix = maybe; then
17252 if test "$cross_compiling" = yes; then :
17253 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17254 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17255 as_fn_error "cannot run test program while cross compiling
17256 See \`config.log' for more details." "$LINENO" 5; }
17257 else
17258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17259 /* end confdefs.h. */
17260
17261 #include <unistd.h>
17262 #include <stdlib.h>
17263 #include <string.h>
17264
17265 int
17266 main ()
17267 {
17268 static char program[] = "program";
17269 static char donald[] = "donald";
17270 static char p[] = "-p";
17271 static char billy[] = "billy";
17272 static char duck[] = "duck";
17273 static char a[] = "-a";
17274 static char bar[] = "bar";
17275 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
17276 int c;
17277
17278 c = getopt (7, argv, "+abp:q:");
17279 if (!(c == -1))
17280 return 4;
17281 if (!(strcmp (argv[0], "program") == 0))
17282 return 5;
17283 if (!(strcmp (argv[1], "donald") == 0))
17284 return 6;
17285 if (!(strcmp (argv[2], "-p") == 0))
17286 return 7;
17287 if (!(strcmp (argv[3], "billy") == 0))
17288 return 8;
17289 if (!(strcmp (argv[4], "duck") == 0))
17290 return 9;
17291 if (!(strcmp (argv[5], "-a") == 0))
17292 return 10;
17293 if (!(strcmp (argv[6], "bar") == 0))
17294 return 11;
17295 if (!(optind == 1))
17296 return 12;
17297 return 0;
17298 }
17299
17300 _ACEOF
17301 if ac_fn_c_try_run "$LINENO"; then :
17302 gl_cv_func_getopt_posix=maybe
17303 else
17304 gl_cv_func_getopt_posix=no
17305 fi
17306 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17307 conftest.$ac_objext conftest.beam conftest.$ac_ext
17308 fi
17309
17310 fi
17311 if test $gl_cv_func_getopt_posix = maybe; then
17312 if test "$cross_compiling" = yes; then :
17313 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17315 as_fn_error "cannot run test program while cross compiling
17316 See \`config.log' for more details." "$LINENO" 5; }
17317 else
17318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17319 /* end confdefs.h. */
17320
17321 #include <unistd.h>
17322 #include <stdlib.h>
17323 #include <string.h>
17324
17325 int
17326 main ()
17327 {
17328 static char program[] = "program";
17329 static char ab[] = "-ab";
17330 char *argv[3] = { program, ab, NULL };
17331 if (getopt (2, argv, "ab:") != 'a')
17332 return 13;
17333 if (getopt (2, argv, "ab:") != '?')
17334 return 14;
17335 if (optopt != 'b')
17336 return 15;
17337 if (optind != 2)
17338 return 16;
17339 return 0;
17340 }
17341
17342 _ACEOF
17343 if ac_fn_c_try_run "$LINENO"; then :
17344 gl_cv_func_getopt_posix=yes
17345 else
17346 gl_cv_func_getopt_posix=no
17347 fi
17348 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17349 conftest.$ac_objext conftest.beam conftest.$ac_ext
17350 fi
17351
17352 fi
17353 else
17354 case "$host_os" in
17355 darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";;
17356 *) gl_cv_func_getopt_posix="guessing yes";;
17357 esac
17358 fi
17359
17360 fi
17361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
17362 $as_echo "$gl_cv_func_getopt_posix" >&6; }
17363 case "$gl_cv_func_getopt_posix" in
17364 *no) gl_replace_getopt=yes ;;
17365 esac
17366 fi
17367
17368 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
17370 $as_echo_n "checking for working GNU getopt function... " >&6; }
17371 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
17372 $as_echo_n "(cached) " >&6
17373 else
17374 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
17375 # optstring is necessary for programs like m4 that have POSIX-mandated
17376 # semantics for supporting options interspersed with files.
17377 # Also, since getopt_long is a GNU extension, we require optind=0.
17378 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
17379 # so take care to revert to the correct (non-)export state.
17380 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
17381 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
17382 xx) gl_had_POSIXLY_CORRECT=exported ;;
17383 x) gl_had_POSIXLY_CORRECT=yes ;;
17384 *) gl_had_POSIXLY_CORRECT= ;;
17385 esac
17386 POSIXLY_CORRECT=1
17387 export POSIXLY_CORRECT
17388 if test "$cross_compiling" = yes; then :
17389 gl_cv_func_getopt_gnu="guessing no"
17390
17391 else
17392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17393 /* end confdefs.h. */
17394 #include <getopt.h>
17395 #include <stddef.h>
17396 #include <string.h>
17397
17398 #include <stdlib.h>
17399 #if defined __MACH__ && defined __APPLE__
17400 /* Avoid a crash on Mac OS X. */
17401 #include <mach/mach.h>
17402 #include <mach/mach_error.h>
17403 #include <mach/thread_status.h>
17404 #include <mach/exception.h>
17405 #include <mach/task.h>
17406 #include <pthread.h>
17407 /* The exception port on which our thread listens. */
17408 static mach_port_t our_exception_port;
17409 /* The main function of the thread listening for exceptions of type
17410 EXC_BAD_ACCESS. */
17411 static void *
17412 mach_exception_thread (void *arg)
17413 {
17414 /* Buffer for a message to be received. */
17415 struct {
17416 mach_msg_header_t head;
17417 mach_msg_body_t msgh_body;
17418 char data[1024];
17419 } msg;
17420 mach_msg_return_t retval;
17421 /* Wait for a message on the exception port. */
17422 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
17423 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
17424 if (retval != MACH_MSG_SUCCESS)
17425 abort ();
17426 exit (1);
17427 }
17428 static void
17429 nocrash_init (void)
17430 {
17431 mach_port_t self = mach_task_self ();
17432 /* Allocate a port on which the thread shall listen for exceptions. */
17433 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
17434 == KERN_SUCCESS) {
17435 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
17436 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
17437 MACH_MSG_TYPE_MAKE_SEND)
17438 == KERN_SUCCESS) {
17439 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
17440 for us. */
17441 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
17442 /* Create the thread listening on the exception port. */
17443 pthread_attr_t attr;
17444 pthread_t thread;
17445 if (pthread_attr_init (&attr) == 0
17446 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
17447 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
17448 pthread_attr_destroy (&attr);
17449 /* Replace the exception port info for these exceptions with our own.
17450 Note that we replace the exception port for the entire task, not only
17451 for a particular thread. This has the effect that when our exception
17452 port gets the message, the thread specific exception port has already
17453 been asked, and we don't need to bother about it.
17454 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
17455 task_set_exception_ports (self, mask, our_exception_port,
17456 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
17457 }
17458 }
17459 }
17460 }
17461 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17462 /* Avoid a crash on native Windows. */
17463 #define WIN32_LEAN_AND_MEAN
17464 #include <windows.h>
17465 #include <winerror.h>
17466 static LONG WINAPI
17467 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
17468 {
17469 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
17470 {
17471 case EXCEPTION_ACCESS_VIOLATION:
17472 case EXCEPTION_IN_PAGE_ERROR:
17473 case EXCEPTION_STACK_OVERFLOW:
17474 case EXCEPTION_GUARD_PAGE:
17475 case EXCEPTION_PRIV_INSTRUCTION:
17476 case EXCEPTION_ILLEGAL_INSTRUCTION:
17477 case EXCEPTION_DATATYPE_MISALIGNMENT:
17478 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
17479 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
17480 exit (1);
17481 }
17482 return EXCEPTION_CONTINUE_SEARCH;
17483 }
17484 static void
17485 nocrash_init (void)
17486 {
17487 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
17488 }
17489 #else
17490 /* Avoid a crash on POSIX systems. */
17491 #include <signal.h>
17492 /* A POSIX signal handler. */
17493 static void
17494 exception_handler (int sig)
17495 {
17496 exit (1);
17497 }
17498 static void
17499 nocrash_init (void)
17500 {
17501 #ifdef SIGSEGV
17502 signal (SIGSEGV, exception_handler);
17503 #endif
17504 #ifdef SIGBUS
17505 signal (SIGBUS, exception_handler);
17506 #endif
17507 }
17508 #endif
17509
17510
17511 int
17512 main ()
17513 {
17514
17515 int result = 0;
17516
17517 nocrash_init();
17518
17519 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
17520 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
17521 OSF/1 5.1, Solaris 10. */
17522 {
17523 static char conftest[] = "conftest";
17524 static char plus[] = "-+";
17525 char *argv[3] = { conftest, plus, NULL };
17526 opterr = 0;
17527 if (getopt (2, argv, "+a") != '?')
17528 result |= 1;
17529 }
17530 /* This code succeeds on glibc 2.8, mingw,
17531 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
17532 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
17533 {
17534 static char program[] = "program";
17535 static char p[] = "-p";
17536 static char foo[] = "foo";
17537 static char bar[] = "bar";
17538 char *argv[] = { program, p, foo, bar, NULL };
17539
17540 optind = 1;
17541 if (getopt (4, argv, "p::") != 'p')
17542 result |= 2;
17543 else if (optarg != NULL)
17544 result |= 4;
17545 else if (getopt (4, argv, "p::") != -1)
17546 result |= 6;
17547 else if (optind != 2)
17548 result |= 8;
17549 }
17550 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
17551 {
17552 static char program[] = "program";
17553 static char foo[] = "foo";
17554 static char p[] = "-p";
17555 char *argv[] = { program, foo, p, NULL };
17556 optind = 0;
17557 if (getopt (3, argv, "-p") != 1)
17558 result |= 16;
17559 else if (getopt (3, argv, "-p") != 'p')
17560 result |= 16;
17561 }
17562 /* This code fails on glibc 2.11. */
17563 {
17564 static char program[] = "program";
17565 static char b[] = "-b";
17566 static char a[] = "-a";
17567 char *argv[] = { program, b, a, NULL };
17568 optind = opterr = 0;
17569 if (getopt (3, argv, "+:a:b") != 'b')
17570 result |= 32;
17571 else if (getopt (3, argv, "+:a:b") != ':')
17572 result |= 32;
17573 }
17574 /* This code dumps core on glibc 2.14. */
17575 {
17576 static char program[] = "program";
17577 static char w[] = "-W";
17578 static char dummy[] = "dummy";
17579 char *argv[] = { program, w, dummy, NULL };
17580 optind = opterr = 1;
17581 if (getopt (3, argv, "W;") != 'W')
17582 result |= 64;
17583 }
17584 return result;
17585
17586 ;
17587 return 0;
17588 }
17589 _ACEOF
17590 if ac_fn_c_try_run "$LINENO"; then :
17591 gl_cv_func_getopt_gnu=yes
17592 else
17593 gl_cv_func_getopt_gnu=no
17594 fi
17595 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17596 conftest.$ac_objext conftest.beam conftest.$ac_ext
17597 fi
17598
17599 case $gl_had_POSIXLY_CORRECT in
17600 exported) ;;
17601 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
17602 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
17603 esac
17604
17605 fi
17606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
17607 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
17608 if test "$gl_cv_func_getopt_gnu" != yes; then
17609 gl_replace_getopt=yes
17610 else
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
17612 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
17613 if test "${gl_cv_func_getopt_long_gnu+set}" = set; then :
17614 $as_echo_n "(cached) " >&6
17615 else
17616 if test "$cross_compiling" = yes; then :
17617 case "$host_os" in
17618 openbsd*) gl_cv_func_getopt_long_gnu="guessing no";;
17619 *) gl_cv_func_getopt_long_gnu="guessing yes";;
17620 esac
17621
17622 else
17623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17624 /* end confdefs.h. */
17625 #include <getopt.h>
17626 #include <stddef.h>
17627 #include <string.h>
17628
17629 int
17630 main ()
17631 {
17632 static const struct option long_options[] =
17633 {
17634 { "xtremely-",no_argument, NULL, 1003 },
17635 { "xtra", no_argument, NULL, 1001 },
17636 { "xtreme", no_argument, NULL, 1002 },
17637 { "xtremely", no_argument, NULL, 1003 },
17638 { NULL, 0, NULL, 0 }
17639 };
17640 /* This code fails on OpenBSD 5.0. */
17641 {
17642 static char program[] = "program";
17643 static char xtremel[] = "--xtremel";
17644 char *argv[] = { program, xtremel, NULL };
17645 int option_index;
17646 optind = 1; opterr = 0;
17647 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
17648 return 1;
17649 }
17650 return 0;
17651
17652 ;
17653 return 0;
17654 }
17655 _ACEOF
17656 if ac_fn_c_try_run "$LINENO"; then :
17657 gl_cv_func_getopt_long_gnu=yes
17658 else
17659 gl_cv_func_getopt_long_gnu=no
17660 fi
17661 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17662 conftest.$ac_objext conftest.beam conftest.$ac_ext
17663 fi
17664
17665
17666 fi
17667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
17668 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
17669 case "$gl_cv_func_getopt_long_gnu" in
17670 *yes) ;;
17671 *) gl_replace_getopt=yes ;;
17672 esac
17673 fi
17674 fi
17675
17676
17677
17678
17679
17680
17681 REPLACE_GETOPT=0
17682 if test -n "$gl_replace_getopt"; then
17683 REPLACE_GETOPT=1
17684 fi
17685
17686 if test $REPLACE_GETOPT = 1; then
17687
17688 GETOPT_H=getopt.h
17689
17690 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
17691
17692
17693
17694 fi
17695
17696 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
17697 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
17698 ac_have_decl=1
17699 else
17700 ac_have_decl=0
17701 fi
17702
17703 cat >>confdefs.h <<_ACEOF
17704 #define HAVE_DECL_GETENV $ac_have_decl
17705 _ACEOF
17706
17707 :
17708
17709
17710
17711
17712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
17713 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
17714 if test "${ac_cv_c_restrict+set}" = set; then :
17715 $as_echo_n "(cached) " >&6
17716 else
17717 ac_cv_c_restrict=no
17718 # The order here caters to the fact that C++ does not require restrict.
17719 for ac_kw in __restrict __restrict__ _Restrict restrict; do
17720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17721 /* end confdefs.h. */
17722 typedef int * int_ptr;
17723 int foo (int_ptr $ac_kw ip) {
17724 return ip[0];
17725 }
17726 int
17727 main ()
17728 {
17729 int s[1];
17730 int * $ac_kw t = s;
17731 t[0] = 0;
17732 return foo(t)
17733 ;
17734 return 0;
17735 }
17736 _ACEOF
17737 if ac_fn_c_try_compile "$LINENO"; then :
17738 ac_cv_c_restrict=$ac_kw
17739 fi
17740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17741 test "$ac_cv_c_restrict" != no && break
17742 done
17743
17744 fi
17745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
17746 $as_echo "$ac_cv_c_restrict" >&6; }
17747
17748 case $ac_cv_c_restrict in
17749 restrict) ;;
17750 no) $as_echo "#define restrict /**/" >>confdefs.h
17751 ;;
17752 *) cat >>confdefs.h <<_ACEOF
17753 #define restrict $ac_cv_c_restrict
17754 _ACEOF
17755 ;;
17756 esac
17757
17758
17759 GNULIB_GETTIMEOFDAY=0;
17760 HAVE_GETTIMEOFDAY=1;
17761 HAVE_STRUCT_TIMEVAL=1;
17762 HAVE_SYS_TIME_H=1;
17763 REPLACE_GETTIMEOFDAY=0;
17764 REPLACE_STRUCT_TIMEVAL=0;
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781 if test $gl_cv_have_include_next = yes; then
17782 gl_cv_next_sys_time_h='<'sys/time.h'>'
17783 else
17784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
17785 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
17786 if test "${gl_cv_next_sys_time_h+set}" = set; then :
17787 $as_echo_n "(cached) " >&6
17788 else
17789
17790 if test $ac_cv_header_sys_time_h = yes; then
17791
17792
17793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17794 /* end confdefs.h. */
17795 #include <sys/time.h>
17796
17797 _ACEOF
17798 case "$host_os" in
17799 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17800 *) gl_absname_cpp="$ac_cpp" ;;
17801 esac
17802
17803 case "$host_os" in
17804 mingw*)
17805 gl_dirsep_regex='[/\\]'
17806 ;;
17807 *)
17808 gl_dirsep_regex='\/'
17809 ;;
17810 esac
17811 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17812
17813 gl_header_literal_regex=`echo 'sys/time.h' \
17814 | sed -e "$gl_make_literal_regex_sed"`
17815 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17816 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17817 s|^/[^/]|//&|
17818 p
17819 q
17820 }'
17821 gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17822 sed -n "$gl_absolute_header_sed"`'"'
17823 else
17824 gl_cv_next_sys_time_h='<'sys/time.h'>'
17825 fi
17826
17827
17828 fi
17829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
17830 $as_echo "$gl_cv_next_sys_time_h" >&6; }
17831 fi
17832 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
17833
17834 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17835 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17836 gl_next_as_first_directive='<'sys/time.h'>'
17837 else
17838 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17839 gl_next_as_first_directive=$gl_cv_next_sys_time_h
17840 fi
17841 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
17842
17843
17844
17845
17846
17847 if test $ac_cv_header_sys_time_h != yes; then
17848 HAVE_SYS_TIME_H=0
17849 fi
17850
17851
17852
17853
17854
17855 if test $ac_cv_header_sys_socket_h != yes; then
17856 for ac_header in winsock2.h
17857 do :
17858 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
17859 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
17860 cat >>confdefs.h <<_ACEOF
17861 #define HAVE_WINSOCK2_H 1
17862 _ACEOF
17863
17864 fi
17865
17866 done
17867
17868 fi
17869 if test "$ac_cv_header_winsock2_h" = yes; then
17870 HAVE_WINSOCK2_H=1
17871 UNISTD_H_HAVE_WINSOCK2_H=1
17872 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
17873 else
17874 HAVE_WINSOCK2_H=0
17875 fi
17876
17877
17878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
17879 $as_echo_n "checking for struct timeval... " >&6; }
17880 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
17881 $as_echo_n "(cached) " >&6
17882 else
17883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17884 /* end confdefs.h. */
17885 #if HAVE_SYS_TIME_H
17886 #include <sys/time.h>
17887 #endif
17888 #include <time.h>
17889 #if HAVE_WINSOCK2_H
17890 # include <winsock2.h>
17891 #endif
17892
17893 int
17894 main ()
17895 {
17896 static struct timeval x; x.tv_sec = x.tv_usec;
17897 ;
17898 return 0;
17899 }
17900 _ACEOF
17901 if ac_fn_c_try_compile "$LINENO"; then :
17902 gl_cv_sys_struct_timeval=yes
17903 else
17904 gl_cv_sys_struct_timeval=no
17905 fi
17906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17907
17908 fi
17909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
17910 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
17911 if test $gl_cv_sys_struct_timeval != yes; then
17912 HAVE_STRUCT_TIMEVAL=0
17913 else
17914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
17915 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
17916 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
17917 $as_echo_n "(cached) " >&6
17918 else
17919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17920 /* end confdefs.h. */
17921 #if HAVE_SYS_TIME_H
17922 #include <sys/time.h>
17923 #endif
17924 #include <time.h>
17925 #if HAVE_WINSOCK2_H
17926 # include <winsock2.h>
17927 #endif
17928
17929 int
17930 main ()
17931 {
17932 static struct timeval x;
17933 typedef int verify_tv_sec_type[
17934 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
17935 ];
17936
17937 ;
17938 return 0;
17939 }
17940 _ACEOF
17941 if ac_fn_c_try_compile "$LINENO"; then :
17942 gl_cv_sys_struct_timeval_tv_sec=yes
17943 else
17944 gl_cv_sys_struct_timeval_tv_sec=no
17945 fi
17946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17947
17948 fi
17949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
17950 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
17951 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
17952 REPLACE_STRUCT_TIMEVAL=1
17953 fi
17954 fi
17955
17956
17957
17958
17959
17960
17961
17962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17963 $as_echo_n "checking for unsigned long long int... " >&6; }
17964 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
17965 $as_echo_n "(cached) " >&6
17966 else
17967 ac_cv_type_unsigned_long_long_int=yes
17968 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17970 /* end confdefs.h. */
17971
17972 /* For now, do not test the preprocessor; as of 2007 there are too many
17973 implementations with broken preprocessors. Perhaps this can
17974 be revisited in 2012. In the meantime, code should not expect
17975 #if to work with literals wider than 32 bits. */
17976 /* Test literals. */
17977 long long int ll = 9223372036854775807ll;
17978 long long int nll = -9223372036854775807LL;
17979 unsigned long long int ull = 18446744073709551615ULL;
17980 /* Test constant expressions. */
17981 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17982 ? 1 : -1)];
17983 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17984 ? 1 : -1)];
17985 int i = 63;
17986 int
17987 main ()
17988 {
17989 /* Test availability of runtime routines for shift and division. */
17990 long long int llmax = 9223372036854775807ll;
17991 unsigned long long int ullmax = 18446744073709551615ull;
17992 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17993 | (llmax / ll) | (llmax % ll)
17994 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17995 | (ullmax / ull) | (ullmax % ull));
17996 ;
17997 return 0;
17998 }
17999
18000 _ACEOF
18001 if ac_fn_c_try_link "$LINENO"; then :
18002
18003 else
18004 ac_cv_type_unsigned_long_long_int=no
18005 fi
18006 rm -f core conftest.err conftest.$ac_objext \
18007 conftest$ac_exeext conftest.$ac_ext
18008 fi
18009 fi
18010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
18011 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
18012 if test $ac_cv_type_unsigned_long_long_int = yes; then
18013
18014 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
18015
18016 fi
18017
18018
18019
18020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
18021 $as_echo_n "checking for long long int... " >&6; }
18022 if test "${ac_cv_type_long_long_int+set}" = set; then :
18023 $as_echo_n "(cached) " >&6
18024 else
18025 ac_cv_type_long_long_int=yes
18026 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
18027 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
18028 if test $ac_cv_type_long_long_int = yes; then
18029 if test "$cross_compiling" = yes; then :
18030 :
18031 else
18032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18033 /* end confdefs.h. */
18034 #include <limits.h>
18035 #ifndef LLONG_MAX
18036 # define HALF \
18037 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
18038 # define LLONG_MAX (HALF - 1 + HALF)
18039 #endif
18040 int
18041 main ()
18042 {
18043 long long int n = 1;
18044 int i;
18045 for (i = 0; ; i++)
18046 {
18047 long long int m = n << i;
18048 if (m >> i != n)
18049 return 1;
18050 if (LLONG_MAX / 2 < m)
18051 break;
18052 }
18053 return 0;
18054 ;
18055 return 0;
18056 }
18057 _ACEOF
18058 if ac_fn_c_try_run "$LINENO"; then :
18059
18060 else
18061 ac_cv_type_long_long_int=no
18062 fi
18063 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18064 conftest.$ac_objext conftest.beam conftest.$ac_ext
18065 fi
18066
18067 fi
18068 fi
18069 fi
18070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
18071 $as_echo "$ac_cv_type_long_long_int" >&6; }
18072 if test $ac_cv_type_long_long_int = yes; then
18073
18074 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
18075
18076 fi
18077
18078
18079
18080
18081
18082
18083 gl_cv_c_multiarch=no
18084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18085 /* end confdefs.h. */
18086 #ifndef __APPLE_CC__
18087 not a universal capable compiler
18088 #endif
18089 typedef int dummy;
18090
18091 _ACEOF
18092 if ac_fn_c_try_compile "$LINENO"; then :
18093
18094 arch=
18095 prev=
18096 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
18097 if test -n "$prev"; then
18098 case $word in
18099 i?86 | x86_64 | ppc | ppc64)
18100 if test -z "$arch" || test "$arch" = "$word"; then
18101 arch="$word"
18102 else
18103 gl_cv_c_multiarch=yes
18104 fi
18105 ;;
18106 esac
18107 prev=
18108 else
18109 if test "x$word" = "x-arch"; then
18110 prev=arch
18111 fi
18112 fi
18113 done
18114
18115 fi
18116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18117 if test $gl_cv_c_multiarch = yes; then
18118 APPLE_UNIVERSAL_BUILD=1
18119 else
18120 APPLE_UNIVERSAL_BUILD=0
18121 fi
18122
18123
18124
18125
18126
18127 if test $ac_cv_type_long_long_int = yes; then
18128 HAVE_LONG_LONG_INT=1
18129 else
18130 HAVE_LONG_LONG_INT=0
18131 fi
18132
18133
18134 if test $ac_cv_type_unsigned_long_long_int = yes; then
18135 HAVE_UNSIGNED_LONG_LONG_INT=1
18136 else
18137 HAVE_UNSIGNED_LONG_LONG_INT=0
18138 fi
18139
18140
18141
18142 if test $ac_cv_header_wchar_h = yes; then
18143 HAVE_WCHAR_H=1
18144 else
18145 HAVE_WCHAR_H=0
18146 fi
18147
18148
18149 if test $ac_cv_header_inttypes_h = yes; then
18150 HAVE_INTTYPES_H=1
18151 else
18152 HAVE_INTTYPES_H=0
18153 fi
18154
18155
18156 if test $ac_cv_header_sys_types_h = yes; then
18157 HAVE_SYS_TYPES_H=1
18158 else
18159 HAVE_SYS_TYPES_H=0
18160 fi
18161
18162
18163
18164
18165
18166
18167
18168
18169
18170
18171
18172 if test $gl_cv_have_include_next = yes; then
18173 gl_cv_next_stdint_h='<'stdint.h'>'
18174 else
18175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
18176 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
18177 if test "${gl_cv_next_stdint_h+set}" = set; then :
18178 $as_echo_n "(cached) " >&6
18179 else
18180
18181 if test $ac_cv_header_stdint_h = yes; then
18182
18183
18184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18185 /* end confdefs.h. */
18186 #include <stdint.h>
18187
18188 _ACEOF
18189 case "$host_os" in
18190 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18191 *) gl_absname_cpp="$ac_cpp" ;;
18192 esac
18193
18194 case "$host_os" in
18195 mingw*)
18196 gl_dirsep_regex='[/\\]'
18197 ;;
18198 *)
18199 gl_dirsep_regex='\/'
18200 ;;
18201 esac
18202 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18203
18204 gl_header_literal_regex=`echo 'stdint.h' \
18205 | sed -e "$gl_make_literal_regex_sed"`
18206 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18207 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18208 s|^/[^/]|//&|
18209 p
18210 q
18211 }'
18212 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18213 sed -n "$gl_absolute_header_sed"`'"'
18214 else
18215 gl_cv_next_stdint_h='<'stdint.h'>'
18216 fi
18217
18218
18219 fi
18220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
18221 $as_echo "$gl_cv_next_stdint_h" >&6; }
18222 fi
18223 NEXT_STDINT_H=$gl_cv_next_stdint_h
18224
18225 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18226 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18227 gl_next_as_first_directive='<'stdint.h'>'
18228 else
18229 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18230 gl_next_as_first_directive=$gl_cv_next_stdint_h
18231 fi
18232 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
18233
18234
18235
18236
18237 if test $ac_cv_header_stdint_h = yes; then
18238 HAVE_STDINT_H=1
18239 else
18240 HAVE_STDINT_H=0
18241 fi
18242
18243
18244 if test $ac_cv_header_stdint_h = yes; then
18245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
18246 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
18247 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
18248 $as_echo_n "(cached) " >&6
18249 else
18250 gl_cv_header_working_stdint_h=no
18251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18252 /* end confdefs.h. */
18253
18254
18255 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18256 #include <stdint.h>
18257 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
18258 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
18259 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
18260 #endif
18261
18262
18263 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18264 included before <wchar.h>. */
18265 #include <stddef.h>
18266 #include <signal.h>
18267 #if HAVE_WCHAR_H
18268 # include <stdio.h>
18269 # include <time.h>
18270 # include <wchar.h>
18271 #endif
18272
18273
18274 #ifdef INT8_MAX
18275 int8_t a1 = INT8_MAX;
18276 int8_t a1min = INT8_MIN;
18277 #endif
18278 #ifdef INT16_MAX
18279 int16_t a2 = INT16_MAX;
18280 int16_t a2min = INT16_MIN;
18281 #endif
18282 #ifdef INT32_MAX
18283 int32_t a3 = INT32_MAX;
18284 int32_t a3min = INT32_MIN;
18285 #endif
18286 #ifdef INT64_MAX
18287 int64_t a4 = INT64_MAX;
18288 int64_t a4min = INT64_MIN;
18289 #endif
18290 #ifdef UINT8_MAX
18291 uint8_t b1 = UINT8_MAX;
18292 #else
18293 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
18294 #endif
18295 #ifdef UINT16_MAX
18296 uint16_t b2 = UINT16_MAX;
18297 #endif
18298 #ifdef UINT32_MAX
18299 uint32_t b3 = UINT32_MAX;
18300 #endif
18301 #ifdef UINT64_MAX
18302 uint64_t b4 = UINT64_MAX;
18303 #endif
18304 int_least8_t c1 = INT8_C (0x7f);
18305 int_least8_t c1max = INT_LEAST8_MAX;
18306 int_least8_t c1min = INT_LEAST8_MIN;
18307 int_least16_t c2 = INT16_C (0x7fff);
18308 int_least16_t c2max = INT_LEAST16_MAX;
18309 int_least16_t c2min = INT_LEAST16_MIN;
18310 int_least32_t c3 = INT32_C (0x7fffffff);
18311 int_least32_t c3max = INT_LEAST32_MAX;
18312 int_least32_t c3min = INT_LEAST32_MIN;
18313 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
18314 int_least64_t c4max = INT_LEAST64_MAX;
18315 int_least64_t c4min = INT_LEAST64_MIN;
18316 uint_least8_t d1 = UINT8_C (0xff);
18317 uint_least8_t d1max = UINT_LEAST8_MAX;
18318 uint_least16_t d2 = UINT16_C (0xffff);
18319 uint_least16_t d2max = UINT_LEAST16_MAX;
18320 uint_least32_t d3 = UINT32_C (0xffffffff);
18321 uint_least32_t d3max = UINT_LEAST32_MAX;
18322 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
18323 uint_least64_t d4max = UINT_LEAST64_MAX;
18324 int_fast8_t e1 = INT_FAST8_MAX;
18325 int_fast8_t e1min = INT_FAST8_MIN;
18326 int_fast16_t e2 = INT_FAST16_MAX;
18327 int_fast16_t e2min = INT_FAST16_MIN;
18328 int_fast32_t e3 = INT_FAST32_MAX;
18329 int_fast32_t e3min = INT_FAST32_MIN;
18330 int_fast64_t e4 = INT_FAST64_MAX;
18331 int_fast64_t e4min = INT_FAST64_MIN;
18332 uint_fast8_t f1 = UINT_FAST8_MAX;
18333 uint_fast16_t f2 = UINT_FAST16_MAX;
18334 uint_fast32_t f3 = UINT_FAST32_MAX;
18335 uint_fast64_t f4 = UINT_FAST64_MAX;
18336 #ifdef INTPTR_MAX
18337 intptr_t g = INTPTR_MAX;
18338 intptr_t gmin = INTPTR_MIN;
18339 #endif
18340 #ifdef UINTPTR_MAX
18341 uintptr_t h = UINTPTR_MAX;
18342 #endif
18343 intmax_t i = INTMAX_MAX;
18344 uintmax_t j = UINTMAX_MAX;
18345
18346 #include <limits.h> /* for CHAR_BIT */
18347 #define TYPE_MINIMUM(t) \
18348 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
18349 #define TYPE_MAXIMUM(t) \
18350 ((t) ((t) 0 < (t) -1 \
18351 ? (t) -1 \
18352 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
18353 struct s {
18354 int check_PTRDIFF:
18355 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
18356 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
18357 ? 1 : -1;
18358 /* Detect bug in FreeBSD 6.0 / ia64. */
18359 int check_SIG_ATOMIC:
18360 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
18361 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
18362 ? 1 : -1;
18363 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
18364 int check_WCHAR:
18365 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
18366 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
18367 ? 1 : -1;
18368 /* Detect bug in mingw. */
18369 int check_WINT:
18370 WINT_MIN == TYPE_MINIMUM (wint_t)
18371 && WINT_MAX == TYPE_MAXIMUM (wint_t)
18372 ? 1 : -1;
18373
18374 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
18375 int check_UINT8_C:
18376 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
18377 int check_UINT16_C:
18378 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
18379
18380 /* Detect bugs in OpenBSD 3.9 stdint.h. */
18381 #ifdef UINT8_MAX
18382 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
18383 #endif
18384 #ifdef UINT16_MAX
18385 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
18386 #endif
18387 #ifdef UINT32_MAX
18388 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
18389 #endif
18390 #ifdef UINT64_MAX
18391 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
18392 #endif
18393 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
18394 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
18395 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
18396 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
18397 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
18398 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
18399 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
18400 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
18401 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
18402 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
18403 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
18404 };
18405
18406 int
18407 main ()
18408 {
18409
18410 ;
18411 return 0;
18412 }
18413 _ACEOF
18414 if ac_fn_c_try_compile "$LINENO"; then :
18415 if test "$cross_compiling" = yes; then :
18416 gl_cv_header_working_stdint_h=yes
18417
18418 else
18419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18420 /* end confdefs.h. */
18421
18422
18423 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18424 #include <stdint.h>
18425
18426
18427 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18428 included before <wchar.h>. */
18429 #include <stddef.h>
18430 #include <signal.h>
18431 #if HAVE_WCHAR_H
18432 # include <stdio.h>
18433 # include <time.h>
18434 # include <wchar.h>
18435 #endif
18436
18437
18438 #include <stdio.h>
18439 #include <string.h>
18440 #define MVAL(macro) MVAL1(macro)
18441 #define MVAL1(expression) #expression
18442 static const char *macro_values[] =
18443 {
18444 #ifdef INT8_MAX
18445 MVAL (INT8_MAX),
18446 #endif
18447 #ifdef INT16_MAX
18448 MVAL (INT16_MAX),
18449 #endif
18450 #ifdef INT32_MAX
18451 MVAL (INT32_MAX),
18452 #endif
18453 #ifdef INT64_MAX
18454 MVAL (INT64_MAX),
18455 #endif
18456 #ifdef UINT8_MAX
18457 MVAL (UINT8_MAX),
18458 #endif
18459 #ifdef UINT16_MAX
18460 MVAL (UINT16_MAX),
18461 #endif
18462 #ifdef UINT32_MAX
18463 MVAL (UINT32_MAX),
18464 #endif
18465 #ifdef UINT64_MAX
18466 MVAL (UINT64_MAX),
18467 #endif
18468 NULL
18469 };
18470
18471 int
18472 main ()
18473 {
18474
18475 const char **mv;
18476 for (mv = macro_values; *mv != NULL; mv++)
18477 {
18478 const char *value = *mv;
18479 /* Test whether it looks like a cast expression. */
18480 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18481 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18482 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
18483 || strncmp (value, "((int)"/*)*/, 6) == 0
18484 || strncmp (value, "((signed short)"/*)*/, 15) == 0
18485 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
18486 return mv - macro_values + 1;
18487 }
18488 return 0;
18489
18490 ;
18491 return 0;
18492 }
18493 _ACEOF
18494 if ac_fn_c_try_run "$LINENO"; then :
18495 gl_cv_header_working_stdint_h=yes
18496 fi
18497 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18498 conftest.$ac_objext conftest.beam conftest.$ac_ext
18499 fi
18500
18501
18502 fi
18503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18504
18505 fi
18506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18507 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
18508 fi
18509 if test "$gl_cv_header_working_stdint_h" = yes; then
18510 STDINT_H=
18511 else
18512 for ac_header in sys/inttypes.h sys/bitypes.h
18513 do :
18514 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18515 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18516 eval as_val=\$$as_ac_Header
18517 if test "x$as_val" = x""yes; then :
18518 cat >>confdefs.h <<_ACEOF
18519 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18520 _ACEOF
18521
18522 fi
18523
18524 done
18525
18526 if test $ac_cv_header_sys_inttypes_h = yes; then
18527 HAVE_SYS_INTTYPES_H=1
18528 else
18529 HAVE_SYS_INTTYPES_H=0
18530 fi
18531
18532 if test $ac_cv_header_sys_bitypes_h = yes; then
18533 HAVE_SYS_BITYPES_H=1
18534 else
18535 HAVE_SYS_BITYPES_H=0
18536 fi
18537
18538
18539
18540
18541 if test $APPLE_UNIVERSAL_BUILD = 0; then
18542
18543
18544 for gltype in ptrdiff_t size_t ; do
18545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18546 $as_echo_n "checking for bit size of $gltype... " >&6; }
18547 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18548 $as_echo_n "(cached) " >&6
18549 else
18550 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18551 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18552 included before <wchar.h>. */
18553 #include <stddef.h>
18554 #include <signal.h>
18555 #if HAVE_WCHAR_H
18556 # include <stdio.h>
18557 # include <time.h>
18558 # include <wchar.h>
18559 #endif
18560
18561 #include <limits.h>"; then :
18562
18563 else
18564 result=unknown
18565 fi
18566
18567 eval gl_cv_bitsizeof_${gltype}=\$result
18568
18569 fi
18570 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18572 $as_echo "$ac_res" >&6; }
18573 eval result=\$gl_cv_bitsizeof_${gltype}
18574 if test $result = unknown; then
18575 result=0
18576 fi
18577 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18578 cat >>confdefs.h <<_ACEOF
18579 #define BITSIZEOF_${GLTYPE} $result
18580 _ACEOF
18581
18582 eval BITSIZEOF_${GLTYPE}=\$result
18583 done
18584
18585
18586 fi
18587
18588
18589 for gltype in sig_atomic_t wchar_t wint_t ; do
18590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18591 $as_echo_n "checking for bit size of $gltype... " >&6; }
18592 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18593 $as_echo_n "(cached) " >&6
18594 else
18595 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18596 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18597 included before <wchar.h>. */
18598 #include <stddef.h>
18599 #include <signal.h>
18600 #if HAVE_WCHAR_H
18601 # include <stdio.h>
18602 # include <time.h>
18603 # include <wchar.h>
18604 #endif
18605
18606 #include <limits.h>"; then :
18607
18608 else
18609 result=unknown
18610 fi
18611
18612 eval gl_cv_bitsizeof_${gltype}=\$result
18613
18614 fi
18615 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18617 $as_echo "$ac_res" >&6; }
18618 eval result=\$gl_cv_bitsizeof_${gltype}
18619 if test $result = unknown; then
18620 result=0
18621 fi
18622 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18623 cat >>confdefs.h <<_ACEOF
18624 #define BITSIZEOF_${GLTYPE} $result
18625 _ACEOF
18626
18627 eval BITSIZEOF_${GLTYPE}=\$result
18628 done
18629
18630
18631
18632
18633 for gltype in sig_atomic_t wchar_t wint_t ; do
18634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18635 $as_echo_n "checking whether $gltype is signed... " >&6; }
18636 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
18637 $as_echo_n "(cached) " >&6
18638 else
18639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18640 /* end confdefs.h. */
18641
18642 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18643 included before <wchar.h>. */
18644 #include <stddef.h>
18645 #include <signal.h>
18646 #if HAVE_WCHAR_H
18647 # include <stdio.h>
18648 # include <time.h>
18649 # include <wchar.h>
18650 #endif
18651
18652 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18653 int
18654 main ()
18655 {
18656
18657 ;
18658 return 0;
18659 }
18660 _ACEOF
18661 if ac_fn_c_try_compile "$LINENO"; then :
18662 result=yes
18663 else
18664 result=no
18665 fi
18666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18667 eval gl_cv_type_${gltype}_signed=\$result
18668
18669 fi
18670 eval ac_res=\$gl_cv_type_${gltype}_signed
18671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18672 $as_echo "$ac_res" >&6; }
18673 eval result=\$gl_cv_type_${gltype}_signed
18674 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18675 if test "$result" = yes; then
18676 cat >>confdefs.h <<_ACEOF
18677 #define HAVE_SIGNED_${GLTYPE} 1
18678 _ACEOF
18679
18680 eval HAVE_SIGNED_${GLTYPE}=1
18681 else
18682 eval HAVE_SIGNED_${GLTYPE}=0
18683 fi
18684 done
18685
18686
18687 gl_cv_type_ptrdiff_t_signed=yes
18688 gl_cv_type_size_t_signed=no
18689 if test $APPLE_UNIVERSAL_BUILD = 0; then
18690
18691
18692 for gltype in ptrdiff_t size_t ; do
18693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18694 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18695 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18696 $as_echo_n "(cached) " >&6
18697 else
18698 eval gl_cv_type_${gltype}_suffix=no
18699 eval result=\$gl_cv_type_${gltype}_signed
18700 if test "$result" = yes; then
18701 glsufu=
18702 else
18703 glsufu=u
18704 fi
18705 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18706 case $glsuf in
18707 '') gltype1='int';;
18708 l) gltype1='long int';;
18709 ll) gltype1='long long int';;
18710 i64) gltype1='__int64';;
18711 u) gltype1='unsigned int';;
18712 ul) gltype1='unsigned long int';;
18713 ull) gltype1='unsigned long long int';;
18714 ui64)gltype1='unsigned __int64';;
18715 esac
18716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18717 /* end confdefs.h. */
18718
18719 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18720 included before <wchar.h>. */
18721 #include <stddef.h>
18722 #include <signal.h>
18723 #if HAVE_WCHAR_H
18724 # include <stdio.h>
18725 # include <time.h>
18726 # include <wchar.h>
18727 #endif
18728
18729 extern $gltype foo;
18730 extern $gltype1 foo;
18731 int
18732 main ()
18733 {
18734
18735 ;
18736 return 0;
18737 }
18738 _ACEOF
18739 if ac_fn_c_try_compile "$LINENO"; then :
18740 eval gl_cv_type_${gltype}_suffix=\$glsuf
18741 fi
18742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18743 eval result=\$gl_cv_type_${gltype}_suffix
18744 test "$result" != no && break
18745 done
18746 fi
18747 eval ac_res=\$gl_cv_type_${gltype}_suffix
18748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18749 $as_echo "$ac_res" >&6; }
18750 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18751 eval result=\$gl_cv_type_${gltype}_suffix
18752 test "$result" = no && result=
18753 eval ${GLTYPE}_SUFFIX=\$result
18754 cat >>confdefs.h <<_ACEOF
18755 #define ${GLTYPE}_SUFFIX $result
18756 _ACEOF
18757
18758 done
18759
18760
18761 fi
18762
18763
18764 for gltype in sig_atomic_t wchar_t wint_t ; do
18765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18766 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18767 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18768 $as_echo_n "(cached) " >&6
18769 else
18770 eval gl_cv_type_${gltype}_suffix=no
18771 eval result=\$gl_cv_type_${gltype}_signed
18772 if test "$result" = yes; then
18773 glsufu=
18774 else
18775 glsufu=u
18776 fi
18777 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18778 case $glsuf in
18779 '') gltype1='int';;
18780 l) gltype1='long int';;
18781 ll) gltype1='long long int';;
18782 i64) gltype1='__int64';;
18783 u) gltype1='unsigned int';;
18784 ul) gltype1='unsigned long int';;
18785 ull) gltype1='unsigned long long int';;
18786 ui64)gltype1='unsigned __int64';;
18787 esac
18788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18789 /* end confdefs.h. */
18790
18791 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18792 included before <wchar.h>. */
18793 #include <stddef.h>
18794 #include <signal.h>
18795 #if HAVE_WCHAR_H
18796 # include <stdio.h>
18797 # include <time.h>
18798 # include <wchar.h>
18799 #endif
18800
18801 extern $gltype foo;
18802 extern $gltype1 foo;
18803 int
18804 main ()
18805 {
18806
18807 ;
18808 return 0;
18809 }
18810 _ACEOF
18811 if ac_fn_c_try_compile "$LINENO"; then :
18812 eval gl_cv_type_${gltype}_suffix=\$glsuf
18813 fi
18814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18815 eval result=\$gl_cv_type_${gltype}_suffix
18816 test "$result" != no && break
18817 done
18818 fi
18819 eval ac_res=\$gl_cv_type_${gltype}_suffix
18820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18821 $as_echo "$ac_res" >&6; }
18822 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18823 eval result=\$gl_cv_type_${gltype}_suffix
18824 test "$result" = no && result=
18825 eval ${GLTYPE}_SUFFIX=\$result
18826 cat >>confdefs.h <<_ACEOF
18827 #define ${GLTYPE}_SUFFIX $result
18828 _ACEOF
18829
18830 done
18831
18832
18833
18834 if test $BITSIZEOF_WINT_T -lt 32; then
18835 BITSIZEOF_WINT_T=32
18836 fi
18837
18838 STDINT_H=stdint.h
18839 fi
18840
18841 if test -n "$STDINT_H"; then
18842 GL_GENERATE_STDINT_H_TRUE=
18843 GL_GENERATE_STDINT_H_FALSE='#'
18844 else
18845 GL_GENERATE_STDINT_H_TRUE='#'
18846 GL_GENERATE_STDINT_H_FALSE=
18847 fi
18848
18849
18850
18851
18852
18853 GNULIB_IMAXABS=0;
18854 GNULIB_IMAXDIV=0;
18855 GNULIB_STRTOIMAX=0;
18856 GNULIB_STRTOUMAX=0;
18857 HAVE_DECL_IMAXABS=1;
18858 HAVE_DECL_IMAXDIV=1;
18859 HAVE_DECL_STRTOIMAX=1;
18860 HAVE_DECL_STRTOUMAX=1;
18861 REPLACE_STRTOIMAX=0;
18862 INT32_MAX_LT_INTMAX_MAX=1;
18863 INT64_MAX_EQ_LONG_MAX='defined _LP64';
18864 PRI_MACROS_BROKEN=0;
18865 PRIPTR_PREFIX=__PRIPTR_PREFIX;
18866 UINT32_MAX_LT_UINTMAX_MAX=1;
18867 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
18868
18869
18870
18871
18872
18873
18874
18875
18876
18877
18878
18879
18880
18881
18882
18883 if test $gl_cv_have_include_next = yes; then
18884 gl_cv_next_inttypes_h='<'inttypes.h'>'
18885 else
18886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
18887 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
18888 if test "${gl_cv_next_inttypes_h+set}" = set; then :
18889 $as_echo_n "(cached) " >&6
18890 else
18891
18892 if test $ac_cv_header_inttypes_h = yes; then
18893
18894
18895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18896 /* end confdefs.h. */
18897 #include <inttypes.h>
18898
18899 _ACEOF
18900 case "$host_os" in
18901 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18902 *) gl_absname_cpp="$ac_cpp" ;;
18903 esac
18904
18905 case "$host_os" in
18906 mingw*)
18907 gl_dirsep_regex='[/\\]'
18908 ;;
18909 *)
18910 gl_dirsep_regex='\/'
18911 ;;
18912 esac
18913 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18914
18915 gl_header_literal_regex=`echo 'inttypes.h' \
18916 | sed -e "$gl_make_literal_regex_sed"`
18917 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18918 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18919 s|^/[^/]|//&|
18920 p
18921 q
18922 }'
18923 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18924 sed -n "$gl_absolute_header_sed"`'"'
18925 else
18926 gl_cv_next_inttypes_h='<'inttypes.h'>'
18927 fi
18928
18929
18930 fi
18931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
18932 $as_echo "$gl_cv_next_inttypes_h" >&6; }
18933 fi
18934 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
18935
18936 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18937 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18938 gl_next_as_first_directive='<'inttypes.h'>'
18939 else
18940 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18941 gl_next_as_first_directive=$gl_cv_next_inttypes_h
18942 fi
18943 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
18944
18945
18946
18947
18948
18949
18950
18951
18952
18953
18954
18955 case "$host_os" in
18956 mingw*)
18957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
18958 $as_echo_n "checking for 64-bit off_t... " >&6; }
18959 if test "${gl_cv_type_off_t_64+set}" = set; then :
18960 $as_echo_n "(cached) " >&6
18961 else
18962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18963 /* end confdefs.h. */
18964 #include <sys/types.h>
18965 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
18966
18967 int
18968 main ()
18969 {
18970
18971 ;
18972 return 0;
18973 }
18974 _ACEOF
18975 if ac_fn_c_try_compile "$LINENO"; then :
18976 gl_cv_type_off_t_64=yes
18977 else
18978 gl_cv_type_off_t_64=no
18979 fi
18980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18981
18982 fi
18983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
18984 $as_echo "$gl_cv_type_off_t_64" >&6; }
18985 if test $gl_cv_type_off_t_64 = no; then
18986 WINDOWS_64_BIT_OFF_T=1
18987 else
18988 WINDOWS_64_BIT_OFF_T=0
18989 fi
18990 WINDOWS_64_BIT_ST_SIZE=1
18991 ;;
18992 *)
18993 WINDOWS_64_BIT_OFF_T=0
18994 WINDOWS_64_BIT_ST_SIZE=0
18995 ;;
18996 esac
18997
18998
18999 GNULIB_FCHMODAT=0;
19000 GNULIB_FSTAT=0;
19001 GNULIB_FSTATAT=0;
19002 GNULIB_FUTIMENS=0;
19003 GNULIB_LCHMOD=0;
19004 GNULIB_LSTAT=0;
19005 GNULIB_MKDIRAT=0;
19006 GNULIB_MKFIFO=0;
19007 GNULIB_MKFIFOAT=0;
19008 GNULIB_MKNOD=0;
19009 GNULIB_MKNODAT=0;
19010 GNULIB_STAT=0;
19011 GNULIB_UTIMENSAT=0;
19012 HAVE_FCHMODAT=1;
19013 HAVE_FSTATAT=1;
19014 HAVE_FUTIMENS=1;
19015 HAVE_LCHMOD=1;
19016 HAVE_LSTAT=1;
19017 HAVE_MKDIRAT=1;
19018 HAVE_MKFIFO=1;
19019 HAVE_MKFIFOAT=1;
19020 HAVE_MKNOD=1;
19021 HAVE_MKNODAT=1;
19022 HAVE_UTIMENSAT=1;
19023 REPLACE_FSTAT=0;
19024 REPLACE_FSTATAT=0;
19025 REPLACE_FUTIMENS=0;
19026 REPLACE_LSTAT=0;
19027 REPLACE_MKDIR=0;
19028 REPLACE_MKFIFO=0;
19029 REPLACE_MKNOD=0;
19030 REPLACE_STAT=0;
19031 REPLACE_UTIMENSAT=0;
19032
19033
19034
19035
19036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
19037 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
19038 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
19039 $as_echo_n "(cached) " >&6
19040 else
19041 rm -f conftest.sym conftest.file
19042 echo >conftest.file
19043 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
19044 if test "$cross_compiling" = yes; then :
19045 case "$host_os" in
19046 # Guess yes on glibc systems.
19047 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
19048 # If we don't know, assume the worst.
19049 *) gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
19050 esac
19051
19052 else
19053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19054 /* end confdefs.h. */
19055 $ac_includes_default
19056 int
19057 main ()
19058 {
19059 struct stat sbuf;
19060 /* Linux will dereference the symlink and fail, as required by
19061 POSIX. That is better in the sense that it means we will not
19062 have to compile and use the lstat wrapper. */
19063 return lstat ("conftest.sym/", &sbuf) == 0;
19064
19065 ;
19066 return 0;
19067 }
19068 _ACEOF
19069 if ac_fn_c_try_run "$LINENO"; then :
19070 gl_cv_func_lstat_dereferences_slashed_symlink=yes
19071 else
19072 gl_cv_func_lstat_dereferences_slashed_symlink=no
19073 fi
19074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19075 conftest.$ac_objext conftest.beam conftest.$ac_ext
19076 fi
19077
19078 else
19079 # If the 'ln -s' command failed, then we probably don't even
19080 # have an lstat function.
19081 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no"
19082 fi
19083 rm -f conftest.sym conftest.file
19084
19085 fi
19086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
19087 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
19088 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
19089 *yes)
19090
19091 cat >>confdefs.h <<_ACEOF
19092 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
19093 _ACEOF
19094
19095 ;;
19096 esac
19097
19098
19099 GNULIB_MKTIME=0;
19100 GNULIB_NANOSLEEP=0;
19101 GNULIB_STRPTIME=0;
19102 GNULIB_TIMEGM=0;
19103 GNULIB_TIME_R=0;
19104 HAVE_DECL_LOCALTIME_R=1;
19105 HAVE_NANOSLEEP=1;
19106 HAVE_STRPTIME=1;
19107 HAVE_TIMEGM=1;
19108 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
19109 REPLACE_MKTIME=GNULIB_PORTCHECK;
19110 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
19111 REPLACE_TIMEGM=GNULIB_PORTCHECK;
19112
19113
19114
19115
19116 GNULIB_PSELECT=0;
19117 GNULIB_SELECT=0;
19118 HAVE_PSELECT=1;
19119 REPLACE_PSELECT=0;
19120 REPLACE_SELECT=0;
19121
19122
19123
19124
19125
19126
19127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
19128 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
19129 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
19130 $as_echo_n "(cached) " >&6
19131 else
19132
19133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19134 /* end confdefs.h. */
19135 #include <sys/select.h>
19136 int
19137 main ()
19138 {
19139 struct timeval b;
19140 ;
19141 return 0;
19142 }
19143 _ACEOF
19144 if ac_fn_c_try_compile "$LINENO"; then :
19145 gl_cv_header_sys_select_h_selfcontained=yes
19146 else
19147 gl_cv_header_sys_select_h_selfcontained=no
19148 fi
19149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19150 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
19151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19152 /* end confdefs.h. */
19153 #include <sys/select.h>
19154 int
19155 main ()
19156 {
19157 int memset; int bzero;
19158 ;
19159 return 0;
19160 }
19161
19162 _ACEOF
19163 if ac_fn_c_try_compile "$LINENO"; then :
19164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19165 /* end confdefs.h. */
19166 #include <sys/select.h>
19167 int
19168 main ()
19169 {
19170
19171 #undef memset
19172 #define memset nonexistent_memset
19173 extern
19174 #ifdef __cplusplus
19175 "C"
19176 #endif
19177 void *memset (void *, int, unsigned long);
19178 #undef bzero
19179 #define bzero nonexistent_bzero
19180 extern
19181 #ifdef __cplusplus
19182 "C"
19183 #endif
19184 void bzero (void *, unsigned long);
19185 fd_set fds;
19186 FD_ZERO (&fds);
19187
19188 ;
19189 return 0;
19190 }
19191
19192 _ACEOF
19193 if ac_fn_c_try_link "$LINENO"; then :
19194
19195 else
19196 gl_cv_header_sys_select_h_selfcontained=no
19197 fi
19198 rm -f core conftest.err conftest.$ac_objext \
19199 conftest$ac_exeext conftest.$ac_ext
19200
19201 fi
19202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19203 fi
19204
19205 fi
19206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
19207 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
19208
19209
19210
19211
19212
19213
19214
19215
19216
19217 if test $gl_cv_have_include_next = yes; then
19218 gl_cv_next_sys_select_h='<'sys/select.h'>'
19219 else
19220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
19221 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
19222 if test "${gl_cv_next_sys_select_h+set}" = set; then :
19223 $as_echo_n "(cached) " >&6
19224 else
19225
19226 if test $ac_cv_header_sys_select_h = yes; then
19227
19228
19229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19230 /* end confdefs.h. */
19231 #include <sys/select.h>
19232
19233 _ACEOF
19234 case "$host_os" in
19235 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19236 *) gl_absname_cpp="$ac_cpp" ;;
19237 esac
19238
19239 case "$host_os" in
19240 mingw*)
19241 gl_dirsep_regex='[/\\]'
19242 ;;
19243 *)
19244 gl_dirsep_regex='\/'
19245 ;;
19246 esac
19247 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19248
19249 gl_header_literal_regex=`echo 'sys/select.h' \
19250 | sed -e "$gl_make_literal_regex_sed"`
19251 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19252 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19253 s|^/[^/]|//&|
19254 p
19255 q
19256 }'
19257 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19258 sed -n "$gl_absolute_header_sed"`'"'
19259 else
19260 gl_cv_next_sys_select_h='<'sys/select.h'>'
19261 fi
19262
19263
19264 fi
19265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
19266 $as_echo "$gl_cv_next_sys_select_h" >&6; }
19267 fi
19268 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
19269
19270 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19271 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19272 gl_next_as_first_directive='<'sys/select.h'>'
19273 else
19274 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19275 gl_next_as_first_directive=$gl_cv_next_sys_select_h
19276 fi
19277 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
19278
19279
19280
19281
19282 if test $ac_cv_header_sys_select_h = yes; then
19283 HAVE_SYS_SELECT_H=1
19284 else
19285 HAVE_SYS_SELECT_H=0
19286 fi
19287
19288
19289
19290
19291
19292 if test $ac_cv_header_sys_socket_h != yes; then
19293 for ac_header in winsock2.h
19294 do :
19295 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
19296 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
19297 cat >>confdefs.h <<_ACEOF
19298 #define HAVE_WINSOCK2_H 1
19299 _ACEOF
19300
19301 fi
19302
19303 done
19304
19305 fi
19306 if test "$ac_cv_header_winsock2_h" = yes; then
19307 HAVE_WINSOCK2_H=1
19308 UNISTD_H_HAVE_WINSOCK2_H=1
19309 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
19310 else
19311 HAVE_WINSOCK2_H=0
19312 fi
19313
19314
19315
19316
19317
19318
19319
19320
19321 GNULIB_PTHREAD_SIGMASK=0;
19322 GNULIB_RAISE=0;
19323 GNULIB_SIGNAL_H_SIGPIPE=0;
19324 GNULIB_SIGPROCMASK=0;
19325 GNULIB_SIGACTION=0;
19326 HAVE_POSIX_SIGNALBLOCKING=1;
19327 HAVE_PTHREAD_SIGMASK=1;
19328 HAVE_RAISE=1;
19329 HAVE_SIGSET_T=1;
19330 HAVE_SIGINFO_T=1;
19331 HAVE_SIGACTION=1;
19332 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
19333
19334 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
19335
19336 HAVE_SIGHANDLER_T=1;
19337 REPLACE_PTHREAD_SIGMASK=0;
19338 REPLACE_RAISE=0;
19339
19340
19341
19342
19343
19344
19345
19346 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
19347 #include <signal.h>
19348 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
19349 #include <sys/types.h>
19350
19351 "
19352 if test "x$ac_cv_type_sigset_t" = x""yes; then :
19353
19354 cat >>confdefs.h <<_ACEOF
19355 #define HAVE_SIGSET_T 1
19356 _ACEOF
19357
19358 gl_cv_type_sigset_t=yes
19359 else
19360 gl_cv_type_sigset_t=no
19361 fi
19362
19363 if test $gl_cv_type_sigset_t != yes; then
19364 HAVE_SIGSET_T=0
19365 fi
19366
19367
19368
19369 if test $ac_cv_header_sys_socket_h = no; then
19370 for ac_header in ws2tcpip.h
19371 do :
19372 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
19373 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
19374 cat >>confdefs.h <<_ACEOF
19375 #define HAVE_WS2TCPIP_H 1
19376 _ACEOF
19377
19378 fi
19379
19380 done
19381
19382 fi
19383
19384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
19385 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
19386 if test "${ac_cv_header_stdbool_h+set}" = set; then :
19387 $as_echo_n "(cached) " >&6
19388 else
19389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19390 /* end confdefs.h. */
19391
19392 #include <stdbool.h>
19393 #ifndef bool
19394 "error: bool is not defined"
19395 #endif
19396 #ifndef false
19397 "error: false is not defined"
19398 #endif
19399 #if false
19400 "error: false is not 0"
19401 #endif
19402 #ifndef true
19403 "error: true is not defined"
19404 #endif
19405 #if true != 1
19406 "error: true is not 1"
19407 #endif
19408 #ifndef __bool_true_false_are_defined
19409 "error: __bool_true_false_are_defined is not defined"
19410 #endif
19411
19412 struct s { _Bool s: 1; _Bool t; } s;
19413
19414 char a[true == 1 ? 1 : -1];
19415 char b[false == 0 ? 1 : -1];
19416 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19417 char d[(bool) 0.5 == true ? 1 : -1];
19418 /* See body of main program for 'e'. */
19419 char f[(_Bool) 0.0 == false ? 1 : -1];
19420 char g[true];
19421 char h[sizeof (_Bool)];
19422 char i[sizeof s.t];
19423 enum { j = false, k = true, l = false * true, m = true * 256 };
19424 /* The following fails for
19425 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
19426 _Bool n[m];
19427 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19428 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19429 /* Catch a bug in an HP-UX C compiler. See
19430 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19431 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19432 */
19433 _Bool q = true;
19434 _Bool *pq = &q;
19435
19436 int
19437 main ()
19438 {
19439
19440 bool e = &s;
19441 *pq |= q;
19442 *pq |= ! q;
19443 /* Refer to every declared value, to avoid compiler optimizations. */
19444 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19445 + !m + !n + !o + !p + !q + !pq);
19446
19447 ;
19448 return 0;
19449 }
19450 _ACEOF
19451 if ac_fn_c_try_compile "$LINENO"; then :
19452 ac_cv_header_stdbool_h=yes
19453 else
19454 ac_cv_header_stdbool_h=no
19455 fi
19456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19457 fi
19458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
19459 $as_echo "$ac_cv_header_stdbool_h" >&6; }
19460 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
19461 if test "x$ac_cv_type__Bool" = x""yes; then :
19462
19463 cat >>confdefs.h <<_ACEOF
19464 #define HAVE__BOOL 1
19465 _ACEOF
19466
19467
19468 fi
19469
19470
19471
19472 REPLACE_NULL=0;
19473 HAVE_WCHAR_T=1;
19474
19475
19476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19477 $as_echo_n "checking for wchar_t... " >&6; }
19478 if test "${gt_cv_c_wchar_t+set}" = set; then :
19479 $as_echo_n "(cached) " >&6
19480 else
19481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19482 /* end confdefs.h. */
19483 #include <stddef.h>
19484 wchar_t foo = (wchar_t)'\0';
19485 int
19486 main ()
19487 {
19488
19489 ;
19490 return 0;
19491 }
19492 _ACEOF
19493 if ac_fn_c_try_compile "$LINENO"; then :
19494 gt_cv_c_wchar_t=yes
19495 else
19496 gt_cv_c_wchar_t=no
19497 fi
19498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19499 fi
19500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19501 $as_echo "$gt_cv_c_wchar_t" >&6; }
19502 if test $gt_cv_c_wchar_t = yes; then
19503
19504 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19505
19506 fi
19507
19508
19509 GNULIB_DPRINTF=0;
19510 GNULIB_FCLOSE=0;
19511 GNULIB_FDOPEN=0;
19512 GNULIB_FFLUSH=0;
19513 GNULIB_FGETC=0;
19514 GNULIB_FGETS=0;
19515 GNULIB_FOPEN=0;
19516 GNULIB_FPRINTF=0;
19517 GNULIB_FPRINTF_POSIX=0;
19518 GNULIB_FPURGE=0;
19519 GNULIB_FPUTC=0;
19520 GNULIB_FPUTS=0;
19521 GNULIB_FREAD=0;
19522 GNULIB_FREOPEN=0;
19523 GNULIB_FSCANF=0;
19524 GNULIB_FSEEK=0;
19525 GNULIB_FSEEKO=0;
19526 GNULIB_FTELL=0;
19527 GNULIB_FTELLO=0;
19528 GNULIB_FWRITE=0;
19529 GNULIB_GETC=0;
19530 GNULIB_GETCHAR=0;
19531 GNULIB_GETDELIM=0;
19532 GNULIB_GETLINE=0;
19533 GNULIB_OBSTACK_PRINTF=0;
19534 GNULIB_OBSTACK_PRINTF_POSIX=0;
19535 GNULIB_PCLOSE=0;
19536 GNULIB_PERROR=0;
19537 GNULIB_POPEN=0;
19538 GNULIB_PRINTF=0;
19539 GNULIB_PRINTF_POSIX=0;
19540 GNULIB_PUTC=0;
19541 GNULIB_PUTCHAR=0;
19542 GNULIB_PUTS=0;
19543 GNULIB_REMOVE=0;
19544 GNULIB_RENAME=0;
19545 GNULIB_RENAMEAT=0;
19546 GNULIB_SCANF=0;
19547 GNULIB_SNPRINTF=0;
19548 GNULIB_SPRINTF_POSIX=0;
19549 GNULIB_STDIO_H_NONBLOCKING=0;
19550 GNULIB_STDIO_H_SIGPIPE=0;
19551 GNULIB_TMPFILE=0;
19552 GNULIB_VASPRINTF=0;
19553 GNULIB_VFSCANF=0;
19554 GNULIB_VSCANF=0;
19555 GNULIB_VDPRINTF=0;
19556 GNULIB_VFPRINTF=0;
19557 GNULIB_VFPRINTF_POSIX=0;
19558 GNULIB_VPRINTF=0;
19559 GNULIB_VPRINTF_POSIX=0;
19560 GNULIB_VSNPRINTF=0;
19561 GNULIB_VSPRINTF_POSIX=0;
19562 HAVE_DECL_FPURGE=1;
19563 HAVE_DECL_FSEEKO=1;
19564 HAVE_DECL_FTELLO=1;
19565 HAVE_DECL_GETDELIM=1;
19566 HAVE_DECL_GETLINE=1;
19567 HAVE_DECL_OBSTACK_PRINTF=1;
19568 HAVE_DECL_SNPRINTF=1;
19569 HAVE_DECL_VSNPRINTF=1;
19570 HAVE_DPRINTF=1;
19571 HAVE_FSEEKO=1;
19572 HAVE_FTELLO=1;
19573 HAVE_PCLOSE=1;
19574 HAVE_POPEN=1;
19575 HAVE_RENAMEAT=1;
19576 HAVE_VASPRINTF=1;
19577 HAVE_VDPRINTF=1;
19578 REPLACE_DPRINTF=0;
19579 REPLACE_FCLOSE=0;
19580 REPLACE_FDOPEN=0;
19581 REPLACE_FFLUSH=0;
19582 REPLACE_FOPEN=0;
19583 REPLACE_FPRINTF=0;
19584 REPLACE_FPURGE=0;
19585 REPLACE_FREOPEN=0;
19586 REPLACE_FSEEK=0;
19587 REPLACE_FSEEKO=0;
19588 REPLACE_FTELL=0;
19589 REPLACE_FTELLO=0;
19590 REPLACE_GETDELIM=0;
19591 REPLACE_GETLINE=0;
19592 REPLACE_OBSTACK_PRINTF=0;
19593 REPLACE_PERROR=0;
19594 REPLACE_POPEN=0;
19595 REPLACE_PRINTF=0;
19596 REPLACE_REMOVE=0;
19597 REPLACE_RENAME=0;
19598 REPLACE_RENAMEAT=0;
19599 REPLACE_SNPRINTF=0;
19600 REPLACE_SPRINTF=0;
19601 REPLACE_STDIO_READ_FUNCS=0;
19602 REPLACE_STDIO_WRITE_FUNCS=0;
19603 REPLACE_TMPFILE=0;
19604 REPLACE_VASPRINTF=0;
19605 REPLACE_VDPRINTF=0;
19606 REPLACE_VFPRINTF=0;
19607 REPLACE_VPRINTF=0;
19608 REPLACE_VSNPRINTF=0;
19609 REPLACE_VSPRINTF=0;
19610
19611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
19612 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
19613 if test "${ac_cv_struct_tm+set}" = set; then :
19614 $as_echo_n "(cached) " >&6
19615 else
19616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19617 /* end confdefs.h. */
19618 #include <sys/types.h>
19619 #include <time.h>
19620
19621 int
19622 main ()
19623 {
19624 struct tm tm;
19625 int *p = &tm.tm_sec;
19626 return !p;
19627 ;
19628 return 0;
19629 }
19630 _ACEOF
19631 if ac_fn_c_try_compile "$LINENO"; then :
19632 ac_cv_struct_tm=time.h
19633 else
19634 ac_cv_struct_tm=sys/time.h
19635 fi
19636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19637 fi
19638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
19639 $as_echo "$ac_cv_struct_tm" >&6; }
19640 if test $ac_cv_struct_tm = sys/time.h; then
19641
19642 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
19643
19644 fi
19645
19646 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
19647 #include <$ac_cv_struct_tm>
19648
19649 "
19650 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
19651
19652 cat >>confdefs.h <<_ACEOF
19653 #define HAVE_STRUCT_TM_TM_ZONE 1
19654 _ACEOF
19655
19656
19657 fi
19658
19659 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19660
19661 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
19662
19663 else
19664 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
19665 "
19666 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
19667 ac_have_decl=1
19668 else
19669 ac_have_decl=0
19670 fi
19671
19672 cat >>confdefs.h <<_ACEOF
19673 #define HAVE_DECL_TZNAME $ac_have_decl
19674 _ACEOF
19675
19676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
19677 $as_echo_n "checking for tzname... " >&6; }
19678 if test "${ac_cv_var_tzname+set}" = set; then :
19679 $as_echo_n "(cached) " >&6
19680 else
19681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19682 /* end confdefs.h. */
19683 #include <time.h>
19684 #if !HAVE_DECL_TZNAME
19685 extern char *tzname[];
19686 #endif
19687
19688 int
19689 main ()
19690 {
19691 return tzname[0][0];
19692 ;
19693 return 0;
19694 }
19695 _ACEOF
19696 if ac_fn_c_try_link "$LINENO"; then :
19697 ac_cv_var_tzname=yes
19698 else
19699 ac_cv_var_tzname=no
19700 fi
19701 rm -f core conftest.err conftest.$ac_objext \
19702 conftest$ac_exeext conftest.$ac_ext
19703 fi
19704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
19705 $as_echo "$ac_cv_var_tzname" >&6; }
19706 if test $ac_cv_var_tzname = yes; then
19707
19708 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
19709
19710 fi
19711 fi
19712
19713
19714 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
19715 "
19716 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
19717
19718 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
19719
19720 fi
19721
19722
19723
19724
19725 ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
19726 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then :
19727 ac_have_decl=1
19728 else
19729 ac_have_decl=0
19730 fi
19731
19732 cat >>confdefs.h <<_ACEOF
19733 #define HAVE_DECL_STRTOIMAX $ac_have_decl
19734 _ACEOF
19735
19736
19737
19738 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
19739 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
19740 ac_have_decl=1
19741 else
19742 ac_have_decl=0
19743 fi
19744
19745 cat >>confdefs.h <<_ACEOF
19746 #define HAVE_DECL_STRTOUMAX $ac_have_decl
19747 _ACEOF
19748
19749
19750
19751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
19752 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
19753 if test "${ac_cv_header_stat_broken+set}" = set; then :
19754 $as_echo_n "(cached) " >&6
19755 else
19756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19757 /* end confdefs.h. */
19758 #include <sys/types.h>
19759 #include <sys/stat.h>
19760
19761 #if defined S_ISBLK && defined S_IFDIR
19762 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19763 #endif
19764
19765 #if defined S_ISBLK && defined S_IFCHR
19766 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19767 #endif
19768
19769 #if defined S_ISLNK && defined S_IFREG
19770 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19771 #endif
19772
19773 #if defined S_ISSOCK && defined S_IFREG
19774 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19775 #endif
19776
19777 _ACEOF
19778 if ac_fn_c_try_compile "$LINENO"; then :
19779 ac_cv_header_stat_broken=no
19780 else
19781 ac_cv_header_stat_broken=yes
19782 fi
19783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19784 fi
19785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
19786 $as_echo "$ac_cv_header_stat_broken" >&6; }
19787 if test $ac_cv_header_stat_broken = yes; then
19788
19789 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
19790
19791 fi
19792
19793
19794
19795
19796
19797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
19798 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
19799 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
19800 $as_echo_n "(cached) " >&6
19801 else
19802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19803 /* end confdefs.h. */
19804 #include <time.h>
19805
19806 int
19807 main ()
19808 {
19809 static struct timespec x; x.tv_sec = x.tv_nsec;
19810 ;
19811 return 0;
19812 }
19813 _ACEOF
19814 if ac_fn_c_try_compile "$LINENO"; then :
19815 gl_cv_sys_struct_timespec_in_time_h=yes
19816 else
19817 gl_cv_sys_struct_timespec_in_time_h=no
19818 fi
19819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19820 fi
19821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
19822 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
19823
19824 TIME_H_DEFINES_STRUCT_TIMESPEC=0
19825 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
19826 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
19827 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
19828 TIME_H_DEFINES_STRUCT_TIMESPEC=1
19829 else
19830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
19831 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
19832 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
19833 $as_echo_n "(cached) " >&6
19834 else
19835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19836 /* end confdefs.h. */
19837 #include <sys/time.h>
19838
19839 int
19840 main ()
19841 {
19842 static struct timespec x; x.tv_sec = x.tv_nsec;
19843 ;
19844 return 0;
19845 }
19846 _ACEOF
19847 if ac_fn_c_try_compile "$LINENO"; then :
19848 gl_cv_sys_struct_timespec_in_sys_time_h=yes
19849 else
19850 gl_cv_sys_struct_timespec_in_sys_time_h=no
19851 fi
19852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19853 fi
19854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
19855 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
19856 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
19857 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
19858 else
19859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
19860 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
19861 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
19862 $as_echo_n "(cached) " >&6
19863 else
19864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19865 /* end confdefs.h. */
19866 #include <pthread.h>
19867
19868 int
19869 main ()
19870 {
19871 static struct timespec x; x.tv_sec = x.tv_nsec;
19872 ;
19873 return 0;
19874 }
19875 _ACEOF
19876 if ac_fn_c_try_compile "$LINENO"; then :
19877 gl_cv_sys_struct_timespec_in_pthread_h=yes
19878 else
19879 gl_cv_sys_struct_timespec_in_pthread_h=no
19880 fi
19881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19882 fi
19883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
19884 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
19885 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
19886 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
19887 fi
19888 fi
19889 fi
19890
19891
19892
19893
19894
19895
19896
19897
19898
19899
19900
19901
19902
19903
19904
19905 if test $gl_cv_have_include_next = yes; then
19906 gl_cv_next_time_h='<'time.h'>'
19907 else
19908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
19909 $as_echo_n "checking absolute name of <time.h>... " >&6; }
19910 if test "${gl_cv_next_time_h+set}" = set; then :
19911 $as_echo_n "(cached) " >&6
19912 else
19913
19914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19915 /* end confdefs.h. */
19916 #include <time.h>
19917
19918 _ACEOF
19919 case "$host_os" in
19920 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19921 *) gl_absname_cpp="$ac_cpp" ;;
19922 esac
19923
19924 case "$host_os" in
19925 mingw*)
19926 gl_dirsep_regex='[/\\]'
19927 ;;
19928 *)
19929 gl_dirsep_regex='\/'
19930 ;;
19931 esac
19932 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19933
19934 gl_header_literal_regex=`echo 'time.h' \
19935 | sed -e "$gl_make_literal_regex_sed"`
19936 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19937 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19938 s|^/[^/]|//&|
19939 p
19940 q
19941 }'
19942 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19943 sed -n "$gl_absolute_header_sed"`'"'
19944
19945
19946 fi
19947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
19948 $as_echo "$gl_cv_next_time_h" >&6; }
19949 fi
19950 NEXT_TIME_H=$gl_cv_next_time_h
19951
19952 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19953 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19954 gl_next_as_first_directive='<'time.h'>'
19955 else
19956 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19957 gl_next_as_first_directive=$gl_cv_next_time_h
19958 fi
19959 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
19960
19961
19962
19963
19964
19965
19966
19967
19968
19969
19970
19971
19972
19973
19974
19975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
19976 $as_echo_n "checking whether the utimes function works... " >&6; }
19977 if test "${gl_cv_func_working_utimes+set}" = set; then :
19978 $as_echo_n "(cached) " >&6
19979 else
19980
19981 if test "$cross_compiling" = yes; then :
19982 gl_cv_func_working_utimes=no
19983 else
19984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19985 /* end confdefs.h. */
19986
19987 #include <sys/types.h>
19988 #include <sys/stat.h>
19989 #include <fcntl.h>
19990 #include <sys/time.h>
19991 #include <time.h>
19992 #include <unistd.h>
19993 #include <stdlib.h>
19994 #include <stdio.h>
19995 #include <utime.h>
19996
19997 static int
19998 inorder (time_t a, time_t b, time_t c)
19999 {
20000 return a <= b && b <= c;
20001 }
20002
20003 int
20004 main ()
20005 {
20006 int result = 0;
20007 char const *file = "conftest.utimes";
20008 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
20009
20010 /* Test whether utimes() essentially works. */
20011 {
20012 struct stat sbuf;
20013 FILE *f = fopen (file, "w");
20014 if (f == NULL)
20015 result |= 1;
20016 else if (fclose (f) != 0)
20017 result |= 1;
20018 else if (utimes (file, timeval) != 0)
20019 result |= 2;
20020 else if (lstat (file, &sbuf) != 0)
20021 result |= 1;
20022 else if (!(sbuf.st_atime == timeval[0].tv_sec
20023 && sbuf.st_mtime == timeval[1].tv_sec))
20024 result |= 4;
20025 if (unlink (file) != 0)
20026 result |= 1;
20027 }
20028
20029 /* Test whether utimes() with a NULL argument sets the file's timestamp
20030 to the current time. Use 'fstat' as well as 'time' to
20031 determine the "current" time, to accommodate NFS file systems
20032 if there is a time skew between the host and the NFS server. */
20033 {
20034 int fd = open (file, O_WRONLY|O_CREAT, 0644);
20035 if (fd < 0)
20036 result |= 1;
20037 else
20038 {
20039 time_t t0, t2;
20040 struct stat st0, st1, st2;
20041 if (time (&t0) == (time_t) -1)
20042 result |= 1;
20043 else if (fstat (fd, &st0) != 0)
20044 result |= 1;
20045 else if (utimes (file, timeval) != 0)
20046 result |= 2;
20047 else if (utimes (file, NULL) != 0)
20048 result |= 8;
20049 else if (fstat (fd, &st1) != 0)
20050 result |= 1;
20051 else if (write (fd, "\n", 1) != 1)
20052 result |= 1;
20053 else if (fstat (fd, &st2) != 0)
20054 result |= 1;
20055 else if (time (&t2) == (time_t) -1)
20056 result |= 1;
20057 else
20058 {
20059 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
20060 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
20061 if (! (st1.st_atime == st1.st_mtime))
20062 result |= 16;
20063 if (! (m_ok_POSIX || m_ok_NFS))
20064 result |= 32;
20065 }
20066 if (close (fd) != 0)
20067 result |= 1;
20068 }
20069 if (unlink (file) != 0)
20070 result |= 1;
20071 }
20072
20073 /* Test whether utimes() with a NULL argument works on read-only files. */
20074 {
20075 int fd = open (file, O_WRONLY|O_CREAT, 0444);
20076 if (fd < 0)
20077 result |= 1;
20078 else if (close (fd) != 0)
20079 result |= 1;
20080 else if (utimes (file, NULL) != 0)
20081 result |= 64;
20082 if (unlink (file) != 0)
20083 result |= 1;
20084 }
20085
20086 return result;
20087 }
20088
20089 _ACEOF
20090 if ac_fn_c_try_run "$LINENO"; then :
20091 gl_cv_func_working_utimes=yes
20092 else
20093 gl_cv_func_working_utimes=no
20094 fi
20095 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20096 conftest.$ac_objext conftest.beam conftest.$ac_ext
20097 fi
20098
20099 fi
20100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
20101 $as_echo "$gl_cv_func_working_utimes" >&6; }
20102
20103 if test $gl_cv_func_working_utimes = yes; then
20104
20105 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
20106
20107 fi
20108
20109
20110
20111
20112
20113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
20114 $as_echo_n "checking for struct utimbuf... " >&6; }
20115 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then :
20116 $as_echo_n "(cached) " >&6
20117 else
20118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20119 /* end confdefs.h. */
20120 #if HAVE_SYS_TIME_H
20121 #include <sys/time.h>
20122 #endif
20123 #include <time.h>
20124 #ifdef HAVE_UTIME_H
20125 #include <utime.h>
20126 #endif
20127
20128 int
20129 main ()
20130 {
20131 static struct utimbuf x; x.actime = x.modtime;
20132 ;
20133 return 0;
20134 }
20135 _ACEOF
20136 if ac_fn_c_try_compile "$LINENO"; then :
20137 gl_cv_sys_struct_utimbuf=yes
20138 else
20139 gl_cv_sys_struct_utimbuf=no
20140 fi
20141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20142 fi
20143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
20144 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
20145
20146 if test $gl_cv_sys_struct_utimbuf = yes; then
20147
20148 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
20149
20150 fi
20151
20152
20153
20154
20155
20156
20157
20158
20159
20160
20161
20162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
20163 $as_echo_n "checking type of array argument to getgroups... " >&6; }
20164 if test "${ac_cv_type_getgroups+set}" = set; then :
20165 $as_echo_n "(cached) " >&6
20166 else
20167 if test "$cross_compiling" = yes; then :
20168 ac_cv_type_getgroups=cross
20169 else
20170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20171 /* end confdefs.h. */
20172 /* Thanks to Mike Rendell for this test. */
20173 $ac_includes_default
20174 #define NGID 256
20175 #undef MAX
20176 #define MAX(x, y) ((x) > (y) ? (x) : (y))
20177
20178 int
20179 main ()
20180 {
20181 gid_t gidset[NGID];
20182 int i, n;
20183 union { gid_t gval; long int lval; } val;
20184
20185 val.lval = -1;
20186 for (i = 0; i < NGID; i++)
20187 gidset[i] = val.gval;
20188 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
20189 gidset);
20190 /* Exit non-zero if getgroups seems to require an array of ints. This
20191 happens when gid_t is short int but getgroups modifies an array
20192 of ints. */
20193 return n > 0 && gidset[n] != val.gval;
20194 }
20195 _ACEOF
20196 if ac_fn_c_try_run "$LINENO"; then :
20197 ac_cv_type_getgroups=gid_t
20198 else
20199 ac_cv_type_getgroups=int
20200 fi
20201 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20202 conftest.$ac_objext conftest.beam conftest.$ac_ext
20203 fi
20204
20205 if test $ac_cv_type_getgroups = cross; then
20206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20207 /* end confdefs.h. */
20208 #include <unistd.h>
20209
20210 _ACEOF
20211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20212 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
20213 ac_cv_type_getgroups=gid_t
20214 else
20215 ac_cv_type_getgroups=int
20216 fi
20217 rm -f conftest*
20218
20219 fi
20220 fi
20221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
20222 $as_echo "$ac_cv_type_getgroups" >&6; }
20223
20224 cat >>confdefs.h <<_ACEOF
20225 #define GETGROUPS_T $ac_cv_type_getgroups
20226 _ACEOF
20227
20228
20229
20230
20231 if false; then
20232 GL_COND_LIBTOOL_TRUE=
20233 GL_COND_LIBTOOL_FALSE='#'
20234 else
20235 GL_COND_LIBTOOL_TRUE='#'
20236 GL_COND_LIBTOOL_FALSE=
20237 fi
20238
20239 gl_cond_libtool=false
20240 gl_libdeps=
20241 gl_ltlibdeps=
20242 gl_m4_base='m4'
20243
20244
20245
20246
20247
20248
20249
20250
20251
20252 gl_source_base='lib'
20253
20254
20255 if test $ac_cv_func_alloca_works = no; then
20256 :
20257 fi
20258
20259 # Define an additional variable used in the Makefile substitution.
20260 if test $ac_cv_working_alloca_h = yes; then
20261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
20262 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
20263 if test "${gl_cv_rpl_alloca+set}" = set; then :
20264 $as_echo_n "(cached) " >&6
20265 else
20266
20267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20268 /* end confdefs.h. */
20269
20270 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
20271 Need own alloca
20272 #endif
20273
20274 _ACEOF
20275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20276 $EGREP "Need own alloca" >/dev/null 2>&1; then :
20277 gl_cv_rpl_alloca=yes
20278 else
20279 gl_cv_rpl_alloca=no
20280 fi
20281 rm -f conftest*
20282
20283
20284 fi
20285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
20286 $as_echo "$gl_cv_rpl_alloca" >&6; }
20287 if test $gl_cv_rpl_alloca = yes; then
20288
20289 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
20290
20291 ALLOCA_H=alloca.h
20292 else
20293 ALLOCA_H=
20294 fi
20295 else
20296 ALLOCA_H=alloca.h
20297 fi
20298
20299 if test -n "$ALLOCA_H"; then
20300 GL_GENERATE_ALLOCA_H_TRUE=
20301 GL_GENERATE_ALLOCA_H_FALSE='#'
20302 else
20303 GL_GENERATE_ALLOCA_H_TRUE='#'
20304 GL_GENERATE_ALLOCA_H_FALSE=
20305 fi
20306
20307
20308
20309
20310
20311
20312 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
20313 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
20314
20315 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
20316 # programs in the package would end up linked with that potentially-shared
20317 # library, inducing unnecessary run-time overhead.
20318 LIB_CLOCK_GETTIME=
20319
20320 gl_saved_libs=$LIBS
20321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
20322 $as_echo_n "checking for library containing clock_gettime... " >&6; }
20323 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20324 $as_echo_n "(cached) " >&6
20325 else
20326 ac_func_search_save_LIBS=$LIBS
20327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20328 /* end confdefs.h. */
20329
20330 /* Override any GCC internal prototype to avoid an error.
20331 Use char because int might match the return type of a GCC
20332 builtin and then its argument prototype would still apply. */
20333 #ifdef __cplusplus
20334 extern "C"
20335 #endif
20336 char clock_gettime ();
20337 int
20338 main ()
20339 {
20340 return clock_gettime ();
20341 ;
20342 return 0;
20343 }
20344 _ACEOF
20345 for ac_lib in '' rt posix4; do
20346 if test -z "$ac_lib"; then
20347 ac_res="none required"
20348 else
20349 ac_res=-l$ac_lib
20350 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20351 fi
20352 if ac_fn_c_try_link "$LINENO"; then :
20353 ac_cv_search_clock_gettime=$ac_res
20354 fi
20355 rm -f core conftest.err conftest.$ac_objext \
20356 conftest$ac_exeext
20357 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20358 break
20359 fi
20360 done
20361 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20362
20363 else
20364 ac_cv_search_clock_gettime=no
20365 fi
20366 rm conftest.$ac_ext
20367 LIBS=$ac_func_search_save_LIBS
20368 fi
20369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
20370 $as_echo "$ac_cv_search_clock_gettime" >&6; }
20371 ac_res=$ac_cv_search_clock_gettime
20372 if test "$ac_res" != no; then :
20373 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20374 test "$ac_cv_search_clock_gettime" = "none required" ||
20375 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
20376 fi
20377
20378 for ac_func in clock_gettime clock_settime
20379 do :
20380 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20381 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20382 eval as_val=\$$as_ac_var
20383 if test "x$as_val" = x""yes; then :
20384 cat >>confdefs.h <<_ACEOF
20385 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20386 _ACEOF
20387
20388 fi
20389 done
20390
20391 LIBS=$gl_saved_libs
20392
20393
20394 :
20395
20396
20397
20398 cat >>confdefs.h <<_ACEOF
20399 #define GNULIB_CLOSE_STREAM 1
20400 _ACEOF
20401
20402
20403
20404
20405
20406 :
20407
20408
20409
20410
20411 :
20412
20413
20414
20415
20416
20417
20418
20419
20420
20421
20422
20423
20424
20425
20426
20427 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
20428
20429
20430 if test $HAVE_DUP2 = 1; then
20431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
20432 $as_echo_n "checking whether dup2 works... " >&6; }
20433 if test "${gl_cv_func_dup2_works+set}" = set; then :
20434 $as_echo_n "(cached) " >&6
20435 else
20436 if test "$cross_compiling" = yes; then :
20437 case "$host_os" in
20438 mingw*) # on this platform, dup2 always returns 0 for success
20439 gl_cv_func_dup2_works="guessing no" ;;
20440 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
20441 gl_cv_func_dup2_works="guessing no" ;;
20442 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
20443 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
20444 gl_cv_func_dup2_works="guessing no" ;;
20445 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
20446 gl_cv_func_dup2_works="guessing no" ;;
20447 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
20448 gl_cv_func_dup2_works="guessing no" ;;
20449 *) gl_cv_func_dup2_works="guessing yes" ;;
20450 esac
20451 else
20452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20453 /* end confdefs.h. */
20454
20455 #include <unistd.h>
20456 #include <fcntl.h>
20457 #include <errno.h>
20458 int
20459 main ()
20460 {
20461 int result = 0;
20462 #ifdef FD_CLOEXEC
20463 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
20464 result |= 1;
20465 #endif
20466 if (dup2 (1, 1) == 0)
20467 result |= 2;
20468 #ifdef FD_CLOEXEC
20469 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
20470 result |= 4;
20471 #endif
20472 close (0);
20473 if (dup2 (0, 0) != -1)
20474 result |= 8;
20475 /* Many gnulib modules require POSIX conformance of EBADF. */
20476 if (dup2 (2, 1000000) == -1 && errno != EBADF)
20477 result |= 16;
20478 return result;
20479
20480 ;
20481 return 0;
20482 }
20483
20484 _ACEOF
20485 if ac_fn_c_try_run "$LINENO"; then :
20486 gl_cv_func_dup2_works=yes
20487 else
20488 gl_cv_func_dup2_works=no
20489 fi
20490 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20491 conftest.$ac_objext conftest.beam conftest.$ac_ext
20492 fi
20493
20494
20495 fi
20496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
20497 $as_echo "$gl_cv_func_dup2_works" >&6; }
20498 case "$gl_cv_func_dup2_works" in
20499 *yes) ;;
20500 *)
20501 REPLACE_DUP2=1
20502 ;;
20503 esac
20504 fi
20505
20506
20507 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
20508
20509
20510
20511
20512
20513
20514
20515
20516 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
20517
20518
20519 fi
20520
20521
20522
20523
20524
20525 GNULIB_DUP2=1
20526
20527
20528
20529
20530
20531
20532
20533
20534
20535
20536
20537 GNULIB_ENVIRON=1
20538
20539
20540
20541
20542
20543
20544
20545
20546 LIB_EXECINFO=''
20547 EXECINFO_H='execinfo.h'
20548
20549 if test $ac_cv_header_execinfo_h = yes; then
20550 gl_saved_libs=$LIBS
20551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols_fd" >&5
20552 $as_echo_n "checking for library containing backtrace_symbols_fd... " >&6; }
20553 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20554 $as_echo_n "(cached) " >&6
20555 else
20556 ac_func_search_save_LIBS=$LIBS
20557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20558 /* end confdefs.h. */
20559
20560 /* Override any GCC internal prototype to avoid an error.
20561 Use char because int might match the return type of a GCC
20562 builtin and then its argument prototype would still apply. */
20563 #ifdef __cplusplus
20564 extern "C"
20565 #endif
20566 char backtrace_symbols_fd ();
20567 int
20568 main ()
20569 {
20570 return backtrace_symbols_fd ();
20571 ;
20572 return 0;
20573 }
20574 _ACEOF
20575 for ac_lib in '' execinfo; do
20576 if test -z "$ac_lib"; then
20577 ac_res="none required"
20578 else
20579 ac_res=-l$ac_lib
20580 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20581 fi
20582 if ac_fn_c_try_link "$LINENO"; then :
20583 ac_cv_search_backtrace_symbols_fd=$ac_res
20584 fi
20585 rm -f core conftest.err conftest.$ac_objext \
20586 conftest$ac_exeext
20587 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20588 break
20589 fi
20590 done
20591 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20592
20593 else
20594 ac_cv_search_backtrace_symbols_fd=no
20595 fi
20596 rm conftest.$ac_ext
20597 LIBS=$ac_func_search_save_LIBS
20598 fi
20599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols_fd" >&5
20600 $as_echo "$ac_cv_search_backtrace_symbols_fd" >&6; }
20601 ac_res=$ac_cv_search_backtrace_symbols_fd
20602 if test "$ac_res" != no; then :
20603 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20604 test "$ac_cv_search_backtrace_symbols_fd" = "none required" ||
20605 LIB_EXECINFO=$ac_cv_search_backtrace_symbols_fd
20606 fi
20607
20608 LIBS=$gl_saved_libs
20609 test "$ac_cv_search_backtrace_symbols_fd" = no || EXECINFO_H=''
20610 fi
20611
20612 if test -n "$EXECINFO_H"; then
20613
20614
20615
20616
20617
20618
20619
20620
20621 gl_LIBOBJS="$gl_LIBOBJS execinfo.$ac_objext"
20622
20623 fi
20624
20625
20626
20627 if test -n "$EXECINFO_H"; then
20628 GL_GENERATE_EXECINFO_H_TRUE=
20629 GL_GENERATE_EXECINFO_H_FALSE='#'
20630 else
20631 GL_GENERATE_EXECINFO_H_TRUE='#'
20632 GL_GENERATE_EXECINFO_H_FALSE=
20633 fi
20634
20635
20636
20637
20638
20639
20640
20641
20642
20643 if test $ac_cv_func_faccessat = no; then
20644 HAVE_FACCESSAT=0
20645 fi
20646
20647 if test $HAVE_FACCESSAT = 0; then
20648
20649
20650
20651
20652
20653
20654
20655
20656 gl_LIBOBJS="$gl_LIBOBJS faccessat.$ac_objext"
20657
20658
20659 for ac_func in access
20660 do :
20661 ac_fn_c_check_func "$LINENO" "access" "ac_cv_func_access"
20662 if test "x$ac_cv_func_access" = x""yes; then :
20663 cat >>confdefs.h <<_ACEOF
20664 #define HAVE_ACCESS 1
20665 _ACEOF
20666
20667 fi
20668 done
20669
20670
20671 fi
20672
20673
20674 cat >>confdefs.h <<_ACEOF
20675 #define GNULIB_FACCESSAT 1
20676 _ACEOF
20677
20678
20679
20680
20681
20682
20683
20684 GNULIB_FACCESSAT=1
20685
20686
20687
20688
20689
20690
20691
20692
20693
20694
20695
20696
20697
20698
20699
20700
20701 if test $gl_cv_have_include_next = yes; then
20702 gl_cv_next_fcntl_h='<'fcntl.h'>'
20703 else
20704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
20705 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
20706 if test "${gl_cv_next_fcntl_h+set}" = set; then :
20707 $as_echo_n "(cached) " >&6
20708 else
20709
20710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20711 /* end confdefs.h. */
20712 #include <fcntl.h>
20713
20714 _ACEOF
20715 case "$host_os" in
20716 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20717 *) gl_absname_cpp="$ac_cpp" ;;
20718 esac
20719
20720 case "$host_os" in
20721 mingw*)
20722 gl_dirsep_regex='[/\\]'
20723 ;;
20724 *)
20725 gl_dirsep_regex='\/'
20726 ;;
20727 esac
20728 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20729
20730 gl_header_literal_regex=`echo 'fcntl.h' \
20731 | sed -e "$gl_make_literal_regex_sed"`
20732 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20733 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20734 s|^/[^/]|//&|
20735 p
20736 q
20737 }'
20738 gl_cv_next_fcntl_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20739 sed -n "$gl_absolute_header_sed"`'"'
20740
20741
20742 fi
20743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
20744 $as_echo "$gl_cv_next_fcntl_h" >&6; }
20745 fi
20746 NEXT_FCNTL_H=$gl_cv_next_fcntl_h
20747
20748 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20749 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20750 gl_next_as_first_directive='<'fcntl.h'>'
20751 else
20752 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20753 gl_next_as_first_directive=$gl_cv_next_fcntl_h
20754 fi
20755 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
20756
20757
20758
20759
20760
20761
20762
20763
20764
20765
20766
20767
20768
20769
20770
20771
20772
20773
20774 fp_headers='
20775 # include <stdio.h>
20776 # if HAVE_STDIO_EXT_H
20777 # include <stdio_ext.h>
20778 # endif
20779 '
20780 ac_fn_c_check_decl "$LINENO" "__fpending" "ac_cv_have_decl___fpending" "$fp_headers
20781 "
20782 if test "x$ac_cv_have_decl___fpending" = x""yes; then :
20783 ac_have_decl=1
20784 else
20785 ac_have_decl=0
20786 fi
20787
20788 cat >>confdefs.h <<_ACEOF
20789 #define HAVE_DECL___FPENDING $ac_have_decl
20790 _ACEOF
20791
20792
20793 if test $ac_cv_func___fpending = no; then
20794
20795
20796
20797
20798
20799
20800
20801
20802 gl_LIBOBJS="$gl_LIBOBJS fpending.$ac_objext"
20803
20804
20805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to determine the number of pending output bytes on a stream" >&5
20806 $as_echo_n "checking how to determine the number of pending output bytes on a stream... " >&6; }
20807 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then :
20808 $as_echo_n "(cached) " >&6
20809 else
20810
20811 for ac_expr in \
20812 \
20813 '# glibc2' \
20814 'fp->_IO_write_ptr - fp->_IO_write_base' \
20815 \
20816 '# traditional Unix' \
20817 'fp->_ptr - fp->_base' \
20818 \
20819 '# BSD' \
20820 'fp->_p - fp->_bf._base' \
20821 \
20822 '# SCO, Unixware' \
20823 '(fp->__ptr ? fp->__ptr - fp->__base : 0)' \
20824 \
20825 '# QNX' \
20826 '(fp->_Mode & 0x2000 /*_MWRITE*/ ? fp->_Next - fp->_Buf : 0)' \
20827 \
20828 '# old glibc?' \
20829 'fp->__bufp - fp->__buffer' \
20830 \
20831 '# old glibc iostream?' \
20832 'fp->_pptr - fp->_pbase' \
20833 \
20834 '# emx+gcc' \
20835 'fp->_ptr - fp->_buffer' \
20836 \
20837 '# Minix' \
20838 'fp->_ptr - fp->_buf' \
20839 \
20840 '# Plan9' \
20841 'fp->wp - fp->buf' \
20842 \
20843 '# VMS' \
20844 '(*fp)->_ptr - (*fp)->_base' \
20845 \
20846 '# e.g., DGUX R4.11; the info is not available' \
20847 1 \
20848 ; do
20849
20850 # Skip each embedded comment.
20851 case "$ac_expr" in '#'*) continue;; esac
20852
20853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20854 /* end confdefs.h. */
20855 #include <stdio.h>
20856 int
20857 main ()
20858 {
20859 FILE *fp = stdin; (void) ($ac_expr);
20860 ;
20861 return 0;
20862 }
20863 _ACEOF
20864 if ac_fn_c_try_compile "$LINENO"; then :
20865 fp_done=yes
20866
20867 fi
20868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20869 test "$fp_done" = yes && break
20870 done
20871
20872 ac_cv_sys_pending_output_n_bytes=$ac_expr
20873
20874
20875 fi
20876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_pending_output_n_bytes" >&5
20877 $as_echo "$ac_cv_sys_pending_output_n_bytes" >&6; }
20878
20879 cat >>confdefs.h <<_ACEOF
20880 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
20881 _ACEOF
20882
20883
20884 fi
20885
20886
20887 # Persuade glibc <stdlib.h> to declare getloadavg().
20888
20889
20890 gl_save_LIBS=$LIBS
20891
20892 # getloadvg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
20893 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
20894 HAVE_GETLOADAVG=1
20895 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
20896 if test "x$ac_cv_func_getloadavg" = x""yes; then :
20897
20898 else
20899 gl_func_getloadavg_done=no
20900
20901 # Some systems with -lutil have (and need) -lkvm as well, some do not.
20902 # On Solaris, -lkvm requires nlist from -lelf, so check that first
20903 # to get the right answer into the cache.
20904 # For kstat on solaris, we need to test for libelf and libkvm to force the
20905 # definition of SVR4 below.
20906 if test $gl_func_getloadavg_done = no; then
20907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
20908 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
20909 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
20910 $as_echo_n "(cached) " >&6
20911 else
20912 ac_check_lib_save_LIBS=$LIBS
20913 LIBS="-lelf $LIBS"
20914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20915 /* end confdefs.h. */
20916
20917 /* Override any GCC internal prototype to avoid an error.
20918 Use char because int might match the return type of a GCC
20919 builtin and then its argument prototype would still apply. */
20920 #ifdef __cplusplus
20921 extern "C"
20922 #endif
20923 char elf_begin ();
20924 int
20925 main ()
20926 {
20927 return elf_begin ();
20928 ;
20929 return 0;
20930 }
20931 _ACEOF
20932 if ac_fn_c_try_link "$LINENO"; then :
20933 ac_cv_lib_elf_elf_begin=yes
20934 else
20935 ac_cv_lib_elf_elf_begin=no
20936 fi
20937 rm -f core conftest.err conftest.$ac_objext \
20938 conftest$ac_exeext conftest.$ac_ext
20939 LIBS=$ac_check_lib_save_LIBS
20940 fi
20941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
20942 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
20943 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
20944 LIBS="-lelf $LIBS"
20945 fi
20946
20947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
20948 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
20949 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
20950 $as_echo_n "(cached) " >&6
20951 else
20952 ac_check_lib_save_LIBS=$LIBS
20953 LIBS="-lkvm $LIBS"
20954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20955 /* end confdefs.h. */
20956
20957 /* Override any GCC internal prototype to avoid an error.
20958 Use char because int might match the return type of a GCC
20959 builtin and then its argument prototype would still apply. */
20960 #ifdef __cplusplus
20961 extern "C"
20962 #endif
20963 char kvm_open ();
20964 int
20965 main ()
20966 {
20967 return kvm_open ();
20968 ;
20969 return 0;
20970 }
20971 _ACEOF
20972 if ac_fn_c_try_link "$LINENO"; then :
20973 ac_cv_lib_kvm_kvm_open=yes
20974 else
20975 ac_cv_lib_kvm_kvm_open=no
20976 fi
20977 rm -f core conftest.err conftest.$ac_objext \
20978 conftest$ac_exeext conftest.$ac_ext
20979 LIBS=$ac_check_lib_save_LIBS
20980 fi
20981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
20982 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
20983 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
20984 LIBS="-lkvm $LIBS"
20985 fi
20986
20987 # Check for the 4.4BSD definition of getloadavg.
20988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
20989 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
20990 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
20991 $as_echo_n "(cached) " >&6
20992 else
20993 ac_check_lib_save_LIBS=$LIBS
20994 LIBS="-lutil $LIBS"
20995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20996 /* end confdefs.h. */
20997
20998 /* Override any GCC internal prototype to avoid an error.
20999 Use char because int might match the return type of a GCC
21000 builtin and then its argument prototype would still apply. */
21001 #ifdef __cplusplus
21002 extern "C"
21003 #endif
21004 char getloadavg ();
21005 int
21006 main ()
21007 {
21008 return getloadavg ();
21009 ;
21010 return 0;
21011 }
21012 _ACEOF
21013 if ac_fn_c_try_link "$LINENO"; then :
21014 ac_cv_lib_util_getloadavg=yes
21015 else
21016 ac_cv_lib_util_getloadavg=no
21017 fi
21018 rm -f core conftest.err conftest.$ac_objext \
21019 conftest$ac_exeext conftest.$ac_ext
21020 LIBS=$ac_check_lib_save_LIBS
21021 fi
21022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
21023 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
21024 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
21025 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
21026 fi
21027
21028 fi
21029
21030 if test $gl_func_getloadavg_done = no; then
21031 # There is a commonly available library for RS/6000 AIX.
21032 # Since it is not a standard part of AIX, it might be installed locally.
21033 gl_getloadavg_LIBS=$LIBS
21034 LIBS="-L/usr/local/lib $LIBS"
21035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
21036 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
21037 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
21038 $as_echo_n "(cached) " >&6
21039 else
21040 ac_check_lib_save_LIBS=$LIBS
21041 LIBS="-lgetloadavg $LIBS"
21042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21043 /* end confdefs.h. */
21044
21045 /* Override any GCC internal prototype to avoid an error.
21046 Use char because int might match the return type of a GCC
21047 builtin and then its argument prototype would still apply. */
21048 #ifdef __cplusplus
21049 extern "C"
21050 #endif
21051 char getloadavg ();
21052 int
21053 main ()
21054 {
21055 return getloadavg ();
21056 ;
21057 return 0;
21058 }
21059 _ACEOF
21060 if ac_fn_c_try_link "$LINENO"; then :
21061 ac_cv_lib_getloadavg_getloadavg=yes
21062 else
21063 ac_cv_lib_getloadavg_getloadavg=no
21064 fi
21065 rm -f core conftest.err conftest.$ac_objext \
21066 conftest$ac_exeext conftest.$ac_ext
21067 LIBS=$ac_check_lib_save_LIBS
21068 fi
21069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
21070 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
21071 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
21072 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
21073 else
21074 LIBS=$gl_getloadavg_LIBS
21075 fi
21076
21077 fi
21078
21079 # Set up the replacement function if necessary.
21080 if test $gl_func_getloadavg_done = no; then
21081 HAVE_GETLOADAVG=0
21082
21083 # Solaris has libkstat which does not require root.
21084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
21085 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
21086 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
21087 $as_echo_n "(cached) " >&6
21088 else
21089 ac_check_lib_save_LIBS=$LIBS
21090 LIBS="-lkstat $LIBS"
21091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21092 /* end confdefs.h. */
21093
21094 /* Override any GCC internal prototype to avoid an error.
21095 Use char because int might match the return type of a GCC
21096 builtin and then its argument prototype would still apply. */
21097 #ifdef __cplusplus
21098 extern "C"
21099 #endif
21100 char kstat_open ();
21101 int
21102 main ()
21103 {
21104 return kstat_open ();
21105 ;
21106 return 0;
21107 }
21108 _ACEOF
21109 if ac_fn_c_try_link "$LINENO"; then :
21110 ac_cv_lib_kstat_kstat_open=yes
21111 else
21112 ac_cv_lib_kstat_kstat_open=no
21113 fi
21114 rm -f core conftest.err conftest.$ac_objext \
21115 conftest$ac_exeext conftest.$ac_ext
21116 LIBS=$ac_check_lib_save_LIBS
21117 fi
21118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
21119 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
21120 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
21121 cat >>confdefs.h <<_ACEOF
21122 #define HAVE_LIBKSTAT 1
21123 _ACEOF
21124
21125 LIBS="-lkstat $LIBS"
21126
21127 fi
21128
21129 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
21130
21131 # AIX has libperfstat which does not require root
21132 if test $gl_func_getloadavg_done = no; then
21133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
21134 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
21135 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
21136 $as_echo_n "(cached) " >&6
21137 else
21138 ac_check_lib_save_LIBS=$LIBS
21139 LIBS="-lperfstat $LIBS"
21140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21141 /* end confdefs.h. */
21142
21143 /* Override any GCC internal prototype to avoid an error.
21144 Use char because int might match the return type of a GCC
21145 builtin and then its argument prototype would still apply. */
21146 #ifdef __cplusplus
21147 extern "C"
21148 #endif
21149 char perfstat_cpu_total ();
21150 int
21151 main ()
21152 {
21153 return perfstat_cpu_total ();
21154 ;
21155 return 0;
21156 }
21157 _ACEOF
21158 if ac_fn_c_try_link "$LINENO"; then :
21159 ac_cv_lib_perfstat_perfstat_cpu_total=yes
21160 else
21161 ac_cv_lib_perfstat_perfstat_cpu_total=no
21162 fi
21163 rm -f core conftest.err conftest.$ac_objext \
21164 conftest$ac_exeext conftest.$ac_ext
21165 LIBS=$ac_check_lib_save_LIBS
21166 fi
21167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
21168 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
21169 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
21170 cat >>confdefs.h <<_ACEOF
21171 #define HAVE_LIBPERFSTAT 1
21172 _ACEOF
21173
21174 LIBS="-lperfstat $LIBS"
21175
21176 fi
21177
21178 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
21179 fi
21180
21181 if test $gl_func_getloadavg_done = no; then
21182 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
21183 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
21184 gl_func_getloadavg_done=yes
21185
21186 $as_echo "#define DGUX 1" >>confdefs.h
21187
21188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
21189 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
21190 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
21191 $as_echo_n "(cached) " >&6
21192 else
21193 ac_check_lib_save_LIBS=$LIBS
21194 LIBS="-ldgc $LIBS"
21195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21196 /* end confdefs.h. */
21197
21198 /* Override any GCC internal prototype to avoid an error.
21199 Use char because int might match the return type of a GCC
21200 builtin and then its argument prototype would still apply. */
21201 #ifdef __cplusplus
21202 extern "C"
21203 #endif
21204 char dg_sys_info ();
21205 int
21206 main ()
21207 {
21208 return dg_sys_info ();
21209 ;
21210 return 0;
21211 }
21212 _ACEOF
21213 if ac_fn_c_try_link "$LINENO"; then :
21214 ac_cv_lib_dgc_dg_sys_info=yes
21215 else
21216 ac_cv_lib_dgc_dg_sys_info=no
21217 fi
21218 rm -f core conftest.err conftest.$ac_objext \
21219 conftest$ac_exeext conftest.$ac_ext
21220 LIBS=$ac_check_lib_save_LIBS
21221 fi
21222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
21223 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
21224 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
21225 cat >>confdefs.h <<_ACEOF
21226 #define HAVE_LIBDGC 1
21227 _ACEOF
21228
21229 LIBS="-ldgc $LIBS"
21230
21231 fi
21232
21233 fi
21234
21235
21236 fi
21237 fi
21238 fi
21239
21240
21241 if test "x$gl_save_LIBS" = x; then
21242 GETLOADAVG_LIBS=$LIBS
21243 else
21244 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
21245 fi
21246 LIBS=$gl_save_LIBS
21247
21248
21249 # Test whether the system declares getloadavg. Solaris has the function
21250 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
21251 for ac_header in sys/loadavg.h
21252 do :
21253 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
21254 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
21255 cat >>confdefs.h <<_ACEOF
21256 #define HAVE_SYS_LOADAVG_H 1
21257 _ACEOF
21258
21259 fi
21260
21261 done
21262
21263 if test $ac_cv_header_sys_loadavg_h = yes; then
21264 HAVE_SYS_LOADAVG_H=1
21265 else
21266 HAVE_SYS_LOADAVG_H=0
21267 fi
21268 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
21269 # include <sys/loadavg.h>
21270 #endif
21271 #include <stdlib.h>
21272 "
21273 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
21274
21275 else
21276 HAVE_DECL_GETLOADAVG=0
21277 fi
21278
21279
21280 if test $HAVE_GETLOADAVG = 0; then
21281
21282
21283
21284
21285
21286
21287
21288
21289 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
21290
21291
21292 # Figure out what our getloadavg.c needs.
21293
21294
21295
21296 # On HPUX9, an unprivileged user can get load averages this way.
21297 if test $gl_func_getloadavg_done = no; then
21298 for ac_func in pstat_getdynamic
21299 do :
21300 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
21301 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
21302 cat >>confdefs.h <<_ACEOF
21303 #define HAVE_PSTAT_GETDYNAMIC 1
21304 _ACEOF
21305 gl_func_getloadavg_done=yes
21306 fi
21307 done
21308
21309 fi
21310
21311 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
21312 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
21313 # Irix 4.0.5F has the header but not the library.
21314 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
21315 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
21316 gl_func_getloadavg_done=yes
21317
21318 $as_echo "#define SVR4 1" >>confdefs.h
21319
21320 fi
21321
21322 if test $gl_func_getloadavg_done = no; then
21323 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
21324 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
21325 gl_func_getloadavg_done=yes
21326
21327 $as_echo "#define UMAX 1" >>confdefs.h
21328
21329
21330 $as_echo "#define UMAX4_3 1" >>confdefs.h
21331
21332 fi
21333
21334
21335 fi
21336
21337 if test $gl_func_getloadavg_done = no; then
21338 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
21339 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
21340 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
21341
21342 fi
21343
21344
21345 fi
21346
21347 if test $gl_func_getloadavg_done = no; then
21348 for ac_header in mach/mach.h
21349 do :
21350 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
21351 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
21352 cat >>confdefs.h <<_ACEOF
21353 #define HAVE_MACH_MACH_H 1
21354 _ACEOF
21355
21356 fi
21357
21358 done
21359
21360 fi
21361
21362 for ac_header in nlist.h
21363 do :
21364 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
21365 if test "x$ac_cv_header_nlist_h" = x""yes; then :
21366 cat >>confdefs.h <<_ACEOF
21367 #define HAVE_NLIST_H 1
21368 _ACEOF
21369 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
21370 "
21371 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
21372
21373 cat >>confdefs.h <<_ACEOF
21374 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
21375 _ACEOF
21376
21377
21378 fi
21379
21380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21381 /* end confdefs.h. */
21382 #include <nlist.h>
21383 int
21384 main ()
21385 {
21386 struct nlist x;
21387 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
21388 x.n_un.n_name = "";
21389 #else
21390 x.n_name = "";
21391 #endif
21392 ;
21393 return 0;
21394 }
21395 _ACEOF
21396 if ac_fn_c_try_link "$LINENO"; then :
21397
21398 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
21399
21400 fi
21401 rm -f core conftest.err conftest.$ac_objext \
21402 conftest$ac_exeext conftest.$ac_ext
21403
21404 fi
21405
21406 done
21407
21408 fi
21409
21410
21411
21412
21413
21414 GNULIB_GETLOADAVG=1
21415
21416
21417
21418
21419
21420
21421
21422
21423
21424
21425 if test $REPLACE_GETOPT = 1; then
21426
21427
21428
21429
21430
21431
21432
21433
21434 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
21435
21436
21437
21438
21439
21440
21441
21442
21443
21444 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
21445
21446
21447
21448
21449 GNULIB_GL_UNISTD_H_GETOPT=1
21450 fi
21451
21452
21453
21454
21455
21456
21457
21458 REPLACE_GETOPT=0
21459 if test -n "$gl_replace_getopt"; then
21460 REPLACE_GETOPT=1
21461 fi
21462
21463 if test $REPLACE_GETOPT = 1; then
21464
21465 GETOPT_H=getopt.h
21466
21467 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
21468
21469
21470
21471 fi
21472
21473 if test $REPLACE_GETOPT = 1; then
21474
21475
21476
21477
21478
21479
21480
21481
21482 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
21483
21484
21485
21486
21487
21488
21489
21490
21491
21492 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
21493
21494
21495
21496
21497 GNULIB_GL_UNISTD_H_GETOPT=1
21498 fi
21499
21500
21501
21502
21503
21504
21505
21506
21507
21508
21509
21510
21511 gl_gettimeofday_timezone=void
21512 if test $ac_cv_func_gettimeofday != yes; then
21513 HAVE_GETTIMEOFDAY=0
21514 else
21515
21516
21517
21518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
21519 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
21520 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
21521 $as_echo_n "(cached) " >&6
21522 else
21523 if test "$cross_compiling" = yes; then :
21524 # When cross-compiling:
21525 case "$host_os" in
21526 # Guess all is fine on glibc systems.
21527 *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
21528 # If we don't know, assume the worst.
21529 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
21530 esac
21531
21532 else
21533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21534 /* end confdefs.h. */
21535 #include <string.h>
21536 #include <sys/time.h>
21537 #include <time.h>
21538 #include <stdlib.h>
21539
21540 int
21541 main ()
21542 {
21543
21544 time_t t = 0;
21545 struct tm *lt;
21546 struct tm saved_lt;
21547 struct timeval tv;
21548 lt = localtime (&t);
21549 saved_lt = *lt;
21550 gettimeofday (&tv, NULL);
21551 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
21552
21553 ;
21554 return 0;
21555 }
21556 _ACEOF
21557 if ac_fn_c_try_run "$LINENO"; then :
21558 gl_cv_func_gettimeofday_clobber=no
21559 else
21560 gl_cv_func_gettimeofday_clobber=yes
21561 fi
21562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21563 conftest.$ac_objext conftest.beam conftest.$ac_ext
21564 fi
21565
21566 fi
21567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
21568 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
21569
21570 case "$gl_cv_func_gettimeofday_clobber" in
21571 *yes)
21572 REPLACE_GETTIMEOFDAY=1
21573
21574
21575 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
21576
21577
21578 $as_echo "#define localtime rpl_localtime" >>confdefs.h
21579
21580
21581
21582 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
21583
21584 ;;
21585 esac
21586
21587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
21588 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
21589 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
21590 $as_echo_n "(cached) " >&6
21591 else
21592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21593 /* end confdefs.h. */
21594 #include <sys/time.h>
21595 struct timeval c;
21596 int gettimeofday (struct timeval *restrict, void *restrict);
21597
21598 int
21599 main ()
21600 {
21601 /* glibc uses struct timezone * rather than the POSIX void *
21602 if _GNU_SOURCE is defined. However, since the only portable
21603 use of gettimeofday uses NULL as the second parameter, and
21604 since the glibc definition is actually more typesafe, it is
21605 not worth wrapping this to get a compliant signature. */
21606 int (*f) (struct timeval *restrict, void *restrict)
21607 = gettimeofday;
21608 int x = f (&c, 0);
21609 return !(x | c.tv_sec | c.tv_usec);
21610
21611 ;
21612 return 0;
21613 }
21614 _ACEOF
21615 if ac_fn_c_try_compile "$LINENO"; then :
21616 gl_cv_func_gettimeofday_posix_signature=yes
21617 else
21618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21619 /* end confdefs.h. */
21620 #include <sys/time.h>
21621 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
21622
21623 int
21624 main ()
21625 {
21626
21627 ;
21628 return 0;
21629 }
21630 _ACEOF
21631 if ac_fn_c_try_compile "$LINENO"; then :
21632 gl_cv_func_gettimeofday_posix_signature=almost
21633 else
21634 gl_cv_func_gettimeofday_posix_signature=no
21635 fi
21636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21637 fi
21638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21639 fi
21640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
21641 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
21642 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
21643 gl_gettimeofday_timezone='struct timezone'
21644 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
21645 REPLACE_GETTIMEOFDAY=1
21646 fi
21647 if test $REPLACE_STRUCT_TIMEVAL = 1; then
21648 REPLACE_GETTIMEOFDAY=1
21649 fi
21650
21651 fi
21652
21653 cat >>confdefs.h <<_ACEOF
21654 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
21655 _ACEOF
21656
21657
21658 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
21659
21660
21661
21662
21663
21664
21665
21666
21667 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
21668
21669
21670 for ac_header in sys/timeb.h
21671 do :
21672 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
21673 if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
21674 cat >>confdefs.h <<_ACEOF
21675 #define HAVE_SYS_TIMEB_H 1
21676 _ACEOF
21677
21678 fi
21679
21680 done
21681
21682 for ac_func in _ftime
21683 do :
21684 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
21685 if test "x$ac_cv_func__ftime" = x""yes; then :
21686 cat >>confdefs.h <<_ACEOF
21687 #define HAVE__FTIME 1
21688 _ACEOF
21689
21690 fi
21691 done
21692
21693
21694 fi
21695
21696
21697
21698
21699
21700 GNULIB_GETTIMEOFDAY=1
21701
21702
21703
21704
21705
21706
21707
21708
21709
21710
21711 if test $ac_cv_func_lstat = yes; then
21712
21713 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
21714 *no)
21715 REPLACE_LSTAT=1
21716 ;;
21717 esac
21718 else
21719 HAVE_LSTAT=0
21720 fi
21721
21722 if test $REPLACE_LSTAT = 1; then
21723
21724
21725
21726
21727
21728
21729
21730
21731 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
21732
21733
21734
21735 :
21736
21737 fi
21738
21739
21740
21741
21742
21743 GNULIB_LSTAT=1
21744
21745
21746
21747
21748
21749
21750
21751
21752
21753
21754
21755 if test $APPLE_UNIVERSAL_BUILD = 1; then
21756 # A universal build on Apple Mac OS X platforms.
21757 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
21758 # But we need a configuration result that is valid in both modes.
21759 gl_cv_func_working_mktime=no
21760 fi
21761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
21762 $as_echo_n "checking for working mktime... " >&6; }
21763 if test "${gl_cv_func_working_mktime+set}" = set; then :
21764 $as_echo_n "(cached) " >&6
21765 else
21766 if test "$cross_compiling" = yes; then :
21767 gl_cv_func_working_mktime=no
21768 else
21769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21770 /* end confdefs.h. */
21771 /* Test program from Paul Eggert and Tony Leneis. */
21772 #include <limits.h>
21773 #include <stdlib.h>
21774 #include <time.h>
21775
21776 #ifdef HAVE_UNISTD_H
21777 # include <unistd.h>
21778 #endif
21779
21780 #ifndef HAVE_ALARM
21781 # define alarm(X) /* empty */
21782 #endif
21783
21784 /* Work around redefinition to rpl_putenv by other config tests. */
21785 #undef putenv
21786
21787 static time_t time_t_max;
21788 static time_t time_t_min;
21789
21790 /* Values we'll use to set the TZ environment variable. */
21791 static char *tz_strings[] = {
21792 (char *) 0, "TZ=GMT0", "TZ=JST-9",
21793 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
21794 };
21795 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
21796
21797 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
21798 Based on a problem report from Andreas Jaeger. */
21799 static int
21800 spring_forward_gap ()
21801 {
21802 /* glibc (up to about 1998-10-07) failed this test. */
21803 struct tm tm;
21804
21805 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
21806 instead of "TZ=America/Vancouver" in order to detect the bug even
21807 on systems that don't support the Olson extension, or don't have the
21808 full zoneinfo tables installed. */
21809 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
21810
21811 tm.tm_year = 98;
21812 tm.tm_mon = 3;
21813 tm.tm_mday = 5;
21814 tm.tm_hour = 2;
21815 tm.tm_min = 0;
21816 tm.tm_sec = 0;
21817 tm.tm_isdst = -1;
21818 return mktime (&tm) != (time_t) -1;
21819 }
21820
21821 static int
21822 mktime_test1 (time_t now)
21823 {
21824 struct tm *lt;
21825 return ! (lt = localtime (&now)) || mktime (lt) == now;
21826 }
21827
21828 static int
21829 mktime_test (time_t now)
21830 {
21831 return (mktime_test1 (now)
21832 && mktime_test1 ((time_t) (time_t_max - now))
21833 && mktime_test1 ((time_t) (time_t_min + now)));
21834 }
21835
21836 static int
21837 irix_6_4_bug ()
21838 {
21839 /* Based on code from Ariel Faigon. */
21840 struct tm tm;
21841 tm.tm_year = 96;
21842 tm.tm_mon = 3;
21843 tm.tm_mday = 0;
21844 tm.tm_hour = 0;
21845 tm.tm_min = 0;
21846 tm.tm_sec = 0;
21847 tm.tm_isdst = -1;
21848 mktime (&tm);
21849 return tm.tm_mon == 2 && tm.tm_mday == 31;
21850 }
21851
21852 static int
21853 bigtime_test (int j)
21854 {
21855 struct tm tm;
21856 time_t now;
21857 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
21858 now = mktime (&tm);
21859 if (now != (time_t) -1)
21860 {
21861 struct tm *lt = localtime (&now);
21862 if (! (lt
21863 && lt->tm_year == tm.tm_year
21864 && lt->tm_mon == tm.tm_mon
21865 && lt->tm_mday == tm.tm_mday
21866 && lt->tm_hour == tm.tm_hour
21867 && lt->tm_min == tm.tm_min
21868 && lt->tm_sec == tm.tm_sec
21869 && lt->tm_yday == tm.tm_yday
21870 && lt->tm_wday == tm.tm_wday
21871 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
21872 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
21873 return 0;
21874 }
21875 return 1;
21876 }
21877
21878 static int
21879 year_2050_test ()
21880 {
21881 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
21882 ignoring leap seconds. */
21883 unsigned long int answer = 2527315200UL;
21884
21885 struct tm tm;
21886 time_t t;
21887 tm.tm_year = 2050 - 1900;
21888 tm.tm_mon = 2 - 1;
21889 tm.tm_mday = 1;
21890 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
21891 tm.tm_isdst = -1;
21892
21893 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
21894 instead of "TZ=America/Vancouver" in order to detect the bug even
21895 on systems that don't support the Olson extension, or don't have the
21896 full zoneinfo tables installed. */
21897 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
21898
21899 t = mktime (&tm);
21900
21901 /* Check that the result is either a failure, or close enough
21902 to the correct answer that we can assume the discrepancy is
21903 due to leap seconds. */
21904 return (t == (time_t) -1
21905 || (0 < t && answer - 120 <= t && t <= answer + 120));
21906 }
21907
21908 int
21909 main ()
21910 {
21911 int result = 0;
21912 time_t t, delta;
21913 int i, j;
21914 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
21915 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
21916
21917 /* This test makes some buggy mktime implementations loop.
21918 Give up after 60 seconds; a mktime slower than that
21919 isn't worth using anyway. */
21920 alarm (60);
21921
21922 time_t_max = (! time_t_signed
21923 ? (time_t) -1
21924 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
21925 * 2 + 1));
21926 time_t_min = (! time_t_signed
21927 ? (time_t) 0
21928 : time_t_signed_magnitude
21929 ? ~ (time_t) 0
21930 : ~ time_t_max);
21931
21932 delta = time_t_max / 997; /* a suitable prime number */
21933 for (i = 0; i < N_STRINGS; i++)
21934 {
21935 if (tz_strings[i])
21936 putenv (tz_strings[i]);
21937
21938 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
21939 if (! mktime_test (t))
21940 result |= 1;
21941 if ((result & 2) == 0
21942 && ! (mktime_test ((time_t) 1)
21943 && mktime_test ((time_t) (60 * 60))
21944 && mktime_test ((time_t) (60 * 60 * 24))))
21945 result |= 2;
21946
21947 for (j = 1; (result & 4) == 0; j <<= 1)
21948 {
21949 if (! bigtime_test (j))
21950 result |= 4;
21951 if (INT_MAX / 2 < j)
21952 break;
21953 }
21954 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
21955 result |= 8;
21956 }
21957 if (! irix_6_4_bug ())
21958 result |= 16;
21959 if (! spring_forward_gap ())
21960 result |= 32;
21961 if (! year_2050_test ())
21962 result |= 64;
21963 return result;
21964 }
21965 _ACEOF
21966 if ac_fn_c_try_run "$LINENO"; then :
21967 gl_cv_func_working_mktime=yes
21968 else
21969 gl_cv_func_working_mktime=no
21970 fi
21971 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21972 conftest.$ac_objext conftest.beam conftest.$ac_ext
21973 fi
21974
21975
21976 fi
21977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
21978 $as_echo "$gl_cv_func_working_mktime" >&6; }
21979
21980 if test $gl_cv_func_working_mktime = no; then
21981 REPLACE_MKTIME=1
21982 else
21983 REPLACE_MKTIME=0
21984 fi
21985
21986 if test $REPLACE_MKTIME = 1; then
21987
21988
21989
21990
21991
21992
21993
21994
21995 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
21996
21997 :
21998 fi
21999
22000
22001
22002
22003
22004 GNULIB_MKTIME=1
22005
22006
22007
22008
22009
22010
22011
22012
22013
22014
22015
22016 if test $ac_cv_func_pselect = yes; then
22017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5
22018 $as_echo_n "checking whether signature of pselect conforms to POSIX... " >&6; }
22019 if test "${gl_cv_sig_pselect+set}" = set; then :
22020 $as_echo_n "(cached) " >&6
22021 else
22022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22023 /* end confdefs.h. */
22024 #include <sys/select.h>
22025
22026 int
22027 main ()
22028 {
22029 int (*p) (int, fd_set *, fd_set *, fd_set *restrict,
22030 struct timespec const *restrict,
22031 sigset_t const *restrict) = pselect;
22032 return !p;
22033 ;
22034 return 0;
22035 }
22036 _ACEOF
22037 if ac_fn_c_try_link "$LINENO"; then :
22038 gl_cv_sig_pselect=yes
22039 else
22040 gl_cv_sig_pselect=no
22041 fi
22042 rm -f core conftest.err conftest.$ac_objext \
22043 conftest$ac_exeext conftest.$ac_ext
22044 fi
22045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5
22046 $as_echo "$gl_cv_sig_pselect" >&6; }
22047
22048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pselect detects invalid fds" >&5
22049 $as_echo_n "checking whether pselect detects invalid fds... " >&6; }
22050 if test "${gl_cv_func_pselect_detects_ebadf+set}" = set; then :
22051 $as_echo_n "(cached) " >&6
22052 else
22053
22054 if test "$cross_compiling" = yes; then :
22055
22056 case "$host_os" in
22057 # Guess yes on glibc systems.
22058 *-gnu*) gl_cv_func_pselect_detects_ebadf="guessing yes" ;;
22059 # If we don't know, assume the worst.
22060 *) gl_cv_func_pselect_detects_ebadf="guessing no" ;;
22061 esac
22062
22063 else
22064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22065 /* end confdefs.h. */
22066
22067 #include <sys/types.h>
22068 #include <sys/time.h>
22069 #if HAVE_SYS_SELECT_H
22070 # include <sys/select.h>
22071 #endif
22072 #include <unistd.h>
22073 #include <errno.h>
22074
22075 int
22076 main ()
22077 {
22078
22079 fd_set set;
22080 dup2(0, 16);
22081 FD_ZERO(&set);
22082 FD_SET(16, &set);
22083 close(16);
22084 struct timespec timeout;
22085 timeout.tv_sec = 0;
22086 timeout.tv_nsec = 5000;
22087 return pselect (17, &set, NULL, NULL, &timeout, NULL) != -1 || errno != EBADF;
22088
22089 ;
22090 return 0;
22091 }
22092 _ACEOF
22093 if ac_fn_c_try_run "$LINENO"; then :
22094 gl_cv_func_pselect_detects_ebadf=yes
22095 else
22096 gl_cv_func_pselect_detects_ebadf=no
22097 fi
22098 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22099 conftest.$ac_objext conftest.beam conftest.$ac_ext
22100 fi
22101
22102
22103 fi
22104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pselect_detects_ebadf" >&5
22105 $as_echo "$gl_cv_func_pselect_detects_ebadf" >&6; }
22106 case $gl_cv_func_pselect_detects_ebadf in
22107 *yes) ;;
22108 *) REPLACE_PSELECT=1 ;;
22109 esac
22110 fi
22111
22112 if test $ac_cv_func_pselect = no || test $gl_cv_sig_pselect = no; then
22113 REPLACE_PSELECT=1
22114 fi
22115
22116 if test $HAVE_PSELECT = 0 || test $REPLACE_PSELECT = 1; then
22117
22118
22119
22120
22121
22122
22123
22124
22125 gl_LIBOBJS="$gl_LIBOBJS pselect.$ac_objext"
22126
22127 fi
22128
22129
22130
22131
22132
22133 GNULIB_PSELECT=1
22134
22135
22136
22137
22138
22139
22140
22141
22142
22143 LIB_PTHREAD_SIGMASK=
22144
22145
22146
22147
22148 if test "$gl_threads_api" = posix; then
22149 if test $ac_cv_func_pthread_sigmask = yes; then
22150 :
22151 else
22152 if test -n "$LIBMULTITHREAD"; then
22153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_sigmask in $LIBMULTITHREAD" >&5
22154 $as_echo_n "checking for pthread_sigmask in $LIBMULTITHREAD... " >&6; }
22155 if test "${gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD+set}" = set; then :
22156 $as_echo_n "(cached) " >&6
22157 else
22158 gl_save_LIBS="$LIBS"
22159 LIBS="$LIBS $LIBMULTITHREAD"
22160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22161 /* end confdefs.h. */
22162 #include <pthread.h>
22163 #include <signal.h>
22164
22165 int
22166 main ()
22167 {
22168 return pthread_sigmask (0, (sigset_t *) 0, (sigset_t *) 0);
22169 ;
22170 return 0;
22171 }
22172
22173 _ACEOF
22174 if ac_fn_c_try_link "$LINENO"; then :
22175 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=yes
22176 else
22177 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=no
22178 fi
22179 rm -f core conftest.err conftest.$ac_objext \
22180 conftest$ac_exeext conftest.$ac_ext
22181 LIBS="$gl_save_LIBS"
22182
22183 fi
22184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&5
22185 $as_echo "$gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&6; }
22186 if test $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD = yes; then
22187 LIB_PTHREAD_SIGMASK="$LIBMULTITHREAD"
22188 else
22189 HAVE_PTHREAD_SIGMASK=0
22190 fi
22191 else
22192 HAVE_PTHREAD_SIGMASK=0
22193 fi
22194 fi
22195 else
22196 if test $ac_cv_func_pthread_sigmask = yes; then
22197 REPLACE_PTHREAD_SIGMASK=1
22198 else
22199 HAVE_PTHREAD_SIGMASK=0
22200 fi
22201 fi
22202
22203
22204
22205
22206 if test $HAVE_PTHREAD_SIGMASK = 1; then
22207
22208
22209 if test -z "$LIB_PTHREAD_SIGMASK"; then
22210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
22211 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
22212 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
22213 $as_echo_n "(cached) " >&6
22214 else
22215
22216 if test "$cross_compiling" = yes; then :
22217
22218 case "$host_os" in
22219 freebsd* | hpux* | solaris | solaris2.[2-9]*)
22220 gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
22221 *)
22222 gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
22223 esac
22224
22225 else
22226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22227 /* end confdefs.h. */
22228
22229 #include <pthread.h>
22230 #include <signal.h>
22231 #include <stddef.h>
22232 int main ()
22233 {
22234 sigset_t set;
22235 sigemptyset (&set);
22236 return pthread_sigmask (1729, &set, NULL) != 0;
22237 }
22238 _ACEOF
22239 if ac_fn_c_try_run "$LINENO"; then :
22240 gl_cv_func_pthread_sigmask_in_libc_works=no
22241 else
22242 gl_cv_func_pthread_sigmask_in_libc_works=yes
22243 fi
22244 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22245 conftest.$ac_objext conftest.beam conftest.$ac_ext
22246 fi
22247
22248
22249 fi
22250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
22251 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
22252 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
22253 *no)
22254 REPLACE_PTHREAD_SIGMASK=1
22255
22256 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
22257
22258 ;;
22259 esac
22260 fi
22261
22262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
22263 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
22264 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
22265 $as_echo_n "(cached) " >&6
22266 else
22267
22268 gl_save_LIBS="$LIBS"
22269 LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
22270 if test "$cross_compiling" = yes; then :
22271 case "$host_os" in
22272 cygwin*)
22273 gl_cv_func_pthread_sigmask_return_works="guessing no";;
22274 *)
22275 gl_cv_func_pthread_sigmask_return_works="guessing yes";;
22276 esac
22277
22278 else
22279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22280 /* end confdefs.h. */
22281
22282 #include <pthread.h>
22283 #include <signal.h>
22284 #include <stddef.h>
22285 int main ()
22286 {
22287 sigset_t set;
22288 sigemptyset (&set);
22289 if (pthread_sigmask (1729, &set, NULL) == -1)
22290 return 1;
22291 return 0;
22292 }
22293 _ACEOF
22294 if ac_fn_c_try_run "$LINENO"; then :
22295 gl_cv_func_pthread_sigmask_return_works=yes
22296 else
22297 gl_cv_func_pthread_sigmask_return_works=no
22298 fi
22299 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22300 conftest.$ac_objext conftest.beam conftest.$ac_ext
22301 fi
22302
22303 LIBS="$gl_save_LIBS"
22304
22305 fi
22306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
22307 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
22308 case "$gl_cv_func_pthread_sigmask_return_works" in
22309 *no)
22310 REPLACE_PTHREAD_SIGMASK=1
22311
22312 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
22313
22314 ;;
22315 esac
22316
22317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
22318 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
22319 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
22320 $as_echo_n "(cached) " >&6
22321 else
22322
22323 case "$host_os" in
22324 irix*)
22325 gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
22326 *)
22327 gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
22328 esac
22329 gl_save_LIBS="$LIBS"
22330 LIBS="$LIBS $LIBMULTITHREAD"
22331 if test "$cross_compiling" = yes; then :
22332 :
22333 else
22334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22335 /* end confdefs.h. */
22336
22337 #include <pthread.h>
22338 #include <signal.h>
22339 #include <stdio.h>
22340 #include <stdlib.h>
22341 #include <unistd.h>
22342 static volatile int sigint_occurred;
22343 static void
22344 sigint_handler (int sig)
22345 {
22346 sigint_occurred++;
22347 }
22348 int main ()
22349 {
22350 sigset_t set;
22351 int pid = getpid ();
22352 char command[80];
22353 signal (SIGINT, sigint_handler);
22354 sigemptyset (&set);
22355 sigaddset (&set, SIGINT);
22356 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
22357 return 1;
22358 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
22359 if (!(system (command) == 0))
22360 return 2;
22361 sleep (2);
22362 if (!(sigint_occurred == 0))
22363 return 3;
22364 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
22365 return 4;
22366 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
22367 return 5;
22368 return 0;
22369 }
22370 _ACEOF
22371 if ac_fn_c_try_run "$LINENO"; then :
22372 :
22373 else
22374 gl_cv_func_pthread_sigmask_unblock_works=no
22375 fi
22376 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22377 conftest.$ac_objext conftest.beam conftest.$ac_ext
22378 fi
22379
22380 LIBS="$gl_save_LIBS"
22381
22382 fi
22383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
22384 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
22385 case "$gl_cv_func_pthread_sigmask_unblock_works" in
22386 *no)
22387 REPLACE_PTHREAD_SIGMASK=1
22388
22389 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
22390
22391 ;;
22392 esac
22393 fi
22394
22395 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
22396
22397
22398
22399
22400
22401
22402
22403
22404 gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext"
22405
22406
22407 if test $HAVE_PTHREAD_SIGMASK = 1; then
22408
22409 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
22410
22411 fi
22412
22413 fi
22414
22415
22416
22417
22418
22419 GNULIB_PTHREAD_SIGMASK=1
22420
22421
22422
22423
22424
22425
22426
22427
22428 if test $ac_cv_func_readlink = no; then
22429 HAVE_READLINK=0
22430 else
22431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
22432 $as_echo_n "checking whether readlink signature is correct... " >&6; }
22433 if test "${gl_cv_decl_readlink_works+set}" = set; then :
22434 $as_echo_n "(cached) " >&6
22435 else
22436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22437 /* end confdefs.h. */
22438 #include <unistd.h>
22439 /* Cause compilation failure if original declaration has wrong type. */
22440 ssize_t readlink (const char *, char *, size_t);
22441 int
22442 main ()
22443 {
22444
22445 ;
22446 return 0;
22447 }
22448 _ACEOF
22449 if ac_fn_c_try_compile "$LINENO"; then :
22450 gl_cv_decl_readlink_works=yes
22451 else
22452 gl_cv_decl_readlink_works=no
22453 fi
22454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22455 fi
22456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
22457 $as_echo "$gl_cv_decl_readlink_works" >&6; }
22458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
22459 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
22460 if test "${gl_cv_func_readlink_works+set}" = set; then :
22461 $as_echo_n "(cached) " >&6
22462 else
22463 # We have readlink, so assume ln -s works.
22464 ln -s conftest.no-such conftest.link
22465 ln -s conftest.link conftest.lnk2
22466 if test "$cross_compiling" = yes; then :
22467 case "$host_os" in
22468 # Guess yes on glibc systems.
22469 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
22470 # If we don't know, assume the worst.
22471 *) gl_cv_func_readlink_works="guessing no" ;;
22472 esac
22473
22474 else
22475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22476 /* end confdefs.h. */
22477 #include <unistd.h>
22478
22479 int
22480 main ()
22481 {
22482 char buf[20];
22483 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
22484 ;
22485 return 0;
22486 }
22487 _ACEOF
22488 if ac_fn_c_try_run "$LINENO"; then :
22489 gl_cv_func_readlink_works=yes
22490 else
22491 gl_cv_func_readlink_works=no
22492 fi
22493 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22494 conftest.$ac_objext conftest.beam conftest.$ac_ext
22495 fi
22496
22497 rm -f conftest.link conftest.lnk2
22498 fi
22499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
22500 $as_echo "$gl_cv_func_readlink_works" >&6; }
22501 case "$gl_cv_func_readlink_works" in
22502 *yes)
22503 if test "$gl_cv_decl_readlink_works" != yes; then
22504 REPLACE_READLINK=1
22505 fi
22506 ;;
22507 *)
22508
22509 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
22510
22511 REPLACE_READLINK=1
22512 ;;
22513 esac
22514 fi
22515
22516 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
22517
22518
22519
22520
22521
22522
22523
22524
22525 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
22526
22527
22528 :
22529
22530 fi
22531
22532
22533
22534
22535
22536 GNULIB_READLINK=1
22537
22538
22539
22540
22541
22542
22543
22544
22545
22546
22547
22548
22549
22550
22551
22552
22553 if test $gl_cv_have_include_next = yes; then
22554 gl_cv_next_signal_h='<'signal.h'>'
22555 else
22556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
22557 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
22558 if test "${gl_cv_next_signal_h+set}" = set; then :
22559 $as_echo_n "(cached) " >&6
22560 else
22561
22562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22563 /* end confdefs.h. */
22564 #include <signal.h>
22565
22566 _ACEOF
22567 case "$host_os" in
22568 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22569 *) gl_absname_cpp="$ac_cpp" ;;
22570 esac
22571
22572 case "$host_os" in
22573 mingw*)
22574 gl_dirsep_regex='[/\\]'
22575 ;;
22576 *)
22577 gl_dirsep_regex='\/'
22578 ;;
22579 esac
22580 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22581
22582 gl_header_literal_regex=`echo 'signal.h' \
22583 | sed -e "$gl_make_literal_regex_sed"`
22584 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22585 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22586 s|^/[^/]|//&|
22587 p
22588 q
22589 }'
22590 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22591 sed -n "$gl_absolute_header_sed"`'"'
22592
22593
22594 fi
22595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
22596 $as_echo "$gl_cv_next_signal_h" >&6; }
22597 fi
22598 NEXT_SIGNAL_H=$gl_cv_next_signal_h
22599
22600 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22601 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22602 gl_next_as_first_directive='<'signal.h'>'
22603 else
22604 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22605 gl_next_as_first_directive=$gl_cv_next_signal_h
22606 fi
22607 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
22608
22609
22610
22611
22612
22613 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
22614 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
22615 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
22616 #include <signal.h>
22617
22618 "
22619 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
22620
22621 else
22622 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
22623 fi
22624
22625
22626
22627
22628
22629
22630
22631 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
22632 #include <signal.h>
22633
22634 "
22635 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
22636
22637 else
22638 HAVE_SIGHANDLER_T=0
22639 fi
22640
22641
22642
22643
22644 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
22645 /* <sys/types.h> is not needed according to POSIX, but the
22646 <sys/socket.h> in i386-unknown-freebsd4.10 and
22647 powerpc-apple-darwin5.5 required it. */
22648 #include <sys/types.h>
22649 #if HAVE_SYS_SOCKET_H
22650 # include <sys/socket.h>
22651 #elif HAVE_WS2TCPIP_H
22652 # include <ws2tcpip.h>
22653 #endif
22654
22655 "
22656 if test "x$ac_cv_type_socklen_t" = x""yes; then :
22657
22658 else
22659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
22660 $as_echo_n "checking for socklen_t equivalent... " >&6; }
22661 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
22662 $as_echo_n "(cached) " >&6
22663 else
22664 # Systems have either "struct sockaddr *" or
22665 # "void *" as the second argument to getpeername
22666 gl_cv_socklen_t_equiv=
22667 for arg2 in "struct sockaddr" void; do
22668 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
22669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22670 /* end confdefs.h. */
22671 #include <sys/types.h>
22672 #include <sys/socket.h>
22673
22674 int getpeername (int, $arg2 *, $t *);
22675 int
22676 main ()
22677 {
22678 $t len;
22679 getpeername (0, 0, &len);
22680 ;
22681 return 0;
22682 }
22683 _ACEOF
22684 if ac_fn_c_try_compile "$LINENO"; then :
22685 gl_cv_socklen_t_equiv="$t"
22686 fi
22687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22688 test "$gl_cv_socklen_t_equiv" != "" && break
22689 done
22690 test "$gl_cv_socklen_t_equiv" != "" && break
22691 done
22692
22693 fi
22694
22695 if test "$gl_cv_socklen_t_equiv" = ""; then
22696 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
22697 fi
22698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
22699 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
22700
22701 cat >>confdefs.h <<_ACEOF
22702 #define socklen_t $gl_cv_socklen_t_equiv
22703 _ACEOF
22704
22705 fi
22706
22707
22708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
22709 $as_echo_n "checking for ssize_t... " >&6; }
22710 if test "${gt_cv_ssize_t+set}" = set; then :
22711 $as_echo_n "(cached) " >&6
22712 else
22713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22714 /* end confdefs.h. */
22715 #include <sys/types.h>
22716 int
22717 main ()
22718 {
22719 int x = sizeof (ssize_t *) + sizeof (ssize_t);
22720 return !x;
22721 ;
22722 return 0;
22723 }
22724 _ACEOF
22725 if ac_fn_c_try_compile "$LINENO"; then :
22726 gt_cv_ssize_t=yes
22727 else
22728 gt_cv_ssize_t=no
22729 fi
22730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22731 fi
22732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
22733 $as_echo "$gt_cv_ssize_t" >&6; }
22734 if test $gt_cv_ssize_t = no; then
22735
22736 $as_echo "#define ssize_t int" >>confdefs.h
22737
22738 fi
22739
22740
22741
22742
22743
22744 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>
22745 #include <sys/stat.h>
22746 "
22747 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x""yes; then :
22748
22749 cat >>confdefs.h <<_ACEOF
22750 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
22751 _ACEOF
22752
22753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
22754 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
22755 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then :
22756 $as_echo_n "(cached) " >&6
22757 else
22758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22759 /* end confdefs.h. */
22760
22761 #include <sys/types.h>
22762 #include <sys/stat.h>
22763 #if HAVE_SYS_TIME_H
22764 # include <sys/time.h>
22765 #endif
22766 #include <time.h>
22767 struct timespec ts;
22768 struct stat st;
22769
22770 int
22771 main ()
22772 {
22773
22774 st.st_atim = ts;
22775
22776 ;
22777 return 0;
22778 }
22779 _ACEOF
22780 if ac_fn_c_try_compile "$LINENO"; then :
22781 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
22782 else
22783 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
22784 fi
22785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22786 fi
22787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
22788 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
22789 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
22790
22791 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
22792
22793 fi
22794 else
22795 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>
22796 #include <sys/stat.h>
22797 "
22798 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x""yes; then :
22799
22800 cat >>confdefs.h <<_ACEOF
22801 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
22802 _ACEOF
22803
22804
22805 else
22806 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
22807 #include <sys/stat.h>
22808 "
22809 if test "x$ac_cv_member_struct_stat_st_atimensec" = x""yes; then :
22810
22811 cat >>confdefs.h <<_ACEOF
22812 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
22813 _ACEOF
22814
22815
22816 else
22817 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>
22818 #include <sys/stat.h>
22819 "
22820 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x""yes; then :
22821
22822 cat >>confdefs.h <<_ACEOF
22823 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
22824 _ACEOF
22825
22826
22827 fi
22828
22829 fi
22830
22831 fi
22832
22833 fi
22834
22835
22836
22837
22838
22839 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>
22840 #include <sys/stat.h>
22841 "
22842 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x""yes; then :
22843
22844 cat >>confdefs.h <<_ACEOF
22845 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
22846 _ACEOF
22847
22848
22849 else
22850 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
22851 #include <sys/stat.h>
22852 "
22853 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x""yes; then :
22854
22855 cat >>confdefs.h <<_ACEOF
22856 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
22857 _ACEOF
22858
22859
22860 else
22861 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>
22862 #include <sys/stat.h>
22863 "
22864 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x""yes; then :
22865
22866 cat >>confdefs.h <<_ACEOF
22867 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
22868 _ACEOF
22869
22870
22871 fi
22872
22873 fi
22874
22875 fi
22876
22877
22878
22879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
22880 $as_echo_n "checking for working stdalign.h... " >&6; }
22881 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
22882 $as_echo_n "(cached) " >&6
22883 else
22884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22885 /* end confdefs.h. */
22886 #include <stdalign.h>
22887 #include <stddef.h>
22888
22889 /* Test that alignof yields a result consistent with offsetof.
22890 This catches GCC bug 52023
22891 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
22892 #ifdef __cplusplus
22893 template <class t> struct alignof_helper { char a; t b; };
22894 # define ao(type) offsetof (alignof_helper<type>, b)
22895 #else
22896 # define ao(type) offsetof (struct { char a; type b; }, b)
22897 #endif
22898 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
22899 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
22900 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
22901
22902 /* Test _Alignas only on platforms where gnulib can help. */
22903 #if \
22904 (__GNUC__ || __IBMC__ || __IBMCPP__ \
22905 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
22906 int alignas (8) alignas_int = 1;
22907 char test_alignas[_Alignof (alignas_int) == 8 ? 1 : -1];
22908 #endif
22909
22910 int
22911 main ()
22912 {
22913
22914 ;
22915 return 0;
22916 }
22917 _ACEOF
22918 if ac_fn_c_try_compile "$LINENO"; then :
22919 gl_cv_header_working_stdalign_h=yes
22920 else
22921 gl_cv_header_working_stdalign_h=no
22922 fi
22923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22924 fi
22925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
22926 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
22927
22928 if test $gl_cv_header_working_stdalign_h = yes; then
22929 STDALIGN_H=''
22930 else
22931 STDALIGN_H='stdalign.h'
22932 fi
22933
22934
22935 if test -n "$STDALIGN_H"; then
22936 GL_GENERATE_STDALIGN_H_TRUE=
22937 GL_GENERATE_STDALIGN_H_FALSE='#'
22938 else
22939 GL_GENERATE_STDALIGN_H_TRUE='#'
22940 GL_GENERATE_STDALIGN_H_FALSE=
22941 fi
22942
22943
22944
22945 STDARG_H=''
22946 NEXT_STDARG_H='<stdarg.h>'
22947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
22948 $as_echo_n "checking for va_copy... " >&6; }
22949 if test "${gl_cv_func_va_copy+set}" = set; then :
22950 $as_echo_n "(cached) " >&6
22951 else
22952
22953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22954 /* end confdefs.h. */
22955 #include <stdarg.h>
22956 int
22957 main ()
22958 {
22959
22960 #ifndef va_copy
22961 void (*func) (va_list, va_list) = va_copy;
22962 #endif
22963
22964 ;
22965 return 0;
22966 }
22967 _ACEOF
22968 if ac_fn_c_try_compile "$LINENO"; then :
22969 gl_cv_func_va_copy=yes
22970 else
22971 gl_cv_func_va_copy=no
22972 fi
22973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22974 fi
22975
22976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
22977 $as_echo "$gl_cv_func_va_copy" >&6; }
22978 if test $gl_cv_func_va_copy = no; then
22979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22980 /* end confdefs.h. */
22981 #if defined _AIX && !defined __GNUC__
22982 AIX vaccine
22983 #endif
22984
22985 _ACEOF
22986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22987 $EGREP "vaccine" >/dev/null 2>&1; then :
22988 gl_aixcc=yes
22989 else
22990 gl_aixcc=no
22991 fi
22992 rm -f conftest*
22993
22994 if test $gl_aixcc = yes; then
22995 STDARG_H=stdarg.h
22996
22997
22998
22999
23000
23001
23002
23003
23004 if test $gl_cv_have_include_next = yes; then
23005 gl_cv_next_stdarg_h='<'stdarg.h'>'
23006 else
23007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
23008 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
23009 if test "${gl_cv_next_stdarg_h+set}" = set; then :
23010 $as_echo_n "(cached) " >&6
23011 else
23012
23013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23014 /* end confdefs.h. */
23015 #include <stdarg.h>
23016
23017 _ACEOF
23018 case "$host_os" in
23019 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23020 *) gl_absname_cpp="$ac_cpp" ;;
23021 esac
23022
23023 case "$host_os" in
23024 mingw*)
23025 gl_dirsep_regex='[/\\]'
23026 ;;
23027 *)
23028 gl_dirsep_regex='\/'
23029 ;;
23030 esac
23031 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23032
23033 gl_header_literal_regex=`echo 'stdarg.h' \
23034 | sed -e "$gl_make_literal_regex_sed"`
23035 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23036 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23037 s|^/[^/]|//&|
23038 p
23039 q
23040 }'
23041 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23042 sed -n "$gl_absolute_header_sed"`'"'
23043
23044
23045 fi
23046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
23047 $as_echo "$gl_cv_next_stdarg_h" >&6; }
23048 fi
23049 NEXT_STDARG_H=$gl_cv_next_stdarg_h
23050
23051 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23052 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23053 gl_next_as_first_directive='<'stdarg.h'>'
23054 else
23055 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23056 gl_next_as_first_directive=$gl_cv_next_stdarg_h
23057 fi
23058 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
23059
23060
23061
23062
23063 if test "$gl_cv_next_stdarg_h" = '""'; then
23064 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
23065 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
23066 fi
23067 else
23068
23069 saved_as_echo_n="$as_echo_n"
23070 as_echo_n=':'
23071 if test "${gl_cv_func___va_copy+set}" = set; then :
23072 $as_echo_n "(cached) " >&6
23073 else
23074
23075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23076 /* end confdefs.h. */
23077 #include <stdarg.h>
23078 int
23079 main ()
23080 {
23081
23082 #ifndef __va_copy
23083 error, bail out
23084 #endif
23085
23086 ;
23087 return 0;
23088 }
23089 _ACEOF
23090 if ac_fn_c_try_compile "$LINENO"; then :
23091 gl_cv_func___va_copy=yes
23092 else
23093 gl_cv_func___va_copy=no
23094 fi
23095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23096 fi
23097
23098 as_echo_n="$saved_as_echo_n"
23099
23100 if test $gl_cv_func___va_copy = yes; then
23101
23102 $as_echo "#define va_copy __va_copy" >>confdefs.h
23103
23104 else
23105
23106
23107 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
23108
23109 fi
23110 fi
23111 fi
23112
23113 if test -n "$STDARG_H"; then
23114 GL_GENERATE_STDARG_H_TRUE=
23115 GL_GENERATE_STDARG_H_FALSE='#'
23116 else
23117 GL_GENERATE_STDARG_H_TRUE='#'
23118 GL_GENERATE_STDARG_H_FALSE=
23119 fi
23120
23121
23122
23123
23124
23125
23126 # Define two additional variables used in the Makefile substitution.
23127
23128 if test "$ac_cv_header_stdbool_h" = yes; then
23129 STDBOOL_H=''
23130 else
23131 STDBOOL_H='stdbool.h'
23132 fi
23133
23134 if test -n "$STDBOOL_H"; then
23135 GL_GENERATE_STDBOOL_H_TRUE=
23136 GL_GENERATE_STDBOOL_H_FALSE='#'
23137 else
23138 GL_GENERATE_STDBOOL_H_TRUE='#'
23139 GL_GENERATE_STDBOOL_H_FALSE=
23140 fi
23141
23142
23143 if test "$ac_cv_type__Bool" = yes; then
23144 HAVE__BOOL=1
23145 else
23146 HAVE__BOOL=0
23147 fi
23148
23149
23150
23151
23152
23153 STDDEF_H=
23154 if test $gt_cv_c_wchar_t = no; then
23155 HAVE_WCHAR_T=0
23156 STDDEF_H=stddef.h
23157 fi
23158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
23159 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
23160 if test "${gl_cv_decl_null_works+set}" = set; then :
23161 $as_echo_n "(cached) " >&6
23162 else
23163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23164 /* end confdefs.h. */
23165 #include <stddef.h>
23166 int test[2 * (sizeof NULL == sizeof (void *)) -1];
23167
23168 int
23169 main ()
23170 {
23171
23172 ;
23173 return 0;
23174 }
23175 _ACEOF
23176 if ac_fn_c_try_compile "$LINENO"; then :
23177 gl_cv_decl_null_works=yes
23178 else
23179 gl_cv_decl_null_works=no
23180 fi
23181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23182 fi
23183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
23184 $as_echo "$gl_cv_decl_null_works" >&6; }
23185 if test $gl_cv_decl_null_works = no; then
23186 REPLACE_NULL=1
23187 STDDEF_H=stddef.h
23188 fi
23189
23190 if test -n "$STDDEF_H"; then
23191 GL_GENERATE_STDDEF_H_TRUE=
23192 GL_GENERATE_STDDEF_H_FALSE='#'
23193 else
23194 GL_GENERATE_STDDEF_H_TRUE='#'
23195 GL_GENERATE_STDDEF_H_FALSE=
23196 fi
23197
23198 if test -n "$STDDEF_H"; then
23199
23200
23201
23202
23203
23204
23205
23206
23207 if test $gl_cv_have_include_next = yes; then
23208 gl_cv_next_stddef_h='<'stddef.h'>'
23209 else
23210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
23211 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
23212 if test "${gl_cv_next_stddef_h+set}" = set; then :
23213 $as_echo_n "(cached) " >&6
23214 else
23215
23216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23217 /* end confdefs.h. */
23218 #include <stddef.h>
23219
23220 _ACEOF
23221 case "$host_os" in
23222 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23223 *) gl_absname_cpp="$ac_cpp" ;;
23224 esac
23225
23226 case "$host_os" in
23227 mingw*)
23228 gl_dirsep_regex='[/\\]'
23229 ;;
23230 *)
23231 gl_dirsep_regex='\/'
23232 ;;
23233 esac
23234 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23235
23236 gl_header_literal_regex=`echo 'stddef.h' \
23237 | sed -e "$gl_make_literal_regex_sed"`
23238 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23239 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23240 s|^/[^/]|//&|
23241 p
23242 q
23243 }'
23244 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23245 sed -n "$gl_absolute_header_sed"`'"'
23246
23247
23248 fi
23249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
23250 $as_echo "$gl_cv_next_stddef_h" >&6; }
23251 fi
23252 NEXT_STDDEF_H=$gl_cv_next_stddef_h
23253
23254 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23255 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23256 gl_next_as_first_directive='<'stddef.h'>'
23257 else
23258 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23259 gl_next_as_first_directive=$gl_cv_next_stddef_h
23260 fi
23261 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
23262
23263
23264
23265
23266 fi
23267
23268
23269
23270
23271
23272
23273
23274
23275
23276
23277
23278
23279
23280 if test $gl_cv_have_include_next = yes; then
23281 gl_cv_next_stdio_h='<'stdio.h'>'
23282 else
23283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
23284 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
23285 if test "${gl_cv_next_stdio_h+set}" = set; then :
23286 $as_echo_n "(cached) " >&6
23287 else
23288
23289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23290 /* end confdefs.h. */
23291 #include <stdio.h>
23292
23293 _ACEOF
23294 case "$host_os" in
23295 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23296 *) gl_absname_cpp="$ac_cpp" ;;
23297 esac
23298
23299 case "$host_os" in
23300 mingw*)
23301 gl_dirsep_regex='[/\\]'
23302 ;;
23303 *)
23304 gl_dirsep_regex='\/'
23305 ;;
23306 esac
23307 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23308
23309 gl_header_literal_regex=`echo 'stdio.h' \
23310 | sed -e "$gl_make_literal_regex_sed"`
23311 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23312 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23313 s|^/[^/]|//&|
23314 p
23315 q
23316 }'
23317 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23318 sed -n "$gl_absolute_header_sed"`'"'
23319
23320
23321 fi
23322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
23323 $as_echo "$gl_cv_next_stdio_h" >&6; }
23324 fi
23325 NEXT_STDIO_H=$gl_cv_next_stdio_h
23326
23327 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23328 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23329 gl_next_as_first_directive='<'stdio.h'>'
23330 else
23331 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23332 gl_next_as_first_directive=$gl_cv_next_stdio_h
23333 fi
23334 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
23335
23336
23337
23338
23339
23340 GNULIB_FSCANF=1
23341
23342
23343 cat >>confdefs.h <<_ACEOF
23344 #define GNULIB_FSCANF 1
23345 _ACEOF
23346
23347
23348 GNULIB_SCANF=1
23349
23350
23351 cat >>confdefs.h <<_ACEOF
23352 #define GNULIB_SCANF 1
23353 _ACEOF
23354
23355
23356 GNULIB_FGETC=1
23357 GNULIB_GETC=1
23358 GNULIB_GETCHAR=1
23359 GNULIB_FGETS=1
23360 GNULIB_FREAD=1
23361
23362
23363 GNULIB_FPRINTF=1
23364 GNULIB_PRINTF=1
23365 GNULIB_VFPRINTF=1
23366 GNULIB_VPRINTF=1
23367 GNULIB_FPUTC=1
23368 GNULIB_PUTC=1
23369 GNULIB_PUTCHAR=1
23370 GNULIB_FPUTS=1
23371 GNULIB_PUTS=1
23372 GNULIB_FWRITE=1
23373
23374
23375
23376
23377
23378
23379
23380
23381
23382
23383
23384
23385
23386
23387
23388 if test $gl_cv_have_include_next = yes; then
23389 gl_cv_next_stdlib_h='<'stdlib.h'>'
23390 else
23391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
23392 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
23393 if test "${gl_cv_next_stdlib_h+set}" = set; then :
23394 $as_echo_n "(cached) " >&6
23395 else
23396
23397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23398 /* end confdefs.h. */
23399 #include <stdlib.h>
23400
23401 _ACEOF
23402 case "$host_os" in
23403 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23404 *) gl_absname_cpp="$ac_cpp" ;;
23405 esac
23406
23407 case "$host_os" in
23408 mingw*)
23409 gl_dirsep_regex='[/\\]'
23410 ;;
23411 *)
23412 gl_dirsep_regex='\/'
23413 ;;
23414 esac
23415 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23416
23417 gl_header_literal_regex=`echo 'stdlib.h' \
23418 | sed -e "$gl_make_literal_regex_sed"`
23419 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23420 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23421 s|^/[^/]|//&|
23422 p
23423 q
23424 }'
23425 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23426 sed -n "$gl_absolute_header_sed"`'"'
23427
23428
23429 fi
23430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
23431 $as_echo "$gl_cv_next_stdlib_h" >&6; }
23432 fi
23433 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
23434
23435 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23436 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23437 gl_next_as_first_directive='<'stdlib.h'>'
23438 else
23439 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23440 gl_next_as_first_directive=$gl_cv_next_stdlib_h
23441 fi
23442 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
23443
23444
23445
23446
23447
23448
23449
23450
23451
23452 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
23453
23454
23455
23456
23457
23458
23459
23460 $as_echo "#define my_strftime nstrftime" >>confdefs.h
23461
23462
23463
23464
23465
23466
23467
23468
23469 if test "$ac_cv_have_decl_strtoimax" != yes; then
23470 HAVE_DECL_STRTOIMAX=0
23471 fi
23472
23473 if test $ac_cv_func_strtoimax = yes; then
23474 HAVE_STRTOIMAX=1
23475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
23476 $as_echo_n "checking whether strtoimax works... " >&6; }
23477 if test "${gl_cv_func_strtoimax+set}" = set; then :
23478 $as_echo_n "(cached) " >&6
23479 else
23480 if test "$cross_compiling" = yes; then :
23481 case "$host_os" in
23482 # Guess no on AIX 5.
23483 aix5*) gl_cv_func_strtoimax="guessing no" ;;
23484 # Guess yes otherwise.
23485 *) gl_cv_func_strtoimax="guessing yes" ;;
23486 esac
23487
23488 else
23489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23490 /* end confdefs.h. */
23491
23492 #include <errno.h>
23493 #include <string.h>
23494 #include <inttypes.h>
23495 int main ()
23496 {
23497 if (sizeof (intmax_t) > sizeof (int))
23498 {
23499 const char *s = "4294967295";
23500 char *p;
23501 intmax_t res;
23502 errno = 0;
23503 res = strtoimax (s, &p, 10);
23504 if (p != s + strlen (s))
23505 return 1;
23506 if (errno != 0)
23507 return 2;
23508 if (res != (intmax_t) 65535 * (intmax_t) 65537)
23509 return 3;
23510 }
23511 else
23512 {
23513 const char *s = "2147483647";
23514 char *p;
23515 intmax_t res;
23516 errno = 0;
23517 res = strtoimax (s, &p, 10);
23518 if (p != s + strlen (s))
23519 return 1;
23520 if (errno != 0)
23521 return 2;
23522 if (res != 2147483647)
23523 return 3;
23524 }
23525 return 0;
23526 }
23527
23528 _ACEOF
23529 if ac_fn_c_try_run "$LINENO"; then :
23530 gl_cv_func_strtoimax=yes
23531 else
23532 gl_cv_func_strtoimax=no
23533 fi
23534 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23535 conftest.$ac_objext conftest.beam conftest.$ac_ext
23536 fi
23537
23538
23539 fi
23540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
23541 $as_echo "$gl_cv_func_strtoimax" >&6; }
23542 case "$gl_cv_func_strtoimax" in
23543 *no) REPLACE_STRTOIMAX=1 ;;
23544 esac
23545 else
23546 HAVE_STRTOIMAX=0
23547 fi
23548
23549 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
23550
23551
23552
23553
23554
23555
23556
23557
23558 gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext"
23559
23560
23561 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
23562 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
23563 ac_have_decl=1
23564 else
23565 ac_have_decl=0
23566 fi
23567
23568 cat >>confdefs.h <<_ACEOF
23569 #define HAVE_DECL_STRTOLL $ac_have_decl
23570 _ACEOF
23571
23572
23573
23574 fi
23575
23576
23577
23578
23579
23580 GNULIB_STRTOIMAX=1
23581
23582
23583
23584
23585
23586
23587
23588
23589
23590 if test "$ac_cv_have_decl_strtoumax" != yes; then
23591 HAVE_DECL_STRTOUMAX=0
23592 fi
23593
23594 if test $ac_cv_func_strtoumax = no; then
23595
23596
23597
23598
23599
23600
23601
23602
23603 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
23604
23605
23606 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
23607 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
23608 ac_have_decl=1
23609 else
23610 ac_have_decl=0
23611 fi
23612
23613 cat >>confdefs.h <<_ACEOF
23614 #define HAVE_DECL_STRTOULL $ac_have_decl
23615 _ACEOF
23616
23617
23618
23619 fi
23620
23621
23622
23623
23624
23625 GNULIB_STRTOUMAX=1
23626
23627
23628
23629
23630
23631
23632
23633 if test $ac_cv_func_symlink = no; then
23634 HAVE_SYMLINK=0
23635 else
23636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
23637 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
23638 if test "${gl_cv_func_symlink_works+set}" = set; then :
23639 $as_echo_n "(cached) " >&6
23640 else
23641 if test "$cross_compiling" = yes; then :
23642 case "$host_os" in
23643 # Guess yes on glibc systems.
23644 *-gnu*) gl_cv_func_symlink_works="guessing yes" ;;
23645 # If we don't know, assume the worst.
23646 *) gl_cv_func_symlink_works="guessing no" ;;
23647 esac
23648
23649 else
23650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23651 /* end confdefs.h. */
23652 #include <unistd.h>
23653
23654 int
23655 main ()
23656 {
23657 int result = 0;
23658 if (!symlink ("a", "conftest.link/"))
23659 result |= 1;
23660 if (symlink ("conftest.f", "conftest.lnk2"))
23661 result |= 2;
23662 else if (!symlink ("a", "conftest.lnk2/"))
23663 result |= 4;
23664 return result;
23665
23666 ;
23667 return 0;
23668 }
23669 _ACEOF
23670 if ac_fn_c_try_run "$LINENO"; then :
23671 gl_cv_func_symlink_works=yes
23672 else
23673 gl_cv_func_symlink_works=no
23674 fi
23675 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23676 conftest.$ac_objext conftest.beam conftest.$ac_ext
23677 fi
23678
23679 rm -f conftest.f conftest.link conftest.lnk2
23680 fi
23681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
23682 $as_echo "$gl_cv_func_symlink_works" >&6; }
23683 case "$gl_cv_func_symlink_works" in
23684 *yes) ;;
23685 *)
23686 REPLACE_SYMLINK=1
23687 ;;
23688 esac
23689 fi
23690
23691 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
23692
23693
23694
23695
23696
23697
23698
23699
23700 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
23701
23702 fi
23703
23704
23705
23706
23707
23708 GNULIB_SYMLINK=1
23709
23710
23711
23712
23713
23714
23715
23716
23717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
23718 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
23719 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
23720 $as_echo_n "(cached) " >&6
23721 else
23722
23723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23724 /* end confdefs.h. */
23725 #include <sys/select.h>
23726 int
23727 main ()
23728 {
23729 struct timeval b;
23730 ;
23731 return 0;
23732 }
23733 _ACEOF
23734 if ac_fn_c_try_compile "$LINENO"; then :
23735 gl_cv_header_sys_select_h_selfcontained=yes
23736 else
23737 gl_cv_header_sys_select_h_selfcontained=no
23738 fi
23739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23740 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
23741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23742 /* end confdefs.h. */
23743 #include <sys/select.h>
23744 int
23745 main ()
23746 {
23747 int memset; int bzero;
23748 ;
23749 return 0;
23750 }
23751
23752 _ACEOF
23753 if ac_fn_c_try_compile "$LINENO"; then :
23754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23755 /* end confdefs.h. */
23756 #include <sys/select.h>
23757 int
23758 main ()
23759 {
23760
23761 #undef memset
23762 #define memset nonexistent_memset
23763 extern
23764 #ifdef __cplusplus
23765 "C"
23766 #endif
23767 void *memset (void *, int, unsigned long);
23768 #undef bzero
23769 #define bzero nonexistent_bzero
23770 extern
23771 #ifdef __cplusplus
23772 "C"
23773 #endif
23774 void bzero (void *, unsigned long);
23775 fd_set fds;
23776 FD_ZERO (&fds);
23777
23778 ;
23779 return 0;
23780 }
23781
23782 _ACEOF
23783 if ac_fn_c_try_link "$LINENO"; then :
23784
23785 else
23786 gl_cv_header_sys_select_h_selfcontained=no
23787 fi
23788 rm -f core conftest.err conftest.$ac_objext \
23789 conftest$ac_exeext conftest.$ac_ext
23790
23791 fi
23792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23793 fi
23794
23795 fi
23796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
23797 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
23798
23799
23800
23801
23802
23803
23804
23805
23806
23807 if test $gl_cv_have_include_next = yes; then
23808 gl_cv_next_sys_select_h='<'sys/select.h'>'
23809 else
23810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
23811 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
23812 if test "${gl_cv_next_sys_select_h+set}" = set; then :
23813 $as_echo_n "(cached) " >&6
23814 else
23815
23816 if test $ac_cv_header_sys_select_h = yes; then
23817
23818
23819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23820 /* end confdefs.h. */
23821 #include <sys/select.h>
23822
23823 _ACEOF
23824 case "$host_os" in
23825 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23826 *) gl_absname_cpp="$ac_cpp" ;;
23827 esac
23828
23829 case "$host_os" in
23830 mingw*)
23831 gl_dirsep_regex='[/\\]'
23832 ;;
23833 *)
23834 gl_dirsep_regex='\/'
23835 ;;
23836 esac
23837 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23838
23839 gl_header_literal_regex=`echo 'sys/select.h' \
23840 | sed -e "$gl_make_literal_regex_sed"`
23841 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23842 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23843 s|^/[^/]|//&|
23844 p
23845 q
23846 }'
23847 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23848 sed -n "$gl_absolute_header_sed"`'"'
23849 else
23850 gl_cv_next_sys_select_h='<'sys/select.h'>'
23851 fi
23852
23853
23854 fi
23855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
23856 $as_echo "$gl_cv_next_sys_select_h" >&6; }
23857 fi
23858 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
23859
23860 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23861 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23862 gl_next_as_first_directive='<'sys/select.h'>'
23863 else
23864 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23865 gl_next_as_first_directive=$gl_cv_next_sys_select_h
23866 fi
23867 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
23868
23869
23870
23871
23872 if test $ac_cv_header_sys_select_h = yes; then
23873 HAVE_SYS_SELECT_H=1
23874 else
23875 HAVE_SYS_SELECT_H=0
23876 fi
23877
23878
23879
23880
23881
23882 if test $ac_cv_header_sys_socket_h != yes; then
23883 for ac_header in winsock2.h
23884 do :
23885 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
23886 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
23887 cat >>confdefs.h <<_ACEOF
23888 #define HAVE_WINSOCK2_H 1
23889 _ACEOF
23890
23891 fi
23892
23893 done
23894
23895 fi
23896 if test "$ac_cv_header_winsock2_h" = yes; then
23897 HAVE_WINSOCK2_H=1
23898 UNISTD_H_HAVE_WINSOCK2_H=1
23899 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
23900 else
23901 HAVE_WINSOCK2_H=0
23902 fi
23903
23904
23905
23906
23907
23908
23909
23910
23911
23912
23913
23914
23915
23916
23917
23918
23919
23920
23921
23922
23923
23924
23925 if test $gl_cv_have_include_next = yes; then
23926 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
23927 else
23928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
23929 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
23930 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
23931 $as_echo_n "(cached) " >&6
23932 else
23933
23934 if test $ac_cv_header_sys_stat_h = yes; then
23935
23936
23937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23938 /* end confdefs.h. */
23939 #include <sys/stat.h>
23940
23941 _ACEOF
23942 case "$host_os" in
23943 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23944 *) gl_absname_cpp="$ac_cpp" ;;
23945 esac
23946
23947 case "$host_os" in
23948 mingw*)
23949 gl_dirsep_regex='[/\\]'
23950 ;;
23951 *)
23952 gl_dirsep_regex='\/'
23953 ;;
23954 esac
23955 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23956
23957 gl_header_literal_regex=`echo 'sys/stat.h' \
23958 | sed -e "$gl_make_literal_regex_sed"`
23959 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23960 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23961 s|^/[^/]|//&|
23962 p
23963 q
23964 }'
23965 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23966 sed -n "$gl_absolute_header_sed"`'"'
23967 else
23968 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
23969 fi
23970
23971
23972 fi
23973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
23974 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
23975 fi
23976 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
23977
23978 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23979 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23980 gl_next_as_first_directive='<'sys/stat.h'>'
23981 else
23982 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23983 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
23984 fi
23985 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
23986
23987
23988
23989
23990
23991
23992
23993
23994
23995
23996
23997 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
23998
23999 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
24000
24001 fi
24002
24003 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
24004 #include <sys/stat.h>
24005 "
24006 if test "x$ac_cv_type_nlink_t" = x""yes; then :
24007
24008 else
24009
24010 $as_echo "#define nlink_t int" >>confdefs.h
24011
24012 fi
24013
24014
24015
24016
24017
24018
24019
24020
24021
24022
24023
24024
24025
24026
24027
24028
24029
24030
24031 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
24032 "
24033 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
24034 ac_have_decl=1
24035 else
24036 ac_have_decl=0
24037 fi
24038
24039 cat >>confdefs.h <<_ACEOF
24040 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
24041 _ACEOF
24042
24043 if test $ac_cv_have_decl_localtime_r = no; then
24044 HAVE_DECL_LOCALTIME_R=0
24045 fi
24046
24047
24048 if test $ac_cv_func_localtime_r = yes; then
24049 HAVE_LOCALTIME_R=1
24050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
24051 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
24052 if test "${gl_cv_time_r_posix+set}" = set; then :
24053 $as_echo_n "(cached) " >&6
24054 else
24055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24056 /* end confdefs.h. */
24057 #include <time.h>
24058 int
24059 main ()
24060 {
24061 /* We don't need to append 'restrict's to the argument types,
24062 even though the POSIX signature has the 'restrict's,
24063 since C99 says they can't affect type compatibility. */
24064 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
24065 if (ptr) return 0;
24066 /* Check the return type is a pointer.
24067 On HP-UX 10 it is 'int'. */
24068 *localtime_r (0, 0);
24069 ;
24070 return 0;
24071 }
24072
24073 _ACEOF
24074 if ac_fn_c_try_compile "$LINENO"; then :
24075 gl_cv_time_r_posix=yes
24076 else
24077 gl_cv_time_r_posix=no
24078 fi
24079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24080
24081 fi
24082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
24083 $as_echo "$gl_cv_time_r_posix" >&6; }
24084 if test $gl_cv_time_r_posix = yes; then
24085 REPLACE_LOCALTIME_R=0
24086 else
24087 REPLACE_LOCALTIME_R=1
24088 fi
24089 else
24090 HAVE_LOCALTIME_R=0
24091 fi
24092
24093 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
24094
24095
24096
24097
24098
24099
24100
24101
24102 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
24103
24104
24105 :
24106
24107 fi
24108
24109
24110
24111
24112
24113 GNULIB_TIME_R=1
24114
24115
24116
24117
24118
24119
24120
24121
24122
24123
24124 LIB_TIMER_TIME=
24125
24126 gl_saved_libs=$LIBS
24127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_settime" >&5
24128 $as_echo_n "checking for library containing timer_settime... " >&6; }
24129 if test "${ac_cv_search_timer_settime+set}" = set; then :
24130 $as_echo_n "(cached) " >&6
24131 else
24132 ac_func_search_save_LIBS=$LIBS
24133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24134 /* end confdefs.h. */
24135
24136 /* Override any GCC internal prototype to avoid an error.
24137 Use char because int might match the return type of a GCC
24138 builtin and then its argument prototype would still apply. */
24139 #ifdef __cplusplus
24140 extern "C"
24141 #endif
24142 char timer_settime ();
24143 int
24144 main ()
24145 {
24146 return timer_settime ();
24147 ;
24148 return 0;
24149 }
24150 _ACEOF
24151 for ac_lib in '' rt posix4; do
24152 if test -z "$ac_lib"; then
24153 ac_res="none required"
24154 else
24155 ac_res=-l$ac_lib
24156 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24157 fi
24158 if ac_fn_c_try_link "$LINENO"; then :
24159 ac_cv_search_timer_settime=$ac_res
24160 fi
24161 rm -f core conftest.err conftest.$ac_objext \
24162 conftest$ac_exeext
24163 if test "${ac_cv_search_timer_settime+set}" = set; then :
24164 break
24165 fi
24166 done
24167 if test "${ac_cv_search_timer_settime+set}" = set; then :
24168
24169 else
24170 ac_cv_search_timer_settime=no
24171 fi
24172 rm conftest.$ac_ext
24173 LIBS=$ac_func_search_save_LIBS
24174 fi
24175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_settime" >&5
24176 $as_echo "$ac_cv_search_timer_settime" >&6; }
24177 ac_res=$ac_cv_search_timer_settime
24178 if test "$ac_res" != no; then :
24179 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24180 test "$ac_cv_search_timer_settime" = "none required" ||
24181 LIB_TIMER_TIME=$ac_cv_search_timer_settime
24182 fi
24183
24184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24185 /* end confdefs.h. */
24186
24187 #include <features.h>
24188 #ifdef __GNU_LIBRARY__
24189 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || (__GLIBC__ > 2)) \
24190 && !defined __UCLIBC__
24191 Thread emulation available
24192 #endif
24193 #endif
24194
24195 _ACEOF
24196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24197 $EGREP "Thread" >/dev/null 2>&1; then :
24198 LIB_TIMER_TIME="$LIB_TIMER_TIME $LIBMULTITHREAD"
24199 fi
24200 rm -f conftest*
24201
24202 for ac_func in timer_settime
24203 do :
24204 ac_fn_c_check_func "$LINENO" "timer_settime" "ac_cv_func_timer_settime"
24205 if test "x$ac_cv_func_timer_settime" = x""yes; then :
24206 cat >>confdefs.h <<_ACEOF
24207 #define HAVE_TIMER_SETTIME 1
24208 _ACEOF
24209
24210 fi
24211 done
24212
24213 LIBS=$gl_saved_libs
24214
24215 :
24216
24217
24218
24219
24220
24221
24222
24223
24224
24225
24226
24227
24228
24229 if test $gl_cv_have_include_next = yes; then
24230 gl_cv_next_unistd_h='<'unistd.h'>'
24231 else
24232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
24233 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
24234 if test "${gl_cv_next_unistd_h+set}" = set; then :
24235 $as_echo_n "(cached) " >&6
24236 else
24237
24238 if test $ac_cv_header_unistd_h = yes; then
24239
24240
24241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24242 /* end confdefs.h. */
24243 #include <unistd.h>
24244
24245 _ACEOF
24246 case "$host_os" in
24247 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24248 *) gl_absname_cpp="$ac_cpp" ;;
24249 esac
24250
24251 case "$host_os" in
24252 mingw*)
24253 gl_dirsep_regex='[/\\]'
24254 ;;
24255 *)
24256 gl_dirsep_regex='\/'
24257 ;;
24258 esac
24259 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24260
24261 gl_header_literal_regex=`echo 'unistd.h' \
24262 | sed -e "$gl_make_literal_regex_sed"`
24263 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24264 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24265 s|^/[^/]|//&|
24266 p
24267 q
24268 }'
24269 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24270 sed -n "$gl_absolute_header_sed"`'"'
24271 else
24272 gl_cv_next_unistd_h='<'unistd.h'>'
24273 fi
24274
24275
24276 fi
24277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
24278 $as_echo "$gl_cv_next_unistd_h" >&6; }
24279 fi
24280 NEXT_UNISTD_H=$gl_cv_next_unistd_h
24281
24282 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24283 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24284 gl_next_as_first_directive='<'unistd.h'>'
24285 else
24286 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24287 gl_next_as_first_directive=$gl_cv_next_unistd_h
24288 fi
24289 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
24290
24291
24292
24293
24294 if test $ac_cv_header_unistd_h = yes; then
24295 HAVE_UNISTD_H=1
24296 else
24297 HAVE_UNISTD_H=0
24298 fi
24299
24300
24301
24302
24303
24304
24305
24306
24307
24308
24309
24310
24311
24312
24313 if test $ac_cv_func_futimens = no && test $ac_cv_func_futimesat = yes; then
24314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
24315 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
24316 if test "${gl_cv_func_futimesat_works+set}" = set; then :
24317 $as_echo_n "(cached) " >&6
24318 else
24319 touch conftest.file
24320 if test "$cross_compiling" = yes; then :
24321 case "$host_os" in
24322 # Guess yes on glibc systems.
24323 *-gnu*) gl_cv_func_futimesat_works="guessing yes" ;;
24324 # If we don't know, assume the worst.
24325 *) gl_cv_func_futimesat_works="guessing no" ;;
24326 esac
24327
24328 else
24329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24330 /* end confdefs.h. */
24331
24332 #include <stddef.h>
24333 #include <sys/times.h>
24334 #include <fcntl.h>
24335
24336 int
24337 main ()
24338 {
24339 int fd = open ("conftest.file", O_RDWR);
24340 if (fd < 0) return 1;
24341 if (futimesat (fd, NULL, NULL)) return 2;
24342
24343 ;
24344 return 0;
24345 }
24346 _ACEOF
24347 if ac_fn_c_try_run "$LINENO"; then :
24348 gl_cv_func_futimesat_works=yes
24349 else
24350 gl_cv_func_futimesat_works=no
24351 fi
24352 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24353 conftest.$ac_objext conftest.beam conftest.$ac_ext
24354 fi
24355
24356 rm -f conftest.file
24357 fi
24358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
24359 $as_echo "$gl_cv_func_futimesat_works" >&6; }
24360 case "$gl_cv_func_futimesat_works" in
24361 *yes) ;;
24362 *)
24363
24364 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
24365
24366 ;;
24367 esac
24368 fi
24369
24370 gl_gnulib_enabled_dosname=false
24371 gl_gnulib_enabled_euidaccess=false
24372 gl_gnulib_enabled_getgroups=false
24373 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
24374 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1=false
24375 gl_gnulib_enabled_pathmax=false
24376 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c=false
24377 gl_gnulib_enabled_stat=false
24378 gl_gnulib_enabled_strtoll=false
24379 gl_gnulib_enabled_strtoull=false
24380 gl_gnulib_enabled_verify=false
24381 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec=false
24382 func_gl_gnulib_m4code_dosname ()
24383 {
24384 if ! $gl_gnulib_enabled_dosname; then
24385 gl_gnulib_enabled_dosname=true
24386 fi
24387 }
24388 func_gl_gnulib_m4code_euidaccess ()
24389 {
24390 if ! $gl_gnulib_enabled_euidaccess; then
24391
24392
24393
24394
24395
24396 for ac_func in euidaccess
24397 do :
24398 ac_fn_c_check_func "$LINENO" "euidaccess" "ac_cv_func_euidaccess"
24399 if test "x$ac_cv_func_euidaccess" = x""yes; then :
24400 cat >>confdefs.h <<_ACEOF
24401 #define HAVE_EUIDACCESS 1
24402 _ACEOF
24403
24404 fi
24405 done
24406
24407 if test $ac_cv_func_euidaccess = no; then
24408 HAVE_EUIDACCESS=0
24409 fi
24410
24411 if test $HAVE_EUIDACCESS = 0; then
24412
24413
24414
24415
24416
24417
24418
24419
24420 gl_LIBOBJS="$gl_LIBOBJS euidaccess.$ac_objext"
24421
24422
24423
24424 for ac_header in libgen.h
24425 do :
24426 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
24427 if test "x$ac_cv_header_libgen_h" = x""yes; then :
24428 cat >>confdefs.h <<_ACEOF
24429 #define HAVE_LIBGEN_H 1
24430 _ACEOF
24431
24432 fi
24433
24434 done
24435
24436
24437 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
24438 if test "x$ac_cv_func_getgroups" = x""yes; then :
24439
24440 fi
24441
24442
24443 # If we don't yet have getgroups, see if it's in -lbsd.
24444 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
24445 ac_save_LIBS=$LIBS
24446 if test $ac_cv_func_getgroups = no; then
24447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
24448 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
24449 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
24450 $as_echo_n "(cached) " >&6
24451 else
24452 ac_check_lib_save_LIBS=$LIBS
24453 LIBS="-lbsd $LIBS"
24454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24455 /* end confdefs.h. */
24456
24457 /* Override any GCC internal prototype to avoid an error.
24458 Use char because int might match the return type of a GCC
24459 builtin and then its argument prototype would still apply. */
24460 #ifdef __cplusplus
24461 extern "C"
24462 #endif
24463 char getgroups ();
24464 int
24465 main ()
24466 {
24467 return getgroups ();
24468 ;
24469 return 0;
24470 }
24471 _ACEOF
24472 if ac_fn_c_try_link "$LINENO"; then :
24473 ac_cv_lib_bsd_getgroups=yes
24474 else
24475 ac_cv_lib_bsd_getgroups=no
24476 fi
24477 rm -f core conftest.err conftest.$ac_objext \
24478 conftest$ac_exeext conftest.$ac_ext
24479 LIBS=$ac_check_lib_save_LIBS
24480 fi
24481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
24482 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
24483 if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then :
24484 GETGROUPS_LIB=-lbsd
24485 fi
24486
24487 fi
24488
24489 # Run the program to test the functionality of the system-supplied
24490 # getgroups function only if there is such a function.
24491 if test $ac_cv_func_getgroups = yes; then
24492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
24493 $as_echo_n "checking for working getgroups... " >&6; }
24494 if test "${ac_cv_func_getgroups_works+set}" = set; then :
24495 $as_echo_n "(cached) " >&6
24496 else
24497 if test "$cross_compiling" = yes; then :
24498 case "$host_os" in # ((
24499 # Guess yes on glibc systems.
24500 *-gnu*) ac_cv_func_getgroups_works="guessing yes" ;;
24501 # If we don't know, assume the worst.
24502 *) ac_cv_func_getgroups_works="guessing no" ;;
24503 esac
24504
24505 else
24506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24507 /* end confdefs.h. */
24508 $ac_includes_default
24509 int
24510 main ()
24511 {
24512 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
24513 return getgroups (0, 0) == -1;
24514 ;
24515 return 0;
24516 }
24517
24518 _ACEOF
24519 if ac_fn_c_try_run "$LINENO"; then :
24520 ac_cv_func_getgroups_works=yes
24521 else
24522 ac_cv_func_getgroups_works=no
24523 fi
24524 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24525 conftest.$ac_objext conftest.beam conftest.$ac_ext
24526 fi
24527
24528
24529 fi
24530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
24531 $as_echo "$ac_cv_func_getgroups_works" >&6; }
24532 else
24533 ac_cv_func_getgroups_works=no
24534 fi
24535 case "$ac_cv_func_getgroups_works" in
24536 *yes)
24537
24538 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
24539
24540 ;;
24541 esac
24542 LIBS=$ac_save_LIBS
24543
24544
24545 # Solaris 9 and 10 need -lgen to get the eaccess function.
24546 # Save and restore LIBS so -lgen isn't added to it. Otherwise, *all*
24547 # programs in the package would end up linked with that potentially-shared
24548 # library, inducing unnecessary run-time overhead.
24549 LIB_EACCESS=
24550
24551 gl_saved_libs=$LIBS
24552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing eaccess" >&5
24553 $as_echo_n "checking for library containing eaccess... " >&6; }
24554 if test "${ac_cv_search_eaccess+set}" = set; then :
24555 $as_echo_n "(cached) " >&6
24556 else
24557 ac_func_search_save_LIBS=$LIBS
24558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24559 /* end confdefs.h. */
24560
24561 /* Override any GCC internal prototype to avoid an error.
24562 Use char because int might match the return type of a GCC
24563 builtin and then its argument prototype would still apply. */
24564 #ifdef __cplusplus
24565 extern "C"
24566 #endif
24567 char eaccess ();
24568 int
24569 main ()
24570 {
24571 return eaccess ();
24572 ;
24573 return 0;
24574 }
24575 _ACEOF
24576 for ac_lib in '' gen; do
24577 if test -z "$ac_lib"; then
24578 ac_res="none required"
24579 else
24580 ac_res=-l$ac_lib
24581 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24582 fi
24583 if ac_fn_c_try_link "$LINENO"; then :
24584 ac_cv_search_eaccess=$ac_res
24585 fi
24586 rm -f core conftest.err conftest.$ac_objext \
24587 conftest$ac_exeext
24588 if test "${ac_cv_search_eaccess+set}" = set; then :
24589 break
24590 fi
24591 done
24592 if test "${ac_cv_search_eaccess+set}" = set; then :
24593
24594 else
24595 ac_cv_search_eaccess=no
24596 fi
24597 rm conftest.$ac_ext
24598 LIBS=$ac_func_search_save_LIBS
24599 fi
24600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_eaccess" >&5
24601 $as_echo "$ac_cv_search_eaccess" >&6; }
24602 ac_res=$ac_cv_search_eaccess
24603 if test "$ac_res" != no; then :
24604 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24605 test "$ac_cv_search_eaccess" = "none required" ||
24606 LIB_EACCESS=$ac_cv_search_eaccess
24607 fi
24608
24609 for ac_func in eaccess
24610 do :
24611 ac_fn_c_check_func "$LINENO" "eaccess" "ac_cv_func_eaccess"
24612 if test "x$ac_cv_func_eaccess" = x""yes; then :
24613 cat >>confdefs.h <<_ACEOF
24614 #define HAVE_EACCESS 1
24615 _ACEOF
24616
24617 fi
24618 done
24619
24620 LIBS=$gl_saved_libs
24621
24622 fi
24623
24624
24625
24626
24627
24628 GNULIB_EUIDACCESS=1
24629
24630
24631
24632
24633
24634 gl_gnulib_enabled_euidaccess=true
24635 if test $HAVE_EUIDACCESS = 0; then
24636 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1
24637 fi
24638 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c
24639 if test $HAVE_EUIDACCESS = 0; then
24640 func_gl_gnulib_m4code_stat
24641 fi
24642 fi
24643 }
24644 func_gl_gnulib_m4code_getgroups ()
24645 {
24646 if ! $gl_gnulib_enabled_getgroups; then
24647
24648
24649
24650
24651
24652 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
24653 if test "x$ac_cv_func_getgroups" = x""yes; then :
24654
24655 fi
24656
24657
24658 # If we don't yet have getgroups, see if it's in -lbsd.
24659 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
24660 ac_save_LIBS=$LIBS
24661 if test $ac_cv_func_getgroups = no; then
24662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
24663 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
24664 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
24665 $as_echo_n "(cached) " >&6
24666 else
24667 ac_check_lib_save_LIBS=$LIBS
24668 LIBS="-lbsd $LIBS"
24669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24670 /* end confdefs.h. */
24671
24672 /* Override any GCC internal prototype to avoid an error.
24673 Use char because int might match the return type of a GCC
24674 builtin and then its argument prototype would still apply. */
24675 #ifdef __cplusplus
24676 extern "C"
24677 #endif
24678 char getgroups ();
24679 int
24680 main ()
24681 {
24682 return getgroups ();
24683 ;
24684 return 0;
24685 }
24686 _ACEOF
24687 if ac_fn_c_try_link "$LINENO"; then :
24688 ac_cv_lib_bsd_getgroups=yes
24689 else
24690 ac_cv_lib_bsd_getgroups=no
24691 fi
24692 rm -f core conftest.err conftest.$ac_objext \
24693 conftest$ac_exeext conftest.$ac_ext
24694 LIBS=$ac_check_lib_save_LIBS
24695 fi
24696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
24697 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
24698 if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then :
24699 GETGROUPS_LIB=-lbsd
24700 fi
24701
24702 fi
24703
24704 # Run the program to test the functionality of the system-supplied
24705 # getgroups function only if there is such a function.
24706 if test $ac_cv_func_getgroups = yes; then
24707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
24708 $as_echo_n "checking for working getgroups... " >&6; }
24709 if test "${ac_cv_func_getgroups_works+set}" = set; then :
24710 $as_echo_n "(cached) " >&6
24711 else
24712 if test "$cross_compiling" = yes; then :
24713 case "$host_os" in # ((
24714 # Guess yes on glibc systems.
24715 *-gnu*) ac_cv_func_getgroups_works="guessing yes" ;;
24716 # If we don't know, assume the worst.
24717 *) ac_cv_func_getgroups_works="guessing no" ;;
24718 esac
24719
24720 else
24721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24722 /* end confdefs.h. */
24723 $ac_includes_default
24724 int
24725 main ()
24726 {
24727 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
24728 return getgroups (0, 0) == -1;
24729 ;
24730 return 0;
24731 }
24732
24733 _ACEOF
24734 if ac_fn_c_try_run "$LINENO"; then :
24735 ac_cv_func_getgroups_works=yes
24736 else
24737 ac_cv_func_getgroups_works=no
24738 fi
24739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24740 conftest.$ac_objext conftest.beam conftest.$ac_ext
24741 fi
24742
24743
24744 fi
24745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
24746 $as_echo "$ac_cv_func_getgroups_works" >&6; }
24747 else
24748 ac_cv_func_getgroups_works=no
24749 fi
24750 case "$ac_cv_func_getgroups_works" in
24751 *yes)
24752
24753 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
24754
24755 ;;
24756 esac
24757 LIBS=$ac_save_LIBS
24758
24759 if test $ac_cv_func_getgroups != yes; then
24760 HAVE_GETGROUPS=0
24761 else
24762 if test "$ac_cv_type_getgroups" != gid_t \
24763 || { case "$ac_cv_func_getgroups_works" in
24764 *yes) false;;
24765 *) true;;
24766 esac
24767 }; then
24768 REPLACE_GETGROUPS=1
24769
24770 $as_echo "#define GETGROUPS_ZERO_BUG 1" >>confdefs.h
24771
24772 else
24773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getgroups handles negative values" >&5
24774 $as_echo_n "checking whether getgroups handles negative values... " >&6; }
24775 if test "${gl_cv_func_getgroups_works+set}" = set; then :
24776 $as_echo_n "(cached) " >&6
24777 else
24778 if test "$cross_compiling" = yes; then :
24779 case "$host_os" in
24780 # Guess yes on glibc systems.
24781 *-gnu*) gl_cv_func_getgroups_works="guessing yes" ;;
24782 # If we don't know, assume the worst.
24783 *) gl_cv_func_getgroups_works="guessing no" ;;
24784 esac
24785
24786 else
24787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24788 /* end confdefs.h. */
24789 $ac_includes_default
24790 int
24791 main ()
24792 {
24793 int size = getgroups (0, 0);
24794 gid_t *list = malloc (size * sizeof *list);
24795 return getgroups (-1, list) != -1;
24796 ;
24797 return 0;
24798 }
24799 _ACEOF
24800 if ac_fn_c_try_run "$LINENO"; then :
24801 gl_cv_func_getgroups_works=yes
24802 else
24803 gl_cv_func_getgroups_works=no
24804 fi
24805 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24806 conftest.$ac_objext conftest.beam conftest.$ac_ext
24807 fi
24808
24809 fi
24810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getgroups_works" >&5
24811 $as_echo "$gl_cv_func_getgroups_works" >&6; }
24812 case "$gl_cv_func_getgroups_works" in
24813 *yes) ;;
24814 *) REPLACE_GETGROUPS=1 ;;
24815 esac
24816 fi
24817 fi
24818 test -n "$GETGROUPS_LIB" && LIBS="$GETGROUPS_LIB $LIBS"
24819
24820 if test $HAVE_GETGROUPS = 0 || test $REPLACE_GETGROUPS = 1; then
24821
24822
24823
24824
24825
24826
24827
24828
24829 gl_LIBOBJS="$gl_LIBOBJS getgroups.$ac_objext"
24830
24831 fi
24832
24833
24834
24835
24836
24837 GNULIB_GETGROUPS=1
24838
24839
24840
24841
24842
24843 gl_gnulib_enabled_getgroups=true
24844 fi
24845 }
24846 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
24847 {
24848 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
24849
24850
24851 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
24852 fi
24853 }
24854 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1 ()
24855 {
24856 if ! $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
24857
24858
24859
24860
24861
24862 ac_fn_c_check_func "$LINENO" "group_member" "ac_cv_func_group_member"
24863 if test "x$ac_cv_func_group_member" = x""yes; then :
24864
24865 else
24866
24867 HAVE_GROUP_MEMBER=0
24868
24869 fi
24870
24871
24872 if test $HAVE_GROUP_MEMBER = 0; then
24873
24874
24875
24876
24877
24878
24879
24880
24881 gl_LIBOBJS="$gl_LIBOBJS group-member.$ac_objext"
24882
24883
24884
24885
24886 fi
24887
24888
24889
24890
24891
24892 GNULIB_GROUP_MEMBER=1
24893
24894
24895
24896
24897
24898 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1=true
24899 if test $HAVE_GROUP_MEMBER = 0; then
24900 func_gl_gnulib_m4code_getgroups
24901 fi
24902 if test $HAVE_GROUP_MEMBER = 0; then
24903 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec
24904 fi
24905 fi
24906 }
24907 func_gl_gnulib_m4code_pathmax ()
24908 {
24909 if ! $gl_gnulib_enabled_pathmax; then
24910
24911
24912
24913 gl_gnulib_enabled_pathmax=true
24914 fi
24915 }
24916 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c ()
24917 {
24918 if ! $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
24919 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c=true
24920 fi
24921 }
24922 func_gl_gnulib_m4code_stat ()
24923 {
24924 if ! $gl_gnulib_enabled_stat; then
24925
24926
24927
24928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
24929 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
24930 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
24931 $as_echo_n "(cached) " >&6
24932 else
24933 if test "$cross_compiling" = yes; then :
24934 case $host_os in
24935 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
24936 *) gl_cv_func_stat_dir_slash="guessing yes";;
24937 esac
24938 else
24939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24940 /* end confdefs.h. */
24941 #include <sys/stat.h>
24942
24943 int
24944 main ()
24945 {
24946 struct stat st; return stat (".", &st) != stat ("./", &st);
24947 ;
24948 return 0;
24949 }
24950 _ACEOF
24951 if ac_fn_c_try_run "$LINENO"; then :
24952 gl_cv_func_stat_dir_slash=yes
24953 else
24954 gl_cv_func_stat_dir_slash=no
24955 fi
24956 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24957 conftest.$ac_objext conftest.beam conftest.$ac_ext
24958 fi
24959
24960 fi
24961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
24962 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
24963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
24964 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
24965 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
24966 $as_echo_n "(cached) " >&6
24967 else
24968 touch conftest.tmp
24969 # Assume that if we have lstat, we can also check symlinks.
24970 if test $ac_cv_func_lstat = yes; then
24971 ln -s conftest.tmp conftest.lnk
24972 fi
24973 if test "$cross_compiling" = yes; then :
24974 case "$host_os" in
24975 # Guess yes on glibc systems.
24976 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
24977 # If we don't know, assume the worst.
24978 *) gl_cv_func_stat_file_slash="guessing no" ;;
24979 esac
24980
24981 else
24982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24983 /* end confdefs.h. */
24984 #include <sys/stat.h>
24985
24986 int
24987 main ()
24988 {
24989 int result = 0;
24990 struct stat st;
24991 if (!stat ("conftest.tmp/", &st))
24992 result |= 1;
24993 #if HAVE_LSTAT
24994 if (!stat ("conftest.lnk/", &st))
24995 result |= 2;
24996 #endif
24997 return result;
24998
24999 ;
25000 return 0;
25001 }
25002 _ACEOF
25003 if ac_fn_c_try_run "$LINENO"; then :
25004 gl_cv_func_stat_file_slash=yes
25005 else
25006 gl_cv_func_stat_file_slash=no
25007 fi
25008 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25009 conftest.$ac_objext conftest.beam conftest.$ac_ext
25010 fi
25011
25012 rm -f conftest.tmp conftest.lnk
25013 fi
25014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
25015 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
25016 case $gl_cv_func_stat_dir_slash in
25017 *no) REPLACE_STAT=1
25018
25019 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
25020 ;;
25021 esac
25022 case $gl_cv_func_stat_file_slash in
25023 *no) REPLACE_STAT=1
25024
25025 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
25026 ;;
25027 esac
25028
25029 if test $REPLACE_STAT = 1; then
25030
25031
25032
25033
25034
25035
25036
25037
25038 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
25039
25040
25041
25042 :
25043
25044 fi
25045
25046
25047
25048
25049
25050 GNULIB_STAT=1
25051
25052
25053
25054
25055
25056 gl_gnulib_enabled_stat=true
25057 if test $REPLACE_STAT = 1; then
25058 func_gl_gnulib_m4code_dosname
25059 fi
25060 if test $REPLACE_STAT = 1; then
25061 func_gl_gnulib_m4code_pathmax
25062 fi
25063 if test $REPLACE_STAT = 1; then
25064 func_gl_gnulib_m4code_verify
25065 fi
25066 fi
25067 }
25068 func_gl_gnulib_m4code_strtoll ()
25069 {
25070 if ! $gl_gnulib_enabled_strtoll; then
25071
25072
25073
25074 if test "$ac_cv_type_long_long_int" = yes; then
25075 for ac_func in strtoll
25076 do :
25077 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
25078 if test "x$ac_cv_func_strtoll" = x""yes; then :
25079 cat >>confdefs.h <<_ACEOF
25080 #define HAVE_STRTOLL 1
25081 _ACEOF
25082
25083 fi
25084 done
25085
25086 if test $ac_cv_func_strtoll = no; then
25087 HAVE_STRTOLL=0
25088 fi
25089 fi
25090
25091 if test $HAVE_STRTOLL = 0; then
25092
25093
25094
25095
25096
25097
25098
25099
25100 gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext"
25101
25102
25103 :
25104
25105 fi
25106
25107
25108
25109
25110
25111 GNULIB_STRTOLL=1
25112
25113
25114
25115
25116
25117 gl_gnulib_enabled_strtoll=true
25118 fi
25119 }
25120 func_gl_gnulib_m4code_strtoull ()
25121 {
25122 if ! $gl_gnulib_enabled_strtoull; then
25123
25124
25125
25126 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
25127 for ac_func in strtoull
25128 do :
25129 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
25130 if test "x$ac_cv_func_strtoull" = x""yes; then :
25131 cat >>confdefs.h <<_ACEOF
25132 #define HAVE_STRTOULL 1
25133 _ACEOF
25134
25135 fi
25136 done
25137
25138 if test $ac_cv_func_strtoull = no; then
25139 HAVE_STRTOULL=0
25140 fi
25141 fi
25142
25143 if test $HAVE_STRTOULL = 0; then
25144
25145
25146
25147
25148
25149
25150
25151
25152 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
25153
25154
25155 :
25156
25157 fi
25158
25159
25160
25161
25162
25163 GNULIB_STRTOULL=1
25164
25165
25166
25167
25168
25169 gl_gnulib_enabled_strtoull=true
25170 fi
25171 }
25172 func_gl_gnulib_m4code_verify ()
25173 {
25174 if ! $gl_gnulib_enabled_verify; then
25175 gl_gnulib_enabled_verify=true
25176 fi
25177 }
25178 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec ()
25179 {
25180 if ! $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
25181 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec=true
25182 fi
25183 }
25184 if test $HAVE_FACCESSAT = 0; then
25185 func_gl_gnulib_m4code_dosname
25186 fi
25187 if test $HAVE_FACCESSAT = 0; then
25188 func_gl_gnulib_m4code_euidaccess
25189 fi
25190 if test $REPLACE_GETOPT = 1; then
25191 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
25192 fi
25193 if test $REPLACE_LSTAT = 1; then
25194 func_gl_gnulib_m4code_dosname
25195 fi
25196 if test $REPLACE_LSTAT = 1; then
25197 func_gl_gnulib_m4code_stat
25198 fi
25199 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
25200 func_gl_gnulib_m4code_stat
25201 fi
25202 if { test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
25203 func_gl_gnulib_m4code_strtoll
25204 fi
25205 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
25206 func_gl_gnulib_m4code_verify
25207 fi
25208 if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
25209 func_gl_gnulib_m4code_strtoull
25210 fi
25211 if test $ac_cv_func_strtoumax = no; then
25212 func_gl_gnulib_m4code_verify
25213 fi
25214
25215 if $gl_gnulib_enabled_dosname; then
25216 gl_GNULIB_ENABLED_dosname_TRUE=
25217 gl_GNULIB_ENABLED_dosname_FALSE='#'
25218 else
25219 gl_GNULIB_ENABLED_dosname_TRUE='#'
25220 gl_GNULIB_ENABLED_dosname_FALSE=
25221 fi
25222
25223 if $gl_gnulib_enabled_euidaccess; then
25224 gl_GNULIB_ENABLED_euidaccess_TRUE=
25225 gl_GNULIB_ENABLED_euidaccess_FALSE='#'
25226 else
25227 gl_GNULIB_ENABLED_euidaccess_TRUE='#'
25228 gl_GNULIB_ENABLED_euidaccess_FALSE=
25229 fi
25230
25231 if $gl_gnulib_enabled_getgroups; then
25232 gl_GNULIB_ENABLED_getgroups_TRUE=
25233 gl_GNULIB_ENABLED_getgroups_FALSE='#'
25234 else
25235 gl_GNULIB_ENABLED_getgroups_TRUE='#'
25236 gl_GNULIB_ENABLED_getgroups_FALSE=
25237 fi
25238
25239 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
25240 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
25241 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
25242 else
25243 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
25244 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
25245 fi
25246
25247 if $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
25248 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE=
25249 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE='#'
25250 else
25251 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE='#'
25252 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE=
25253 fi
25254
25255 if $gl_gnulib_enabled_pathmax; then
25256 gl_GNULIB_ENABLED_pathmax_TRUE=
25257 gl_GNULIB_ENABLED_pathmax_FALSE='#'
25258 else
25259 gl_GNULIB_ENABLED_pathmax_TRUE='#'
25260 gl_GNULIB_ENABLED_pathmax_FALSE=
25261 fi
25262
25263 if $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
25264 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE=
25265 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE='#'
25266 else
25267 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE='#'
25268 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE=
25269 fi
25270
25271 if $gl_gnulib_enabled_stat; then
25272 gl_GNULIB_ENABLED_stat_TRUE=
25273 gl_GNULIB_ENABLED_stat_FALSE='#'
25274 else
25275 gl_GNULIB_ENABLED_stat_TRUE='#'
25276 gl_GNULIB_ENABLED_stat_FALSE=
25277 fi
25278
25279 if $gl_gnulib_enabled_strtoll; then
25280 gl_GNULIB_ENABLED_strtoll_TRUE=
25281 gl_GNULIB_ENABLED_strtoll_FALSE='#'
25282 else
25283 gl_GNULIB_ENABLED_strtoll_TRUE='#'
25284 gl_GNULIB_ENABLED_strtoll_FALSE=
25285 fi
25286
25287 if $gl_gnulib_enabled_strtoull; then
25288 gl_GNULIB_ENABLED_strtoull_TRUE=
25289 gl_GNULIB_ENABLED_strtoull_FALSE='#'
25290 else
25291 gl_GNULIB_ENABLED_strtoull_TRUE='#'
25292 gl_GNULIB_ENABLED_strtoull_FALSE=
25293 fi
25294
25295 if $gl_gnulib_enabled_verify; then
25296 gl_GNULIB_ENABLED_verify_TRUE=
25297 gl_GNULIB_ENABLED_verify_FALSE='#'
25298 else
25299 gl_GNULIB_ENABLED_verify_TRUE='#'
25300 gl_GNULIB_ENABLED_verify_FALSE=
25301 fi
25302
25303 if $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
25304 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE=
25305 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE='#'
25306 else
25307 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE='#'
25308 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE=
25309 fi
25310
25311 # End of code from modules
25312
25313
25314
25315
25316
25317
25318
25319
25320
25321 gltests_libdeps=
25322 gltests_ltlibdeps=
25323
25324
25325
25326
25327
25328
25329
25330
25331
25332 gl_source_base='tests'
25333 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
25334
25335 gl_module_indicator_condition=$gltests_WITNESS
25336
25337
25338
25339
25340
25341
25342
25343
25344
25345
25346 LIBGNU_LIBDEPS="$gl_libdeps"
25347
25348 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
25349
25350
25351 CFLAGS=$SAVE_CFLAGS
25352 LIBS=$SAVE_LIBS
25353
25354 case "$opsys" in
25355 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
25356
25357 darwin)
25358 ## The -headerpad option tells ld (see man page) to leave room at the
25359 ## end of the header for adding load commands. Needed for dumping.
25360 ## 0x690 is the total size of 30 segment load commands (at 56
25361 ## each); under Cocoa 31 commands are required.
25362 if test "$HAVE_NS" = "yes"; then
25363 libs_nsgui="-framework AppKit"
25364 headerpad_extra=6C8
25365 else
25366 libs_nsgui=
25367 headerpad_extra=690
25368 fi
25369 LD_SWITCH_SYSTEM_TEMACS="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
25370
25371 ## This is here because src/Makefile.in did some extra fiddling around
25372 ## with LD_SWITCH_SYSTEM. The cpp logic was:
25373 ## #ifndef LD_SWITCH_SYSTEM
25374 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
25375 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
25376 ## not using gcc, darwin.
25377 ## Because this was done in src/Makefile.in, the resulting part of
25378 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
25379 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
25380 ## rather than LD_SWITCH_SYSTEM.
25381 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
25382 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
25383 ;;
25384
25385 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
25386 ## find X at run-time.
25387 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
25388 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
25389 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
25390 ## had different values in configure (in ac_link) and src/Makefile.in.
25391 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
25392 gnu*) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_RPATH)" ;;
25393
25394 *) LD_SWITCH_SYSTEM_TEMACS= ;;
25395 esac
25396
25397 if test "$NS_IMPL_GNUSTEP" = "yes"; then
25398 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
25399 fi
25400
25401
25402
25403
25404 LD_FIRSTFLAG=
25405 ORDINARY_LINK=
25406 case "$opsys" in
25407 ## gnu: GNU needs its own crt0.
25408 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
25409
25410 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
25411 ## library search parth, i.e. it won't search /usr/lib for libc and
25412 ## friends. Using -nostartfiles instead avoids this problem, and
25413 ## will also work on earlier NetBSD releases.
25414 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
25415
25416 ## powerpc*: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
25417 ## MkLinux/LinuxPPC needs this.
25418 ## s390x-* only supports opsys = gnu-linux so it can be added here.
25419 gnu-*)
25420 case "$canonical" in
25421 powerpc*|s390x-*) LD_FIRSTFLAG="-nostdlib" ;;
25422 esac
25423 ;;
25424 esac
25425
25426
25427 if test "x$ORDINARY_LINK" = "xyes"; then
25428
25429 LD_FIRSTFLAG=""
25430
25431 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
25432
25433
25434 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
25435 ## freebsd, gnu-* not on powerpc*|s390x*.
25436 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
25437
25438 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
25439 ## places that are difficult to figure out at make time. Fortunately,
25440 ## these same versions allow you to pass arbitrary flags on to the
25441 ## linker, so there is no reason not to use it as a linker.
25442 ##
25443 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
25444 ## searching for libraries in its internal directories, so we have to
25445 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
25446 LD_FIRSTFLAG="-nostdlib"
25447 fi
25448
25449 ## FIXME? What setting of EDIT_LDFLAGS should this have?
25450 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
25451
25452
25453
25454
25455 ## FIXME? The logic here is not precisely the same as that above.
25456 ## There is no check here for a pre-defined LD_FIRSTFLAG.
25457 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
25458 LIB_GCC=
25459 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
25460
25461 case "$opsys" in
25462 freebsd|netbsd|openbsd) LIB_GCC= ;;
25463
25464 gnu-*)
25465 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
25466 ## build on ARM EABI under GNU/Linux. (Bug#5518)
25467 case $host_cpu in
25468 arm*)
25469 LIB_GCC="-lgcc_s"
25470 ;;
25471 *)
25472 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
25473 ## immediately undefine it again and redefine it to empty.
25474 ## Was the C_SWITCH_X_SITE part really necessary?
25475 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
25476 LIB_GCC=
25477 ;;
25478 esac
25479 ;;
25480
25481 ## Ask GCC where to find libgcc.a.
25482 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
25483 esac
25484 fi
25485
25486 ## Common for all window systems
25487 if test "$window_system" != "none"; then
25488
25489 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
25490
25491
25492 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
25493
25494 WINDOW_SYSTEM_OBJ="fontset.o fringe.o image.o"
25495 fi
25496
25497
25498
25499
25500
25501 #### Report on what we decided to do.
25502 #### Report GTK as a toolkit, even if it doesn't use Xt.
25503 #### It makes printing result more understandable as using GTK sets
25504 #### toolkit_scroll_bars to yes by default.
25505 if test "${HAVE_GTK}" = "yes"; then
25506 USE_X_TOOLKIT="$USE_GTK_TOOLKIT"
25507 fi
25508
25509 echo "
25510 Configured for \`${canonical}'.
25511
25512 Where should the build process find the source code? ${srcdir}
25513 What compiler should emacs be built with? ${CC} ${CFLAGS}
25514 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
25515 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
25516 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
25517 What window system should Emacs use? ${window_system}
25518 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
25519
25520 if test -n "${x_includes}"; then
25521 echo " Where do we find X Windows header files? ${x_includes}"
25522 else
25523 echo " Where do we find X Windows header files? Standard dirs"
25524 fi
25525 if test -n "${x_libraries}"; then
25526 echo " Where do we find X Windows libraries? ${x_libraries}"
25527 else
25528 echo " Where do we find X Windows libraries? Standard dirs"
25529 fi
25530
25531 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
25532 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
25533 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
25534 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
25535 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
25536 echo " Does Emacs use -lpng? ${HAVE_PNG}"
25537 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
25538 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
25539
25540 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
25541 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
25542 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
25543 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
25544 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
25545 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
25546 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
25547
25548 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
25549 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
25550 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
25551 echo " Does Emacs use -lxft? ${HAVE_XFT}"
25552
25553 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
25554 echo
25555
25556 if test -n "${EMACSDATA}"; then
25557 echo " Environment variable EMACSDATA set to: $EMACSDATA"
25558 fi
25559 if test -n "${EMACSDOC}"; then
25560 echo " Environment variable EMACSDOC set to: $EMACSDOC"
25561 fi
25562
25563 echo
25564
25565 if test "$HAVE_NS" = "yes"; then
25566 echo
25567 echo "You must run \"${MAKE-make} install\" in order to test the built application.
25568 The installed application will go to nextstep/Emacs.app and can be
25569 run or moved from there."
25570 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
25571 echo "The application will be fully self-contained."
25572 else
25573 echo "The lisp resources for the application will be installed under ${prefix}.
25574 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
25575 to run if these resources are not installed."
25576 fi
25577 echo
25578 fi
25579
25580 if test "${opsys}" = "cygwin"; then
25581 case `uname -r` in
25582 1.5.*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
25583 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
25584 echo
25585 ;;
25586 esac
25587 fi
25588
25589 # Remove any trailing slashes in these variables.
25590 test "${prefix}" != NONE &&
25591 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
25592 test "${exec_prefix}" != NONE &&
25593 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
25594
25595 if test "$HAVE_NS" = "yes"; then
25596 if test "$NS_IMPL_GNUSTEP" = yes; then
25597 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"
25598
25599 else
25600 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"
25601
25602 fi
25603 fi
25604
25605 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"
25606
25607 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"
25608
25609
25610 opt_makefile=test/automated/Makefile
25611
25612 if test -f $srcdir/${opt_makefile}.in; then
25613 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
25614 ac_config_files="$ac_config_files test/automated/Makefile"
25615
25616 fi
25617
25618
25619 opt_makefile=admin/unidata/Makefile
25620
25621 if test -f $srcdir/${opt_makefile}.in; then
25622 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
25623 ac_config_files="$ac_config_files admin/unidata/Makefile"
25624
25625 fi
25626
25627
25628 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
25629
25630
25631
25632 ac_config_commands="$ac_config_commands mkdirs"
25633
25634
25635 ac_config_commands="$ac_config_commands epaths"
25636
25637
25638 ac_config_commands="$ac_config_commands gdbinit"
25639
25640
25641 cat >confcache <<\_ACEOF
25642 # This file is a shell script that caches the results of configure
25643 # tests run on this system so they can be shared between configure
25644 # scripts and configure runs, see configure's option --config-cache.
25645 # It is not useful on other systems. If it contains results you don't
25646 # want to keep, you may remove or edit it.
25647 #
25648 # config.status only pays attention to the cache file if you give it
25649 # the --recheck option to rerun configure.
25650 #
25651 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25652 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25653 # following values.
25654
25655 _ACEOF
25656
25657 # The following way of writing the cache mishandles newlines in values,
25658 # but we know of no workaround that is simple, portable, and efficient.
25659 # So, we kill variables containing newlines.
25660 # Ultrix sh set writes to stderr and can't be redirected directly,
25661 # and sets the high bit in the cache file unless we assign to the vars.
25662 (
25663 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25664 eval ac_val=\$$ac_var
25665 case $ac_val in #(
25666 *${as_nl}*)
25667 case $ac_var in #(
25668 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25669 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25670 esac
25671 case $ac_var in #(
25672 _ | IFS | as_nl) ;; #(
25673 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25674 *) { eval $ac_var=; unset $ac_var;} ;;
25675 esac ;;
25676 esac
25677 done
25678
25679 (set) 2>&1 |
25680 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25681 *${as_nl}ac_space=\ *)
25682 # `set' does not quote correctly, so add quotes: double-quote
25683 # substitution turns \\\\ into \\, and sed turns \\ into \.
25684 sed -n \
25685 "s/'/'\\\\''/g;
25686 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25687 ;; #(
25688 *)
25689 # `set' quotes correctly as required by POSIX, so do not add quotes.
25690 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25691 ;;
25692 esac |
25693 sort
25694 ) |
25695 sed '
25696 /^ac_cv_env_/b end
25697 t clear
25698 :clear
25699 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25700 t end
25701 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25702 :end' >>confcache
25703 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25704 if test -w "$cache_file"; then
25705 test "x$cache_file" != "x/dev/null" &&
25706 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25707 $as_echo "$as_me: updating cache $cache_file" >&6;}
25708 cat confcache >$cache_file
25709 else
25710 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25711 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25712 fi
25713 fi
25714 rm -f confcache
25715
25716 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25717 # Let make expand exec_prefix.
25718 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25719
25720 DEFS=-DHAVE_CONFIG_H
25721
25722 ac_libobjs=
25723 ac_ltlibobjs=
25724 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25725 # 1. Remove the extension, and $U if already installed.
25726 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25727 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25728 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25729 # will be set to the directory where LIBOBJS objects are built.
25730 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25731 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25732 done
25733 LIBOBJS=$ac_libobjs
25734
25735 LTLIBOBJS=$ac_ltlibobjs
25736
25737
25738 if test -n "$EXEEXT"; then
25739 am__EXEEXT_TRUE=
25740 am__EXEEXT_FALSE='#'
25741 else
25742 am__EXEEXT_TRUE='#'
25743 am__EXEEXT_FALSE=
25744 fi
25745
25746 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25747 as_fn_error "conditional \"AMDEP\" was never defined.
25748 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25749 fi
25750 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25751 as_fn_error "conditional \"am__fastdepCC\" was never defined.
25752 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25753 fi
25754 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
25755 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
25756 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25757 fi
25758 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
25759 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
25760 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25761 fi
25762
25763 if test -z "${GL_GENERATE_EXECINFO_H_TRUE}" && test -z "${GL_GENERATE_EXECINFO_H_FALSE}"; then
25764 as_fn_error "conditional \"GL_GENERATE_EXECINFO_H\" was never defined.
25765 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25766 fi
25767 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
25768 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
25769 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25770 fi
25771 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
25772 as_fn_error "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
25773 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25774 fi
25775 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
25776 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
25777 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25778 fi
25779 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
25780 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
25781 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25782 fi
25783 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
25784 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
25785 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25786 fi
25787 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
25788 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
25789 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25790 fi
25791 if test -z "${gl_GNULIB_ENABLED_euidaccess_TRUE}" && test -z "${gl_GNULIB_ENABLED_euidaccess_FALSE}"; then
25792 as_fn_error "conditional \"gl_GNULIB_ENABLED_euidaccess\" was never defined.
25793 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25794 fi
25795 if test -z "${gl_GNULIB_ENABLED_getgroups_TRUE}" && test -z "${gl_GNULIB_ENABLED_getgroups_FALSE}"; then
25796 as_fn_error "conditional \"gl_GNULIB_ENABLED_getgroups\" was never defined.
25797 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25798 fi
25799 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
25800 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
25801 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25802 fi
25803 if test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE}" && test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE}"; then
25804 as_fn_error "conditional \"gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1\" was never defined.
25805 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25806 fi
25807 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
25808 as_fn_error "conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
25809 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25810 fi
25811 if test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE}" && test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE}"; then
25812 as_fn_error "conditional \"gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c\" was never defined.
25813 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25814 fi
25815 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
25816 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
25817 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25818 fi
25819 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
25820 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
25821 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25822 fi
25823 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
25824 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
25825 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25826 fi
25827 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
25828 as_fn_error "conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
25829 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25830 fi
25831 if test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE}" && test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE}"; then
25832 as_fn_error "conditional \"gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec\" was never defined.
25833 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25834 fi
25835
25836 gl_libobjs=
25837 gl_ltlibobjs=
25838 if test -n "$gl_LIBOBJS"; then
25839 # Remove the extension.
25840 sed_drop_objext='s/\.o$//;s/\.obj$//'
25841 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
25842 gl_libobjs="$gl_libobjs $i.$ac_objext"
25843 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
25844 done
25845 fi
25846 gl_LIBOBJS=$gl_libobjs
25847
25848 gl_LTLIBOBJS=$gl_ltlibobjs
25849
25850
25851
25852 gltests_libobjs=
25853 gltests_ltlibobjs=
25854 if test -n "$gltests_LIBOBJS"; then
25855 # Remove the extension.
25856 sed_drop_objext='s/\.o$//;s/\.obj$//'
25857 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
25858 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
25859 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
25860 done
25861 fi
25862 gltests_LIBOBJS=$gltests_libobjs
25863
25864 gltests_LTLIBOBJS=$gltests_ltlibobjs
25865
25866
25867
25868 : ${CONFIG_STATUS=./config.status}
25869 ac_write_fail=0
25870 ac_clean_files_save=$ac_clean_files
25871 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25872 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25873 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25874 as_write_fail=0
25875 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25876 #! $SHELL
25877 # Generated by $as_me.
25878 # Run this file to recreate the current configuration.
25879 # Compiler output produced by configure, useful for debugging
25880 # configure, is in config.log if it exists.
25881
25882 debug=false
25883 ac_cs_recheck=false
25884 ac_cs_silent=false
25885
25886 SHELL=\${CONFIG_SHELL-$SHELL}
25887 export SHELL
25888 _ASEOF
25889 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25890 ## -------------------- ##
25891 ## M4sh Initialization. ##
25892 ## -------------------- ##
25893
25894 # Be more Bourne compatible
25895 DUALCASE=1; export DUALCASE # for MKS sh
25896 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25897 emulate sh
25898 NULLCMD=:
25899 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25900 # is contrary to our usage. Disable this feature.
25901 alias -g '${1+"$@"}'='"$@"'
25902 setopt NO_GLOB_SUBST
25903 else
25904 case `(set -o) 2>/dev/null` in #(
25905 *posix*) :
25906 set -o posix ;; #(
25907 *) :
25908 ;;
25909 esac
25910 fi
25911
25912
25913 as_nl='
25914 '
25915 export as_nl
25916 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25917 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25918 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25919 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25920 # Prefer a ksh shell builtin over an external printf program on Solaris,
25921 # but without wasting forks for bash or zsh.
25922 if test -z "$BASH_VERSION$ZSH_VERSION" \
25923 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25924 as_echo='print -r --'
25925 as_echo_n='print -rn --'
25926 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25927 as_echo='printf %s\n'
25928 as_echo_n='printf %s'
25929 else
25930 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25931 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25932 as_echo_n='/usr/ucb/echo -n'
25933 else
25934 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25935 as_echo_n_body='eval
25936 arg=$1;
25937 case $arg in #(
25938 *"$as_nl"*)
25939 expr "X$arg" : "X\\(.*\\)$as_nl";
25940 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25941 esac;
25942 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25943 '
25944 export as_echo_n_body
25945 as_echo_n='sh -c $as_echo_n_body as_echo'
25946 fi
25947 export as_echo_body
25948 as_echo='sh -c $as_echo_body as_echo'
25949 fi
25950
25951 # The user is always right.
25952 if test "${PATH_SEPARATOR+set}" != set; then
25953 PATH_SEPARATOR=:
25954 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25955 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25956 PATH_SEPARATOR=';'
25957 }
25958 fi
25959
25960
25961 # IFS
25962 # We need space, tab and new line, in precisely that order. Quoting is
25963 # there to prevent editors from complaining about space-tab.
25964 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25965 # splitting by setting IFS to empty value.)
25966 IFS=" "" $as_nl"
25967
25968 # Find who we are. Look in the path if we contain no directory separator.
25969 case $0 in #((
25970 *[\\/]* ) as_myself=$0 ;;
25971 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25972 for as_dir in $PATH
25973 do
25974 IFS=$as_save_IFS
25975 test -z "$as_dir" && as_dir=.
25976 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25977 done
25978 IFS=$as_save_IFS
25979
25980 ;;
25981 esac
25982 # We did not find ourselves, most probably we were run as `sh COMMAND'
25983 # in which case we are not to be found in the path.
25984 if test "x$as_myself" = x; then
25985 as_myself=$0
25986 fi
25987 if test ! -f "$as_myself"; then
25988 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25989 exit 1
25990 fi
25991
25992 # Unset variables that we do not need and which cause bugs (e.g. in
25993 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
25994 # suppresses any "Segmentation fault" message there. '((' could
25995 # trigger a bug in pdksh 5.2.14.
25996 for as_var in BASH_ENV ENV MAIL MAILPATH
25997 do eval test x\${$as_var+set} = xset \
25998 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25999 done
26000 PS1='$ '
26001 PS2='> '
26002 PS4='+ '
26003
26004 # NLS nuisances.
26005 LC_ALL=C
26006 export LC_ALL
26007 LANGUAGE=C
26008 export LANGUAGE
26009
26010 # CDPATH.
26011 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26012
26013
26014 # as_fn_error ERROR [LINENO LOG_FD]
26015 # ---------------------------------
26016 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26017 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26018 # script with status $?, using 1 if that was 0.
26019 as_fn_error ()
26020 {
26021 as_status=$?; test $as_status -eq 0 && as_status=1
26022 if test "$3"; then
26023 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26024 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
26025 fi
26026 $as_echo "$as_me: error: $1" >&2
26027 as_fn_exit $as_status
26028 } # as_fn_error
26029
26030
26031 # as_fn_set_status STATUS
26032 # -----------------------
26033 # Set $? to STATUS, without forking.
26034 as_fn_set_status ()
26035 {
26036 return $1
26037 } # as_fn_set_status
26038
26039 # as_fn_exit STATUS
26040 # -----------------
26041 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26042 as_fn_exit ()
26043 {
26044 set +e
26045 as_fn_set_status $1
26046 exit $1
26047 } # as_fn_exit
26048
26049 # as_fn_unset VAR
26050 # ---------------
26051 # Portably unset VAR.
26052 as_fn_unset ()
26053 {
26054 { eval $1=; unset $1;}
26055 }
26056 as_unset=as_fn_unset
26057 # as_fn_append VAR VALUE
26058 # ----------------------
26059 # Append the text in VALUE to the end of the definition contained in VAR. Take
26060 # advantage of any shell optimizations that allow amortized linear growth over
26061 # repeated appends, instead of the typical quadratic growth present in naive
26062 # implementations.
26063 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26064 eval 'as_fn_append ()
26065 {
26066 eval $1+=\$2
26067 }'
26068 else
26069 as_fn_append ()
26070 {
26071 eval $1=\$$1\$2
26072 }
26073 fi # as_fn_append
26074
26075 # as_fn_arith ARG...
26076 # ------------------
26077 # Perform arithmetic evaluation on the ARGs, and store the result in the
26078 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26079 # must be portable across $(()) and expr.
26080 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26081 eval 'as_fn_arith ()
26082 {
26083 as_val=$(( $* ))
26084 }'
26085 else
26086 as_fn_arith ()
26087 {
26088 as_val=`expr "$@" || test $? -eq 1`
26089 }
26090 fi # as_fn_arith
26091
26092
26093 if expr a : '\(a\)' >/dev/null 2>&1 &&
26094 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26095 as_expr=expr
26096 else
26097 as_expr=false
26098 fi
26099
26100 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26101 as_basename=basename
26102 else
26103 as_basename=false
26104 fi
26105
26106 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26107 as_dirname=dirname
26108 else
26109 as_dirname=false
26110 fi
26111
26112 as_me=`$as_basename -- "$0" ||
26113 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26114 X"$0" : 'X\(//\)$' \| \
26115 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26116 $as_echo X/"$0" |
26117 sed '/^.*\/\([^/][^/]*\)\/*$/{
26118 s//\1/
26119 q
26120 }
26121 /^X\/\(\/\/\)$/{
26122 s//\1/
26123 q
26124 }
26125 /^X\/\(\/\).*/{
26126 s//\1/
26127 q
26128 }
26129 s/.*/./; q'`
26130
26131 # Avoid depending upon Character Ranges.
26132 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26133 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26134 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26135 as_cr_digits='0123456789'
26136 as_cr_alnum=$as_cr_Letters$as_cr_digits
26137
26138 ECHO_C= ECHO_N= ECHO_T=
26139 case `echo -n x` in #(((((
26140 -n*)
26141 case `echo 'xy\c'` in
26142 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26143 xy) ECHO_C='\c';;
26144 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
26145 ECHO_T=' ';;
26146 esac;;
26147 *)
26148 ECHO_N='-n';;
26149 esac
26150
26151 rm -f conf$$ conf$$.exe conf$$.file
26152 if test -d conf$$.dir; then
26153 rm -f conf$$.dir/conf$$.file
26154 else
26155 rm -f conf$$.dir
26156 mkdir conf$$.dir 2>/dev/null
26157 fi
26158 if (echo >conf$$.file) 2>/dev/null; then
26159 if ln -s conf$$.file conf$$ 2>/dev/null; then
26160 as_ln_s='ln -s'
26161 # ... but there are two gotchas:
26162 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26163 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26164 # In both cases, we have to default to `cp -p'.
26165 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26166 as_ln_s='cp -p'
26167 elif ln conf$$.file conf$$ 2>/dev/null; then
26168 as_ln_s=ln
26169 else
26170 as_ln_s='cp -p'
26171 fi
26172 else
26173 as_ln_s='cp -p'
26174 fi
26175 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26176 rmdir conf$$.dir 2>/dev/null
26177
26178
26179 # as_fn_mkdir_p
26180 # -------------
26181 # Create "$as_dir" as a directory, including parents if necessary.
26182 as_fn_mkdir_p ()
26183 {
26184
26185 case $as_dir in #(
26186 -*) as_dir=./$as_dir;;
26187 esac
26188 test -d "$as_dir" || eval $as_mkdir_p || {
26189 as_dirs=
26190 while :; do
26191 case $as_dir in #(
26192 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26193 *) as_qdir=$as_dir;;
26194 esac
26195 as_dirs="'$as_qdir' $as_dirs"
26196 as_dir=`$as_dirname -- "$as_dir" ||
26197 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26198 X"$as_dir" : 'X\(//\)[^/]' \| \
26199 X"$as_dir" : 'X\(//\)$' \| \
26200 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26201 $as_echo X"$as_dir" |
26202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26203 s//\1/
26204 q
26205 }
26206 /^X\(\/\/\)[^/].*/{
26207 s//\1/
26208 q
26209 }
26210 /^X\(\/\/\)$/{
26211 s//\1/
26212 q
26213 }
26214 /^X\(\/\).*/{
26215 s//\1/
26216 q
26217 }
26218 s/.*/./; q'`
26219 test -d "$as_dir" && break
26220 done
26221 test -z "$as_dirs" || eval "mkdir $as_dirs"
26222 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
26223
26224
26225 } # as_fn_mkdir_p
26226 if mkdir -p . 2>/dev/null; then
26227 as_mkdir_p='mkdir -p "$as_dir"'
26228 else
26229 test -d ./-p && rmdir ./-p
26230 as_mkdir_p=false
26231 fi
26232
26233 if test -x / >/dev/null 2>&1; then
26234 as_test_x='test -x'
26235 else
26236 if ls -dL / >/dev/null 2>&1; then
26237 as_ls_L_option=L
26238 else
26239 as_ls_L_option=
26240 fi
26241 as_test_x='
26242 eval sh -c '\''
26243 if test -d "$1"; then
26244 test -d "$1/.";
26245 else
26246 case $1 in #(
26247 -*)set "./$1";;
26248 esac;
26249 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
26250 ???[sx]*):;;*)false;;esac;fi
26251 '\'' sh
26252 '
26253 fi
26254 as_executable_p=$as_test_x
26255
26256 # Sed expression to map a string onto a valid CPP name.
26257 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26258
26259 # Sed expression to map a string onto a valid variable name.
26260 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26261
26262
26263 exec 6>&1
26264 ## ----------------------------------- ##
26265 ## Main body of $CONFIG_STATUS script. ##
26266 ## ----------------------------------- ##
26267 _ASEOF
26268 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26269
26270 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26271 # Save the log message, to keep $0 and so on meaningful, and to
26272 # report actual input values of CONFIG_FILES etc. instead of their
26273 # values after options handling.
26274 ac_log="
26275 This file was extended by emacs $as_me 24.3.50, which was
26276 generated by GNU Autoconf 2.65. Invocation command line was
26277
26278 CONFIG_FILES = $CONFIG_FILES
26279 CONFIG_HEADERS = $CONFIG_HEADERS
26280 CONFIG_LINKS = $CONFIG_LINKS
26281 CONFIG_COMMANDS = $CONFIG_COMMANDS
26282 $ $0 $@
26283
26284 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26285 "
26286
26287 _ACEOF
26288
26289 case $ac_config_files in *"
26290 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26291 esac
26292
26293 case $ac_config_headers in *"
26294 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26295 esac
26296
26297
26298 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26299 # Files that config.status was made for.
26300 config_files="$ac_config_files"
26301 config_headers="$ac_config_headers"
26302 config_commands="$ac_config_commands"
26303
26304 _ACEOF
26305
26306 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26307 ac_cs_usage="\
26308 \`$as_me' instantiates files and other configuration actions
26309 from templates according to the current configuration. Unless the files
26310 and actions are specified as TAGs, all are instantiated by default.
26311
26312 Usage: $0 [OPTION]... [TAG]...
26313
26314 -h, --help print this help, then exit
26315 -V, --version print version number and configuration settings, then exit
26316 --config print configuration, then exit
26317 -q, --quiet, --silent
26318 do not print progress messages
26319 -d, --debug don't remove temporary files
26320 --recheck update $as_me by reconfiguring in the same conditions
26321 --file=FILE[:TEMPLATE]
26322 instantiate the configuration file FILE
26323 --header=FILE[:TEMPLATE]
26324 instantiate the configuration header FILE
26325
26326 Configuration files:
26327 $config_files
26328
26329 Configuration headers:
26330 $config_headers
26331
26332 Configuration commands:
26333 $config_commands
26334
26335 Report bugs to the package provider."
26336
26337 _ACEOF
26338 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26339 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
26340 ac_cs_version="\\
26341 emacs config.status 24.3.50
26342 configured by $0, generated by GNU Autoconf 2.65,
26343 with options \\"\$ac_cs_config\\"
26344
26345 Copyright (C) 2009 Free Software Foundation, Inc.
26346 This config.status script is free software; the Free Software Foundation
26347 gives unlimited permission to copy, distribute and modify it."
26348
26349 ac_pwd='$ac_pwd'
26350 srcdir='$srcdir'
26351 INSTALL='$INSTALL'
26352 MKDIR_P='$MKDIR_P'
26353 AWK='$AWK'
26354 test -n "\$AWK" || AWK=awk
26355 _ACEOF
26356
26357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26358 # The default lists apply if the user does not specify any file.
26359 ac_need_defaults=:
26360 while test $# != 0
26361 do
26362 case $1 in
26363 --*=*)
26364 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26365 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26366 ac_shift=:
26367 ;;
26368 *)
26369 ac_option=$1
26370 ac_optarg=$2
26371 ac_shift=shift
26372 ;;
26373 esac
26374
26375 case $ac_option in
26376 # Handling of the options.
26377 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26378 ac_cs_recheck=: ;;
26379 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26380 $as_echo "$ac_cs_version"; exit ;;
26381 --config | --confi | --conf | --con | --co | --c )
26382 $as_echo "$ac_cs_config"; exit ;;
26383 --debug | --debu | --deb | --de | --d | -d )
26384 debug=: ;;
26385 --file | --fil | --fi | --f )
26386 $ac_shift
26387 case $ac_optarg in
26388 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26389 esac
26390 as_fn_append CONFIG_FILES " '$ac_optarg'"
26391 ac_need_defaults=false;;
26392 --header | --heade | --head | --hea )
26393 $ac_shift
26394 case $ac_optarg in
26395 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26396 esac
26397 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26398 ac_need_defaults=false;;
26399 --he | --h)
26400 # Conflict between --help and --header
26401 as_fn_error "ambiguous option: \`$1'
26402 Try \`$0 --help' for more information.";;
26403 --help | --hel | -h )
26404 $as_echo "$ac_cs_usage"; exit ;;
26405 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26406 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26407 ac_cs_silent=: ;;
26408
26409 # This is an error.
26410 -*) as_fn_error "unrecognized option: \`$1'
26411 Try \`$0 --help' for more information." ;;
26412
26413 *) as_fn_append ac_config_targets " $1"
26414 ac_need_defaults=false ;;
26415
26416 esac
26417 shift
26418 done
26419
26420 ac_configure_extra_args=
26421
26422 if $ac_cs_silent; then
26423 exec 6>/dev/null
26424 ac_configure_extra_args="$ac_configure_extra_args --silent"
26425 fi
26426
26427 _ACEOF
26428 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26429 if \$ac_cs_recheck; then
26430 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26431 shift
26432 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26433 CONFIG_SHELL='$SHELL'
26434 export CONFIG_SHELL
26435 exec "\$@"
26436 fi
26437
26438 _ACEOF
26439 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26440 exec 5>>config.log
26441 {
26442 echo
26443 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26444 ## Running $as_me. ##
26445 _ASBOX
26446 $as_echo "$ac_log"
26447 } >&5
26448
26449 _ACEOF
26450 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26451 #
26452 # INIT-COMMANDS
26453 #
26454 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26455 GCC="$GCC" CPPFLAGS="$CPPFLAGS"
26456
26457 _ACEOF
26458
26459 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26460
26461 # Handling of arguments.
26462 for ac_config_target in $ac_config_targets
26463 do
26464 case $ac_config_target in
26465 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
26466 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26467 "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" ;;
26468 "nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop") CONFIG_FILES="$CONFIG_FILES nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop:nextstep/templates/Emacs.desktop.in" ;;
26469 "nextstep/Cocoa/Emacs.base/Contents/Info.plist") CONFIG_FILES="$CONFIG_FILES nextstep/Cocoa/Emacs.base/Contents/Info.plist:nextstep/templates/Info.plist.in" ;;
26470 "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" ;;
26471 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26472 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
26473 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
26474 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
26475 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
26476 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
26477 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
26478 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
26479 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
26480 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
26481 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
26482 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
26483 "nextstep/Makefile") CONFIG_FILES="$CONFIG_FILES nextstep/Makefile" ;;
26484 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
26485 "admin/unidata/Makefile") CONFIG_FILES="$CONFIG_FILES admin/unidata/Makefile" ;;
26486 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
26487 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
26488 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
26489
26490 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26491 esac
26492 done
26493
26494
26495 # If the user did not use the arguments to specify the items to instantiate,
26496 # then the envvar interface is used. Set only those that are not.
26497 # We use the long form for the default assignment because of an extremely
26498 # bizarre bug on SunOS 4.1.3.
26499 if $ac_need_defaults; then
26500 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26501 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26502 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26503 fi
26504
26505 # Have a temporary directory for convenience. Make it in the build tree
26506 # simply because there is no reason against having it here, and in addition,
26507 # creating and moving files from /tmp can sometimes cause problems.
26508 # Hook for its removal unless debugging.
26509 # Note that there is a small window in which the directory will not be cleaned:
26510 # after its creation but before its name has been assigned to `$tmp'.
26511 $debug ||
26512 {
26513 tmp=
26514 trap 'exit_status=$?
26515 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26516 ' 0
26517 trap 'as_fn_exit 1' 1 2 13 15
26518 }
26519 # Create a (secure) tmp directory for tmp files.
26520
26521 {
26522 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26523 test -n "$tmp" && test -d "$tmp"
26524 } ||
26525 {
26526 tmp=./conf$$-$RANDOM
26527 (umask 077 && mkdir "$tmp")
26528 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
26529
26530 # Set up the scripts for CONFIG_FILES section.
26531 # No need to generate them if there are no CONFIG_FILES.
26532 # This happens for instance with `./config.status config.h'.
26533 if test -n "$CONFIG_FILES"; then
26534
26535 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
26536 ac_cs_awk_getline=:
26537 ac_cs_awk_pipe_init=
26538 ac_cs_awk_read_file='
26539 while ((getline aline < (F[key])) > 0)
26540 print(aline)
26541 close(F[key])'
26542 ac_cs_awk_pipe_fini=
26543 else
26544 ac_cs_awk_getline=false
26545 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
26546 ac_cs_awk_read_file='
26547 print "|#_!!_#|"
26548 print "cat " F[key] " &&"
26549 '$ac_cs_awk_pipe_init
26550 # The final `:' finishes the AND list.
26551 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
26552 fi
26553 ac_cr=`echo X | tr X '\015'`
26554 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26555 # But we know of no other shell where ac_cr would be empty at this
26556 # point, so we can use a bashism as a fallback.
26557 if test "x$ac_cr" = x; then
26558 eval ac_cr=\$\'\\r\'
26559 fi
26560 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26561 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26562 ac_cs_awk_cr='\r'
26563 else
26564 ac_cs_awk_cr=$ac_cr
26565 fi
26566
26567 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26568 _ACEOF
26569
26570 # Create commands to substitute file output variables.
26571 {
26572 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
26573 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
26574 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
26575 echo "_ACAWK" &&
26576 echo "_ACEOF"
26577 } >conf$$files.sh &&
26578 . ./conf$$files.sh ||
26579 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26580 rm -f conf$$files.sh
26581
26582 {
26583 echo "cat >conf$$subs.awk <<_ACEOF" &&
26584 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26585 echo "_ACEOF"
26586 } >conf$$subs.sh ||
26587 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26588 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26589 ac_delim='%!_!# '
26590 for ac_last_try in false false false false false :; do
26591 . ./conf$$subs.sh ||
26592 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26593
26594 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26595 if test $ac_delim_n = $ac_delim_num; then
26596 break
26597 elif $ac_last_try; then
26598 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26599 else
26600 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26601 fi
26602 done
26603 rm -f conf$$subs.sh
26604
26605 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26606 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26607 _ACEOF
26608 sed -n '
26609 h
26610 s/^/S["/; s/!.*/"]=/
26611 p
26612 g
26613 s/^[^!]*!//
26614 :repl
26615 t repl
26616 s/'"$ac_delim"'$//
26617 t delim
26618 :nl
26619 h
26620 s/\(.\{148\}\)..*/\1/
26621 t more1
26622 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26623 p
26624 n
26625 b repl
26626 :more1
26627 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26628 p
26629 g
26630 s/.\{148\}//
26631 t nl
26632 :delim
26633 h
26634 s/\(.\{148\}\)..*/\1/
26635 t more2
26636 s/["\\]/\\&/g; s/^/"/; s/$/"/
26637 p
26638 b
26639 :more2
26640 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26641 p
26642 g
26643 s/.\{148\}//
26644 t delim
26645 ' <conf$$subs.awk | sed '
26646 /^[^""]/{
26647 N
26648 s/\n//
26649 }
26650 ' >>$CONFIG_STATUS || ac_write_fail=1
26651 rm -f conf$$subs.awk
26652 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26653 _ACAWK
26654 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26655 for (key in S) S_is_set[key] = 1
26656 FS = "\a"
26657 \$ac_cs_awk_pipe_init
26658 }
26659 {
26660 line = $ 0
26661 nfields = split(line, field, "@")
26662 substed = 0
26663 len = length(field[1])
26664 for (i = 2; i < nfields; i++) {
26665 key = field[i]
26666 keylen = length(key)
26667 if (S_is_set[key]) {
26668 value = S[key]
26669 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26670 len += length(value) + length(field[++i])
26671 substed = 1
26672 } else
26673 len += 1 + keylen
26674 }
26675 if (nfields == 3 && !substed) {
26676 key = field[2]
26677 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
26678 \$ac_cs_awk_read_file
26679 next
26680 }
26681 }
26682 print line
26683 }
26684 \$ac_cs_awk_pipe_fini
26685 _ACAWK
26686 _ACEOF
26687 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26688 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26689 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26690 else
26691 cat
26692 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26693 || as_fn_error "could not setup config files machinery" "$LINENO" 5
26694 _ACEOF
26695
26696 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26697 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26698 # trailing colons and then remove the whole line if VPATH becomes empty
26699 # (actually we leave an empty line to preserve line numbers).
26700 if test "x$srcdir" = x.; then
26701 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26702 s/:*\$(srcdir):*/:/
26703 s/:*\${srcdir}:*/:/
26704 s/:*@srcdir@:*/:/
26705 s/^\([^=]*=[ ]*\):*/\1/
26706 s/:*$//
26707 s/^[^=]*=[ ]*$//
26708 }'
26709 fi
26710
26711 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26712 fi # test -n "$CONFIG_FILES"
26713
26714 # Set up the scripts for CONFIG_HEADERS section.
26715 # No need to generate them if there are no CONFIG_HEADERS.
26716 # This happens for instance with `./config.status Makefile'.
26717 if test -n "$CONFIG_HEADERS"; then
26718 cat >"$tmp/defines.awk" <<\_ACAWK ||
26719 BEGIN {
26720 _ACEOF
26721
26722 # Transform confdefs.h into an awk script `defines.awk', embedded as
26723 # here-document in config.status, that substitutes the proper values into
26724 # config.h.in to produce config.h.
26725
26726 # Create a delimiter string that does not exist in confdefs.h, to ease
26727 # handling of long lines.
26728 ac_delim='%!_!# '
26729 for ac_last_try in false false :; do
26730 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26731 if test -z "$ac_t"; then
26732 break
26733 elif $ac_last_try; then
26734 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26735 else
26736 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26737 fi
26738 done
26739
26740 # For the awk script, D is an array of macro values keyed by name,
26741 # likewise P contains macro parameters if any. Preserve backslash
26742 # newline sequences.
26743
26744 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26745 sed -n '
26746 s/.\{148\}/&'"$ac_delim"'/g
26747 t rset
26748 :rset
26749 s/^[ ]*#[ ]*define[ ][ ]*/ /
26750 t def
26751 d
26752 :def
26753 s/\\$//
26754 t bsnl
26755 s/["\\]/\\&/g
26756 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26757 D["\1"]=" \3"/p
26758 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26759 d
26760 :bsnl
26761 s/["\\]/\\&/g
26762 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26763 D["\1"]=" \3\\\\\\n"\\/p
26764 t cont
26765 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26766 t cont
26767 d
26768 :cont
26769 n
26770 s/.\{148\}/&'"$ac_delim"'/g
26771 t clear
26772 :clear
26773 s/\\$//
26774 t bsnlc
26775 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26776 d
26777 :bsnlc
26778 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26779 b cont
26780 ' <confdefs.h | sed '
26781 s/'"$ac_delim"'/"\\\
26782 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26783
26784 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26785 for (key in D) D_is_set[key] = 1
26786 FS = "\a"
26787 }
26788 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26789 line = \$ 0
26790 split(line, arg, " ")
26791 if (arg[1] == "#") {
26792 defundef = arg[2]
26793 mac1 = arg[3]
26794 } else {
26795 defundef = substr(arg[1], 2)
26796 mac1 = arg[2]
26797 }
26798 split(mac1, mac2, "(") #)
26799 macro = mac2[1]
26800 prefix = substr(line, 1, index(line, defundef) - 1)
26801 if (D_is_set[macro]) {
26802 # Preserve the white space surrounding the "#".
26803 print prefix "define", macro P[macro] D[macro]
26804 next
26805 } else {
26806 # Replace #undef with comments. This is necessary, for example,
26807 # in the case of _POSIX_SOURCE, which is predefined and required
26808 # on some systems where configure will not decide to define it.
26809 if (defundef == "undef") {
26810 print "/*", prefix defundef, macro, "*/"
26811 next
26812 }
26813 }
26814 }
26815 { print }
26816 _ACAWK
26817 _ACEOF
26818 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26819 as_fn_error "could not setup config headers machinery" "$LINENO" 5
26820 fi # test -n "$CONFIG_HEADERS"
26821
26822
26823 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26824 shift
26825 for ac_tag
26826 do
26827 case $ac_tag in
26828 :[FHLC]) ac_mode=$ac_tag; continue;;
26829 esac
26830 case $ac_mode$ac_tag in
26831 :[FHL]*:*);;
26832 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26833 :[FH]-) ac_tag=-:-;;
26834 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26835 esac
26836 ac_save_IFS=$IFS
26837 IFS=:
26838 set x $ac_tag
26839 IFS=$ac_save_IFS
26840 shift
26841 ac_file=$1
26842 shift
26843
26844 case $ac_mode in
26845 :L) ac_source=$1;;
26846 :[FH])
26847 ac_file_inputs=
26848 for ac_f
26849 do
26850 case $ac_f in
26851 -) ac_f="$tmp/stdin";;
26852 *) # Look for the file first in the build tree, then in the source tree
26853 # (if the path is not absolute). The absolute path cannot be DOS-style,
26854 # because $ac_f cannot contain `:'.
26855 test -f "$ac_f" ||
26856 case $ac_f in
26857 [\\/$]*) false;;
26858 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26859 esac ||
26860 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26861 esac
26862 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26863 as_fn_append ac_file_inputs " '$ac_f'"
26864 done
26865
26866 # Let's still pretend it is `configure' which instantiates (i.e., don't
26867 # use $as_me), people would be surprised to read:
26868 # /* config.h. Generated by config.status. */
26869 configure_input='Generated from '`
26870 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26871 `' by configure.'
26872 if test x"$ac_file" != x-; then
26873 configure_input="$ac_file. $configure_input"
26874 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26875 $as_echo "$as_me: creating $ac_file" >&6;}
26876 fi
26877 # Neutralize special characters interpreted by sed in replacement strings.
26878 case $configure_input in #(
26879 *\&* | *\|* | *\\* )
26880 ac_sed_conf_input=`$as_echo "$configure_input" |
26881 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26882 *) ac_sed_conf_input=$configure_input;;
26883 esac
26884
26885 case $ac_tag in
26886 *:-:* | *:-) cat >"$tmp/stdin" \
26887 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26888 esac
26889 ;;
26890 esac
26891
26892 ac_dir=`$as_dirname -- "$ac_file" ||
26893 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26894 X"$ac_file" : 'X\(//\)[^/]' \| \
26895 X"$ac_file" : 'X\(//\)$' \| \
26896 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26897 $as_echo X"$ac_file" |
26898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26899 s//\1/
26900 q
26901 }
26902 /^X\(\/\/\)[^/].*/{
26903 s//\1/
26904 q
26905 }
26906 /^X\(\/\/\)$/{
26907 s//\1/
26908 q
26909 }
26910 /^X\(\/\).*/{
26911 s//\1/
26912 q
26913 }
26914 s/.*/./; q'`
26915 as_dir="$ac_dir"; as_fn_mkdir_p
26916 ac_builddir=.
26917
26918 case "$ac_dir" in
26919 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26920 *)
26921 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26922 # A ".." for each directory in $ac_dir_suffix.
26923 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26924 case $ac_top_builddir_sub in
26925 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26926 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26927 esac ;;
26928 esac
26929 ac_abs_top_builddir=$ac_pwd
26930 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26931 # for backward compatibility:
26932 ac_top_builddir=$ac_top_build_prefix
26933
26934 case $srcdir in
26935 .) # We are building in place.
26936 ac_srcdir=.
26937 ac_top_srcdir=$ac_top_builddir_sub
26938 ac_abs_top_srcdir=$ac_pwd ;;
26939 [\\/]* | ?:[\\/]* ) # Absolute name.
26940 ac_srcdir=$srcdir$ac_dir_suffix;
26941 ac_top_srcdir=$srcdir
26942 ac_abs_top_srcdir=$srcdir ;;
26943 *) # Relative name.
26944 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26945 ac_top_srcdir=$ac_top_build_prefix$srcdir
26946 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26947 esac
26948 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26949
26950
26951 case $ac_mode in
26952 :F)
26953 #
26954 # CONFIG_FILE
26955 #
26956
26957 case $INSTALL in
26958 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26959 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26960 esac
26961 ac_MKDIR_P=$MKDIR_P
26962 case $MKDIR_P in
26963 [\\/$]* | ?:[\\/]* ) ;;
26964 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26965 esac
26966 _ACEOF
26967
26968 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26969 # If the template does not know about datarootdir, expand it.
26970 # FIXME: This hack should be removed a few years after 2.60.
26971 ac_datarootdir_hack=; ac_datarootdir_seen=
26972 ac_sed_dataroot='
26973 /datarootdir/ {
26974 p
26975 q
26976 }
26977 /@datadir@/p
26978 /@docdir@/p
26979 /@infodir@/p
26980 /@localedir@/p
26981 /@mandir@/p'
26982 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26983 *datarootdir*) ac_datarootdir_seen=yes;;
26984 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26986 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26987 _ACEOF
26988 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26989 ac_datarootdir_hack='
26990 s&@datadir@&$datadir&g
26991 s&@docdir@&$docdir&g
26992 s&@infodir@&$infodir&g
26993 s&@localedir@&$localedir&g
26994 s&@mandir@&$mandir&g
26995 s&\\\${datarootdir}&$datarootdir&g' ;;
26996 esac
26997 _ACEOF
26998
26999 # Neutralize VPATH when `$srcdir' = `.'.
27000 # Shell code in configure.ac might set extrasub.
27001 # FIXME: do we really want to maintain this feature?
27002 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27003 ac_sed_extra="$ac_vpsub
27004 $extrasub
27005 _ACEOF
27006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27007 :t
27008 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27009 s|@configure_input@|$ac_sed_conf_input|;t t
27010 s&@top_builddir@&$ac_top_builddir_sub&;t t
27011 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27012 s&@srcdir@&$ac_srcdir&;t t
27013 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27014 s&@top_srcdir@&$ac_top_srcdir&;t t
27015 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27016 s&@builddir@&$ac_builddir&;t t
27017 s&@abs_builddir@&$ac_abs_builddir&;t t
27018 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27019 s&@INSTALL@&$ac_INSTALL&;t t
27020 s&@MKDIR_P@&$ac_MKDIR_P&;t t
27021 $ac_datarootdir_hack
27022 "
27023 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
27024 if $ac_cs_awk_getline; then
27025 $AWK -f "$tmp/subs.awk"
27026 else
27027 $AWK -f "$tmp/subs.awk" | $SHELL
27028 fi >$tmp/out \
27029 || as_fn_error "could not create $ac_file" "$LINENO" 5
27030
27031 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27032 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27033 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27035 which seems to be undefined. Please make sure it is defined." >&5
27036 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27037 which seems to be undefined. Please make sure it is defined." >&2;}
27038
27039 rm -f "$tmp/stdin"
27040 case $ac_file in
27041 -) cat "$tmp/out" && rm -f "$tmp/out";;
27042 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27043 esac \
27044 || as_fn_error "could not create $ac_file" "$LINENO" 5
27045 ;;
27046 :H)
27047 #
27048 # CONFIG_HEADER
27049 #
27050 if test x"$ac_file" != x-; then
27051 {
27052 $as_echo "/* $configure_input */" \
27053 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27054 } >"$tmp/config.h" \
27055 || as_fn_error "could not create $ac_file" "$LINENO" 5
27056 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27057 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27058 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27059 else
27060 rm -f "$ac_file"
27061 mv "$tmp/config.h" "$ac_file" \
27062 || as_fn_error "could not create $ac_file" "$LINENO" 5
27063 fi
27064 else
27065 $as_echo "/* $configure_input */" \
27066 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27067 || as_fn_error "could not create -" "$LINENO" 5
27068 fi
27069 # Compute "$ac_file"'s index in $config_headers.
27070 _am_arg="$ac_file"
27071 _am_stamp_count=1
27072 for _am_header in $config_headers :; do
27073 case $_am_header in
27074 $_am_arg | $_am_arg:* )
27075 break ;;
27076 * )
27077 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27078 esac
27079 done
27080 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
27081 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27082 X"$_am_arg" : 'X\(//\)[^/]' \| \
27083 X"$_am_arg" : 'X\(//\)$' \| \
27084 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
27085 $as_echo X"$_am_arg" |
27086 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27087 s//\1/
27088 q
27089 }
27090 /^X\(\/\/\)[^/].*/{
27091 s//\1/
27092 q
27093 }
27094 /^X\(\/\/\)$/{
27095 s//\1/
27096 q
27097 }
27098 /^X\(\/\).*/{
27099 s//\1/
27100 q
27101 }
27102 s/.*/./; q'`/stamp-h$_am_stamp_count
27103 ;;
27104
27105 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27106 $as_echo "$as_me: executing $ac_file commands" >&6;}
27107 ;;
27108 esac
27109
27110
27111 case $ac_file$ac_mode in
27112 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
27113 # Autoconf 2.62 quotes --file arguments for eval, but not when files
27114 # are listed without --file. Let's play safe and only enable the eval
27115 # if we detect the quoting.
27116 case $CONFIG_FILES in
27117 *\'*) eval set x "$CONFIG_FILES" ;;
27118 *) set x $CONFIG_FILES ;;
27119 esac
27120 shift
27121 for mf
27122 do
27123 # Strip MF so we end up with the name of the file.
27124 mf=`echo "$mf" | sed -e 's/:.*$//'`
27125 # Check whether this is an Automake generated Makefile or not.
27126 # We used to match only the files named `Makefile.in', but
27127 # some people rename them; so instead we look at the file content.
27128 # Grep'ing the first line is not enough: some people post-process
27129 # each Makefile.in and add a new line on top of each file to say so.
27130 # Grep'ing the whole file is not good either: AIX grep has a line
27131 # limit of 2048, but all sed's we know have understand at least 4000.
27132 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
27133 dirpart=`$as_dirname -- "$mf" ||
27134 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27135 X"$mf" : 'X\(//\)[^/]' \| \
27136 X"$mf" : 'X\(//\)$' \| \
27137 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27138 $as_echo X"$mf" |
27139 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27140 s//\1/
27141 q
27142 }
27143 /^X\(\/\/\)[^/].*/{
27144 s//\1/
27145 q
27146 }
27147 /^X\(\/\/\)$/{
27148 s//\1/
27149 q
27150 }
27151 /^X\(\/\).*/{
27152 s//\1/
27153 q
27154 }
27155 s/.*/./; q'`
27156 else
27157 continue
27158 fi
27159 # Extract the definition of DEPDIR, am__include, and am__quote
27160 # from the Makefile without running `make'.
27161 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27162 test -z "$DEPDIR" && continue
27163 am__include=`sed -n 's/^am__include = //p' < "$mf"`
27164 test -z "am__include" && continue
27165 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27166 # When using ansi2knr, U may be empty or an underscore; expand it
27167 U=`sed -n 's/^U = //p' < "$mf"`
27168 # Find all dependency output files, they are included files with
27169 # $(DEPDIR) in their names. We invoke sed twice because it is the
27170 # simplest approach to changing $(DEPDIR) to its actual value in the
27171 # expansion.
27172 for file in `sed -n "
27173 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27174 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27175 # Make sure the directory exists.
27176 test -f "$dirpart/$file" && continue
27177 fdir=`$as_dirname -- "$file" ||
27178 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27179 X"$file" : 'X\(//\)[^/]' \| \
27180 X"$file" : 'X\(//\)$' \| \
27181 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27182 $as_echo X"$file" |
27183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27184 s//\1/
27185 q
27186 }
27187 /^X\(\/\/\)[^/].*/{
27188 s//\1/
27189 q
27190 }
27191 /^X\(\/\/\)$/{
27192 s//\1/
27193 q
27194 }
27195 /^X\(\/\).*/{
27196 s//\1/
27197 q
27198 }
27199 s/.*/./; q'`
27200 as_dir=$dirpart/$fdir; as_fn_mkdir_p
27201 # echo "creating $dirpart/$file"
27202 echo '# dummy' > "$dirpart/$file"
27203 done
27204 done
27205 }
27206 ;;
27207 "mkdirs":C)
27208 for dir in etc lisp ; do
27209 test -d ${dir} || mkdir ${dir}
27210 done
27211 ;;
27212 "epaths":C)
27213 echo creating src/epaths.h
27214 ${MAKE-make} MAKEFILE_NAME=do-not-make-Makefile epaths-force
27215 ;;
27216 "gdbinit":C)
27217 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
27218 echo creating src/.gdbinit
27219 echo source $srcdir/src/.gdbinit > src/.gdbinit
27220 fi
27221 ;;
27222
27223 esac
27224 done # for ac_tag
27225
27226
27227 as_fn_exit 0
27228 _ACEOF
27229 ac_clean_files=$ac_clean_files_save
27230
27231 test $ac_write_fail = 0 ||
27232 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27233
27234
27235 # configure is writing to config.log, and then calls config.status.
27236 # config.status does its own redirection, appending to config.log.
27237 # Unfortunately, on DOS this fails, as config.log is still kept open
27238 # by configure, so config.status won't be able to write to it; its
27239 # output is simply discarded. So we exec the FD to /dev/null,
27240 # effectively closing config.log, so it can be properly (re)opened and
27241 # appended to by config.status. When coming back to configure, we
27242 # need to make the FD available again.
27243 if test "$no_create" != yes; then
27244 ac_cs_success=:
27245 ac_config_status_args=
27246 test "$silent" = yes &&
27247 ac_config_status_args="$ac_config_status_args --quiet"
27248 exec 5>/dev/null
27249 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27250 exec 5>>config.log
27251 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27252 # would make configure fail if this is the last instruction.
27253 $ac_cs_success || as_fn_exit $?
27254 fi
27255 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27257 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27258 fi
27259