3c53c7f15389cd0d1b1674dc19b87d2dd00c1d01
[bpt/emacs.git] / autogen / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.2.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.2.50'
553 PACKAGE_STRING='emacs 24.2.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_verify_FALSE
615 gl_GNULIB_ENABLED_verify_TRUE
616 gl_GNULIB_ENABLED_strtoull_FALSE
617 gl_GNULIB_ENABLED_strtoull_TRUE
618 gl_GNULIB_ENABLED_strtoll_FALSE
619 gl_GNULIB_ENABLED_strtoll_TRUE
620 gl_GNULIB_ENABLED_stat_FALSE
621 gl_GNULIB_ENABLED_stat_TRUE
622 gl_GNULIB_ENABLED_pathmax_FALSE
623 gl_GNULIB_ENABLED_pathmax_TRUE
624 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
625 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
626 gl_GNULIB_ENABLED_dosname_FALSE
627 gl_GNULIB_ENABLED_dosname_TRUE
628 LTLIBINTL
629 LIBINTL
630 WINDOWS_64_BIT_OFF_T
631 HAVE_UNISTD_H
632 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
633 NEXT_UNISTD_H
634 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
635 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
636 TIME_H_DEFINES_STRUCT_TIMESPEC
637 NEXT_AS_FIRST_DIRECTIVE_TIME_H
638 NEXT_TIME_H
639 WINDOWS_64_BIT_ST_SIZE
640 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
641 NEXT_SYS_STAT_H
642 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
643 NEXT_STDLIB_H
644 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
645 NEXT_STDIO_H
646 REPLACE_VSPRINTF
647 REPLACE_VSNPRINTF
648 REPLACE_VPRINTF
649 REPLACE_VFPRINTF
650 REPLACE_VDPRINTF
651 REPLACE_VASPRINTF
652 REPLACE_TMPFILE
653 REPLACE_STDIO_WRITE_FUNCS
654 REPLACE_STDIO_READ_FUNCS
655 REPLACE_SPRINTF
656 REPLACE_SNPRINTF
657 REPLACE_RENAMEAT
658 REPLACE_RENAME
659 REPLACE_REMOVE
660 REPLACE_PRINTF
661 REPLACE_POPEN
662 REPLACE_PERROR
663 REPLACE_OBSTACK_PRINTF
664 REPLACE_GETLINE
665 REPLACE_GETDELIM
666 REPLACE_FTELLO
667 REPLACE_FTELL
668 REPLACE_FSEEKO
669 REPLACE_FSEEK
670 REPLACE_FREOPEN
671 REPLACE_FPURGE
672 REPLACE_FPRINTF
673 REPLACE_FOPEN
674 REPLACE_FFLUSH
675 REPLACE_FDOPEN
676 REPLACE_FCLOSE
677 REPLACE_DPRINTF
678 HAVE_VDPRINTF
679 HAVE_VASPRINTF
680 HAVE_RENAMEAT
681 HAVE_POPEN
682 HAVE_PCLOSE
683 HAVE_FTELLO
684 HAVE_FSEEKO
685 HAVE_DPRINTF
686 HAVE_DECL_VSNPRINTF
687 HAVE_DECL_SNPRINTF
688 HAVE_DECL_OBSTACK_PRINTF
689 HAVE_DECL_GETLINE
690 HAVE_DECL_GETDELIM
691 HAVE_DECL_FTELLO
692 HAVE_DECL_FSEEKO
693 HAVE_DECL_FPURGE
694 GNULIB_VSPRINTF_POSIX
695 GNULIB_VSNPRINTF
696 GNULIB_VPRINTF_POSIX
697 GNULIB_VPRINTF
698 GNULIB_VFPRINTF_POSIX
699 GNULIB_VFPRINTF
700 GNULIB_VDPRINTF
701 GNULIB_VSCANF
702 GNULIB_VFSCANF
703 GNULIB_VASPRINTF
704 GNULIB_TMPFILE
705 GNULIB_STDIO_H_SIGPIPE
706 GNULIB_STDIO_H_NONBLOCKING
707 GNULIB_SPRINTF_POSIX
708 GNULIB_SNPRINTF
709 GNULIB_SCANF
710 GNULIB_RENAMEAT
711 GNULIB_RENAME
712 GNULIB_REMOVE
713 GNULIB_PUTS
714 GNULIB_PUTCHAR
715 GNULIB_PUTC
716 GNULIB_PRINTF_POSIX
717 GNULIB_PRINTF
718 GNULIB_POPEN
719 GNULIB_PERROR
720 GNULIB_PCLOSE
721 GNULIB_OBSTACK_PRINTF_POSIX
722 GNULIB_OBSTACK_PRINTF
723 GNULIB_GETLINE
724 GNULIB_GETDELIM
725 GNULIB_GETCHAR
726 GNULIB_GETC
727 GNULIB_FWRITE
728 GNULIB_FTELLO
729 GNULIB_FTELL
730 GNULIB_FSEEKO
731 GNULIB_FSEEK
732 GNULIB_FSCANF
733 GNULIB_FREOPEN
734 GNULIB_FREAD
735 GNULIB_FPUTS
736 GNULIB_FPUTC
737 GNULIB_FPURGE
738 GNULIB_FPRINTF_POSIX
739 GNULIB_FPRINTF
740 GNULIB_FOPEN
741 GNULIB_FGETS
742 GNULIB_FGETC
743 GNULIB_FFLUSH
744 GNULIB_FDOPEN
745 GNULIB_FCLOSE
746 GNULIB_DPRINTF
747 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
748 NEXT_STDDEF_H
749 GL_GENERATE_STDDEF_H_FALSE
750 GL_GENERATE_STDDEF_H_TRUE
751 STDDEF_H
752 HAVE_WCHAR_T
753 REPLACE_NULL
754 HAVE__BOOL
755 GL_GENERATE_STDBOOL_H_FALSE
756 GL_GENERATE_STDBOOL_H_TRUE
757 STDBOOL_H
758 GL_GENERATE_STDARG_H_FALSE
759 GL_GENERATE_STDARG_H_TRUE
760 STDARG_H
761 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
762 NEXT_STDARG_H
763 GL_GENERATE_STDALIGN_H_FALSE
764 GL_GENERATE_STDALIGN_H_TRUE
765 STDALIGN_H
766 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
767 NEXT_SIGNAL_H
768 LIB_PTHREAD_SIGMASK
769 REPLACE_RAISE
770 REPLACE_PTHREAD_SIGMASK
771 HAVE_SIGHANDLER_T
772 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
773 HAVE_STRUCT_SIGACTION_SA_SIGACTION
774 HAVE_SIGACTION
775 HAVE_SIGINFO_T
776 HAVE_SIGSET_T
777 HAVE_RAISE
778 HAVE_PTHREAD_SIGMASK
779 HAVE_POSIX_SIGNALBLOCKING
780 GNULIB_SIGACTION
781 GNULIB_SIGPROCMASK
782 GNULIB_SIGNAL_H_SIGPIPE
783 GNULIB_RAISE
784 GNULIB_PTHREAD_SIGMASK
785 HAVE_SYS_SELECT_H
786 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
787 NEXT_SYS_SELECT_H
788 REPLACE_SELECT
789 REPLACE_PSELECT
790 HAVE_PSELECT
791 GNULIB_SELECT
792 GNULIB_PSELECT
793 REPLACE_TIMEGM
794 REPLACE_NANOSLEEP
795 REPLACE_MKTIME
796 REPLACE_LOCALTIME_R
797 HAVE_TIMEGM
798 HAVE_STRPTIME
799 HAVE_NANOSLEEP
800 HAVE_DECL_LOCALTIME_R
801 GNULIB_TIME_R
802 GNULIB_TIMEGM
803 GNULIB_STRPTIME
804 GNULIB_NANOSLEEP
805 GNULIB_MKTIME
806 REPLACE_UTIMENSAT
807 REPLACE_STAT
808 REPLACE_MKNOD
809 REPLACE_MKFIFO
810 REPLACE_MKDIR
811 REPLACE_LSTAT
812 REPLACE_FUTIMENS
813 REPLACE_FSTATAT
814 REPLACE_FSTAT
815 HAVE_UTIMENSAT
816 HAVE_MKNODAT
817 HAVE_MKNOD
818 HAVE_MKFIFOAT
819 HAVE_MKFIFO
820 HAVE_MKDIRAT
821 HAVE_LSTAT
822 HAVE_LCHMOD
823 HAVE_FUTIMENS
824 HAVE_FSTATAT
825 HAVE_FCHMODAT
826 GNULIB_UTIMENSAT
827 GNULIB_STAT
828 GNULIB_MKNODAT
829 GNULIB_MKNOD
830 GNULIB_MKFIFOAT
831 GNULIB_MKFIFO
832 GNULIB_MKDIRAT
833 GNULIB_LSTAT
834 GNULIB_LCHMOD
835 GNULIB_FUTIMENS
836 GNULIB_FSTATAT
837 GNULIB_FSTAT
838 GNULIB_FCHMODAT
839 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
840 NEXT_INTTYPES_H
841 UINT64_MAX_EQ_ULONG_MAX
842 UINT32_MAX_LT_UINTMAX_MAX
843 PRIPTR_PREFIX
844 PRI_MACROS_BROKEN
845 INT64_MAX_EQ_LONG_MAX
846 INT32_MAX_LT_INTMAX_MAX
847 REPLACE_STRTOIMAX
848 HAVE_DECL_STRTOUMAX
849 HAVE_DECL_STRTOIMAX
850 HAVE_DECL_IMAXDIV
851 HAVE_DECL_IMAXABS
852 GNULIB_STRTOUMAX
853 GNULIB_STRTOIMAX
854 GNULIB_IMAXDIV
855 GNULIB_IMAXABS
856 GL_GENERATE_STDINT_H_FALSE
857 GL_GENERATE_STDINT_H_TRUE
858 STDINT_H
859 WINT_T_SUFFIX
860 WCHAR_T_SUFFIX
861 SIG_ATOMIC_T_SUFFIX
862 SIZE_T_SUFFIX
863 PTRDIFF_T_SUFFIX
864 HAVE_SIGNED_WINT_T
865 HAVE_SIGNED_WCHAR_T
866 HAVE_SIGNED_SIG_ATOMIC_T
867 BITSIZEOF_WINT_T
868 BITSIZEOF_WCHAR_T
869 BITSIZEOF_SIG_ATOMIC_T
870 BITSIZEOF_SIZE_T
871 BITSIZEOF_PTRDIFF_T
872 APPLE_UNIVERSAL_BUILD
873 HAVE_SYS_BITYPES_H
874 HAVE_SYS_INTTYPES_H
875 HAVE_STDINT_H
876 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
877 NEXT_STDINT_H
878 HAVE_SYS_TYPES_H
879 HAVE_INTTYPES_H
880 HAVE_WCHAR_H
881 HAVE_UNSIGNED_LONG_LONG_INT
882 HAVE_LONG_LONG_INT
883 HAVE_WINSOCK2_H
884 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
885 NEXT_SYS_TIME_H
886 REPLACE_STRUCT_TIMEVAL
887 REPLACE_GETTIMEOFDAY
888 HAVE_SYS_TIME_H
889 HAVE_STRUCT_TIMEVAL
890 HAVE_GETTIMEOFDAY
891 GNULIB_GETTIMEOFDAY
892 GNULIB_GL_UNISTD_H_GETOPT
893 GETOPT_H
894 HAVE_GETOPT_H
895 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
896 NEXT_GETOPT_H
897 PRAGMA_COLUMNS
898 PRAGMA_SYSTEM_HEADER
899 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
900 INCLUDE_NEXT
901 GETLOADAVG_LIBS
902 REPLACE_WCTOMB
903 REPLACE_UNSETENV
904 REPLACE_STRTOD
905 REPLACE_SETENV
906 REPLACE_REALPATH
907 REPLACE_REALLOC
908 REPLACE_RANDOM_R
909 REPLACE_PUTENV
910 REPLACE_PTSNAME_R
911 REPLACE_MKSTEMP
912 REPLACE_MBTOWC
913 REPLACE_MALLOC
914 REPLACE_CANONICALIZE_FILE_NAME
915 REPLACE_CALLOC
916 HAVE_DECL_UNSETENV
917 HAVE_UNLOCKPT
918 HAVE_SYS_LOADAVG_H
919 HAVE_STRUCT_RANDOM_DATA
920 HAVE_STRTOULL
921 HAVE_STRTOLL
922 HAVE_STRTOD
923 HAVE_DECL_SETENV
924 HAVE_SETENV
925 HAVE_RPMATCH
926 HAVE_REALPATH
927 HAVE_RANDOM_R
928 HAVE_RANDOM_H
929 HAVE_RANDOM
930 HAVE_PTSNAME_R
931 HAVE_PTSNAME
932 HAVE_POSIX_OPENPT
933 HAVE_MKSTEMPS
934 HAVE_MKSTEMP
935 HAVE_MKOSTEMPS
936 HAVE_MKOSTEMP
937 HAVE_MKDTEMP
938 HAVE_GRANTPT
939 HAVE_GETSUBOPT
940 HAVE_DECL_GETLOADAVG
941 HAVE_CANONICALIZE_FILE_NAME
942 HAVE_ATOLL
943 HAVE__EXIT
944 GNULIB_WCTOMB
945 GNULIB_UNSETENV
946 GNULIB_UNLOCKPT
947 GNULIB_SYSTEM_POSIX
948 GNULIB_STRTOULL
949 GNULIB_STRTOLL
950 GNULIB_STRTOD
951 GNULIB_SETENV
952 GNULIB_RPMATCH
953 GNULIB_REALPATH
954 GNULIB_REALLOC_POSIX
955 GNULIB_RANDOM_R
956 GNULIB_RANDOM
957 GNULIB_PUTENV
958 GNULIB_PTSNAME_R
959 GNULIB_PTSNAME
960 GNULIB_POSIX_OPENPT
961 GNULIB_MKSTEMPS
962 GNULIB_MKSTEMP
963 GNULIB_MKOSTEMPS
964 GNULIB_MKOSTEMP
965 GNULIB_MKDTEMP
966 GNULIB_MBTOWC
967 GNULIB_MALLOC_POSIX
968 GNULIB_GRANTPT
969 GNULIB_GETSUBOPT
970 GNULIB_GETLOADAVG
971 GNULIB_CANONICALIZE_FILE_NAME
972 GNULIB_CALLOC_POSIX
973 GNULIB_ATOLL
974 GNULIB__EXIT
975 GL_GENERATE_EXECINFO_H_FALSE
976 GL_GENERATE_EXECINFO_H_TRUE
977 LIB_EXECINFO
978 EXECINFO_H
979 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
980 UNISTD_H_HAVE_WINSOCK2_H
981 REPLACE_WRITE
982 REPLACE_USLEEP
983 REPLACE_UNLINKAT
984 REPLACE_UNLINK
985 REPLACE_TTYNAME_R
986 REPLACE_SYMLINK
987 REPLACE_SLEEP
988 REPLACE_RMDIR
989 REPLACE_READLINK
990 REPLACE_READ
991 REPLACE_PWRITE
992 REPLACE_PREAD
993 REPLACE_LSEEK
994 REPLACE_LINKAT
995 REPLACE_LINK
996 REPLACE_LCHOWN
997 REPLACE_ISATTY
998 REPLACE_GETPAGESIZE
999 REPLACE_GETGROUPS
1000 REPLACE_GETLOGIN_R
1001 REPLACE_GETDOMAINNAME
1002 REPLACE_GETCWD
1003 REPLACE_FTRUNCATE
1004 REPLACE_FCHOWNAT
1005 REPLACE_DUP2
1006 REPLACE_DUP
1007 REPLACE_CLOSE
1008 REPLACE_CHOWN
1009 HAVE_SYS_PARAM_H
1010 HAVE_OS_H
1011 HAVE_DECL_TTYNAME_R
1012 HAVE_DECL_SETHOSTNAME
1013 HAVE_DECL_GETUSERSHELL
1014 HAVE_DECL_GETPAGESIZE
1015 HAVE_DECL_GETLOGIN_R
1016 HAVE_DECL_GETDOMAINNAME
1017 HAVE_DECL_FDATASYNC
1018 HAVE_DECL_FCHDIR
1019 HAVE_DECL_ENVIRON
1020 HAVE_USLEEP
1021 HAVE_UNLINKAT
1022 HAVE_SYMLINKAT
1023 HAVE_SYMLINK
1024 HAVE_SLEEP
1025 HAVE_SETHOSTNAME
1026 HAVE_READLINKAT
1027 HAVE_READLINK
1028 HAVE_PWRITE
1029 HAVE_PREAD
1030 HAVE_PIPE2
1031 HAVE_PIPE
1032 HAVE_LINKAT
1033 HAVE_LINK
1034 HAVE_LCHOWN
1035 HAVE_GROUP_MEMBER
1036 HAVE_GETPAGESIZE
1037 HAVE_GETLOGIN
1038 HAVE_GETHOSTNAME
1039 HAVE_GETGROUPS
1040 HAVE_GETDTABLESIZE
1041 HAVE_FTRUNCATE
1042 HAVE_FSYNC
1043 HAVE_FDATASYNC
1044 HAVE_FCHOWNAT
1045 HAVE_FCHDIR
1046 HAVE_FACCESSAT
1047 HAVE_EUIDACCESS
1048 HAVE_DUP3
1049 HAVE_DUP2
1050 HAVE_CHOWN
1051 GNULIB_WRITE
1052 GNULIB_USLEEP
1053 GNULIB_UNLINKAT
1054 GNULIB_UNLINK
1055 GNULIB_UNISTD_H_SIGPIPE
1056 GNULIB_UNISTD_H_NONBLOCKING
1057 GNULIB_TTYNAME_R
1058 GNULIB_SYMLINKAT
1059 GNULIB_SYMLINK
1060 GNULIB_SLEEP
1061 GNULIB_SETHOSTNAME
1062 GNULIB_RMDIR
1063 GNULIB_READLINKAT
1064 GNULIB_READLINK
1065 GNULIB_READ
1066 GNULIB_PWRITE
1067 GNULIB_PREAD
1068 GNULIB_PIPE2
1069 GNULIB_PIPE
1070 GNULIB_LSEEK
1071 GNULIB_LINKAT
1072 GNULIB_LINK
1073 GNULIB_LCHOWN
1074 GNULIB_ISATTY
1075 GNULIB_GROUP_MEMBER
1076 GNULIB_GETUSERSHELL
1077 GNULIB_GETPAGESIZE
1078 GNULIB_GETLOGIN_R
1079 GNULIB_GETLOGIN
1080 GNULIB_GETHOSTNAME
1081 GNULIB_GETGROUPS
1082 GNULIB_GETDTABLESIZE
1083 GNULIB_GETDOMAINNAME
1084 GNULIB_GETCWD
1085 GNULIB_FTRUNCATE
1086 GNULIB_FSYNC
1087 GNULIB_FDATASYNC
1088 GNULIB_FCHOWNAT
1089 GNULIB_FCHDIR
1090 GNULIB_FACCESSAT
1091 GNULIB_EUIDACCESS
1092 GNULIB_ENVIRON
1093 GNULIB_DUP3
1094 GNULIB_DUP2
1095 GNULIB_DUP
1096 GNULIB_CLOSE
1097 GNULIB_CHOWN
1098 GNULIB_CHDIR
1099 LIB_CLOCK_GETTIME
1100 GL_GENERATE_ALLOCA_H_FALSE
1101 GL_GENERATE_ALLOCA_H_TRUE
1102 ALLOCA_H
1103 ALLOCA
1104 GL_COND_LIBTOOL_FALSE
1105 GL_COND_LIBTOOL_TRUE
1106 POST_ALLOC_OBJ
1107 PRE_ALLOC_OBJ
1108 CYGWIN_OBJ
1109 RALLOC_OBJ
1110 OLDXMENU_DEPS
1111 LIBX_OTHER
1112 LIBXMENU
1113 OLDXMENU
1114 OLDXMENU_TARGET
1115 LIBXT_OTHER
1116 TOOLKIT_LIBW
1117 WIDGET_OBJ
1118 XOBJ
1119 XMENU_OBJ
1120 FONT_OBJ
1121 OTHER_FILES
1122 GNU_OBJC_CFLAGS
1123 ns_appsrc
1124 ns_appresdir
1125 ns_appbindir
1126 ns_appdir
1127 X_TOOLKIT_TYPE
1128 GNUSTEP_CFLAGS
1129 C_SWITCH_X_SITE
1130 LD_SWITCH_X_SITE
1131 gameuser
1132 gamedir
1133 bitmapdir
1134 archlibdir
1135 etcdir
1136 x_default_search_path
1137 lisppath
1138 locallisppath
1139 standardlisppath
1140 leimdir
1141 lispdir
1142 srcdir
1143 canonical
1144 configuration
1145 version
1146 copyright
1147 KRB4LIB
1148 DESLIB
1149 KRB5LIB
1150 CRYPTOLIB
1151 COM_ERRLIB
1152 LIBRESOLV
1153 LIBHESIOD
1154 TERMCAP_OBJ
1155 LIBS_TERMCAP
1156 BLESSMAIL_TARGET
1157 LIBS_MAIL
1158 liblockfile
1159 LIBXML2_LIBS
1160 LIBXML2_CFLAGS
1161 LIBXSM
1162 LIBGPM
1163 LIBGIF
1164 LIBTIFF
1165 LIBPNG
1166 LIBJPEG
1167 LIBXPM
1168 M17N_FLT_LIBS
1169 M17N_FLT_CFLAGS
1170 LIBOTF_LIBS
1171 LIBOTF_CFLAGS
1172 FREETYPE_LIBS
1173 FREETYPE_CFLAGS
1174 XFT_LIBS
1175 XFT_CFLAGS
1176 FONTCONFIG_LIBS
1177 FONTCONFIG_CFLAGS
1178 LIBXMU
1179 LIBXTR6
1180 LIBGNUTLS_LIBS
1181 LIBGNUTLS_CFLAGS
1182 LIBSELINUX_LIBS
1183 SETTINGS_LIBS
1184 SETTINGS_CFLAGS
1185 GOBJECT_LIBS
1186 GOBJECT_CFLAGS
1187 GCONF_LIBS
1188 GCONF_CFLAGS
1189 GSETTINGS_LIBS
1190 GSETTINGS_CFLAGS
1191 DBUS_OBJ
1192 DBUS_LIBS
1193 DBUS_CFLAGS
1194 GTK_OBJ
1195 GTK_LIBS
1196 GTK_CFLAGS
1197 IMAGEMAGICK_LIBS
1198 IMAGEMAGICK_CFLAGS
1199 RSVG_LIBS
1200 RSVG_CFLAGS
1201 LIB_PTHREAD
1202 VMLIMIT_OBJ
1203 GMALLOC_OBJ
1204 HAVE_XSERVER
1205 LIB_STANDARD
1206 NS_OBJC_OBJ
1207 NS_OBJ
1208 ns_self_contained
1209 INSTALL_ARCH_INDEP_EXTRA
1210 TEMACS_LDFLAGS2
1211 LD_SWITCH_X_SITE_RPATH
1212 XMKMF
1213 DEPFLAGS
1214 MKDEPDIR
1215 CFLAGS_SOUND
1216 ALSA_LIBS
1217 ALSA_CFLAGS
1218 LIBSOUND
1219 PKG_CONFIG
1220 CRT_DIR
1221 START_FILES
1222 LIB_MATH
1223 LIBS_SYSTEM
1224 C_SWITCH_SYSTEM
1225 UNEXEC_OBJ
1226 C_SWITCH_MACHINE
1227 LD_SWITCH_SYSTEM
1228 CANNOT_DUMP
1229 INFO_OPTS
1230 INFO_EXT
1231 HAVE_MAKEINFO
1232 PAXCTL
1233 GZIP_PROG
1234 INSTALL_INFO
1235 LN_S
1236 GNULIB_WARN_CFLAGS
1237 WARN_CFLAGS
1238 WERROR_CFLAGS
1239 RANLIB
1240 ARFLAGS
1241 AR
1242 EGREP
1243 GREP
1244 CPP
1245 am__fastdepCC_FALSE
1246 am__fastdepCC_TRUE
1247 CCDEPMODE
1248 AMDEPBACKSLASH
1249 AMDEP_FALSE
1250 AMDEP_TRUE
1251 am__quote
1252 am__include
1253 DEPDIR
1254 OBJEXT
1255 EXEEXT
1256 ac_ct_CC
1257 CPPFLAGS
1258 LDFLAGS
1259 CFLAGS
1260 CC
1261 host_os
1262 host_vendor
1263 host_cpu
1264 host
1265 build_os
1266 build_vendor
1267 build_cpu
1268 build
1269 PROFILING_CFLAGS
1270 GZIP_INFO
1271 cache_file
1272 am__untar
1273 am__tar
1274 AMTAR
1275 am__leading_dot
1276 SET_MAKE
1277 AWK
1278 mkdir_p
1279 MKDIR_P
1280 INSTALL_STRIP_PROGRAM
1281 STRIP
1282 install_sh
1283 MAKEINFO
1284 AUTOHEADER
1285 AUTOMAKE
1286 AUTOCONF
1287 ACLOCAL
1288 VERSION
1289 PACKAGE
1290 CYGPATH_W
1291 am__isrc
1292 INSTALL_DATA
1293 INSTALL_SCRIPT
1294 INSTALL_PROGRAM
1295 target_alias
1296 host_alias
1297 build_alias
1298 LIBS
1299 ECHO_T
1300 ECHO_N
1301 ECHO_C
1302 DEFS
1303 mandir
1304 localedir
1305 libdir
1306 psdir
1307 pdfdir
1308 dvidir
1309 htmldir
1310 infodir
1311 docdir
1312 oldincludedir
1313 includedir
1314 localstatedir
1315 sharedstatedir
1316 sysconfdir
1317 datadir
1318 datarootdir
1319 libexecdir
1320 sbindir
1321 bindir
1322 program_transform_name
1323 prefix
1324 exec_prefix
1325 PACKAGE_URL
1326 PACKAGE_BUGREPORT
1327 PACKAGE_STRING
1328 PACKAGE_VERSION
1329 PACKAGE_TARNAME
1330 PACKAGE_NAME
1331 PATH_SEPARATOR
1332 SHELL'
1333 ac_subst_files='deps_frag
1334 lisp_frag'
1335 ac_user_opts='
1336 enable_option_checking
1337 with_all
1338 with_pop
1339 with_kerberos
1340 with_kerberos5
1341 with_hesiod
1342 with_mmdf
1343 with_mail_unlink
1344 with_mailhost
1345 with_sound
1346 with_x_toolkit
1347 with_wide_int
1348 with_xpm
1349 with_jpeg
1350 with_tiff
1351 with_gif
1352 with_png
1353 with_rsvg
1354 with_xml2
1355 with_imagemagick
1356 with_xft
1357 with_libotf
1358 with_m17n_flt
1359 with_toolkit_scroll_bars
1360 with_xaw3d
1361 with_xim
1362 with_ns
1363 with_gpm
1364 with_dbus
1365 with_gconf
1366 with_gsettings
1367 with_selinux
1368 with_gnutls
1369 with_makeinfo
1370 with_compress_info
1371 with_pkg_config_prog
1372 with_crt_dir
1373 with_gameuser
1374 with_gnustep_conf
1375 enable_ns_self_contained
1376 enable_locallisppath
1377 enable_checking
1378 enable_check_lisp_object_type
1379 enable_profiling
1380 enable_autodepend
1381 enable_dependency_tracking
1382 enable_largefile
1383 enable_gcc_warnings
1384 enable_link_time_optimization
1385 with_x
1386 '
1387 ac_precious_vars='build_alias
1388 host_alias
1389 target_alias
1390 CC
1391 CFLAGS
1392 LDFLAGS
1393 LIBS
1394 CPPFLAGS
1395 CPP
1396 XMKMF'
1397
1398
1399 # Initialize some variables set by options.
1400 ac_init_help=
1401 ac_init_version=false
1402 ac_unrecognized_opts=
1403 ac_unrecognized_sep=
1404 # The variables have the same names as the options, with
1405 # dashes changed to underlines.
1406 cache_file=/dev/null
1407 exec_prefix=NONE
1408 no_create=
1409 no_recursion=
1410 prefix=NONE
1411 program_prefix=NONE
1412 program_suffix=NONE
1413 program_transform_name=s,x,x,
1414 silent=
1415 site=
1416 srcdir=
1417 verbose=
1418 x_includes=NONE
1419 x_libraries=NONE
1420
1421 # Installation directory options.
1422 # These are left unexpanded so users can "make install exec_prefix=/foo"
1423 # and all the variables that are supposed to be based on exec_prefix
1424 # by default will actually change.
1425 # Use braces instead of parens because sh, perl, etc. also accept them.
1426 # (The list follows the same order as the GNU Coding Standards.)
1427 bindir='${exec_prefix}/bin'
1428 sbindir='${exec_prefix}/sbin'
1429 libexecdir='${exec_prefix}/libexec'
1430 datarootdir='${prefix}/share'
1431 datadir='${datarootdir}'
1432 sysconfdir='${prefix}/etc'
1433 sharedstatedir='${prefix}/com'
1434 localstatedir='${prefix}/var'
1435 includedir='${prefix}/include'
1436 oldincludedir='/usr/include'
1437 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1438 infodir='${datarootdir}/info'
1439 htmldir='${docdir}'
1440 dvidir='${docdir}'
1441 pdfdir='${docdir}'
1442 psdir='${docdir}'
1443 libdir='${exec_prefix}/lib'
1444 localedir='${datarootdir}/locale'
1445 mandir='${datarootdir}/man'
1446
1447 ac_prev=
1448 ac_dashdash=
1449 for ac_option
1450 do
1451 # If the previous option needs an argument, assign it.
1452 if test -n "$ac_prev"; then
1453 eval $ac_prev=\$ac_option
1454 ac_prev=
1455 continue
1456 fi
1457
1458 case $ac_option in
1459 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1460 *) ac_optarg=yes ;;
1461 esac
1462
1463 # Accept the important Cygnus configure options, so we can diagnose typos.
1464
1465 case $ac_dashdash$ac_option in
1466 --)
1467 ac_dashdash=yes ;;
1468
1469 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1470 ac_prev=bindir ;;
1471 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1472 bindir=$ac_optarg ;;
1473
1474 -build | --build | --buil | --bui | --bu)
1475 ac_prev=build_alias ;;
1476 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1477 build_alias=$ac_optarg ;;
1478
1479 -cache-file | --cache-file | --cache-fil | --cache-fi \
1480 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1481 ac_prev=cache_file ;;
1482 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1483 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1484 cache_file=$ac_optarg ;;
1485
1486 --config-cache | -C)
1487 cache_file=config.cache ;;
1488
1489 -datadir | --datadir | --datadi | --datad)
1490 ac_prev=datadir ;;
1491 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1492 datadir=$ac_optarg ;;
1493
1494 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1495 | --dataroo | --dataro | --datar)
1496 ac_prev=datarootdir ;;
1497 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1498 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1499 datarootdir=$ac_optarg ;;
1500
1501 -disable-* | --disable-*)
1502 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1503 # Reject names that are not valid shell variable names.
1504 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1505 as_fn_error "invalid feature name: $ac_useropt"
1506 ac_useropt_orig=$ac_useropt
1507 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1508 case $ac_user_opts in
1509 *"
1510 "enable_$ac_useropt"
1511 "*) ;;
1512 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1513 ac_unrecognized_sep=', ';;
1514 esac
1515 eval enable_$ac_useropt=no ;;
1516
1517 -docdir | --docdir | --docdi | --doc | --do)
1518 ac_prev=docdir ;;
1519 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1520 docdir=$ac_optarg ;;
1521
1522 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1523 ac_prev=dvidir ;;
1524 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1525 dvidir=$ac_optarg ;;
1526
1527 -enable-* | --enable-*)
1528 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1529 # Reject names that are not valid shell variable names.
1530 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1531 as_fn_error "invalid feature name: $ac_useropt"
1532 ac_useropt_orig=$ac_useropt
1533 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1534 case $ac_user_opts in
1535 *"
1536 "enable_$ac_useropt"
1537 "*) ;;
1538 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1539 ac_unrecognized_sep=', ';;
1540 esac
1541 eval enable_$ac_useropt=\$ac_optarg ;;
1542
1543 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1544 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1545 | --exec | --exe | --ex)
1546 ac_prev=exec_prefix ;;
1547 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1548 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1549 | --exec=* | --exe=* | --ex=*)
1550 exec_prefix=$ac_optarg ;;
1551
1552 -gas | --gas | --ga | --g)
1553 # Obsolete; use --with-gas.
1554 with_gas=yes ;;
1555
1556 -help | --help | --hel | --he | -h)
1557 ac_init_help=long ;;
1558 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1559 ac_init_help=recursive ;;
1560 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1561 ac_init_help=short ;;
1562
1563 -host | --host | --hos | --ho)
1564 ac_prev=host_alias ;;
1565 -host=* | --host=* | --hos=* | --ho=*)
1566 host_alias=$ac_optarg ;;
1567
1568 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1569 ac_prev=htmldir ;;
1570 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1571 | --ht=*)
1572 htmldir=$ac_optarg ;;
1573
1574 -includedir | --includedir | --includedi | --included | --include \
1575 | --includ | --inclu | --incl | --inc)
1576 ac_prev=includedir ;;
1577 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1578 | --includ=* | --inclu=* | --incl=* | --inc=*)
1579 includedir=$ac_optarg ;;
1580
1581 -infodir | --infodir | --infodi | --infod | --info | --inf)
1582 ac_prev=infodir ;;
1583 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1584 infodir=$ac_optarg ;;
1585
1586 -libdir | --libdir | --libdi | --libd)
1587 ac_prev=libdir ;;
1588 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1589 libdir=$ac_optarg ;;
1590
1591 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1592 | --libexe | --libex | --libe)
1593 ac_prev=libexecdir ;;
1594 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1595 | --libexe=* | --libex=* | --libe=*)
1596 libexecdir=$ac_optarg ;;
1597
1598 -localedir | --localedir | --localedi | --localed | --locale)
1599 ac_prev=localedir ;;
1600 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1601 localedir=$ac_optarg ;;
1602
1603 -localstatedir | --localstatedir | --localstatedi | --localstated \
1604 | --localstate | --localstat | --localsta | --localst | --locals)
1605 ac_prev=localstatedir ;;
1606 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1607 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1608 localstatedir=$ac_optarg ;;
1609
1610 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1611 ac_prev=mandir ;;
1612 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1613 mandir=$ac_optarg ;;
1614
1615 -nfp | --nfp | --nf)
1616 # Obsolete; use --without-fp.
1617 with_fp=no ;;
1618
1619 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1620 | --no-cr | --no-c | -n)
1621 no_create=yes ;;
1622
1623 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1624 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1625 no_recursion=yes ;;
1626
1627 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1628 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1629 | --oldin | --oldi | --old | --ol | --o)
1630 ac_prev=oldincludedir ;;
1631 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1632 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1633 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1634 oldincludedir=$ac_optarg ;;
1635
1636 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1637 ac_prev=prefix ;;
1638 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1639 prefix=$ac_optarg ;;
1640
1641 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1642 | --program-pre | --program-pr | --program-p)
1643 ac_prev=program_prefix ;;
1644 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1645 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1646 program_prefix=$ac_optarg ;;
1647
1648 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1649 | --program-suf | --program-su | --program-s)
1650 ac_prev=program_suffix ;;
1651 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1652 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1653 program_suffix=$ac_optarg ;;
1654
1655 -program-transform-name | --program-transform-name \
1656 | --program-transform-nam | --program-transform-na \
1657 | --program-transform-n | --program-transform- \
1658 | --program-transform | --program-transfor \
1659 | --program-transfo | --program-transf \
1660 | --program-trans | --program-tran \
1661 | --progr-tra | --program-tr | --program-t)
1662 ac_prev=program_transform_name ;;
1663 -program-transform-name=* | --program-transform-name=* \
1664 | --program-transform-nam=* | --program-transform-na=* \
1665 | --program-transform-n=* | --program-transform-=* \
1666 | --program-transform=* | --program-transfor=* \
1667 | --program-transfo=* | --program-transf=* \
1668 | --program-trans=* | --program-tran=* \
1669 | --progr-tra=* | --program-tr=* | --program-t=*)
1670 program_transform_name=$ac_optarg ;;
1671
1672 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1673 ac_prev=pdfdir ;;
1674 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1675 pdfdir=$ac_optarg ;;
1676
1677 -psdir | --psdir | --psdi | --psd | --ps)
1678 ac_prev=psdir ;;
1679 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1680 psdir=$ac_optarg ;;
1681
1682 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1683 | -silent | --silent | --silen | --sile | --sil)
1684 silent=yes ;;
1685
1686 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1687 ac_prev=sbindir ;;
1688 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1689 | --sbi=* | --sb=*)
1690 sbindir=$ac_optarg ;;
1691
1692 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1693 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1694 | --sharedst | --shareds | --shared | --share | --shar \
1695 | --sha | --sh)
1696 ac_prev=sharedstatedir ;;
1697 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1698 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1699 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1700 | --sha=* | --sh=*)
1701 sharedstatedir=$ac_optarg ;;
1702
1703 -site | --site | --sit)
1704 ac_prev=site ;;
1705 -site=* | --site=* | --sit=*)
1706 site=$ac_optarg ;;
1707
1708 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1709 ac_prev=srcdir ;;
1710 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1711 srcdir=$ac_optarg ;;
1712
1713 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1714 | --syscon | --sysco | --sysc | --sys | --sy)
1715 ac_prev=sysconfdir ;;
1716 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1717 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1718 sysconfdir=$ac_optarg ;;
1719
1720 -target | --target | --targe | --targ | --tar | --ta | --t)
1721 ac_prev=target_alias ;;
1722 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1723 target_alias=$ac_optarg ;;
1724
1725 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1726 verbose=yes ;;
1727
1728 -version | --version | --versio | --versi | --vers | -V)
1729 ac_init_version=: ;;
1730
1731 -with-* | --with-*)
1732 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1733 # Reject names that are not valid shell variable names.
1734 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1735 as_fn_error "invalid package name: $ac_useropt"
1736 ac_useropt_orig=$ac_useropt
1737 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1738 case $ac_user_opts in
1739 *"
1740 "with_$ac_useropt"
1741 "*) ;;
1742 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1743 ac_unrecognized_sep=', ';;
1744 esac
1745 eval with_$ac_useropt=\$ac_optarg ;;
1746
1747 -without-* | --without-*)
1748 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1749 # Reject names that are not valid shell variable names.
1750 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1751 as_fn_error "invalid package name: $ac_useropt"
1752 ac_useropt_orig=$ac_useropt
1753 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1754 case $ac_user_opts in
1755 *"
1756 "with_$ac_useropt"
1757 "*) ;;
1758 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1759 ac_unrecognized_sep=', ';;
1760 esac
1761 eval with_$ac_useropt=no ;;
1762
1763 --x)
1764 # Obsolete; use --with-x.
1765 with_x=yes ;;
1766
1767 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1768 | --x-incl | --x-inc | --x-in | --x-i)
1769 ac_prev=x_includes ;;
1770 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1771 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1772 x_includes=$ac_optarg ;;
1773
1774 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1775 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1776 ac_prev=x_libraries ;;
1777 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1778 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1779 x_libraries=$ac_optarg ;;
1780
1781 -*) as_fn_error "unrecognized option: \`$ac_option'
1782 Try \`$0 --help' for more information."
1783 ;;
1784
1785 *=*)
1786 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1787 # Reject names that are not valid shell variable names.
1788 case $ac_envvar in #(
1789 '' | [0-9]* | *[!_$as_cr_alnum]* )
1790 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1791 esac
1792 eval $ac_envvar=\$ac_optarg
1793 export $ac_envvar ;;
1794
1795 *)
1796 # FIXME: should be removed in autoconf 3.0.
1797 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1798 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1799 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1800 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1801 ;;
1802
1803 esac
1804 done
1805
1806 if test -n "$ac_prev"; then
1807 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1808 as_fn_error "missing argument to $ac_option"
1809 fi
1810
1811 if test -n "$ac_unrecognized_opts"; then
1812 case $enable_option_checking in
1813 no) ;;
1814 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1815 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1816 esac
1817 fi
1818
1819 # Check all directory arguments for consistency.
1820 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1821 datadir sysconfdir sharedstatedir localstatedir includedir \
1822 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1823 libdir localedir mandir
1824 do
1825 eval ac_val=\$$ac_var
1826 # Remove trailing slashes.
1827 case $ac_val in
1828 */ )
1829 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1830 eval $ac_var=\$ac_val;;
1831 esac
1832 # Be sure to have absolute directory names.
1833 case $ac_val in
1834 [\\/$]* | ?:[\\/]* ) continue;;
1835 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1836 esac
1837 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1838 done
1839
1840 # There might be people who depend on the old broken behavior: `$host'
1841 # used to hold the argument of --host etc.
1842 # FIXME: To remove some day.
1843 build=$build_alias
1844 host=$host_alias
1845 target=$target_alias
1846
1847 # FIXME: To remove some day.
1848 if test "x$host_alias" != x; then
1849 if test "x$build_alias" = x; then
1850 cross_compiling=maybe
1851 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1852 If a cross compiler is detected then cross compile mode will be used." >&2
1853 elif test "x$build_alias" != "x$host_alias"; then
1854 cross_compiling=yes
1855 fi
1856 fi
1857
1858 ac_tool_prefix=
1859 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1860
1861 test "$silent" = yes && exec 6>/dev/null
1862
1863
1864 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1865 ac_ls_di=`ls -di .` &&
1866 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1867 as_fn_error "working directory cannot be determined"
1868 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1869 as_fn_error "pwd does not report name of working directory"
1870
1871
1872 # Find the source files, if location was not specified.
1873 if test -z "$srcdir"; then
1874 ac_srcdir_defaulted=yes
1875 # Try the directory containing this script, then the parent directory.
1876 ac_confdir=`$as_dirname -- "$as_myself" ||
1877 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1878 X"$as_myself" : 'X\(//\)[^/]' \| \
1879 X"$as_myself" : 'X\(//\)$' \| \
1880 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1881 $as_echo X"$as_myself" |
1882 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1883 s//\1/
1884 q
1885 }
1886 /^X\(\/\/\)[^/].*/{
1887 s//\1/
1888 q
1889 }
1890 /^X\(\/\/\)$/{
1891 s//\1/
1892 q
1893 }
1894 /^X\(\/\).*/{
1895 s//\1/
1896 q
1897 }
1898 s/.*/./; q'`
1899 srcdir=$ac_confdir
1900 if test ! -r "$srcdir/$ac_unique_file"; then
1901 srcdir=..
1902 fi
1903 else
1904 ac_srcdir_defaulted=no
1905 fi
1906 if test ! -r "$srcdir/$ac_unique_file"; then
1907 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1908 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1909 fi
1910 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1911 ac_abs_confdir=`(
1912 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1913 pwd)`
1914 # When building in place, set srcdir=.
1915 if test "$ac_abs_confdir" = "$ac_pwd"; then
1916 srcdir=.
1917 fi
1918 # Remove unnecessary trailing slashes from srcdir.
1919 # Double slashes in file names in object file debugging info
1920 # mess up M-x gdb in Emacs.
1921 case $srcdir in
1922 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1923 esac
1924 for ac_var in $ac_precious_vars; do
1925 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1926 eval ac_env_${ac_var}_value=\$${ac_var}
1927 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1928 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1929 done
1930
1931 #
1932 # Report the --help message.
1933 #
1934 if test "$ac_init_help" = "long"; then
1935 # Omit some internal or obsolete options to make the list less imposing.
1936 # This message is too long to be a string in the A/UX 3.1 sh.
1937 cat <<_ACEOF
1938 \`configure' configures emacs 24.2.50 to adapt to many kinds of systems.
1939
1940 Usage: $0 [OPTION]... [VAR=VALUE]...
1941
1942 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1943 VAR=VALUE. See below for descriptions of some of the useful variables.
1944
1945 Defaults for the options are specified in brackets.
1946
1947 Configuration:
1948 -h, --help display this help and exit
1949 --help=short display options specific to this package
1950 --help=recursive display the short help of all the included packages
1951 -V, --version display version information and exit
1952 -q, --quiet, --silent do not print \`checking...' messages
1953 --cache-file=FILE cache test results in FILE [disabled]
1954 -C, --config-cache alias for \`--cache-file=config.cache'
1955 -n, --no-create do not create output files
1956 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1957
1958 Installation directories:
1959 --prefix=PREFIX install architecture-independent files in PREFIX
1960 [$ac_default_prefix]
1961 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1962 [PREFIX]
1963
1964 By default, \`make install' will install all the files in
1965 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1966 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1967 for instance \`--prefix=\$HOME'.
1968
1969 For better control, use the options below.
1970
1971 Fine tuning of the installation directories:
1972 --bindir=DIR user executables [EPREFIX/bin]
1973 --sbindir=DIR system admin executables [EPREFIX/sbin]
1974 --libexecdir=DIR program executables [EPREFIX/libexec]
1975 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1976 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1977 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1978 --libdir=DIR object code libraries [EPREFIX/lib]
1979 --includedir=DIR C header files [PREFIX/include]
1980 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1981 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1982 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1983 --infodir=DIR info documentation [DATAROOTDIR/info]
1984 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1985 --mandir=DIR man documentation [DATAROOTDIR/man]
1986 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1987 --htmldir=DIR html documentation [DOCDIR]
1988 --dvidir=DIR dvi documentation [DOCDIR]
1989 --pdfdir=DIR pdf documentation [DOCDIR]
1990 --psdir=DIR ps documentation [DOCDIR]
1991 _ACEOF
1992
1993 cat <<\_ACEOF
1994
1995 Program names:
1996 --program-prefix=PREFIX prepend PREFIX to installed program names
1997 --program-suffix=SUFFIX append SUFFIX to installed program names
1998 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1999
2000 X features:
2001 --x-includes=DIR X include files are in DIR
2002 --x-libraries=DIR X library files are in DIR
2003
2004 System types:
2005 --build=BUILD configure for building on BUILD [guessed]
2006 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2007 _ACEOF
2008 fi
2009
2010 if test -n "$ac_init_help"; then
2011 case $ac_init_help in
2012 short | recursive ) echo "Configuration of emacs 24.2.50:";;
2013 esac
2014 cat <<\_ACEOF
2015
2016 Optional Features:
2017 --disable-option-checking ignore unrecognized --enable/--with options
2018 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2019 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2020 --disable-ns-self-contained
2021 disable self contained build under NeXTstep
2022 --enable-locallisppath=PATH
2023 directories Emacs should search for lisp files
2024 specific to this site
2025 --enable-checking[=LIST]
2026 enable expensive run-time checks. With LIST, enable
2027 only specific categories of checks. Categories are:
2028 all,yes,no. Flags are: stringbytes, stringoverrun,
2029 stringfreelist, xmallocoverrun, conslist, glyphs
2030 --enable-check-lisp-object-type
2031 enable compile time checks for the Lisp_Object data
2032 type. This is useful for development for catching
2033 certain types of bugs.
2034 --enable-profiling build emacs with profiling support. This might not
2035 work on all platforms
2036 --enable-autodepend automatically generate dependencies to .h-files.
2037 Requires GNU Make and Gcc. Enabled if GNU Make and
2038 Gcc is found
2039 --disable-dependency-tracking speeds up one-time build
2040 --enable-dependency-tracking do not reject slow dependency extractors
2041 --disable-largefile omit support for large files
2042 --enable-gcc-warnings turn on lots of GCC warnings. This is intended for
2043 developers, and may generate false alarms when used
2044 with older or non-GNU development tools.
2045 --enable-link-time-optimization
2046 build emacs with link-time optimization. This is
2047 supported only for GCC since 4.5.0.
2048
2049 Optional Packages:
2050 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2051 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2052 --without-all omit almost all features and build small executable
2053 with minimal dependencies
2054 --without-pop don't support POP mail retrieval with movemail
2055 --with-kerberos support Kerberos-authenticated POP
2056 --with-kerberos5 support Kerberos version 5 authenticated POP
2057 --with-hesiod support Hesiod to get the POP server host
2058 --with-mmdf support MMDF mailboxes
2059 --with-mail-unlink unlink, rather than empty, mail spool after reading
2060 --with-mailhost=HOSTNAME
2061 string giving default POP mail host
2062 --without-sound don't compile with sound support
2063 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk2,
2064 gtk3, lucid or athena, motif, no)
2065 --with-wide-int prefer wide Emacs integers (typically 62-bit)
2066 --without-xpm don't compile with XPM image support
2067 --without-jpeg don't compile with JPEG image support
2068 --without-tiff don't compile with TIFF image support
2069 --without-gif don't compile with GIF image support
2070 --without-png don't compile with PNG image support
2071 --without-rsvg don't compile with SVG image support
2072 --without-xml2 don't compile with XML parsing support
2073 --without-imagemagick don't compile with ImageMagick image support
2074 --without-xft don't use XFT for anti aliased fonts
2075 --without-libotf don't use libotf for OpenType font support
2076 --without-m17n-flt don't use m17n-flt for text shaping
2077 --without-toolkit-scroll-bars
2078 don't use Motif or Xaw3d scroll bars
2079 --without-xaw3d don't use Xaw3d
2080 --without-xim don't use X11 XIM
2081 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
2082 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
2083 console
2084 --without-dbus don't compile with D-Bus support
2085 --without-gconf don't compile with GConf support
2086 --without-gsettings don't compile with GSettings support
2087 --without-selinux don't compile with SELinux support
2088 --without-gnutls don't use -lgnutls for SSL/TLS support
2089 --without-makeinfo don't require makeinfo for building manuals
2090 --without-compress-info don't compress the installed Info pages
2091 --with-pkg-config-prog=PATH
2092 path to pkg-config for finding GTK and librsvg
2093 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2094 /usr/lib, or /usr/lib64 on some platforms.
2095 --with-gameuser=USER user for shared game score files
2096 --with-gnustep-conf=PATH
2097 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
2098 or /etc/GNUstep/GNUstep.conf
2099 --with-x use the X Window System
2100
2101 Some influential environment variables:
2102 CC C compiler command
2103 CFLAGS C compiler flags
2104 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2105 nonstandard directory <lib dir>
2106 LIBS libraries to pass to the linker, e.g. -l<library>
2107 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2108 you have headers in a nonstandard directory <include dir>
2109 CPP C preprocessor
2110 XMKMF Path to xmkmf, Makefile generator for X Window System
2111
2112 Use these variables to override the choices made by `configure' or to help
2113 it to find libraries and programs with nonstandard names/locations.
2114
2115 Report bugs to the package provider.
2116 _ACEOF
2117 ac_status=$?
2118 fi
2119
2120 if test "$ac_init_help" = "recursive"; then
2121 # If there are subdirs, report their specific --help.
2122 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2123 test -d "$ac_dir" ||
2124 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2125 continue
2126 ac_builddir=.
2127
2128 case "$ac_dir" in
2129 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2130 *)
2131 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2132 # A ".." for each directory in $ac_dir_suffix.
2133 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2134 case $ac_top_builddir_sub in
2135 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2136 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2137 esac ;;
2138 esac
2139 ac_abs_top_builddir=$ac_pwd
2140 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2141 # for backward compatibility:
2142 ac_top_builddir=$ac_top_build_prefix
2143
2144 case $srcdir in
2145 .) # We are building in place.
2146 ac_srcdir=.
2147 ac_top_srcdir=$ac_top_builddir_sub
2148 ac_abs_top_srcdir=$ac_pwd ;;
2149 [\\/]* | ?:[\\/]* ) # Absolute name.
2150 ac_srcdir=$srcdir$ac_dir_suffix;
2151 ac_top_srcdir=$srcdir
2152 ac_abs_top_srcdir=$srcdir ;;
2153 *) # Relative name.
2154 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2155 ac_top_srcdir=$ac_top_build_prefix$srcdir
2156 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2157 esac
2158 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2159
2160 cd "$ac_dir" || { ac_status=$?; continue; }
2161 # Check for guested configure.
2162 if test -f "$ac_srcdir/configure.gnu"; then
2163 echo &&
2164 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2165 elif test -f "$ac_srcdir/configure"; then
2166 echo &&
2167 $SHELL "$ac_srcdir/configure" --help=recursive
2168 else
2169 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2170 fi || ac_status=$?
2171 cd "$ac_pwd" || { ac_status=$?; break; }
2172 done
2173 fi
2174
2175 test -n "$ac_init_help" && exit $ac_status
2176 if $ac_init_version; then
2177 cat <<\_ACEOF
2178 emacs configure 24.2.50
2179 generated by GNU Autoconf 2.65
2180
2181 Copyright (C) 2009 Free Software Foundation, Inc.
2182 This configure script is free software; the Free Software Foundation
2183 gives unlimited permission to copy, distribute and modify it.
2184 _ACEOF
2185 exit
2186 fi
2187
2188 ## ------------------------ ##
2189 ## Autoconf initialization. ##
2190 ## ------------------------ ##
2191
2192 # ac_fn_c_try_compile LINENO
2193 # --------------------------
2194 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2195 ac_fn_c_try_compile ()
2196 {
2197 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2198 rm -f conftest.$ac_objext
2199 if { { ac_try="$ac_compile"
2200 case "(($ac_try" in
2201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2202 *) ac_try_echo=$ac_try;;
2203 esac
2204 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2205 $as_echo "$ac_try_echo"; } >&5
2206 (eval "$ac_compile") 2>conftest.err
2207 ac_status=$?
2208 if test -s conftest.err; then
2209 grep -v '^ *+' conftest.err >conftest.er1
2210 cat conftest.er1 >&5
2211 mv -f conftest.er1 conftest.err
2212 fi
2213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2214 test $ac_status = 0; } && {
2215 test -z "$ac_c_werror_flag" ||
2216 test ! -s conftest.err
2217 } && test -s conftest.$ac_objext; then :
2218 ac_retval=0
2219 else
2220 $as_echo "$as_me: failed program was:" >&5
2221 sed 's/^/| /' conftest.$ac_ext >&5
2222
2223 ac_retval=1
2224 fi
2225 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2226 as_fn_set_status $ac_retval
2227
2228 } # ac_fn_c_try_compile
2229
2230 # ac_fn_c_try_cpp LINENO
2231 # ----------------------
2232 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2233 ac_fn_c_try_cpp ()
2234 {
2235 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2236 if { { ac_try="$ac_cpp conftest.$ac_ext"
2237 case "(($ac_try" in
2238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2239 *) ac_try_echo=$ac_try;;
2240 esac
2241 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2242 $as_echo "$ac_try_echo"; } >&5
2243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2244 ac_status=$?
2245 if test -s conftest.err; then
2246 grep -v '^ *+' conftest.err >conftest.er1
2247 cat conftest.er1 >&5
2248 mv -f conftest.er1 conftest.err
2249 fi
2250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2251 test $ac_status = 0; } >/dev/null && {
2252 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2253 test ! -s conftest.err
2254 }; then :
2255 ac_retval=0
2256 else
2257 $as_echo "$as_me: failed program was:" >&5
2258 sed 's/^/| /' conftest.$ac_ext >&5
2259
2260 ac_retval=1
2261 fi
2262 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2263 as_fn_set_status $ac_retval
2264
2265 } # ac_fn_c_try_cpp
2266
2267 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2268 # -------------------------------------------------------
2269 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2270 # the include files in INCLUDES and setting the cache variable VAR
2271 # accordingly.
2272 ac_fn_c_check_header_mongrel ()
2273 {
2274 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2275 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2277 $as_echo_n "checking for $2... " >&6; }
2278 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2279 $as_echo_n "(cached) " >&6
2280 fi
2281 eval ac_res=\$$3
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2283 $as_echo "$ac_res" >&6; }
2284 else
2285 # Is the header compilable?
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2287 $as_echo_n "checking $2 usability... " >&6; }
2288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2289 /* end confdefs.h. */
2290 $4
2291 #include <$2>
2292 _ACEOF
2293 if ac_fn_c_try_compile "$LINENO"; then :
2294 ac_header_compiler=yes
2295 else
2296 ac_header_compiler=no
2297 fi
2298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2300 $as_echo "$ac_header_compiler" >&6; }
2301
2302 # Is the header present?
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2304 $as_echo_n "checking $2 presence... " >&6; }
2305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2306 /* end confdefs.h. */
2307 #include <$2>
2308 _ACEOF
2309 if ac_fn_c_try_cpp "$LINENO"; then :
2310 ac_header_preproc=yes
2311 else
2312 ac_header_preproc=no
2313 fi
2314 rm -f conftest.err conftest.$ac_ext
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2316 $as_echo "$ac_header_preproc" >&6; }
2317
2318 # So? What about this header?
2319 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2320 yes:no: )
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2322 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2324 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2325 ;;
2326 no:yes:* )
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2328 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2330 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2332 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2334 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2336 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2337 ;;
2338 esac
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2340 $as_echo_n "checking for $2... " >&6; }
2341 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2342 $as_echo_n "(cached) " >&6
2343 else
2344 eval "$3=\$ac_header_compiler"
2345 fi
2346 eval ac_res=\$$3
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2348 $as_echo "$ac_res" >&6; }
2349 fi
2350 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2351
2352 } # ac_fn_c_check_header_mongrel
2353
2354 # ac_fn_c_try_run LINENO
2355 # ----------------------
2356 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2357 # that executables *can* be run.
2358 ac_fn_c_try_run ()
2359 {
2360 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2361 if { { ac_try="$ac_link"
2362 case "(($ac_try" in
2363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2364 *) ac_try_echo=$ac_try;;
2365 esac
2366 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2367 $as_echo "$ac_try_echo"; } >&5
2368 (eval "$ac_link") 2>&5
2369 ac_status=$?
2370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2371 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2372 { { case "(($ac_try" in
2373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2374 *) ac_try_echo=$ac_try;;
2375 esac
2376 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2377 $as_echo "$ac_try_echo"; } >&5
2378 (eval "$ac_try") 2>&5
2379 ac_status=$?
2380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2381 test $ac_status = 0; }; }; then :
2382 ac_retval=0
2383 else
2384 $as_echo "$as_me: program exited with status $ac_status" >&5
2385 $as_echo "$as_me: failed program was:" >&5
2386 sed 's/^/| /' conftest.$ac_ext >&5
2387
2388 ac_retval=$ac_status
2389 fi
2390 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2391 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2392 as_fn_set_status $ac_retval
2393
2394 } # ac_fn_c_try_run
2395
2396 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2397 # -------------------------------------------------------
2398 # Tests whether HEADER exists and can be compiled using the include files in
2399 # INCLUDES, setting the cache variable VAR accordingly.
2400 ac_fn_c_check_header_compile ()
2401 {
2402 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2404 $as_echo_n "checking for $2... " >&6; }
2405 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2406 $as_echo_n "(cached) " >&6
2407 else
2408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2409 /* end confdefs.h. */
2410 $4
2411 #include <$2>
2412 _ACEOF
2413 if ac_fn_c_try_compile "$LINENO"; then :
2414 eval "$3=yes"
2415 else
2416 eval "$3=no"
2417 fi
2418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2419 fi
2420 eval ac_res=\$$3
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2422 $as_echo "$ac_res" >&6; }
2423 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2424
2425 } # ac_fn_c_check_header_compile
2426
2427 # ac_fn_c_try_link LINENO
2428 # -----------------------
2429 # Try to link conftest.$ac_ext, and return whether this succeeded.
2430 ac_fn_c_try_link ()
2431 {
2432 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2433 rm -f conftest.$ac_objext conftest$ac_exeext
2434 if { { ac_try="$ac_link"
2435 case "(($ac_try" in
2436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2437 *) ac_try_echo=$ac_try;;
2438 esac
2439 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2440 $as_echo "$ac_try_echo"; } >&5
2441 (eval "$ac_link") 2>conftest.err
2442 ac_status=$?
2443 if test -s conftest.err; then
2444 grep -v '^ *+' conftest.err >conftest.er1
2445 cat conftest.er1 >&5
2446 mv -f conftest.er1 conftest.err
2447 fi
2448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2449 test $ac_status = 0; } && {
2450 test -z "$ac_c_werror_flag" ||
2451 test ! -s conftest.err
2452 } && test -s conftest$ac_exeext && {
2453 test "$cross_compiling" = yes ||
2454 $as_test_x conftest$ac_exeext
2455 }; then :
2456 ac_retval=0
2457 else
2458 $as_echo "$as_me: failed program was:" >&5
2459 sed 's/^/| /' conftest.$ac_ext >&5
2460
2461 ac_retval=1
2462 fi
2463 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2464 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2465 # interfere with the next link command; also delete a directory that is
2466 # left behind by Apple's compiler. We do this before executing the actions.
2467 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2468 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2469 as_fn_set_status $ac_retval
2470
2471 } # ac_fn_c_try_link
2472
2473 # ac_fn_c_check_decl LINENO SYMBOL VAR
2474 # ------------------------------------
2475 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2476 ac_fn_c_check_decl ()
2477 {
2478 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2480 $as_echo_n "checking whether $2 is declared... " >&6; }
2481 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2482 $as_echo_n "(cached) " >&6
2483 else
2484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2485 /* end confdefs.h. */
2486 $4
2487 int
2488 main ()
2489 {
2490 #ifndef $2
2491 (void) $2;
2492 #endif
2493
2494 ;
2495 return 0;
2496 }
2497 _ACEOF
2498 if ac_fn_c_try_compile "$LINENO"; then :
2499 eval "$3=yes"
2500 else
2501 eval "$3=no"
2502 fi
2503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2504 fi
2505 eval ac_res=\$$3
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2507 $as_echo "$ac_res" >&6; }
2508 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2509
2510 } # ac_fn_c_check_decl
2511
2512 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2513 # ----------------------------------------------
2514 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2515 ac_fn_c_check_header_preproc ()
2516 {
2517 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2519 $as_echo_n "checking for $2... " >&6; }
2520 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2521 $as_echo_n "(cached) " >&6
2522 else
2523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2524 /* end confdefs.h. */
2525 #include <$2>
2526 _ACEOF
2527 if ac_fn_c_try_cpp "$LINENO"; then :
2528 eval "$3=yes"
2529 else
2530 eval "$3=no"
2531 fi
2532 rm -f conftest.err conftest.$ac_ext
2533 fi
2534 eval ac_res=\$$3
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2536 $as_echo "$ac_res" >&6; }
2537 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2538
2539 } # ac_fn_c_check_header_preproc
2540
2541 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2542 # ----------------------------------------------------
2543 # Tries to find if the field MEMBER exists in type AGGR, after including
2544 # INCLUDES, setting cache variable VAR accordingly.
2545 ac_fn_c_check_member ()
2546 {
2547 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2549 $as_echo_n "checking for $2.$3... " >&6; }
2550 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2551 $as_echo_n "(cached) " >&6
2552 else
2553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2554 /* end confdefs.h. */
2555 $5
2556 int
2557 main ()
2558 {
2559 static $2 ac_aggr;
2560 if (ac_aggr.$3)
2561 return 0;
2562 ;
2563 return 0;
2564 }
2565 _ACEOF
2566 if ac_fn_c_try_compile "$LINENO"; then :
2567 eval "$4=yes"
2568 else
2569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2570 /* end confdefs.h. */
2571 $5
2572 int
2573 main ()
2574 {
2575 static $2 ac_aggr;
2576 if (sizeof ac_aggr.$3)
2577 return 0;
2578 ;
2579 return 0;
2580 }
2581 _ACEOF
2582 if ac_fn_c_try_compile "$LINENO"; then :
2583 eval "$4=yes"
2584 else
2585 eval "$4=no"
2586 fi
2587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2588 fi
2589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2590 fi
2591 eval ac_res=\$$4
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2593 $as_echo "$ac_res" >&6; }
2594 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2595
2596 } # ac_fn_c_check_member
2597
2598 # ac_fn_c_check_func LINENO FUNC VAR
2599 # ----------------------------------
2600 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2601 ac_fn_c_check_func ()
2602 {
2603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2605 $as_echo_n "checking for $2... " >&6; }
2606 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2607 $as_echo_n "(cached) " >&6
2608 else
2609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2610 /* end confdefs.h. */
2611 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2612 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2613 #define $2 innocuous_$2
2614
2615 /* System header to define __stub macros and hopefully few prototypes,
2616 which can conflict with char $2 (); below.
2617 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2618 <limits.h> exists even on freestanding compilers. */
2619
2620 #ifdef __STDC__
2621 # include <limits.h>
2622 #else
2623 # include <assert.h>
2624 #endif
2625
2626 #undef $2
2627
2628 /* Override any GCC internal prototype to avoid an error.
2629 Use char because int might match the return type of a GCC
2630 builtin and then its argument prototype would still apply. */
2631 #ifdef __cplusplus
2632 extern "C"
2633 #endif
2634 char $2 ();
2635 /* The GNU C library defines this for functions which it implements
2636 to always fail with ENOSYS. Some functions are actually named
2637 something starting with __ and the normal name is an alias. */
2638 #if defined __stub_$2 || defined __stub___$2
2639 choke me
2640 #endif
2641
2642 int
2643 main ()
2644 {
2645 return $2 ();
2646 ;
2647 return 0;
2648 }
2649 _ACEOF
2650 if ac_fn_c_try_link "$LINENO"; then :
2651 eval "$3=yes"
2652 else
2653 eval "$3=no"
2654 fi
2655 rm -f core conftest.err conftest.$ac_objext \
2656 conftest$ac_exeext conftest.$ac_ext
2657 fi
2658 eval ac_res=\$$3
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2660 $as_echo "$ac_res" >&6; }
2661 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2662
2663 } # ac_fn_c_check_func
2664
2665 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2666 # -------------------------------------------
2667 # Tests whether TYPE exists after having included INCLUDES, setting cache
2668 # variable VAR accordingly.
2669 ac_fn_c_check_type ()
2670 {
2671 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2673 $as_echo_n "checking for $2... " >&6; }
2674 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2675 $as_echo_n "(cached) " >&6
2676 else
2677 eval "$3=no"
2678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2679 /* end confdefs.h. */
2680 $4
2681 int
2682 main ()
2683 {
2684 if (sizeof ($2))
2685 return 0;
2686 ;
2687 return 0;
2688 }
2689 _ACEOF
2690 if ac_fn_c_try_compile "$LINENO"; then :
2691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2692 /* end confdefs.h. */
2693 $4
2694 int
2695 main ()
2696 {
2697 if (sizeof (($2)))
2698 return 0;
2699 ;
2700 return 0;
2701 }
2702 _ACEOF
2703 if ac_fn_c_try_compile "$LINENO"; then :
2704
2705 else
2706 eval "$3=yes"
2707 fi
2708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2709 fi
2710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2711 fi
2712 eval ac_res=\$$3
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2714 $as_echo "$ac_res" >&6; }
2715 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2716
2717 } # ac_fn_c_check_type
2718
2719 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2720 # --------------------------------------------
2721 # Tries to find the compile-time value of EXPR in a program that includes
2722 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2723 # computed
2724 ac_fn_c_compute_int ()
2725 {
2726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2727 if test "$cross_compiling" = yes; then
2728 # Depending upon the size, compute the lo and hi bounds.
2729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2730 /* end confdefs.h. */
2731 $4
2732 int
2733 main ()
2734 {
2735 static int test_array [1 - 2 * !(($2) >= 0)];
2736 test_array [0] = 0
2737
2738 ;
2739 return 0;
2740 }
2741 _ACEOF
2742 if ac_fn_c_try_compile "$LINENO"; then :
2743 ac_lo=0 ac_mid=0
2744 while :; do
2745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2746 /* end confdefs.h. */
2747 $4
2748 int
2749 main ()
2750 {
2751 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2752 test_array [0] = 0
2753
2754 ;
2755 return 0;
2756 }
2757 _ACEOF
2758 if ac_fn_c_try_compile "$LINENO"; then :
2759 ac_hi=$ac_mid; break
2760 else
2761 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2762 if test $ac_lo -le $ac_mid; then
2763 ac_lo= ac_hi=
2764 break
2765 fi
2766 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2767 fi
2768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2769 done
2770 else
2771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2772 /* end confdefs.h. */
2773 $4
2774 int
2775 main ()
2776 {
2777 static int test_array [1 - 2 * !(($2) < 0)];
2778 test_array [0] = 0
2779
2780 ;
2781 return 0;
2782 }
2783 _ACEOF
2784 if ac_fn_c_try_compile "$LINENO"; then :
2785 ac_hi=-1 ac_mid=-1
2786 while :; do
2787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2788 /* end confdefs.h. */
2789 $4
2790 int
2791 main ()
2792 {
2793 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2794 test_array [0] = 0
2795
2796 ;
2797 return 0;
2798 }
2799 _ACEOF
2800 if ac_fn_c_try_compile "$LINENO"; then :
2801 ac_lo=$ac_mid; break
2802 else
2803 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2804 if test $ac_mid -le $ac_hi; then
2805 ac_lo= ac_hi=
2806 break
2807 fi
2808 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2809 fi
2810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2811 done
2812 else
2813 ac_lo= ac_hi=
2814 fi
2815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2816 fi
2817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2818 # Binary search between lo and hi bounds.
2819 while test "x$ac_lo" != "x$ac_hi"; do
2820 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2822 /* end confdefs.h. */
2823 $4
2824 int
2825 main ()
2826 {
2827 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2828 test_array [0] = 0
2829
2830 ;
2831 return 0;
2832 }
2833 _ACEOF
2834 if ac_fn_c_try_compile "$LINENO"; then :
2835 ac_hi=$ac_mid
2836 else
2837 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2838 fi
2839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2840 done
2841 case $ac_lo in #((
2842 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2843 '') ac_retval=1 ;;
2844 esac
2845 else
2846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2847 /* end confdefs.h. */
2848 $4
2849 static long int longval () { return $2; }
2850 static unsigned long int ulongval () { return $2; }
2851 #include <stdio.h>
2852 #include <stdlib.h>
2853 int
2854 main ()
2855 {
2856
2857 FILE *f = fopen ("conftest.val", "w");
2858 if (! f)
2859 return 1;
2860 if (($2) < 0)
2861 {
2862 long int i = longval ();
2863 if (i != ($2))
2864 return 1;
2865 fprintf (f, "%ld", i);
2866 }
2867 else
2868 {
2869 unsigned long int i = ulongval ();
2870 if (i != ($2))
2871 return 1;
2872 fprintf (f, "%lu", i);
2873 }
2874 /* Do not output a trailing newline, as this causes \r\n confusion
2875 on some platforms. */
2876 return ferror (f) || fclose (f) != 0;
2877
2878 ;
2879 return 0;
2880 }
2881 _ACEOF
2882 if ac_fn_c_try_run "$LINENO"; then :
2883 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2884 else
2885 ac_retval=1
2886 fi
2887 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2888 conftest.$ac_objext conftest.beam conftest.$ac_ext
2889 rm -f conftest.val
2890
2891 fi
2892 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2893 as_fn_set_status $ac_retval
2894
2895 } # ac_fn_c_compute_int
2896 cat >config.log <<_ACEOF
2897 This file contains any messages produced by compilers while
2898 running configure, to aid debugging if configure makes a mistake.
2899
2900 It was created by emacs $as_me 24.2.50, which was
2901 generated by GNU Autoconf 2.65. Invocation command line was
2902
2903 $ $0 $@
2904
2905 _ACEOF
2906 exec 5>>config.log
2907 {
2908 cat <<_ASUNAME
2909 ## --------- ##
2910 ## Platform. ##
2911 ## --------- ##
2912
2913 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2914 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2915 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2916 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2917 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2918
2919 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2920 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2921
2922 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2923 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2924 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2925 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2926 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2927 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2928 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2929
2930 _ASUNAME
2931
2932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933 for as_dir in $PATH
2934 do
2935 IFS=$as_save_IFS
2936 test -z "$as_dir" && as_dir=.
2937 $as_echo "PATH: $as_dir"
2938 done
2939 IFS=$as_save_IFS
2940
2941 } >&5
2942
2943 cat >&5 <<_ACEOF
2944
2945
2946 ## ----------- ##
2947 ## Core tests. ##
2948 ## ----------- ##
2949
2950 _ACEOF
2951
2952
2953 # Keep a trace of the command line.
2954 # Strip out --no-create and --no-recursion so they do not pile up.
2955 # Strip out --silent because we don't want to record it for future runs.
2956 # Also quote any args containing shell meta-characters.
2957 # Make two passes to allow for proper duplicate-argument suppression.
2958 ac_configure_args=
2959 ac_configure_args0=
2960 ac_configure_args1=
2961 ac_must_keep_next=false
2962 for ac_pass in 1 2
2963 do
2964 for ac_arg
2965 do
2966 case $ac_arg in
2967 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2968 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2969 | -silent | --silent | --silen | --sile | --sil)
2970 continue ;;
2971 *\'*)
2972 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2973 esac
2974 case $ac_pass in
2975 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2976 2)
2977 as_fn_append ac_configure_args1 " '$ac_arg'"
2978 if test $ac_must_keep_next = true; then
2979 ac_must_keep_next=false # Got value, back to normal.
2980 else
2981 case $ac_arg in
2982 *=* | --config-cache | -C | -disable-* | --disable-* \
2983 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2984 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2985 | -with-* | --with-* | -without-* | --without-* | --x)
2986 case "$ac_configure_args0 " in
2987 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2988 esac
2989 ;;
2990 -* ) ac_must_keep_next=true ;;
2991 esac
2992 fi
2993 as_fn_append ac_configure_args " '$ac_arg'"
2994 ;;
2995 esac
2996 done
2997 done
2998 { ac_configure_args0=; unset ac_configure_args0;}
2999 { ac_configure_args1=; unset ac_configure_args1;}
3000
3001 # When interrupted or exit'd, cleanup temporary files, and complete
3002 # config.log. We remove comments because anyway the quotes in there
3003 # would cause problems or look ugly.
3004 # WARNING: Use '\'' to represent an apostrophe within the trap.
3005 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3006 trap 'exit_status=$?
3007 # Save into config.log some information that might help in debugging.
3008 {
3009 echo
3010
3011 cat <<\_ASBOX
3012 ## ---------------- ##
3013 ## Cache variables. ##
3014 ## ---------------- ##
3015 _ASBOX
3016 echo
3017 # The following way of writing the cache mishandles newlines in values,
3018 (
3019 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3020 eval ac_val=\$$ac_var
3021 case $ac_val in #(
3022 *${as_nl}*)
3023 case $ac_var in #(
3024 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3025 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3026 esac
3027 case $ac_var in #(
3028 _ | IFS | as_nl) ;; #(
3029 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3030 *) { eval $ac_var=; unset $ac_var;} ;;
3031 esac ;;
3032 esac
3033 done
3034 (set) 2>&1 |
3035 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3036 *${as_nl}ac_space=\ *)
3037 sed -n \
3038 "s/'\''/'\''\\\\'\'''\''/g;
3039 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3040 ;; #(
3041 *)
3042 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3043 ;;
3044 esac |
3045 sort
3046 )
3047 echo
3048
3049 cat <<\_ASBOX
3050 ## ----------------- ##
3051 ## Output variables. ##
3052 ## ----------------- ##
3053 _ASBOX
3054 echo
3055 for ac_var in $ac_subst_vars
3056 do
3057 eval ac_val=\$$ac_var
3058 case $ac_val in
3059 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3060 esac
3061 $as_echo "$ac_var='\''$ac_val'\''"
3062 done | sort
3063 echo
3064
3065 if test -n "$ac_subst_files"; then
3066 cat <<\_ASBOX
3067 ## ------------------- ##
3068 ## File substitutions. ##
3069 ## ------------------- ##
3070 _ASBOX
3071 echo
3072 for ac_var in $ac_subst_files
3073 do
3074 eval ac_val=\$$ac_var
3075 case $ac_val in
3076 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3077 esac
3078 $as_echo "$ac_var='\''$ac_val'\''"
3079 done | sort
3080 echo
3081 fi
3082
3083 if test -s confdefs.h; then
3084 cat <<\_ASBOX
3085 ## ----------- ##
3086 ## confdefs.h. ##
3087 ## ----------- ##
3088 _ASBOX
3089 echo
3090 cat confdefs.h
3091 echo
3092 fi
3093 test "$ac_signal" != 0 &&
3094 $as_echo "$as_me: caught signal $ac_signal"
3095 $as_echo "$as_me: exit $exit_status"
3096 } >&5
3097 rm -f core *.core core.conftest.* &&
3098 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3099 exit $exit_status
3100 ' 0
3101 for ac_signal in 1 2 13 15; do
3102 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3103 done
3104 ac_signal=0
3105
3106 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3107 rm -f -r conftest* confdefs.h
3108
3109 $as_echo "/* confdefs.h */" > confdefs.h
3110
3111 # Predefined preprocessor variables.
3112
3113 cat >>confdefs.h <<_ACEOF
3114 #define PACKAGE_NAME "$PACKAGE_NAME"
3115 _ACEOF
3116
3117 cat >>confdefs.h <<_ACEOF
3118 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3119 _ACEOF
3120
3121 cat >>confdefs.h <<_ACEOF
3122 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3123 _ACEOF
3124
3125 cat >>confdefs.h <<_ACEOF
3126 #define PACKAGE_STRING "$PACKAGE_STRING"
3127 _ACEOF
3128
3129 cat >>confdefs.h <<_ACEOF
3130 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3131 _ACEOF
3132
3133 cat >>confdefs.h <<_ACEOF
3134 #define PACKAGE_URL "$PACKAGE_URL"
3135 _ACEOF
3136
3137
3138 # Let the site file select an alternate cache file if it wants to.
3139 # Prefer an explicitly selected file to automatically selected ones.
3140 ac_site_file1=NONE
3141 ac_site_file2=NONE
3142 if test -n "$CONFIG_SITE"; then
3143 ac_site_file1=$CONFIG_SITE
3144 elif test "x$prefix" != xNONE; then
3145 ac_site_file1=$prefix/share/config.site
3146 ac_site_file2=$prefix/etc/config.site
3147 else
3148 ac_site_file1=$ac_default_prefix/share/config.site
3149 ac_site_file2=$ac_default_prefix/etc/config.site
3150 fi
3151 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3152 do
3153 test "x$ac_site_file" = xNONE && continue
3154 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3156 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3157 sed 's/^/| /' "$ac_site_file" >&5
3158 . "$ac_site_file"
3159 fi
3160 done
3161
3162 if test -r "$cache_file"; then
3163 # Some versions of bash will fail to source /dev/null (special files
3164 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3165 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3167 $as_echo "$as_me: loading cache $cache_file" >&6;}
3168 case $cache_file in
3169 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3170 *) . "./$cache_file";;
3171 esac
3172 fi
3173 else
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3175 $as_echo "$as_me: creating cache $cache_file" >&6;}
3176 >$cache_file
3177 fi
3178
3179 as_fn_append ac_header_list " linux/version.h"
3180 as_fn_append ac_header_list " sys/systeminfo.h"
3181 as_fn_append ac_header_list " stdio_ext.h"
3182 as_fn_append ac_header_list " fcntl.h"
3183 as_fn_append ac_header_list " coff.h"
3184 as_fn_append ac_header_list " pty.h"
3185 as_fn_append ac_header_list " sys/vlimit.h"
3186 as_fn_append ac_header_list " sys/resource.h"
3187 as_fn_append ac_header_list " sys/utsname.h"
3188 as_fn_append ac_header_list " pwd.h"
3189 as_fn_append ac_header_list " utmp.h"
3190 as_fn_append ac_header_list " dirent.h"
3191 as_fn_append ac_header_list " util.h"
3192 as_fn_append ac_header_list " sys/socket.h"
3193 as_fn_append ac_header_list " stdlib.h"
3194 as_fn_append ac_header_list " unistd.h"
3195 as_fn_append ac_header_list " sys/param.h"
3196 as_fn_append ac_header_list " pthread.h"
3197 as_fn_append ac_header_list " malloc/malloc.h"
3198 as_fn_append ac_header_list " maillock.h"
3199 as_fn_append ac_header_list " sys/un.h"
3200 as_fn_append ac_func_list " tzset"
3201 as_fn_append ac_func_list " readlinkat"
3202 as_fn_append ac_header_list " execinfo.h"
3203 gl_getopt_required=GNU
3204 as_fn_append ac_header_list " getopt.h"
3205 as_fn_append ac_func_list " gettimeofday"
3206 as_fn_append ac_func_list " nanotime"
3207 as_fn_append ac_header_list " sys/time.h"
3208 as_fn_append ac_header_list " wchar.h"
3209 as_fn_append ac_header_list " stdint.h"
3210 as_fn_append ac_header_list " inttypes.h"
3211 as_fn_append ac_func_list " lstat"
3212 as_fn_append ac_func_list " alarm"
3213 as_fn_append ac_header_list " sys/select.h"
3214 as_fn_append ac_func_list " pselect"
3215 as_fn_append ac_func_list " pthread_sigmask"
3216 as_fn_append ac_func_list " readlink"
3217 as_fn_append ac_func_list " strtoimax"
3218 as_fn_append ac_func_list " strtoumax"
3219 as_fn_append ac_func_list " symlink"
3220 as_fn_append ac_header_list " sys/stat.h"
3221 as_fn_append ac_func_list " localtime_r"
3222 as_fn_append ac_header_list " utime.h"
3223 as_fn_append ac_func_list " futimes"
3224 as_fn_append ac_func_list " futimesat"
3225 as_fn_append ac_func_list " futimens"
3226 as_fn_append ac_func_list " utimensat"
3227 as_fn_append ac_func_list " lutimes"
3228 # Check that the precious variables saved in the cache have kept the same
3229 # value.
3230 ac_cache_corrupted=false
3231 for ac_var in $ac_precious_vars; do
3232 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3233 eval ac_new_set=\$ac_env_${ac_var}_set
3234 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3235 eval ac_new_val=\$ac_env_${ac_var}_value
3236 case $ac_old_set,$ac_new_set in
3237 set,)
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3239 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3240 ac_cache_corrupted=: ;;
3241 ,set)
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3243 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3244 ac_cache_corrupted=: ;;
3245 ,);;
3246 *)
3247 if test "x$ac_old_val" != "x$ac_new_val"; then
3248 # differences in whitespace do not lead to failure.
3249 ac_old_val_w=`echo x $ac_old_val`
3250 ac_new_val_w=`echo x $ac_new_val`
3251 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3253 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3254 ac_cache_corrupted=:
3255 else
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3257 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3258 eval $ac_var=\$ac_old_val
3259 fi
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3261 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3263 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3264 fi;;
3265 esac
3266 # Pass precious variables to config.status.
3267 if test "$ac_new_set" = set; then
3268 case $ac_new_val in
3269 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3270 *) ac_arg=$ac_var=$ac_new_val ;;
3271 esac
3272 case " $ac_configure_args " in
3273 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3274 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3275 esac
3276 fi
3277 done
3278 if $ac_cache_corrupted; then
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3280 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3282 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3283 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3284 fi
3285 ## -------------------- ##
3286 ## Main body of script. ##
3287 ## -------------------- ##
3288
3289 ac_ext=c
3290 ac_cpp='$CPP $CPPFLAGS'
3291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3294
3295
3296 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3297
3298
3299 ac_aux_dir=
3300 for ac_dir in build-aux "$srcdir"/build-aux; do
3301 for ac_t in install-sh install.sh shtool; do
3302 if test -f "$ac_dir/$ac_t"; then
3303 ac_aux_dir=$ac_dir
3304 ac_install_sh="$ac_aux_dir/$ac_t -c"
3305 break 2
3306 fi
3307 done
3308 done
3309 if test -z "$ac_aux_dir"; then
3310 as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3311 fi
3312
3313 # These three variables are undocumented and unsupported,
3314 # and are intended to be withdrawn in a future Autoconf release.
3315 # They can cause serious problems if a builder's source tree is in a directory
3316 # whose full name contains unusual characters.
3317 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3318 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3319 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3320
3321
3322 am__api_version='1.11'
3323
3324 # Find a good install program. We prefer a C program (faster),
3325 # so one script is as good as another. But avoid the broken or
3326 # incompatible versions:
3327 # SysV /etc/install, /usr/sbin/install
3328 # SunOS /usr/etc/install
3329 # IRIX /sbin/install
3330 # AIX /bin/install
3331 # AmigaOS /C/install, which installs bootblocks on floppy discs
3332 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3333 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3334 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3335 # OS/2's system install, which has a completely different semantic
3336 # ./install, which can be erroneously created by make from ./install.sh.
3337 # Reject install programs that cannot install multiple files.
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3339 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3340 if test -z "$INSTALL"; then
3341 if test "${ac_cv_path_install+set}" = set; then :
3342 $as_echo_n "(cached) " >&6
3343 else
3344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3345 for as_dir in $PATH
3346 do
3347 IFS=$as_save_IFS
3348 test -z "$as_dir" && as_dir=.
3349 # Account for people who put trailing slashes in PATH elements.
3350 case $as_dir/ in #((
3351 ./ | .// | /[cC]/* | \
3352 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3353 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3354 /usr/ucb/* ) ;;
3355 *)
3356 # OSF1 and SCO ODT 3.0 have their own names for install.
3357 # Don't use installbsd from OSF since it installs stuff as root
3358 # by default.
3359 for ac_prog in ginstall scoinst install; do
3360 for ac_exec_ext in '' $ac_executable_extensions; do
3361 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3362 if test $ac_prog = install &&
3363 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3364 # AIX install. It has an incompatible calling convention.
3365 :
3366 elif test $ac_prog = install &&
3367 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3368 # program-specific install script used by HP pwplus--don't use.
3369 :
3370 else
3371 rm -rf conftest.one conftest.two conftest.dir
3372 echo one > conftest.one
3373 echo two > conftest.two
3374 mkdir conftest.dir
3375 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3376 test -s conftest.one && test -s conftest.two &&
3377 test -s conftest.dir/conftest.one &&
3378 test -s conftest.dir/conftest.two
3379 then
3380 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3381 break 3
3382 fi
3383 fi
3384 fi
3385 done
3386 done
3387 ;;
3388 esac
3389
3390 done
3391 IFS=$as_save_IFS
3392
3393 rm -rf conftest.one conftest.two conftest.dir
3394
3395 fi
3396 if test "${ac_cv_path_install+set}" = set; then
3397 INSTALL=$ac_cv_path_install
3398 else
3399 # As a last resort, use the slow shell script. Don't cache a
3400 # value for INSTALL within a source directory, because that will
3401 # break other packages using the cache if that directory is
3402 # removed, or if the value is a relative name.
3403 INSTALL=$ac_install_sh
3404 fi
3405 fi
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3407 $as_echo "$INSTALL" >&6; }
3408
3409 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3410 # It thinks the first close brace ends the variable substitution.
3411 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3412
3413 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3414
3415 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3416
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3418 $as_echo_n "checking whether build environment is sane... " >&6; }
3419 # Just in case
3420 sleep 1
3421 echo timestamp > conftest.file
3422 # Reject unsafe characters in $srcdir or the absolute working directory
3423 # name. Accept space and tab only in the latter.
3424 am_lf='
3425 '
3426 case `pwd` in
3427 *[\\\"\#\$\&\'\`$am_lf]*)
3428 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3429 esac
3430 case $srcdir in
3431 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3432 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3433 esac
3434
3435 # Do `set' in a subshell so we don't clobber the current shell's
3436 # arguments. Must try -L first in case configure is actually a
3437 # symlink; some systems play weird games with the mod time of symlinks
3438 # (eg FreeBSD returns the mod time of the symlink's containing
3439 # directory).
3440 if (
3441 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3442 if test "$*" = "X"; then
3443 # -L didn't work.
3444 set X `ls -t "$srcdir/configure" conftest.file`
3445 fi
3446 rm -f conftest.file
3447 if test "$*" != "X $srcdir/configure conftest.file" \
3448 && test "$*" != "X conftest.file $srcdir/configure"; then
3449
3450 # If neither matched, then we have a broken ls. This can happen
3451 # if, for instance, CONFIG_SHELL is bash and it inherits a
3452 # broken ls alias from the environment. This has actually
3453 # happened. Such a system could not be considered "sane".
3454 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3455 alias in your environment" "$LINENO" 5
3456 fi
3457
3458 test "$2" = conftest.file
3459 )
3460 then
3461 # Ok.
3462 :
3463 else
3464 as_fn_error "newly created file is older than distributed files!
3465 Check your system clock" "$LINENO" 5
3466 fi
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3468 $as_echo "yes" >&6; }
3469 test "$program_prefix" != NONE &&
3470 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3471 # Use a double $ so make ignores it.
3472 test "$program_suffix" != NONE &&
3473 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3474 # Double any \ or $.
3475 # By default was `s,x,x', remove it if useless.
3476 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3477 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3478
3479 # expand $ac_aux_dir to an absolute path
3480 am_aux_dir=`cd $ac_aux_dir && pwd`
3481
3482 if test x"${MISSING+set}" != xset; then
3483 case $am_aux_dir in
3484 *\ * | *\ *)
3485 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3486 *)
3487 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3488 esac
3489 fi
3490 # Use eval to expand $SHELL
3491 if eval "$MISSING --run true"; then
3492 am_missing_run="$MISSING --run "
3493 else
3494 am_missing_run=
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3496 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3497 fi
3498
3499 if test x"${install_sh}" != xset; then
3500 case $am_aux_dir in
3501 *\ * | *\ *)
3502 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3503 *)
3504 install_sh="\${SHELL} $am_aux_dir/install-sh"
3505 esac
3506 fi
3507
3508 # Installed binaries are usually stripped using `strip' when the user
3509 # run `make install-strip'. However `strip' might not be the right
3510 # tool to use in cross-compilation environments, therefore Automake
3511 # will honor the `STRIP' environment variable to overrule this program.
3512 if test "$cross_compiling" != no; then
3513 if test -n "$ac_tool_prefix"; then
3514 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3515 set dummy ${ac_tool_prefix}strip; ac_word=$2
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3517 $as_echo_n "checking for $ac_word... " >&6; }
3518 if test "${ac_cv_prog_STRIP+set}" = set; then :
3519 $as_echo_n "(cached) " >&6
3520 else
3521 if test -n "$STRIP"; then
3522 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3523 else
3524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3525 for as_dir in $PATH
3526 do
3527 IFS=$as_save_IFS
3528 test -z "$as_dir" && as_dir=.
3529 for ac_exec_ext in '' $ac_executable_extensions; do
3530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3531 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3533 break 2
3534 fi
3535 done
3536 done
3537 IFS=$as_save_IFS
3538
3539 fi
3540 fi
3541 STRIP=$ac_cv_prog_STRIP
3542 if test -n "$STRIP"; then
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3544 $as_echo "$STRIP" >&6; }
3545 else
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3547 $as_echo "no" >&6; }
3548 fi
3549
3550
3551 fi
3552 if test -z "$ac_cv_prog_STRIP"; then
3553 ac_ct_STRIP=$STRIP
3554 # Extract the first word of "strip", so it can be a program name with args.
3555 set dummy strip; ac_word=$2
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3557 $as_echo_n "checking for $ac_word... " >&6; }
3558 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3559 $as_echo_n "(cached) " >&6
3560 else
3561 if test -n "$ac_ct_STRIP"; then
3562 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3563 else
3564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565 for as_dir in $PATH
3566 do
3567 IFS=$as_save_IFS
3568 test -z "$as_dir" && as_dir=.
3569 for ac_exec_ext in '' $ac_executable_extensions; do
3570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3571 ac_cv_prog_ac_ct_STRIP="strip"
3572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3573 break 2
3574 fi
3575 done
3576 done
3577 IFS=$as_save_IFS
3578
3579 fi
3580 fi
3581 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3582 if test -n "$ac_ct_STRIP"; then
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3584 $as_echo "$ac_ct_STRIP" >&6; }
3585 else
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3587 $as_echo "no" >&6; }
3588 fi
3589
3590 if test "x$ac_ct_STRIP" = x; then
3591 STRIP=":"
3592 else
3593 case $cross_compiling:$ac_tool_warned in
3594 yes:)
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3596 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3597 ac_tool_warned=yes ;;
3598 esac
3599 STRIP=$ac_ct_STRIP
3600 fi
3601 else
3602 STRIP="$ac_cv_prog_STRIP"
3603 fi
3604
3605 fi
3606 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3607
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3609 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3610 if test -z "$MKDIR_P"; then
3611 if test "${ac_cv_path_mkdir+set}" = set; then :
3612 $as_echo_n "(cached) " >&6
3613 else
3614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3615 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3616 do
3617 IFS=$as_save_IFS
3618 test -z "$as_dir" && as_dir=.
3619 for ac_prog in mkdir gmkdir; do
3620 for ac_exec_ext in '' $ac_executable_extensions; do
3621 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3622 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3623 'mkdir (GNU coreutils) '* | \
3624 'mkdir (coreutils) '* | \
3625 'mkdir (fileutils) '4.1*)
3626 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3627 break 3;;
3628 esac
3629 done
3630 done
3631 done
3632 IFS=$as_save_IFS
3633
3634 fi
3635
3636 test -d ./--version && rmdir ./--version
3637 if test "${ac_cv_path_mkdir+set}" = set; then
3638 MKDIR_P="$ac_cv_path_mkdir -p"
3639 else
3640 # As a last resort, use the slow shell script. Don't cache a
3641 # value for MKDIR_P within a source directory, because that will
3642 # break other packages using the cache if that directory is
3643 # removed, or if the value is a relative name.
3644 MKDIR_P="$ac_install_sh -d"
3645 fi
3646 fi
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3648 $as_echo "$MKDIR_P" >&6; }
3649
3650
3651 mkdir_p="$MKDIR_P"
3652 case $mkdir_p in
3653 [\\/$]* | ?:[\\/]*) ;;
3654 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3655 esac
3656
3657 for ac_prog in gawk mawk nawk awk
3658 do
3659 # Extract the first word of "$ac_prog", so it can be a program name with args.
3660 set dummy $ac_prog; ac_word=$2
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3662 $as_echo_n "checking for $ac_word... " >&6; }
3663 if test "${ac_cv_prog_AWK+set}" = set; then :
3664 $as_echo_n "(cached) " >&6
3665 else
3666 if test -n "$AWK"; then
3667 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3668 else
3669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3670 for as_dir in $PATH
3671 do
3672 IFS=$as_save_IFS
3673 test -z "$as_dir" && as_dir=.
3674 for ac_exec_ext in '' $ac_executable_extensions; do
3675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3676 ac_cv_prog_AWK="$ac_prog"
3677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3678 break 2
3679 fi
3680 done
3681 done
3682 IFS=$as_save_IFS
3683
3684 fi
3685 fi
3686 AWK=$ac_cv_prog_AWK
3687 if test -n "$AWK"; then
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3689 $as_echo "$AWK" >&6; }
3690 else
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3692 $as_echo "no" >&6; }
3693 fi
3694
3695
3696 test -n "$AWK" && break
3697 done
3698
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3700 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3701 set x ${MAKE-make}
3702 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3703 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3704 $as_echo_n "(cached) " >&6
3705 else
3706 cat >conftest.make <<\_ACEOF
3707 SHELL = /bin/sh
3708 all:
3709 @echo '@@@%%%=$(MAKE)=@@@%%%'
3710 _ACEOF
3711 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3712 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3713 *@@@%%%=?*=@@@%%%*)
3714 eval ac_cv_prog_make_${ac_make}_set=yes;;
3715 *)
3716 eval ac_cv_prog_make_${ac_make}_set=no;;
3717 esac
3718 rm -f conftest.make
3719 fi
3720 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3722 $as_echo "yes" >&6; }
3723 SET_MAKE=
3724 else
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3726 $as_echo "no" >&6; }
3727 SET_MAKE="MAKE=${MAKE-make}"
3728 fi
3729
3730 rm -rf .tst 2>/dev/null
3731 mkdir .tst 2>/dev/null
3732 if test -d .tst; then
3733 am__leading_dot=.
3734 else
3735 am__leading_dot=_
3736 fi
3737 rmdir .tst 2>/dev/null
3738
3739 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3740 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3741 # is not polluted with repeated "-I."
3742 am__isrc=' -I$(srcdir)'
3743 # test to see if srcdir already configured
3744 if test -f $srcdir/config.status; then
3745 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3746 fi
3747 fi
3748
3749 # test whether we have cygpath
3750 if test -z "$CYGPATH_W"; then
3751 if (cygpath --version) >/dev/null 2>/dev/null; then
3752 CYGPATH_W='cygpath -w'
3753 else
3754 CYGPATH_W=echo
3755 fi
3756 fi
3757
3758
3759 # Define the identity of the package.
3760 PACKAGE='emacs'
3761 VERSION='24.2.50'
3762
3763
3764 cat >>confdefs.h <<_ACEOF
3765 #define PACKAGE "$PACKAGE"
3766 _ACEOF
3767
3768
3769 cat >>confdefs.h <<_ACEOF
3770 #define VERSION "$VERSION"
3771 _ACEOF
3772
3773 # Some tools Automake needs.
3774
3775 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3776
3777
3778 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3779
3780
3781 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3782
3783
3784 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3785
3786
3787 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3788
3789 # We need awk for the "check" target. The system "awk" is bad on
3790 # some platforms.
3791 # Always define AMTAR for backward compatibility.
3792
3793 AMTAR=${AMTAR-"${am_missing_run}tar"}
3794
3795 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3796
3797
3798
3799
3800
3801
3802
3803
3804 lispdir='${datadir}/emacs/${version}/lisp'
3805 leimdir='${datadir}/emacs/${version}/leim'
3806 standardlisppath='${lispdir}:${leimdir}'
3807 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3808 '${datadir}/emacs/site-lisp'
3809 lisppath='${locallisppath}:${standardlisppath}'
3810 etcdir='${datadir}/emacs/${version}/etc'
3811 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3812 docdir='${datadir}/emacs/${version}/etc'
3813 gamedir='${localstatedir}/games/emacs'
3814
3815
3816 # Check whether --with-all was given.
3817 if test "${with_all+set}" = set; then :
3818 withval=$with_all; with_features=$withval
3819 else
3820 with_features=yes
3821 fi
3822
3823
3824
3825
3826
3827 # Check whether --with-pop was given.
3828 if test "${with_pop+set}" = set; then :
3829 withval=$with_pop;
3830 else
3831 with_pop=$with_features
3832 fi
3833
3834 if test "$with_pop" = yes; then
3835 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3836
3837 fi
3838
3839
3840 # Check whether --with-kerberos was given.
3841 if test "${with_kerberos+set}" = set; then :
3842 withval=$with_kerberos;
3843 else
3844 with_kerberos=no
3845 fi
3846
3847 if test "$with_kerberos" != no; then
3848 $as_echo "#define KERBEROS 1" >>confdefs.h
3849
3850 fi
3851
3852
3853 # Check whether --with-kerberos5 was given.
3854 if test "${with_kerberos5+set}" = set; then :
3855 withval=$with_kerberos5;
3856 else
3857 with_kerberos5=no
3858 fi
3859
3860 if test "${with_kerberos5}" != no; then
3861 if test "${with_kerberos}" = no; then
3862 with_kerberos=yes
3863 $as_echo "#define KERBEROS 1" >>confdefs.h
3864
3865 fi
3866
3867 $as_echo "#define KERBEROS5 1" >>confdefs.h
3868
3869 fi
3870
3871
3872 # Check whether --with-hesiod was given.
3873 if test "${with_hesiod+set}" = set; then :
3874 withval=$with_hesiod;
3875 else
3876 with_hesiod=no
3877 fi
3878
3879 if test "$with_hesiod" != no; then
3880
3881 $as_echo "#define HESIOD 1" >>confdefs.h
3882
3883 fi
3884
3885
3886 # Check whether --with-mmdf was given.
3887 if test "${with_mmdf+set}" = set; then :
3888 withval=$with_mmdf;
3889 else
3890 with_mmdf=no
3891 fi
3892
3893 if test "$with_mmdf" != no; then
3894
3895 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3896
3897 fi
3898
3899
3900 # Check whether --with-mail-unlink was given.
3901 if test "${with_mail_unlink+set}" = set; then :
3902 withval=$with_mail_unlink;
3903 else
3904 with_mail_unlink=no
3905 fi
3906
3907 if test "$with_mail_unlink" != no; then
3908
3909 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3910
3911 fi
3912
3913
3914 # Check whether --with-mailhost was given.
3915 if test "${with_mailhost+set}" = set; then :
3916 withval=$with_mailhost;
3917 cat >>confdefs.h <<_ACEOF
3918 #define MAILHOST "$withval"
3919 _ACEOF
3920
3921 fi
3922
3923
3924
3925 # Check whether --with-sound was given.
3926 if test "${with_sound+set}" = set; then :
3927 withval=$with_sound;
3928 else
3929 with_sound=$with_features
3930 fi
3931
3932
3933
3934 # Check whether --with-x-toolkit was given.
3935 if test "${with_x_toolkit+set}" = set; then :
3936 withval=$with_x_toolkit; case "${withval}" in
3937 y | ye | yes ) val=gtk ;;
3938 n | no ) val=no ;;
3939 l | lu | luc | luci | lucid ) val=lucid ;;
3940 a | at | ath | athe | athen | athena ) val=athena ;;
3941 m | mo | mot | moti | motif ) val=motif ;;
3942 g | gt | gtk ) val=gtk ;;
3943 gtk2 ) val=gtk2 ;;
3944 gtk3 ) val=gtk3 ;;
3945 * )
3946 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
3947 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk',
3948 \`gtk2' or \`gtk3'. \`yes' and \`gtk' are synonyms.
3949 \`athena' and \`lucid' are synonyms." "$LINENO" 5
3950 ;;
3951 esac
3952 with_x_toolkit=$val
3953
3954 fi
3955
3956
3957
3958 # Check whether --with-wide-int was given.
3959 if test "${with_wide_int+set}" = set; then :
3960 withval=$with_wide_int;
3961 else
3962 with_wide_int=no
3963 fi
3964
3965 if test "$with_wide_int" = yes; then
3966
3967 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
3968
3969 fi
3970
3971
3972 # Check whether --with-xpm was given.
3973 if test "${with_xpm+set}" = set; then :
3974 withval=$with_xpm;
3975 else
3976 with_xpm=$with_features
3977 fi
3978
3979
3980 # Check whether --with-jpeg was given.
3981 if test "${with_jpeg+set}" = set; then :
3982 withval=$with_jpeg;
3983 else
3984 with_jpeg=$with_features
3985 fi
3986
3987
3988 # Check whether --with-tiff was given.
3989 if test "${with_tiff+set}" = set; then :
3990 withval=$with_tiff;
3991 else
3992 with_tiff=$with_features
3993 fi
3994
3995
3996 # Check whether --with-gif was given.
3997 if test "${with_gif+set}" = set; then :
3998 withval=$with_gif;
3999 else
4000 with_gif=$with_features
4001 fi
4002
4003
4004 # Check whether --with-png was given.
4005 if test "${with_png+set}" = set; then :
4006 withval=$with_png;
4007 else
4008 with_png=$with_features
4009 fi
4010
4011
4012 # Check whether --with-rsvg was given.
4013 if test "${with_rsvg+set}" = set; then :
4014 withval=$with_rsvg;
4015 else
4016 with_rsvg=$with_features
4017 fi
4018
4019
4020 # Check whether --with-xml2 was given.
4021 if test "${with_xml2+set}" = set; then :
4022 withval=$with_xml2;
4023 else
4024 with_xml2=$with_features
4025 fi
4026
4027
4028 # Check whether --with-imagemagick was given.
4029 if test "${with_imagemagick+set}" = set; then :
4030 withval=$with_imagemagick;
4031 else
4032 with_imagemagick=$with_features
4033 fi
4034
4035
4036
4037 # Check whether --with-xft was given.
4038 if test "${with_xft+set}" = set; then :
4039 withval=$with_xft;
4040 else
4041 with_xft=$with_features
4042 fi
4043
4044
4045 # Check whether --with-libotf was given.
4046 if test "${with_libotf+set}" = set; then :
4047 withval=$with_libotf;
4048 else
4049 with_libotf=$with_features
4050 fi
4051
4052
4053 # Check whether --with-m17n-flt was given.
4054 if test "${with_m17n_flt+set}" = set; then :
4055 withval=$with_m17n_flt;
4056 else
4057 with_m17n_flt=$with_features
4058 fi
4059
4060
4061
4062 # Check whether --with-toolkit-scroll-bars was given.
4063 if test "${with_toolkit_scroll_bars+set}" = set; then :
4064 withval=$with_toolkit_scroll_bars;
4065 else
4066 with_toolkit_scroll_bars=$with_features
4067 fi
4068
4069
4070 # Check whether --with-xaw3d was given.
4071 if test "${with_xaw3d+set}" = set; then :
4072 withval=$with_xaw3d;
4073 else
4074 with_xaw3d=$with_features
4075 fi
4076
4077
4078 # Check whether --with-xim was given.
4079 if test "${with_xim+set}" = set; then :
4080 withval=$with_xim;
4081 else
4082 with_xim=$with_features
4083 fi
4084
4085
4086 # Check whether --with-ns was given.
4087 if test "${with_ns+set}" = set; then :
4088 withval=$with_ns;
4089 else
4090 with_ns=no
4091 fi
4092
4093
4094
4095 # Check whether --with-gpm was given.
4096 if test "${with_gpm+set}" = set; then :
4097 withval=$with_gpm;
4098 else
4099 with_gpm=$with_features
4100 fi
4101
4102
4103 # Check whether --with-dbus was given.
4104 if test "${with_dbus+set}" = set; then :
4105 withval=$with_dbus;
4106 else
4107 with_dbus=$with_features
4108 fi
4109
4110
4111 # Check whether --with-gconf was given.
4112 if test "${with_gconf+set}" = set; then :
4113 withval=$with_gconf;
4114 else
4115 with_gconf=$with_features
4116 fi
4117
4118
4119 # Check whether --with-gsettings was given.
4120 if test "${with_gsettings+set}" = set; then :
4121 withval=$with_gsettings;
4122 else
4123 with_gsettings=$with_features
4124 fi
4125
4126
4127 # Check whether --with-selinux was given.
4128 if test "${with_selinux+set}" = set; then :
4129 withval=$with_selinux;
4130 else
4131 with_selinux=$with_features
4132 fi
4133
4134
4135 # Check whether --with-gnutls was given.
4136 if test "${with_gnutls+set}" = set; then :
4137 withval=$with_gnutls;
4138 else
4139 with_gnutls=$with_features
4140 fi
4141
4142
4143 ## For the times when you want to build Emacs but don't have
4144 ## a suitable makeinfo, and can live without the manuals.
4145
4146 # Check whether --with-makeinfo was given.
4147 if test "${with_makeinfo+set}" = set; then :
4148 withval=$with_makeinfo;
4149 else
4150 with_makeinfo=$with_features
4151 fi
4152
4153
4154 ## Makefile.in needs the cache file name.
4155
4156
4157 ## This is an option because I do not know if all info/man support
4158 ## compressed files, nor how to test if they do so.
4159
4160 # Check whether --with-compress-info was given.
4161 if test "${with_compress_info+set}" = set; then :
4162 withval=$with_compress_info;
4163 else
4164 with_compress_info=$with_features
4165 fi
4166
4167 if test $with_compress_info = yes; then
4168 GZIP_INFO=yes
4169 else
4170 GZIP_INFO=
4171 fi
4172
4173
4174
4175 # Check whether --with-pkg-config-prog was given.
4176 if test "${with_pkg_config_prog+set}" = set; then :
4177 withval=$with_pkg_config_prog;
4178 fi
4179
4180 if test "X${with_pkg_config_prog}" != X; then
4181 if test "${with_pkg_config_prog}" != yes; then
4182 PKG_CONFIG="${with_pkg_config_prog}"
4183 fi
4184 fi
4185
4186 CRT_DIR=
4187
4188 # Check whether --with-crt-dir was given.
4189 if test "${with_crt_dir+set}" = set; then :
4190 withval=$with_crt_dir;
4191 fi
4192
4193 CRT_DIR="${with_crt_dir}"
4194
4195
4196 # Check whether --with-gameuser was given.
4197 if test "${with_gameuser+set}" = set; then :
4198 withval=$with_gameuser;
4199 fi
4200
4201 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
4202 && gameuser="${with_gameuser}"
4203 test "X$gameuser" = X && gameuser=games
4204
4205
4206 # Check whether --with-gnustep-conf was given.
4207 if test "${with_gnustep_conf+set}" = set; then :
4208 withval=$with_gnustep_conf;
4209 fi
4210
4211 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4212 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4213 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4214 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4215
4216 # Check whether --enable-ns-self-contained was given.
4217 if test "${enable_ns_self_contained+set}" = set; then :
4218 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4219 else
4220 EN_NS_SELF_CONTAINED=yes
4221 fi
4222
4223
4224 # Check whether --enable-locallisppath was given.
4225 if test "${enable_locallisppath+set}" = set; then :
4226 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4227 locallisppath=
4228 elif test "${enableval}" != "yes"; then
4229 locallisppath=${enableval}
4230 fi
4231 fi
4232
4233
4234 # Check whether --enable-checking was given.
4235 if test "${enable_checking+set}" = set; then :
4236 enableval=$enable_checking; ac_checking_flags="${enableval}"
4237 fi
4238
4239 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4240 for check in $ac_checking_flags
4241 do
4242 case $check in
4243 # these set all the flags to specific states
4244 yes) ac_enable_checking=1 ;;
4245 no) ac_enable_checking= ;
4246 ac_gc_check_stringbytes= ;
4247 ac_gc_check_string_overrun= ;
4248 ac_gc_check_string_free_list= ;
4249 ac_xmalloc_overrun= ;
4250 ac_gc_check_cons_list= ;
4251 ac_glyphs_debug= ;;
4252 all) ac_enable_checking=1 ;
4253 ac_gc_check_stringbytes=1 ;
4254 ac_gc_check_string_overrun=1 ;
4255 ac_gc_check_string_free_list=1 ;
4256 ac_xmalloc_overrun=1 ;
4257 ac_gc_check_cons_list=1 ;
4258 ac_glyphs_debug=1 ;;
4259 # these enable particular checks
4260 stringbytes) ac_gc_check_stringbytes=1 ;;
4261 stringoverrun) ac_gc_check_string_overrun=1 ;;
4262 stringfreelist) ac_gc_check_string_free_list=1 ;;
4263 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4264 conslist) ac_gc_check_cons_list=1 ;;
4265 glyphs) ac_glyphs_debug=1 ;;
4266 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
4267 esac
4268 done
4269 IFS="$ac_save_IFS"
4270
4271 if test x$ac_enable_checking != x ; then
4272
4273 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4274
4275 fi
4276 if test x$ac_gc_check_stringbytes != x ; then
4277
4278 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4279
4280 fi
4281 if test x$ac_gc_check_string_overrun != x ; then
4282
4283 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4284
4285 fi
4286 if test x$ac_gc_check_string_free_list != x ; then
4287
4288 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4289
4290 fi
4291 if test x$ac_xmalloc_overrun != x ; then
4292
4293 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4294
4295 fi
4296 if test x$ac_gc_check_cons_list != x ; then
4297
4298 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4299
4300 fi
4301 if test x$ac_glyphs_debug != x ; then
4302
4303 $as_echo "#define GLYPH_DEBUG 1" >>confdefs.h
4304
4305 fi
4306
4307 # Check whether --enable-check-lisp-object-type was given.
4308 if test "${enable_check_lisp_object_type+set}" = set; then :
4309 enableval=$enable_check_lisp_object_type; if test "${enableval}" != "no"; then
4310
4311 $as_echo "#define CHECK_LISP_OBJECT_TYPE 1" >>confdefs.h
4312
4313 fi
4314 fi
4315
4316
4317
4318 # Check whether --enable-profiling was given.
4319 if test "${enable_profiling+set}" = set; then :
4320 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4321 fi
4322
4323 if test x$ac_enable_profiling != x ; then
4324 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4325 else
4326 PROFILING_CFLAGS=
4327 fi
4328
4329
4330 # Check whether --enable-autodepend was given.
4331 if test "${enable_autodepend+set}" = set; then :
4332 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4333 else
4334 ac_enable_autodepend=yes
4335 fi
4336
4337
4338 #### Make srcdir absolute, if it isn't already. It's important to
4339 #### avoid running the path through pwd unnecessarily, since pwd can
4340 #### give you automounter prefixes, which can go away. We do all this
4341 #### so Emacs can find its files when run uninstalled.
4342 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4343 unset CDPATH
4344 case "${srcdir}" in
4345 /* ) ;;
4346 . )
4347 ## We may be able to use the $PWD environment variable to make this
4348 ## absolute. But sometimes PWD is inaccurate.
4349 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4350 ## but that tested only for a well-formed and valid PWD,
4351 ## it did not object when PWD was well-formed and valid but just wrong.
4352 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4353 then
4354 srcdir="$PWD"
4355 else
4356 srcdir="`(cd ${srcdir}; pwd)`"
4357 fi
4358 ;;
4359 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
4360 esac
4361
4362 ### Canonicalize the configuration name.
4363
4364 # Make sure we can run config.sub.
4365 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4366 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4367
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4369 $as_echo_n "checking build system type... " >&6; }
4370 if test "${ac_cv_build+set}" = set; then :
4371 $as_echo_n "(cached) " >&6
4372 else
4373 ac_build_alias=$build_alias
4374 test "x$ac_build_alias" = x &&
4375 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4376 test "x$ac_build_alias" = x &&
4377 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4378 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4379 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4380
4381 fi
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4383 $as_echo "$ac_cv_build" >&6; }
4384 case $ac_cv_build in
4385 *-*-*) ;;
4386 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4387 esac
4388 build=$ac_cv_build
4389 ac_save_IFS=$IFS; IFS='-'
4390 set x $ac_cv_build
4391 shift
4392 build_cpu=$1
4393 build_vendor=$2
4394 shift; shift
4395 # Remember, the first character of IFS is used to create $*,
4396 # except with old shells:
4397 build_os=$*
4398 IFS=$ac_save_IFS
4399 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4400
4401
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4403 $as_echo_n "checking host system type... " >&6; }
4404 if test "${ac_cv_host+set}" = set; then :
4405 $as_echo_n "(cached) " >&6
4406 else
4407 if test "x$host_alias" = x; then
4408 ac_cv_host=$ac_cv_build
4409 else
4410 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4411 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4412 fi
4413
4414 fi
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4416 $as_echo "$ac_cv_host" >&6; }
4417 case $ac_cv_host in
4418 *-*-*) ;;
4419 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4420 esac
4421 host=$ac_cv_host
4422 ac_save_IFS=$IFS; IFS='-'
4423 set x $ac_cv_host
4424 shift
4425 host_cpu=$1
4426 host_vendor=$2
4427 shift; shift
4428 # Remember, the first character of IFS is used to create $*,
4429 # except with old shells:
4430 host_os=$*
4431 IFS=$ac_save_IFS
4432 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4433
4434
4435 canonical=$host
4436 configuration=${host_alias-${build_alias-$host}}
4437
4438
4439
4440 ### If you add support for a new configuration, add code to this
4441 ### switch statement to recognize your configuration name and select
4442 ### the appropriate operating system file.
4443
4444 ### You would hope that you could choose an s/*.h
4445 ### file based on the operating system portion. However, it turns out
4446 ### that each s/*.h file is pretty manufacturer-specific.
4447 ### So we basically have to have a special case for each
4448 ### configuration name.
4449 ###
4450 ### As far as handling version numbers on operating systems is
4451 ### concerned, make sure things will fail in a fixable way. If
4452 ### /etc/MACHINES doesn't say anything about version numbers, be
4453 ### prepared to handle anything reasonably. If version numbers
4454 ### matter, be sure /etc/MACHINES says something about it.
4455
4456 opsys='' unported=no
4457 case "${canonical}" in
4458
4459 ## GNU/Linux and similar ports
4460 *-*-linux* )
4461 opsys=gnu-linux
4462 ;;
4463
4464 ## FreeBSD ports
4465 *-*-freebsd* )
4466 opsys=freebsd
4467 ;;
4468
4469 ## FreeBSD kernel + glibc based userland
4470 *-*-kfreebsd*gnu* )
4471 opsys=gnu-kfreebsd
4472 ;;
4473
4474 ## NetBSD ports
4475 *-*-netbsd* )
4476 opsys=netbsd
4477 ;;
4478
4479 ## OpenBSD ports
4480 *-*-openbsd* )
4481 opsys=openbsd
4482 ;;
4483
4484 ## Apple Darwin / Mac OS X
4485 *-apple-darwin* )
4486 case "${canonical}" in
4487 i[3456]86-* ) ;;
4488 powerpc-* ) ;;
4489 x86_64-* ) ;;
4490 * ) unported=yes ;;
4491 esac
4492 opsys=darwin
4493 ## Use fink packages if available.
4494 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4495 ## if test -d /sw/include && test -d /sw/lib; then
4496 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4497 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4498 ## fi
4499 ;;
4500
4501 ## HP 9000 series 700 and 800, running HP/UX
4502 hppa*-hp-hpux10.2* )
4503 opsys=hpux10-20
4504 ;;
4505 hppa*-hp-hpux1[1-9]* )
4506 opsys=hpux11
4507 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4508 ;;
4509
4510 ## IBM machines
4511 rs6000-ibm-aix4.[23]* )
4512 opsys=aix4-2
4513 ;;
4514 powerpc-ibm-aix4.[23]* )
4515 opsys=aix4-2
4516 ;;
4517 rs6000-ibm-aix[56]* )
4518 opsys=aix4-2
4519 ;;
4520 powerpc-ibm-aix[56]* )
4521 opsys=aix4-2
4522 ;;
4523
4524 ## Silicon Graphics machines
4525 ## Iris 4D
4526 mips-sgi-irix6.5 )
4527 opsys=irix6-5
4528 # Without defining _LANGUAGE_C, things get masked out in the headers
4529 # so that, for instance, grepping for `free' in stdlib.h fails and
4530 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4531 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4532 ;;
4533
4534 ## Suns
4535 *-sun-solaris* \
4536 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4537 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4538 case "${canonical}" in
4539 i[3456]86-*-* ) ;;
4540 amd64-*-*|x86_64-*-*) ;;
4541 sparc* ) ;;
4542 * ) unported=yes ;;
4543 esac
4544 case "${canonical}" in
4545 *-sunos5.6* | *-solaris2.6* )
4546 opsys=sol2-6
4547 RANLIB="ar -ts"
4548 ;;
4549 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4550 opsys=sol2-6
4551 emacs_check_sunpro_c=yes
4552 ;;
4553 *-sunos5* | *-solaris* )
4554 opsys=sol2-10
4555 emacs_check_sunpro_c=yes
4556 ;;
4557 esac
4558 ## Watch out for a compiler that we know will not work.
4559 case "${canonical}" in
4560 *-solaris* | *-sunos5* )
4561 if [ "x$CC" = x/usr/ucb/cc ]; then
4562 ## /usr/ucb/cc doesn't work;
4563 ## we should find some other compiler that does work.
4564 unset CC
4565 fi
4566 ;;
4567 *) ;;
4568 esac
4569 ;;
4570
4571 ## Intel 386 machines where we don't care about the manufacturer.
4572 i[3456]86-*-* )
4573 case "${canonical}" in
4574 *-cygwin ) opsys=cygwin ;;
4575 *-darwin* ) opsys=darwin ;;
4576 *-sysv4.2uw* ) opsys=unixware ;;
4577 *-sysv5uw* ) opsys=unixware ;;
4578 *-sysv5OpenUNIX* ) opsys=unixware ;;
4579 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4580 esac
4581 ;;
4582
4583 * )
4584 unported=yes
4585 ;;
4586 esac
4587
4588 ### If the code above didn't choose an operating system, just choose
4589 ### an operating system based on the configuration name. You really
4590 ### only want to use this when you have no idea what the right
4591 ### operating system is; if you know what operating systems a machine
4592 ### runs, it's cleaner to make it explicit in the case statement
4593 ### above.
4594 if test x"${opsys}" = x; then
4595 case "${canonical}" in
4596 *-gnu* ) opsys=gnu ;;
4597 * )
4598 unported=yes
4599 ;;
4600 esac
4601 fi
4602
4603
4604
4605 if test $unported = yes; then
4606 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
4607 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4608 fi
4609
4610
4611 #### Choose a compiler.
4612
4613 ac_ext=c
4614 ac_cpp='$CPP $CPPFLAGS'
4615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4618 if test -n "$ac_tool_prefix"; then
4619 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4620 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4622 $as_echo_n "checking for $ac_word... " >&6; }
4623 if test "${ac_cv_prog_CC+set}" = set; then :
4624 $as_echo_n "(cached) " >&6
4625 else
4626 if test -n "$CC"; then
4627 ac_cv_prog_CC="$CC" # Let the user override the test.
4628 else
4629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 for as_dir in $PATH
4631 do
4632 IFS=$as_save_IFS
4633 test -z "$as_dir" && as_dir=.
4634 for ac_exec_ext in '' $ac_executable_extensions; do
4635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4636 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4638 break 2
4639 fi
4640 done
4641 done
4642 IFS=$as_save_IFS
4643
4644 fi
4645 fi
4646 CC=$ac_cv_prog_CC
4647 if test -n "$CC"; then
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4649 $as_echo "$CC" >&6; }
4650 else
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4652 $as_echo "no" >&6; }
4653 fi
4654
4655
4656 fi
4657 if test -z "$ac_cv_prog_CC"; then
4658 ac_ct_CC=$CC
4659 # Extract the first word of "gcc", so it can be a program name with args.
4660 set dummy gcc; ac_word=$2
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4662 $as_echo_n "checking for $ac_word... " >&6; }
4663 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4664 $as_echo_n "(cached) " >&6
4665 else
4666 if test -n "$ac_ct_CC"; then
4667 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4668 else
4669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670 for as_dir in $PATH
4671 do
4672 IFS=$as_save_IFS
4673 test -z "$as_dir" && as_dir=.
4674 for ac_exec_ext in '' $ac_executable_extensions; do
4675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4676 ac_cv_prog_ac_ct_CC="gcc"
4677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4678 break 2
4679 fi
4680 done
4681 done
4682 IFS=$as_save_IFS
4683
4684 fi
4685 fi
4686 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4687 if test -n "$ac_ct_CC"; then
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4689 $as_echo "$ac_ct_CC" >&6; }
4690 else
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4692 $as_echo "no" >&6; }
4693 fi
4694
4695 if test "x$ac_ct_CC" = x; then
4696 CC=""
4697 else
4698 case $cross_compiling:$ac_tool_warned in
4699 yes:)
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4701 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4702 ac_tool_warned=yes ;;
4703 esac
4704 CC=$ac_ct_CC
4705 fi
4706 else
4707 CC="$ac_cv_prog_CC"
4708 fi
4709
4710 if test -z "$CC"; then
4711 if test -n "$ac_tool_prefix"; then
4712 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4713 set dummy ${ac_tool_prefix}cc; ac_word=$2
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4715 $as_echo_n "checking for $ac_word... " >&6; }
4716 if test "${ac_cv_prog_CC+set}" = set; then :
4717 $as_echo_n "(cached) " >&6
4718 else
4719 if test -n "$CC"; then
4720 ac_cv_prog_CC="$CC" # Let the user override the test.
4721 else
4722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4723 for as_dir in $PATH
4724 do
4725 IFS=$as_save_IFS
4726 test -z "$as_dir" && as_dir=.
4727 for ac_exec_ext in '' $ac_executable_extensions; do
4728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4729 ac_cv_prog_CC="${ac_tool_prefix}cc"
4730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4731 break 2
4732 fi
4733 done
4734 done
4735 IFS=$as_save_IFS
4736
4737 fi
4738 fi
4739 CC=$ac_cv_prog_CC
4740 if test -n "$CC"; then
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4742 $as_echo "$CC" >&6; }
4743 else
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4745 $as_echo "no" >&6; }
4746 fi
4747
4748
4749 fi
4750 fi
4751 if test -z "$CC"; then
4752 # Extract the first word of "cc", so it can be a program name with args.
4753 set dummy cc; ac_word=$2
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4755 $as_echo_n "checking for $ac_word... " >&6; }
4756 if test "${ac_cv_prog_CC+set}" = set; then :
4757 $as_echo_n "(cached) " >&6
4758 else
4759 if test -n "$CC"; then
4760 ac_cv_prog_CC="$CC" # Let the user override the test.
4761 else
4762 ac_prog_rejected=no
4763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764 for as_dir in $PATH
4765 do
4766 IFS=$as_save_IFS
4767 test -z "$as_dir" && as_dir=.
4768 for ac_exec_ext in '' $ac_executable_extensions; do
4769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4770 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4771 ac_prog_rejected=yes
4772 continue
4773 fi
4774 ac_cv_prog_CC="cc"
4775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4776 break 2
4777 fi
4778 done
4779 done
4780 IFS=$as_save_IFS
4781
4782 if test $ac_prog_rejected = yes; then
4783 # We found a bogon in the path, so make sure we never use it.
4784 set dummy $ac_cv_prog_CC
4785 shift
4786 if test $# != 0; then
4787 # We chose a different compiler from the bogus one.
4788 # However, it has the same basename, so the bogon will be chosen
4789 # first if we set CC to just the basename; use the full file name.
4790 shift
4791 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4792 fi
4793 fi
4794 fi
4795 fi
4796 CC=$ac_cv_prog_CC
4797 if test -n "$CC"; then
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4799 $as_echo "$CC" >&6; }
4800 else
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4802 $as_echo "no" >&6; }
4803 fi
4804
4805
4806 fi
4807 if test -z "$CC"; then
4808 if test -n "$ac_tool_prefix"; then
4809 for ac_prog in cl.exe
4810 do
4811 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4812 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4814 $as_echo_n "checking for $ac_word... " >&6; }
4815 if test "${ac_cv_prog_CC+set}" = set; then :
4816 $as_echo_n "(cached) " >&6
4817 else
4818 if test -n "$CC"; then
4819 ac_cv_prog_CC="$CC" # Let the user override the test.
4820 else
4821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822 for as_dir in $PATH
4823 do
4824 IFS=$as_save_IFS
4825 test -z "$as_dir" && as_dir=.
4826 for ac_exec_ext in '' $ac_executable_extensions; do
4827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4828 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4830 break 2
4831 fi
4832 done
4833 done
4834 IFS=$as_save_IFS
4835
4836 fi
4837 fi
4838 CC=$ac_cv_prog_CC
4839 if test -n "$CC"; then
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4841 $as_echo "$CC" >&6; }
4842 else
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4844 $as_echo "no" >&6; }
4845 fi
4846
4847
4848 test -n "$CC" && break
4849 done
4850 fi
4851 if test -z "$CC"; then
4852 ac_ct_CC=$CC
4853 for ac_prog in cl.exe
4854 do
4855 # Extract the first word of "$ac_prog", so it can be a program name with args.
4856 set dummy $ac_prog; ac_word=$2
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4858 $as_echo_n "checking for $ac_word... " >&6; }
4859 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4860 $as_echo_n "(cached) " >&6
4861 else
4862 if test -n "$ac_ct_CC"; then
4863 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4864 else
4865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866 for as_dir in $PATH
4867 do
4868 IFS=$as_save_IFS
4869 test -z "$as_dir" && as_dir=.
4870 for ac_exec_ext in '' $ac_executable_extensions; do
4871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4872 ac_cv_prog_ac_ct_CC="$ac_prog"
4873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4874 break 2
4875 fi
4876 done
4877 done
4878 IFS=$as_save_IFS
4879
4880 fi
4881 fi
4882 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4883 if test -n "$ac_ct_CC"; then
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4885 $as_echo "$ac_ct_CC" >&6; }
4886 else
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4888 $as_echo "no" >&6; }
4889 fi
4890
4891
4892 test -n "$ac_ct_CC" && break
4893 done
4894
4895 if test "x$ac_ct_CC" = x; then
4896 CC=""
4897 else
4898 case $cross_compiling:$ac_tool_warned in
4899 yes:)
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4902 ac_tool_warned=yes ;;
4903 esac
4904 CC=$ac_ct_CC
4905 fi
4906 fi
4907
4908 fi
4909
4910
4911 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4912 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4913 as_fn_error "no acceptable C compiler found in \$PATH
4914 See \`config.log' for more details." "$LINENO" 5; }
4915
4916 # Provide some information about the compiler.
4917 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4918 set X $ac_compile
4919 ac_compiler=$2
4920 for ac_option in --version -v -V -qversion; do
4921 { { ac_try="$ac_compiler $ac_option >&5"
4922 case "(($ac_try" in
4923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4924 *) ac_try_echo=$ac_try;;
4925 esac
4926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4927 $as_echo "$ac_try_echo"; } >&5
4928 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4929 ac_status=$?
4930 if test -s conftest.err; then
4931 sed '10a\
4932 ... rest of stderr output deleted ...
4933 10q' conftest.err >conftest.er1
4934 cat conftest.er1 >&5
4935 fi
4936 rm -f conftest.er1 conftest.err
4937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4938 test $ac_status = 0; }
4939 done
4940
4941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4942 /* end confdefs.h. */
4943
4944 int
4945 main ()
4946 {
4947
4948 ;
4949 return 0;
4950 }
4951 _ACEOF
4952 ac_clean_files_save=$ac_clean_files
4953 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4954 # Try to create an executable without -o first, disregard a.out.
4955 # It will help us diagnose broken compilers, and finding out an intuition
4956 # of exeext.
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4958 $as_echo_n "checking whether the C compiler works... " >&6; }
4959 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4960
4961 # The possible output files:
4962 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4963
4964 ac_rmfiles=
4965 for ac_file in $ac_files
4966 do
4967 case $ac_file in
4968 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4969 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4970 esac
4971 done
4972 rm -f $ac_rmfiles
4973
4974 if { { ac_try="$ac_link_default"
4975 case "(($ac_try" in
4976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4977 *) ac_try_echo=$ac_try;;
4978 esac
4979 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4980 $as_echo "$ac_try_echo"; } >&5
4981 (eval "$ac_link_default") 2>&5
4982 ac_status=$?
4983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4984 test $ac_status = 0; }; then :
4985 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4986 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4987 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4988 # so that the user can short-circuit this test for compilers unknown to
4989 # Autoconf.
4990 for ac_file in $ac_files ''
4991 do
4992 test -f "$ac_file" || continue
4993 case $ac_file in
4994 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4995 ;;
4996 [ab].out )
4997 # We found the default executable, but exeext='' is most
4998 # certainly right.
4999 break;;
5000 *.* )
5001 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5002 then :; else
5003 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5004 fi
5005 # We set ac_cv_exeext here because the later test for it is not
5006 # safe: cross compilers may not add the suffix if given an `-o'
5007 # argument, so we may need to know it at that point already.
5008 # Even if this section looks crufty: it has the advantage of
5009 # actually working.
5010 break;;
5011 * )
5012 break;;
5013 esac
5014 done
5015 test "$ac_cv_exeext" = no && ac_cv_exeext=
5016
5017 else
5018 ac_file=''
5019 fi
5020 if test -z "$ac_file"; then :
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5022 $as_echo "no" >&6; }
5023 $as_echo "$as_me: failed program was:" >&5
5024 sed 's/^/| /' conftest.$ac_ext >&5
5025
5026 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5028 { as_fn_set_status 77
5029 as_fn_error "C compiler cannot create executables
5030 See \`config.log' for more details." "$LINENO" 5; }; }
5031 else
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5033 $as_echo "yes" >&6; }
5034 fi
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5036 $as_echo_n "checking for C compiler default output file name... " >&6; }
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5038 $as_echo "$ac_file" >&6; }
5039 ac_exeext=$ac_cv_exeext
5040
5041 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5042 ac_clean_files=$ac_clean_files_save
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5044 $as_echo_n "checking for suffix of executables... " >&6; }
5045 if { { ac_try="$ac_link"
5046 case "(($ac_try" in
5047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5048 *) ac_try_echo=$ac_try;;
5049 esac
5050 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5051 $as_echo "$ac_try_echo"; } >&5
5052 (eval "$ac_link") 2>&5
5053 ac_status=$?
5054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5055 test $ac_status = 0; }; then :
5056 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5057 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5058 # work properly (i.e., refer to `conftest.exe'), while it won't with
5059 # `rm'.
5060 for ac_file in conftest.exe conftest conftest.*; do
5061 test -f "$ac_file" || continue
5062 case $ac_file in
5063 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5064 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5065 break;;
5066 * ) break;;
5067 esac
5068 done
5069 else
5070 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5071 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5072 as_fn_error "cannot compute suffix of executables: cannot compile and link
5073 See \`config.log' for more details." "$LINENO" 5; }
5074 fi
5075 rm -f conftest conftest$ac_cv_exeext
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5077 $as_echo "$ac_cv_exeext" >&6; }
5078
5079 rm -f conftest.$ac_ext
5080 EXEEXT=$ac_cv_exeext
5081 ac_exeext=$EXEEXT
5082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5083 /* end confdefs.h. */
5084 #include <stdio.h>
5085 int
5086 main ()
5087 {
5088 FILE *f = fopen ("conftest.out", "w");
5089 return ferror (f) || fclose (f) != 0;
5090
5091 ;
5092 return 0;
5093 }
5094 _ACEOF
5095 ac_clean_files="$ac_clean_files conftest.out"
5096 # Check that the compiler produces executables we can run. If not, either
5097 # the compiler is broken, or we cross compile.
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5099 $as_echo_n "checking whether we are cross compiling... " >&6; }
5100 if test "$cross_compiling" != yes; then
5101 { { ac_try="$ac_link"
5102 case "(($ac_try" in
5103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5104 *) ac_try_echo=$ac_try;;
5105 esac
5106 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5107 $as_echo "$ac_try_echo"; } >&5
5108 (eval "$ac_link") 2>&5
5109 ac_status=$?
5110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5111 test $ac_status = 0; }
5112 if { ac_try='./conftest$ac_cv_exeext'
5113 { { case "(($ac_try" in
5114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5115 *) ac_try_echo=$ac_try;;
5116 esac
5117 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5118 $as_echo "$ac_try_echo"; } >&5
5119 (eval "$ac_try") 2>&5
5120 ac_status=$?
5121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5122 test $ac_status = 0; }; }; then
5123 cross_compiling=no
5124 else
5125 if test "$cross_compiling" = maybe; then
5126 cross_compiling=yes
5127 else
5128 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5129 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5130 as_fn_error "cannot run C compiled programs.
5131 If you meant to cross compile, use \`--host'.
5132 See \`config.log' for more details." "$LINENO" 5; }
5133 fi
5134 fi
5135 fi
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5137 $as_echo "$cross_compiling" >&6; }
5138
5139 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5140 ac_clean_files=$ac_clean_files_save
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5142 $as_echo_n "checking for suffix of object files... " >&6; }
5143 if test "${ac_cv_objext+set}" = set; then :
5144 $as_echo_n "(cached) " >&6
5145 else
5146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5147 /* end confdefs.h. */
5148
5149 int
5150 main ()
5151 {
5152
5153 ;
5154 return 0;
5155 }
5156 _ACEOF
5157 rm -f conftest.o conftest.obj
5158 if { { ac_try="$ac_compile"
5159 case "(($ac_try" in
5160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5161 *) ac_try_echo=$ac_try;;
5162 esac
5163 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5164 $as_echo "$ac_try_echo"; } >&5
5165 (eval "$ac_compile") 2>&5
5166 ac_status=$?
5167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5168 test $ac_status = 0; }; then :
5169 for ac_file in conftest.o conftest.obj conftest.*; do
5170 test -f "$ac_file" || continue;
5171 case $ac_file in
5172 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5173 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5174 break;;
5175 esac
5176 done
5177 else
5178 $as_echo "$as_me: failed program was:" >&5
5179 sed 's/^/| /' conftest.$ac_ext >&5
5180
5181 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5182 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5183 as_fn_error "cannot compute suffix of object files: cannot compile
5184 See \`config.log' for more details." "$LINENO" 5; }
5185 fi
5186 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5187 fi
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5189 $as_echo "$ac_cv_objext" >&6; }
5190 OBJEXT=$ac_cv_objext
5191 ac_objext=$OBJEXT
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5193 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5194 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5195 $as_echo_n "(cached) " >&6
5196 else
5197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5198 /* end confdefs.h. */
5199
5200 int
5201 main ()
5202 {
5203 #ifndef __GNUC__
5204 choke me
5205 #endif
5206
5207 ;
5208 return 0;
5209 }
5210 _ACEOF
5211 if ac_fn_c_try_compile "$LINENO"; then :
5212 ac_compiler_gnu=yes
5213 else
5214 ac_compiler_gnu=no
5215 fi
5216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5217 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5218
5219 fi
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5221 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5222 if test $ac_compiler_gnu = yes; then
5223 GCC=yes
5224 else
5225 GCC=
5226 fi
5227 ac_test_CFLAGS=${CFLAGS+set}
5228 ac_save_CFLAGS=$CFLAGS
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5230 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5231 if test "${ac_cv_prog_cc_g+set}" = set; then :
5232 $as_echo_n "(cached) " >&6
5233 else
5234 ac_save_c_werror_flag=$ac_c_werror_flag
5235 ac_c_werror_flag=yes
5236 ac_cv_prog_cc_g=no
5237 CFLAGS="-g"
5238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5239 /* end confdefs.h. */
5240
5241 int
5242 main ()
5243 {
5244
5245 ;
5246 return 0;
5247 }
5248 _ACEOF
5249 if ac_fn_c_try_compile "$LINENO"; then :
5250 ac_cv_prog_cc_g=yes
5251 else
5252 CFLAGS=""
5253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5254 /* end confdefs.h. */
5255
5256 int
5257 main ()
5258 {
5259
5260 ;
5261 return 0;
5262 }
5263 _ACEOF
5264 if ac_fn_c_try_compile "$LINENO"; then :
5265
5266 else
5267 ac_c_werror_flag=$ac_save_c_werror_flag
5268 CFLAGS="-g"
5269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5270 /* end confdefs.h. */
5271
5272 int
5273 main ()
5274 {
5275
5276 ;
5277 return 0;
5278 }
5279 _ACEOF
5280 if ac_fn_c_try_compile "$LINENO"; then :
5281 ac_cv_prog_cc_g=yes
5282 fi
5283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5284 fi
5285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5286 fi
5287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5288 ac_c_werror_flag=$ac_save_c_werror_flag
5289 fi
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5291 $as_echo "$ac_cv_prog_cc_g" >&6; }
5292 if test "$ac_test_CFLAGS" = set; then
5293 CFLAGS=$ac_save_CFLAGS
5294 elif test $ac_cv_prog_cc_g = yes; then
5295 if test "$GCC" = yes; then
5296 CFLAGS="-g -O2"
5297 else
5298 CFLAGS="-g"
5299 fi
5300 else
5301 if test "$GCC" = yes; then
5302 CFLAGS="-O2"
5303 else
5304 CFLAGS=
5305 fi
5306 fi
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5308 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5309 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5310 $as_echo_n "(cached) " >&6
5311 else
5312 ac_cv_prog_cc_c89=no
5313 ac_save_CC=$CC
5314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5315 /* end confdefs.h. */
5316 #include <stdarg.h>
5317 #include <stdio.h>
5318 #include <sys/types.h>
5319 #include <sys/stat.h>
5320 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5321 struct buf { int x; };
5322 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5323 static char *e (p, i)
5324 char **p;
5325 int i;
5326 {
5327 return p[i];
5328 }
5329 static char *f (char * (*g) (char **, int), char **p, ...)
5330 {
5331 char *s;
5332 va_list v;
5333 va_start (v,p);
5334 s = g (p, va_arg (v,int));
5335 va_end (v);
5336 return s;
5337 }
5338
5339 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5340 function prototypes and stuff, but not '\xHH' hex character constants.
5341 These don't provoke an error unfortunately, instead are silently treated
5342 as 'x'. The following induces an error, until -std is added to get
5343 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5344 array size at least. It's necessary to write '\x00'==0 to get something
5345 that's true only with -std. */
5346 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5347
5348 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5349 inside strings and character constants. */
5350 #define FOO(x) 'x'
5351 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5352
5353 int test (int i, double x);
5354 struct s1 {int (*f) (int a);};
5355 struct s2 {int (*f) (double a);};
5356 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5357 int argc;
5358 char **argv;
5359 int
5360 main ()
5361 {
5362 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5363 ;
5364 return 0;
5365 }
5366 _ACEOF
5367 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5368 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5369 do
5370 CC="$ac_save_CC $ac_arg"
5371 if ac_fn_c_try_compile "$LINENO"; then :
5372 ac_cv_prog_cc_c89=$ac_arg
5373 fi
5374 rm -f core conftest.err conftest.$ac_objext
5375 test "x$ac_cv_prog_cc_c89" != "xno" && break
5376 done
5377 rm -f conftest.$ac_ext
5378 CC=$ac_save_CC
5379
5380 fi
5381 # AC_CACHE_VAL
5382 case "x$ac_cv_prog_cc_c89" in
5383 x)
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5385 $as_echo "none needed" >&6; } ;;
5386 xno)
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5388 $as_echo "unsupported" >&6; } ;;
5389 *)
5390 CC="$CC $ac_cv_prog_cc_c89"
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5392 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5393 esac
5394 if test "x$ac_cv_prog_cc_c89" != xno; then :
5395
5396 fi
5397
5398 ac_ext=c
5399 ac_cpp='$CPP $CPPFLAGS'
5400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5403 DEPDIR="${am__leading_dot}deps"
5404
5405 ac_config_commands="$ac_config_commands depfiles"
5406
5407
5408 am_make=${MAKE-make}
5409 cat > confinc << 'END'
5410 am__doit:
5411 @echo this is the am__doit target
5412 .PHONY: am__doit
5413 END
5414 # If we don't find an include directive, just comment out the code.
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5416 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5417 am__include="#"
5418 am__quote=
5419 _am_result=none
5420 # First try GNU make style include.
5421 echo "include confinc" > confmf
5422 # Ignore all kinds of additional output from `make'.
5423 case `$am_make -s -f confmf 2> /dev/null` in #(
5424 *the\ am__doit\ target*)
5425 am__include=include
5426 am__quote=
5427 _am_result=GNU
5428 ;;
5429 esac
5430 # Now try BSD make style include.
5431 if test "$am__include" = "#"; then
5432 echo '.include "confinc"' > confmf
5433 case `$am_make -s -f confmf 2> /dev/null` in #(
5434 *the\ am__doit\ target*)
5435 am__include=.include
5436 am__quote="\""
5437 _am_result=BSD
5438 ;;
5439 esac
5440 fi
5441
5442
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5444 $as_echo "$_am_result" >&6; }
5445 rm -f confinc confmf
5446
5447 # Check whether --enable-dependency-tracking was given.
5448 if test "${enable_dependency_tracking+set}" = set; then :
5449 enableval=$enable_dependency_tracking;
5450 fi
5451
5452 if test "x$enable_dependency_tracking" != xno; then
5453 am_depcomp="$ac_aux_dir/depcomp"
5454 AMDEPBACKSLASH='\'
5455 fi
5456 if test "x$enable_dependency_tracking" != xno; then
5457 AMDEP_TRUE=
5458 AMDEP_FALSE='#'
5459 else
5460 AMDEP_TRUE='#'
5461 AMDEP_FALSE=
5462 fi
5463
5464
5465
5466 depcc="$CC" am_compiler_list=
5467
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5469 $as_echo_n "checking dependency style of $depcc... " >&6; }
5470 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5471 $as_echo_n "(cached) " >&6
5472 else
5473 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5474 # We make a subdir and do the tests there. Otherwise we can end up
5475 # making bogus files that we don't know about and never remove. For
5476 # instance it was reported that on HP-UX the gcc test will end up
5477 # making a dummy file named `D' -- because `-MD' means `put the output
5478 # in D'.
5479 mkdir conftest.dir
5480 # Copy depcomp to subdir because otherwise we won't find it if we're
5481 # using a relative directory.
5482 cp "$am_depcomp" conftest.dir
5483 cd conftest.dir
5484 # We will build objects and dependencies in a subdirectory because
5485 # it helps to detect inapplicable dependency modes. For instance
5486 # both Tru64's cc and ICC support -MD to output dependencies as a
5487 # side effect of compilation, but ICC will put the dependencies in
5488 # the current directory while Tru64 will put them in the object
5489 # directory.
5490 mkdir sub
5491
5492 am_cv_CC_dependencies_compiler_type=none
5493 if test "$am_compiler_list" = ""; then
5494 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5495 fi
5496 am__universal=false
5497 case " $depcc " in #(
5498 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5499 esac
5500
5501 for depmode in $am_compiler_list; do
5502 # Setup a source with many dependencies, because some compilers
5503 # like to wrap large dependency lists on column 80 (with \), and
5504 # we should not choose a depcomp mode which is confused by this.
5505 #
5506 # We need to recreate these files for each test, as the compiler may
5507 # overwrite some of them when testing with obscure command lines.
5508 # This happens at least with the AIX C compiler.
5509 : > sub/conftest.c
5510 for i in 1 2 3 4 5 6; do
5511 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5512 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5513 # Solaris 8's {/usr,}/bin/sh.
5514 touch sub/conftst$i.h
5515 done
5516 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5517
5518 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5519 # mode. It turns out that the SunPro C++ compiler does not properly
5520 # handle `-M -o', and we need to detect this. Also, some Intel
5521 # versions had trouble with output in subdirs
5522 am__obj=sub/conftest.${OBJEXT-o}
5523 am__minus_obj="-o $am__obj"
5524 case $depmode in
5525 gcc)
5526 # This depmode causes a compiler race in universal mode.
5527 test "$am__universal" = false || continue
5528 ;;
5529 nosideeffect)
5530 # after this tag, mechanisms are not by side-effect, so they'll
5531 # only be used when explicitly requested
5532 if test "x$enable_dependency_tracking" = xyes; then
5533 continue
5534 else
5535 break
5536 fi
5537 ;;
5538 msvisualcpp | msvcmsys)
5539 # This compiler won't grok `-c -o', but also, the minuso test has
5540 # not run yet. These depmodes are late enough in the game, and
5541 # so weak that their functioning should not be impacted.
5542 am__obj=conftest.${OBJEXT-o}
5543 am__minus_obj=
5544 ;;
5545 none) break ;;
5546 esac
5547 if depmode=$depmode \
5548 source=sub/conftest.c object=$am__obj \
5549 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5550 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5551 >/dev/null 2>conftest.err &&
5552 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5553 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5554 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5555 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5556 # icc doesn't choke on unknown options, it will just issue warnings
5557 # or remarks (even with -Werror). So we grep stderr for any message
5558 # that says an option was ignored or not supported.
5559 # When given -MP, icc 7.0 and 7.1 complain thusly:
5560 # icc: Command line warning: ignoring option '-M'; no argument required
5561 # The diagnosis changed in icc 8.0:
5562 # icc: Command line remark: option '-MP' not supported
5563 if (grep 'ignoring option' conftest.err ||
5564 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5565 am_cv_CC_dependencies_compiler_type=$depmode
5566 break
5567 fi
5568 fi
5569 done
5570
5571 cd ..
5572 rm -rf conftest.dir
5573 else
5574 am_cv_CC_dependencies_compiler_type=none
5575 fi
5576
5577 fi
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5579 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5580 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5581
5582 if
5583 test "x$enable_dependency_tracking" != xno \
5584 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5585 am__fastdepCC_TRUE=
5586 am__fastdepCC_FALSE='#'
5587 else
5588 am__fastdepCC_TRUE='#'
5589 am__fastdepCC_FALSE=
5590 fi
5591
5592
5593 if test "x$CC" != xcc; then
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5595 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5596 else
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5598 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5599 fi
5600 set dummy $CC; ac_cc=`$as_echo "$2" |
5601 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5602 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5603 $as_echo_n "(cached) " >&6
5604 else
5605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5606 /* end confdefs.h. */
5607
5608 int
5609 main ()
5610 {
5611
5612 ;
5613 return 0;
5614 }
5615 _ACEOF
5616 # Make sure it works both with $CC and with simple cc.
5617 # We do the test twice because some compilers refuse to overwrite an
5618 # existing .o file with -o, though they will create one.
5619 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5620 rm -f conftest2.*
5621 if { { case "(($ac_try" in
5622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5623 *) ac_try_echo=$ac_try;;
5624 esac
5625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5626 $as_echo "$ac_try_echo"; } >&5
5627 (eval "$ac_try") 2>&5
5628 ac_status=$?
5629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5630 test $ac_status = 0; } &&
5631 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5633 *) ac_try_echo=$ac_try;;
5634 esac
5635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5636 $as_echo "$ac_try_echo"; } >&5
5637 (eval "$ac_try") 2>&5
5638 ac_status=$?
5639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5640 test $ac_status = 0; };
5641 then
5642 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5643 if test "x$CC" != xcc; then
5644 # Test first that cc exists at all.
5645 if { ac_try='cc -c conftest.$ac_ext >&5'
5646 { { case "(($ac_try" in
5647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5648 *) ac_try_echo=$ac_try;;
5649 esac
5650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5651 $as_echo "$ac_try_echo"; } >&5
5652 (eval "$ac_try") 2>&5
5653 ac_status=$?
5654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5655 test $ac_status = 0; }; }; then
5656 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5657 rm -f conftest2.*
5658 if { { case "(($ac_try" in
5659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5660 *) ac_try_echo=$ac_try;;
5661 esac
5662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5663 $as_echo "$ac_try_echo"; } >&5
5664 (eval "$ac_try") 2>&5
5665 ac_status=$?
5666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5667 test $ac_status = 0; } &&
5668 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5670 *) ac_try_echo=$ac_try;;
5671 esac
5672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5673 $as_echo "$ac_try_echo"; } >&5
5674 (eval "$ac_try") 2>&5
5675 ac_status=$?
5676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5677 test $ac_status = 0; };
5678 then
5679 # cc works too.
5680 :
5681 else
5682 # cc exists but doesn't like -o.
5683 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5684 fi
5685 fi
5686 fi
5687 else
5688 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5689 fi
5690 rm -f core conftest*
5691
5692 fi
5693 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5695 $as_echo "yes" >&6; }
5696 else
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5698 $as_echo "no" >&6; }
5699
5700 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5701
5702 fi
5703
5704 # FIXME: we rely on the cache variable name because
5705 # there is no other way.
5706 set dummy $CC
5707 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5708 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5709 if test "$am_t" != yes; then
5710 # Losing compiler, so override with the script.
5711 # FIXME: It is wrong to rewrite CC.
5712 # But if we don't then we get into trouble of one sort or another.
5713 # A longer-term fix would be to have automake use am__CC in this case,
5714 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5715 CC="$am_aux_dir/compile $CC"
5716 fi
5717
5718
5719
5720 if test x$GCC = xyes; then
5721 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5722 else
5723 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5724 fi
5725
5726 # Initialize gnulib right after choosing the compiler.
5727
5728 ac_ext=c
5729 ac_cpp='$CPP $CPPFLAGS'
5730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5734 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5735 # On Suns, sometimes $CPP names a directory.
5736 if test -n "$CPP" && test -d "$CPP"; then
5737 CPP=
5738 fi
5739 if test -z "$CPP"; then
5740 if test "${ac_cv_prog_CPP+set}" = set; then :
5741 $as_echo_n "(cached) " >&6
5742 else
5743 # Double quotes because CPP needs to be expanded
5744 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5745 do
5746 ac_preproc_ok=false
5747 for ac_c_preproc_warn_flag in '' yes
5748 do
5749 # Use a header file that comes with gcc, so configuring glibc
5750 # with a fresh cross-compiler works.
5751 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5752 # <limits.h> exists even on freestanding compilers.
5753 # On the NeXT, cc -E runs the code through the compiler's parser,
5754 # not just through cpp. "Syntax error" is here to catch this case.
5755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5756 /* end confdefs.h. */
5757 #ifdef __STDC__
5758 # include <limits.h>
5759 #else
5760 # include <assert.h>
5761 #endif
5762 Syntax error
5763 _ACEOF
5764 if ac_fn_c_try_cpp "$LINENO"; then :
5765
5766 else
5767 # Broken: fails on valid input.
5768 continue
5769 fi
5770 rm -f conftest.err conftest.$ac_ext
5771
5772 # OK, works on sane cases. Now check whether nonexistent headers
5773 # can be detected and how.
5774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5775 /* end confdefs.h. */
5776 #include <ac_nonexistent.h>
5777 _ACEOF
5778 if ac_fn_c_try_cpp "$LINENO"; then :
5779 # Broken: success on invalid input.
5780 continue
5781 else
5782 # Passes both tests.
5783 ac_preproc_ok=:
5784 break
5785 fi
5786 rm -f conftest.err conftest.$ac_ext
5787
5788 done
5789 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5790 rm -f conftest.err conftest.$ac_ext
5791 if $ac_preproc_ok; then :
5792 break
5793 fi
5794
5795 done
5796 ac_cv_prog_CPP=$CPP
5797
5798 fi
5799 CPP=$ac_cv_prog_CPP
5800 else
5801 ac_cv_prog_CPP=$CPP
5802 fi
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5804 $as_echo "$CPP" >&6; }
5805 ac_preproc_ok=false
5806 for ac_c_preproc_warn_flag in '' yes
5807 do
5808 # Use a header file that comes with gcc, so configuring glibc
5809 # with a fresh cross-compiler works.
5810 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5811 # <limits.h> exists even on freestanding compilers.
5812 # On the NeXT, cc -E runs the code through the compiler's parser,
5813 # not just through cpp. "Syntax error" is here to catch this case.
5814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5815 /* end confdefs.h. */
5816 #ifdef __STDC__
5817 # include <limits.h>
5818 #else
5819 # include <assert.h>
5820 #endif
5821 Syntax error
5822 _ACEOF
5823 if ac_fn_c_try_cpp "$LINENO"; then :
5824
5825 else
5826 # Broken: fails on valid input.
5827 continue
5828 fi
5829 rm -f conftest.err conftest.$ac_ext
5830
5831 # OK, works on sane cases. Now check whether nonexistent headers
5832 # can be detected and how.
5833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5834 /* end confdefs.h. */
5835 #include <ac_nonexistent.h>
5836 _ACEOF
5837 if ac_fn_c_try_cpp "$LINENO"; then :
5838 # Broken: success on invalid input.
5839 continue
5840 else
5841 # Passes both tests.
5842 ac_preproc_ok=:
5843 break
5844 fi
5845 rm -f conftest.err conftest.$ac_ext
5846
5847 done
5848 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5849 rm -f conftest.err conftest.$ac_ext
5850 if $ac_preproc_ok; then :
5851
5852 else
5853 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5854 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5855 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5856 See \`config.log' for more details." "$LINENO" 5; }
5857 fi
5858
5859 ac_ext=c
5860 ac_cpp='$CPP $CPPFLAGS'
5861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5864
5865
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5867 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5868 if test "${ac_cv_path_GREP+set}" = set; then :
5869 $as_echo_n "(cached) " >&6
5870 else
5871 if test -z "$GREP"; then
5872 ac_path_GREP_found=false
5873 # Loop through the user's path and test for each of PROGNAME-LIST
5874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5875 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5876 do
5877 IFS=$as_save_IFS
5878 test -z "$as_dir" && as_dir=.
5879 for ac_prog in grep ggrep; do
5880 for ac_exec_ext in '' $ac_executable_extensions; do
5881 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5882 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5883 # Check for GNU ac_path_GREP and select it if it is found.
5884 # Check for GNU $ac_path_GREP
5885 case `"$ac_path_GREP" --version 2>&1` in
5886 *GNU*)
5887 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5888 *)
5889 ac_count=0
5890 $as_echo_n 0123456789 >"conftest.in"
5891 while :
5892 do
5893 cat "conftest.in" "conftest.in" >"conftest.tmp"
5894 mv "conftest.tmp" "conftest.in"
5895 cp "conftest.in" "conftest.nl"
5896 $as_echo 'GREP' >> "conftest.nl"
5897 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5898 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5899 as_fn_arith $ac_count + 1 && ac_count=$as_val
5900 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5901 # Best one so far, save it but keep looking for a better one
5902 ac_cv_path_GREP="$ac_path_GREP"
5903 ac_path_GREP_max=$ac_count
5904 fi
5905 # 10*(2^10) chars as input seems more than enough
5906 test $ac_count -gt 10 && break
5907 done
5908 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5909 esac
5910
5911 $ac_path_GREP_found && break 3
5912 done
5913 done
5914 done
5915 IFS=$as_save_IFS
5916 if test -z "$ac_cv_path_GREP"; then
5917 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5918 fi
5919 else
5920 ac_cv_path_GREP=$GREP
5921 fi
5922
5923 fi
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5925 $as_echo "$ac_cv_path_GREP" >&6; }
5926 GREP="$ac_cv_path_GREP"
5927
5928
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5930 $as_echo_n "checking for egrep... " >&6; }
5931 if test "${ac_cv_path_EGREP+set}" = set; then :
5932 $as_echo_n "(cached) " >&6
5933 else
5934 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5935 then ac_cv_path_EGREP="$GREP -E"
5936 else
5937 if test -z "$EGREP"; then
5938 ac_path_EGREP_found=false
5939 # Loop through the user's path and test for each of PROGNAME-LIST
5940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5941 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5942 do
5943 IFS=$as_save_IFS
5944 test -z "$as_dir" && as_dir=.
5945 for ac_prog in egrep; do
5946 for ac_exec_ext in '' $ac_executable_extensions; do
5947 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5948 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5949 # Check for GNU ac_path_EGREP and select it if it is found.
5950 # Check for GNU $ac_path_EGREP
5951 case `"$ac_path_EGREP" --version 2>&1` in
5952 *GNU*)
5953 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5954 *)
5955 ac_count=0
5956 $as_echo_n 0123456789 >"conftest.in"
5957 while :
5958 do
5959 cat "conftest.in" "conftest.in" >"conftest.tmp"
5960 mv "conftest.tmp" "conftest.in"
5961 cp "conftest.in" "conftest.nl"
5962 $as_echo 'EGREP' >> "conftest.nl"
5963 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5964 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5965 as_fn_arith $ac_count + 1 && ac_count=$as_val
5966 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5967 # Best one so far, save it but keep looking for a better one
5968 ac_cv_path_EGREP="$ac_path_EGREP"
5969 ac_path_EGREP_max=$ac_count
5970 fi
5971 # 10*(2^10) chars as input seems more than enough
5972 test $ac_count -gt 10 && break
5973 done
5974 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5975 esac
5976
5977 $ac_path_EGREP_found && break 3
5978 done
5979 done
5980 done
5981 IFS=$as_save_IFS
5982 if test -z "$ac_cv_path_EGREP"; then
5983 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5984 fi
5985 else
5986 ac_cv_path_EGREP=$EGREP
5987 fi
5988
5989 fi
5990 fi
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5992 $as_echo "$ac_cv_path_EGREP" >&6; }
5993 EGREP="$ac_cv_path_EGREP"
5994
5995
5996
5997
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
5999 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6000 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6001 $as_echo_n "(cached) " >&6
6002 else
6003
6004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6005 /* end confdefs.h. */
6006
6007 #ifdef __ACK__
6008 Amsterdam
6009 #endif
6010
6011 _ACEOF
6012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6013 $EGREP "Amsterdam" >/dev/null 2>&1; then :
6014 gl_cv_c_amsterdam_compiler=yes
6015 else
6016 gl_cv_c_amsterdam_compiler=no
6017 fi
6018 rm -f conftest*
6019
6020
6021 fi
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6023 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6024 if test -z "$AR"; then
6025 if test $gl_cv_c_amsterdam_compiler = yes; then
6026 AR='cc -c.a'
6027 if test -z "$ARFLAGS"; then
6028 ARFLAGS='-o'
6029 fi
6030 else
6031 if test -n "$ac_tool_prefix"; then
6032 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6033 set dummy ${ac_tool_prefix}ar; ac_word=$2
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6035 $as_echo_n "checking for $ac_word... " >&6; }
6036 if test "${ac_cv_prog_AR+set}" = set; then :
6037 $as_echo_n "(cached) " >&6
6038 else
6039 if test -n "$AR"; then
6040 ac_cv_prog_AR="$AR" # Let the user override the test.
6041 else
6042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6043 for as_dir in $PATH
6044 do
6045 IFS=$as_save_IFS
6046 test -z "$as_dir" && as_dir=.
6047 for ac_exec_ext in '' $ac_executable_extensions; do
6048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6049 ac_cv_prog_AR="${ac_tool_prefix}ar"
6050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6051 break 2
6052 fi
6053 done
6054 done
6055 IFS=$as_save_IFS
6056
6057 fi
6058 fi
6059 AR=$ac_cv_prog_AR
6060 if test -n "$AR"; then
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6062 $as_echo "$AR" >&6; }
6063 else
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6065 $as_echo "no" >&6; }
6066 fi
6067
6068
6069 fi
6070 if test -z "$ac_cv_prog_AR"; then
6071 ac_ct_AR=$AR
6072 # Extract the first word of "ar", so it can be a program name with args.
6073 set dummy ar; ac_word=$2
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6075 $as_echo_n "checking for $ac_word... " >&6; }
6076 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6077 $as_echo_n "(cached) " >&6
6078 else
6079 if test -n "$ac_ct_AR"; then
6080 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6081 else
6082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6083 for as_dir in $PATH
6084 do
6085 IFS=$as_save_IFS
6086 test -z "$as_dir" && as_dir=.
6087 for ac_exec_ext in '' $ac_executable_extensions; do
6088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6089 ac_cv_prog_ac_ct_AR="ar"
6090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6091 break 2
6092 fi
6093 done
6094 done
6095 IFS=$as_save_IFS
6096
6097 fi
6098 fi
6099 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6100 if test -n "$ac_ct_AR"; then
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6102 $as_echo "$ac_ct_AR" >&6; }
6103 else
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6105 $as_echo "no" >&6; }
6106 fi
6107
6108 if test "x$ac_ct_AR" = x; then
6109 AR="ar"
6110 else
6111 case $cross_compiling:$ac_tool_warned in
6112 yes:)
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6114 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6115 ac_tool_warned=yes ;;
6116 esac
6117 AR=$ac_ct_AR
6118 fi
6119 else
6120 AR="$ac_cv_prog_AR"
6121 fi
6122
6123 if test -z "$ARFLAGS"; then
6124 ARFLAGS='cru'
6125 fi
6126 fi
6127 else
6128 if test -z "$ARFLAGS"; then
6129 ARFLAGS='cru'
6130 fi
6131 fi
6132
6133
6134 if test -z "$RANLIB"; then
6135 if test $gl_cv_c_amsterdam_compiler = yes; then
6136 RANLIB=':'
6137 else
6138 if test -n "$ac_tool_prefix"; then
6139 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6140 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6142 $as_echo_n "checking for $ac_word... " >&6; }
6143 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6144 $as_echo_n "(cached) " >&6
6145 else
6146 if test -n "$RANLIB"; then
6147 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6148 else
6149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6150 for as_dir in $PATH
6151 do
6152 IFS=$as_save_IFS
6153 test -z "$as_dir" && as_dir=.
6154 for ac_exec_ext in '' $ac_executable_extensions; do
6155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6156 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6158 break 2
6159 fi
6160 done
6161 done
6162 IFS=$as_save_IFS
6163
6164 fi
6165 fi
6166 RANLIB=$ac_cv_prog_RANLIB
6167 if test -n "$RANLIB"; then
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6169 $as_echo "$RANLIB" >&6; }
6170 else
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6172 $as_echo "no" >&6; }
6173 fi
6174
6175
6176 fi
6177 if test -z "$ac_cv_prog_RANLIB"; then
6178 ac_ct_RANLIB=$RANLIB
6179 # Extract the first word of "ranlib", so it can be a program name with args.
6180 set dummy ranlib; ac_word=$2
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6182 $as_echo_n "checking for $ac_word... " >&6; }
6183 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6184 $as_echo_n "(cached) " >&6
6185 else
6186 if test -n "$ac_ct_RANLIB"; then
6187 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6188 else
6189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6190 for as_dir in $PATH
6191 do
6192 IFS=$as_save_IFS
6193 test -z "$as_dir" && as_dir=.
6194 for ac_exec_ext in '' $ac_executable_extensions; do
6195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6196 ac_cv_prog_ac_ct_RANLIB="ranlib"
6197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6198 break 2
6199 fi
6200 done
6201 done
6202 IFS=$as_save_IFS
6203
6204 fi
6205 fi
6206 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6207 if test -n "$ac_ct_RANLIB"; then
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6209 $as_echo "$ac_ct_RANLIB" >&6; }
6210 else
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6212 $as_echo "no" >&6; }
6213 fi
6214
6215 if test "x$ac_ct_RANLIB" = x; then
6216 RANLIB=":"
6217 else
6218 case $cross_compiling:$ac_tool_warned in
6219 yes:)
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6221 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6222 ac_tool_warned=yes ;;
6223 esac
6224 RANLIB=$ac_ct_RANLIB
6225 fi
6226 else
6227 RANLIB="$ac_cv_prog_RANLIB"
6228 fi
6229
6230 fi
6231 fi
6232
6233
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6235 $as_echo_n "checking for ANSI C header files... " >&6; }
6236 if test "${ac_cv_header_stdc+set}" = set; then :
6237 $as_echo_n "(cached) " >&6
6238 else
6239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6240 /* end confdefs.h. */
6241 #include <stdlib.h>
6242 #include <stdarg.h>
6243 #include <string.h>
6244 #include <float.h>
6245
6246 int
6247 main ()
6248 {
6249
6250 ;
6251 return 0;
6252 }
6253 _ACEOF
6254 if ac_fn_c_try_compile "$LINENO"; then :
6255 ac_cv_header_stdc=yes
6256 else
6257 ac_cv_header_stdc=no
6258 fi
6259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6260
6261 if test $ac_cv_header_stdc = yes; then
6262 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6264 /* end confdefs.h. */
6265 #include <string.h>
6266
6267 _ACEOF
6268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6269 $EGREP "memchr" >/dev/null 2>&1; then :
6270
6271 else
6272 ac_cv_header_stdc=no
6273 fi
6274 rm -f conftest*
6275
6276 fi
6277
6278 if test $ac_cv_header_stdc = yes; then
6279 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6281 /* end confdefs.h. */
6282 #include <stdlib.h>
6283
6284 _ACEOF
6285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6286 $EGREP "free" >/dev/null 2>&1; then :
6287
6288 else
6289 ac_cv_header_stdc=no
6290 fi
6291 rm -f conftest*
6292
6293 fi
6294
6295 if test $ac_cv_header_stdc = yes; then
6296 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6297 if test "$cross_compiling" = yes; then :
6298 :
6299 else
6300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6301 /* end confdefs.h. */
6302 #include <ctype.h>
6303 #include <stdlib.h>
6304 #if ((' ' & 0x0FF) == 0x020)
6305 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6306 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6307 #else
6308 # define ISLOWER(c) \
6309 (('a' <= (c) && (c) <= 'i') \
6310 || ('j' <= (c) && (c) <= 'r') \
6311 || ('s' <= (c) && (c) <= 'z'))
6312 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6313 #endif
6314
6315 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6316 int
6317 main ()
6318 {
6319 int i;
6320 for (i = 0; i < 256; i++)
6321 if (XOR (islower (i), ISLOWER (i))
6322 || toupper (i) != TOUPPER (i))
6323 return 2;
6324 return 0;
6325 }
6326 _ACEOF
6327 if ac_fn_c_try_run "$LINENO"; then :
6328
6329 else
6330 ac_cv_header_stdc=no
6331 fi
6332 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6333 conftest.$ac_objext conftest.beam conftest.$ac_ext
6334 fi
6335
6336 fi
6337 fi
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6339 $as_echo "$ac_cv_header_stdc" >&6; }
6340 if test $ac_cv_header_stdc = yes; then
6341
6342 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6343
6344 fi
6345
6346 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6347 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6348 inttypes.h stdint.h unistd.h
6349 do :
6350 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6351 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6352 "
6353 eval as_val=\$$as_ac_Header
6354 if test "x$as_val" = x""yes; then :
6355 cat >>confdefs.h <<_ACEOF
6356 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6357 _ACEOF
6358
6359 fi
6360
6361 done
6362
6363
6364
6365
6366
6367 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6368 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6369 MINIX=yes
6370 else
6371 MINIX=
6372 fi
6373
6374
6375 if test "$MINIX" = yes; then
6376
6377 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6378
6379
6380 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6381
6382
6383 $as_echo "#define _MINIX 1" >>confdefs.h
6384
6385 fi
6386
6387 case "$host_os" in
6388 hpux*)
6389
6390 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6391
6392 ;;
6393 esac
6394
6395
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6397 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6398 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6399 $as_echo_n "(cached) " >&6
6400 else
6401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6402 /* end confdefs.h. */
6403
6404 # define __EXTENSIONS__ 1
6405 $ac_includes_default
6406 int
6407 main ()
6408 {
6409
6410 ;
6411 return 0;
6412 }
6413 _ACEOF
6414 if ac_fn_c_try_compile "$LINENO"; then :
6415 ac_cv_safe_to_define___extensions__=yes
6416 else
6417 ac_cv_safe_to_define___extensions__=no
6418 fi
6419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6420 fi
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6422 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6423 test $ac_cv_safe_to_define___extensions__ = yes &&
6424 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6425
6426 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6427
6428 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6429
6430 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6431
6432 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6433
6434 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6435
6436
6437
6438
6439
6440
6441
6442
6443 # Check whether --enable-largefile was given.
6444 if test "${enable_largefile+set}" = set; then :
6445 enableval=$enable_largefile;
6446 fi
6447
6448 if test "$enable_largefile" != no; then
6449
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6451 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6452 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6453 $as_echo_n "(cached) " >&6
6454 else
6455 ac_cv_sys_largefile_CC=no
6456 if test "$GCC" != yes; then
6457 ac_save_CC=$CC
6458 while :; do
6459 # IRIX 6.2 and later do not support large files by default,
6460 # so use the C compiler's -n32 option if that helps.
6461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6462 /* end confdefs.h. */
6463 #include <sys/types.h>
6464 /* Check that off_t can represent 2**63 - 1 correctly.
6465 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6466 since some C++ compilers masquerading as C compilers
6467 incorrectly reject 9223372036854775807. */
6468 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6469 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6470 && LARGE_OFF_T % 2147483647 == 1)
6471 ? 1 : -1];
6472 int
6473 main ()
6474 {
6475
6476 ;
6477 return 0;
6478 }
6479 _ACEOF
6480 if ac_fn_c_try_compile "$LINENO"; then :
6481 break
6482 fi
6483 rm -f core conftest.err conftest.$ac_objext
6484 CC="$CC -n32"
6485 if ac_fn_c_try_compile "$LINENO"; then :
6486 ac_cv_sys_largefile_CC=' -n32'; break
6487 fi
6488 rm -f core conftest.err conftest.$ac_objext
6489 break
6490 done
6491 CC=$ac_save_CC
6492 rm -f conftest.$ac_ext
6493 fi
6494 fi
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6496 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6497 if test "$ac_cv_sys_largefile_CC" != no; then
6498 CC=$CC$ac_cv_sys_largefile_CC
6499 fi
6500
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6502 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6503 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6504 $as_echo_n "(cached) " >&6
6505 else
6506 while :; do
6507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6508 /* end confdefs.h. */
6509 #include <sys/types.h>
6510 /* Check that off_t can represent 2**63 - 1 correctly.
6511 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6512 since some C++ compilers masquerading as C compilers
6513 incorrectly reject 9223372036854775807. */
6514 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6515 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6516 && LARGE_OFF_T % 2147483647 == 1)
6517 ? 1 : -1];
6518 int
6519 main ()
6520 {
6521
6522 ;
6523 return 0;
6524 }
6525 _ACEOF
6526 if ac_fn_c_try_compile "$LINENO"; then :
6527 ac_cv_sys_file_offset_bits=no; break
6528 fi
6529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6531 /* end confdefs.h. */
6532 #define _FILE_OFFSET_BITS 64
6533 #include <sys/types.h>
6534 /* Check that off_t can represent 2**63 - 1 correctly.
6535 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6536 since some C++ compilers masquerading as C compilers
6537 incorrectly reject 9223372036854775807. */
6538 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6539 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6540 && LARGE_OFF_T % 2147483647 == 1)
6541 ? 1 : -1];
6542 int
6543 main ()
6544 {
6545
6546 ;
6547 return 0;
6548 }
6549 _ACEOF
6550 if ac_fn_c_try_compile "$LINENO"; then :
6551 ac_cv_sys_file_offset_bits=64; break
6552 fi
6553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6554 ac_cv_sys_file_offset_bits=unknown
6555 break
6556 done
6557 fi
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6559 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6560 case $ac_cv_sys_file_offset_bits in #(
6561 no | unknown) ;;
6562 *)
6563 cat >>confdefs.h <<_ACEOF
6564 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6565 _ACEOF
6566 ;;
6567 esac
6568 rm -rf conftest*
6569 if test $ac_cv_sys_file_offset_bits = unknown; then
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6571 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6572 if test "${ac_cv_sys_large_files+set}" = set; then :
6573 $as_echo_n "(cached) " >&6
6574 else
6575 while :; do
6576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6577 /* end confdefs.h. */
6578 #include <sys/types.h>
6579 /* Check that off_t can represent 2**63 - 1 correctly.
6580 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6581 since some C++ compilers masquerading as C compilers
6582 incorrectly reject 9223372036854775807. */
6583 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6584 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6585 && LARGE_OFF_T % 2147483647 == 1)
6586 ? 1 : -1];
6587 int
6588 main ()
6589 {
6590
6591 ;
6592 return 0;
6593 }
6594 _ACEOF
6595 if ac_fn_c_try_compile "$LINENO"; then :
6596 ac_cv_sys_large_files=no; break
6597 fi
6598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6600 /* end confdefs.h. */
6601 #define _LARGE_FILES 1
6602 #include <sys/types.h>
6603 /* Check that off_t can represent 2**63 - 1 correctly.
6604 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6605 since some C++ compilers masquerading as C compilers
6606 incorrectly reject 9223372036854775807. */
6607 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6608 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6609 && LARGE_OFF_T % 2147483647 == 1)
6610 ? 1 : -1];
6611 int
6612 main ()
6613 {
6614
6615 ;
6616 return 0;
6617 }
6618 _ACEOF
6619 if ac_fn_c_try_compile "$LINENO"; then :
6620 ac_cv_sys_large_files=1; break
6621 fi
6622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6623 ac_cv_sys_large_files=unknown
6624 break
6625 done
6626 fi
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6628 $as_echo "$ac_cv_sys_large_files" >&6; }
6629 case $ac_cv_sys_large_files in #(
6630 no | unknown) ;;
6631 *)
6632 cat >>confdefs.h <<_ACEOF
6633 #define _LARGE_FILES $ac_cv_sys_large_files
6634 _ACEOF
6635 ;;
6636 esac
6637 rm -rf conftest*
6638 fi
6639
6640
6641 fi
6642
6643 case $ac_cv_prog_cc_stdc in #(
6644 no) :
6645 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6646 *) :
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6648 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6649 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6650 $as_echo_n "(cached) " >&6
6651 else
6652 ac_cv_prog_cc_c99=no
6653 ac_save_CC=$CC
6654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6655 /* end confdefs.h. */
6656 #include <stdarg.h>
6657 #include <stdbool.h>
6658 #include <stdlib.h>
6659 #include <wchar.h>
6660 #include <stdio.h>
6661
6662 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6663 #define debug(...) fprintf (stderr, __VA_ARGS__)
6664 #define showlist(...) puts (#__VA_ARGS__)
6665 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6666 static void
6667 test_varargs_macros (void)
6668 {
6669 int x = 1234;
6670 int y = 5678;
6671 debug ("Flag");
6672 debug ("X = %d\n", x);
6673 showlist (The first, second, and third items.);
6674 report (x>y, "x is %d but y is %d", x, y);
6675 }
6676
6677 // Check long long types.
6678 #define BIG64 18446744073709551615ull
6679 #define BIG32 4294967295ul
6680 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6681 #if !BIG_OK
6682 your preprocessor is broken;
6683 #endif
6684 #if BIG_OK
6685 #else
6686 your preprocessor is broken;
6687 #endif
6688 static long long int bignum = -9223372036854775807LL;
6689 static unsigned long long int ubignum = BIG64;
6690
6691 struct incomplete_array
6692 {
6693 int datasize;
6694 double data[];
6695 };
6696
6697 struct named_init {
6698 int number;
6699 const wchar_t *name;
6700 double average;
6701 };
6702
6703 typedef const char *ccp;
6704
6705 static inline int
6706 test_restrict (ccp restrict text)
6707 {
6708 // See if C++-style comments work.
6709 // Iterate through items via the restricted pointer.
6710 // Also check for declarations in for loops.
6711 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6712 continue;
6713 return 0;
6714 }
6715
6716 // Check varargs and va_copy.
6717 static void
6718 test_varargs (const char *format, ...)
6719 {
6720 va_list args;
6721 va_start (args, format);
6722 va_list args_copy;
6723 va_copy (args_copy, args);
6724
6725 const char *str;
6726 int number;
6727 float fnumber;
6728
6729 while (*format)
6730 {
6731 switch (*format++)
6732 {
6733 case 's': // string
6734 str = va_arg (args_copy, const char *);
6735 break;
6736 case 'd': // int
6737 number = va_arg (args_copy, int);
6738 break;
6739 case 'f': // float
6740 fnumber = va_arg (args_copy, double);
6741 break;
6742 default:
6743 break;
6744 }
6745 }
6746 va_end (args_copy);
6747 va_end (args);
6748 }
6749
6750 int
6751 main ()
6752 {
6753
6754 // Check bool.
6755 _Bool success = false;
6756
6757 // Check restrict.
6758 if (test_restrict ("String literal") == 0)
6759 success = true;
6760 char *restrict newvar = "Another string";
6761
6762 // Check varargs.
6763 test_varargs ("s, d' f .", "string", 65, 34.234);
6764 test_varargs_macros ();
6765
6766 // Check flexible array members.
6767 struct incomplete_array *ia =
6768 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6769 ia->datasize = 10;
6770 for (int i = 0; i < ia->datasize; ++i)
6771 ia->data[i] = i * 1.234;
6772
6773 // Check named initializers.
6774 struct named_init ni = {
6775 .number = 34,
6776 .name = L"Test wide string",
6777 .average = 543.34343,
6778 };
6779
6780 ni.number = 58;
6781
6782 int dynamic_array[ni.number];
6783 dynamic_array[ni.number - 1] = 543;
6784
6785 // work around unused variable warnings
6786 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6787 || dynamic_array[ni.number - 1] != 543);
6788
6789 ;
6790 return 0;
6791 }
6792 _ACEOF
6793 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6794 do
6795 CC="$ac_save_CC $ac_arg"
6796 if ac_fn_c_try_compile "$LINENO"; then :
6797 ac_cv_prog_cc_c99=$ac_arg
6798 fi
6799 rm -f core conftest.err conftest.$ac_objext
6800 test "x$ac_cv_prog_cc_c99" != "xno" && break
6801 done
6802 rm -f conftest.$ac_ext
6803 CC=$ac_save_CC
6804
6805 fi
6806 # AC_CACHE_VAL
6807 case "x$ac_cv_prog_cc_c99" in
6808 x)
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6810 $as_echo "none needed" >&6; } ;;
6811 xno)
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6813 $as_echo "unsupported" >&6; } ;;
6814 *)
6815 CC="$CC $ac_cv_prog_cc_c99"
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6817 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6818 esac
6819 if test "x$ac_cv_prog_cc_c99" != xno; then :
6820 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6821 else
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6823 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6824 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6825 $as_echo_n "(cached) " >&6
6826 else
6827 ac_cv_prog_cc_c89=no
6828 ac_save_CC=$CC
6829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6830 /* end confdefs.h. */
6831 #include <stdarg.h>
6832 #include <stdio.h>
6833 #include <sys/types.h>
6834 #include <sys/stat.h>
6835 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6836 struct buf { int x; };
6837 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6838 static char *e (p, i)
6839 char **p;
6840 int i;
6841 {
6842 return p[i];
6843 }
6844 static char *f (char * (*g) (char **, int), char **p, ...)
6845 {
6846 char *s;
6847 va_list v;
6848 va_start (v,p);
6849 s = g (p, va_arg (v,int));
6850 va_end (v);
6851 return s;
6852 }
6853
6854 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6855 function prototypes and stuff, but not '\xHH' hex character constants.
6856 These don't provoke an error unfortunately, instead are silently treated
6857 as 'x'. The following induces an error, until -std is added to get
6858 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6859 array size at least. It's necessary to write '\x00'==0 to get something
6860 that's true only with -std. */
6861 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6862
6863 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6864 inside strings and character constants. */
6865 #define FOO(x) 'x'
6866 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6867
6868 int test (int i, double x);
6869 struct s1 {int (*f) (int a);};
6870 struct s2 {int (*f) (double a);};
6871 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6872 int argc;
6873 char **argv;
6874 int
6875 main ()
6876 {
6877 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6878 ;
6879 return 0;
6880 }
6881 _ACEOF
6882 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6883 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6884 do
6885 CC="$ac_save_CC $ac_arg"
6886 if ac_fn_c_try_compile "$LINENO"; then :
6887 ac_cv_prog_cc_c89=$ac_arg
6888 fi
6889 rm -f core conftest.err conftest.$ac_objext
6890 test "x$ac_cv_prog_cc_c89" != "xno" && break
6891 done
6892 rm -f conftest.$ac_ext
6893 CC=$ac_save_CC
6894
6895 fi
6896 # AC_CACHE_VAL
6897 case "x$ac_cv_prog_cc_c89" in
6898 x)
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6900 $as_echo "none needed" >&6; } ;;
6901 xno)
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6903 $as_echo "unsupported" >&6; } ;;
6904 *)
6905 CC="$CC $ac_cv_prog_cc_c89"
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6907 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6908 esac
6909 if test "x$ac_cv_prog_cc_c89" != xno; then :
6910 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6911 else
6912 ac_cv_prog_cc_stdc=no
6913 fi
6914
6915 fi
6916 ;;
6917 esac
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6919 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6920 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6921 $as_echo_n "(cached) " >&6
6922 fi
6923
6924 case $ac_cv_prog_cc_stdc in #(
6925 no) :
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6927 $as_echo "unsupported" >&6; } ;; #(
6928 '') :
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6930 $as_echo "none needed" >&6; } ;; #(
6931 *) :
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6933 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6934 esac
6935
6936
6937
6938 # Code from module alloca-opt:
6939 # Code from module allocator:
6940 # Code from module c-ctype:
6941 # Code from module c-strcase:
6942 # Code from module careadlinkat:
6943 # Code from module clock-time:
6944 # Code from module crypto/md5:
6945 # Code from module crypto/sha1:
6946 # Code from module crypto/sha256:
6947 # Code from module crypto/sha512:
6948 # Code from module dosname:
6949 # Code from module dtoastr:
6950 # Code from module dtotimespec:
6951 # Code from module dup2:
6952 # Code from module environ:
6953 # Code from module execinfo:
6954 # Code from module extensions:
6955
6956 # Code from module extern-inline:
6957 # Code from module filemode:
6958 # Code from module getloadavg:
6959 # Code from module getopt-gnu:
6960 # Code from module getopt-posix:
6961 # Code from module gettext-h:
6962 # Code from module gettime:
6963 # Code from module gettimeofday:
6964 # Code from module ignore-value:
6965 # Code from module include_next:
6966 # Code from module intprops:
6967 # Code from module inttypes-incomplete:
6968 # Code from module largefile:
6969
6970 # Code from module lstat:
6971 # Code from module manywarnings:
6972 # Code from module mktime:
6973 # Code from module multiarch:
6974 # Code from module nocrash:
6975 # Code from module pathmax:
6976 # Code from module pselect:
6977 # Code from module pthread_sigmask:
6978 # Code from module readlink:
6979 # Code from module signal-h:
6980 # Code from module snippet/_Noreturn:
6981 # Code from module snippet/arg-nonnull:
6982 # Code from module snippet/c++defs:
6983 # Code from module snippet/warn-on-use:
6984 # Code from module socklen:
6985 # Code from module ssize_t:
6986 # Code from module stat:
6987 # Code from module stat-time:
6988 # Code from module stdalign:
6989 # Code from module stdarg:
6990
6991
6992
6993 # Code from module stdbool:
6994 # Code from module stddef:
6995 # Code from module stdint:
6996 # Code from module stdio:
6997 # Code from module stdlib:
6998 # Code from module strftime:
6999 # Code from module strtoimax:
7000 # Code from module strtoll:
7001 # Code from module strtoull:
7002 # Code from module strtoumax:
7003 # Code from module symlink:
7004 # Code from module sys_select:
7005 # Code from module sys_stat:
7006 # Code from module sys_time:
7007 # Code from module time:
7008 # Code from module time_r:
7009 # Code from module timespec:
7010 # Code from module timespec-add:
7011 # Code from module timespec-sub:
7012 # Code from module u64:
7013 # Code from module unistd:
7014 # Code from module utimens:
7015 # Code from module verify:
7016 # Code from module warnings:
7017
7018
7019 # It's helpful to have C macros available to GDB, so prefer -g3 to -g
7020 # if -g3 works and the user does not specify CFLAGS.
7021 # This test must follow gl_EARLY; otherwise AC_LINK_IFELSE complains.
7022 if test "$ac_test_CFLAGS" != set; then
7023 case $CFLAGS in
7024 '-g')
7025 emacs_g3_CFLAGS='-g3';;
7026 '-g -O2')
7027 emacs_g3_CFLAGS='-g3 -O2';;
7028 *)
7029 emacs_g3_CFLAGS='';;
7030 esac
7031 if test -n "$emacs_g3_CFLAGS"; then
7032 emacs_save_CFLAGS=$CFLAGS
7033 CFLAGS=$emacs_g3_CFLAGS
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $emacs_g3_CFLAGS" >&5
7035 $as_echo_n "checking whether $CC accepts $emacs_g3_CFLAGS... " >&6; }
7036 if test "${emacs_cv_prog_cc_g3+set}" = set; then :
7037 $as_echo_n "(cached) " >&6
7038 else
7039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7040 /* end confdefs.h. */
7041
7042 int
7043 main ()
7044 {
7045
7046 ;
7047 return 0;
7048 }
7049 _ACEOF
7050 if ac_fn_c_try_link "$LINENO"; then :
7051 emacs_cv_prog_cc_g3=yes
7052 else
7053 emacs_cv_prog_cc_g3=no
7054 fi
7055 rm -f core conftest.err conftest.$ac_objext \
7056 conftest$ac_exeext conftest.$ac_ext
7057 fi
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_g3" >&5
7059 $as_echo "$emacs_cv_prog_cc_g3" >&6; }
7060 if test $emacs_cv_prog_cc_g3 = yes; then
7061 CFLAGS=$emacs_g3_CFLAGS
7062 else
7063 CFLAGS=$emacs_save_CFLAGS
7064 fi
7065 fi
7066 fi
7067
7068 # Check whether --enable-gcc-warnings was given.
7069 if test "${enable_gcc_warnings+set}" = set; then :
7070 enableval=$enable_gcc_warnings; case $enableval in
7071 yes|no) ;;
7072 *) as_fn_error "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7073 esac
7074 gl_gcc_warnings=$enableval
7075 else
7076 gl_gcc_warnings=no
7077
7078 fi
7079
7080
7081 # Check whether --enable-link-time-optimization was given.
7082 if test "${enable_link_time_optimization+set}" = set; then :
7083 enableval=$enable_link_time_optimization; if test "${enableval}" != "no"; then
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link-time optimization is supported" >&5
7085 $as_echo_n "checking whether link-time optimization is supported... " >&6; }
7086 ac_lto_supported=no
7087 if test x$GCC = xyes; then
7088 CPUS=`getconf _NPROCESSORS_ONLN 2>/dev/null`
7089 if test x$CPUS != x; then
7090 LTO="-flto=$CPUS"
7091 else
7092 LTO="-flto"
7093 fi
7094 old_CFLAGS=$CFLAGS
7095 CFLAGS="$CFLAGS $LTO"
7096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7097 /* end confdefs.h. */
7098
7099 int
7100 main ()
7101 {
7102
7103 ;
7104 return 0;
7105 }
7106 _ACEOF
7107 if ac_fn_c_try_compile "$LINENO"; then :
7108 ac_lto_supported=yes
7109 else
7110 ac_lto_supported=no
7111 fi
7112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7113 CFLAGS="$old_CFLAGS"
7114 fi
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_lto_supported" >&5
7116 $as_echo "$ac_lto_supported" >&6; }
7117 if test "$ac_lto_supported" = "yes"; then
7118 CFLAGS="$CFLAGS $LTO"
7119 fi
7120 fi
7121 fi
7122
7123
7124 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7125 # ------------------------------------------------
7126 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7127 # Otherwise, run RUN-IF-NOT-FOUND.
7128
7129
7130 # When compiling with GCC, prefer -isystem to -I when including system
7131 # include files, to avoid generating useless diagnostics for the files.
7132 if test "$gl_gcc_warnings" != yes; then
7133 isystem='-I'
7134 else
7135 isystem='-isystem '
7136
7137 # This, $nw, is the list of warnings we disable.
7138 nw=
7139
7140 case $with_x_toolkit in
7141 lucid | athena | motif)
7142 # Old toolkits mishandle 'const'.
7143 nw="$nw -Wwrite-strings"
7144 ;;
7145 *)
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7147 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7148 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7149 $as_echo_n "(cached) " >&6
7150 else
7151
7152 gl_save_compiler_FLAGS="$CFLAGS"
7153 as_fn_append CFLAGS " -Werror"
7154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7155 /* end confdefs.h. */
7156
7157 int
7158 main ()
7159 {
7160
7161 ;
7162 return 0;
7163 }
7164 _ACEOF
7165 if ac_fn_c_try_compile "$LINENO"; then :
7166 gl_cv_warn_c__Werror=yes
7167 else
7168 gl_cv_warn_c__Werror=no
7169 fi
7170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7171 CFLAGS="$gl_save_compiler_FLAGS"
7172
7173 fi
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7175 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7176 if test "x$gl_cv_warn_c__Werror" = x""yes; then :
7177 as_fn_append WERROR_CFLAGS " -Werror"
7178 fi
7179
7180
7181 ;;
7182 esac
7183
7184
7185 nw="$nw -Waggregate-return" # anachronistic
7186 nw="$nw -Wlong-long" # C90 is anachronistic
7187 nw="$nw -Wc++-compat" # We don't care about C++ compilers
7188 nw="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
7189 nw="$nw -Wtraditional" # Warns on #elif which we use often
7190 nw="$nw -Wcast-qual" # Too many warnings for now
7191 nw="$nw -Wconversion" # Too many warnings for now
7192 nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7193 nw="$nw -Wsign-conversion" # Too many warnings for now
7194 nw="$nw -Woverlength-strings" # Not a problem these days
7195 nw="$nw -Wtraditional-conversion" # Too many warnings for now
7196 nw="$nw -Wunreachable-code" # so buggy that it's now silently ignored
7197 nw="$nw -Wpadded" # Our structs are not padded
7198 nw="$nw -Wredundant-decls" # we regularly (re)declare functions
7199 nw="$nw -Wlogical-op" # any use of fwrite provokes this
7200 nw="$nw -Wformat-nonliteral" # we do this a lot
7201 nw="$nw -Wvla" # warnings in gettext.h
7202 nw="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7203 nw="$nw -Wswitch-enum" # Too many warnings for now
7204 nw="$nw -Wswitch-default" # Too many warnings for now
7205 nw="$nw -Wfloat-equal" # warns about high-quality code
7206 nw="$nw -Winline" # OK to ignore 'inline'
7207 nw="$nw -Wjump-misses-init" # We sometimes safely jump over init.
7208 nw="$nw -Wsync-nand" # irrelevant here, and provokes ObjC warning
7209 nw="$nw -Wunsafe-loop-optimizations" # OK to suppress unsafe optimizations
7210
7211 # Emacs doesn't care about shadowing; see
7212 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7213 nw="$nw -Wshadow"
7214
7215 # The following lines should be removable at some point.
7216 nw="$nw -Wstack-protector"
7217 nw="$nw -Wstrict-overflow"
7218 nw="$nw -Wsuggest-attribute=pure"
7219
7220
7221
7222 if test -n "$GCC"; then
7223
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7225 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7226 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7227 $as_echo_n "(cached) " >&6
7228 else
7229
7230 gl_save_CFLAGS="$CFLAGS"
7231 CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7233 /* end confdefs.h. */
7234
7235 int
7236 main ()
7237 {
7238
7239 ;
7240 return 0;
7241 }
7242 _ACEOF
7243 if ac_fn_c_try_compile "$LINENO"; then :
7244 gl_cv_cc_nomfi_supported=yes
7245 else
7246 gl_cv_cc_nomfi_supported=no
7247 fi
7248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7249 CFLAGS="$gl_save_CFLAGS"
7250 fi
7251
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7253 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7254
7255 if test "$gl_cv_cc_nomfi_supported" = yes; then
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7257 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7258 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7259 $as_echo_n "(cached) " >&6
7260 else
7261
7262 gl_save_CFLAGS="$CFLAGS"
7263 CFLAGS="$CFLAGS -W -Werror"
7264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7265 /* end confdefs.h. */
7266 void f (void)
7267 {
7268 typedef struct { int a; int b; } s_t;
7269 s_t s1 = { 0, };
7270 }
7271
7272 int
7273 main ()
7274 {
7275
7276 ;
7277 return 0;
7278 }
7279 _ACEOF
7280 if ac_fn_c_try_compile "$LINENO"; then :
7281 gl_cv_cc_nomfi_needed=no
7282 else
7283 gl_cv_cc_nomfi_needed=yes
7284 fi
7285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7286 CFLAGS="$gl_save_CFLAGS"
7287
7288 fi
7289
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7291 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7292 fi
7293 fi
7294
7295 gl_manywarn_set=
7296 for gl_manywarn_item in \
7297 -W \
7298 -Wabi \
7299 -Waddress \
7300 -Wall \
7301 -Warray-bounds \
7302 -Wattributes \
7303 -Wbad-function-cast \
7304 -Wbuiltin-macro-redefined \
7305 -Wcast-align \
7306 -Wchar-subscripts \
7307 -Wclobbered \
7308 -Wcomment \
7309 -Wcomments \
7310 -Wcoverage-mismatch \
7311 -Wcpp \
7312 -Wdeprecated \
7313 -Wdeprecated-declarations \
7314 -Wdisabled-optimization \
7315 -Wdiv-by-zero \
7316 -Wdouble-promotion \
7317 -Wempty-body \
7318 -Wendif-labels \
7319 -Wenum-compare \
7320 -Wextra \
7321 -Wformat-contains-nul \
7322 -Wformat-extra-args \
7323 -Wformat-nonliteral \
7324 -Wformat-security \
7325 -Wformat-y2k \
7326 -Wformat-zero-length \
7327 -Wformat=2 \
7328 -Wfree-nonheap-object \
7329 -Wignored-qualifiers \
7330 -Wimplicit \
7331 -Wimplicit-function-declaration \
7332 -Wimplicit-int \
7333 -Winit-self \
7334 -Winline \
7335 -Wint-to-pointer-cast \
7336 -Winvalid-memory-model \
7337 -Winvalid-pch \
7338 -Wjump-misses-init \
7339 -Wlogical-op \
7340 -Wmain \
7341 -Wmaybe-uninitialized \
7342 -Wmissing-braces \
7343 -Wmissing-declarations \
7344 -Wmissing-field-initializers \
7345 -Wmissing-format-attribute \
7346 -Wmissing-include-dirs \
7347 -Wmissing-noreturn \
7348 -Wmissing-parameter-type \
7349 -Wmissing-prototypes \
7350 -Wmudflap \
7351 -Wmultichar \
7352 -Wnarrowing \
7353 -Wnested-externs \
7354 -Wnonnull \
7355 -Wnormalized=nfc \
7356 -Wold-style-declaration \
7357 -Wold-style-definition \
7358 -Woverflow \
7359 -Woverlength-strings \
7360 -Woverride-init \
7361 -Wpacked \
7362 -Wpacked-bitfield-compat \
7363 -Wparentheses \
7364 -Wpointer-arith \
7365 -Wpointer-sign \
7366 -Wpointer-to-int-cast \
7367 -Wpragmas \
7368 -Wreturn-type \
7369 -Wsequence-point \
7370 -Wshadow \
7371 -Wsizeof-pointer-memaccess \
7372 -Wstack-protector \
7373 -Wstrict-aliasing \
7374 -Wstrict-overflow \
7375 -Wstrict-prototypes \
7376 -Wsuggest-attribute=const \
7377 -Wsuggest-attribute=format \
7378 -Wsuggest-attribute=noreturn \
7379 -Wsuggest-attribute=pure \
7380 -Wswitch \
7381 -Wswitch-default \
7382 -Wsync-nand \
7383 -Wsystem-headers \
7384 -Wtrampolines \
7385 -Wtrigraphs \
7386 -Wtype-limits \
7387 -Wuninitialized \
7388 -Wunknown-pragmas \
7389 -Wunreachable-code \
7390 -Wunsafe-loop-optimizations \
7391 -Wunused \
7392 -Wunused-but-set-parameter \
7393 -Wunused-but-set-variable \
7394 -Wunused-function \
7395 -Wunused-label \
7396 -Wunused-local-typedefs \
7397 -Wunused-macros \
7398 -Wunused-parameter \
7399 -Wunused-result \
7400 -Wunused-value \
7401 -Wunused-variable \
7402 -Wvarargs \
7403 -Wvariadic-macros \
7404 -Wvector-operation-performance \
7405 -Wvla \
7406 -Wvolatile-register-var \
7407 -Wwrite-strings \
7408 \
7409 ; do
7410 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7411 done
7412
7413 # Disable the missing-field-initializers warning if needed
7414 if test "$gl_cv_cc_nomfi_needed" = yes; then
7415 gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
7416 fi
7417
7418 ws=$gl_manywarn_set
7419
7420
7421 gl_warn_set=
7422 set x $ws; shift
7423 for gl_warn_item
7424 do
7425 case " $nw " in
7426 *" $gl_warn_item "*)
7427 ;;
7428 *)
7429 gl_warn_set="$gl_warn_set $gl_warn_item"
7430 ;;
7431 esac
7432 done
7433 ws=$gl_warn_set
7434
7435 for w in $ws; do
7436 as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7438 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7439 if { as_var=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7440 $as_echo_n "(cached) " >&6
7441 else
7442
7443 gl_save_compiler_FLAGS="$CFLAGS"
7444 as_fn_append CFLAGS " $w"
7445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7446 /* end confdefs.h. */
7447
7448 int
7449 main ()
7450 {
7451
7452 ;
7453 return 0;
7454 }
7455 _ACEOF
7456 if ac_fn_c_try_compile "$LINENO"; then :
7457 eval "$as_gl_Warn=yes"
7458 else
7459 eval "$as_gl_Warn=no"
7460 fi
7461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7462 CFLAGS="$gl_save_compiler_FLAGS"
7463
7464 fi
7465 eval ac_res=\$$as_gl_Warn
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7467 $as_echo "$ac_res" >&6; }
7468 eval as_val=\$$as_gl_Warn
7469 if test "x$as_val" = x""yes; then :
7470 as_fn_append WARN_CFLAGS " $w"
7471 fi
7472
7473
7474 done
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7476 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7477 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7478 $as_echo_n "(cached) " >&6
7479 else
7480
7481 gl_save_compiler_FLAGS="$CFLAGS"
7482 as_fn_append CFLAGS " -Wno-missing-field-initializers"
7483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7484 /* end confdefs.h. */
7485
7486 int
7487 main ()
7488 {
7489
7490 ;
7491 return 0;
7492 }
7493 _ACEOF
7494 if ac_fn_c_try_compile "$LINENO"; then :
7495 gl_cv_warn_c__Wno_missing_field_initializers=yes
7496 else
7497 gl_cv_warn_c__Wno_missing_field_initializers=no
7498 fi
7499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7500 CFLAGS="$gl_save_compiler_FLAGS"
7501
7502 fi
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7504 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7505 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x""yes; then :
7506 as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
7507 fi
7508
7509 # We need this one
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7511 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7512 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7513 $as_echo_n "(cached) " >&6
7514 else
7515
7516 gl_save_compiler_FLAGS="$CFLAGS"
7517 as_fn_append CFLAGS " -Wno-sign-compare"
7518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7519 /* end confdefs.h. */
7520
7521 int
7522 main ()
7523 {
7524
7525 ;
7526 return 0;
7527 }
7528 _ACEOF
7529 if ac_fn_c_try_compile "$LINENO"; then :
7530 gl_cv_warn_c__Wno_sign_compare=yes
7531 else
7532 gl_cv_warn_c__Wno_sign_compare=no
7533 fi
7534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7535 CFLAGS="$gl_save_compiler_FLAGS"
7536
7537 fi
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7539 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7540 if test "x$gl_cv_warn_c__Wno_sign_compare" = x""yes; then :
7541 as_fn_append WARN_CFLAGS " -Wno-sign-compare"
7542 fi
7543
7544 # Too many warnings for now
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
7546 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
7547 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
7548 $as_echo_n "(cached) " >&6
7549 else
7550
7551 gl_save_compiler_FLAGS="$CFLAGS"
7552 as_fn_append CFLAGS " -Wno-type-limits"
7553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7554 /* end confdefs.h. */
7555
7556 int
7557 main ()
7558 {
7559
7560 ;
7561 return 0;
7562 }
7563 _ACEOF
7564 if ac_fn_c_try_compile "$LINENO"; then :
7565 gl_cv_warn_c__Wno_type_limits=yes
7566 else
7567 gl_cv_warn_c__Wno_type_limits=no
7568 fi
7569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7570 CFLAGS="$gl_save_compiler_FLAGS"
7571
7572 fi
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
7574 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
7575 if test "x$gl_cv_warn_c__Wno_type_limits" = x""yes; then :
7576 as_fn_append WARN_CFLAGS " -Wno-type-limits"
7577 fi
7578
7579 # Too many warnings for now
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7581 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7582 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7583 $as_echo_n "(cached) " >&6
7584 else
7585
7586 gl_save_compiler_FLAGS="$CFLAGS"
7587 as_fn_append CFLAGS " -Wno-switch"
7588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7589 /* end confdefs.h. */
7590
7591 int
7592 main ()
7593 {
7594
7595 ;
7596 return 0;
7597 }
7598 _ACEOF
7599 if ac_fn_c_try_compile "$LINENO"; then :
7600 gl_cv_warn_c__Wno_switch=yes
7601 else
7602 gl_cv_warn_c__Wno_switch=no
7603 fi
7604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7605 CFLAGS="$gl_save_compiler_FLAGS"
7606
7607 fi
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7609 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7610 if test "x$gl_cv_warn_c__Wno_switch" = x""yes; then :
7611 as_fn_append WARN_CFLAGS " -Wno-switch"
7612 fi
7613
7614 # Too many warnings for now
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
7616 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
7617 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
7618 $as_echo_n "(cached) " >&6
7619 else
7620
7621 gl_save_compiler_FLAGS="$CFLAGS"
7622 as_fn_append CFLAGS " -Wno-unused-parameter"
7623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7624 /* end confdefs.h. */
7625
7626 int
7627 main ()
7628 {
7629
7630 ;
7631 return 0;
7632 }
7633 _ACEOF
7634 if ac_fn_c_try_compile "$LINENO"; then :
7635 gl_cv_warn_c__Wno_unused_parameter=yes
7636 else
7637 gl_cv_warn_c__Wno_unused_parameter=no
7638 fi
7639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7640 CFLAGS="$gl_save_compiler_FLAGS"
7641
7642 fi
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
7644 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
7645 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x""yes; then :
7646 as_fn_append WARN_CFLAGS " -Wno-unused-parameter"
7647 fi
7648
7649 # Too many warnings for now
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
7651 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
7652 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
7653 $as_echo_n "(cached) " >&6
7654 else
7655
7656 gl_save_compiler_FLAGS="$CFLAGS"
7657 as_fn_append CFLAGS " -Wno-format-nonliteral"
7658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7659 /* end confdefs.h. */
7660
7661 int
7662 main ()
7663 {
7664
7665 ;
7666 return 0;
7667 }
7668 _ACEOF
7669 if ac_fn_c_try_compile "$LINENO"; then :
7670 gl_cv_warn_c__Wno_format_nonliteral=yes
7671 else
7672 gl_cv_warn_c__Wno_format_nonliteral=no
7673 fi
7674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7675 CFLAGS="$gl_save_compiler_FLAGS"
7676
7677 fi
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
7679 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
7680 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x""yes; then :
7681 as_fn_append WARN_CFLAGS " -Wno-format-nonliteral"
7682 fi
7683
7684
7685
7686 # In spite of excluding -Wlogical-op above, it is enabled, as of
7687 # gcc 4.5.0 20090517.
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
7689 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
7690 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
7691 $as_echo_n "(cached) " >&6
7692 else
7693
7694 gl_save_compiler_FLAGS="$CFLAGS"
7695 as_fn_append CFLAGS " -Wno-logical-op"
7696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7697 /* end confdefs.h. */
7698
7699 int
7700 main ()
7701 {
7702
7703 ;
7704 return 0;
7705 }
7706 _ACEOF
7707 if ac_fn_c_try_compile "$LINENO"; then :
7708 gl_cv_warn_c__Wno_logical_op=yes
7709 else
7710 gl_cv_warn_c__Wno_logical_op=no
7711 fi
7712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7713 CFLAGS="$gl_save_compiler_FLAGS"
7714
7715 fi
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
7717 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
7718 if test "x$gl_cv_warn_c__Wno_logical_op" = x""yes; then :
7719 as_fn_append WARN_CFLAGS " -Wno-logical-op"
7720 fi
7721
7722
7723
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
7725 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
7726 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
7727 $as_echo_n "(cached) " >&6
7728 else
7729
7730 gl_save_compiler_FLAGS="$CFLAGS"
7731 as_fn_append CFLAGS " -fdiagnostics-show-option"
7732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7733 /* end confdefs.h. */
7734
7735 int
7736 main ()
7737 {
7738
7739 ;
7740 return 0;
7741 }
7742 _ACEOF
7743 if ac_fn_c_try_compile "$LINENO"; then :
7744 gl_cv_warn_c__fdiagnostics_show_option=yes
7745 else
7746 gl_cv_warn_c__fdiagnostics_show_option=no
7747 fi
7748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7749 CFLAGS="$gl_save_compiler_FLAGS"
7750
7751 fi
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
7753 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
7754 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x""yes; then :
7755 as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
7756 fi
7757
7758
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
7760 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
7761 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
7762 $as_echo_n "(cached) " >&6
7763 else
7764
7765 gl_save_compiler_FLAGS="$CFLAGS"
7766 as_fn_append CFLAGS " -funit-at-a-time"
7767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7768 /* end confdefs.h. */
7769
7770 int
7771 main ()
7772 {
7773
7774 ;
7775 return 0;
7776 }
7777 _ACEOF
7778 if ac_fn_c_try_compile "$LINENO"; then :
7779 gl_cv_warn_c__funit_at_a_time=yes
7780 else
7781 gl_cv_warn_c__funit_at_a_time=no
7782 fi
7783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7784 CFLAGS="$gl_save_compiler_FLAGS"
7785
7786 fi
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
7788 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
7789 if test "x$gl_cv_warn_c__funit_at_a_time" = x""yes; then :
7790 as_fn_append WARN_CFLAGS " -funit-at-a-time"
7791 fi
7792
7793
7794
7795
7796 $as_echo "#define lint 1" >>confdefs.h
7797
7798
7799
7800 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
7801
7802
7803 # We use a slightly smaller set of warning options for lib/.
7804 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
7805 nw=
7806 nw="$nw -Wunused-macros"
7807
7808
7809 gl_warn_set=
7810 set x $WARN_CFLAGS; shift
7811 for gl_warn_item
7812 do
7813 case " $nw " in
7814 *" $gl_warn_item "*)
7815 ;;
7816 *)
7817 gl_warn_set="$gl_warn_set $gl_warn_item"
7818 ;;
7819 esac
7820 done
7821 GNULIB_WARN_CFLAGS=$gl_warn_set
7822
7823
7824 fi
7825
7826
7827
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7829 $as_echo_n "checking whether ln -s works... " >&6; }
7830 LN_S=$as_ln_s
7831 if test "$LN_S" = "ln -s"; then
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7833 $as_echo "yes" >&6; }
7834 else
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7836 $as_echo "no, using $LN_S" >&6; }
7837 fi
7838
7839
7840 # Extract the first word of "install-info", so it can be a program name with args.
7841 set dummy install-info; ac_word=$2
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7843 $as_echo_n "checking for $ac_word... " >&6; }
7844 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7845 $as_echo_n "(cached) " >&6
7846 else
7847 case $INSTALL_INFO in
7848 [\\/]* | ?:[\\/]*)
7849 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7850 ;;
7851 *)
7852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7853 for as_dir in $PATH$PATH_SEPARATOR/usr/sbin$PATH_SEPARATOR/sbin
7854 do
7855 IFS=$as_save_IFS
7856 test -z "$as_dir" && as_dir=.
7857 for ac_exec_ext in '' $ac_executable_extensions; do
7858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7859 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7861 break 2
7862 fi
7863 done
7864 done
7865 IFS=$as_save_IFS
7866
7867 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
7868 ;;
7869 esac
7870 fi
7871 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7872 if test -n "$INSTALL_INFO"; then
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7874 $as_echo "$INSTALL_INFO" >&6; }
7875 else
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7877 $as_echo "no" >&6; }
7878 fi
7879
7880
7881 # Extract the first word of "gzip", so it can be a program name with args.
7882 set dummy gzip; ac_word=$2
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7884 $as_echo_n "checking for $ac_word... " >&6; }
7885 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
7886 $as_echo_n "(cached) " >&6
7887 else
7888 case $GZIP_PROG in
7889 [\\/]* | ?:[\\/]*)
7890 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
7891 ;;
7892 *)
7893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7894 for as_dir in $PATH
7895 do
7896 IFS=$as_save_IFS
7897 test -z "$as_dir" && as_dir=.
7898 for ac_exec_ext in '' $ac_executable_extensions; do
7899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7900 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
7901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7902 break 2
7903 fi
7904 done
7905 done
7906 IFS=$as_save_IFS
7907
7908 ;;
7909 esac
7910 fi
7911 GZIP_PROG=$ac_cv_path_GZIP_PROG
7912 if test -n "$GZIP_PROG"; then
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
7914 $as_echo "$GZIP_PROG" >&6; }
7915 else
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7917 $as_echo "no" >&6; }
7918 fi
7919
7920
7921
7922 if test $opsys = gnu-linux; then
7923 # Extract the first word of "paxctl", so it can be a program name with args.
7924 set dummy paxctl; ac_word=$2
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7926 $as_echo_n "checking for $ac_word... " >&6; }
7927 if test "${ac_cv_path_PAXCTL+set}" = set; then :
7928 $as_echo_n "(cached) " >&6
7929 else
7930 case $PAXCTL in
7931 [\\/]* | ?:[\\/]*)
7932 ac_cv_path_PAXCTL="$PAXCTL" # Let the user override the test with a path.
7933 ;;
7934 *)
7935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7936 for as_dir in $PATH$PATH_SEPARATOR/sbin$PATH_SEPARATOR/usr/sbin
7937 do
7938 IFS=$as_save_IFS
7939 test -z "$as_dir" && as_dir=.
7940 for ac_exec_ext in '' $ac_executable_extensions; do
7941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7942 ac_cv_path_PAXCTL="$as_dir/$ac_word$ac_exec_ext"
7943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7944 break 2
7945 fi
7946 done
7947 done
7948 IFS=$as_save_IFS
7949
7950 ;;
7951 esac
7952 fi
7953 PAXCTL=$ac_cv_path_PAXCTL
7954 if test -n "$PAXCTL"; then
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
7956 $as_echo "$PAXCTL" >&6; }
7957 else
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7959 $as_echo "no" >&6; }
7960 fi
7961
7962
7963 if test "X$PAXCTL" != X; then
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether binaries have a PT_PAX_FLAGS header" >&5
7965 $as_echo_n "checking whether binaries have a PT_PAX_FLAGS header... " >&6; }
7966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7967 /* end confdefs.h. */
7968
7969 int
7970 main ()
7971 {
7972
7973 ;
7974 return 0;
7975 }
7976 _ACEOF
7977 if ac_fn_c_try_link "$LINENO"; then :
7978 if $PAXCTL -v conftest$EXEEXT >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7979 $as_echo "yes" >&6; }
7980 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7981 $as_echo "no" >&6; }; PAXCTL=""; fi
7982 fi
7983 rm -f core conftest.err conftest.$ac_objext \
7984 conftest$ac_exeext conftest.$ac_ext
7985 fi
7986 fi
7987
7988 ## Need makeinfo >= 4.7 (?) to build the manuals.
7989 # Extract the first word of "makeinfo", so it can be a program name with args.
7990 set dummy makeinfo; ac_word=$2
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7992 $as_echo_n "checking for $ac_word... " >&6; }
7993 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
7994 $as_echo_n "(cached) " >&6
7995 else
7996 case $MAKEINFO in
7997 [\\/]* | ?:[\\/]*)
7998 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
7999 ;;
8000 *)
8001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8002 for as_dir in $PATH
8003 do
8004 IFS=$as_save_IFS
8005 test -z "$as_dir" && as_dir=.
8006 for ac_exec_ext in '' $ac_executable_extensions; do
8007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8008 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
8009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8010 break 2
8011 fi
8012 done
8013 done
8014 IFS=$as_save_IFS
8015
8016 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
8017 ;;
8018 esac
8019 fi
8020 MAKEINFO=$ac_cv_path_MAKEINFO
8021 if test -n "$MAKEINFO"; then
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8023 $as_echo "$MAKEINFO" >&6; }
8024 else
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8026 $as_echo "no" >&6; }
8027 fi
8028
8029
8030 if test "$MAKEINFO" != "no" && \
8031 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
8032 MAKEINFO=no
8033 fi
8034
8035 ## Makeinfo is unusual. For a released Emacs, the manuals are
8036 ## pre-built, and not deleted by the normal clean rules. makeinfo is
8037 ## therefore in the category of "special tools" not normally required, which
8038 ## configure does not have to check for (eg autoconf itself).
8039 ## In a Bazaar checkout on the other hand, the manuals are not included.
8040 ## So makeinfo is a requirement to build from Bazaar, and configure
8041 ## should test for it as it does for any other build requirement.
8042 ## We use the presence of $srcdir/info/emacs to distinguish a release,
8043 ## with pre-built manuals, from a Bazaar checkout.
8044 HAVE_MAKEINFO=yes
8045
8046 if test "$MAKEINFO" = "no"; then
8047 MAKEINFO=makeinfo
8048 if test "x${with_makeinfo}" = "xno"; then
8049 HAVE_MAKEINFO=no
8050 elif test ! -e $srcdir/info/emacs; then
8051 as_fn_error "You do not seem to have makeinfo >= 4.7, and your
8052 source tree does not seem to have pre-built manuals in the \`info' directory.
8053 Either install a suitable version of makeinfo, or re-run configure
8054 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
8055 fi
8056 fi
8057
8058
8059 INFO_EXT=.info
8060 INFO_OPTS=--no-split
8061
8062
8063
8064
8065 if test x$GCC = xyes; then
8066 test "x$GCC_LINK_TEST_OPTIONS" != x && \
8067 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
8068 else
8069 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
8070 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
8071 fi
8072
8073
8074 late_LDFLAGS=$LDFLAGS
8075 if test x$GCC = xyes; then
8076 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
8077 else
8078 LDFLAGS="$LDFLAGS -znocombreloc"
8079 fi
8080
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
8082 $as_echo_n "checking for -znocombreloc... " >&6; }
8083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8084 /* end confdefs.h. */
8085
8086 int
8087 main ()
8088 {
8089
8090 ;
8091 return 0;
8092 }
8093 _ACEOF
8094 if ac_fn_c_try_link "$LINENO"; then :
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8096 $as_echo "yes" >&6; }
8097 else
8098 LDFLAGS=$late_LDFLAGS
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8100 $as_echo "no" >&6; }
8101 fi
8102 rm -f core conftest.err conftest.$ac_objext \
8103 conftest$ac_exeext conftest.$ac_ext
8104
8105
8106 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
8107 case "$opsys" in
8108 your-opsys-here) CANNOT_DUMP=yes ;;
8109 esac
8110
8111 test "$CANNOT_DUMP" = "yes" && \
8112
8113 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8114
8115
8116
8117
8118
8119 UNEXEC_OBJ=unexelf.o
8120 case "$opsys" in
8121 # MSDOS uses unexcoff.o
8122 # MSWindows uses unexw32.o
8123 aix4-2)
8124 UNEXEC_OBJ=unexaix.o
8125 ;;
8126 cygwin)
8127 UNEXEC_OBJ=unexcw.o
8128 ;;
8129 darwin)
8130 UNEXEC_OBJ=unexmacosx.o
8131 ;;
8132 hpux10-20 | hpux11)
8133 UNEXEC_OBJ=unexhp9k800.o
8134 ;;
8135 sol2-10)
8136 # Use the Solaris dldump() function, called from unexsol.c, to dump
8137 # emacs, instead of the generic ELF dump code found in unexelf.c.
8138 # The resulting binary has a complete symbol table, and is better
8139 # for debugging and other observability tools (debuggers, pstack, etc).
8140 #
8141 # If you encounter a problem using dldump(), please consider sending
8142 # a message to the OpenSolaris tools-linking mailing list:
8143 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8144 #
8145 # It is likely that dldump() works with older Solaris too, but this has
8146 # not been tested, so for now this change is for Solaris 10 or newer.
8147 UNEXEC_OBJ=unexsol.o
8148 ;;
8149 esac
8150
8151 LD_SWITCH_SYSTEM=
8152 case "$opsys" in
8153 freebsd)
8154 ## Let `ld' find image libs and similar things in /usr/local/lib.
8155 ## The system compiler, GCC, has apparently been modified to not
8156 ## look there, contrary to what a stock GCC would do.
8157 ### It's not our place to do this. See bug#10313#17.
8158 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8159 :
8160 ;;
8161
8162 gnu-linux)
8163 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8164 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
8165 ;;
8166
8167 netbsd)
8168 ### It's not our place to do this. See bug#10313#17.
8169 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8170 :
8171 ;;
8172
8173 openbsd)
8174 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
8175 ## otherwise Emacs dumps core on elf systems.
8176 LD_SWITCH_SYSTEM="-Z"
8177 ;;
8178 esac
8179
8180
8181 ac_link="$ac_link $LD_SWITCH_SYSTEM"
8182
8183 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8184 ## which has not been defined yet. When this was handled with cpp,
8185 ## it was expanded to null when configure sourced the s/*.h file.
8186 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8187 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8188 ## (or somesuch), but because it is supposed to go at the _front_
8189 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8190 ## Compare with the gnu-linux case below, which added to the end
8191 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8192 ## LD_SWITCH_SYSTEM_TEMACS.
8193 case "$opsys" in
8194 netbsd|openbsd)
8195 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8196 esac
8197
8198
8199 C_SWITCH_MACHINE=
8200 case $canonical in
8201 alpha*)
8202 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8203 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
8204
8205 fi
8206
8207 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8208 ## With ELF, make sure that all common symbols get allocated to in the
8209 ## data section. Otherwise, the dump of temacs may miss variables in
8210 ## the shared library that have been initialized. For example, with
8211 ## GNU libc, __malloc_initialized would normally be resolved to the
8212 ## shared library's .bss section, which is fatal.
8213 if test "x$GCC" = "xyes"; then
8214 C_SWITCH_MACHINE="-fno-common"
8215 else
8216 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8217 fi
8218 else
8219 UNEXEC_OBJ=unexalpha.o
8220 fi
8221 ;;
8222 esac
8223
8224
8225
8226
8227 C_SWITCH_SYSTEM=
8228 ## Some programs in src produce warnings saying certain subprograms
8229 ## are too complex and need a MAXMEM value greater than 2000 for
8230 ## additional optimization. --nils@exp-math.uni-essen.de
8231 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8232 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
8233 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8234 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8235
8236
8237
8238 LIBS_SYSTEM=
8239 case "$opsys" in
8240 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8241 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
8242
8243 freebsd) LIBS_SYSTEM="-lutil" ;;
8244
8245 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
8246
8247 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
8248
8249 ## Motif needs -lgen.
8250 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
8251 esac
8252
8253
8254
8255 ### Make sure subsequent tests use flags consistent with the build flags.
8256
8257 if test x"${OVERRIDE_CPPFLAGS}" != x; then
8258 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
8259 else
8260 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8261 fi
8262
8263 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8264
8265 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8266
8267
8268
8269 LIB_MATH=-lm
8270 LIB_STANDARD=
8271 START_FILES=
8272 SYSTEM_TYPE=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'`
8273
8274 case $opsys in
8275 cygwin )
8276 LIB_MATH=
8277 START_FILES='pre-crt0.o'
8278 ;;
8279 darwin )
8280 ## Adding -lm confuses the dynamic linker, so omit it.
8281 LIB_MATH=
8282 START_FILES='pre-crt0.o'
8283 ;;
8284 freebsd )
8285 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8286 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8287 SYSTEM_TYPE=berkeley-unix
8288 ;;
8289 gnu-linux | gnu-kfreebsd )
8290 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8291 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8292 ;;
8293 hpux10-20 | hpux11 )
8294 LIB_STANDARD=-lc
8295 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
8296 ;;
8297 netbsd | openbsd )
8298 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8299 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8300 SYSTEM_TYPE=berkeley-unix
8301 ;;
8302
8303 sol2* | unixware )
8304 SYSTEM_TYPE=usg-unix-v
8305 ;;
8306
8307 esac
8308
8309
8310
8311
8312 cat >>confdefs.h <<_ACEOF
8313 #define SYSTEM_TYPE "$SYSTEM_TYPE"
8314 _ACEOF
8315
8316
8317 crt_files=
8318
8319 for file in x $LIB_STANDARD $START_FILES; do
8320 case "$file" in
8321 *CRT_DIR*) crt_files="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8322 esac
8323 done
8324
8325 if test "x$crt_files" != x; then
8326
8327 ## If user specified a crt-dir, use that unconditionally.
8328 crt_gcc=no
8329
8330 if test "X$CRT_DIR" = "X"; then
8331
8332 CRT_DIR=/usr/lib # default
8333
8334 case "$canonical" in
8335 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
8336 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8337 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8338 ## For anything else (eg /usr/lib32), it is up the user to specify
8339 ## the location (bug#5655).
8340 ## Test for crtn.o, not just the directory, because sometimes the
8341 ## directory exists but does not have the relevant files (bug#1287).
8342 ## FIXME better to test for binary compatibility somehow.
8343 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
8344 ;;
8345
8346 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
8347 esac
8348
8349 case "$opsys" in
8350 hpux10-20) CRT_DIR=/lib ;;
8351 esac
8352
8353 test "x${GCC}" = xyes && crt_gcc=yes
8354
8355 fi # CRT_DIR = ""
8356
8357 crt_missing=
8358
8359 for file in $crt_files; do
8360
8361 ## If we're using gcc, try to determine it automatically by asking
8362 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8363 ## system-dependent default from above.]
8364 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8365
8366 crt_file=`$CC --print-file-name=$file 2>/dev/null`
8367 case "$crt_file" in
8368 */*)
8369 CRT_DIR=`$as_dirname -- "$crt_file" ||
8370 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8371 X"$crt_file" : 'X\(//\)[^/]' \| \
8372 X"$crt_file" : 'X\(//\)$' \| \
8373 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8374 $as_echo X"$crt_file" |
8375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8376 s//\1/
8377 q
8378 }
8379 /^X\(\/\/\)[^/].*/{
8380 s//\1/
8381 q
8382 }
8383 /^X\(\/\/\)$/{
8384 s//\1/
8385 q
8386 }
8387 /^X\(\/\).*/{
8388 s//\1/
8389 q
8390 }
8391 s/.*/./; q'`
8392 ;;
8393 esac
8394 fi
8395
8396 crt_gcc=no
8397
8398 test -e $CRT_DIR/$file || crt_missing="$crt_missing $file"
8399 done # $crt_files
8400
8401 test "x$crt_missing" = x || \
8402 as_fn_error "Required file(s) not found:$crt_missing
8403 Try using the --with-crt-dir option." "$LINENO" 5
8404
8405 fi # crt_files != ""
8406
8407
8408
8409 case $opsys in
8410 netbsd | openbsd )
8411 if test -f $CRT_DIR/crti.o; then
8412
8413 test -f $CRT_DIR/crtn.o || \
8414 as_fn_error "Required file not found: crtn.o" "$LINENO" 5
8415
8416 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8417 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8418 fi
8419 ;;
8420 esac
8421
8422
8423 pre_PKG_CONFIG_CFLAGS=$CFLAGS
8424 pre_PKG_CONFIG_LIBS=$LIBS
8425
8426 # Extract the first word of "pkg-config", so it can be a program name with args.
8427 set dummy pkg-config; ac_word=$2
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8429 $as_echo_n "checking for $ac_word... " >&6; }
8430 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8431 $as_echo_n "(cached) " >&6
8432 else
8433 case $PKG_CONFIG in
8434 [\\/]* | ?:[\\/]*)
8435 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8436 ;;
8437 *)
8438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8439 for as_dir in $PATH
8440 do
8441 IFS=$as_save_IFS
8442 test -z "$as_dir" && as_dir=.
8443 for ac_exec_ext in '' $ac_executable_extensions; do
8444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8445 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8447 break 2
8448 fi
8449 done
8450 done
8451 IFS=$as_save_IFS
8452
8453 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8454 ;;
8455 esac
8456 fi
8457 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8458 if test -n "$PKG_CONFIG"; then
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8460 $as_echo "$PKG_CONFIG" >&6; }
8461 else
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8463 $as_echo "no" >&6; }
8464 fi
8465
8466
8467
8468
8469
8470
8471 if test "${with_sound}" != "no"; then
8472 # Sound support for GNU/Linux and the free BSDs.
8473 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
8474 do :
8475 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8476 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8477 eval as_val=\$$as_ac_Header
8478 if test "x$as_val" = x""yes; then :
8479 cat >>confdefs.h <<_ACEOF
8480 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8481 _ACEOF
8482 have_sound_header=yes
8483 fi
8484
8485 done
8486
8487 # Emulation library used on NetBSD.
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8489 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8490 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8491 $as_echo_n "(cached) " >&6
8492 else
8493 ac_check_lib_save_LIBS=$LIBS
8494 LIBS="-lossaudio $LIBS"
8495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8496 /* end confdefs.h. */
8497
8498 /* Override any GCC internal prototype to avoid an error.
8499 Use char because int might match the return type of a GCC
8500 builtin and then its argument prototype would still apply. */
8501 #ifdef __cplusplus
8502 extern "C"
8503 #endif
8504 char _oss_ioctl ();
8505 int
8506 main ()
8507 {
8508 return _oss_ioctl ();
8509 ;
8510 return 0;
8511 }
8512 _ACEOF
8513 if ac_fn_c_try_link "$LINENO"; then :
8514 ac_cv_lib_ossaudio__oss_ioctl=yes
8515 else
8516 ac_cv_lib_ossaudio__oss_ioctl=no
8517 fi
8518 rm -f core conftest.err conftest.$ac_objext \
8519 conftest$ac_exeext conftest.$ac_ext
8520 LIBS=$ac_check_lib_save_LIBS
8521 fi
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8523 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8524 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
8525 LIBSOUND=-lossaudio
8526 else
8527 LIBSOUND=
8528 fi
8529
8530
8531
8532 ALSA_REQUIRED=1.0.0
8533 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
8534
8535 succeeded=no
8536
8537 if test "$PKG_CONFIG" = "no" ; then
8538 HAVE_ALSA=no
8539 else
8540 PKG_CONFIG_MIN_VERSION=0.9.0
8541 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8543 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8544
8545 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5 &&
8546 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES" 2>&5` &&
8547 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES" 2>&5`; then
8548 edit_cflags="
8549 s,///*,/,g
8550 s/^/ /
8551 s/ -I/ $isystem/g
8552 s/^ //
8553 "
8554 ALSA_CFLAGS=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
8555 ALSA_LIBS=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
8557 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
8558 succeeded=yes
8559 else
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8561 $as_echo "no" >&6; }
8562 ALSA_CFLAGS=""
8563 ALSA_LIBS=""
8564 ## If we have a custom action on failure, don't print errors, but
8565 ## do set a variable so people can do so. Do it in a subshell
8566 ## to capture any diagnostics in invoking pkg-config.
8567 ALSA_PKG_ERRORS=`($PKG_CONFIG --print-errors "$ALSA_MODULES") 2>&1`
8568
8569 fi
8570
8571
8572
8573 else
8574 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8575 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8576 fi
8577 fi
8578
8579 if test $succeeded = yes; then
8580 HAVE_ALSA=yes
8581 else
8582 HAVE_ALSA=no
8583 fi
8584
8585 if test $HAVE_ALSA = yes; then
8586 SAVE_CFLAGS="$CFLAGS"
8587 SAVE_LIBS="$LIBS"
8588 CFLAGS="$ALSA_CFLAGS $CFLAGS"
8589 LIBS="$ALSA_LIBS $LIBS"
8590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8591 /* end confdefs.h. */
8592 #include <asoundlib.h>
8593 int
8594 main ()
8595 {
8596 snd_lib_error_set_handler (0);
8597 ;
8598 return 0;
8599 }
8600 _ACEOF
8601 if ac_fn_c_try_compile "$LINENO"; then :
8602 emacs_alsa_normal=yes
8603 else
8604 emacs_alsa_normal=no
8605 fi
8606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8607 if test "$emacs_alsa_normal" != yes; then
8608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8609 /* end confdefs.h. */
8610 #include <alsa/asoundlib.h>
8611 int
8612 main ()
8613 {
8614 snd_lib_error_set_handler (0);
8615 ;
8616 return 0;
8617 }
8618 _ACEOF
8619 if ac_fn_c_try_compile "$LINENO"; then :
8620 emacs_alsa_subdir=yes
8621 else
8622 emacs_alsa_subdir=no
8623 fi
8624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8625 if test "$emacs_alsa_subdir" != yes; then
8626 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8627 fi
8628 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8629 fi
8630
8631 CFLAGS="$SAVE_CFLAGS"
8632 LIBS="$SAVE_LIBS"
8633 LIBSOUND="$LIBSOUND $ALSA_LIBS"
8634 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
8635
8636 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8637
8638 fi
8639
8640 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
8641 case "$opsys" in
8642 gnu-linux|freebsd|netbsd)
8643
8644 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8645
8646 ;;
8647 esac
8648 fi
8649
8650
8651 fi
8652
8653
8654
8655
8656 for ac_header in $ac_header_list
8657 do :
8658 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8659 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8660 "
8661 eval as_val=\$$as_ac_Header
8662 if test "x$as_val" = x""yes; then :
8663 cat >>confdefs.h <<_ACEOF
8664 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8665 _ACEOF
8666
8667 fi
8668
8669 done
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8700 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8702 /* end confdefs.h. */
8703 #include <sys/personality.h>
8704 int
8705 main ()
8706 {
8707 personality (PER_LINUX32)
8708 ;
8709 return 0;
8710 }
8711 _ACEOF
8712 if ac_fn_c_try_compile "$LINENO"; then :
8713 emacs_cv_personality_linux32=yes
8714 else
8715 emacs_cv_personality_linux32=no
8716 fi
8717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8719 $as_echo "$emacs_cv_personality_linux32" >&6; }
8720
8721 if test $emacs_cv_personality_linux32 = yes; then
8722
8723 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8724
8725 fi
8726
8727 for ac_header in term.h
8728 do :
8729 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
8730 if test "x$ac_cv_header_term_h" = x""yes; then :
8731 cat >>confdefs.h <<_ACEOF
8732 #define HAVE_TERM_H 1
8733 _ACEOF
8734
8735 fi
8736
8737 done
8738
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8740 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8741 if test "${ac_cv_header_time+set}" = set; then :
8742 $as_echo_n "(cached) " >&6
8743 else
8744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8745 /* end confdefs.h. */
8746 #include <sys/types.h>
8747 #include <sys/time.h>
8748 #include <time.h>
8749
8750 int
8751 main ()
8752 {
8753 if ((struct tm *) 0)
8754 return 0;
8755 ;
8756 return 0;
8757 }
8758 _ACEOF
8759 if ac_fn_c_try_compile "$LINENO"; then :
8760 ac_cv_header_time=yes
8761 else
8762 ac_cv_header_time=no
8763 fi
8764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8765 fi
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8767 $as_echo "$ac_cv_header_time" >&6; }
8768 if test $ac_cv_header_time = yes; then
8769
8770 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8771
8772 fi
8773
8774 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
8775 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
8776 ac_have_decl=1
8777 else
8778 ac_have_decl=0
8779 fi
8780
8781 cat >>confdefs.h <<_ACEOF
8782 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8783 _ACEOF
8784
8785 if test $ac_cv_have_decl_sys_siglist != yes; then
8786 # For Tru64, at least:
8787 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
8788 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
8789 ac_have_decl=1
8790 else
8791 ac_have_decl=0
8792 fi
8793
8794 cat >>confdefs.h <<_ACEOF
8795 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8796 _ACEOF
8797
8798 if test $ac_cv_have_decl___sys_siglist = yes; then
8799
8800 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8801
8802 fi
8803 fi
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8805 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8806 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8807 $as_echo_n "(cached) " >&6
8808 else
8809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8810 /* end confdefs.h. */
8811 #include <sys/types.h>
8812 #include <sys/wait.h>
8813 #ifndef WEXITSTATUS
8814 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8815 #endif
8816 #ifndef WIFEXITED
8817 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8818 #endif
8819
8820 int
8821 main ()
8822 {
8823 int s;
8824 wait (&s);
8825 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8826 ;
8827 return 0;
8828 }
8829 _ACEOF
8830 if ac_fn_c_try_compile "$LINENO"; then :
8831 ac_cv_header_sys_wait_h=yes
8832 else
8833 ac_cv_header_sys_wait_h=no
8834 fi
8835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8836 fi
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8838 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8839 if test $ac_cv_header_sys_wait_h = yes; then
8840
8841 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8842
8843 fi
8844
8845
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
8847 $as_echo_n "checking for speed_t... " >&6; }
8848 if test "${emacs_cv_speed_t+set}" = set; then :
8849 $as_echo_n "(cached) " >&6
8850 else
8851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8852 /* end confdefs.h. */
8853 #include <termios.h>
8854 int
8855 main ()
8856 {
8857 speed_t x = 1;
8858 ;
8859 return 0;
8860 }
8861 _ACEOF
8862 if ac_fn_c_try_compile "$LINENO"; then :
8863 emacs_cv_speed_t=yes
8864 else
8865 emacs_cv_speed_t=no
8866 fi
8867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8868 fi
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
8870 $as_echo "$emacs_cv_speed_t" >&6; }
8871 if test $emacs_cv_speed_t = yes; then
8872
8873 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
8874
8875 fi
8876
8877
8878
8879
8880 for ac_header in net/if.h
8881 do :
8882 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8883 #if HAVE_SYS_SOCKET_H
8884 #include <sys/socket.h>
8885 #endif
8886 "
8887 if test "x$ac_cv_header_net_if_h" = x""yes; then :
8888 cat >>confdefs.h <<_ACEOF
8889 #define HAVE_NET_IF_H 1
8890 _ACEOF
8891
8892 fi
8893
8894 done
8895
8896 for ac_header in ifaddrs.h
8897 do :
8898 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
8899 #if HAVE_SYS_SOCKET_H
8900 #include <sys/socket.h>
8901 #endif
8902 "
8903 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
8904 cat >>confdefs.h <<_ACEOF
8905 #define HAVE_IFADDRS_H 1
8906 _ACEOF
8907
8908 fi
8909
8910 done
8911
8912 for ac_header in net/if_dl.h
8913 do :
8914 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
8915 #if HAVE_SYS_SOCKET_H
8916 #include <sys/socket.h>
8917 #endif
8918 "
8919 if test "x$ac_cv_header_net_if_dl_h" = x""yes; then :
8920 cat >>confdefs.h <<_ACEOF
8921 #define HAVE_NET_IF_DL_H 1
8922 _ACEOF
8923
8924 fi
8925
8926 done
8927
8928
8929 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8930 #if HAVE_SYS_SOCKET_H
8931 #include <sys/socket.h>
8932 #endif
8933 #if HAVE_NET_IF_H
8934 #include <net/if.h>
8935 #endif
8936 "
8937 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
8938
8939 cat >>confdefs.h <<_ACEOF
8940 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8941 _ACEOF
8942
8943
8944 fi
8945 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8946 #if HAVE_SYS_SOCKET_H
8947 #include <sys/socket.h>
8948 #endif
8949 #if HAVE_NET_IF_H
8950 #include <net/if.h>
8951 #endif
8952 "
8953 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
8954
8955 cat >>confdefs.h <<_ACEOF
8956 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8957 _ACEOF
8958
8959
8960 fi
8961 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8962 #if HAVE_SYS_SOCKET_H
8963 #include <sys/socket.h>
8964 #endif
8965 #if HAVE_NET_IF_H
8966 #include <net/if.h>
8967 #endif
8968 "
8969 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
8970
8971 cat >>confdefs.h <<_ACEOF
8972 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8973 _ACEOF
8974
8975
8976 fi
8977 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8978 #if HAVE_SYS_SOCKET_H
8979 #include <sys/socket.h>
8980 #endif
8981 #if HAVE_NET_IF_H
8982 #include <net/if.h>
8983 #endif
8984 "
8985 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
8986
8987 cat >>confdefs.h <<_ACEOF
8988 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8989 _ACEOF
8990
8991
8992 fi
8993 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8994 #if HAVE_SYS_SOCKET_H
8995 #include <sys/socket.h>
8996 #endif
8997 #if HAVE_NET_IF_H
8998 #include <net/if.h>
8999 #endif
9000 "
9001 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
9002
9003 cat >>confdefs.h <<_ACEOF
9004 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9005 _ACEOF
9006
9007
9008 fi
9009 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
9010 #if HAVE_SYS_SOCKET_H
9011 #include <sys/socket.h>
9012 #endif
9013 #if HAVE_NET_IF_H
9014 #include <net/if.h>
9015 #endif
9016 "
9017 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x""yes; then :
9018
9019 cat >>confdefs.h <<_ACEOF
9020 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9021 _ACEOF
9022
9023
9024 fi
9025
9026
9027
9028
9029 DEPFLAGS=
9030 MKDEPDIR=":"
9031 deps_frag=deps.mk
9032 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9034 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9035 HAVE_GNU_MAKE=no
9036 testval=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9037 if test "x$testval" != x; then
9038 HAVE_GNU_MAKE=yes
9039 else
9040 ac_enable_autodepend=no
9041 fi
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9043 $as_echo "$HAVE_GNU_MAKE" >&6; }
9044 if test $HAVE_GNU_MAKE = yes; then
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9046 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9047 SAVE_CFLAGS="$CFLAGS"
9048 CFLAGS="$CFLAGS -MMD -MF deps.d -MP"
9049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9050 /* end confdefs.h. */
9051
9052 int
9053 main ()
9054 {
9055
9056 ;
9057 return 0;
9058 }
9059 _ACEOF
9060 if ac_fn_c_try_compile "$LINENO"; then :
9061
9062 else
9063 ac_enable_autodepend=no
9064 fi
9065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9066 CFLAGS="$SAVE_CFLAGS"
9067 test -f deps.d || ac_enable_autodepend=no
9068 rm -rf deps.d
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9070 $as_echo "$ac_enable_autodepend" >&6; }
9071 fi
9072 if test $ac_enable_autodepend = yes; then
9073 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP'
9074 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
9075 MKDEPDIR='${MKDIR_P} ${DEPDIR}'
9076 deps_frag=autodeps.mk
9077 fi
9078 fi
9079 deps_frag=$srcdir/src/$deps_frag
9080
9081
9082
9083
9084
9085 lisp_frag=$srcdir/src/lisp.mk
9086
9087
9088
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9090 $as_echo_n "checking for long file names... " >&6; }
9091 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9092 $as_echo_n "(cached) " >&6
9093 else
9094 ac_cv_sys_long_file_names=yes
9095 # Test for long file names in all the places we know might matter:
9096 # . the current directory, where building will happen
9097 # $prefix/lib where we will be installing things
9098 # $exec_prefix/lib likewise
9099 # $TMPDIR if set, where it might want to write temporary files
9100 # /tmp where it might want to write temporary files
9101 # /var/tmp likewise
9102 # /usr/tmp likewise
9103 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9104 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9105 # in the usual case where exec_prefix is '${prefix}'.
9106 case $ac_dir in #(
9107 . | /* | ?:[\\/]*) ;; #(
9108 *) continue;;
9109 esac
9110 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9111 ac_xdir=$ac_dir/cf$$
9112 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9113 ac_tf1=$ac_xdir/conftest9012345
9114 ac_tf2=$ac_xdir/conftest9012346
9115 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9116 ac_cv_sys_long_file_names=no
9117 rm -f -r "$ac_xdir" 2>/dev/null
9118 test $ac_cv_sys_long_file_names = no && break
9119 done
9120 fi
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9122 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9123 if test $ac_cv_sys_long_file_names = yes; then
9124
9125 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9126
9127 fi
9128
9129
9130 #### Choose a window system.
9131
9132 ## We leave window_system equal to none if
9133 ## we end up building without one. Any new window system should
9134 ## set window_system to an appropriate value and add objects to
9135 ## window-system-specific substs.
9136
9137 window_system=none
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9139 $as_echo_n "checking for X... " >&6; }
9140
9141
9142 # Check whether --with-x was given.
9143 if test "${with_x+set}" = set; then :
9144 withval=$with_x;
9145 fi
9146
9147 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9148 if test "x$with_x" = xno; then
9149 # The user explicitly disabled X.
9150 have_x=disabled
9151 else
9152 case $x_includes,$x_libraries in #(
9153 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9154 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9155 $as_echo_n "(cached) " >&6
9156 else
9157 # One or both of the vars are not set, and there is no cached value.
9158 ac_x_includes=no ac_x_libraries=no
9159 rm -f -r conftest.dir
9160 if mkdir conftest.dir; then
9161 cd conftest.dir
9162 cat >Imakefile <<'_ACEOF'
9163 incroot:
9164 @echo incroot='${INCROOT}'
9165 usrlibdir:
9166 @echo usrlibdir='${USRLIBDIR}'
9167 libdir:
9168 @echo libdir='${LIBDIR}'
9169 _ACEOF
9170 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9171 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9172 for ac_var in incroot usrlibdir libdir; do
9173 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9174 done
9175 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9176 for ac_extension in a so sl dylib la dll; do
9177 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9178 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9179 ac_im_usrlibdir=$ac_im_libdir; break
9180 fi
9181 done
9182 # Screen out bogus values from the imake configuration. They are
9183 # bogus both because they are the default anyway, and because
9184 # using them would break gcc on systems where it needs fixed includes.
9185 case $ac_im_incroot in
9186 /usr/include) ac_x_includes= ;;
9187 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9188 esac
9189 case $ac_im_usrlibdir in
9190 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9191 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9192 esac
9193 fi
9194 cd ..
9195 rm -f -r conftest.dir
9196 fi
9197
9198 # Standard set of common directories for X headers.
9199 # Check X11 before X11Rn because it is often a symlink to the current release.
9200 ac_x_header_dirs='
9201 /usr/X11/include
9202 /usr/X11R7/include
9203 /usr/X11R6/include
9204 /usr/X11R5/include
9205 /usr/X11R4/include
9206
9207 /usr/include/X11
9208 /usr/include/X11R7
9209 /usr/include/X11R6
9210 /usr/include/X11R5
9211 /usr/include/X11R4
9212
9213 /usr/local/X11/include
9214 /usr/local/X11R7/include
9215 /usr/local/X11R6/include
9216 /usr/local/X11R5/include
9217 /usr/local/X11R4/include
9218
9219 /usr/local/include/X11
9220 /usr/local/include/X11R7
9221 /usr/local/include/X11R6
9222 /usr/local/include/X11R5
9223 /usr/local/include/X11R4
9224
9225 /usr/X386/include
9226 /usr/x386/include
9227 /usr/XFree86/include/X11
9228
9229 /usr/include
9230 /usr/local/include
9231 /usr/unsupported/include
9232 /usr/athena/include
9233 /usr/local/x11r5/include
9234 /usr/lpp/Xamples/include
9235
9236 /usr/openwin/include
9237 /usr/openwin/share/include'
9238
9239 if test "$ac_x_includes" = no; then
9240 # Guess where to find include files, by looking for Xlib.h.
9241 # First, try using that file with no special directory specified.
9242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9243 /* end confdefs.h. */
9244 #include <X11/Xlib.h>
9245 _ACEOF
9246 if ac_fn_c_try_cpp "$LINENO"; then :
9247 # We can compile using X headers with no special include directory.
9248 ac_x_includes=
9249 else
9250 for ac_dir in $ac_x_header_dirs; do
9251 if test -r "$ac_dir/X11/Xlib.h"; then
9252 ac_x_includes=$ac_dir
9253 break
9254 fi
9255 done
9256 fi
9257 rm -f conftest.err conftest.$ac_ext
9258 fi # $ac_x_includes = no
9259
9260 if test "$ac_x_libraries" = no; then
9261 # Check for the libraries.
9262 # See if we find them without any special options.
9263 # Don't add to $LIBS permanently.
9264 ac_save_LIBS=$LIBS
9265 LIBS="-lX11 $LIBS"
9266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9267 /* end confdefs.h. */
9268 #include <X11/Xlib.h>
9269 int
9270 main ()
9271 {
9272 XrmInitialize ()
9273 ;
9274 return 0;
9275 }
9276 _ACEOF
9277 if ac_fn_c_try_link "$LINENO"; then :
9278 LIBS=$ac_save_LIBS
9279 # We can link X programs with no special library path.
9280 ac_x_libraries=
9281 else
9282 LIBS=$ac_save_LIBS
9283 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9284 do
9285 # Don't even attempt the hair of trying to link an X program!
9286 for ac_extension in a so sl dylib la dll; do
9287 if test -r "$ac_dir/libX11.$ac_extension"; then
9288 ac_x_libraries=$ac_dir
9289 break 2
9290 fi
9291 done
9292 done
9293 fi
9294 rm -f core conftest.err conftest.$ac_objext \
9295 conftest$ac_exeext conftest.$ac_ext
9296 fi # $ac_x_libraries = no
9297
9298 case $ac_x_includes,$ac_x_libraries in #(
9299 no,* | *,no | *\'*)
9300 # Didn't find X, or a directory has "'" in its name.
9301 ac_cv_have_x="have_x=no";; #(
9302 *)
9303 # Record where we found X for the cache.
9304 ac_cv_have_x="have_x=yes\
9305 ac_x_includes='$ac_x_includes'\
9306 ac_x_libraries='$ac_x_libraries'"
9307 esac
9308 fi
9309 ;; #(
9310 *) have_x=yes;;
9311 esac
9312 eval "$ac_cv_have_x"
9313 fi # $with_x != no
9314
9315 if test "$have_x" != yes; then
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9317 $as_echo "$have_x" >&6; }
9318 no_x=yes
9319 else
9320 # If each of the values was on the command line, it overrides each guess.
9321 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9322 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9323 # Update the cache value to reflect the command line values.
9324 ac_cv_have_x="have_x=yes\
9325 ac_x_includes='$x_includes'\
9326 ac_x_libraries='$x_libraries'"
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9328 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9329 fi
9330
9331 if test "$no_x" != yes; then
9332 window_system=x11
9333 fi
9334
9335 LD_SWITCH_X_SITE_RPATH=
9336 if test "${x_libraries}" != NONE; then
9337 if test -n "${x_libraries}"; then
9338 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9339 LD_SWITCH_X_SITE_RPATH=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
9340 fi
9341 x_default_search_path=""
9342 x_search_path=${x_libraries}
9343 if test -z "${x_search_path}"; then
9344 x_search_path=/usr/lib
9345 fi
9346 for x_library in `echo ${x_search_path}: | \
9347 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9348 x_search_path="\
9349 ${x_library}/X11/%L/%T/%N%C%S:\
9350 ${x_library}/X11/%l/%T/%N%C%S:\
9351 ${x_library}/X11/%T/%N%C%S:\
9352 ${x_library}/X11/%L/%T/%N%S:\
9353 ${x_library}/X11/%l/%T/%N%S:\
9354 ${x_library}/X11/%T/%N%S"
9355 if test x"${x_default_search_path}" = x; then
9356 x_default_search_path=${x_search_path}
9357 else
9358 x_default_search_path="${x_search_path}:${x_default_search_path}"
9359 fi
9360 done
9361 fi
9362
9363
9364 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9365 C_SWITCH_X_SITE="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
9366 fi
9367
9368 if test x"${x_includes}" = x; then
9369 bitmapdir=/usr/include/X11/bitmaps
9370 else
9371 # accumulate include directories that have X11 bitmap subdirectories
9372 bmd_acc="dummyval"
9373 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9374 if test -d "${bmd}/X11/bitmaps"; then
9375 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9376 fi
9377 if test -d "${bmd}/bitmaps"; then
9378 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9379 fi
9380 done
9381 if test ${bmd_acc} != "dummyval"; then
9382 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9383 fi
9384 fi
9385
9386 HAVE_NS=no
9387 NS_IMPL_COCOA=no
9388 NS_IMPL_GNUSTEP=no
9389 tmp_CPPFLAGS="$CPPFLAGS"
9390 tmp_CFLAGS="$CFLAGS"
9391 CPPFLAGS="$CPPFLAGS -x objective-c"
9392 CFLAGS="$CFLAGS -x objective-c"
9393 TEMACS_LDFLAGS2="\${LDFLAGS}"
9394 GNU_OBJC_CFLAGS=
9395 if test "${with_ns}" != no; then
9396 if test "${opsys}" = darwin; then
9397 NS_IMPL_COCOA=yes
9398 ns_appdir=`pwd`/nextstep/Emacs.app
9399 ns_appbindir=${ns_appdir}/Contents/MacOS
9400 ns_appresdir=${ns_appdir}/Contents/Resources
9401 ns_appsrc=Cocoa/Emacs.base
9402 elif test -f $GNUSTEP_CONFIG_FILE; then
9403 NS_IMPL_GNUSTEP=yes
9404 ns_appdir=`pwd`/nextstep/Emacs.app
9405 ns_appbindir=${ns_appdir}
9406 ns_appresdir=${ns_appdir}/Resources
9407 ns_appsrc=GNUstep/Emacs.base
9408 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9409 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9410 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9411 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9412 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9413 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9414 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9415 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9416 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9417 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9418 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9419 LIB_STANDARD=
9420 START_FILES=
9421 TEMACS_LDFLAGS2=
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9423 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9424 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9425 $as_echo_n "(cached) " >&6
9426 else
9427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9428 /* end confdefs.h. */
9429 #include <GNUstepBase/GSConfig.h>
9430 int
9431 main ()
9432 {
9433 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9434 1;
9435 #else
9436 fail;
9437 #endif
9438 ;
9439 return 0;
9440 }
9441 _ACEOF
9442 if ac_fn_c_try_compile "$LINENO"; then :
9443 emacs_cv_objc_exceptions=yes
9444 else
9445 emacs_cv_objc_exceptions=no
9446 fi
9447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9448 fi
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9450 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9451 if test $emacs_cv_objc_exceptions = yes; then
9452
9453 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9454
9455 GNU_OBJC_CFLAGS="-fobjc-exceptions"
9456 fi
9457 fi
9458
9459 CFLAGS="$CFLAGS $GNU_OBJC_CFLAGS"
9460
9461 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9462 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
9463 HAVE_NS=yes
9464 else
9465 as_fn_error "\`--with-ns' was specified, but the include
9466 files are missing or cannot be compiled." "$LINENO" 5
9467 fi
9468
9469
9470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9471 /* end confdefs.h. */
9472 #include <Foundation/NSObjCRuntime.h>
9473 int
9474 main ()
9475 {
9476 NSInteger i;
9477 ;
9478 return 0;
9479 }
9480 _ACEOF
9481 if ac_fn_c_try_compile "$LINENO"; then :
9482 ns_have_nsinteger=yes
9483 else
9484 ns_have_nsinteger=no
9485 fi
9486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9487 if test $ns_have_nsinteger = yes; then
9488
9489 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
9490
9491 fi
9492 fi
9493
9494
9495 INSTALL_ARCH_INDEP_EXTRA=install-etc
9496 ns_self_contained=no
9497 NS_OBJ=
9498 NS_OBJC_OBJ=
9499 if test "${HAVE_NS}" = yes; then
9500 if test "$with_toolkit_scroll_bars" = "no"; then
9501 as_fn_error "Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
9502 fi
9503
9504 window_system=nextstep
9505 # set up packaging dirs
9506 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9507 ns_self_contained=yes
9508 prefix=${ns_appresdir}
9509 exec_prefix=${ns_appbindir}
9510 libexecdir="\${ns_appbindir}/libexec"
9511 archlibdir="\${ns_appbindir}/libexec"
9512 docdir="\${ns_appresdir}/etc"
9513 etcdir="\${ns_appresdir}/etc"
9514 infodir="\${ns_appresdir}/info"
9515 mandir="\${ns_appresdir}/man"
9516 lispdir="\${ns_appresdir}/lisp"
9517 leimdir="\${ns_appresdir}/leim"
9518 INSTALL_ARCH_INDEP_EXTRA=
9519 fi
9520 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9521 fi
9522 CFLAGS="$tmp_CFLAGS"
9523 CPPFLAGS="$tmp_CPPFLAGS"
9524
9525
9526
9527
9528
9529
9530 ## $window_system is now set to the window system we will
9531 ## ultimately use.
9532
9533 term_header=
9534 HAVE_X_WINDOWS=no
9535 HAVE_X11=no
9536 USE_X_TOOLKIT=none
9537
9538 case "${window_system}" in
9539 x11 )
9540 HAVE_X_WINDOWS=yes
9541 HAVE_X11=yes
9542 term_header=xterm.h
9543 case "${with_x_toolkit}" in
9544 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9545 motif ) USE_X_TOOLKIT=MOTIF ;;
9546 gtk ) with_gtk=yes
9547 term_header=gtkutil.h
9548 USE_X_TOOLKIT=none ;;
9549 gtk2 ) with_gtk2=yes
9550 term_header=gtkutil.h
9551 USE_X_TOOLKIT=none ;;
9552 gtk3 ) with_gtk3=yes
9553 term_header=gtkutil.h
9554 USE_X_TOOLKIT=none ;;
9555 no ) USE_X_TOOLKIT=none ;;
9556 * ) USE_X_TOOLKIT=maybe ;;
9557 esac
9558 ;;
9559 nextstep )
9560 term_header=nsterm.h
9561 ;;
9562 esac
9563
9564 if test -n "${term_header}"; then
9565
9566 cat >>confdefs.h <<_ACEOF
9567 #define TERM_HEADER "${term_header}"
9568 _ACEOF
9569
9570 fi
9571
9572 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9573 # Extract the first word of "X", so it can be a program name with args.
9574 set dummy X; ac_word=$2
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9576 $as_echo_n "checking for $ac_word... " >&6; }
9577 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9578 $as_echo_n "(cached) " >&6
9579 else
9580 if test -n "$HAVE_XSERVER"; then
9581 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9582 else
9583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9584 for as_dir in $PATH
9585 do
9586 IFS=$as_save_IFS
9587 test -z "$as_dir" && as_dir=.
9588 for ac_exec_ext in '' $ac_executable_extensions; do
9589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9590 ac_cv_prog_HAVE_XSERVER="true"
9591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9592 break 2
9593 fi
9594 done
9595 done
9596 IFS=$as_save_IFS
9597
9598 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9599 fi
9600 fi
9601 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9602 if test -n "$HAVE_XSERVER"; then
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9604 $as_echo "$HAVE_XSERVER" >&6; }
9605 else
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9607 $as_echo "no" >&6; }
9608 fi
9609
9610
9611 if test "$HAVE_XSERVER" = true ||
9612 test -n "$DISPLAY" ||
9613 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9614 as_fn_error "You seem to be running X, but no X development libraries
9615 were found. You should install the relevant development files for X
9616 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9617 sure you have development files for image handling, i.e.
9618 tiff, gif, jpeg, png and xpm.
9619 If you are sure you want Emacs compiled without X window support, pass
9620 --without-x
9621 to configure." "$LINENO" 5
9622 fi
9623 fi
9624
9625 ### If we're using X11, we should use the X menu package.
9626 HAVE_MENUS=no
9627 case ${HAVE_X11} in
9628 yes ) HAVE_MENUS=yes ;;
9629 esac
9630
9631 # Does the opsystem file prohibit the use of the GNU malloc?
9632 # Assume not, until told otherwise.
9633 GNU_MALLOC=yes
9634
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
9636 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
9637 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
9638 $as_echo_n "(cached) " >&6
9639 else
9640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9641 /* end confdefs.h. */
9642 #include <malloc.h>
9643 static void hook (void) {}
9644 int
9645 main ()
9646 {
9647 malloc_set_state (malloc_get_state ());
9648 __after_morecore_hook = hook;
9649 __malloc_initialize_hook = hook;
9650 ;
9651 return 0;
9652 }
9653 _ACEOF
9654 if ac_fn_c_try_link "$LINENO"; then :
9655 emacs_cv_var_doug_lea_malloc=yes
9656 else
9657 emacs_cv_var_doug_lea_malloc=no
9658 fi
9659 rm -f core conftest.err conftest.$ac_objext \
9660 conftest$ac_exeext conftest.$ac_ext
9661 fi
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
9663 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
9664 doug_lea_malloc=$emacs_cv_var_doug_lea_malloc
9665
9666
9667 system_malloc=no
9668 case "$opsys" in
9669 ## darwin ld insists on the use of malloc routines in the System framework.
9670 darwin|sol2-10) system_malloc=yes ;;
9671 esac
9672
9673 if test "${system_malloc}" = "yes"; then
9674
9675 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9676
9677 GNU_MALLOC=no
9678 GNU_MALLOC_reason="
9679 (The GNU allocators don't work with this system configuration.)"
9680 GMALLOC_OBJ=
9681 VMLIMIT_OBJ=
9682 else
9683 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
9684 VMLIMIT_OBJ=vm-limit.o
9685 fi
9686
9687
9688
9689 if test "$doug_lea_malloc" = "yes" ; then
9690 if test "$GNU_MALLOC" = yes ; then
9691 GNU_MALLOC_reason="
9692 (Using Doug Lea's new malloc from the GNU C Library.)"
9693 fi
9694
9695 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9696
9697
9698 ## Use mmap directly for allocating larger buffers.
9699 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9700 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9701 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
9702 case "$opsys" in
9703 gnu*) REL_ALLOC=no ;;
9704 esac
9705 fi
9706
9707 if test x"${REL_ALLOC}" = x; then
9708 REL_ALLOC=${GNU_MALLOC}
9709 fi
9710
9711 use_mmap_for_buffers=no
9712 case "$opsys" in
9713 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
9714 esac
9715
9716
9717
9718
9719
9720
9721
9722
9723 for ac_func in getpagesize
9724 do :
9725 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9726 if test "x$ac_cv_func_getpagesize" = x""yes; then :
9727 cat >>confdefs.h <<_ACEOF
9728 #define HAVE_GETPAGESIZE 1
9729 _ACEOF
9730
9731 fi
9732 done
9733
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9735 $as_echo_n "checking for working mmap... " >&6; }
9736 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9737 $as_echo_n "(cached) " >&6
9738 else
9739 if test "$cross_compiling" = yes; then :
9740 ac_cv_func_mmap_fixed_mapped=no
9741 else
9742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9743 /* end confdefs.h. */
9744 $ac_includes_default
9745 /* malloc might have been renamed as rpl_malloc. */
9746 #undef malloc
9747
9748 /* Thanks to Mike Haertel and Jim Avera for this test.
9749 Here is a matrix of mmap possibilities:
9750 mmap private not fixed
9751 mmap private fixed at somewhere currently unmapped
9752 mmap private fixed at somewhere already mapped
9753 mmap shared not fixed
9754 mmap shared fixed at somewhere currently unmapped
9755 mmap shared fixed at somewhere already mapped
9756 For private mappings, we should verify that changes cannot be read()
9757 back from the file, nor mmap's back from the file at a different
9758 address. (There have been systems where private was not correctly
9759 implemented like the infamous i386 svr4.0, and systems where the
9760 VM page cache was not coherent with the file system buffer cache
9761 like early versions of FreeBSD and possibly contemporary NetBSD.)
9762 For shared mappings, we should conversely verify that changes get
9763 propagated back to all the places they're supposed to be.
9764
9765 Grep wants private fixed already mapped.
9766 The main things grep needs to know about mmap are:
9767 * does it exist and is it safe to write into the mmap'd area
9768 * how to use it (BSD variants) */
9769
9770 #include <fcntl.h>
9771 #include <sys/mman.h>
9772
9773 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9774 char *malloc ();
9775 #endif
9776
9777 /* This mess was copied from the GNU getpagesize.h. */
9778 #ifndef HAVE_GETPAGESIZE
9779 # ifdef _SC_PAGESIZE
9780 # define getpagesize() sysconf(_SC_PAGESIZE)
9781 # else /* no _SC_PAGESIZE */
9782 # ifdef HAVE_SYS_PARAM_H
9783 # include <sys/param.h>
9784 # ifdef EXEC_PAGESIZE
9785 # define getpagesize() EXEC_PAGESIZE
9786 # else /* no EXEC_PAGESIZE */
9787 # ifdef NBPG
9788 # define getpagesize() NBPG * CLSIZE
9789 # ifndef CLSIZE
9790 # define CLSIZE 1
9791 # endif /* no CLSIZE */
9792 # else /* no NBPG */
9793 # ifdef NBPC
9794 # define getpagesize() NBPC
9795 # else /* no NBPC */
9796 # ifdef PAGESIZE
9797 # define getpagesize() PAGESIZE
9798 # endif /* PAGESIZE */
9799 # endif /* no NBPC */
9800 # endif /* no NBPG */
9801 # endif /* no EXEC_PAGESIZE */
9802 # else /* no HAVE_SYS_PARAM_H */
9803 # define getpagesize() 8192 /* punt totally */
9804 # endif /* no HAVE_SYS_PARAM_H */
9805 # endif /* no _SC_PAGESIZE */
9806
9807 #endif /* no HAVE_GETPAGESIZE */
9808
9809 int
9810 main ()
9811 {
9812 char *data, *data2, *data3;
9813 const char *cdata2;
9814 int i, pagesize;
9815 int fd, fd2;
9816
9817 pagesize = getpagesize ();
9818
9819 /* First, make a file with some known garbage in it. */
9820 data = (char *) malloc (pagesize);
9821 if (!data)
9822 return 1;
9823 for (i = 0; i < pagesize; ++i)
9824 *(data + i) = rand ();
9825 umask (0);
9826 fd = creat ("conftest.mmap", 0600);
9827 if (fd < 0)
9828 return 2;
9829 if (write (fd, data, pagesize) != pagesize)
9830 return 3;
9831 close (fd);
9832
9833 /* Next, check that the tail of a page is zero-filled. File must have
9834 non-zero length, otherwise we risk SIGBUS for entire page. */
9835 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9836 if (fd2 < 0)
9837 return 4;
9838 cdata2 = "";
9839 if (write (fd2, cdata2, 1) != 1)
9840 return 5;
9841 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9842 if (data2 == MAP_FAILED)
9843 return 6;
9844 for (i = 0; i < pagesize; ++i)
9845 if (*(data2 + i))
9846 return 7;
9847 close (fd2);
9848 if (munmap (data2, pagesize))
9849 return 8;
9850
9851 /* Next, try to mmap the file at a fixed address which already has
9852 something else allocated at it. If we can, also make sure that
9853 we see the same garbage. */
9854 fd = open ("conftest.mmap", O_RDWR);
9855 if (fd < 0)
9856 return 9;
9857 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9858 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9859 return 10;
9860 for (i = 0; i < pagesize; ++i)
9861 if (*(data + i) != *(data2 + i))
9862 return 11;
9863
9864 /* Finally, make sure that changes to the mapped area do not
9865 percolate back to the file as seen by read(). (This is a bug on
9866 some variants of i386 svr4.0.) */
9867 for (i = 0; i < pagesize; ++i)
9868 *(data2 + i) = *(data2 + i) + 1;
9869 data3 = (char *) malloc (pagesize);
9870 if (!data3)
9871 return 12;
9872 if (read (fd, data3, pagesize) != pagesize)
9873 return 13;
9874 for (i = 0; i < pagesize; ++i)
9875 if (*(data + i) != *(data3 + i))
9876 return 14;
9877 close (fd);
9878 return 0;
9879 }
9880 _ACEOF
9881 if ac_fn_c_try_run "$LINENO"; then :
9882 ac_cv_func_mmap_fixed_mapped=yes
9883 else
9884 ac_cv_func_mmap_fixed_mapped=no
9885 fi
9886 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9887 conftest.$ac_objext conftest.beam conftest.$ac_ext
9888 fi
9889
9890 fi
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9892 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9893 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9894
9895 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9896
9897 fi
9898 rm -f conftest.mmap conftest.txt
9899
9900 if test $use_mmap_for_buffers = yes; then
9901
9902 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9903
9904 REL_ALLOC=no
9905 fi
9906
9907 LIBS="$LIBS_SYSTEM $LIBS"
9908
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9910 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9911 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
9912 $as_echo_n "(cached) " >&6
9913 else
9914 ac_check_lib_save_LIBS=$LIBS
9915 LIBS="-ldnet $LIBS"
9916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9917 /* end confdefs.h. */
9918
9919 /* Override any GCC internal prototype to avoid an error.
9920 Use char because int might match the return type of a GCC
9921 builtin and then its argument prototype would still apply. */
9922 #ifdef __cplusplus
9923 extern "C"
9924 #endif
9925 char dnet_ntoa ();
9926 int
9927 main ()
9928 {
9929 return dnet_ntoa ();
9930 ;
9931 return 0;
9932 }
9933 _ACEOF
9934 if ac_fn_c_try_link "$LINENO"; then :
9935 ac_cv_lib_dnet_dnet_ntoa=yes
9936 else
9937 ac_cv_lib_dnet_dnet_ntoa=no
9938 fi
9939 rm -f core conftest.err conftest.$ac_objext \
9940 conftest$ac_exeext conftest.$ac_ext
9941 LIBS=$ac_check_lib_save_LIBS
9942 fi
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9944 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9945 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
9946 cat >>confdefs.h <<_ACEOF
9947 #define HAVE_LIBDNET 1
9948 _ACEOF
9949
9950 LIBS="-ldnet $LIBS"
9951
9952 fi
9953
9954
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9956 $as_echo_n "checking for main in -lXbsd... " >&6; }
9957 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
9958 $as_echo_n "(cached) " >&6
9959 else
9960 ac_check_lib_save_LIBS=$LIBS
9961 LIBS="-lXbsd $LIBS"
9962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9963 /* end confdefs.h. */
9964
9965
9966 int
9967 main ()
9968 {
9969 return main ();
9970 ;
9971 return 0;
9972 }
9973 _ACEOF
9974 if ac_fn_c_try_link "$LINENO"; then :
9975 ac_cv_lib_Xbsd_main=yes
9976 else
9977 ac_cv_lib_Xbsd_main=no
9978 fi
9979 rm -f core conftest.err conftest.$ac_objext \
9980 conftest$ac_exeext conftest.$ac_ext
9981 LIBS=$ac_check_lib_save_LIBS
9982 fi
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9984 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
9985 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
9986 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9987 fi
9988
9989
9990 LIB_PTHREAD=
9991
9992
9993
9994 if test "$ac_cv_header_pthread_h"; then
9995 if test "$GMALLOC_OBJ" = gmalloc.o; then
9996 emacs_pthread_function=pthread_atfork
9997 else
9998 emacs_pthread_function=pthread_self
9999 fi
10000 as_ac_Lib=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
10002 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
10003 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
10004 $as_echo_n "(cached) " >&6
10005 else
10006 ac_check_lib_save_LIBS=$LIBS
10007 LIBS="-lpthread $LIBS"
10008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10009 /* end confdefs.h. */
10010
10011 /* Override any GCC internal prototype to avoid an error.
10012 Use char because int might match the return type of a GCC
10013 builtin and then its argument prototype would still apply. */
10014 #ifdef __cplusplus
10015 extern "C"
10016 #endif
10017 char $emacs_pthread_function ();
10018 int
10019 main ()
10020 {
10021 return $emacs_pthread_function ();
10022 ;
10023 return 0;
10024 }
10025 _ACEOF
10026 if ac_fn_c_try_link "$LINENO"; then :
10027 eval "$as_ac_Lib=yes"
10028 else
10029 eval "$as_ac_Lib=no"
10030 fi
10031 rm -f core conftest.err conftest.$ac_objext \
10032 conftest$ac_exeext conftest.$ac_ext
10033 LIBS=$ac_check_lib_save_LIBS
10034 fi
10035 eval ac_res=\$$as_ac_Lib
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10037 $as_echo "$ac_res" >&6; }
10038 eval as_val=\$$as_ac_Lib
10039 if test "x$as_val" = x""yes; then :
10040 HAVE_PTHREAD=yes
10041 fi
10042
10043 fi
10044 if test "$HAVE_PTHREAD" = yes; then
10045 case "${canonical}" in
10046 *-hpux*) ;;
10047 *) LIB_PTHREAD="-lpthread"
10048 LIBS="$LIB_PTHREAD $LIBS" ;;
10049 esac
10050
10051 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10052
10053 fi
10054
10055
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10057 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10058 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10059 $as_echo_n "(cached) " >&6
10060 else
10061 ac_check_lib_save_LIBS=$LIBS
10062 LIBS="-lpthreads $LIBS"
10063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10064 /* end confdefs.h. */
10065
10066 /* Override any GCC internal prototype to avoid an error.
10067 Use char because int might match the return type of a GCC
10068 builtin and then its argument prototype would still apply. */
10069 #ifdef __cplusplus
10070 extern "C"
10071 #endif
10072 char cma_open ();
10073 int
10074 main ()
10075 {
10076 return cma_open ();
10077 ;
10078 return 0;
10079 }
10080 _ACEOF
10081 if ac_fn_c_try_link "$LINENO"; then :
10082 ac_cv_lib_pthreads_cma_open=yes
10083 else
10084 ac_cv_lib_pthreads_cma_open=no
10085 fi
10086 rm -f core conftest.err conftest.$ac_objext \
10087 conftest$ac_exeext conftest.$ac_ext
10088 LIBS=$ac_check_lib_save_LIBS
10089 fi
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10091 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10092 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
10093 cat >>confdefs.h <<_ACEOF
10094 #define HAVE_LIBPTHREADS 1
10095 _ACEOF
10096
10097 LIBS="-lpthreads $LIBS"
10098
10099 fi
10100
10101
10102 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10103 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10104 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10105 ## added to LIBS in configure would never contain the pthreads part,
10106 ## but the value used in Makefiles might. FIXME?
10107 ##
10108 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10109 ## be harmless on older versions of X where it happens to exist.
10110 test "$opsys" = "aix4-2" && \
10111 test $ac_cv_lib_pthreads_cma_open = yes && \
10112 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
10113
10114
10115 case ${host_os} in
10116 aix*)
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10118 $as_echo_n "checking for -bbigtoc option... " >&6; }
10119 if test "${gdb_cv_bigtoc+set}" = set; then :
10120 $as_echo_n "(cached) " >&6
10121 else
10122
10123 case $GCC in
10124 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10125 *) gdb_cv_bigtoc=-bbigtoc ;;
10126 esac
10127
10128 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10130 /* end confdefs.h. */
10131
10132 int
10133 main ()
10134 {
10135 int i;
10136 ;
10137 return 0;
10138 }
10139 _ACEOF
10140 if ac_fn_c_try_link "$LINENO"; then :
10141
10142 else
10143 gdb_cv_bigtoc=
10144 fi
10145 rm -f core conftest.err conftest.$ac_objext \
10146 conftest$ac_exeext conftest.$ac_ext
10147
10148 fi
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10150 $as_echo "$gdb_cv_bigtoc" >&6; }
10151 ;;
10152 esac
10153
10154 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10155 # used for the tests that follow. We set them back to REAL_CFLAGS and
10156 # REAL_CPPFLAGS later on.
10157
10158 REAL_CFLAGS="$CFLAGS"
10159 REAL_CPPFLAGS="$CPPFLAGS"
10160
10161 if test "${HAVE_X11}" = "yes"; then
10162 DEFS="$C_SWITCH_X_SITE $DEFS"
10163 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10164 LIBS="-lX11 $LIBS"
10165 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10166 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10167
10168 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10169 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
10170 # but it's more convenient here to set LD_RUN_PATH since this
10171 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
10172 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10173 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10174 export LD_RUN_PATH
10175 fi
10176
10177 if test "${opsys}" = "gnu-linux"; then
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10179 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10181 /* end confdefs.h. */
10182
10183 int
10184 main ()
10185 {
10186 XOpenDisplay ("foo");
10187 ;
10188 return 0;
10189 }
10190 _ACEOF
10191 if ac_fn_c_try_link "$LINENO"; then :
10192 xgnu_linux_first_failure=no
10193 else
10194 xgnu_linux_first_failure=yes
10195 fi
10196 rm -f core conftest.err conftest.$ac_objext \
10197 conftest$ac_exeext conftest.$ac_ext
10198 if test "${xgnu_linux_first_failure}" = "yes"; then
10199 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10200 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10201 OLD_CPPFLAGS="$CPPFLAGS"
10202 OLD_LIBS="$LIBS"
10203 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10204 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10205 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10206 LIBS="$LIBS -b i486-linuxaout"
10207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10208 /* end confdefs.h. */
10209
10210 int
10211 main ()
10212 {
10213 XOpenDisplay ("foo");
10214 ;
10215 return 0;
10216 }
10217 _ACEOF
10218 if ac_fn_c_try_link "$LINENO"; then :
10219 xgnu_linux_second_failure=no
10220 else
10221 xgnu_linux_second_failure=yes
10222 fi
10223 rm -f core conftest.err conftest.$ac_objext \
10224 conftest$ac_exeext conftest.$ac_ext
10225 if test "${xgnu_linux_second_failure}" = "yes"; then
10226 # If we get the same failure with -b, there is no use adding -b.
10227 # So take it out. This plays safe.
10228 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10229 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10230 CPPFLAGS="$OLD_CPPFLAGS"
10231 LIBS="$OLD_LIBS"
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10233 $as_echo "no" >&6; }
10234 else
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10236 $as_echo "yes" >&6; }
10237 fi
10238 else
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10240 $as_echo "no" >&6; }
10241 fi
10242 fi
10243
10244 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10245 # header files included from there.
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10247 $as_echo_n "checking for Xkb... " >&6; }
10248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10249 /* end confdefs.h. */
10250 #include <X11/Xlib.h>
10251 #include <X11/XKBlib.h>
10252 int
10253 main ()
10254 {
10255 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10256 ;
10257 return 0;
10258 }
10259 _ACEOF
10260 if ac_fn_c_try_link "$LINENO"; then :
10261 emacs_xkb=yes
10262 else
10263 emacs_xkb=no
10264 fi
10265 rm -f core conftest.err conftest.$ac_objext \
10266 conftest$ac_exeext conftest.$ac_ext
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10268 $as_echo "$emacs_xkb" >&6; }
10269 if test $emacs_xkb = yes; then
10270
10271 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10272
10273 fi
10274
10275 for ac_func in XrmSetDatabase XScreenResourceString \
10276 XScreenNumberOfScreen
10277 do :
10278 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10279 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10280 eval as_val=\$$as_ac_var
10281 if test "x$as_val" = x""yes; then :
10282 cat >>confdefs.h <<_ACEOF
10283 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10284 _ACEOF
10285
10286 fi
10287 done
10288
10289 fi
10290
10291 if test "${window_system}" = "x11"; then
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10293 $as_echo_n "checking X11 version 6... " >&6; }
10294 if test "${emacs_cv_x11_version_6+set}" = set; then :
10295 $as_echo_n "(cached) " >&6
10296 else
10297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10298 /* end confdefs.h. */
10299 #include <X11/Xlib.h>
10300 int
10301 main ()
10302 {
10303 #if XlibSpecificationRelease < 6
10304 fail;
10305 #endif
10306
10307 ;
10308 return 0;
10309 }
10310 _ACEOF
10311 if ac_fn_c_try_link "$LINENO"; then :
10312 emacs_cv_x11_version_6=yes
10313 else
10314 emacs_cv_x11_version_6=no
10315 fi
10316 rm -f core conftest.err conftest.$ac_objext \
10317 conftest$ac_exeext conftest.$ac_ext
10318 fi
10319
10320 if test $emacs_cv_x11_version_6 = yes; then
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10322 $as_echo "6 or newer" >&6; }
10323
10324 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10325
10326
10327 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10328
10329 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10330 ## XIM support.
10331 case "$opsys" in
10332 sol2-*) : ;;
10333 *)
10334 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10335
10336 ;;
10337 esac
10338 else
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10340 $as_echo "before 6" >&6; }
10341 fi
10342 fi
10343
10344
10345 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10346 HAVE_RSVG=no
10347 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
10348 if test "${with_rsvg}" != "no"; then
10349 RSVG_REQUIRED=2.11.0
10350 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10351
10352
10353 succeeded=no
10354
10355 if test "$PKG_CONFIG" = "no" ; then
10356 :
10357 else
10358 PKG_CONFIG_MIN_VERSION=0.9.0
10359 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10361 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10362
10363 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5 &&
10364 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE" 2>&5` &&
10365 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE" 2>&5`; then
10366 edit_cflags="
10367 s,///*,/,g
10368 s/^/ /
10369 s/ -I/ $isystem/g
10370 s/^ //
10371 "
10372 RSVG_CFLAGS=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
10373 RSVG_LIBS=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
10375 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
10376 succeeded=yes
10377 else
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10379 $as_echo "no" >&6; }
10380 RSVG_CFLAGS=""
10381 RSVG_LIBS=""
10382 ## If we have a custom action on failure, don't print errors, but
10383 ## do set a variable so people can do so. Do it in a subshell
10384 ## to capture any diagnostics in invoking pkg-config.
10385 RSVG_PKG_ERRORS=`($PKG_CONFIG --print-errors "$RSVG_MODULE") 2>&1`
10386
10387 fi
10388
10389
10390
10391 else
10392 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10393 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10394 fi
10395 fi
10396
10397 if test $succeeded = yes; then
10398 HAVE_RSVG=yes
10399 else
10400 :
10401 fi
10402
10403
10404
10405
10406 if test $HAVE_RSVG = yes; then
10407
10408 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10409
10410 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10411 LIBS="$RSVG_LIBS $LIBS"
10412 fi
10413 fi
10414 fi
10415
10416 HAVE_IMAGEMAGICK=no
10417 if test "${HAVE_X11}" = "yes"; then
10418 if test "${with_imagemagick}" != "no"; then
10419 ## 6.2.8 is the earliest version known to work, but earlier versions
10420 ## might work - let us know if you find one.
10421 ## 6.0.7 does not work. See bug#7955.
10422 IMAGEMAGICK_MODULE="Wand >= 6.2.8"
10423
10424 succeeded=no
10425
10426 if test "$PKG_CONFIG" = "no" ; then
10427 :
10428 else
10429 PKG_CONFIG_MIN_VERSION=0.9.0
10430 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10432 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10433
10434 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
10435 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
10436 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
10437 edit_cflags="
10438 s,///*,/,g
10439 s/^/ /
10440 s/ -I/ $isystem/g
10441 s/^ //
10442 "
10443 IMAGEMAGICK_CFLAGS=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
10444 IMAGEMAGICK_LIBS=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
10446 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
10447 succeeded=yes
10448 else
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10450 $as_echo "no" >&6; }
10451 IMAGEMAGICK_CFLAGS=""
10452 IMAGEMAGICK_LIBS=""
10453 ## If we have a custom action on failure, don't print errors, but
10454 ## do set a variable so people can do so. Do it in a subshell
10455 ## to capture any diagnostics in invoking pkg-config.
10456 IMAGEMAGICK_PKG_ERRORS=`($PKG_CONFIG --print-errors "$IMAGEMAGICK_MODULE") 2>&1`
10457
10458 fi
10459
10460
10461
10462 else
10463 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10464 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10465 fi
10466 fi
10467
10468 if test $succeeded = yes; then
10469 HAVE_IMAGEMAGICK=yes
10470 else
10471 :
10472 fi
10473
10474
10475
10476
10477 if test $HAVE_IMAGEMAGICK = yes; then
10478
10479 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10480
10481 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
10482 LIBS="$IMAGEMAGICK_LIBS $LIBS"
10483 for ac_func in MagickExportImagePixels MagickMergeImageLayers
10484 do :
10485 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10486 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10487 eval as_val=\$$as_ac_var
10488 if test "x$as_val" = x""yes; then :
10489 cat >>confdefs.h <<_ACEOF
10490 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10491 _ACEOF
10492
10493 fi
10494 done
10495
10496 fi
10497 fi
10498 fi
10499
10500
10501 HAVE_GTK=no
10502 GTK_OBJ=
10503 check_gtk2=no
10504 gtk3_pkg_errors=
10505 if test "${with_gtk3}" = "yes" || test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10506 GLIB_REQUIRED=2.28
10507 GTK_REQUIRED=3.0
10508 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10509
10510
10511 succeeded=no
10512
10513 if test "$PKG_CONFIG" = "no" ; then
10514 pkg_check_gtk=no
10515 else
10516 PKG_CONFIG_MIN_VERSION=0.9.0
10517 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10519 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10520
10521 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
10522 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
10523 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
10524 edit_cflags="
10525 s,///*,/,g
10526 s/^/ /
10527 s/ -I/ $isystem/g
10528 s/^ //
10529 "
10530 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10531 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10533 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10534 succeeded=yes
10535 else
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10537 $as_echo "no" >&6; }
10538 GTK_CFLAGS=""
10539 GTK_LIBS=""
10540 ## If we have a custom action on failure, don't print errors, but
10541 ## do set a variable so people can do so. Do it in a subshell
10542 ## to capture any diagnostics in invoking pkg-config.
10543 GTK_PKG_ERRORS=`($PKG_CONFIG --print-errors "$GTK_MODULES") 2>&1`
10544
10545 fi
10546
10547
10548
10549 else
10550 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10551 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10552 fi
10553 fi
10554
10555 if test $succeeded = yes; then
10556 pkg_check_gtk=yes
10557 else
10558 pkg_check_gtk=no
10559 fi
10560
10561 if test "$pkg_check_gtk" = "no" && test "$with_gtk3" = "yes"; then
10562 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
10563 fi
10564 if test "$pkg_check_gtk" = "yes"; then
10565
10566 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
10567
10568 GTK_OBJ=emacsgtkfixed.o
10569 term_header=gtkutil.h
10570 USE_GTK_TOOLKIT="GTK3"
10571 else
10572 check_gtk2=yes
10573 gtk3_pkg_errors="$GTK_PKG_ERRORS "
10574 fi
10575 fi
10576
10577 if test "${with_gtk2}" = "yes" || test "$check_gtk2" = "yes"; then
10578 GLIB_REQUIRED=2.10
10579 GTK_REQUIRED=2.10
10580 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10581
10582
10583 succeeded=no
10584
10585 if test "$PKG_CONFIG" = "no" ; then
10586 pkg_check_gtk=no
10587 else
10588 PKG_CONFIG_MIN_VERSION=0.9.0
10589 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10591 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10592
10593 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
10594 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
10595 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
10596 edit_cflags="
10597 s,///*,/,g
10598 s/^/ /
10599 s/ -I/ $isystem/g
10600 s/^ //
10601 "
10602 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10603 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10605 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10606 succeeded=yes
10607 else
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10609 $as_echo "no" >&6; }
10610 GTK_CFLAGS=""
10611 GTK_LIBS=""
10612 ## If we have a custom action on failure, don't print errors, but
10613 ## do set a variable so people can do so. Do it in a subshell
10614 ## to capture any diagnostics in invoking pkg-config.
10615 GTK_PKG_ERRORS=`($PKG_CONFIG --print-errors "$GTK_MODULES") 2>&1`
10616
10617 fi
10618
10619
10620
10621 else
10622 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10623 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10624 fi
10625 fi
10626
10627 if test $succeeded = yes; then
10628 pkg_check_gtk=yes
10629 else
10630 pkg_check_gtk=no
10631 fi
10632
10633 if test "$pkg_check_gtk" = "no" &&
10634 { test "$with_gtk" = yes || test "$with_gtk2" = "yes"; }
10635 then
10636 as_fn_error "$gtk3_pkg_errors$GTK_PKG_ERRORS" "$LINENO" 5
10637 fi
10638 test "$pkg_check_gtk" = "yes" && USE_GTK_TOOLKIT="GTK2"
10639 fi
10640
10641 if test x"$pkg_check_gtk" = xyes; then
10642
10643
10644
10645 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10646 CFLAGS="$CFLAGS $GTK_CFLAGS"
10647 LIBS="$GTK_LIBS $LIBS"
10648 GTK_COMPILES=no
10649 for ac_func in gtk_main
10650 do :
10651 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10652 if test "x$ac_cv_func_gtk_main" = x""yes; then :
10653 cat >>confdefs.h <<_ACEOF
10654 #define HAVE_GTK_MAIN 1
10655 _ACEOF
10656 GTK_COMPILES=yes
10657 fi
10658 done
10659
10660 if test "${GTK_COMPILES}" != "yes"; then
10661 if test "$USE_X_TOOLKIT" != "maybe"; then
10662 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10663 fi
10664 else
10665 HAVE_GTK=yes
10666
10667 $as_echo "#define USE_GTK 1" >>confdefs.h
10668
10669 GTK_OBJ="gtkutil.o $GTK_OBJ"
10670 USE_X_TOOLKIT=none
10671 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
10672 :
10673 else
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10675 closing open displays. This is no problem if you just use
10676 one display, but if you use more than one and close one of them
10677 Emacs may crash." >&5
10678 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10679 closing open displays. This is no problem if you just use
10680 one display, but if you use more than one and close one of them
10681 Emacs may crash." >&2;}
10682 sleep 3
10683 fi
10684 fi
10685
10686 fi
10687
10688
10689
10690 if test "${HAVE_GTK}" = "yes"; then
10691
10692 if test "$with_toolkit_scroll_bars" != no; then
10693 with_toolkit_scroll_bars=yes
10694 fi
10695
10696 HAVE_GTK_FILE_SELECTION=no
10697 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10698 #include <gtk/gtk.h>
10699 "
10700 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
10701 HAVE_GTK_FILE_SELECTION=yes
10702 else
10703 HAVE_GTK_FILE_SELECTION=no
10704 fi
10705
10706 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10707 for ac_func in gtk_file_selection_new
10708 do :
10709 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10710 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
10711 cat >>confdefs.h <<_ACEOF
10712 #define HAVE_GTK_FILE_SELECTION_NEW 1
10713 _ACEOF
10714
10715 fi
10716 done
10717
10718 fi
10719
10720
10721 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
10722 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10723 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10724 gtk_orientable_set_orientation \
10725 gtk_window_set_has_resize_grip
10726 do :
10727 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10728 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10729 eval as_val=\$$as_ac_var
10730 if test "x$as_val" = x""yes; then :
10731 cat >>confdefs.h <<_ACEOF
10732 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10733 _ACEOF
10734
10735 fi
10736 done
10737
10738
10739 term_header=gtkutil.h
10740 fi
10741
10742 HAVE_DBUS=no
10743 DBUS_OBJ=
10744 if test "${with_dbus}" = "yes"; then
10745
10746 succeeded=no
10747
10748 if test "$PKG_CONFIG" = "no" ; then
10749 HAVE_DBUS=no
10750 else
10751 PKG_CONFIG_MIN_VERSION=0.9.0
10752 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10754 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10755
10756 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5 &&
10757 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0" 2>&5` &&
10758 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0" 2>&5`; then
10759 edit_cflags="
10760 s,///*,/,g
10761 s/^/ /
10762 s/ -I/ $isystem/g
10763 s/^ //
10764 "
10765 DBUS_CFLAGS=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
10766 DBUS_LIBS=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
10768 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
10769 succeeded=yes
10770 else
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10772 $as_echo "no" >&6; }
10773 DBUS_CFLAGS=""
10774 DBUS_LIBS=""
10775 ## If we have a custom action on failure, don't print errors, but
10776 ## do set a variable so people can do so. Do it in a subshell
10777 ## to capture any diagnostics in invoking pkg-config.
10778 DBUS_PKG_ERRORS=`($PKG_CONFIG --print-errors "dbus-1 >= 1.0") 2>&1`
10779
10780 fi
10781
10782
10783
10784 else
10785 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10786 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10787 fi
10788 fi
10789
10790 if test $succeeded = yes; then
10791 HAVE_DBUS=yes
10792 else
10793 HAVE_DBUS=no
10794 fi
10795
10796 if test "$HAVE_DBUS" = yes; then
10797 LIBS="$LIBS $DBUS_LIBS"
10798
10799 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10800
10801 for ac_func in dbus_watch_get_unix_fd \
10802 dbus_type_is_valid \
10803 dbus_validate_bus_name \
10804 dbus_validate_path \
10805 dbus_validate_interface \
10806 dbus_validate_member
10807 do :
10808 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10809 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10810 eval as_val=\$$as_ac_var
10811 if test "x$as_val" = x""yes; then :
10812 cat >>confdefs.h <<_ACEOF
10813 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10814 _ACEOF
10815
10816 fi
10817 done
10818
10819 DBUS_OBJ=dbusbind.o
10820 fi
10821 fi
10822
10823
10824 HAVE_GSETTINGS=no
10825 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
10826
10827 succeeded=no
10828
10829 if test "$PKG_CONFIG" = "no" ; then
10830 HAVE_GSETTINGS=no
10831 else
10832 PKG_CONFIG_MIN_VERSION=0.9.0
10833 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
10835 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
10836
10837 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5 &&
10838 GSETTINGS_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>&5` &&
10839 GSETTINGS_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>&5`; then
10840 edit_cflags="
10841 s,///*,/,g
10842 s/^/ /
10843 s/ -I/ $isystem/g
10844 s/^ //
10845 "
10846 GSETTINGS_CFLAGS=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
10847 GSETTINGS_LIBS=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
10849 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
10850 succeeded=yes
10851 else
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10853 $as_echo "no" >&6; }
10854 GSETTINGS_CFLAGS=""
10855 GSETTINGS_LIBS=""
10856 ## If we have a custom action on failure, don't print errors, but
10857 ## do set a variable so people can do so. Do it in a subshell
10858 ## to capture any diagnostics in invoking pkg-config.
10859 GSETTINGS_PKG_ERRORS=`($PKG_CONFIG --print-errors "gio-2.0 >= 2.26") 2>&1`
10860
10861 fi
10862
10863
10864
10865 else
10866 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10867 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10868 fi
10869 fi
10870
10871 if test $succeeded = yes; then
10872 HAVE_GSETTINGS=yes
10873 else
10874 HAVE_GSETTINGS=no
10875 fi
10876
10877 if test "$HAVE_GSETTINGS" = "yes"; then
10878
10879 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
10880
10881 SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
10882 SETTINGS_LIBS="$GSETTINGS_LIBS"
10883 fi
10884 fi
10885
10886 HAVE_GCONF=no
10887 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10888
10889 succeeded=no
10890
10891 if test "$PKG_CONFIG" = "no" ; then
10892 HAVE_GCONF=no
10893 else
10894 PKG_CONFIG_MIN_VERSION=0.9.0
10895 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10897 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10898
10899 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5 &&
10900 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13" 2>&5` &&
10901 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13" 2>&5`; then
10902 edit_cflags="
10903 s,///*,/,g
10904 s/^/ /
10905 s/ -I/ $isystem/g
10906 s/^ //
10907 "
10908 GCONF_CFLAGS=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
10909 GCONF_LIBS=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
10911 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
10912 succeeded=yes
10913 else
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10915 $as_echo "no" >&6; }
10916 GCONF_CFLAGS=""
10917 GCONF_LIBS=""
10918 ## If we have a custom action on failure, don't print errors, but
10919 ## do set a variable so people can do so. Do it in a subshell
10920 ## to capture any diagnostics in invoking pkg-config.
10921 GCONF_PKG_ERRORS=`($PKG_CONFIG --print-errors "gconf-2.0 >= 2.13") 2>&1`
10922
10923 fi
10924
10925
10926
10927 else
10928 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10929 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10930 fi
10931 fi
10932
10933 if test $succeeded = yes; then
10934 HAVE_GCONF=yes
10935 else
10936 HAVE_GCONF=no
10937 fi
10938
10939 if test "$HAVE_GCONF" = yes; then
10940
10941 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
10942
10943 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GCONF_CFLAGS"
10944 SETTINGS_LIBS="$SETTINGS_LIBS $GCONF_LIBS"
10945 fi
10946 fi
10947
10948 if test "$HAVE_GSETTINGS" = "yes" || test "$HAVE_GCONF" = "yes"; then
10949
10950 succeeded=no
10951
10952 if test "$PKG_CONFIG" = "no" ; then
10953 HAVE_GOBJECT=no
10954 else
10955 PKG_CONFIG_MIN_VERSION=0.9.0
10956 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-2.0 >= 2.0" >&5
10958 $as_echo_n "checking for gobject-2.0 >= 2.0... " >&6; }
10959
10960 if $PKG_CONFIG --exists "gobject-2.0 >= 2.0" 2>&5 &&
10961 GOBJECT_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0 >= 2.0" 2>&5` &&
10962 GOBJECT_LIBS=`$PKG_CONFIG --libs "gobject-2.0 >= 2.0" 2>&5`; then
10963 edit_cflags="
10964 s,///*,/,g
10965 s/^/ /
10966 s/ -I/ $isystem/g
10967 s/^ //
10968 "
10969 GOBJECT_CFLAGS=`$as_echo "$GOBJECT_CFLAGS" | sed -e "$edit_cflags"`
10970 GOBJECT_LIBS=`$as_echo "$GOBJECT_LIBS" | sed -e 's,///*,/,g'`
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&5
10972 $as_echo "yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&6; }
10973 succeeded=yes
10974 else
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10976 $as_echo "no" >&6; }
10977 GOBJECT_CFLAGS=""
10978 GOBJECT_LIBS=""
10979 ## If we have a custom action on failure, don't print errors, but
10980 ## do set a variable so people can do so. Do it in a subshell
10981 ## to capture any diagnostics in invoking pkg-config.
10982 GOBJECT_PKG_ERRORS=`($PKG_CONFIG --print-errors "gobject-2.0 >= 2.0") 2>&1`
10983
10984 fi
10985
10986
10987
10988 else
10989 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10990 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10991 fi
10992 fi
10993
10994 if test $succeeded = yes; then
10995 HAVE_GOBJECT=yes
10996 else
10997 HAVE_GOBJECT=no
10998 fi
10999
11000 if test "$HAVE_GOBJECT" = "yes"; then
11001 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GOBJECT_CFLAGS"
11002 SETTINGS_LIBS="$SETTINGS_LIBS $GOBJECT_LIBS"
11003 fi
11004 SAVE_CFLAGS="$CFLAGS"
11005 SAVE_LIBS="$LIBS"
11006 CFLAGS="$SETTINGS_CFLAGS $CFLAGS"
11007 LIBS="$SETTINGS_LIBS $LIBS"
11008 for ac_func in g_type_init
11009 do :
11010 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11011 if test "x$ac_cv_func_g_type_init" = x""yes; then :
11012 cat >>confdefs.h <<_ACEOF
11013 #define HAVE_G_TYPE_INIT 1
11014 _ACEOF
11015
11016 fi
11017 done
11018
11019 CFLAGS="$SAVE_CFLAGS"
11020 LIBS="$SAVE_LIBS"
11021 fi
11022
11023
11024
11025
11026 HAVE_LIBSELINUX=no
11027 LIBSELINUX_LIBS=
11028 if test "${with_selinux}" = "yes"; then
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11030 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11031 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11032 $as_echo_n "(cached) " >&6
11033 else
11034 ac_check_lib_save_LIBS=$LIBS
11035 LIBS="-lselinux $LIBS"
11036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11037 /* end confdefs.h. */
11038
11039 /* Override any GCC internal prototype to avoid an error.
11040 Use char because int might match the return type of a GCC
11041 builtin and then its argument prototype would still apply. */
11042 #ifdef __cplusplus
11043 extern "C"
11044 #endif
11045 char lgetfilecon ();
11046 int
11047 main ()
11048 {
11049 return lgetfilecon ();
11050 ;
11051 return 0;
11052 }
11053 _ACEOF
11054 if ac_fn_c_try_link "$LINENO"; then :
11055 ac_cv_lib_selinux_lgetfilecon=yes
11056 else
11057 ac_cv_lib_selinux_lgetfilecon=no
11058 fi
11059 rm -f core conftest.err conftest.$ac_objext \
11060 conftest$ac_exeext conftest.$ac_ext
11061 LIBS=$ac_check_lib_save_LIBS
11062 fi
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11064 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11065 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
11066 HAVE_LIBSELINUX=yes
11067 else
11068 HAVE_LIBSELINUX=no
11069 fi
11070
11071 if test "$HAVE_LIBSELINUX" = yes; then
11072
11073 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11074
11075 LIBSELINUX_LIBS=-lselinux
11076 fi
11077 fi
11078
11079
11080 HAVE_GNUTLS=no
11081 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=no
11082 if test "${with_gnutls}" = "yes" ; then
11083
11084 succeeded=no
11085
11086 if test "$PKG_CONFIG" = "no" ; then
11087 HAVE_GNUTLS=no
11088 else
11089 PKG_CONFIG_MIN_VERSION=0.9.0
11090 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
11092 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
11093
11094 if $PKG_CONFIG --exists "gnutls >= 2.6.6" 2>&5 &&
11095 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.6.6" 2>&5` &&
11096 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.6.6" 2>&5`; then
11097 edit_cflags="
11098 s,///*,/,g
11099 s/^/ /
11100 s/ -I/ $isystem/g
11101 s/^ //
11102 "
11103 LIBGNUTLS_CFLAGS=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
11104 LIBGNUTLS_LIBS=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
11106 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
11107 succeeded=yes
11108 else
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11110 $as_echo "no" >&6; }
11111 LIBGNUTLS_CFLAGS=""
11112 LIBGNUTLS_LIBS=""
11113 ## If we have a custom action on failure, don't print errors, but
11114 ## do set a variable so people can do so. Do it in a subshell
11115 ## to capture any diagnostics in invoking pkg-config.
11116 LIBGNUTLS_PKG_ERRORS=`($PKG_CONFIG --print-errors "gnutls >= 2.6.6") 2>&1`
11117
11118 fi
11119
11120
11121
11122 else
11123 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11124 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11125 fi
11126 fi
11127
11128 if test $succeeded = yes; then
11129 HAVE_GNUTLS=yes
11130 else
11131 HAVE_GNUTLS=no
11132 fi
11133
11134 if test "${HAVE_GNUTLS}" = "yes"; then
11135
11136 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11137
11138 fi
11139
11140 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
11141 LIBS="$LIBGNUTLS_LIBS $LIBS"
11142 for ac_func in gnutls_certificate_set_verify_function
11143 do :
11144 ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11145 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x""yes; then :
11146 cat >>confdefs.h <<_ACEOF
11147 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11148 _ACEOF
11149 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=yes
11150 fi
11151 done
11152
11153
11154 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11155
11156 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11157
11158 fi
11159 fi
11160
11161
11162
11163
11164 HAVE_XAW3D=no
11165 LUCID_LIBW=
11166 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11167 if test "$with_xaw3d" != no; then
11168 if test "${emacs_cv_xaw3d+set}" = set; then :
11169 $as_echo_n "(cached) " >&6
11170 else
11171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11172 /* end confdefs.h. */
11173
11174 #include <X11/Intrinsic.h>
11175 #include <X11/Xaw3d/Simple.h>
11176 int
11177 main ()
11178 {
11179
11180 ;
11181 return 0;
11182 }
11183 _ACEOF
11184 if ac_fn_c_try_link "$LINENO"; then :
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11186 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11187 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11188 $as_echo_n "(cached) " >&6
11189 else
11190 ac_check_lib_save_LIBS=$LIBS
11191 LIBS="-lXaw3d $LIBS"
11192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11193 /* end confdefs.h. */
11194
11195 /* Override any GCC internal prototype to avoid an error.
11196 Use char because int might match the return type of a GCC
11197 builtin and then its argument prototype would still apply. */
11198 #ifdef __cplusplus
11199 extern "C"
11200 #endif
11201 char XawScrollbarSetThumb ();
11202 int
11203 main ()
11204 {
11205 return XawScrollbarSetThumb ();
11206 ;
11207 return 0;
11208 }
11209 _ACEOF
11210 if ac_fn_c_try_link "$LINENO"; then :
11211 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11212 else
11213 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11214 fi
11215 rm -f core conftest.err conftest.$ac_objext \
11216 conftest$ac_exeext conftest.$ac_ext
11217 LIBS=$ac_check_lib_save_LIBS
11218 fi
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11220 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11221 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
11222 emacs_cv_xaw3d=yes
11223 else
11224 emacs_cv_xaw3d=no
11225 fi
11226
11227 else
11228 emacs_cv_xaw3d=no
11229 fi
11230 rm -f core conftest.err conftest.$ac_objext \
11231 conftest$ac_exeext conftest.$ac_ext
11232 fi
11233
11234 else
11235 emacs_cv_xaw3d=no
11236 fi
11237 if test $emacs_cv_xaw3d = yes; then
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11239 $as_echo_n "checking for xaw3d... " >&6; }
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11241 $as_echo "yes; using Lucid toolkit" >&6; }
11242 USE_X_TOOLKIT=LUCID
11243 HAVE_XAW3D=yes
11244 LUCID_LIBW=-lXaw3d
11245
11246 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11247
11248 else
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11250 $as_echo_n "checking for xaw3d... " >&6; }
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11252 $as_echo "no" >&6; }
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11254 $as_echo_n "checking for libXaw... " >&6; }
11255 if test "${emacs_cv_xaw+set}" = set; then :
11256 $as_echo_n "(cached) " >&6
11257 else
11258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11259 /* end confdefs.h. */
11260
11261 #include <X11/Intrinsic.h>
11262 #include <X11/Xaw/Simple.h>
11263 int
11264 main ()
11265 {
11266
11267 ;
11268 return 0;
11269 }
11270 _ACEOF
11271 if ac_fn_c_try_link "$LINENO"; then :
11272 emacs_cv_xaw=yes
11273 else
11274 emacs_cv_xaw=no
11275 fi
11276 rm -f core conftest.err conftest.$ac_objext \
11277 conftest$ac_exeext conftest.$ac_ext
11278 fi
11279
11280 if test $emacs_cv_xaw = yes; then
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11282 $as_echo "yes; using Lucid toolkit" >&6; }
11283 USE_X_TOOLKIT=LUCID
11284 LUCID_LIBW=-lXaw
11285 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11286 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11287 else
11288 as_fn_error "No X toolkit could be found.
11289 If you are sure you want Emacs compiled without an X toolkit, pass
11290 --with-x-toolkit=no
11291 to configure. Otherwise, install the development libraries for the toolkit
11292 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11293 fi
11294 fi
11295 fi
11296
11297 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11298
11299 LIBXTR6=
11300 if test "${USE_X_TOOLKIT}" != "none"; then
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11302 $as_echo_n "checking X11 toolkit version... " >&6; }
11303 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11304 $as_echo_n "(cached) " >&6
11305 else
11306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11307 /* end confdefs.h. */
11308 #include <X11/Intrinsic.h>
11309 int
11310 main ()
11311 {
11312 #if XtSpecificationRelease < 6
11313 fail;
11314 #endif
11315
11316 ;
11317 return 0;
11318 }
11319 _ACEOF
11320 if ac_fn_c_try_link "$LINENO"; then :
11321 emacs_cv_x11_toolkit_version_6=yes
11322 else
11323 emacs_cv_x11_toolkit_version_6=no
11324 fi
11325 rm -f core conftest.err conftest.$ac_objext \
11326 conftest$ac_exeext conftest.$ac_ext
11327 fi
11328
11329 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11330 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11332 $as_echo "6 or newer" >&6; }
11333
11334 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11335
11336 LIBXTR6="-lSM -lICE"
11337 case "$opsys" in
11338 ## Use libw.a along with X11R6 Xt.
11339 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
11340 esac
11341 else
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11343 $as_echo "before 6" >&6; }
11344 fi
11345
11346 OLDLIBS="$LIBS"
11347 if test x$HAVE_X11XTR6 = xyes; then
11348 LIBS="-lXt -lSM -lICE $LIBS"
11349 else
11350 LIBS="-lXt $LIBS"
11351 fi
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11353 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11354 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11355 $as_echo_n "(cached) " >&6
11356 else
11357 ac_check_lib_save_LIBS=$LIBS
11358 LIBS="-lXmu $LIBS"
11359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11360 /* end confdefs.h. */
11361
11362 /* Override any GCC internal prototype to avoid an error.
11363 Use char because int might match the return type of a GCC
11364 builtin and then its argument prototype would still apply. */
11365 #ifdef __cplusplus
11366 extern "C"
11367 #endif
11368 char XmuConvertStandardSelection ();
11369 int
11370 main ()
11371 {
11372 return XmuConvertStandardSelection ();
11373 ;
11374 return 0;
11375 }
11376 _ACEOF
11377 if ac_fn_c_try_link "$LINENO"; then :
11378 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11379 else
11380 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11381 fi
11382 rm -f core conftest.err conftest.$ac_objext \
11383 conftest$ac_exeext conftest.$ac_ext
11384 LIBS=$ac_check_lib_save_LIBS
11385 fi
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11387 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11388 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
11389 cat >>confdefs.h <<_ACEOF
11390 #define HAVE_LIBXMU 1
11391 _ACEOF
11392
11393 LIBS="-lXmu $LIBS"
11394
11395 fi
11396
11397 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11398 fi
11399
11400
11401 LIBXMU=-lXmu
11402 case $opsys in
11403 ## These systems don't supply Xmu.
11404 hpux* | aix4-2 )
11405 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
11406 ;;
11407 esac
11408
11409
11410 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11411 if test "${HAVE_X11}" = "yes"; then
11412 if test "${USE_X_TOOLKIT}" != "none"; then
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11414 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11415 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11416 $as_echo_n "(cached) " >&6
11417 else
11418 ac_check_lib_save_LIBS=$LIBS
11419 LIBS="-lXext $LIBS"
11420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11421 /* end confdefs.h. */
11422
11423 /* Override any GCC internal prototype to avoid an error.
11424 Use char because int might match the return type of a GCC
11425 builtin and then its argument prototype would still apply. */
11426 #ifdef __cplusplus
11427 extern "C"
11428 #endif
11429 char XShapeQueryExtension ();
11430 int
11431 main ()
11432 {
11433 return XShapeQueryExtension ();
11434 ;
11435 return 0;
11436 }
11437 _ACEOF
11438 if ac_fn_c_try_link "$LINENO"; then :
11439 ac_cv_lib_Xext_XShapeQueryExtension=yes
11440 else
11441 ac_cv_lib_Xext_XShapeQueryExtension=no
11442 fi
11443 rm -f core conftest.err conftest.$ac_objext \
11444 conftest$ac_exeext conftest.$ac_ext
11445 LIBS=$ac_check_lib_save_LIBS
11446 fi
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11448 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11449 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
11450 cat >>confdefs.h <<_ACEOF
11451 #define HAVE_LIBXEXT 1
11452 _ACEOF
11453
11454 LIBS="-lXext $LIBS"
11455
11456 fi
11457
11458 fi
11459 fi
11460
11461 LIBXP=
11462 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11463 # OpenMotif may be installed in such a way on some GNU/Linux systems.
11464 if test -d /usr/include/openmotif; then
11465 CPPFLAGS="-I/usr/include/openmotif $CPPFLAGS"
11466 emacs_cv_openmotif=yes
11467 case "$canonical" in
11468 x86_64-*-linux-gnu* | powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*)
11469 test -d /usr/lib64/openmotif && LDFLAGS="-L/usr/lib64/openmotif $LDFLAGS"
11470 ;;
11471 *)
11472 test -d /usr/lib/openmotif && LDFLAGS="-L/usr/lib/openmotif $LDFLAGS"
11473 esac
11474 else
11475 emacs_cv_openmotif=no
11476 fi
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (Open)Motif version 2.1" >&5
11478 $as_echo_n "checking for (Open)Motif version 2.1... " >&6; }
11479 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
11480 $as_echo_n "(cached) " >&6
11481 else
11482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11483 /* end confdefs.h. */
11484 #include <Xm/Xm.h>
11485 int
11486 main ()
11487 {
11488 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11489 int x = 5;
11490 #else
11491 Motif version prior to 2.1.
11492 #endif
11493 ;
11494 return 0;
11495 }
11496 _ACEOF
11497 if ac_fn_c_try_compile "$LINENO"; then :
11498 emacs_cv_motif_version_2_1=yes
11499 else
11500 emacs_cv_motif_version_2_1=no
11501 fi
11502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11503 fi
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11505 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11506 if test $emacs_cv_motif_version_2_1 = yes; then
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11508 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11509 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
11510 $as_echo_n "(cached) " >&6
11511 else
11512 ac_check_lib_save_LIBS=$LIBS
11513 LIBS="-lXp $LIBS"
11514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11515 /* end confdefs.h. */
11516
11517 /* Override any GCC internal prototype to avoid an error.
11518 Use char because int might match the return type of a GCC
11519 builtin and then its argument prototype would still apply. */
11520 #ifdef __cplusplus
11521 extern "C"
11522 #endif
11523 char XpCreateContext ();
11524 int
11525 main ()
11526 {
11527 return XpCreateContext ();
11528 ;
11529 return 0;
11530 }
11531 _ACEOF
11532 if ac_fn_c_try_link "$LINENO"; then :
11533 ac_cv_lib_Xp_XpCreateContext=yes
11534 else
11535 ac_cv_lib_Xp_XpCreateContext=no
11536 fi
11537 rm -f core conftest.err conftest.$ac_objext \
11538 conftest$ac_exeext conftest.$ac_ext
11539 LIBS=$ac_check_lib_save_LIBS
11540 fi
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11542 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11543 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
11544 LIBXP=-lXp
11545 fi
11546
11547 if test x$emacs_cv_openmotif = xyes; then
11548 REAL_CPPFLAGS="-I/usr/include/openmotif $REAL_CPPFLAGS"
11549 fi
11550 else
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11552 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11553 if test "${emacs_cv_lesstif+set}" = set; then :
11554 $as_echo_n "(cached) " >&6
11555 else
11556 # We put this in CFLAGS temporarily to precede other -I options
11557 # that might be in CFLAGS temporarily.
11558 # We put this in CPPFLAGS where it precedes the other -I options.
11559 OLD_CPPFLAGS=$CPPFLAGS
11560 OLD_CFLAGS=$CFLAGS
11561 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11562 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11564 /* end confdefs.h. */
11565 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11566 int
11567 main ()
11568 {
11569 int x = 5;
11570 ;
11571 return 0;
11572 }
11573 _ACEOF
11574 if ac_fn_c_try_compile "$LINENO"; then :
11575 emacs_cv_lesstif=yes
11576 else
11577 emacs_cv_lesstif=no
11578 fi
11579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11580 fi
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11582 $as_echo "$emacs_cv_lesstif" >&6; }
11583 if test $emacs_cv_lesstif = yes; then
11584 # Make sure this -I option remains in CPPFLAGS after it is set
11585 # back to REAL_CPPFLAGS.
11586 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11587 # have those other -I options anyway. Ultimately, having this
11588 # directory ultimately in CPPFLAGS will be enough.
11589 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11590 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11591 else
11592 CFLAGS=$OLD_CFLAGS
11593 CPPFLAGS=$OLD_CPPFLAGS
11594 fi
11595 fi
11596 ac_fn_c_check_header_mongrel "$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
11597 if test "x$ac_cv_header_Xm_BulletinB_h" = x""yes; then :
11598
11599 else
11600 as_fn_error "Motif toolkit requested but requirements not found." "$LINENO" 5
11601 fi
11602
11603
11604 fi
11605
11606
11607 USE_TOOLKIT_SCROLL_BARS=no
11608 if test "${with_toolkit_scroll_bars}" != "no"; then
11609 if test "${USE_X_TOOLKIT}" != "none"; then
11610 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11611 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11612
11613 HAVE_XAW3D=no
11614 USE_TOOLKIT_SCROLL_BARS=yes
11615 elif test "${HAVE_XAW3D}" = "yes" || test "${USE_X_TOOLKIT}" = "LUCID"; then
11616 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11617
11618 USE_TOOLKIT_SCROLL_BARS=yes
11619 fi
11620 elif test "${HAVE_GTK}" = "yes"; then
11621 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11622
11623 USE_TOOLKIT_SCROLL_BARS=yes
11624 elif test "${HAVE_NS}" = "yes"; then
11625 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11626
11627 USE_TOOLKIT_SCROLL_BARS=yes
11628 fi
11629 fi
11630
11631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11632 /* end confdefs.h. */
11633
11634 #include <X11/Xlib.h>
11635 #include <X11/Xresource.h>
11636 int
11637 main ()
11638 {
11639 XIMProc callback;
11640 ;
11641 return 0;
11642 }
11643 _ACEOF
11644 if ac_fn_c_try_compile "$LINENO"; then :
11645 HAVE_XIM=yes
11646
11647 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11648
11649 else
11650 HAVE_XIM=no
11651 fi
11652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11653
11654
11655 if test "${with_xim}" != "no"; then
11656
11657 $as_echo "#define USE_XIM 1" >>confdefs.h
11658
11659 fi
11660
11661
11662 if test "${HAVE_XIM}" != "no"; then
11663 late_CFLAGS=$CFLAGS
11664 if test "$GCC" = yes; then
11665 CFLAGS="$CFLAGS --pedantic-errors"
11666 fi
11667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11668 /* end confdefs.h. */
11669
11670 #include <X11/Xlib.h>
11671 #include <X11/Xresource.h>
11672 int
11673 main ()
11674 {
11675 Display *display;
11676 XrmDatabase db;
11677 char *res_name;
11678 char *res_class;
11679 XIMProc callback;
11680 XPointer *client_data;
11681 #ifndef __GNUC__
11682 /* If we're not using GCC, it's probably not XFree86, and this is
11683 probably right, but we can't use something like --pedantic-errors. */
11684 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11685 char*, XIMProc, XPointer*);
11686 #endif
11687 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11688 client_data);
11689 ;
11690 return 0;
11691 }
11692 _ACEOF
11693 if ac_fn_c_try_compile "$LINENO"; then :
11694 emacs_cv_arg6_star=yes
11695 fi
11696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11697 if test "$emacs_cv_arg6_star" = yes; then
11698 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11699
11700 else
11701 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11702
11703 fi
11704 CFLAGS=$late_CFLAGS
11705 fi
11706
11707 ### Start of font-backend (under any platform) section.
11708 # (nothing here yet -- this is a placeholder)
11709 ### End of font-backend (under any platform) section.
11710
11711 ### Start of font-backend (under X11) section.
11712 if test "${HAVE_X11}" = "yes"; then
11713
11714 succeeded=no
11715
11716 if test "$PKG_CONFIG" = "no" ; then
11717 HAVE_FC=no
11718 else
11719 PKG_CONFIG_MIN_VERSION=0.9.0
11720 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11722 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11723
11724 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5 &&
11725 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0" 2>&5` &&
11726 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0" 2>&5`; then
11727 edit_cflags="
11728 s,///*,/,g
11729 s/^/ /
11730 s/ -I/ $isystem/g
11731 s/^ //
11732 "
11733 FONTCONFIG_CFLAGS=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
11734 FONTCONFIG_LIBS=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
11736 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
11737 succeeded=yes
11738 else
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11740 $as_echo "no" >&6; }
11741 FONTCONFIG_CFLAGS=""
11742 FONTCONFIG_LIBS=""
11743 ## If we have a custom action on failure, don't print errors, but
11744 ## do set a variable so people can do so. Do it in a subshell
11745 ## to capture any diagnostics in invoking pkg-config.
11746 FONTCONFIG_PKG_ERRORS=`($PKG_CONFIG --print-errors "fontconfig >= 2.2.0") 2>&1`
11747
11748 fi
11749
11750
11751
11752 else
11753 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11754 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11755 fi
11756 fi
11757
11758 if test $succeeded = yes; then
11759 HAVE_FC=yes
11760 else
11761 HAVE_FC=no
11762 fi
11763
11764
11765 ## Use -lXft if available, unless `--with-xft=no'.
11766 HAVE_XFT=maybe
11767 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
11768 with_xft="no";
11769 fi
11770 if test "x${with_xft}" != "xno"; then
11771
11772
11773 succeeded=no
11774
11775 if test "$PKG_CONFIG" = "no" ; then
11776 HAVE_XFT=no
11777 else
11778 PKG_CONFIG_MIN_VERSION=0.9.0
11779 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11781 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11782
11783 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5 &&
11784 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0" 2>&5` &&
11785 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0" 2>&5`; then
11786 edit_cflags="
11787 s,///*,/,g
11788 s/^/ /
11789 s/ -I/ $isystem/g
11790 s/^ //
11791 "
11792 XFT_CFLAGS=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
11793 XFT_LIBS=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
11795 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
11796 succeeded=yes
11797 else
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11799 $as_echo "no" >&6; }
11800 XFT_CFLAGS=""
11801 XFT_LIBS=""
11802 ## If we have a custom action on failure, don't print errors, but
11803 ## do set a variable so people can do so. Do it in a subshell
11804 ## to capture any diagnostics in invoking pkg-config.
11805 XFT_PKG_ERRORS=`($PKG_CONFIG --print-errors "xft >= 0.13.0") 2>&1`
11806
11807 fi
11808
11809
11810
11811 else
11812 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11813 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11814 fi
11815 fi
11816
11817 if test $succeeded = yes; then
11818 :
11819 else
11820 HAVE_XFT=no
11821 fi
11822
11823 ## Because xftfont.c uses XRenderQueryExtension, we also
11824 ## need to link to -lXrender.
11825 HAVE_XRENDER=no
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11827 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11828 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
11829 $as_echo_n "(cached) " >&6
11830 else
11831 ac_check_lib_save_LIBS=$LIBS
11832 LIBS="-lXrender $LIBS"
11833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11834 /* end confdefs.h. */
11835
11836 /* Override any GCC internal prototype to avoid an error.
11837 Use char because int might match the return type of a GCC
11838 builtin and then its argument prototype would still apply. */
11839 #ifdef __cplusplus
11840 extern "C"
11841 #endif
11842 char XRenderQueryExtension ();
11843 int
11844 main ()
11845 {
11846 return XRenderQueryExtension ();
11847 ;
11848 return 0;
11849 }
11850 _ACEOF
11851 if ac_fn_c_try_link "$LINENO"; then :
11852 ac_cv_lib_Xrender_XRenderQueryExtension=yes
11853 else
11854 ac_cv_lib_Xrender_XRenderQueryExtension=no
11855 fi
11856 rm -f core conftest.err conftest.$ac_objext \
11857 conftest$ac_exeext conftest.$ac_ext
11858 LIBS=$ac_check_lib_save_LIBS
11859 fi
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11861 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11862 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
11863 HAVE_XRENDER=yes
11864 fi
11865
11866 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
11867 OLD_CPPFLAGS="$CPPFLAGS"
11868 OLD_CFLAGS="$CFLAGS"
11869 OLD_LIBS="$LIBS"
11870 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11871 CFLAGS="$CFLAGS $XFT_CFLAGS"
11872 XFT_LIBS="-lXrender $XFT_LIBS"
11873 LIBS="$XFT_LIBS $LIBS"
11874 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11875 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11877 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11878 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
11879 $as_echo_n "(cached) " >&6
11880 else
11881 ac_check_lib_save_LIBS=$LIBS
11882 LIBS="-lXft $XFT_LIBS $LIBS"
11883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11884 /* end confdefs.h. */
11885
11886 /* Override any GCC internal prototype to avoid an error.
11887 Use char because int might match the return type of a GCC
11888 builtin and then its argument prototype would still apply. */
11889 #ifdef __cplusplus
11890 extern "C"
11891 #endif
11892 char XftFontOpen ();
11893 int
11894 main ()
11895 {
11896 return XftFontOpen ();
11897 ;
11898 return 0;
11899 }
11900 _ACEOF
11901 if ac_fn_c_try_link "$LINENO"; then :
11902 ac_cv_lib_Xft_XftFontOpen=yes
11903 else
11904 ac_cv_lib_Xft_XftFontOpen=no
11905 fi
11906 rm -f core conftest.err conftest.$ac_objext \
11907 conftest$ac_exeext conftest.$ac_ext
11908 LIBS=$ac_check_lib_save_LIBS
11909 fi
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11911 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
11912 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
11913 HAVE_XFT=yes
11914 fi
11915
11916 fi
11917
11918
11919
11920 if test "${HAVE_XFT}" = "yes"; then
11921
11922 $as_echo "#define HAVE_XFT 1" >>confdefs.h
11923
11924
11925 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
11926 else
11927 CPPFLAGS="$OLD_CPPFLAGS"
11928 CFLAGS="$OLD_CFLAGS"
11929 LIBS="$OLD_LIBS"
11930 fi # "${HAVE_XFT}" = "yes"
11931 fi # "$HAVE_XFT" != no
11932 fi # "x${with_xft}" != "xno"
11933
11934 ## We used to allow building with FreeType and without Xft.
11935 ## However, the ftx font backend driver is not in good shape.
11936 if test "$HAVE_XFT" != "yes"; then
11937 HAVE_XFT=no
11938 HAVE_FREETYPE=no
11939 else
11940
11941 succeeded=no
11942
11943 if test "$PKG_CONFIG" = "no" ; then
11944 HAVE_FREETYPE=no
11945 else
11946 PKG_CONFIG_MIN_VERSION=0.9.0
11947 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
11949 $as_echo_n "checking for freetype2... " >&6; }
11950
11951 if $PKG_CONFIG --exists "freetype2" 2>&5 &&
11952 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>&5` &&
11953 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>&5`; then
11954 edit_cflags="
11955 s,///*,/,g
11956 s/^/ /
11957 s/ -I/ $isystem/g
11958 s/^ //
11959 "
11960 FREETYPE_CFLAGS=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
11961 FREETYPE_LIBS=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
11963 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
11964 succeeded=yes
11965 else
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11967 $as_echo "no" >&6; }
11968 FREETYPE_CFLAGS=""
11969 FREETYPE_LIBS=""
11970 ## If we have a custom action on failure, don't print errors, but
11971 ## do set a variable so people can do so. Do it in a subshell
11972 ## to capture any diagnostics in invoking pkg-config.
11973 FREETYPE_PKG_ERRORS=`($PKG_CONFIG --print-errors "freetype2") 2>&1`
11974
11975 fi
11976
11977
11978
11979 else
11980 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11981 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11982 fi
11983 fi
11984
11985 if test $succeeded = yes; then
11986 HAVE_FREETYPE=yes
11987 else
11988 HAVE_FREETYPE=no
11989 fi
11990
11991
11992 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
11993 fi
11994
11995 HAVE_LIBOTF=no
11996 if test "${HAVE_FREETYPE}" = "yes"; then
11997
11998 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11999
12000 if test "${with_libotf}" != "no"; then
12001
12002 succeeded=no
12003
12004 if test "$PKG_CONFIG" = "no" ; then
12005 HAVE_LIBOTF=no
12006 else
12007 PKG_CONFIG_MIN_VERSION=0.9.0
12008 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
12010 $as_echo_n "checking for libotf... " >&6; }
12011
12012 if $PKG_CONFIG --exists "libotf" 2>&5 &&
12013 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf" 2>&5` &&
12014 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf" 2>&5`; then
12015 edit_cflags="
12016 s,///*,/,g
12017 s/^/ /
12018 s/ -I/ $isystem/g
12019 s/^ //
12020 "
12021 LIBOTF_CFLAGS=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
12022 LIBOTF_LIBS=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
12024 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
12025 succeeded=yes
12026 else
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12028 $as_echo "no" >&6; }
12029 LIBOTF_CFLAGS=""
12030 LIBOTF_LIBS=""
12031 ## If we have a custom action on failure, don't print errors, but
12032 ## do set a variable so people can do so. Do it in a subshell
12033 ## to capture any diagnostics in invoking pkg-config.
12034 LIBOTF_PKG_ERRORS=`($PKG_CONFIG --print-errors "libotf") 2>&1`
12035
12036 fi
12037
12038
12039
12040 else
12041 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12042 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12043 fi
12044 fi
12045
12046 if test $succeeded = yes; then
12047 HAVE_LIBOTF=yes
12048 else
12049 HAVE_LIBOTF=no
12050 fi
12051
12052 if test "$HAVE_LIBOTF" = "yes"; then
12053
12054 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
12055
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
12057 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
12058 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
12059 $as_echo_n "(cached) " >&6
12060 else
12061 ac_check_lib_save_LIBS=$LIBS
12062 LIBS="-lotf $LIBS"
12063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12064 /* end confdefs.h. */
12065
12066 /* Override any GCC internal prototype to avoid an error.
12067 Use char because int might match the return type of a GCC
12068 builtin and then its argument prototype would still apply. */
12069 #ifdef __cplusplus
12070 extern "C"
12071 #endif
12072 char OTF_get_variation_glyphs ();
12073 int
12074 main ()
12075 {
12076 return OTF_get_variation_glyphs ();
12077 ;
12078 return 0;
12079 }
12080 _ACEOF
12081 if ac_fn_c_try_link "$LINENO"; then :
12082 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
12083 else
12084 ac_cv_lib_otf_OTF_get_variation_glyphs=no
12085 fi
12086 rm -f core conftest.err conftest.$ac_objext \
12087 conftest$ac_exeext conftest.$ac_ext
12088 LIBS=$ac_check_lib_save_LIBS
12089 fi
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12091 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12092 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
12093 HAVE_OTF_GET_VARIATION_GLYPHS=yes
12094 else
12095 HAVE_OTF_GET_VARIATION_GLYPHS=no
12096 fi
12097
12098 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12099
12100 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12101
12102 fi
12103 fi
12104 fi
12105 fi
12106
12107 HAVE_M17N_FLT=no
12108 if test "${HAVE_LIBOTF}" = yes; then
12109 if test "${with_m17n_flt}" != "no"; then
12110
12111 succeeded=no
12112
12113 if test "$PKG_CONFIG" = "no" ; then
12114 HAVE_M17N_FLT=no
12115 else
12116 PKG_CONFIG_MIN_VERSION=0.9.0
12117 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12119 $as_echo_n "checking for m17n-flt... " >&6; }
12120
12121 if $PKG_CONFIG --exists "m17n-flt" 2>&5 &&
12122 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt" 2>&5` &&
12123 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt" 2>&5`; then
12124 edit_cflags="
12125 s,///*,/,g
12126 s/^/ /
12127 s/ -I/ $isystem/g
12128 s/^ //
12129 "
12130 M17N_FLT_CFLAGS=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
12131 M17N_FLT_LIBS=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
12133 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
12134 succeeded=yes
12135 else
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12137 $as_echo "no" >&6; }
12138 M17N_FLT_CFLAGS=""
12139 M17N_FLT_LIBS=""
12140 ## If we have a custom action on failure, don't print errors, but
12141 ## do set a variable so people can do so. Do it in a subshell
12142 ## to capture any diagnostics in invoking pkg-config.
12143 M17N_FLT_PKG_ERRORS=`($PKG_CONFIG --print-errors "m17n-flt") 2>&1`
12144
12145 fi
12146
12147
12148
12149 else
12150 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12151 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12152 fi
12153 fi
12154
12155 if test $succeeded = yes; then
12156 HAVE_M17N_FLT=yes
12157 else
12158 HAVE_M17N_FLT=no
12159 fi
12160
12161 if test "$HAVE_M17N_FLT" = "yes"; then
12162
12163 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12164
12165 fi
12166 fi
12167 fi
12168 else
12169 HAVE_XFT=no
12170 HAVE_FREETYPE=no
12171 HAVE_LIBOTF=no
12172 HAVE_M17N_FLT=no
12173 fi
12174
12175 ### End of font-backend (under X11) section.
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186 ### Use -lXpm if available, unless `--with-xpm=no'.
12187 HAVE_XPM=no
12188 LIBXPM=
12189 if test "${HAVE_X11}" = "yes"; then
12190 if test "${with_xpm}" != "no"; then
12191 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12192 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12194 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12195 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12196 $as_echo_n "(cached) " >&6
12197 else
12198 ac_check_lib_save_LIBS=$LIBS
12199 LIBS="-lXpm -lX11 $LIBS"
12200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12201 /* end confdefs.h. */
12202
12203 /* Override any GCC internal prototype to avoid an error.
12204 Use char because int might match the return type of a GCC
12205 builtin and then its argument prototype would still apply. */
12206 #ifdef __cplusplus
12207 extern "C"
12208 #endif
12209 char XpmReadFileToPixmap ();
12210 int
12211 main ()
12212 {
12213 return XpmReadFileToPixmap ();
12214 ;
12215 return 0;
12216 }
12217 _ACEOF
12218 if ac_fn_c_try_link "$LINENO"; then :
12219 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12220 else
12221 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12222 fi
12223 rm -f core conftest.err conftest.$ac_objext \
12224 conftest$ac_exeext conftest.$ac_ext
12225 LIBS=$ac_check_lib_save_LIBS
12226 fi
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12228 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12229 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
12230 HAVE_XPM=yes
12231 fi
12232
12233 fi
12234
12235
12236 if test "${HAVE_XPM}" = "yes"; then
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12238 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12240 /* end confdefs.h. */
12241 #include "X11/xpm.h"
12242 #ifndef XpmReturnAllocPixels
12243 no_return_alloc_pixels
12244 #endif
12245
12246 _ACEOF
12247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12248 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12249 HAVE_XPM=no
12250 else
12251 HAVE_XPM=yes
12252 fi
12253 rm -f conftest*
12254
12255
12256 if test "${HAVE_XPM}" = "yes"; then
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12258 $as_echo "yes" >&6; }
12259 else
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12261 $as_echo "no" >&6; }
12262 fi
12263 fi
12264 fi
12265
12266 if test "${HAVE_XPM}" = "yes"; then
12267
12268 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12269
12270 LIBXPM=-lXpm
12271 fi
12272 fi
12273
12274
12275 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12276 HAVE_JPEG=no
12277 LIBJPEG=
12278 if test "${HAVE_X11}" = "yes"; then
12279 if test "${with_jpeg}" != "no"; then
12280 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12281 if test "x$ac_cv_header_jerror_h" = x""yes; then :
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12283 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12284 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12285 $as_echo_n "(cached) " >&6
12286 else
12287 ac_check_lib_save_LIBS=$LIBS
12288 LIBS="-ljpeg $LIBS"
12289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12290 /* end confdefs.h. */
12291
12292 /* Override any GCC internal prototype to avoid an error.
12293 Use char because int might match the return type of a GCC
12294 builtin and then its argument prototype would still apply. */
12295 #ifdef __cplusplus
12296 extern "C"
12297 #endif
12298 char jpeg_destroy_compress ();
12299 int
12300 main ()
12301 {
12302 return jpeg_destroy_compress ();
12303 ;
12304 return 0;
12305 }
12306 _ACEOF
12307 if ac_fn_c_try_link "$LINENO"; then :
12308 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12309 else
12310 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12311 fi
12312 rm -f core conftest.err conftest.$ac_objext \
12313 conftest$ac_exeext conftest.$ac_ext
12314 LIBS=$ac_check_lib_save_LIBS
12315 fi
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12317 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12318 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
12319 HAVE_JPEG=yes
12320 fi
12321
12322 fi
12323
12324
12325 fi
12326
12327 if test "${HAVE_JPEG}" = "yes"; then
12328 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12329
12330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12331 /* end confdefs.h. */
12332 #include <jpeglib.h>
12333 version=JPEG_LIB_VERSION
12334
12335 _ACEOF
12336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12337 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
12338 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12339
12340 else
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12342 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12343 HAVE_JPEG=no
12344 fi
12345 rm -f conftest*
12346
12347 fi
12348 if test "${HAVE_JPEG}" = "yes"; then
12349 LIBJPEG=-ljpeg
12350 fi
12351 fi
12352
12353
12354 ### Use -lpng if available, unless `--with-png=no'.
12355 HAVE_PNG=no
12356 LIBPNG=
12357 if test "${HAVE_X11}" = "yes"; then
12358 if test "${with_png}" != "no"; then
12359 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12360 # in /usr/include/libpng.
12361 for ac_header in png.h libpng/png.h
12362 do :
12363 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12364 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12365 eval as_val=\$$as_ac_Header
12366 if test "x$as_val" = x""yes; then :
12367 cat >>confdefs.h <<_ACEOF
12368 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12369 _ACEOF
12370 break
12371 fi
12372
12373 done
12374
12375 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12377 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12378 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12379 $as_echo_n "(cached) " >&6
12380 else
12381 ac_check_lib_save_LIBS=$LIBS
12382 LIBS="-lpng -lz -lm $LIBS"
12383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12384 /* end confdefs.h. */
12385
12386 /* Override any GCC internal prototype to avoid an error.
12387 Use char because int might match the return type of a GCC
12388 builtin and then its argument prototype would still apply. */
12389 #ifdef __cplusplus
12390 extern "C"
12391 #endif
12392 char png_get_channels ();
12393 int
12394 main ()
12395 {
12396 return png_get_channels ();
12397 ;
12398 return 0;
12399 }
12400 _ACEOF
12401 if ac_fn_c_try_link "$LINENO"; then :
12402 ac_cv_lib_png_png_get_channels=yes
12403 else
12404 ac_cv_lib_png_png_get_channels=no
12405 fi
12406 rm -f core conftest.err conftest.$ac_objext \
12407 conftest$ac_exeext conftest.$ac_ext
12408 LIBS=$ac_check_lib_save_LIBS
12409 fi
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12411 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12412 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
12413 HAVE_PNG=yes
12414 fi
12415
12416 fi
12417 fi
12418
12419 if test "${HAVE_PNG}" = "yes"; then
12420
12421 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12422
12423 LIBPNG="-lpng -lz -lm"
12424
12425 ac_fn_c_check_decl "$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
12426 # include <libpng/png.h>
12427 #else
12428 # include <png.h>
12429 #endif
12430
12431 "
12432 if test "x$ac_cv_have_decl_png_longjmp" = x""yes; then :
12433
12434 else
12435
12436 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
12437
12438 fi
12439
12440 fi
12441 fi
12442
12443
12444 ### Use -ltiff if available, unless `--with-tiff=no'.
12445 HAVE_TIFF=no
12446 LIBTIFF=
12447 if test "${HAVE_X11}" = "yes"; then
12448 if test "${with_tiff}" != "no"; then
12449 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12450 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
12451 tifflibs="-lz -lm"
12452 # At least one tiff package requires the jpeg library.
12453 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12455 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12456 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
12457 $as_echo_n "(cached) " >&6
12458 else
12459 ac_check_lib_save_LIBS=$LIBS
12460 LIBS="-ltiff $tifflibs $LIBS"
12461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12462 /* end confdefs.h. */
12463
12464 /* Override any GCC internal prototype to avoid an error.
12465 Use char because int might match the return type of a GCC
12466 builtin and then its argument prototype would still apply. */
12467 #ifdef __cplusplus
12468 extern "C"
12469 #endif
12470 char TIFFGetVersion ();
12471 int
12472 main ()
12473 {
12474 return TIFFGetVersion ();
12475 ;
12476 return 0;
12477 }
12478 _ACEOF
12479 if ac_fn_c_try_link "$LINENO"; then :
12480 ac_cv_lib_tiff_TIFFGetVersion=yes
12481 else
12482 ac_cv_lib_tiff_TIFFGetVersion=no
12483 fi
12484 rm -f core conftest.err conftest.$ac_objext \
12485 conftest$ac_exeext conftest.$ac_ext
12486 LIBS=$ac_check_lib_save_LIBS
12487 fi
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12489 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12490 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
12491 HAVE_TIFF=yes
12492 fi
12493
12494 fi
12495
12496
12497 fi
12498
12499 if test "${HAVE_TIFF}" = "yes"; then
12500
12501 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12502
12503 LIBTIFF=-ltiff
12504 fi
12505 fi
12506
12507
12508 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12509 HAVE_GIF=no
12510 LIBGIF=
12511 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12512 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12513 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
12514 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12515 # Earlier versions can crash Emacs.
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12517 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12518 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
12519 $as_echo_n "(cached) " >&6
12520 else
12521 ac_check_lib_save_LIBS=$LIBS
12522 LIBS="-lgif $LIBS"
12523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12524 /* end confdefs.h. */
12525
12526 /* Override any GCC internal prototype to avoid an error.
12527 Use char because int might match the return type of a GCC
12528 builtin and then its argument prototype would still apply. */
12529 #ifdef __cplusplus
12530 extern "C"
12531 #endif
12532 char EGifPutExtensionLast ();
12533 int
12534 main ()
12535 {
12536 return EGifPutExtensionLast ();
12537 ;
12538 return 0;
12539 }
12540 _ACEOF
12541 if ac_fn_c_try_link "$LINENO"; then :
12542 ac_cv_lib_gif_EGifPutExtensionLast=yes
12543 else
12544 ac_cv_lib_gif_EGifPutExtensionLast=no
12545 fi
12546 rm -f core conftest.err conftest.$ac_objext \
12547 conftest$ac_exeext conftest.$ac_ext
12548 LIBS=$ac_check_lib_save_LIBS
12549 fi
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12551 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12552 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
12553 HAVE_GIF=yes
12554 else
12555 HAVE_GIF=maybe
12556 fi
12557
12558 fi
12559
12560
12561
12562 if test "$HAVE_GIF" = yes; then
12563 LIBGIF=-lgif
12564 elif test "$HAVE_GIF" = maybe; then
12565 # If gif_lib.h but no libgif, try libungif.
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12567 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12568 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
12569 $as_echo_n "(cached) " >&6
12570 else
12571 ac_check_lib_save_LIBS=$LIBS
12572 LIBS="-lungif $LIBS"
12573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12574 /* end confdefs.h. */
12575
12576 /* Override any GCC internal prototype to avoid an error.
12577 Use char because int might match the return type of a GCC
12578 builtin and then its argument prototype would still apply. */
12579 #ifdef __cplusplus
12580 extern "C"
12581 #endif
12582 char EGifPutExtensionLast ();
12583 int
12584 main ()
12585 {
12586 return EGifPutExtensionLast ();
12587 ;
12588 return 0;
12589 }
12590 _ACEOF
12591 if ac_fn_c_try_link "$LINENO"; then :
12592 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12593 else
12594 ac_cv_lib_ungif_EGifPutExtensionLast=no
12595 fi
12596 rm -f core conftest.err conftest.$ac_objext \
12597 conftest$ac_exeext conftest.$ac_ext
12598 LIBS=$ac_check_lib_save_LIBS
12599 fi
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12601 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12602 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
12603 HAVE_GIF=yes
12604 else
12605 HAVE_GIF=no
12606 fi
12607
12608 test "$HAVE_GIF" = yes && LIBGIF=-lungif
12609 fi
12610
12611 if test "${HAVE_GIF}" = "yes"; then
12612
12613 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12614
12615 fi
12616 fi
12617
12618
12619 if test "${HAVE_X11}" = "yes"; then
12620 MISSING=""
12621 WITH_NO=""
12622 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12623 MISSING="libXpm" && WITH_NO="--with-xpm=no"
12624 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12625 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
12626 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12627 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
12628 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12629 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
12630 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12631 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
12632
12633 if test "X${MISSING}" != X; then
12634 as_fn_error "The following required libraries were not found:
12635 $MISSING
12636 Maybe some development libraries/packages are missing?
12637 If you don't want to link with them give
12638 $WITH_NO
12639 as options to configure" "$LINENO" 5
12640 fi
12641 fi
12642
12643 ### Use -lgpm if available, unless `--with-gpm=no'.
12644 HAVE_GPM=no
12645 LIBGPM=
12646 if test "${with_gpm}" != "no"; then
12647 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12648 if test "x$ac_cv_header_gpm_h" = x""yes; then :
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12650 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12651 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
12652 $as_echo_n "(cached) " >&6
12653 else
12654 ac_check_lib_save_LIBS=$LIBS
12655 LIBS="-lgpm $LIBS"
12656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12657 /* end confdefs.h. */
12658
12659 /* Override any GCC internal prototype to avoid an error.
12660 Use char because int might match the return type of a GCC
12661 builtin and then its argument prototype would still apply. */
12662 #ifdef __cplusplus
12663 extern "C"
12664 #endif
12665 char Gpm_Open ();
12666 int
12667 main ()
12668 {
12669 return Gpm_Open ();
12670 ;
12671 return 0;
12672 }
12673 _ACEOF
12674 if ac_fn_c_try_link "$LINENO"; then :
12675 ac_cv_lib_gpm_Gpm_Open=yes
12676 else
12677 ac_cv_lib_gpm_Gpm_Open=no
12678 fi
12679 rm -f core conftest.err conftest.$ac_objext \
12680 conftest$ac_exeext conftest.$ac_ext
12681 LIBS=$ac_check_lib_save_LIBS
12682 fi
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12684 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12685 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
12686 HAVE_GPM=yes
12687 fi
12688
12689 fi
12690
12691
12692
12693 if test "${HAVE_GPM}" = "yes"; then
12694
12695 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12696
12697 LIBGPM=-lgpm
12698 fi
12699 fi
12700
12701
12702
12703
12704
12705
12706 GNUSTEP_CFLAGS=
12707 ### Use NeXTstep API to implement GUI.
12708 if test "${HAVE_NS}" = "yes"; then
12709
12710 $as_echo "#define HAVE_NS 1" >>confdefs.h
12711
12712 if test "${NS_IMPL_COCOA}" = "yes"; then
12713
12714 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12715
12716 fi
12717 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12718
12719 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12720
12721 # See also .m.o rule in Makefile.in */
12722 # FIXME: are all these flags really needed? Document here why. */
12723 GNUSTEP_CFLAGS="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
12724 ## Extra CFLAGS applied to src/*.m files.
12725 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"
12726 fi
12727 # We also have mouse menus.
12728 HAVE_MENUS=yes
12729 OTHER_FILES=ns-app
12730 fi
12731
12732
12733 ### Use session management (-lSM -lICE) if available
12734 HAVE_X_SM=no
12735 LIBXSM=
12736 if test "${HAVE_X11}" = "yes"; then
12737 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12738 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12740 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12741 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
12742 $as_echo_n "(cached) " >&6
12743 else
12744 ac_check_lib_save_LIBS=$LIBS
12745 LIBS="-lSM -lICE $LIBS"
12746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12747 /* end confdefs.h. */
12748
12749 /* Override any GCC internal prototype to avoid an error.
12750 Use char because int might match the return type of a GCC
12751 builtin and then its argument prototype would still apply. */
12752 #ifdef __cplusplus
12753 extern "C"
12754 #endif
12755 char SmcOpenConnection ();
12756 int
12757 main ()
12758 {
12759 return SmcOpenConnection ();
12760 ;
12761 return 0;
12762 }
12763 _ACEOF
12764 if ac_fn_c_try_link "$LINENO"; then :
12765 ac_cv_lib_SM_SmcOpenConnection=yes
12766 else
12767 ac_cv_lib_SM_SmcOpenConnection=no
12768 fi
12769 rm -f core conftest.err conftest.$ac_objext \
12770 conftest$ac_exeext conftest.$ac_ext
12771 LIBS=$ac_check_lib_save_LIBS
12772 fi
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12774 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
12775 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
12776 HAVE_X_SM=yes
12777 fi
12778
12779 fi
12780
12781
12782
12783 if test "${HAVE_X_SM}" = "yes"; then
12784
12785 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
12786
12787 LIBXSM="-lSM -lICE"
12788 case "$LIBS" in
12789 *-lSM*) ;;
12790 *) LIBS="$LIBXSM $LIBS" ;;
12791 esac
12792 fi
12793 fi
12794
12795
12796 ### Use libxml (-lxml2) if available
12797 HAVE_LIBXML2=no
12798 if test "${with_xml2}" != "no"; then
12799 ### I'm not sure what the version number should be, so I just guessed.
12800
12801 succeeded=no
12802
12803 if test "$PKG_CONFIG" = "no" ; then
12804 HAVE_LIBXML2=no
12805 else
12806 PKG_CONFIG_MIN_VERSION=0.9.0
12807 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12809 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
12810
12811 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5 &&
12812 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
12813 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17" 2>&5`; then
12814 edit_cflags="
12815 s,///*,/,g
12816 s/^/ /
12817 s/ -I/ $isystem/g
12818 s/^ //
12819 "
12820 LIBXML2_CFLAGS=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
12821 LIBXML2_LIBS=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
12823 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
12824 succeeded=yes
12825 else
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12827 $as_echo "no" >&6; }
12828 LIBXML2_CFLAGS=""
12829 LIBXML2_LIBS=""
12830 ## If we have a custom action on failure, don't print errors, but
12831 ## do set a variable so people can do so. Do it in a subshell
12832 ## to capture any diagnostics in invoking pkg-config.
12833 LIBXML2_PKG_ERRORS=`($PKG_CONFIG --print-errors "libxml-2.0 > 2.6.17") 2>&1`
12834
12835 fi
12836
12837
12838
12839 else
12840 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12841 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12842 fi
12843 fi
12844
12845 if test $succeeded = yes; then
12846 HAVE_LIBXML2=yes
12847 else
12848 HAVE_LIBXML2=no
12849 fi
12850
12851 if test "${HAVE_LIBXML2}" = "yes"; then
12852 LIBS="$LIBXML2_LIBS $LIBS"
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12854 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
12855 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
12856 $as_echo_n "(cached) " >&6
12857 else
12858 ac_check_lib_save_LIBS=$LIBS
12859 LIBS="-lxml2 $LIBS"
12860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12861 /* end confdefs.h. */
12862
12863 /* Override any GCC internal prototype to avoid an error.
12864 Use char because int might match the return type of a GCC
12865 builtin and then its argument prototype would still apply. */
12866 #ifdef __cplusplus
12867 extern "C"
12868 #endif
12869 char htmlReadMemory ();
12870 int
12871 main ()
12872 {
12873 return htmlReadMemory ();
12874 ;
12875 return 0;
12876 }
12877 _ACEOF
12878 if ac_fn_c_try_link "$LINENO"; then :
12879 ac_cv_lib_xml2_htmlReadMemory=yes
12880 else
12881 ac_cv_lib_xml2_htmlReadMemory=no
12882 fi
12883 rm -f core conftest.err conftest.$ac_objext \
12884 conftest$ac_exeext conftest.$ac_ext
12885 LIBS=$ac_check_lib_save_LIBS
12886 fi
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12888 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
12889 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
12890 HAVE_LIBXML2=yes
12891 else
12892 HAVE_LIBXML2=no
12893 fi
12894
12895 if test "${HAVE_LIBXML2}" = "yes"; then
12896
12897 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12898
12899 else
12900 LIBXML2_LIBS=""
12901 LIBXML2_CFLAGS=""
12902 fi
12903 fi
12904 fi
12905
12906
12907
12908 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12910 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
12911 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
12912 $as_echo_n "(cached) " >&6
12913 else
12914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12915 /* end confdefs.h. */
12916 #include <netdb.h>
12917 int
12918 main ()
12919 {
12920 return h_errno;
12921 ;
12922 return 0;
12923 }
12924 _ACEOF
12925 if ac_fn_c_try_link "$LINENO"; then :
12926 emacs_cv_netdb_declares_h_errno=yes
12927 else
12928 emacs_cv_netdb_declares_h_errno=no
12929 fi
12930 rm -f core conftest.err conftest.$ac_objext \
12931 conftest$ac_exeext conftest.$ac_ext
12932 fi
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12934 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12935 if test $emacs_cv_netdb_declares_h_errno = yes; then
12936
12937 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12938
12939 fi
12940
12941 # sqrt and other floating-point functions such as fmod and frexp
12942 # are found in -lm on most systems.
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
12944 $as_echo_n "checking for sqrt in -lm... " >&6; }
12945 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
12946 $as_echo_n "(cached) " >&6
12947 else
12948 ac_check_lib_save_LIBS=$LIBS
12949 LIBS="-lm $LIBS"
12950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12951 /* end confdefs.h. */
12952
12953 /* Override any GCC internal prototype to avoid an error.
12954 Use char because int might match the return type of a GCC
12955 builtin and then its argument prototype would still apply. */
12956 #ifdef __cplusplus
12957 extern "C"
12958 #endif
12959 char sqrt ();
12960 int
12961 main ()
12962 {
12963 return sqrt ();
12964 ;
12965 return 0;
12966 }
12967 _ACEOF
12968 if ac_fn_c_try_link "$LINENO"; then :
12969 ac_cv_lib_m_sqrt=yes
12970 else
12971 ac_cv_lib_m_sqrt=no
12972 fi
12973 rm -f core conftest.err conftest.$ac_objext \
12974 conftest$ac_exeext conftest.$ac_ext
12975 LIBS=$ac_check_lib_save_LIBS
12976 fi
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
12978 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
12979 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
12980 cat >>confdefs.h <<_ACEOF
12981 #define HAVE_LIBM 1
12982 _ACEOF
12983
12984 LIBS="-lm $LIBS"
12985
12986 fi
12987
12988
12989 # Check for mail-locking functions in a "mail" library. Probably this should
12990 # have the same check as for liblockfile below.
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
12992 $as_echo_n "checking for maillock in -lmail... " >&6; }
12993 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
12994 $as_echo_n "(cached) " >&6
12995 else
12996 ac_check_lib_save_LIBS=$LIBS
12997 LIBS="-lmail $LIBS"
12998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12999 /* end confdefs.h. */
13000
13001 /* Override any GCC internal prototype to avoid an error.
13002 Use char because int might match the return type of a GCC
13003 builtin and then its argument prototype would still apply. */
13004 #ifdef __cplusplus
13005 extern "C"
13006 #endif
13007 char maillock ();
13008 int
13009 main ()
13010 {
13011 return maillock ();
13012 ;
13013 return 0;
13014 }
13015 _ACEOF
13016 if ac_fn_c_try_link "$LINENO"; then :
13017 ac_cv_lib_mail_maillock=yes
13018 else
13019 ac_cv_lib_mail_maillock=no
13020 fi
13021 rm -f core conftest.err conftest.$ac_objext \
13022 conftest$ac_exeext conftest.$ac_ext
13023 LIBS=$ac_check_lib_save_LIBS
13024 fi
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13026 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13027 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
13028 have_mail=yes
13029 else
13030 have_mail=no
13031 fi
13032
13033 if test $have_mail = yes; then
13034 LIBS_MAIL=-lmail
13035 LIBS="$LIBS_MAIL $LIBS"
13036
13037 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13038
13039 else
13040 LIBS_MAIL=
13041 fi
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13043 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13044 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13045 $as_echo_n "(cached) " >&6
13046 else
13047 ac_check_lib_save_LIBS=$LIBS
13048 LIBS="-llockfile $LIBS"
13049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13050 /* end confdefs.h. */
13051
13052 /* Override any GCC internal prototype to avoid an error.
13053 Use char because int might match the return type of a GCC
13054 builtin and then its argument prototype would still apply. */
13055 #ifdef __cplusplus
13056 extern "C"
13057 #endif
13058 char maillock ();
13059 int
13060 main ()
13061 {
13062 return maillock ();
13063 ;
13064 return 0;
13065 }
13066 _ACEOF
13067 if ac_fn_c_try_link "$LINENO"; then :
13068 ac_cv_lib_lockfile_maillock=yes
13069 else
13070 ac_cv_lib_lockfile_maillock=no
13071 fi
13072 rm -f core conftest.err conftest.$ac_objext \
13073 conftest$ac_exeext conftest.$ac_ext
13074 LIBS=$ac_check_lib_save_LIBS
13075 fi
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13077 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13078 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
13079 have_lockfile=yes
13080 else
13081 have_lockfile=no
13082 fi
13083
13084 if test $have_lockfile = yes; then
13085 LIBS_MAIL=-llockfile
13086 LIBS="$LIBS_MAIL $LIBS"
13087
13088 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13089
13090 else
13091 # If we have the shared liblockfile, assume we must use it for mail
13092 # locking (e.g. Debian). If we couldn't link against liblockfile
13093 # (no liblockfile.a installed), ensure that we don't need to.
13094 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13095 set dummy liblockfile.so; ac_word=$2
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13097 $as_echo_n "checking for $ac_word... " >&6; }
13098 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13099 $as_echo_n "(cached) " >&6
13100 else
13101 if test -n "$liblockfile"; then
13102 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13103 else
13104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13105 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13106 for as_dir in $as_dummy
13107 do
13108 IFS=$as_save_IFS
13109 test -z "$as_dir" && as_dir=.
13110 for ac_exec_ext in '' $ac_executable_extensions; do
13111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13112 ac_cv_prog_liblockfile="yes"
13113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13114 break 2
13115 fi
13116 done
13117 done
13118 IFS=$as_save_IFS
13119
13120 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13121 fi
13122 fi
13123 liblockfile=$ac_cv_prog_liblockfile
13124 if test -n "$liblockfile"; then
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13126 $as_echo "$liblockfile" >&6; }
13127 else
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13129 $as_echo "no" >&6; }
13130 fi
13131
13132
13133 if test $ac_cv_prog_liblockfile = yes; then
13134 as_fn_error "Shared liblockfile found but can't link against it.
13135 This probably means that movemail could lose mail.
13136 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13137 fi
13138 fi
13139
13140
13141
13142
13143
13144 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13145 ## interlock access to the mail spool. The alternative is a lock file named
13146 ## /usr/spool/mail/$USER.lock.
13147 mail_lock=no
13148 case "$opsys" in
13149 aix4-2) mail_lock="lockf" ;;
13150
13151 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
13152
13153 ## On GNU/Linux systems, both methods are used by various mail programs.
13154 ## I assume most people are using newer mailers that have heard of flock.
13155 ## Change this if you need to.
13156 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13157 ## configure gets the right answers, and that means *NOT* using flock.
13158 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13159 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13160 ## Debian maintainer hasn't provided a clean fix for Emacs.
13161 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13162 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13163 ## correct logic. -- fx
13164 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13165 ## liblockfile is a Free Software replacement for libmail, used on
13166 ## Debian systems and elsewhere. -rfr.
13167 gnu-*)
13168 mail_lock="flock"
13169 if test $have_mail = yes || test $have_lockfile = yes; then
13170 test $ac_cv_header_maillock_h = yes && mail_lock=no
13171 fi
13172 ;;
13173 esac
13174
13175 BLESSMAIL_TARGET=
13176 case "$mail_lock" in
13177 flock)
13178 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13179 ;;
13180
13181 lockf)
13182 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13183 ;;
13184
13185 *) BLESSMAIL_TARGET="need-blessmail" ;;
13186 esac
13187
13188
13189
13190 for ac_func in gethostname \
13191 closedir getrusage get_current_dir_name \
13192 lrand48 setsid \
13193 fpathconf select euidaccess getpagesize setlocale \
13194 utimes getrlimit setrlimit setpgid getcwd shutdown getaddrinfo \
13195 __fpending strsignal setitimer \
13196 sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
13197 gai_strerror mkstemp getline getdelim fsync sync \
13198 difftime posix_memalign \
13199 getpwent endpwent getgrent endgrent \
13200 touchlock \
13201 cfmakeraw cfsetspeed copysign __executable_start
13202 do :
13203 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13204 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13205 eval as_val=\$$as_ac_var
13206 if test "x$as_val" = x""yes; then :
13207 cat >>confdefs.h <<_ACEOF
13208 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13209 _ACEOF
13210
13211 fi
13212 done
13213
13214
13215 if test $opsys = unixware; then
13216
13217 $as_echo "#define BROKEN_GETWD 1" >>confdefs.h
13218
13219 else
13220 for ac_func in getwd
13221 do :
13222 ac_fn_c_check_func "$LINENO" "getwd" "ac_cv_func_getwd"
13223 if test "x$ac_cv_func_getwd" = x""yes; then :
13224 cat >>confdefs.h <<_ACEOF
13225 #define HAVE_GETWD 1
13226 _ACEOF
13227
13228 fi
13229 done
13230
13231 fi
13232
13233 ## Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines
13234 ## has a broken `rint' in some library versions including math library
13235 ## version number A.09.05.
13236 ## You can fix the math library by installing patch number PHSS_4630.
13237 ## But we can fix it more reliably for Emacs by just not using rint.
13238 ## We also skip HAVE_RANDOM - see comments in src/conf_post.h.
13239 case $opsys in
13240 hpux*) : ;;
13241 *) for ac_func in random rint
13242 do :
13243 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13244 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13245 eval as_val=\$$as_ac_var
13246 if test "x$as_val" = x""yes; then :
13247 cat >>confdefs.h <<_ACEOF
13248 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13249 _ACEOF
13250
13251 fi
13252 done
13253 ;;
13254 esac
13255
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13257 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13258 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13259 $as_echo_n "(cached) " >&6
13260 else
13261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13262 /* end confdefs.h. */
13263
13264 int
13265 main ()
13266 {
13267 __builtin_unwind_init ();
13268 ;
13269 return 0;
13270 }
13271 _ACEOF
13272 if ac_fn_c_try_link "$LINENO"; then :
13273 emacs_cv_func___builtin_unwind_init=yes
13274 else
13275 emacs_cv_func___builtin_unwind_init=no
13276 fi
13277 rm -f core conftest.err conftest.$ac_objext \
13278 conftest$ac_exeext conftest.$ac_ext
13279 fi
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13281 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13282 if test $emacs_cv_func___builtin_unwind_init = yes; then
13283
13284 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13285
13286 fi
13287
13288
13289
13290
13291
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13293 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13294 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13295 $as_echo_n "(cached) " >&6
13296 else
13297 while :; do
13298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13299 /* end confdefs.h. */
13300 #include <sys/types.h> /* for off_t */
13301 #include <stdio.h>
13302 int
13303 main ()
13304 {
13305 int (*fp) (FILE *, off_t, int) = fseeko;
13306 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13307 ;
13308 return 0;
13309 }
13310 _ACEOF
13311 if ac_fn_c_try_link "$LINENO"; then :
13312 ac_cv_sys_largefile_source=no; break
13313 fi
13314 rm -f core conftest.err conftest.$ac_objext \
13315 conftest$ac_exeext conftest.$ac_ext
13316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13317 /* end confdefs.h. */
13318 #define _LARGEFILE_SOURCE 1
13319 #include <sys/types.h> /* for off_t */
13320 #include <stdio.h>
13321 int
13322 main ()
13323 {
13324 int (*fp) (FILE *, off_t, int) = fseeko;
13325 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13326 ;
13327 return 0;
13328 }
13329 _ACEOF
13330 if ac_fn_c_try_link "$LINENO"; then :
13331 ac_cv_sys_largefile_source=1; break
13332 fi
13333 rm -f core conftest.err conftest.$ac_objext \
13334 conftest$ac_exeext conftest.$ac_ext
13335 ac_cv_sys_largefile_source=unknown
13336 break
13337 done
13338 fi
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13340 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13341 case $ac_cv_sys_largefile_source in #(
13342 no | unknown) ;;
13343 *)
13344 cat >>confdefs.h <<_ACEOF
13345 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13346 _ACEOF
13347 ;;
13348 esac
13349 rm -rf conftest*
13350
13351 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13352 # in glibc 2.1.3, but that breaks too many other things.
13353 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13354 if test $ac_cv_sys_largefile_source != unknown; then
13355
13356 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13357
13358 fi
13359
13360
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13362 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13363 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
13364 $as_echo_n "(cached) " >&6
13365 else
13366 # Use it with a single arg.
13367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13368 /* end confdefs.h. */
13369 $ac_includes_default
13370 int
13371 main ()
13372 {
13373 getpgrp (0);
13374 ;
13375 return 0;
13376 }
13377 _ACEOF
13378 if ac_fn_c_try_compile "$LINENO"; then :
13379 ac_cv_func_getpgrp_void=no
13380 else
13381 ac_cv_func_getpgrp_void=yes
13382 fi
13383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13384
13385 fi
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13387 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13388 if test $ac_cv_func_getpgrp_void = yes; then
13389
13390 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13391
13392 fi
13393
13394
13395 # UNIX98 PTYs.
13396 for ac_func in grantpt
13397 do :
13398 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
13399 if test "x$ac_cv_func_grantpt" = x""yes; then :
13400 cat >>confdefs.h <<_ACEOF
13401 #define HAVE_GRANTPT 1
13402 _ACEOF
13403
13404 fi
13405 done
13406
13407
13408 # PTY-related GNU extensions.
13409 for ac_func in getpt posix_openpt
13410 do :
13411 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13412 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13413 eval as_val=\$$as_ac_var
13414 if test "x$as_val" = x""yes; then :
13415 cat >>confdefs.h <<_ACEOF
13416 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13417 _ACEOF
13418
13419 fi
13420 done
13421
13422
13423 # Check this now, so that we will NOT find the above functions in ncurses.
13424 # That is because we have not set up to link ncurses in lib-src.
13425 # It's better to believe a function is not available
13426 # than to expect to find it in ncurses.
13427 # Also we need tputs and friends to be able to build at all.
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
13429 $as_echo_n "checking for library containing tputs... " >&6; }
13430 # Run a test program that contains a call to tputs, a call that is
13431 # never executed. This tests whether a pre-'main' dynamic linker
13432 # works with the library. It's too much trouble to actually call
13433 # tputs in the test program, due to portability hassles. When
13434 # cross-compiling, assume the test program will run if it links.
13435
13436 # Maybe curses should be tried earlier?
13437 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
13438 for tputs_library in '' tinfo ncurses terminfo termcap curses; do
13439 OLIBS=$LIBS
13440 if test -z "$tputs_library"; then
13441 LIBS_TERMCAP=
13442 msg='none required'
13443 else
13444 LIBS_TERMCAP=-l$tputs_library
13445 msg=$LIBS_TERMCAP
13446 LIBS="$LIBS_TERMCAP $LIBS"
13447 fi
13448 if test "$cross_compiling" = yes; then :
13449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13450 /* end confdefs.h. */
13451
13452 extern void tputs (const char *, int, int (*)(int));
13453 int main (int argc, char **argv)
13454 {
13455 if (argc == 10000)
13456 tputs (argv[0], 0, 0);
13457 return 0;
13458 }
13459
13460 _ACEOF
13461 if ac_fn_c_try_link "$LINENO"; then :
13462
13463 else
13464 msg=no
13465 fi
13466 rm -f core conftest.err conftest.$ac_objext \
13467 conftest$ac_exeext conftest.$ac_ext
13468 else
13469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13470 /* end confdefs.h. */
13471
13472 extern void tputs (const char *, int, int (*)(int));
13473 int main (int argc, char **argv)
13474 {
13475 if (argc == 10000)
13476 tputs (argv[0], 0, 0);
13477 return 0;
13478 }
13479
13480 _ACEOF
13481 if ac_fn_c_try_run "$LINENO"; then :
13482
13483 else
13484 msg=no
13485 fi
13486 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13487 conftest.$ac_objext conftest.beam conftest.$ac_ext
13488 fi
13489
13490 LIBS=$OLIBS
13491 if test "X$msg" != Xno; then
13492 break
13493 fi
13494 done
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
13496 $as_echo "$msg" >&6; }
13497 if test "X$msg" = Xno; then
13498 as_fn_error "The required function \`tputs' was not found in any library.
13499 The following libraries were tried (in order):
13500 libtinfo, libncurses, libterminfo, libtermcap, libcurses
13501 Please try installing whichever of these libraries is most appropriate
13502 for your system, together with its header files.
13503 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
13504 fi
13505
13506 ## Use termcap instead of terminfo?
13507 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
13508 TERMINFO=yes
13509 ## FIXME? In the cases below where we unconditionally set
13510 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
13511 ## if that was found above to have tputs.
13512 ## Should we use the gnu* logic everywhere?
13513 case "$opsys" in
13514 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
13515 ## The ncurses library has been moved out of the System framework in
13516 ## Mac OS X 10.2. So if configure detects it, set the command-line
13517 ## option to use it.
13518 darwin) LIBS_TERMCAP="-lncurses" ;;
13519
13520 gnu*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP="-lncurses" ;;
13521
13522 freebsd)
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
13524 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
13525 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
13526 $as_echo_n "(cached) " >&6
13527 else
13528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13529 /* end confdefs.h. */
13530 #include <osreldate.h>
13531 int
13532 main ()
13533 {
13534 #if __FreeBSD_version < 400000
13535 fail;
13536 #endif
13537
13538 ;
13539 return 0;
13540 }
13541 _ACEOF
13542 if ac_fn_c_try_link "$LINENO"; then :
13543 emacs_cv_freebsd_terminfo=yes
13544 else
13545 emacs_cv_freebsd_terminfo=no
13546 fi
13547 rm -f core conftest.err conftest.$ac_objext \
13548 conftest$ac_exeext conftest.$ac_ext
13549 fi
13550
13551
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
13553 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
13554
13555 if test $emacs_cv_freebsd_terminfo = yes; then
13556 LIBS_TERMCAP="-lncurses"
13557 else
13558 TERMINFO=no
13559 LIBS_TERMCAP="-ltermcap"
13560 fi
13561 ;;
13562
13563 netbsd)
13564 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
13565 TERMINFO=no
13566 LIBS_TERMCAP="-ltermcap"
13567 fi
13568 ;;
13569
13570 openbsd) LIBS_TERMCAP="-lncurses" ;;
13571
13572 ## hpux: Make sure we get select from libc rather than from libcurses
13573 ## because libcurses on HPUX 10.10 has a broken version of select.
13574 ## We used to use -lc -lcurses, but this may be cleaner.
13575 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
13576 # set that way, now it uses the default). Isn't this a contradiction?
13577 hpux*) LIBS_TERMCAP="-ltermcap" ;;
13578
13579 esac
13580
13581 TERMCAP_OBJ=tparam.o
13582 if test $TERMINFO = yes; then
13583
13584 $as_echo "#define TERMINFO 1" >>confdefs.h
13585
13586 TERMCAP_OBJ=terminfo.o
13587 fi
13588
13589
13590
13591
13592 # Do we have res_init, for detecting changes in /etc/resolv.conf?
13593 # On Darwin, res_init appears not to be useful: see bug#562 and
13594 # http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html
13595 resolv=no
13596
13597 if test $opsys != darwin; then
13598
13599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13600 /* end confdefs.h. */
13601 #include <netinet/in.h>
13602 #include <arpa/nameser.h>
13603 #include <resolv.h>
13604 int
13605 main ()
13606 {
13607 return res_init();
13608 ;
13609 return 0;
13610 }
13611 _ACEOF
13612 if ac_fn_c_try_link "$LINENO"; then :
13613 have_res_init=yes
13614 else
13615 have_res_init=no
13616 fi
13617 rm -f core conftest.err conftest.$ac_objext \
13618 conftest$ac_exeext conftest.$ac_ext
13619 if test "$have_res_init" = no; then
13620 OLIBS="$LIBS"
13621 LIBS="$LIBS -lresolv"
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
13623 $as_echo_n "checking for res_init with -lresolv... " >&6; }
13624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13625 /* end confdefs.h. */
13626 #include <netinet/in.h>
13627 #include <arpa/nameser.h>
13628 #include <resolv.h>
13629 int
13630 main ()
13631 {
13632 return res_init();
13633 ;
13634 return 0;
13635 }
13636 _ACEOF
13637 if ac_fn_c_try_link "$LINENO"; then :
13638 have_res_init=yes
13639 else
13640 have_res_init=no
13641 fi
13642 rm -f core conftest.err conftest.$ac_objext \
13643 conftest$ac_exeext conftest.$ac_ext
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
13645 $as_echo "$have_res_init" >&6; }
13646 if test "$have_res_init" = yes ; then
13647 resolv=yes
13648 fi
13649 LIBS="$OLIBS"
13650 fi
13651
13652 if test "$have_res_init" = yes; then
13653
13654 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
13655
13656 fi
13657 fi
13658 # Do we need the Hesiod library to provide the support routines?
13659 LIBHESIOD=
13660 if test "$with_hesiod" != no ; then
13661 # Don't set $LIBS here -- see comments above. FIXME which comments?
13662 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
13663 if test "x$ac_cv_func_res_send" = x""yes; then :
13664
13665 else
13666 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
13667 if test "x$ac_cv_func___res_send" = x""yes; then :
13668
13669 else
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
13671 $as_echo_n "checking for res_send in -lresolv... " >&6; }
13672 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
13673 $as_echo_n "(cached) " >&6
13674 else
13675 ac_check_lib_save_LIBS=$LIBS
13676 LIBS="-lresolv $LIBS"
13677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13678 /* end confdefs.h. */
13679
13680 /* Override any GCC internal prototype to avoid an error.
13681 Use char because int might match the return type of a GCC
13682 builtin and then its argument prototype would still apply. */
13683 #ifdef __cplusplus
13684 extern "C"
13685 #endif
13686 char res_send ();
13687 int
13688 main ()
13689 {
13690 return res_send ();
13691 ;
13692 return 0;
13693 }
13694 _ACEOF
13695 if ac_fn_c_try_link "$LINENO"; then :
13696 ac_cv_lib_resolv_res_send=yes
13697 else
13698 ac_cv_lib_resolv_res_send=no
13699 fi
13700 rm -f core conftest.err conftest.$ac_objext \
13701 conftest$ac_exeext conftest.$ac_ext
13702 LIBS=$ac_check_lib_save_LIBS
13703 fi
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
13705 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
13706 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
13707 resolv=yes
13708 else
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
13710 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
13711 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
13712 $as_echo_n "(cached) " >&6
13713 else
13714 ac_check_lib_save_LIBS=$LIBS
13715 LIBS="-lresolv $LIBS"
13716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13717 /* end confdefs.h. */
13718
13719 /* Override any GCC internal prototype to avoid an error.
13720 Use char because int might match the return type of a GCC
13721 builtin and then its argument prototype would still apply. */
13722 #ifdef __cplusplus
13723 extern "C"
13724 #endif
13725 char __res_send ();
13726 int
13727 main ()
13728 {
13729 return __res_send ();
13730 ;
13731 return 0;
13732 }
13733 _ACEOF
13734 if ac_fn_c_try_link "$LINENO"; then :
13735 ac_cv_lib_resolv___res_send=yes
13736 else
13737 ac_cv_lib_resolv___res_send=no
13738 fi
13739 rm -f core conftest.err conftest.$ac_objext \
13740 conftest$ac_exeext conftest.$ac_ext
13741 LIBS=$ac_check_lib_save_LIBS
13742 fi
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
13744 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
13745 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
13746 resolv=yes
13747 fi
13748
13749 fi
13750
13751 fi
13752
13753 fi
13754
13755 if test "$resolv" = yes ; then
13756 RESOLVLIB=-lresolv
13757 else
13758 RESOLVLIB=
13759 fi
13760 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
13761 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
13762
13763 else
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
13765 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
13766 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
13767 $as_echo_n "(cached) " >&6
13768 else
13769 ac_check_lib_save_LIBS=$LIBS
13770 LIBS="-lhesiod $RESOLVLIB $LIBS"
13771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13772 /* end confdefs.h. */
13773
13774 /* Override any GCC internal prototype to avoid an error.
13775 Use char because int might match the return type of a GCC
13776 builtin and then its argument prototype would still apply. */
13777 #ifdef __cplusplus
13778 extern "C"
13779 #endif
13780 char hes_getmailhost ();
13781 int
13782 main ()
13783 {
13784 return hes_getmailhost ();
13785 ;
13786 return 0;
13787 }
13788 _ACEOF
13789 if ac_fn_c_try_link "$LINENO"; then :
13790 ac_cv_lib_hesiod_hes_getmailhost=yes
13791 else
13792 ac_cv_lib_hesiod_hes_getmailhost=no
13793 fi
13794 rm -f core conftest.err conftest.$ac_objext \
13795 conftest$ac_exeext conftest.$ac_ext
13796 LIBS=$ac_check_lib_save_LIBS
13797 fi
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
13799 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
13800 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
13801 hesiod=yes
13802 else
13803 :
13804 fi
13805
13806 fi
13807
13808
13809 if test x"$hesiod" = xyes; then
13810
13811 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
13812
13813 LIBHESIOD=-lhesiod
13814 fi
13815 fi
13816
13817
13818 # Do we need libresolv (due to res_init or Hesiod)?
13819 if test "$resolv" = yes && test $opsys != darwin; then
13820
13821 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
13822
13823 LIBRESOLV=-lresolv
13824 else
13825 LIBRESOLV=
13826 fi
13827
13828
13829 # These tell us which Kerberos-related libraries to use.
13830 COM_ERRLIB=
13831 CRYPTOLIB=
13832 KRB5LIB=
13833 DESLIB=
13834 KRB4LIB=
13835
13836 if test "${with_kerberos}" != no; then
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
13838 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
13839 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
13840 $as_echo_n "(cached) " >&6
13841 else
13842 ac_check_lib_save_LIBS=$LIBS
13843 LIBS="-lcom_err $LIBS"
13844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13845 /* end confdefs.h. */
13846
13847 /* Override any GCC internal prototype to avoid an error.
13848 Use char because int might match the return type of a GCC
13849 builtin and then its argument prototype would still apply. */
13850 #ifdef __cplusplus
13851 extern "C"
13852 #endif
13853 char com_err ();
13854 int
13855 main ()
13856 {
13857 return com_err ();
13858 ;
13859 return 0;
13860 }
13861 _ACEOF
13862 if ac_fn_c_try_link "$LINENO"; then :
13863 ac_cv_lib_com_err_com_err=yes
13864 else
13865 ac_cv_lib_com_err_com_err=no
13866 fi
13867 rm -f core conftest.err conftest.$ac_objext \
13868 conftest$ac_exeext conftest.$ac_ext
13869 LIBS=$ac_check_lib_save_LIBS
13870 fi
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
13872 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
13873 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
13874 have_com_err=yes
13875 else
13876 have_com_err=no
13877 fi
13878
13879 if test $have_com_err = yes; then
13880 COM_ERRLIB=-lcom_err
13881 LIBS="$COM_ERRLIB $LIBS"
13882
13883 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
13884
13885 fi
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
13887 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
13888 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
13889 $as_echo_n "(cached) " >&6
13890 else
13891 ac_check_lib_save_LIBS=$LIBS
13892 LIBS="-lcrypto $LIBS"
13893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13894 /* end confdefs.h. */
13895
13896 /* Override any GCC internal prototype to avoid an error.
13897 Use char because int might match the return type of a GCC
13898 builtin and then its argument prototype would still apply. */
13899 #ifdef __cplusplus
13900 extern "C"
13901 #endif
13902 char mit_des_cbc_encrypt ();
13903 int
13904 main ()
13905 {
13906 return mit_des_cbc_encrypt ();
13907 ;
13908 return 0;
13909 }
13910 _ACEOF
13911 if ac_fn_c_try_link "$LINENO"; then :
13912 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
13913 else
13914 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
13915 fi
13916 rm -f core conftest.err conftest.$ac_objext \
13917 conftest$ac_exeext conftest.$ac_ext
13918 LIBS=$ac_check_lib_save_LIBS
13919 fi
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
13921 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
13922 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
13923 have_crypto=yes
13924 else
13925 have_crypto=no
13926 fi
13927
13928 if test $have_crypto = yes; then
13929 CRYPTOLIB=-lcrypto
13930 LIBS="$CRYPTOLIB $LIBS"
13931
13932 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
13933
13934 fi
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
13936 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
13937 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
13938 $as_echo_n "(cached) " >&6
13939 else
13940 ac_check_lib_save_LIBS=$LIBS
13941 LIBS="-lk5crypto $LIBS"
13942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13943 /* end confdefs.h. */
13944
13945 /* Override any GCC internal prototype to avoid an error.
13946 Use char because int might match the return type of a GCC
13947 builtin and then its argument prototype would still apply. */
13948 #ifdef __cplusplus
13949 extern "C"
13950 #endif
13951 char mit_des_cbc_encrypt ();
13952 int
13953 main ()
13954 {
13955 return mit_des_cbc_encrypt ();
13956 ;
13957 return 0;
13958 }
13959 _ACEOF
13960 if ac_fn_c_try_link "$LINENO"; then :
13961 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
13962 else
13963 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
13964 fi
13965 rm -f core conftest.err conftest.$ac_objext \
13966 conftest$ac_exeext conftest.$ac_ext
13967 LIBS=$ac_check_lib_save_LIBS
13968 fi
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
13970 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
13971 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
13972 have_k5crypto=yes
13973 else
13974 have_k5crypto=no
13975 fi
13976
13977 if test $have_k5crypto = yes; then
13978 CRYPTOLIB=-lk5crypto
13979 LIBS="$CRYPTOLIB $LIBS"
13980
13981 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
13982
13983 fi
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
13985 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
13986 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
13987 $as_echo_n "(cached) " >&6
13988 else
13989 ac_check_lib_save_LIBS=$LIBS
13990 LIBS="-lkrb5 $LIBS"
13991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13992 /* end confdefs.h. */
13993
13994 /* Override any GCC internal prototype to avoid an error.
13995 Use char because int might match the return type of a GCC
13996 builtin and then its argument prototype would still apply. */
13997 #ifdef __cplusplus
13998 extern "C"
13999 #endif
14000 char krb5_init_context ();
14001 int
14002 main ()
14003 {
14004 return krb5_init_context ();
14005 ;
14006 return 0;
14007 }
14008 _ACEOF
14009 if ac_fn_c_try_link "$LINENO"; then :
14010 ac_cv_lib_krb5_krb5_init_context=yes
14011 else
14012 ac_cv_lib_krb5_krb5_init_context=no
14013 fi
14014 rm -f core conftest.err conftest.$ac_objext \
14015 conftest$ac_exeext conftest.$ac_ext
14016 LIBS=$ac_check_lib_save_LIBS
14017 fi
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14019 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
14020 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
14021 have_krb5=yes
14022 else
14023 have_krb5=no
14024 fi
14025
14026 if test $have_krb5=yes; then
14027 KRB5LIB=-lkrb5
14028 LIBS="$KRB5LIB $LIBS"
14029
14030 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
14031
14032 fi
14033 if test "${with_kerberos5}" = no; then
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
14035 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
14036 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
14037 $as_echo_n "(cached) " >&6
14038 else
14039 ac_check_lib_save_LIBS=$LIBS
14040 LIBS="-ldes425 $LIBS"
14041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14042 /* end confdefs.h. */
14043
14044 /* Override any GCC internal prototype to avoid an error.
14045 Use char because int might match the return type of a GCC
14046 builtin and then its argument prototype would still apply. */
14047 #ifdef __cplusplus
14048 extern "C"
14049 #endif
14050 char des_cbc_encrypt ();
14051 int
14052 main ()
14053 {
14054 return des_cbc_encrypt ();
14055 ;
14056 return 0;
14057 }
14058 _ACEOF
14059 if ac_fn_c_try_link "$LINENO"; then :
14060 ac_cv_lib_des425_des_cbc_encrypt=yes
14061 else
14062 ac_cv_lib_des425_des_cbc_encrypt=no
14063 fi
14064 rm -f core conftest.err conftest.$ac_objext \
14065 conftest$ac_exeext conftest.$ac_ext
14066 LIBS=$ac_check_lib_save_LIBS
14067 fi
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14069 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
14070 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
14071 have_des425=yes
14072 else
14073 have_des425=no
14074 fi
14075
14076 if test $have_des425 = yes; then
14077 DESLIB=-ldes425
14078 LIBS="$DESLIB $LIBS"
14079
14080 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
14081
14082 else
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
14084 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
14085 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
14086 $as_echo_n "(cached) " >&6
14087 else
14088 ac_check_lib_save_LIBS=$LIBS
14089 LIBS="-ldes $LIBS"
14090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14091 /* end confdefs.h. */
14092
14093 /* Override any GCC internal prototype to avoid an error.
14094 Use char because int might match the return type of a GCC
14095 builtin and then its argument prototype would still apply. */
14096 #ifdef __cplusplus
14097 extern "C"
14098 #endif
14099 char des_cbc_encrypt ();
14100 int
14101 main ()
14102 {
14103 return des_cbc_encrypt ();
14104 ;
14105 return 0;
14106 }
14107 _ACEOF
14108 if ac_fn_c_try_link "$LINENO"; then :
14109 ac_cv_lib_des_des_cbc_encrypt=yes
14110 else
14111 ac_cv_lib_des_des_cbc_encrypt=no
14112 fi
14113 rm -f core conftest.err conftest.$ac_objext \
14114 conftest$ac_exeext conftest.$ac_ext
14115 LIBS=$ac_check_lib_save_LIBS
14116 fi
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14118 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
14119 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
14120 have_des=yes
14121 else
14122 have_des=no
14123 fi
14124
14125 if test $have_des = yes; then
14126 DESLIB=-ldes
14127 LIBS="$DESLIB $LIBS"
14128
14129 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
14130
14131 fi
14132 fi
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
14134 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
14135 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
14136 $as_echo_n "(cached) " >&6
14137 else
14138 ac_check_lib_save_LIBS=$LIBS
14139 LIBS="-lkrb4 $LIBS"
14140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14141 /* end confdefs.h. */
14142
14143 /* Override any GCC internal prototype to avoid an error.
14144 Use char because int might match the return type of a GCC
14145 builtin and then its argument prototype would still apply. */
14146 #ifdef __cplusplus
14147 extern "C"
14148 #endif
14149 char krb_get_cred ();
14150 int
14151 main ()
14152 {
14153 return krb_get_cred ();
14154 ;
14155 return 0;
14156 }
14157 _ACEOF
14158 if ac_fn_c_try_link "$LINENO"; then :
14159 ac_cv_lib_krb4_krb_get_cred=yes
14160 else
14161 ac_cv_lib_krb4_krb_get_cred=no
14162 fi
14163 rm -f core conftest.err conftest.$ac_objext \
14164 conftest$ac_exeext conftest.$ac_ext
14165 LIBS=$ac_check_lib_save_LIBS
14166 fi
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14168 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
14169 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
14170 have_krb4=yes
14171 else
14172 have_krb4=no
14173 fi
14174
14175 if test $have_krb4 = yes; then
14176 KRB4LIB=-lkrb4
14177 LIBS="$KRB4LIB $LIBS"
14178
14179 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
14180
14181 else
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
14183 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
14184 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
14185 $as_echo_n "(cached) " >&6
14186 else
14187 ac_check_lib_save_LIBS=$LIBS
14188 LIBS="-lkrb $LIBS"
14189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14190 /* end confdefs.h. */
14191
14192 /* Override any GCC internal prototype to avoid an error.
14193 Use char because int might match the return type of a GCC
14194 builtin and then its argument prototype would still apply. */
14195 #ifdef __cplusplus
14196 extern "C"
14197 #endif
14198 char krb_get_cred ();
14199 int
14200 main ()
14201 {
14202 return krb_get_cred ();
14203 ;
14204 return 0;
14205 }
14206 _ACEOF
14207 if ac_fn_c_try_link "$LINENO"; then :
14208 ac_cv_lib_krb_krb_get_cred=yes
14209 else
14210 ac_cv_lib_krb_krb_get_cred=no
14211 fi
14212 rm -f core conftest.err conftest.$ac_objext \
14213 conftest$ac_exeext conftest.$ac_ext
14214 LIBS=$ac_check_lib_save_LIBS
14215 fi
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
14217 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
14218 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
14219 have_krb=yes
14220 else
14221 have_krb=no
14222 fi
14223
14224 if test $have_krb = yes; then
14225 KRB4LIB=-lkrb
14226 LIBS="$KRB4LIB $LIBS"
14227
14228 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
14229
14230 fi
14231 fi
14232 fi
14233
14234 if test "${with_kerberos5}" != no; then
14235 for ac_header in krb5.h
14236 do :
14237 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
14238 if test "x$ac_cv_header_krb5_h" = x""yes; then :
14239 cat >>confdefs.h <<_ACEOF
14240 #define HAVE_KRB5_H 1
14241 _ACEOF
14242 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
14243 "
14244 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
14245
14246 cat >>confdefs.h <<_ACEOF
14247 #define HAVE_KRB5_ERROR_TEXT 1
14248 _ACEOF
14249
14250
14251 fi
14252 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
14253 "
14254 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
14255
14256 cat >>confdefs.h <<_ACEOF
14257 #define HAVE_KRB5_ERROR_E_TEXT 1
14258 _ACEOF
14259
14260
14261 fi
14262
14263 fi
14264
14265 done
14266
14267 else
14268 for ac_header in des.h
14269 do :
14270 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
14271 if test "x$ac_cv_header_des_h" = x""yes; then :
14272 cat >>confdefs.h <<_ACEOF
14273 #define HAVE_DES_H 1
14274 _ACEOF
14275
14276 else
14277 for ac_header in kerberosIV/des.h
14278 do :
14279 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
14280 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
14281 cat >>confdefs.h <<_ACEOF
14282 #define HAVE_KERBEROSIV_DES_H 1
14283 _ACEOF
14284
14285 else
14286 for ac_header in kerberos/des.h
14287 do :
14288 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
14289 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
14290 cat >>confdefs.h <<_ACEOF
14291 #define HAVE_KERBEROS_DES_H 1
14292 _ACEOF
14293
14294 fi
14295
14296 done
14297
14298 fi
14299
14300 done
14301
14302 fi
14303
14304 done
14305
14306 for ac_header in krb.h
14307 do :
14308 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
14309 if test "x$ac_cv_header_krb_h" = x""yes; then :
14310 cat >>confdefs.h <<_ACEOF
14311 #define HAVE_KRB_H 1
14312 _ACEOF
14313
14314 else
14315 for ac_header in kerberosIV/krb.h
14316 do :
14317 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
14318 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
14319 cat >>confdefs.h <<_ACEOF
14320 #define HAVE_KERBEROSIV_KRB_H 1
14321 _ACEOF
14322
14323 else
14324 for ac_header in kerberos/krb.h
14325 do :
14326 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
14327 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
14328 cat >>confdefs.h <<_ACEOF
14329 #define HAVE_KERBEROS_KRB_H 1
14330 _ACEOF
14331
14332 fi
14333
14334 done
14335
14336 fi
14337
14338 done
14339
14340 fi
14341
14342 done
14343
14344 fi
14345 for ac_header in com_err.h
14346 do :
14347 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
14348 if test "x$ac_cv_header_com_err_h" = x""yes; then :
14349 cat >>confdefs.h <<_ACEOF
14350 #define HAVE_COM_ERR_H 1
14351 _ACEOF
14352
14353 fi
14354
14355 done
14356
14357 fi
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368 for ac_func in $ac_func_list
14369 do :
14370 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14371 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14372 eval as_val=\$$as_ac_var
14373 if test "x$as_val" = x""yes; then :
14374 cat >>confdefs.h <<_ACEOF
14375 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14376 _ACEOF
14377
14378 fi
14379 done
14380
14381
14382
14383
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
14385 $as_echo_n "checking whether localtime caches TZ... " >&6; }
14386 if test "${emacs_cv_localtime_cache+set}" = set; then :
14387 $as_echo_n "(cached) " >&6
14388 else
14389 if test x$ac_cv_func_tzset = xyes; then
14390 if test "$cross_compiling" = yes; then :
14391 # If we have tzset, assume the worst when cross-compiling.
14392 emacs_cv_localtime_cache=yes
14393 else
14394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14395 /* end confdefs.h. */
14396 #include <time.h>
14397 char TZ_GMT0[] = "TZ=GMT0";
14398 char TZ_PST8[] = "TZ=PST8";
14399 main()
14400 {
14401 time_t now = time ((time_t *) 0);
14402 int hour_GMT0, hour_unset;
14403 if (putenv (TZ_GMT0) != 0)
14404 exit (1);
14405 hour_GMT0 = localtime (&now)->tm_hour;
14406 unsetenv("TZ");
14407 hour_unset = localtime (&now)->tm_hour;
14408 if (putenv (TZ_PST8) != 0)
14409 exit (1);
14410 if (localtime (&now)->tm_hour == hour_GMT0)
14411 exit (1);
14412 unsetenv("TZ");
14413 if (localtime (&now)->tm_hour != hour_unset)
14414 exit (1);
14415 exit (0);
14416 }
14417 _ACEOF
14418 if ac_fn_c_try_run "$LINENO"; then :
14419 emacs_cv_localtime_cache=no
14420 else
14421 emacs_cv_localtime_cache=yes
14422 fi
14423 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14424 conftest.$ac_objext conftest.beam conftest.$ac_ext
14425 fi
14426
14427 else
14428 # If we lack tzset, report that localtime does not cache TZ,
14429 # since we can't invalidate the cache if we don't have tzset.
14430 emacs_cv_localtime_cache=no
14431 fi
14432 fi
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
14434 $as_echo "$emacs_cv_localtime_cache" >&6; }
14435 if test $emacs_cv_localtime_cache = yes; then
14436
14437 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
14438
14439 fi
14440
14441 ok_so_far=yes
14442 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
14443 if test "x$ac_cv_func_socket" = x""yes; then :
14444
14445 else
14446 ok_so_far=no
14447 fi
14448
14449 if test $ok_so_far = yes; then
14450 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
14451 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
14452
14453 else
14454 ok_so_far=no
14455 fi
14456
14457
14458 fi
14459 if test $ok_so_far = yes; then
14460 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
14461 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
14462
14463 else
14464 ok_so_far=no
14465 fi
14466
14467
14468 fi
14469 if test $ok_so_far = yes; then
14470
14471 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
14472
14473 fi
14474
14475 if test -f /usr/lpp/X11/bin/smt.exp; then
14476
14477 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
14478
14479 fi
14480
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
14482 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
14483 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14485 $as_echo "yes" >&6; }
14486
14487 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
14488
14489 else
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14491 $as_echo "no" >&6; }
14492 fi
14493
14494 case $canonical in
14495 *-solaris2.4 | *-solaris2.4.*)
14496 : ${ac_cv_func_vfork_works=no};;
14497 esac
14498
14499 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14500 if test "x$ac_cv_type_pid_t" = x""yes; then :
14501
14502 else
14503
14504 cat >>confdefs.h <<_ACEOF
14505 #define pid_t int
14506 _ACEOF
14507
14508 fi
14509
14510 for ac_header in vfork.h
14511 do :
14512 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14513 if test "x$ac_cv_header_vfork_h" = x""yes; then :
14514 cat >>confdefs.h <<_ACEOF
14515 #define HAVE_VFORK_H 1
14516 _ACEOF
14517
14518 fi
14519
14520 done
14521
14522 for ac_func in fork vfork
14523 do :
14524 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14525 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14526 eval as_val=\$$as_ac_var
14527 if test "x$as_val" = x""yes; then :
14528 cat >>confdefs.h <<_ACEOF
14529 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14530 _ACEOF
14531
14532 fi
14533 done
14534
14535 if test "x$ac_cv_func_fork" = xyes; then
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14537 $as_echo_n "checking for working fork... " >&6; }
14538 if test "${ac_cv_func_fork_works+set}" = set; then :
14539 $as_echo_n "(cached) " >&6
14540 else
14541 if test "$cross_compiling" = yes; then :
14542 ac_cv_func_fork_works=cross
14543 else
14544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14545 /* end confdefs.h. */
14546 $ac_includes_default
14547 int
14548 main ()
14549 {
14550
14551 /* By Ruediger Kuhlmann. */
14552 return fork () < 0;
14553
14554 ;
14555 return 0;
14556 }
14557 _ACEOF
14558 if ac_fn_c_try_run "$LINENO"; then :
14559 ac_cv_func_fork_works=yes
14560 else
14561 ac_cv_func_fork_works=no
14562 fi
14563 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14564 conftest.$ac_objext conftest.beam conftest.$ac_ext
14565 fi
14566
14567 fi
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14569 $as_echo "$ac_cv_func_fork_works" >&6; }
14570
14571 else
14572 ac_cv_func_fork_works=$ac_cv_func_fork
14573 fi
14574 if test "x$ac_cv_func_fork_works" = xcross; then
14575 case $host in
14576 *-*-amigaos* | *-*-msdosdjgpp*)
14577 # Override, as these systems have only a dummy fork() stub
14578 ac_cv_func_fork_works=no
14579 ;;
14580 *)
14581 ac_cv_func_fork_works=yes
14582 ;;
14583 esac
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14585 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14586 fi
14587 ac_cv_func_vfork_works=$ac_cv_func_vfork
14588 if test "x$ac_cv_func_vfork" = xyes; then
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14590 $as_echo_n "checking for working vfork... " >&6; }
14591 if test "${ac_cv_func_vfork_works+set}" = set; then :
14592 $as_echo_n "(cached) " >&6
14593 else
14594 if test "$cross_compiling" = yes; then :
14595 ac_cv_func_vfork_works=cross
14596 else
14597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14598 /* end confdefs.h. */
14599 /* Thanks to Paul Eggert for this test. */
14600 $ac_includes_default
14601 #include <sys/wait.h>
14602 #ifdef HAVE_VFORK_H
14603 # include <vfork.h>
14604 #endif
14605 /* On some sparc systems, changes by the child to local and incoming
14606 argument registers are propagated back to the parent. The compiler
14607 is told about this with #include <vfork.h>, but some compilers
14608 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14609 static variable whose address is put into a register that is
14610 clobbered by the vfork. */
14611 static void
14612 #ifdef __cplusplus
14613 sparc_address_test (int arg)
14614 # else
14615 sparc_address_test (arg) int arg;
14616 #endif
14617 {
14618 static pid_t child;
14619 if (!child) {
14620 child = vfork ();
14621 if (child < 0) {
14622 perror ("vfork");
14623 _exit(2);
14624 }
14625 if (!child) {
14626 arg = getpid();
14627 write(-1, "", 0);
14628 _exit (arg);
14629 }
14630 }
14631 }
14632
14633 int
14634 main ()
14635 {
14636 pid_t parent = getpid ();
14637 pid_t child;
14638
14639 sparc_address_test (0);
14640
14641 child = vfork ();
14642
14643 if (child == 0) {
14644 /* Here is another test for sparc vfork register problems. This
14645 test uses lots of local variables, at least as many local
14646 variables as main has allocated so far including compiler
14647 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14648 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14649 reuse the register of parent for one of the local variables,
14650 since it will think that parent can't possibly be used any more
14651 in this routine. Assigning to the local variable will thus
14652 munge parent in the parent process. */
14653 pid_t
14654 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14655 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14656 /* Convince the compiler that p..p7 are live; otherwise, it might
14657 use the same hardware register for all 8 local variables. */
14658 if (p != p1 || p != p2 || p != p3 || p != p4
14659 || p != p5 || p != p6 || p != p7)
14660 _exit(1);
14661
14662 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14663 from child file descriptors. If the child closes a descriptor
14664 before it execs or exits, this munges the parent's descriptor
14665 as well. Test for this by closing stdout in the child. */
14666 _exit(close(fileno(stdout)) != 0);
14667 } else {
14668 int status;
14669 struct stat st;
14670
14671 while (wait(&status) != child)
14672 ;
14673 return (
14674 /* Was there some problem with vforking? */
14675 child < 0
14676
14677 /* Did the child fail? (This shouldn't happen.) */
14678 || status
14679
14680 /* Did the vfork/compiler bug occur? */
14681 || parent != getpid()
14682
14683 /* Did the file descriptor bug occur? */
14684 || fstat(fileno(stdout), &st) != 0
14685 );
14686 }
14687 }
14688 _ACEOF
14689 if ac_fn_c_try_run "$LINENO"; then :
14690 ac_cv_func_vfork_works=yes
14691 else
14692 ac_cv_func_vfork_works=no
14693 fi
14694 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14695 conftest.$ac_objext conftest.beam conftest.$ac_ext
14696 fi
14697
14698 fi
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14700 $as_echo "$ac_cv_func_vfork_works" >&6; }
14701
14702 fi;
14703 if test "x$ac_cv_func_fork_works" = xcross; then
14704 ac_cv_func_vfork_works=$ac_cv_func_vfork
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14706 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14707 fi
14708
14709 if test "x$ac_cv_func_vfork_works" = xyes; then
14710
14711 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14712
14713 else
14714
14715 $as_echo "#define vfork fork" >>confdefs.h
14716
14717 fi
14718 if test "x$ac_cv_func_fork_works" = xyes; then
14719
14720 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14721
14722 fi
14723
14724
14725 for ac_func in snprintf
14726 do :
14727 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
14728 if test "x$ac_cv_func_snprintf" = x""yes; then :
14729 cat >>confdefs.h <<_ACEOF
14730 #define HAVE_SNPRINTF 1
14731 _ACEOF
14732
14733 fi
14734 done
14735
14736
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14738 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14739 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
14740 $as_echo_n "(cached) " >&6
14741 else
14742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14743 /* end confdefs.h. */
14744 #include <langinfo.h>
14745 int
14746 main ()
14747 {
14748 char* cs = nl_langinfo(CODESET);
14749 ;
14750 return 0;
14751 }
14752 _ACEOF
14753 if ac_fn_c_try_link "$LINENO"; then :
14754 emacs_cv_langinfo_codeset=yes
14755 else
14756 emacs_cv_langinfo_codeset=no
14757 fi
14758 rm -f core conftest.err conftest.$ac_objext \
14759 conftest$ac_exeext conftest.$ac_ext
14760
14761 fi
14762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
14763 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
14764 if test $emacs_cv_langinfo_codeset = yes; then
14765
14766 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14767
14768 fi
14769
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
14771 $as_echo_n "checking for mbstate_t... " >&6; }
14772 if test "${ac_cv_type_mbstate_t+set}" = set; then :
14773 $as_echo_n "(cached) " >&6
14774 else
14775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14776 /* end confdefs.h. */
14777 $ac_includes_default
14778 # include <wchar.h>
14779 int
14780 main ()
14781 {
14782 mbstate_t x; return sizeof x;
14783 ;
14784 return 0;
14785 }
14786 _ACEOF
14787 if ac_fn_c_try_compile "$LINENO"; then :
14788 ac_cv_type_mbstate_t=yes
14789 else
14790 ac_cv_type_mbstate_t=no
14791 fi
14792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14793 fi
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
14795 $as_echo "$ac_cv_type_mbstate_t" >&6; }
14796 if test $ac_cv_type_mbstate_t = yes; then
14797
14798 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
14799
14800 else
14801
14802 $as_echo "#define mbstate_t int" >>confdefs.h
14803
14804 fi
14805
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
14807 $as_echo_n "checking for C restricted array declarations... " >&6; }
14808 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
14809 $as_echo_n "(cached) " >&6
14810 else
14811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14812 /* end confdefs.h. */
14813 void fred (int x[__restrict]);
14814 int
14815 main ()
14816 {
14817
14818 ;
14819 return 0;
14820 }
14821 _ACEOF
14822 if ac_fn_c_try_compile "$LINENO"; then :
14823 emacs_cv_c_restrict_arr=yes
14824 else
14825 emacs_cv_c_restrict_arr=no
14826 fi
14827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14828 fi
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
14830 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
14831 if test "$emacs_cv_c_restrict_arr" = yes; then
14832
14833 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
14834
14835 fi
14836
14837
14838
14839 $as_echo "#define AMPERSAND_FULL_NAME 1" >>confdefs.h
14840
14841
14842
14843 $as_echo "#define CLASH_DETECTION 1" >>confdefs.h
14844
14845
14846 ## Note: PTYs are broken on darwin <6. Use at your own risk.
14847
14848 $as_echo "#define HAVE_PTYS 1" >>confdefs.h
14849
14850
14851
14852 $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
14853
14854
14855
14856
14857
14858 $as_echo "#define NULL_DEVICE \"/dev/null\"" >>confdefs.h
14859
14860
14861
14862 $as_echo "#define SEPCHAR ':'" >>confdefs.h
14863
14864
14865
14866 $as_echo "#define subprocesses 1" >>confdefs.h
14867
14868
14869
14870 $as_echo "#define USER_FULL_NAME pw->pw_gecos" >>confdefs.h
14871
14872
14873
14874
14875 $as_echo "#define DIRECTORY_SEP '/'" >>confdefs.h
14876
14877
14878
14879
14880
14881 $as_echo "#define IS_DEVICE_SEP(_c_) 0" >>confdefs.h
14882
14883
14884
14885 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)" >>confdefs.h
14886
14887
14888
14889 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_))" >>confdefs.h
14890
14891
14892
14893
14894
14895 case $opsys in
14896 aix4-2)
14897 if test x$ac_cv_lib_Xmu_XmuConvertStandardSelection != xyes; then
14898 $as_echo "#define NO_EDITRES 1" >>confdefs.h
14899
14900 fi
14901 ;;
14902
14903 hpux*)
14904 $as_echo "#define NO_EDITRES 1" >>confdefs.h
14905
14906 ;;
14907 esac
14908
14909
14910 case $opsys in
14911 irix6-5 | sol2* | unixware )
14912
14913 $as_echo "#define NSIG_MINIMUM 32" >>confdefs.h
14914
14915 ;;
14916 esac
14917
14918 emacs_broken_SIGIO=no
14919
14920 case $opsys in
14921 hpux* | irix6-5 | openbsd | sol2* | unixware )
14922 emacs_broken_SIGIO=yes
14923 ;;
14924
14925 aix4-2)
14926
14927 $as_echo "#define BROKEN_GET_CURRENT_DIR_NAME 1" >>confdefs.h
14928
14929 ;;
14930
14931 freebsd)
14932
14933 $as_echo "#define BROKEN_PTY_READ_AFTER_EAGAIN 1" >>confdefs.h
14934
14935 ;;
14936 esac
14937
14938 case $opsys in
14939 gnu-* | sol2-10 )
14940
14941 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
14942
14943 ;;
14944 esac
14945
14946 case $opsys in
14947 darwin | freebsd | netbsd | openbsd )
14948
14949 $as_echo "#define DONT_REOPEN_PTY 1" >>confdefs.h
14950
14951 ;;
14952 esac
14953
14954 case $opsys in
14955 netbsd | openbsd) sound_device="/dev/audio" ;;
14956 *) sound_device="/dev/dsp" ;;
14957 esac
14958
14959
14960 cat >>confdefs.h <<_ACEOF
14961 #define DEFAULT_SOUND_DEVICE "$sound_device"
14962 _ACEOF
14963
14964
14965
14966 case $opsys in
14967 darwin | gnu-linux | gnu-kfreebsd )
14968
14969 $as_echo "#define INTERRUPT_INPUT 1" >>confdefs.h
14970
14971 ;;
14972 esac
14973
14974
14975 case $opsys in
14976 cygwin|gnu|gnu-linux|gnu-kfreebsd|irix6-5|freebsd|netbsd|openbsd)
14977
14978 $as_echo "#define NARROWPROTO 1" >>confdefs.h
14979
14980 ;;
14981 esac
14982
14983
14984
14985
14986
14987
14988
14989
14990 case $opsys in
14991 aix4-2 )
14992 $as_echo "#define PTY_ITERATION int c; for (c = 0; !c ; c++)" >>confdefs.h
14993
14994 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptc\");" >>confdefs.h
14995
14996 $as_echo "#define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));" >>confdefs.h
14997
14998 ;;
14999
15000 cygwin )
15001 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15002
15003 $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
15004
15005 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15006
15007 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15008
15009 ;;
15010
15011 darwin )
15012 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15013
15014 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15015
15016 $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
15017
15018 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15019
15020 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15021
15022 ;;
15023
15024 gnu | openbsd )
15025 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15026
15027 ;;
15028
15029 gnu-linux | gnu-kfreebsd | freebsd | netbsd )
15030 if test "x$ac_cv_func_grantpt" = xyes; then
15031
15032 $as_echo "#define UNIX98_PTYS 1" >>confdefs.h
15033
15034 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15035
15036 $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
15037
15038 if test "x$ac_cv_func_posix_openpt" = xyes; then
15039 $as_echo "#define PTY_OPEN fd = posix_openpt (O_RDWR | O_NOCTTY)" >>confdefs.h
15040
15041 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15042
15043 elif test "x$ac_cv_func_getpt" = xyes; then
15044 $as_echo "#define PTY_OPEN fd = getpt ()" >>confdefs.h
15045
15046 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15047
15048 else
15049 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15050
15051 fi
15052 else
15053 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15054
15055 fi
15056 ;;
15057
15058 hpux*)
15059 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15060
15061 $as_echo "#define PTY_NAME_SPRINTF sprintf (pty_name, \"/dev/ptym/pty%c%x\", c, i);" >>confdefs.h
15062
15063 $as_echo "#define PTY_TTY_NAME_SPRINTF sprintf (pty_name, \"/dev/pty/tty%c%x\", c, i);" >>confdefs.h
15064
15065 ;;
15066
15067 irix6-5 )
15068 $as_echo "#define PTY_ITERATION /**/" >>confdefs.h
15069
15070 $as_echo "#define FIRST_PTY_LETTER 'q'" >>confdefs.h
15071
15072 $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
15073
15074 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15075
15076 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15077
15078 ;;
15079
15080 sol2* )
15081 $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
15082
15083 ;;
15084
15085 unixware )
15086 $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
15087
15088 ;;
15089 esac
15090
15091
15092 case $opsys in
15093 sol2* | unixware )
15094 $as_echo "#define FIRST_PTY_LETTER 'z'" >>confdefs.h
15095
15096 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15097
15098
15099 $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
15100
15101 ;;
15102 esac
15103
15104
15105
15106
15107 case $opsys in
15108 aix4-2 | cygwin | gnu | irix6-5 | freebsd | netbsd | openbsd )
15109 $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15110
15111 ;;
15112
15113 gnu-linux | gnu-kfreebsd )
15114
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signals via characters" >&5
15116 $as_echo_n "checking for signals via characters... " >&6; }
15117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15118 /* end confdefs.h. */
15119
15120 #include <linux/version.h>
15121 #if LINUX_VERSION_CODE < 0x20400
15122 # error "Linux version too old"
15123 #endif
15124
15125 int
15126 main ()
15127 {
15128
15129 ;
15130 return 0;
15131 }
15132 _ACEOF
15133 if ac_fn_c_try_cpp "$LINENO"; then :
15134 emacs_signals_via_chars=yes
15135 else
15136 emacs_signals_via_chars=no
15137 fi
15138 rm -f conftest.err conftest.$ac_ext
15139
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_signals_via_chars" >&5
15141 $as_echo "$emacs_signals_via_chars" >&6; }
15142 test $emacs_signals_via_chars = yes && $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15143
15144 ;;
15145 esac
15146
15147
15148
15149
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C library" >&5
15151 $as_echo_n "checking whether we are using the GNU C library... " >&6; }
15152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15153 /* end confdefs.h. */
15154
15155 #include <features.h>
15156 #ifndef __GNU_LIBRARY__
15157 # error "this is not the GNU C library"
15158 #endif
15159
15160 int
15161 main ()
15162 {
15163
15164 ;
15165 return 0;
15166 }
15167 _ACEOF
15168 if ac_fn_c_try_cpp "$LINENO"; then :
15169 emacs_glibc=yes
15170 else
15171 emacs_glibc=no
15172 fi
15173 rm -f conftest.err conftest.$ac_ext
15174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_glibc" >&5
15175 $as_echo "$emacs_glibc" >&6; }
15176
15177 if test $emacs_glibc = yes; then
15178
15179 emacs_pending_output=unknown
15180
15181 case $opsys in
15182 gnu | gnu-linux | gnu-kfreebsd )
15183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of pending output formalism" >&5
15184 $as_echo_n "checking for style of pending output formalism... " >&6; }
15185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15186 /* end confdefs.h. */
15187
15188 #include <stdio.h>
15189 #if !defined (_IO_STDIO_H) && !defined (_STDIO_USES_IOSTREAM)
15190 # error "stdio definitions not found"
15191 #endif
15192
15193 int
15194 main ()
15195 {
15196
15197 ;
15198 return 0;
15199 }
15200 _ACEOF
15201 if ac_fn_c_try_cpp "$LINENO"; then :
15202 emacs_pending_output=new
15203 fi
15204 rm -f conftest.err conftest.$ac_ext
15205
15206 if test $emacs_pending_output = unknown; then
15207 case $opsys in
15208 gnu-linux | gnu-kfreebsd)
15209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15210 /* end confdefs.h. */
15211
15212 #include <stdio.h>
15213 #ifndef __UCLIBC__
15214 # error "not using uclibc"
15215 #endif
15216
15217 int
15218 main ()
15219 {
15220
15221 ;
15222 return 0;
15223 }
15224 _ACEOF
15225 if ac_fn_c_try_cpp "$LINENO"; then :
15226 emacs_pending_output=uclibc
15227 else
15228 emacs_pending_output=old
15229 fi
15230 rm -f conftest.err conftest.$ac_ext
15231 ;;
15232 esac
15233 fi
15234
15235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_pending_output" >&5
15236 $as_echo "$emacs_pending_output" >&6; }
15237
15238 case $emacs_pending_output in
15239 new)
15240 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_IO_write_ptr - (FILE)->_IO_write_base)" >>confdefs.h
15241
15242 ;;
15243 uclibc)
15244 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__bufpos - (FILE)->__bufstart)" >>confdefs.h
15245
15246 ;;
15247 old)
15248 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_pptr - (FILE)->_pbase)" >>confdefs.h
15249
15250 ;;
15251 esac
15252 ;;
15253 esac
15254 if test $emacs_pending_output = unknown; then
15255 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__bufp - (FILE)->__buffer)" >>confdefs.h
15256
15257 fi
15258
15259 else
15260 case $opsys in
15261 cygwin | darwin | freebsd | netbsd | openbsd )
15262 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base)" >>confdefs.h
15263
15264 ;;
15265
15266 unixware)
15267 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__ptr - (FILE)->__base)" >>confdefs.h
15268
15269 ;;
15270
15271 *)
15272 if test x$ac_cv_header_stdio_ext_h = xyes && \
15273 test x$ac_cv_func___fpending = xyes; then
15274 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) __fpending (FILE)" >>confdefs.h
15275
15276
15277 $as_echo "#define DISPNEW_NEEDS_STDIO_EXT 1" >>confdefs.h
15278
15279 else
15280 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_ptr - (FILE)->_base)" >>confdefs.h
15281
15282 fi
15283 ;;
15284 esac
15285 fi
15286
15287
15288
15289
15290 case $opsys in
15291 gnu)
15292 $as_echo "#define DATA_START ({ extern int data_start; (char *) &data_start; })" >>confdefs.h
15293
15294 ;;
15295
15296 hpux*)
15297 $as_echo "#define DATA_START 0x40000000" >>confdefs.h
15298
15299 $as_echo "#define DATA_SEG_BITS 0x40000000" >>confdefs.h
15300
15301 ;;
15302 irix6-5)
15303 $as_echo "#define DATA_START 0x10000000" >>confdefs.h
15304
15305 $as_echo "#define DATA_SEG_BITS 0x10000000" >>confdefs.h
15306
15307 ;;
15308 esac
15309
15310
15311
15312
15313
15314 case $opsys in
15315 darwin) $as_echo "#define TAB3 OXTABS" >>confdefs.h
15316 ;;
15317
15318 gnu | freebsd | netbsd | openbsd )
15319
15320 $as_echo "#define TABDLY OXTABS" >>confdefs.h
15321
15322 $as_echo "#define TAB3 OXTABS" >>confdefs.h
15323
15324 ;;
15325
15326 gnu-linux | gnu-kfreebsd )
15327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15328 /* end confdefs.h. */
15329
15330 #ifndef __i386__
15331 # error "not i386"
15332 #endif
15333
15334 int
15335 main ()
15336 {
15337
15338 ;
15339 return 0;
15340 }
15341 _ACEOF
15342 if ac_fn_c_try_cpp "$LINENO"; then :
15343 $as_echo "#define ULIMIT_BREAK_VALUE (32*1024*1024)" >>confdefs.h
15344
15345 fi
15346 rm -f conftest.err conftest.$ac_ext
15347
15348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15349 /* end confdefs.h. */
15350
15351 #ifndef __ia64__
15352 # error "not ia64"
15353 #endif
15354
15355 int
15356 main ()
15357 {
15358
15359 ;
15360 return 0;
15361 }
15362 _ACEOF
15363 if ac_fn_c_try_cpp "$LINENO"; then :
15364
15365 $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
15366
15367 fi
15368 rm -f conftest.err conftest.$ac_ext
15369 ;;
15370
15371 hpux*)
15372
15373 $as_echo "#define RUN_TIME_REMAP 1" >>confdefs.h
15374
15375 ;;
15376
15377 irix6-5)
15378 $as_echo "#define ULIMIT_BREAK_VALUE 0x14000000" >>confdefs.h
15379
15380 ;;
15381 esac
15382
15383
15384
15385
15386
15387
15388
15389 case $opsys in
15390 aix4-2 | hpux* | unixware)
15391 $as_echo "#define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE" >>confdefs.h
15392
15393 ;;
15394
15395 gnu-linux | gnu-kfreebsd )
15396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15397 /* end confdefs.h. */
15398
15399 #if defined __i386__ || defined __sparc__ || defined __mc68000__ \
15400 || defined __alpha__ || defined __mips__ || defined __s390__ \
15401 || defined __arm__ || defined __powerpc__ || defined __amd64__ \
15402 || defined __ia64__ || defined __sh__
15403 /* ok */
15404 #else
15405 # error "setjmp not known to work on this arch"
15406 #endif
15407
15408 int
15409 main ()
15410 {
15411
15412 ;
15413 return 0;
15414 }
15415 _ACEOF
15416 if ac_fn_c_try_cpp "$LINENO"; then :
15417 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15418
15419 else
15420 $as_echo "#define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE" >>confdefs.h
15421
15422 fi
15423 rm -f conftest.err conftest.$ac_ext
15424 ;;
15425 esac
15426
15427
15428 if test x$GCC = xyes; then
15429 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15430
15431 else
15432 case $opsys in
15433 freebsd | netbsd | openbsd | irix6-5 | sol2* )
15434 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15435
15436 ;;
15437 esac
15438 fi
15439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _setjmp" >&5
15440 $as_echo_n "checking for _setjmp... " >&6; }
15441 if test "${emacs_cv_func__setjmp+set}" = set; then :
15442 $as_echo_n "(cached) " >&6
15443 else
15444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15445 /* end confdefs.h. */
15446 #include <setjmp.h>
15447
15448 int
15449 main ()
15450 {
15451 jmp_buf j;
15452 if (! _setjmp (j))
15453 _longjmp (j, 1);
15454 ;
15455 return 0;
15456 }
15457 _ACEOF
15458 if ac_fn_c_try_link "$LINENO"; then :
15459 emacs_cv_func__setjmp=yes
15460 else
15461 emacs_cv_func__setjmp=no
15462 fi
15463 rm -f core conftest.err conftest.$ac_objext \
15464 conftest$ac_exeext conftest.$ac_ext
15465 fi
15466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func__setjmp" >&5
15467 $as_echo "$emacs_cv_func__setjmp" >&6; }
15468 if test $emacs_cv_func__setjmp = yes; then
15469
15470 $as_echo "#define HAVE__SETJMP 1" >>confdefs.h
15471
15472 else
15473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
15474 $as_echo_n "checking for sigsetjmp... " >&6; }
15475 if test "${emacs_cv_func_sigsetjmp+set}" = set; then :
15476 $as_echo_n "(cached) " >&6
15477 else
15478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15479 /* end confdefs.h. */
15480 #include <setjmp.h>
15481
15482 int
15483 main ()
15484 {
15485 sigjmp_buf j;
15486 if (! sigsetjmp (j, 1))
15487 siglongjmp (j, 1);
15488 ;
15489 return 0;
15490 }
15491 _ACEOF
15492 if ac_fn_c_try_link "$LINENO"; then :
15493 emacs_cv_func_sigsetjmp=yes
15494 else
15495 emacs_cv_func_sigsetjmp=no
15496 fi
15497 rm -f core conftest.err conftest.$ac_objext \
15498 conftest$ac_exeext conftest.$ac_ext
15499 fi
15500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func_sigsetjmp" >&5
15501 $as_echo "$emacs_cv_func_sigsetjmp" >&6; }
15502 if test $emacs_cv_func_sigsetjmp = yes; then
15503
15504 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
15505
15506 fi
15507 fi
15508
15509 case $opsys in
15510 sol2* | unixware )
15511
15512 $as_echo "#define TIOCSIGSEND TIOCSIGNAL" >>confdefs.h
15513
15514 ;;
15515 esac
15516
15517
15518 case $opsys in
15519 hpux* | sol2* )
15520
15521 $as_echo "#define XOS_NEEDS_TIME_H 1" >>confdefs.h
15522
15523 ;;
15524 esac
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535 case $opsys in
15536 aix4-2)
15537 $as_echo "#define USG /**/" >>confdefs.h
15538
15539 $as_echo "#define USG5 /**/" >>confdefs.h
15540
15541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15542 /* end confdefs.h. */
15543
15544 #ifndef _AIX
15545 # error "_AIX not defined"
15546 #endif
15547
15548 int
15549 main ()
15550 {
15551
15552 ;
15553 return 0;
15554 }
15555 _ACEOF
15556 if ac_fn_c_try_cpp "$LINENO"; then :
15557
15558 else
15559
15560 $as_echo "#define _AIX /**/" >>confdefs.h
15561
15562 fi
15563 rm -f conftest.err conftest.$ac_ext
15564 ;;
15565
15566 cygwin)
15567
15568 $as_echo "#define CYGWIN 1" >>confdefs.h
15569
15570 ;;
15571
15572 darwin)
15573 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15574
15575 $as_echo "#define BSD_SYSTEM /**/" >>confdefs.h
15576
15577
15578 $as_echo "#define DARWIN_OS /**/" >>confdefs.h
15579
15580 ;;
15581
15582 freebsd)
15583 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15584
15585
15586 $as_echo "#define BSD_SYSTEM_AHB 1" >>confdefs.h
15587
15588 ;;
15589
15590 gnu | netbsd | openbsd )
15591 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15592
15593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15594 /* end confdefs.h. */
15595
15596 #ifndef BSD_SYSTEM
15597 # error "BSD_SYSTEM not defined"
15598 #endif
15599
15600 int
15601 main ()
15602 {
15603
15604 ;
15605 return 0;
15606 }
15607 _ACEOF
15608 if ac_fn_c_try_cpp "$LINENO"; then :
15609
15610 else
15611 $as_echo "#define BSD_SYSTEM 43" >>confdefs.h
15612
15613 fi
15614 rm -f conftest.err conftest.$ac_ext
15615 ;;
15616
15617 gnu-linux | gnu-kfreebsd )
15618 $as_echo "#define USG /**/" >>confdefs.h
15619
15620
15621 $as_echo "#define GNU_LINUX /**/" >>confdefs.h
15622
15623 ;;
15624
15625 hpux*)
15626 $as_echo "#define USG /**/" >>confdefs.h
15627
15628 $as_echo "#define USG5 /**/" >>confdefs.h
15629
15630
15631 $as_echo "#define HPUX /**/" >>confdefs.h
15632
15633 ;;
15634
15635 irix6-5)
15636 $as_echo "#define USG /**/" >>confdefs.h
15637
15638 $as_echo "#define USG5 /**/" >>confdefs.h
15639
15640 $as_echo "#define USG5_4 /**/" >>confdefs.h
15641
15642
15643 $as_echo "#define IRIX6_5 /**/" >>confdefs.h
15644
15645 ;;
15646
15647 sol2*)
15648 $as_echo "#define USG /**/" >>confdefs.h
15649
15650 $as_echo "#define USG5 /**/" >>confdefs.h
15651
15652 $as_echo "#define USG5_4 /**/" >>confdefs.h
15653
15654
15655 $as_echo "#define SOLARIS2 /**/" >>confdefs.h
15656
15657 ;;
15658
15659 unixware)
15660 $as_echo "#define USG /**/" >>confdefs.h
15661
15662 $as_echo "#define USG5 /**/" >>confdefs.h
15663
15664 $as_echo "#define USG5_4 /**/" >>confdefs.h
15665
15666 ;;
15667 esac
15668
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable FIONREAD" >&5
15670 $as_echo_n "checking for usable FIONREAD... " >&6; }
15671 if test "${emacs_cv_usable_FIONREAD+set}" = set; then :
15672 $as_echo_n "(cached) " >&6
15673 else
15674 case $opsys in
15675 aix4-2)
15676 emacs_cv_usable_FIONREAD=no
15677 ;;
15678
15679 *)
15680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15681 /* end confdefs.h. */
15682 #include <sys/types.h>
15683 #include <sys/ioctl.h>
15684 #ifdef USG5_4
15685 # include <sys/filio.h>
15686 #endif
15687
15688 int
15689 main ()
15690 {
15691 int foo = ioctl (0, FIONREAD, &foo);
15692 ;
15693 return 0;
15694 }
15695 _ACEOF
15696 if ac_fn_c_try_compile "$LINENO"; then :
15697 emacs_cv_usable_FIONREAD=yes
15698 else
15699 emacs_cv_usable_FIONREAD=no
15700 fi
15701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15702 ;;
15703 esac
15704 fi
15705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_FIONREAD" >&5
15706 $as_echo "$emacs_cv_usable_FIONREAD" >&6; }
15707 if test $emacs_cv_usable_FIONREAD = yes; then
15708
15709 $as_echo "#define USABLE_FIONREAD 1" >>confdefs.h
15710
15711
15712 if test $emacs_broken_SIGIO = no; then
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable SIGIO" >&5
15714 $as_echo_n "checking for usable SIGIO... " >&6; }
15715 if test "${emacs_cv_usable_SIGIO+set}" = set; then :
15716 $as_echo_n "(cached) " >&6
15717 else
15718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15719 /* end confdefs.h. */
15720 #include <fcntl.h>
15721 #include <signal.h>
15722
15723 int
15724 main ()
15725 {
15726 int foo = SIGIO | F_SETFL | FASYNC;
15727 ;
15728 return 0;
15729 }
15730 _ACEOF
15731 if ac_fn_c_try_compile "$LINENO"; then :
15732 emacs_cv_usable_SIGIO=yes
15733 else
15734 emacs_cv_usable_SIGIO=no
15735 fi
15736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15737 fi
15738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_SIGIO" >&5
15739 $as_echo "$emacs_cv_usable_SIGIO" >&6; }
15740 if test $emacs_cv_usable_SIGIO = yes; then
15741
15742 $as_echo "#define USABLE_SIGIO 1" >>confdefs.h
15743
15744 fi
15745 fi
15746 fi
15747
15748
15749 case $opsys in
15750 cygwin)
15751
15752 $as_echo "#define G_SLICE_ALWAYS_MALLOC 1" >>confdefs.h
15753
15754 ;;
15755
15756 hpux11)
15757
15758 $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h
15759
15760 ;;
15761
15762 irix6-5)
15763
15764 $as_echo "#define PREFER_VSUSP 1" >>confdefs.h
15765
15766
15767 $as_echo "#define SETPGRP_RELEASES_CTTY 1" >>confdefs.h
15768
15769 ;;
15770
15771 sol2-10)
15772
15773 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
15774
15775 ;;
15776 esac
15777
15778 # Set up the CFLAGS for real compilation, so we can substitute it.
15779 CFLAGS="$REAL_CFLAGS"
15780 CPPFLAGS="$REAL_CPPFLAGS"
15781
15782 ## Hack to detect a buggy GCC version.
15783 if test "x$GCC" = xyes \
15784 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
15785 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
15786 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
15787 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
15788 fi
15789
15790 version=$PACKAGE_VERSION
15791
15792 copyright="Copyright (C) 2012 Free Software Foundation, Inc."
15793
15794 cat >>confdefs.h <<_ACEOF
15795 #define COPYRIGHT "$copyright"
15796 _ACEOF
15797
15798
15799
15800 ### Specify what sort of things we'll be editing into Makefile and config.h.
15801 ### Use configuration here uncanonicalized to avoid exceeding size limits.
15802
15803
15804 ## Unused?
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
15828 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
15829 ## end of LIBX_BASE, but nothing ever set it.
15830
15831
15832
15833
15834 ## Used in lwlib/Makefile.in.
15835
15836
15837
15838
15839
15840
15841
15842
15843 if test -n "${term_header}"; then
15844
15845 cat >>confdefs.h <<_ACEOF
15846 #define TERM_HEADER "${term_header}"
15847 _ACEOF
15848
15849 fi
15850
15851
15852 cat >>confdefs.h <<_ACEOF
15853 #define EMACS_CONFIGURATION "${canonical}"
15854 _ACEOF
15855
15856
15857 cat >>confdefs.h <<_ACEOF
15858 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
15859 _ACEOF
15860
15861
15862
15863 XMENU_OBJ=
15864 XOBJ=
15865 FONT_OBJ=
15866 if test "${HAVE_X_WINDOWS}" = "yes" ; then
15867
15868 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
15869
15870 XMENU_OBJ=xmenu.o
15871 XOBJ="xterm.o xfns.o xselect.o xrdb.o xsmfns.o xsettings.o xgselect.o"
15872 FONT_OBJ=xfont.o
15873 if test "$HAVE_XFT" = "yes"; then
15874 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
15875 elif test "$HAVE_FREETYPE" = "yes"; then
15876 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
15877 fi
15878
15879 fi
15880
15881
15882
15883
15884 WIDGET_OBJ=
15885 MOTIF_LIBW=
15886 if test "${USE_X_TOOLKIT}" != "none" ; then
15887 WIDGET_OBJ=widget.o
15888
15889 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
15890
15891 if test "${USE_X_TOOLKIT}" = "LUCID"; then
15892
15893 $as_echo "#define USE_LUCID 1" >>confdefs.h
15894
15895 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
15896
15897 $as_echo "#define USE_MOTIF 1" >>confdefs.h
15898
15899 MOTIF_LIBW=-lXm
15900 case "$opsys" in
15901 gnu-linux)
15902 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
15903 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
15904 ;;
15905
15906 unixware)
15907 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
15908 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
15909 MOTIF_LIBW="MOTIF_LIBW -lXimp"
15910 ;;
15911
15912 aix4-2)
15913 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
15914 MOTIF_LIBW="$MOTIF_LIBW -li18n"
15915 ;;
15916 esac
15917 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
15918 fi
15919 fi
15920
15921
15922 TOOLKIT_LIBW=
15923 case "$USE_X_TOOLKIT" in
15924 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
15925 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
15926 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
15927 esac
15928
15929
15930 if test "$USE_X_TOOLKIT" = "none"; then
15931 LIBXT_OTHER="\$(LIBXSM)"
15932 OLDXMENU_TARGET="really-oldXMenu"
15933 else
15934 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
15935 OLDXMENU_TARGET="really-lwlib"
15936 fi
15937
15938
15939 ## The X Menu stuff is present in the X10 distribution, but missing
15940 ## from X11. If we have X10, just use the installed library;
15941 ## otherwise, use our own copy.
15942 if test "${HAVE_X11}" = "yes" ; then
15943
15944 $as_echo "#define HAVE_X11 1" >>confdefs.h
15945
15946
15947 if test "$USE_X_TOOLKIT" = "none"; then
15948 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
15949 else
15950 OLDXMENU="\${lwlibdir}/liblw.a"
15951 fi
15952 LIBXMENU="\$(OLDXMENU)"
15953 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
15954 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
15955 else
15956 ## For a syntactically valid Makefile; not actually used for anything.
15957 ## See comments in src/Makefile.in.
15958 OLDXMENU=nothing
15959 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
15960 if test "${HAVE_X_WINDOWS}" = "yes"; then
15961 LIBXMENU="-lXMenu"
15962 else
15963 LIBXMENU=
15964 fi
15965 LIBX_OTHER=
15966 OLDXMENU_DEPS=
15967 fi
15968
15969 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
15970 OLDXMENU_TARGET=
15971 OLDXMENU=nothing
15972 LIBXMENU=
15973 OLDXMENU_DEPS=
15974 fi
15975
15976
15977
15978
15979
15980
15981
15982 if test "${HAVE_MENUS}" = "yes" ; then
15983
15984 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
15985
15986 fi
15987
15988 if test "${GNU_MALLOC}" = "yes" ; then
15989
15990 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
15991
15992 fi
15993
15994 RALLOC_OBJ=
15995 if test "${REL_ALLOC}" = "yes" ; then
15996
15997 $as_echo "#define REL_ALLOC 1" >>confdefs.h
15998
15999
16000 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
16001 fi
16002
16003
16004 if test "$opsys" = "cygwin"; then
16005 CYGWIN_OBJ="sheap.o"
16006 ## Cygwin differs because of its unexec().
16007 PRE_ALLOC_OBJ=
16008 POST_ALLOC_OBJ=lastfile.o
16009 else
16010 CYGWIN_OBJ=
16011 PRE_ALLOC_OBJ=lastfile.o
16012 POST_ALLOC_OBJ=
16013 fi
16014
16015
16016
16017
16018 # Configure gnulib. Although this does not affect CFLAGS or LIBS permanently.
16019 # it temporarily reverts them to their pre-pkg-config values,
16020 # because gnulib needs to work with both src (which uses the
16021 # pkg-config stuff) and lib-src (which does not). For example, gnulib
16022 # may need to determine whether LIB_CLOCK_GETTIME should contain -lrt,
16023 # and it therefore needs to run in an environment where LIBS does not
16024 # already contain -lrt merely because 'pkg-config --libs' printed '-lrt'
16025 # for some package unrelated to lib-src.
16026 SAVE_CFLAGS=$CFLAGS
16027 SAVE_LIBS=$LIBS
16028 CFLAGS=$pre_PKG_CONFIG_CFLAGS
16029 LIBS="$LIB_PTHREAD $pre_PKG_CONFIG_LIBS"
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041 LIBC_FATAL_STDERR_=1
16042 export LIBC_FATAL_STDERR_
16043
16044 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16045 # for constant arguments. Useless!
16046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16047 $as_echo_n "checking for working alloca.h... " >&6; }
16048 if test "${ac_cv_working_alloca_h+set}" = set; then :
16049 $as_echo_n "(cached) " >&6
16050 else
16051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16052 /* end confdefs.h. */
16053 #include <alloca.h>
16054 int
16055 main ()
16056 {
16057 char *p = (char *) alloca (2 * sizeof (int));
16058 if (p) return 0;
16059 ;
16060 return 0;
16061 }
16062 _ACEOF
16063 if ac_fn_c_try_link "$LINENO"; then :
16064 ac_cv_working_alloca_h=yes
16065 else
16066 ac_cv_working_alloca_h=no
16067 fi
16068 rm -f core conftest.err conftest.$ac_objext \
16069 conftest$ac_exeext conftest.$ac_ext
16070 fi
16071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16072 $as_echo "$ac_cv_working_alloca_h" >&6; }
16073 if test $ac_cv_working_alloca_h = yes; then
16074
16075 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16076
16077 fi
16078
16079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16080 $as_echo_n "checking for alloca... " >&6; }
16081 if test "${ac_cv_func_alloca_works+set}" = set; then :
16082 $as_echo_n "(cached) " >&6
16083 else
16084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16085 /* end confdefs.h. */
16086 #ifdef __GNUC__
16087 # define alloca __builtin_alloca
16088 #else
16089 # ifdef _MSC_VER
16090 # include <malloc.h>
16091 # define alloca _alloca
16092 # else
16093 # ifdef HAVE_ALLOCA_H
16094 # include <alloca.h>
16095 # else
16096 # ifdef _AIX
16097 #pragma alloca
16098 # else
16099 # ifndef alloca /* predefined by HP cc +Olibcalls */
16100 char *alloca ();
16101 # endif
16102 # endif
16103 # endif
16104 # endif
16105 #endif
16106
16107 int
16108 main ()
16109 {
16110 char *p = (char *) alloca (1);
16111 if (p) return 0;
16112 ;
16113 return 0;
16114 }
16115 _ACEOF
16116 if ac_fn_c_try_link "$LINENO"; then :
16117 ac_cv_func_alloca_works=yes
16118 else
16119 ac_cv_func_alloca_works=no
16120 fi
16121 rm -f core conftest.err conftest.$ac_objext \
16122 conftest$ac_exeext conftest.$ac_ext
16123 fi
16124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16125 $as_echo "$ac_cv_func_alloca_works" >&6; }
16126
16127 if test $ac_cv_func_alloca_works = yes; then
16128
16129 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16130
16131 else
16132 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16133 # that cause trouble. Some versions do not even contain alloca or
16134 # contain a buggy version. If you still want to use their alloca,
16135 # use ar to extract alloca.o from them instead of compiling alloca.c.
16136
16137
16138
16139
16140
16141 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16142
16143 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16144
16145
16146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
16147 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
16148 if test "${ac_cv_os_cray+set}" = set; then :
16149 $as_echo_n "(cached) " >&6
16150 else
16151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16152 /* end confdefs.h. */
16153 #if defined CRAY && ! defined CRAY2
16154 webecray
16155 #else
16156 wenotbecray
16157 #endif
16158
16159 _ACEOF
16160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16161 $EGREP "webecray" >/dev/null 2>&1; then :
16162 ac_cv_os_cray=yes
16163 else
16164 ac_cv_os_cray=no
16165 fi
16166 rm -f conftest*
16167
16168 fi
16169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16170 $as_echo "$ac_cv_os_cray" >&6; }
16171 if test $ac_cv_os_cray = yes; then
16172 for ac_func in _getb67 GETB67 getb67; do
16173 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16174 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16175 eval as_val=\$$as_ac_var
16176 if test "x$as_val" = x""yes; then :
16177
16178 cat >>confdefs.h <<_ACEOF
16179 #define CRAY_STACKSEG_END $ac_func
16180 _ACEOF
16181
16182 break
16183 fi
16184
16185 done
16186 fi
16187
16188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16189 $as_echo_n "checking stack direction for C alloca... " >&6; }
16190 if test "${ac_cv_c_stack_direction+set}" = set; then :
16191 $as_echo_n "(cached) " >&6
16192 else
16193 if test "$cross_compiling" = yes; then :
16194 ac_cv_c_stack_direction=0
16195 else
16196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16197 /* end confdefs.h. */
16198 $ac_includes_default
16199 int
16200 find_stack_direction (int *addr, int depth)
16201 {
16202 int dir, dummy = 0;
16203 if (! addr)
16204 addr = &dummy;
16205 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16206 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16207 return dir + dummy;
16208 }
16209
16210 int
16211 main (int argc, char **argv)
16212 {
16213 return find_stack_direction (0, argc + !argv + 20) < 0;
16214 }
16215 _ACEOF
16216 if ac_fn_c_try_run "$LINENO"; then :
16217 ac_cv_c_stack_direction=1
16218 else
16219 ac_cv_c_stack_direction=-1
16220 fi
16221 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16222 conftest.$ac_objext conftest.beam conftest.$ac_ext
16223 fi
16224
16225 fi
16226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16227 $as_echo "$ac_cv_c_stack_direction" >&6; }
16228 cat >>confdefs.h <<_ACEOF
16229 #define STACK_DIRECTION $ac_cv_c_stack_direction
16230 _ACEOF
16231
16232
16233 fi
16234
16235
16236
16237
16238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16239 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16240 if test "${ac_cv_c_bigendian+set}" = set; then :
16241 $as_echo_n "(cached) " >&6
16242 else
16243 ac_cv_c_bigendian=unknown
16244 # See if we're dealing with a universal compiler.
16245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16246 /* end confdefs.h. */
16247 #ifndef __APPLE_CC__
16248 not a universal capable compiler
16249 #endif
16250 typedef int dummy;
16251
16252 _ACEOF
16253 if ac_fn_c_try_compile "$LINENO"; then :
16254
16255 # Check for potential -arch flags. It is not universal unless
16256 # there are at least two -arch flags with different values.
16257 ac_arch=
16258 ac_prev=
16259 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16260 if test -n "$ac_prev"; then
16261 case $ac_word in
16262 i?86 | x86_64 | ppc | ppc64)
16263 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16264 ac_arch=$ac_word
16265 else
16266 ac_cv_c_bigendian=universal
16267 break
16268 fi
16269 ;;
16270 esac
16271 ac_prev=
16272 elif test "x$ac_word" = "x-arch"; then
16273 ac_prev=arch
16274 fi
16275 done
16276 fi
16277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16278 if test $ac_cv_c_bigendian = unknown; then
16279 # See if sys/param.h defines the BYTE_ORDER macro.
16280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16281 /* end confdefs.h. */
16282 #include <sys/types.h>
16283 #include <sys/param.h>
16284
16285 int
16286 main ()
16287 {
16288 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16289 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16290 && LITTLE_ENDIAN)
16291 bogus endian macros
16292 #endif
16293
16294 ;
16295 return 0;
16296 }
16297 _ACEOF
16298 if ac_fn_c_try_compile "$LINENO"; then :
16299 # It does; now see whether it defined to BIG_ENDIAN or not.
16300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16301 /* end confdefs.h. */
16302 #include <sys/types.h>
16303 #include <sys/param.h>
16304
16305 int
16306 main ()
16307 {
16308 #if BYTE_ORDER != BIG_ENDIAN
16309 not big endian
16310 #endif
16311
16312 ;
16313 return 0;
16314 }
16315 _ACEOF
16316 if ac_fn_c_try_compile "$LINENO"; then :
16317 ac_cv_c_bigendian=yes
16318 else
16319 ac_cv_c_bigendian=no
16320 fi
16321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16322 fi
16323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16324 fi
16325 if test $ac_cv_c_bigendian = unknown; then
16326 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16328 /* end confdefs.h. */
16329 #include <limits.h>
16330
16331 int
16332 main ()
16333 {
16334 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16335 bogus endian macros
16336 #endif
16337
16338 ;
16339 return 0;
16340 }
16341 _ACEOF
16342 if ac_fn_c_try_compile "$LINENO"; then :
16343 # It does; now see whether it defined to _BIG_ENDIAN or not.
16344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16345 /* end confdefs.h. */
16346 #include <limits.h>
16347
16348 int
16349 main ()
16350 {
16351 #ifndef _BIG_ENDIAN
16352 not big endian
16353 #endif
16354
16355 ;
16356 return 0;
16357 }
16358 _ACEOF
16359 if ac_fn_c_try_compile "$LINENO"; then :
16360 ac_cv_c_bigendian=yes
16361 else
16362 ac_cv_c_bigendian=no
16363 fi
16364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16365 fi
16366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16367 fi
16368 if test $ac_cv_c_bigendian = unknown; then
16369 # Compile a test program.
16370 if test "$cross_compiling" = yes; then :
16371 # Try to guess by grepping values from an object file.
16372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16373 /* end confdefs.h. */
16374 short int ascii_mm[] =
16375 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16376 short int ascii_ii[] =
16377 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16378 int use_ascii (int i) {
16379 return ascii_mm[i] + ascii_ii[i];
16380 }
16381 short int ebcdic_ii[] =
16382 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16383 short int ebcdic_mm[] =
16384 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16385 int use_ebcdic (int i) {
16386 return ebcdic_mm[i] + ebcdic_ii[i];
16387 }
16388 extern int foo;
16389
16390 int
16391 main ()
16392 {
16393 return use_ascii (foo) == use_ebcdic (foo);
16394 ;
16395 return 0;
16396 }
16397 _ACEOF
16398 if ac_fn_c_try_compile "$LINENO"; then :
16399 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16400 ac_cv_c_bigendian=yes
16401 fi
16402 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16403 if test "$ac_cv_c_bigendian" = unknown; then
16404 ac_cv_c_bigendian=no
16405 else
16406 # finding both strings is unlikely to happen, but who knows?
16407 ac_cv_c_bigendian=unknown
16408 fi
16409 fi
16410 fi
16411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16412 else
16413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16414 /* end confdefs.h. */
16415 $ac_includes_default
16416 int
16417 main ()
16418 {
16419
16420 /* Are we little or big endian? From Harbison&Steele. */
16421 union
16422 {
16423 long int l;
16424 char c[sizeof (long int)];
16425 } u;
16426 u.l = 1;
16427 return u.c[sizeof (long int) - 1] == 1;
16428
16429 ;
16430 return 0;
16431 }
16432 _ACEOF
16433 if ac_fn_c_try_run "$LINENO"; then :
16434 ac_cv_c_bigendian=no
16435 else
16436 ac_cv_c_bigendian=yes
16437 fi
16438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16439 conftest.$ac_objext conftest.beam conftest.$ac_ext
16440 fi
16441
16442 fi
16443 fi
16444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16445 $as_echo "$ac_cv_c_bigendian" >&6; }
16446 case $ac_cv_c_bigendian in #(
16447 yes)
16448 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16449 ;; #(
16450 no)
16451 ;; #(
16452 universal)
16453
16454 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16455
16456 ;; #(
16457 *)
16458 as_fn_error "unknown endianness
16459 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16460 esac
16461
16462
16463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16464 $as_echo_n "checking for inline... " >&6; }
16465 if test "${ac_cv_c_inline+set}" = set; then :
16466 $as_echo_n "(cached) " >&6
16467 else
16468 ac_cv_c_inline=no
16469 for ac_kw in inline __inline__ __inline; do
16470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16471 /* end confdefs.h. */
16472 #ifndef __cplusplus
16473 typedef int foo_t;
16474 static $ac_kw foo_t static_foo () {return 0; }
16475 $ac_kw foo_t foo () {return 0; }
16476 #endif
16477
16478 _ACEOF
16479 if ac_fn_c_try_compile "$LINENO"; then :
16480 ac_cv_c_inline=$ac_kw
16481 fi
16482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16483 test "$ac_cv_c_inline" != no && break
16484 done
16485
16486 fi
16487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16488 $as_echo "$ac_cv_c_inline" >&6; }
16489
16490 case $ac_cv_c_inline in
16491 inline | yes) ;;
16492 *)
16493 case $ac_cv_c_inline in
16494 no) ac_val=;;
16495 *) ac_val=$ac_cv_c_inline;;
16496 esac
16497 cat >>confdefs.h <<_ACEOF
16498 #ifndef __cplusplus
16499 #define inline $ac_val
16500 #endif
16501 _ACEOF
16502 ;;
16503 esac
16504
16505
16506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
16507 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
16508 if test "${gl_cv_func_c99_strtold+set}" = set; then :
16509 $as_echo_n "(cached) " >&6
16510 else
16511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16512 /* end confdefs.h. */
16513 /* On HP-UX before 11.23, strtold returns a struct instead of
16514 long double. Reject implementations like that, by requiring
16515 compatibility with the C99 prototype. */
16516 #include <stdlib.h>
16517 static long double (*p) (char const *, char **) = strtold;
16518 static long double
16519 test (char const *nptr, char **endptr)
16520 {
16521 long double r;
16522 r = strtold (nptr, endptr);
16523 return r;
16524 }
16525 int
16526 main ()
16527 {
16528 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
16529 ;
16530 return 0;
16531 }
16532 _ACEOF
16533 if ac_fn_c_try_link "$LINENO"; then :
16534 gl_cv_func_c99_strtold=yes
16535 else
16536 gl_cv_func_c99_strtold=no
16537 fi
16538 rm -f core conftest.err conftest.$ac_objext \
16539 conftest$ac_exeext conftest.$ac_ext
16540 fi
16541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
16542 $as_echo "$gl_cv_func_c99_strtold" >&6; }
16543 if test $gl_cv_func_c99_strtold = yes; then
16544
16545 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
16546
16547 fi
16548
16549
16550 GNULIB_CHDIR=0;
16551 GNULIB_CHOWN=0;
16552 GNULIB_CLOSE=0;
16553 GNULIB_DUP=0;
16554 GNULIB_DUP2=0;
16555 GNULIB_DUP3=0;
16556 GNULIB_ENVIRON=0;
16557 GNULIB_EUIDACCESS=0;
16558 GNULIB_FACCESSAT=0;
16559 GNULIB_FCHDIR=0;
16560 GNULIB_FCHOWNAT=0;
16561 GNULIB_FDATASYNC=0;
16562 GNULIB_FSYNC=0;
16563 GNULIB_FTRUNCATE=0;
16564 GNULIB_GETCWD=0;
16565 GNULIB_GETDOMAINNAME=0;
16566 GNULIB_GETDTABLESIZE=0;
16567 GNULIB_GETGROUPS=0;
16568 GNULIB_GETHOSTNAME=0;
16569 GNULIB_GETLOGIN=0;
16570 GNULIB_GETLOGIN_R=0;
16571 GNULIB_GETPAGESIZE=0;
16572 GNULIB_GETUSERSHELL=0;
16573 GNULIB_GROUP_MEMBER=0;
16574 GNULIB_ISATTY=0;
16575 GNULIB_LCHOWN=0;
16576 GNULIB_LINK=0;
16577 GNULIB_LINKAT=0;
16578 GNULIB_LSEEK=0;
16579 GNULIB_PIPE=0;
16580 GNULIB_PIPE2=0;
16581 GNULIB_PREAD=0;
16582 GNULIB_PWRITE=0;
16583 GNULIB_READ=0;
16584 GNULIB_READLINK=0;
16585 GNULIB_READLINKAT=0;
16586 GNULIB_RMDIR=0;
16587 GNULIB_SETHOSTNAME=0;
16588 GNULIB_SLEEP=0;
16589 GNULIB_SYMLINK=0;
16590 GNULIB_SYMLINKAT=0;
16591 GNULIB_TTYNAME_R=0;
16592 GNULIB_UNISTD_H_NONBLOCKING=0;
16593 GNULIB_UNISTD_H_SIGPIPE=0;
16594 GNULIB_UNLINK=0;
16595 GNULIB_UNLINKAT=0;
16596 GNULIB_USLEEP=0;
16597 GNULIB_WRITE=0;
16598 HAVE_CHOWN=1;
16599 HAVE_DUP2=1;
16600 HAVE_DUP3=1;
16601 HAVE_EUIDACCESS=1;
16602 HAVE_FACCESSAT=1;
16603 HAVE_FCHDIR=1;
16604 HAVE_FCHOWNAT=1;
16605 HAVE_FDATASYNC=1;
16606 HAVE_FSYNC=1;
16607 HAVE_FTRUNCATE=1;
16608 HAVE_GETDTABLESIZE=1;
16609 HAVE_GETGROUPS=1;
16610 HAVE_GETHOSTNAME=1;
16611 HAVE_GETLOGIN=1;
16612 HAVE_GETPAGESIZE=1;
16613 HAVE_GROUP_MEMBER=1;
16614 HAVE_LCHOWN=1;
16615 HAVE_LINK=1;
16616 HAVE_LINKAT=1;
16617 HAVE_PIPE=1;
16618 HAVE_PIPE2=1;
16619 HAVE_PREAD=1;
16620 HAVE_PWRITE=1;
16621 HAVE_READLINK=1;
16622 HAVE_READLINKAT=1;
16623 HAVE_SETHOSTNAME=1;
16624 HAVE_SLEEP=1;
16625 HAVE_SYMLINK=1;
16626 HAVE_SYMLINKAT=1;
16627 HAVE_UNLINKAT=1;
16628 HAVE_USLEEP=1;
16629 HAVE_DECL_ENVIRON=1;
16630 HAVE_DECL_FCHDIR=1;
16631 HAVE_DECL_FDATASYNC=1;
16632 HAVE_DECL_GETDOMAINNAME=1;
16633 HAVE_DECL_GETLOGIN_R=1;
16634 HAVE_DECL_GETPAGESIZE=1;
16635 HAVE_DECL_GETUSERSHELL=1;
16636 HAVE_DECL_SETHOSTNAME=1;
16637 HAVE_DECL_TTYNAME_R=1;
16638 HAVE_OS_H=0;
16639 HAVE_SYS_PARAM_H=0;
16640 REPLACE_CHOWN=0;
16641 REPLACE_CLOSE=0;
16642 REPLACE_DUP=0;
16643 REPLACE_DUP2=0;
16644 REPLACE_FCHOWNAT=0;
16645 REPLACE_FTRUNCATE=0;
16646 REPLACE_GETCWD=0;
16647 REPLACE_GETDOMAINNAME=0;
16648 REPLACE_GETLOGIN_R=0;
16649 REPLACE_GETGROUPS=0;
16650 REPLACE_GETPAGESIZE=0;
16651 REPLACE_ISATTY=0;
16652 REPLACE_LCHOWN=0;
16653 REPLACE_LINK=0;
16654 REPLACE_LINKAT=0;
16655 REPLACE_LSEEK=0;
16656 REPLACE_PREAD=0;
16657 REPLACE_PWRITE=0;
16658 REPLACE_READ=0;
16659 REPLACE_READLINK=0;
16660 REPLACE_RMDIR=0;
16661 REPLACE_SLEEP=0;
16662 REPLACE_SYMLINK=0;
16663 REPLACE_TTYNAME_R=0;
16664 REPLACE_UNLINK=0;
16665 REPLACE_UNLINKAT=0;
16666 REPLACE_USLEEP=0;
16667 REPLACE_WRITE=0;
16668 UNISTD_H_HAVE_WINSOCK2_H=0;
16669 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
16680 $as_echo_n "checking if environ is properly declared... " >&6; }
16681 if test "${gt_cv_var_environ_declaration+set}" = set; then :
16682 $as_echo_n "(cached) " >&6
16683 else
16684
16685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16686 /* end confdefs.h. */
16687 #if HAVE_UNISTD_H
16688 #include <unistd.h>
16689 #endif
16690 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
16691 #include <stdlib.h>
16692
16693 extern struct { int foo; } environ;
16694 int
16695 main ()
16696 {
16697 environ.foo = 1;
16698 ;
16699 return 0;
16700 }
16701 _ACEOF
16702 if ac_fn_c_try_compile "$LINENO"; then :
16703 gt_cv_var_environ_declaration=no
16704 else
16705 gt_cv_var_environ_declaration=yes
16706 fi
16707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16708 fi
16709
16710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
16711 $as_echo "$gt_cv_var_environ_declaration" >&6; }
16712 if test $gt_cv_var_environ_declaration = yes; then
16713
16714 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
16715
16716 fi
16717
16718
16719 if test $gt_cv_var_environ_declaration != yes; then
16720 HAVE_DECL_ENVIRON=0
16721 fi
16722
16723
16724
16725
16726
16727
16728
16729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
16730 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
16731 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
16732 $as_echo_n "(cached) " >&6
16733 else
16734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16735 /* end confdefs.h. */
16736
16737 #include <sys/types.h>
16738 #include <sys/stat.h>
16739 int
16740 main ()
16741 {
16742 struct stat s; s.st_dm_mode;
16743 ;
16744 return 0;
16745 }
16746 _ACEOF
16747 if ac_fn_c_try_compile "$LINENO"; then :
16748 ac_cv_struct_st_dm_mode=yes
16749 else
16750 ac_cv_struct_st_dm_mode=no
16751 fi
16752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16753 fi
16754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
16755 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
16756
16757 if test $ac_cv_struct_st_dm_mode = yes; then
16758
16759 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
16760
16761 fi
16762
16763
16764 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
16765 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
16766 ac_have_decl=1
16767 else
16768 ac_have_decl=0
16769 fi
16770
16771 cat >>confdefs.h <<_ACEOF
16772 #define HAVE_DECL_STRMODE $ac_have_decl
16773 _ACEOF
16774
16775
16776 GNULIB__EXIT=0;
16777 GNULIB_ATOLL=0;
16778 GNULIB_CALLOC_POSIX=0;
16779 GNULIB_CANONICALIZE_FILE_NAME=0;
16780 GNULIB_GETLOADAVG=0;
16781 GNULIB_GETSUBOPT=0;
16782 GNULIB_GRANTPT=0;
16783 GNULIB_MALLOC_POSIX=0;
16784 GNULIB_MBTOWC=0;
16785 GNULIB_MKDTEMP=0;
16786 GNULIB_MKOSTEMP=0;
16787 GNULIB_MKOSTEMPS=0;
16788 GNULIB_MKSTEMP=0;
16789 GNULIB_MKSTEMPS=0;
16790 GNULIB_POSIX_OPENPT=0;
16791 GNULIB_PTSNAME=0;
16792 GNULIB_PTSNAME_R=0;
16793 GNULIB_PUTENV=0;
16794 GNULIB_RANDOM=0;
16795 GNULIB_RANDOM_R=0;
16796 GNULIB_REALLOC_POSIX=0;
16797 GNULIB_REALPATH=0;
16798 GNULIB_RPMATCH=0;
16799 GNULIB_SETENV=0;
16800 GNULIB_STRTOD=0;
16801 GNULIB_STRTOLL=0;
16802 GNULIB_STRTOULL=0;
16803 GNULIB_SYSTEM_POSIX=0;
16804 GNULIB_UNLOCKPT=0;
16805 GNULIB_UNSETENV=0;
16806 GNULIB_WCTOMB=0;
16807 HAVE__EXIT=1;
16808 HAVE_ATOLL=1;
16809 HAVE_CANONICALIZE_FILE_NAME=1;
16810 HAVE_DECL_GETLOADAVG=1;
16811 HAVE_GETSUBOPT=1;
16812 HAVE_GRANTPT=1;
16813 HAVE_MKDTEMP=1;
16814 HAVE_MKOSTEMP=1;
16815 HAVE_MKOSTEMPS=1;
16816 HAVE_MKSTEMP=1;
16817 HAVE_MKSTEMPS=1;
16818 HAVE_POSIX_OPENPT=1;
16819 HAVE_PTSNAME=1;
16820 HAVE_PTSNAME_R=1;
16821 HAVE_RANDOM=1;
16822 HAVE_RANDOM_H=1;
16823 HAVE_RANDOM_R=1;
16824 HAVE_REALPATH=1;
16825 HAVE_RPMATCH=1;
16826 HAVE_SETENV=1;
16827 HAVE_DECL_SETENV=1;
16828 HAVE_STRTOD=1;
16829 HAVE_STRTOLL=1;
16830 HAVE_STRTOULL=1;
16831 HAVE_STRUCT_RANDOM_DATA=1;
16832 HAVE_SYS_LOADAVG_H=0;
16833 HAVE_UNLOCKPT=1;
16834 HAVE_DECL_UNSETENV=1;
16835 REPLACE_CALLOC=0;
16836 REPLACE_CANONICALIZE_FILE_NAME=0;
16837 REPLACE_MALLOC=0;
16838 REPLACE_MBTOWC=0;
16839 REPLACE_MKSTEMP=0;
16840 REPLACE_PTSNAME_R=0;
16841 REPLACE_PUTENV=0;
16842 REPLACE_RANDOM_R=0;
16843 REPLACE_REALLOC=0;
16844 REPLACE_REALPATH=0;
16845 REPLACE_SETENV=0;
16846 REPLACE_STRTOD=0;
16847 REPLACE_UNSETENV=0;
16848 REPLACE_WCTOMB=0;
16849
16850
16851
16852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
16853 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
16854 if test "${gl_cv_have_include_next+set}" = set; then :
16855 $as_echo_n "(cached) " >&6
16856 else
16857 rm -rf conftestd1a conftestd1b conftestd2
16858 mkdir conftestd1a conftestd1b conftestd2
16859 cat <<EOF > conftestd1a/conftest.h
16860 #define DEFINED_IN_CONFTESTD1
16861 #include_next <conftest.h>
16862 #ifdef DEFINED_IN_CONFTESTD2
16863 int foo;
16864 #else
16865 #error "include_next doesn't work"
16866 #endif
16867 EOF
16868 cat <<EOF > conftestd1b/conftest.h
16869 #define DEFINED_IN_CONFTESTD1
16870 #include <stdio.h>
16871 #include_next <conftest.h>
16872 #ifdef DEFINED_IN_CONFTESTD2
16873 int foo;
16874 #else
16875 #error "include_next doesn't work"
16876 #endif
16877 EOF
16878 cat <<EOF > conftestd2/conftest.h
16879 #ifndef DEFINED_IN_CONFTESTD1
16880 #error "include_next test doesn't work"
16881 #endif
16882 #define DEFINED_IN_CONFTESTD2
16883 EOF
16884 gl_save_CPPFLAGS="$CPPFLAGS"
16885 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
16886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16887 /* end confdefs.h. */
16888 #include <conftest.h>
16889 _ACEOF
16890 if ac_fn_c_try_compile "$LINENO"; then :
16891 gl_cv_have_include_next=yes
16892 else
16893 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
16894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16895 /* end confdefs.h. */
16896 #include <conftest.h>
16897 _ACEOF
16898 if ac_fn_c_try_compile "$LINENO"; then :
16899 gl_cv_have_include_next=buggy
16900 else
16901 gl_cv_have_include_next=no
16902 fi
16903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16904
16905 fi
16906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16907 CPPFLAGS="$gl_save_CPPFLAGS"
16908 rm -rf conftestd1a conftestd1b conftestd2
16909
16910 fi
16911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
16912 $as_echo "$gl_cv_have_include_next" >&6; }
16913 PRAGMA_SYSTEM_HEADER=
16914 if test $gl_cv_have_include_next = yes; then
16915 INCLUDE_NEXT=include_next
16916 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16917 if test -n "$GCC"; then
16918 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
16919 fi
16920 else
16921 if test $gl_cv_have_include_next = buggy; then
16922 INCLUDE_NEXT=include
16923 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16924 else
16925 INCLUDE_NEXT=include
16926 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
16927 fi
16928 fi
16929
16930
16931
16932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
16933 $as_echo_n "checking whether system header files limit the line length... " >&6; }
16934 if test "${gl_cv_pragma_columns+set}" = set; then :
16935 $as_echo_n "(cached) " >&6
16936 else
16937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16938 /* end confdefs.h. */
16939
16940 #ifdef __TANDEM
16941 choke me
16942 #endif
16943
16944 _ACEOF
16945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16946 $EGREP "choke me" >/dev/null 2>&1; then :
16947 gl_cv_pragma_columns=yes
16948 else
16949 gl_cv_pragma_columns=no
16950 fi
16951 rm -f conftest*
16952
16953
16954 fi
16955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
16956 $as_echo "$gl_cv_pragma_columns" >&6; }
16957 if test $gl_cv_pragma_columns = yes; then
16958 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
16959 else
16960 PRAGMA_COLUMNS=
16961 fi
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979 if test $gl_cv_have_include_next = yes; then
16980 gl_cv_next_getopt_h='<'getopt.h'>'
16981 else
16982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
16983 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
16984 if test "${gl_cv_next_getopt_h+set}" = set; then :
16985 $as_echo_n "(cached) " >&6
16986 else
16987
16988 if test $ac_cv_header_getopt_h = yes; then
16989
16990
16991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16992 /* end confdefs.h. */
16993 #include <getopt.h>
16994
16995 _ACEOF
16996 case "$host_os" in
16997 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16998 *) gl_absname_cpp="$ac_cpp" ;;
16999 esac
17000
17001 case "$host_os" in
17002 mingw*)
17003 gl_dirsep_regex='[/\\]'
17004 ;;
17005 *)
17006 gl_dirsep_regex='\/'
17007 ;;
17008 esac
17009 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17010
17011 gl_header_literal_regex=`echo 'getopt.h' \
17012 | sed -e "$gl_make_literal_regex_sed"`
17013 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17014 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17015 s|^/[^/]|//&|
17016 p
17017 q
17018 }'
17019 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17020 sed -n "$gl_absolute_header_sed"`'"'
17021 else
17022 gl_cv_next_getopt_h='<'getopt.h'>'
17023 fi
17024
17025
17026 fi
17027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
17028 $as_echo "$gl_cv_next_getopt_h" >&6; }
17029 fi
17030 NEXT_GETOPT_H=$gl_cv_next_getopt_h
17031
17032 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17033 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17034 gl_next_as_first_directive='<'getopt.h'>'
17035 else
17036 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17037 gl_next_as_first_directive=$gl_cv_next_getopt_h
17038 fi
17039 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
17040
17041
17042
17043
17044 if test $ac_cv_header_getopt_h = yes; then
17045 HAVE_GETOPT_H=1
17046 else
17047 HAVE_GETOPT_H=0
17048 fi
17049
17050
17051 gl_replace_getopt=
17052
17053 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17054 for ac_header in getopt.h
17055 do :
17056 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
17057 if test "x$ac_cv_header_getopt_h" = x""yes; then :
17058 cat >>confdefs.h <<_ACEOF
17059 #define HAVE_GETOPT_H 1
17060 _ACEOF
17061
17062 else
17063 gl_replace_getopt=yes
17064 fi
17065
17066 done
17067
17068 fi
17069
17070 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17071 for ac_func in getopt_long_only
17072 do :
17073 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
17074 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
17075 cat >>confdefs.h <<_ACEOF
17076 #define HAVE_GETOPT_LONG_ONLY 1
17077 _ACEOF
17078
17079 else
17080 gl_replace_getopt=yes
17081 fi
17082 done
17083
17084 fi
17085
17086 if test -z "$gl_replace_getopt"; then
17087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
17088 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
17089 if test "${gl_cv_func_getopt_posix+set}" = set; then :
17090 $as_echo_n "(cached) " >&6
17091 else
17092
17093 if test $cross_compiling = no; then
17094 if test "$cross_compiling" = yes; then :
17095 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17096 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17097 as_fn_error "cannot run test program while cross compiling
17098 See \`config.log' for more details." "$LINENO" 5; }
17099 else
17100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17101 /* end confdefs.h. */
17102
17103 #include <unistd.h>
17104 #include <stdlib.h>
17105 #include <string.h>
17106
17107 int
17108 main ()
17109 {
17110 static char program[] = "program";
17111 static char a[] = "-a";
17112 static char foo[] = "foo";
17113 static char bar[] = "bar";
17114 char *argv[] = { program, a, foo, bar, NULL };
17115 int c;
17116
17117 c = getopt (4, argv, "ab");
17118 if (!(c == 'a'))
17119 return 1;
17120 c = getopt (4, argv, "ab");
17121 if (!(c == -1))
17122 return 2;
17123 if (!(optind == 2))
17124 return 3;
17125 return 0;
17126 }
17127
17128 _ACEOF
17129 if ac_fn_c_try_run "$LINENO"; then :
17130 gl_cv_func_getopt_posix=maybe
17131 else
17132 gl_cv_func_getopt_posix=no
17133 fi
17134 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17135 conftest.$ac_objext conftest.beam conftest.$ac_ext
17136 fi
17137
17138 if test $gl_cv_func_getopt_posix = maybe; then
17139 if test "$cross_compiling" = yes; then :
17140 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17142 as_fn_error "cannot run test program while cross compiling
17143 See \`config.log' for more details." "$LINENO" 5; }
17144 else
17145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17146 /* end confdefs.h. */
17147
17148 #include <unistd.h>
17149 #include <stdlib.h>
17150 #include <string.h>
17151
17152 int
17153 main ()
17154 {
17155 static char program[] = "program";
17156 static char donald[] = "donald";
17157 static char p[] = "-p";
17158 static char billy[] = "billy";
17159 static char duck[] = "duck";
17160 static char a[] = "-a";
17161 static char bar[] = "bar";
17162 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
17163 int c;
17164
17165 c = getopt (7, argv, "+abp:q:");
17166 if (!(c == -1))
17167 return 4;
17168 if (!(strcmp (argv[0], "program") == 0))
17169 return 5;
17170 if (!(strcmp (argv[1], "donald") == 0))
17171 return 6;
17172 if (!(strcmp (argv[2], "-p") == 0))
17173 return 7;
17174 if (!(strcmp (argv[3], "billy") == 0))
17175 return 8;
17176 if (!(strcmp (argv[4], "duck") == 0))
17177 return 9;
17178 if (!(strcmp (argv[5], "-a") == 0))
17179 return 10;
17180 if (!(strcmp (argv[6], "bar") == 0))
17181 return 11;
17182 if (!(optind == 1))
17183 return 12;
17184 return 0;
17185 }
17186
17187 _ACEOF
17188 if ac_fn_c_try_run "$LINENO"; then :
17189 gl_cv_func_getopt_posix=maybe
17190 else
17191 gl_cv_func_getopt_posix=no
17192 fi
17193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17194 conftest.$ac_objext conftest.beam conftest.$ac_ext
17195 fi
17196
17197 fi
17198 if test $gl_cv_func_getopt_posix = maybe; then
17199 if test "$cross_compiling" = yes; then :
17200 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17201 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17202 as_fn_error "cannot run test program while cross compiling
17203 See \`config.log' for more details." "$LINENO" 5; }
17204 else
17205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17206 /* end confdefs.h. */
17207
17208 #include <unistd.h>
17209 #include <stdlib.h>
17210 #include <string.h>
17211
17212 int
17213 main ()
17214 {
17215 static char program[] = "program";
17216 static char ab[] = "-ab";
17217 char *argv[3] = { program, ab, NULL };
17218 if (getopt (2, argv, "ab:") != 'a')
17219 return 13;
17220 if (getopt (2, argv, "ab:") != '?')
17221 return 14;
17222 if (optopt != 'b')
17223 return 15;
17224 if (optind != 2)
17225 return 16;
17226 return 0;
17227 }
17228
17229 _ACEOF
17230 if ac_fn_c_try_run "$LINENO"; then :
17231 gl_cv_func_getopt_posix=yes
17232 else
17233 gl_cv_func_getopt_posix=no
17234 fi
17235 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17236 conftest.$ac_objext conftest.beam conftest.$ac_ext
17237 fi
17238
17239 fi
17240 else
17241 case "$host_os" in
17242 darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";;
17243 *) gl_cv_func_getopt_posix="guessing yes";;
17244 esac
17245 fi
17246
17247 fi
17248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
17249 $as_echo "$gl_cv_func_getopt_posix" >&6; }
17250 case "$gl_cv_func_getopt_posix" in
17251 *no) gl_replace_getopt=yes ;;
17252 esac
17253 fi
17254
17255 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
17257 $as_echo_n "checking for working GNU getopt function... " >&6; }
17258 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
17259 $as_echo_n "(cached) " >&6
17260 else
17261 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
17262 # optstring is necessary for programs like m4 that have POSIX-mandated
17263 # semantics for supporting options interspersed with files.
17264 # Also, since getopt_long is a GNU extension, we require optind=0.
17265 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
17266 # so take care to revert to the correct (non-)export state.
17267 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
17268 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
17269 xx) gl_had_POSIXLY_CORRECT=exported ;;
17270 x) gl_had_POSIXLY_CORRECT=yes ;;
17271 *) gl_had_POSIXLY_CORRECT= ;;
17272 esac
17273 POSIXLY_CORRECT=1
17274 export POSIXLY_CORRECT
17275 if test "$cross_compiling" = yes; then :
17276 gl_cv_func_getopt_gnu="guessing no"
17277
17278 else
17279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17280 /* end confdefs.h. */
17281 #include <getopt.h>
17282 #include <stddef.h>
17283 #include <string.h>
17284
17285 #include <stdlib.h>
17286 #if defined __MACH__ && defined __APPLE__
17287 /* Avoid a crash on Mac OS X. */
17288 #include <mach/mach.h>
17289 #include <mach/mach_error.h>
17290 #include <mach/thread_status.h>
17291 #include <mach/exception.h>
17292 #include <mach/task.h>
17293 #include <pthread.h>
17294 /* The exception port on which our thread listens. */
17295 static mach_port_t our_exception_port;
17296 /* The main function of the thread listening for exceptions of type
17297 EXC_BAD_ACCESS. */
17298 static void *
17299 mach_exception_thread (void *arg)
17300 {
17301 /* Buffer for a message to be received. */
17302 struct {
17303 mach_msg_header_t head;
17304 mach_msg_body_t msgh_body;
17305 char data[1024];
17306 } msg;
17307 mach_msg_return_t retval;
17308 /* Wait for a message on the exception port. */
17309 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
17310 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
17311 if (retval != MACH_MSG_SUCCESS)
17312 abort ();
17313 exit (1);
17314 }
17315 static void
17316 nocrash_init (void)
17317 {
17318 mach_port_t self = mach_task_self ();
17319 /* Allocate a port on which the thread shall listen for exceptions. */
17320 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
17321 == KERN_SUCCESS) {
17322 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
17323 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
17324 MACH_MSG_TYPE_MAKE_SEND)
17325 == KERN_SUCCESS) {
17326 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
17327 for us. */
17328 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
17329 /* Create the thread listening on the exception port. */
17330 pthread_attr_t attr;
17331 pthread_t thread;
17332 if (pthread_attr_init (&attr) == 0
17333 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
17334 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
17335 pthread_attr_destroy (&attr);
17336 /* Replace the exception port info for these exceptions with our own.
17337 Note that we replace the exception port for the entire task, not only
17338 for a particular thread. This has the effect that when our exception
17339 port gets the message, the thread specific exception port has already
17340 been asked, and we don't need to bother about it.
17341 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
17342 task_set_exception_ports (self, mask, our_exception_port,
17343 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
17344 }
17345 }
17346 }
17347 }
17348 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17349 /* Avoid a crash on native Windows. */
17350 #define WIN32_LEAN_AND_MEAN
17351 #include <windows.h>
17352 #include <winerror.h>
17353 static LONG WINAPI
17354 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
17355 {
17356 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
17357 {
17358 case EXCEPTION_ACCESS_VIOLATION:
17359 case EXCEPTION_IN_PAGE_ERROR:
17360 case EXCEPTION_STACK_OVERFLOW:
17361 case EXCEPTION_GUARD_PAGE:
17362 case EXCEPTION_PRIV_INSTRUCTION:
17363 case EXCEPTION_ILLEGAL_INSTRUCTION:
17364 case EXCEPTION_DATATYPE_MISALIGNMENT:
17365 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
17366 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
17367 exit (1);
17368 }
17369 return EXCEPTION_CONTINUE_SEARCH;
17370 }
17371 static void
17372 nocrash_init (void)
17373 {
17374 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
17375 }
17376 #else
17377 /* Avoid a crash on POSIX systems. */
17378 #include <signal.h>
17379 /* A POSIX signal handler. */
17380 static void
17381 exception_handler (int sig)
17382 {
17383 exit (1);
17384 }
17385 static void
17386 nocrash_init (void)
17387 {
17388 #ifdef SIGSEGV
17389 signal (SIGSEGV, exception_handler);
17390 #endif
17391 #ifdef SIGBUS
17392 signal (SIGBUS, exception_handler);
17393 #endif
17394 }
17395 #endif
17396
17397
17398 int
17399 main ()
17400 {
17401
17402 int result = 0;
17403
17404 nocrash_init();
17405
17406 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
17407 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
17408 OSF/1 5.1, Solaris 10. */
17409 {
17410 static char conftest[] = "conftest";
17411 static char plus[] = "-+";
17412 char *argv[3] = { conftest, plus, NULL };
17413 opterr = 0;
17414 if (getopt (2, argv, "+a") != '?')
17415 result |= 1;
17416 }
17417 /* This code succeeds on glibc 2.8, mingw,
17418 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
17419 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
17420 {
17421 static char program[] = "program";
17422 static char p[] = "-p";
17423 static char foo[] = "foo";
17424 static char bar[] = "bar";
17425 char *argv[] = { program, p, foo, bar, NULL };
17426
17427 optind = 1;
17428 if (getopt (4, argv, "p::") != 'p')
17429 result |= 2;
17430 else if (optarg != NULL)
17431 result |= 4;
17432 else if (getopt (4, argv, "p::") != -1)
17433 result |= 6;
17434 else if (optind != 2)
17435 result |= 8;
17436 }
17437 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
17438 {
17439 static char program[] = "program";
17440 static char foo[] = "foo";
17441 static char p[] = "-p";
17442 char *argv[] = { program, foo, p, NULL };
17443 optind = 0;
17444 if (getopt (3, argv, "-p") != 1)
17445 result |= 16;
17446 else if (getopt (3, argv, "-p") != 'p')
17447 result |= 16;
17448 }
17449 /* This code fails on glibc 2.11. */
17450 {
17451 static char program[] = "program";
17452 static char b[] = "-b";
17453 static char a[] = "-a";
17454 char *argv[] = { program, b, a, NULL };
17455 optind = opterr = 0;
17456 if (getopt (3, argv, "+:a:b") != 'b')
17457 result |= 32;
17458 else if (getopt (3, argv, "+:a:b") != ':')
17459 result |= 32;
17460 }
17461 /* This code dumps core on glibc 2.14. */
17462 {
17463 static char program[] = "program";
17464 static char w[] = "-W";
17465 static char dummy[] = "dummy";
17466 char *argv[] = { program, w, dummy, NULL };
17467 optind = opterr = 1;
17468 if (getopt (3, argv, "W;") != 'W')
17469 result |= 64;
17470 }
17471 return result;
17472
17473 ;
17474 return 0;
17475 }
17476 _ACEOF
17477 if ac_fn_c_try_run "$LINENO"; then :
17478 gl_cv_func_getopt_gnu=yes
17479 else
17480 gl_cv_func_getopt_gnu=no
17481 fi
17482 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17483 conftest.$ac_objext conftest.beam conftest.$ac_ext
17484 fi
17485
17486 case $gl_had_POSIXLY_CORRECT in
17487 exported) ;;
17488 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
17489 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
17490 esac
17491
17492 fi
17493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
17494 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
17495 if test "$gl_cv_func_getopt_gnu" != yes; then
17496 gl_replace_getopt=yes
17497 else
17498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
17499 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
17500 if test "${gl_cv_func_getopt_long_gnu+set}" = set; then :
17501 $as_echo_n "(cached) " >&6
17502 else
17503 if test "$cross_compiling" = yes; then :
17504 case "$host_os" in
17505 openbsd*) gl_cv_func_getopt_long_gnu="guessing no";;
17506 *) gl_cv_func_getopt_long_gnu="guessing yes";;
17507 esac
17508
17509 else
17510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17511 /* end confdefs.h. */
17512 #include <getopt.h>
17513 #include <stddef.h>
17514 #include <string.h>
17515
17516 int
17517 main ()
17518 {
17519 static const struct option long_options[] =
17520 {
17521 { "xtremely-",no_argument, NULL, 1003 },
17522 { "xtra", no_argument, NULL, 1001 },
17523 { "xtreme", no_argument, NULL, 1002 },
17524 { "xtremely", no_argument, NULL, 1003 },
17525 { NULL, 0, NULL, 0 }
17526 };
17527 /* This code fails on OpenBSD 5.0. */
17528 {
17529 static char program[] = "program";
17530 static char xtremel[] = "--xtremel";
17531 char *argv[] = { program, xtremel, NULL };
17532 int option_index;
17533 optind = 1; opterr = 0;
17534 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
17535 return 1;
17536 }
17537 return 0;
17538
17539 ;
17540 return 0;
17541 }
17542 _ACEOF
17543 if ac_fn_c_try_run "$LINENO"; then :
17544 gl_cv_func_getopt_long_gnu=yes
17545 else
17546 gl_cv_func_getopt_long_gnu=no
17547 fi
17548 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17549 conftest.$ac_objext conftest.beam conftest.$ac_ext
17550 fi
17551
17552
17553 fi
17554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
17555 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
17556 case "$gl_cv_func_getopt_long_gnu" in
17557 *yes) ;;
17558 *) gl_replace_getopt=yes ;;
17559 esac
17560 fi
17561 fi
17562
17563
17564
17565
17566
17567
17568 REPLACE_GETOPT=0
17569 if test -n "$gl_replace_getopt"; then
17570 REPLACE_GETOPT=1
17571 fi
17572
17573 if test $REPLACE_GETOPT = 1; then
17574
17575 GETOPT_H=getopt.h
17576
17577 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
17578
17579
17580
17581 fi
17582
17583 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
17584 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
17585 ac_have_decl=1
17586 else
17587 ac_have_decl=0
17588 fi
17589
17590 cat >>confdefs.h <<_ACEOF
17591 #define HAVE_DECL_GETENV $ac_have_decl
17592 _ACEOF
17593
17594 :
17595
17596
17597
17598
17599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
17600 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
17601 if test "${ac_cv_c_restrict+set}" = set; then :
17602 $as_echo_n "(cached) " >&6
17603 else
17604 ac_cv_c_restrict=no
17605 # The order here caters to the fact that C++ does not require restrict.
17606 for ac_kw in __restrict __restrict__ _Restrict restrict; do
17607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17608 /* end confdefs.h. */
17609 typedef int * int_ptr;
17610 int foo (int_ptr $ac_kw ip) {
17611 return ip[0];
17612 }
17613 int
17614 main ()
17615 {
17616 int s[1];
17617 int * $ac_kw t = s;
17618 t[0] = 0;
17619 return foo(t)
17620 ;
17621 return 0;
17622 }
17623 _ACEOF
17624 if ac_fn_c_try_compile "$LINENO"; then :
17625 ac_cv_c_restrict=$ac_kw
17626 fi
17627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17628 test "$ac_cv_c_restrict" != no && break
17629 done
17630
17631 fi
17632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
17633 $as_echo "$ac_cv_c_restrict" >&6; }
17634
17635 case $ac_cv_c_restrict in
17636 restrict) ;;
17637 no) $as_echo "#define restrict /**/" >>confdefs.h
17638 ;;
17639 *) cat >>confdefs.h <<_ACEOF
17640 #define restrict $ac_cv_c_restrict
17641 _ACEOF
17642 ;;
17643 esac
17644
17645
17646 GNULIB_GETTIMEOFDAY=0;
17647 HAVE_GETTIMEOFDAY=1;
17648 HAVE_STRUCT_TIMEVAL=1;
17649 HAVE_SYS_TIME_H=1;
17650 REPLACE_GETTIMEOFDAY=0;
17651 REPLACE_STRUCT_TIMEVAL=0;
17652
17653
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668 if test $gl_cv_have_include_next = yes; then
17669 gl_cv_next_sys_time_h='<'sys/time.h'>'
17670 else
17671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
17672 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
17673 if test "${gl_cv_next_sys_time_h+set}" = set; then :
17674 $as_echo_n "(cached) " >&6
17675 else
17676
17677 if test $ac_cv_header_sys_time_h = yes; then
17678
17679
17680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17681 /* end confdefs.h. */
17682 #include <sys/time.h>
17683
17684 _ACEOF
17685 case "$host_os" in
17686 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17687 *) gl_absname_cpp="$ac_cpp" ;;
17688 esac
17689
17690 case "$host_os" in
17691 mingw*)
17692 gl_dirsep_regex='[/\\]'
17693 ;;
17694 *)
17695 gl_dirsep_regex='\/'
17696 ;;
17697 esac
17698 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17699
17700 gl_header_literal_regex=`echo 'sys/time.h' \
17701 | sed -e "$gl_make_literal_regex_sed"`
17702 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17703 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17704 s|^/[^/]|//&|
17705 p
17706 q
17707 }'
17708 gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17709 sed -n "$gl_absolute_header_sed"`'"'
17710 else
17711 gl_cv_next_sys_time_h='<'sys/time.h'>'
17712 fi
17713
17714
17715 fi
17716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
17717 $as_echo "$gl_cv_next_sys_time_h" >&6; }
17718 fi
17719 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
17720
17721 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17722 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17723 gl_next_as_first_directive='<'sys/time.h'>'
17724 else
17725 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17726 gl_next_as_first_directive=$gl_cv_next_sys_time_h
17727 fi
17728 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
17729
17730
17731
17732
17733
17734 if test $ac_cv_header_sys_time_h != yes; then
17735 HAVE_SYS_TIME_H=0
17736 fi
17737
17738
17739
17740
17741
17742 if test $ac_cv_header_sys_socket_h != yes; then
17743 for ac_header in winsock2.h
17744 do :
17745 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
17746 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
17747 cat >>confdefs.h <<_ACEOF
17748 #define HAVE_WINSOCK2_H 1
17749 _ACEOF
17750
17751 fi
17752
17753 done
17754
17755 fi
17756 if test "$ac_cv_header_winsock2_h" = yes; then
17757 HAVE_WINSOCK2_H=1
17758 UNISTD_H_HAVE_WINSOCK2_H=1
17759 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
17760 else
17761 HAVE_WINSOCK2_H=0
17762 fi
17763
17764
17765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
17766 $as_echo_n "checking for struct timeval... " >&6; }
17767 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
17768 $as_echo_n "(cached) " >&6
17769 else
17770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17771 /* end confdefs.h. */
17772 #if HAVE_SYS_TIME_H
17773 #include <sys/time.h>
17774 #endif
17775 #include <time.h>
17776 #if HAVE_WINSOCK2_H
17777 # include <winsock2.h>
17778 #endif
17779
17780 int
17781 main ()
17782 {
17783 static struct timeval x; x.tv_sec = x.tv_usec;
17784 ;
17785 return 0;
17786 }
17787 _ACEOF
17788 if ac_fn_c_try_compile "$LINENO"; then :
17789 gl_cv_sys_struct_timeval=yes
17790 else
17791 gl_cv_sys_struct_timeval=no
17792 fi
17793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17794
17795 fi
17796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
17797 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
17798 if test $gl_cv_sys_struct_timeval != yes; then
17799 HAVE_STRUCT_TIMEVAL=0
17800 else
17801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
17802 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
17803 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
17804 $as_echo_n "(cached) " >&6
17805 else
17806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17807 /* end confdefs.h. */
17808 #if HAVE_SYS_TIME_H
17809 #include <sys/time.h>
17810 #endif
17811 #include <time.h>
17812 #if HAVE_WINSOCK2_H
17813 # include <winsock2.h>
17814 #endif
17815
17816 int
17817 main ()
17818 {
17819 static struct timeval x;
17820 typedef int verify_tv_sec_type[
17821 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
17822 ];
17823
17824 ;
17825 return 0;
17826 }
17827 _ACEOF
17828 if ac_fn_c_try_compile "$LINENO"; then :
17829 gl_cv_sys_struct_timeval_tv_sec=yes
17830 else
17831 gl_cv_sys_struct_timeval_tv_sec=no
17832 fi
17833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17834
17835 fi
17836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
17837 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
17838 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
17839 REPLACE_STRUCT_TIMEVAL=1
17840 fi
17841 fi
17842
17843
17844
17845
17846
17847
17848
17849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17850 $as_echo_n "checking for unsigned long long int... " >&6; }
17851 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
17852 $as_echo_n "(cached) " >&6
17853 else
17854 ac_cv_type_unsigned_long_long_int=yes
17855 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17857 /* end confdefs.h. */
17858
17859 /* For now, do not test the preprocessor; as of 2007 there are too many
17860 implementations with broken preprocessors. Perhaps this can
17861 be revisited in 2012. In the meantime, code should not expect
17862 #if to work with literals wider than 32 bits. */
17863 /* Test literals. */
17864 long long int ll = 9223372036854775807ll;
17865 long long int nll = -9223372036854775807LL;
17866 unsigned long long int ull = 18446744073709551615ULL;
17867 /* Test constant expressions. */
17868 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17869 ? 1 : -1)];
17870 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17871 ? 1 : -1)];
17872 int i = 63;
17873 int
17874 main ()
17875 {
17876 /* Test availability of runtime routines for shift and division. */
17877 long long int llmax = 9223372036854775807ll;
17878 unsigned long long int ullmax = 18446744073709551615ull;
17879 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17880 | (llmax / ll) | (llmax % ll)
17881 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17882 | (ullmax / ull) | (ullmax % ull));
17883 ;
17884 return 0;
17885 }
17886
17887 _ACEOF
17888 if ac_fn_c_try_link "$LINENO"; then :
17889
17890 else
17891 ac_cv_type_unsigned_long_long_int=no
17892 fi
17893 rm -f core conftest.err conftest.$ac_objext \
17894 conftest$ac_exeext conftest.$ac_ext
17895 fi
17896 fi
17897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17898 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17899 if test $ac_cv_type_unsigned_long_long_int = yes; then
17900
17901 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17902
17903 fi
17904
17905
17906
17907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
17908 $as_echo_n "checking for long long int... " >&6; }
17909 if test "${ac_cv_type_long_long_int+set}" = set; then :
17910 $as_echo_n "(cached) " >&6
17911 else
17912 ac_cv_type_long_long_int=yes
17913 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17914 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
17915 if test $ac_cv_type_long_long_int = yes; then
17916 if test "$cross_compiling" = yes; then :
17917 :
17918 else
17919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17920 /* end confdefs.h. */
17921 #include <limits.h>
17922 #ifndef LLONG_MAX
17923 # define HALF \
17924 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17925 # define LLONG_MAX (HALF - 1 + HALF)
17926 #endif
17927 int
17928 main ()
17929 {
17930 long long int n = 1;
17931 int i;
17932 for (i = 0; ; i++)
17933 {
17934 long long int m = n << i;
17935 if (m >> i != n)
17936 return 1;
17937 if (LLONG_MAX / 2 < m)
17938 break;
17939 }
17940 return 0;
17941 ;
17942 return 0;
17943 }
17944 _ACEOF
17945 if ac_fn_c_try_run "$LINENO"; then :
17946
17947 else
17948 ac_cv_type_long_long_int=no
17949 fi
17950 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17951 conftest.$ac_objext conftest.beam conftest.$ac_ext
17952 fi
17953
17954 fi
17955 fi
17956 fi
17957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
17958 $as_echo "$ac_cv_type_long_long_int" >&6; }
17959 if test $ac_cv_type_long_long_int = yes; then
17960
17961 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17962
17963 fi
17964
17965
17966
17967
17968
17969
17970 gl_cv_c_multiarch=no
17971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17972 /* end confdefs.h. */
17973 #ifndef __APPLE_CC__
17974 not a universal capable compiler
17975 #endif
17976 typedef int dummy;
17977
17978 _ACEOF
17979 if ac_fn_c_try_compile "$LINENO"; then :
17980
17981 arch=
17982 prev=
17983 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
17984 if test -n "$prev"; then
17985 case $word in
17986 i?86 | x86_64 | ppc | ppc64)
17987 if test -z "$arch" || test "$arch" = "$word"; then
17988 arch="$word"
17989 else
17990 gl_cv_c_multiarch=yes
17991 fi
17992 ;;
17993 esac
17994 prev=
17995 else
17996 if test "x$word" = "x-arch"; then
17997 prev=arch
17998 fi
17999 fi
18000 done
18001
18002 fi
18003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18004 if test $gl_cv_c_multiarch = yes; then
18005 APPLE_UNIVERSAL_BUILD=1
18006 else
18007 APPLE_UNIVERSAL_BUILD=0
18008 fi
18009
18010
18011
18012
18013
18014 if test $ac_cv_type_long_long_int = yes; then
18015 HAVE_LONG_LONG_INT=1
18016 else
18017 HAVE_LONG_LONG_INT=0
18018 fi
18019
18020
18021 if test $ac_cv_type_unsigned_long_long_int = yes; then
18022 HAVE_UNSIGNED_LONG_LONG_INT=1
18023 else
18024 HAVE_UNSIGNED_LONG_LONG_INT=0
18025 fi
18026
18027
18028
18029 if test $ac_cv_header_wchar_h = yes; then
18030 HAVE_WCHAR_H=1
18031 else
18032 HAVE_WCHAR_H=0
18033 fi
18034
18035
18036 if test $ac_cv_header_inttypes_h = yes; then
18037 HAVE_INTTYPES_H=1
18038 else
18039 HAVE_INTTYPES_H=0
18040 fi
18041
18042
18043 if test $ac_cv_header_sys_types_h = yes; then
18044 HAVE_SYS_TYPES_H=1
18045 else
18046 HAVE_SYS_TYPES_H=0
18047 fi
18048
18049
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059 if test $gl_cv_have_include_next = yes; then
18060 gl_cv_next_stdint_h='<'stdint.h'>'
18061 else
18062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
18063 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
18064 if test "${gl_cv_next_stdint_h+set}" = set; then :
18065 $as_echo_n "(cached) " >&6
18066 else
18067
18068 if test $ac_cv_header_stdint_h = yes; then
18069
18070
18071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18072 /* end confdefs.h. */
18073 #include <stdint.h>
18074
18075 _ACEOF
18076 case "$host_os" in
18077 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18078 *) gl_absname_cpp="$ac_cpp" ;;
18079 esac
18080
18081 case "$host_os" in
18082 mingw*)
18083 gl_dirsep_regex='[/\\]'
18084 ;;
18085 *)
18086 gl_dirsep_regex='\/'
18087 ;;
18088 esac
18089 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18090
18091 gl_header_literal_regex=`echo 'stdint.h' \
18092 | sed -e "$gl_make_literal_regex_sed"`
18093 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18094 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18095 s|^/[^/]|//&|
18096 p
18097 q
18098 }'
18099 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18100 sed -n "$gl_absolute_header_sed"`'"'
18101 else
18102 gl_cv_next_stdint_h='<'stdint.h'>'
18103 fi
18104
18105
18106 fi
18107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
18108 $as_echo "$gl_cv_next_stdint_h" >&6; }
18109 fi
18110 NEXT_STDINT_H=$gl_cv_next_stdint_h
18111
18112 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18113 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18114 gl_next_as_first_directive='<'stdint.h'>'
18115 else
18116 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18117 gl_next_as_first_directive=$gl_cv_next_stdint_h
18118 fi
18119 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
18120
18121
18122
18123
18124 if test $ac_cv_header_stdint_h = yes; then
18125 HAVE_STDINT_H=1
18126 else
18127 HAVE_STDINT_H=0
18128 fi
18129
18130
18131 if test $ac_cv_header_stdint_h = yes; then
18132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
18133 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
18134 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
18135 $as_echo_n "(cached) " >&6
18136 else
18137 gl_cv_header_working_stdint_h=no
18138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18139 /* end confdefs.h. */
18140
18141
18142 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18143 #include <stdint.h>
18144 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
18145 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
18146 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
18147 #endif
18148
18149
18150 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18151 included before <wchar.h>. */
18152 #include <stddef.h>
18153 #include <signal.h>
18154 #if HAVE_WCHAR_H
18155 # include <stdio.h>
18156 # include <time.h>
18157 # include <wchar.h>
18158 #endif
18159
18160
18161 #ifdef INT8_MAX
18162 int8_t a1 = INT8_MAX;
18163 int8_t a1min = INT8_MIN;
18164 #endif
18165 #ifdef INT16_MAX
18166 int16_t a2 = INT16_MAX;
18167 int16_t a2min = INT16_MIN;
18168 #endif
18169 #ifdef INT32_MAX
18170 int32_t a3 = INT32_MAX;
18171 int32_t a3min = INT32_MIN;
18172 #endif
18173 #ifdef INT64_MAX
18174 int64_t a4 = INT64_MAX;
18175 int64_t a4min = INT64_MIN;
18176 #endif
18177 #ifdef UINT8_MAX
18178 uint8_t b1 = UINT8_MAX;
18179 #else
18180 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
18181 #endif
18182 #ifdef UINT16_MAX
18183 uint16_t b2 = UINT16_MAX;
18184 #endif
18185 #ifdef UINT32_MAX
18186 uint32_t b3 = UINT32_MAX;
18187 #endif
18188 #ifdef UINT64_MAX
18189 uint64_t b4 = UINT64_MAX;
18190 #endif
18191 int_least8_t c1 = INT8_C (0x7f);
18192 int_least8_t c1max = INT_LEAST8_MAX;
18193 int_least8_t c1min = INT_LEAST8_MIN;
18194 int_least16_t c2 = INT16_C (0x7fff);
18195 int_least16_t c2max = INT_LEAST16_MAX;
18196 int_least16_t c2min = INT_LEAST16_MIN;
18197 int_least32_t c3 = INT32_C (0x7fffffff);
18198 int_least32_t c3max = INT_LEAST32_MAX;
18199 int_least32_t c3min = INT_LEAST32_MIN;
18200 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
18201 int_least64_t c4max = INT_LEAST64_MAX;
18202 int_least64_t c4min = INT_LEAST64_MIN;
18203 uint_least8_t d1 = UINT8_C (0xff);
18204 uint_least8_t d1max = UINT_LEAST8_MAX;
18205 uint_least16_t d2 = UINT16_C (0xffff);
18206 uint_least16_t d2max = UINT_LEAST16_MAX;
18207 uint_least32_t d3 = UINT32_C (0xffffffff);
18208 uint_least32_t d3max = UINT_LEAST32_MAX;
18209 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
18210 uint_least64_t d4max = UINT_LEAST64_MAX;
18211 int_fast8_t e1 = INT_FAST8_MAX;
18212 int_fast8_t e1min = INT_FAST8_MIN;
18213 int_fast16_t e2 = INT_FAST16_MAX;
18214 int_fast16_t e2min = INT_FAST16_MIN;
18215 int_fast32_t e3 = INT_FAST32_MAX;
18216 int_fast32_t e3min = INT_FAST32_MIN;
18217 int_fast64_t e4 = INT_FAST64_MAX;
18218 int_fast64_t e4min = INT_FAST64_MIN;
18219 uint_fast8_t f1 = UINT_FAST8_MAX;
18220 uint_fast16_t f2 = UINT_FAST16_MAX;
18221 uint_fast32_t f3 = UINT_FAST32_MAX;
18222 uint_fast64_t f4 = UINT_FAST64_MAX;
18223 #ifdef INTPTR_MAX
18224 intptr_t g = INTPTR_MAX;
18225 intptr_t gmin = INTPTR_MIN;
18226 #endif
18227 #ifdef UINTPTR_MAX
18228 uintptr_t h = UINTPTR_MAX;
18229 #endif
18230 intmax_t i = INTMAX_MAX;
18231 uintmax_t j = UINTMAX_MAX;
18232
18233 #include <limits.h> /* for CHAR_BIT */
18234 #define TYPE_MINIMUM(t) \
18235 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
18236 #define TYPE_MAXIMUM(t) \
18237 ((t) ((t) 0 < (t) -1 \
18238 ? (t) -1 \
18239 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
18240 struct s {
18241 int check_PTRDIFF:
18242 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
18243 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
18244 ? 1 : -1;
18245 /* Detect bug in FreeBSD 6.0 / ia64. */
18246 int check_SIG_ATOMIC:
18247 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
18248 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
18249 ? 1 : -1;
18250 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
18251 int check_WCHAR:
18252 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
18253 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
18254 ? 1 : -1;
18255 /* Detect bug in mingw. */
18256 int check_WINT:
18257 WINT_MIN == TYPE_MINIMUM (wint_t)
18258 && WINT_MAX == TYPE_MAXIMUM (wint_t)
18259 ? 1 : -1;
18260
18261 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
18262 int check_UINT8_C:
18263 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
18264 int check_UINT16_C:
18265 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
18266
18267 /* Detect bugs in OpenBSD 3.9 stdint.h. */
18268 #ifdef UINT8_MAX
18269 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
18270 #endif
18271 #ifdef UINT16_MAX
18272 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
18273 #endif
18274 #ifdef UINT32_MAX
18275 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
18276 #endif
18277 #ifdef UINT64_MAX
18278 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
18279 #endif
18280 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
18281 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
18282 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
18283 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
18284 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
18285 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
18286 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
18287 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
18288 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
18289 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
18290 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
18291 };
18292
18293 int
18294 main ()
18295 {
18296
18297 ;
18298 return 0;
18299 }
18300 _ACEOF
18301 if ac_fn_c_try_compile "$LINENO"; then :
18302 if test "$cross_compiling" = yes; then :
18303 gl_cv_header_working_stdint_h=yes
18304
18305 else
18306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18307 /* end confdefs.h. */
18308
18309
18310 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18311 #include <stdint.h>
18312
18313
18314 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18315 included before <wchar.h>. */
18316 #include <stddef.h>
18317 #include <signal.h>
18318 #if HAVE_WCHAR_H
18319 # include <stdio.h>
18320 # include <time.h>
18321 # include <wchar.h>
18322 #endif
18323
18324
18325 #include <stdio.h>
18326 #include <string.h>
18327 #define MVAL(macro) MVAL1(macro)
18328 #define MVAL1(expression) #expression
18329 static const char *macro_values[] =
18330 {
18331 #ifdef INT8_MAX
18332 MVAL (INT8_MAX),
18333 #endif
18334 #ifdef INT16_MAX
18335 MVAL (INT16_MAX),
18336 #endif
18337 #ifdef INT32_MAX
18338 MVAL (INT32_MAX),
18339 #endif
18340 #ifdef INT64_MAX
18341 MVAL (INT64_MAX),
18342 #endif
18343 #ifdef UINT8_MAX
18344 MVAL (UINT8_MAX),
18345 #endif
18346 #ifdef UINT16_MAX
18347 MVAL (UINT16_MAX),
18348 #endif
18349 #ifdef UINT32_MAX
18350 MVAL (UINT32_MAX),
18351 #endif
18352 #ifdef UINT64_MAX
18353 MVAL (UINT64_MAX),
18354 #endif
18355 NULL
18356 };
18357
18358 int
18359 main ()
18360 {
18361
18362 const char **mv;
18363 for (mv = macro_values; *mv != NULL; mv++)
18364 {
18365 const char *value = *mv;
18366 /* Test whether it looks like a cast expression. */
18367 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18368 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18369 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
18370 || strncmp (value, "((int)"/*)*/, 6) == 0
18371 || strncmp (value, "((signed short)"/*)*/, 15) == 0
18372 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
18373 return mv - macro_values + 1;
18374 }
18375 return 0;
18376
18377 ;
18378 return 0;
18379 }
18380 _ACEOF
18381 if ac_fn_c_try_run "$LINENO"; then :
18382 gl_cv_header_working_stdint_h=yes
18383 fi
18384 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18385 conftest.$ac_objext conftest.beam conftest.$ac_ext
18386 fi
18387
18388
18389 fi
18390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18391
18392 fi
18393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18394 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
18395 fi
18396 if test "$gl_cv_header_working_stdint_h" = yes; then
18397 STDINT_H=
18398 else
18399 for ac_header in sys/inttypes.h sys/bitypes.h
18400 do :
18401 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18402 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18403 eval as_val=\$$as_ac_Header
18404 if test "x$as_val" = x""yes; then :
18405 cat >>confdefs.h <<_ACEOF
18406 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18407 _ACEOF
18408
18409 fi
18410
18411 done
18412
18413 if test $ac_cv_header_sys_inttypes_h = yes; then
18414 HAVE_SYS_INTTYPES_H=1
18415 else
18416 HAVE_SYS_INTTYPES_H=0
18417 fi
18418
18419 if test $ac_cv_header_sys_bitypes_h = yes; then
18420 HAVE_SYS_BITYPES_H=1
18421 else
18422 HAVE_SYS_BITYPES_H=0
18423 fi
18424
18425
18426
18427
18428 if test $APPLE_UNIVERSAL_BUILD = 0; then
18429
18430
18431 for gltype in ptrdiff_t size_t ; do
18432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18433 $as_echo_n "checking for bit size of $gltype... " >&6; }
18434 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18435 $as_echo_n "(cached) " >&6
18436 else
18437 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18438 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18439 included before <wchar.h>. */
18440 #include <stddef.h>
18441 #include <signal.h>
18442 #if HAVE_WCHAR_H
18443 # include <stdio.h>
18444 # include <time.h>
18445 # include <wchar.h>
18446 #endif
18447
18448 #include <limits.h>"; then :
18449
18450 else
18451 result=unknown
18452 fi
18453
18454 eval gl_cv_bitsizeof_${gltype}=\$result
18455
18456 fi
18457 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18459 $as_echo "$ac_res" >&6; }
18460 eval result=\$gl_cv_bitsizeof_${gltype}
18461 if test $result = unknown; then
18462 result=0
18463 fi
18464 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18465 cat >>confdefs.h <<_ACEOF
18466 #define BITSIZEOF_${GLTYPE} $result
18467 _ACEOF
18468
18469 eval BITSIZEOF_${GLTYPE}=\$result
18470 done
18471
18472
18473 fi
18474
18475
18476 for gltype in sig_atomic_t wchar_t wint_t ; do
18477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18478 $as_echo_n "checking for bit size of $gltype... " >&6; }
18479 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18480 $as_echo_n "(cached) " >&6
18481 else
18482 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18483 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18484 included before <wchar.h>. */
18485 #include <stddef.h>
18486 #include <signal.h>
18487 #if HAVE_WCHAR_H
18488 # include <stdio.h>
18489 # include <time.h>
18490 # include <wchar.h>
18491 #endif
18492
18493 #include <limits.h>"; then :
18494
18495 else
18496 result=unknown
18497 fi
18498
18499 eval gl_cv_bitsizeof_${gltype}=\$result
18500
18501 fi
18502 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18504 $as_echo "$ac_res" >&6; }
18505 eval result=\$gl_cv_bitsizeof_${gltype}
18506 if test $result = unknown; then
18507 result=0
18508 fi
18509 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18510 cat >>confdefs.h <<_ACEOF
18511 #define BITSIZEOF_${GLTYPE} $result
18512 _ACEOF
18513
18514 eval BITSIZEOF_${GLTYPE}=\$result
18515 done
18516
18517
18518
18519
18520 for gltype in sig_atomic_t wchar_t wint_t ; do
18521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18522 $as_echo_n "checking whether $gltype is signed... " >&6; }
18523 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
18524 $as_echo_n "(cached) " >&6
18525 else
18526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18527 /* end confdefs.h. */
18528
18529 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18530 included before <wchar.h>. */
18531 #include <stddef.h>
18532 #include <signal.h>
18533 #if HAVE_WCHAR_H
18534 # include <stdio.h>
18535 # include <time.h>
18536 # include <wchar.h>
18537 #endif
18538
18539 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18540 int
18541 main ()
18542 {
18543
18544 ;
18545 return 0;
18546 }
18547 _ACEOF
18548 if ac_fn_c_try_compile "$LINENO"; then :
18549 result=yes
18550 else
18551 result=no
18552 fi
18553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18554 eval gl_cv_type_${gltype}_signed=\$result
18555
18556 fi
18557 eval ac_res=\$gl_cv_type_${gltype}_signed
18558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18559 $as_echo "$ac_res" >&6; }
18560 eval result=\$gl_cv_type_${gltype}_signed
18561 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18562 if test "$result" = yes; then
18563 cat >>confdefs.h <<_ACEOF
18564 #define HAVE_SIGNED_${GLTYPE} 1
18565 _ACEOF
18566
18567 eval HAVE_SIGNED_${GLTYPE}=1
18568 else
18569 eval HAVE_SIGNED_${GLTYPE}=0
18570 fi
18571 done
18572
18573
18574 gl_cv_type_ptrdiff_t_signed=yes
18575 gl_cv_type_size_t_signed=no
18576 if test $APPLE_UNIVERSAL_BUILD = 0; then
18577
18578
18579 for gltype in ptrdiff_t size_t ; do
18580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18581 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18582 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18583 $as_echo_n "(cached) " >&6
18584 else
18585 eval gl_cv_type_${gltype}_suffix=no
18586 eval result=\$gl_cv_type_${gltype}_signed
18587 if test "$result" = yes; then
18588 glsufu=
18589 else
18590 glsufu=u
18591 fi
18592 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18593 case $glsuf in
18594 '') gltype1='int';;
18595 l) gltype1='long int';;
18596 ll) gltype1='long long int';;
18597 i64) gltype1='__int64';;
18598 u) gltype1='unsigned int';;
18599 ul) gltype1='unsigned long int';;
18600 ull) gltype1='unsigned long long int';;
18601 ui64)gltype1='unsigned __int64';;
18602 esac
18603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18604 /* end confdefs.h. */
18605
18606 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18607 included before <wchar.h>. */
18608 #include <stddef.h>
18609 #include <signal.h>
18610 #if HAVE_WCHAR_H
18611 # include <stdio.h>
18612 # include <time.h>
18613 # include <wchar.h>
18614 #endif
18615
18616 extern $gltype foo;
18617 extern $gltype1 foo;
18618 int
18619 main ()
18620 {
18621
18622 ;
18623 return 0;
18624 }
18625 _ACEOF
18626 if ac_fn_c_try_compile "$LINENO"; then :
18627 eval gl_cv_type_${gltype}_suffix=\$glsuf
18628 fi
18629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18630 eval result=\$gl_cv_type_${gltype}_suffix
18631 test "$result" != no && break
18632 done
18633 fi
18634 eval ac_res=\$gl_cv_type_${gltype}_suffix
18635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18636 $as_echo "$ac_res" >&6; }
18637 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18638 eval result=\$gl_cv_type_${gltype}_suffix
18639 test "$result" = no && result=
18640 eval ${GLTYPE}_SUFFIX=\$result
18641 cat >>confdefs.h <<_ACEOF
18642 #define ${GLTYPE}_SUFFIX $result
18643 _ACEOF
18644
18645 done
18646
18647
18648 fi
18649
18650
18651 for gltype in sig_atomic_t wchar_t wint_t ; do
18652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18653 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18654 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18655 $as_echo_n "(cached) " >&6
18656 else
18657 eval gl_cv_type_${gltype}_suffix=no
18658 eval result=\$gl_cv_type_${gltype}_signed
18659 if test "$result" = yes; then
18660 glsufu=
18661 else
18662 glsufu=u
18663 fi
18664 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18665 case $glsuf in
18666 '') gltype1='int';;
18667 l) gltype1='long int';;
18668 ll) gltype1='long long int';;
18669 i64) gltype1='__int64';;
18670 u) gltype1='unsigned int';;
18671 ul) gltype1='unsigned long int';;
18672 ull) gltype1='unsigned long long int';;
18673 ui64)gltype1='unsigned __int64';;
18674 esac
18675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18676 /* end confdefs.h. */
18677
18678 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18679 included before <wchar.h>. */
18680 #include <stddef.h>
18681 #include <signal.h>
18682 #if HAVE_WCHAR_H
18683 # include <stdio.h>
18684 # include <time.h>
18685 # include <wchar.h>
18686 #endif
18687
18688 extern $gltype foo;
18689 extern $gltype1 foo;
18690 int
18691 main ()
18692 {
18693
18694 ;
18695 return 0;
18696 }
18697 _ACEOF
18698 if ac_fn_c_try_compile "$LINENO"; then :
18699 eval gl_cv_type_${gltype}_suffix=\$glsuf
18700 fi
18701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18702 eval result=\$gl_cv_type_${gltype}_suffix
18703 test "$result" != no && break
18704 done
18705 fi
18706 eval ac_res=\$gl_cv_type_${gltype}_suffix
18707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18708 $as_echo "$ac_res" >&6; }
18709 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18710 eval result=\$gl_cv_type_${gltype}_suffix
18711 test "$result" = no && result=
18712 eval ${GLTYPE}_SUFFIX=\$result
18713 cat >>confdefs.h <<_ACEOF
18714 #define ${GLTYPE}_SUFFIX $result
18715 _ACEOF
18716
18717 done
18718
18719
18720
18721 if test $BITSIZEOF_WINT_T -lt 32; then
18722 BITSIZEOF_WINT_T=32
18723 fi
18724
18725 STDINT_H=stdint.h
18726 fi
18727
18728 if test -n "$STDINT_H"; then
18729 GL_GENERATE_STDINT_H_TRUE=
18730 GL_GENERATE_STDINT_H_FALSE='#'
18731 else
18732 GL_GENERATE_STDINT_H_TRUE='#'
18733 GL_GENERATE_STDINT_H_FALSE=
18734 fi
18735
18736
18737
18738
18739
18740 GNULIB_IMAXABS=0;
18741 GNULIB_IMAXDIV=0;
18742 GNULIB_STRTOIMAX=0;
18743 GNULIB_STRTOUMAX=0;
18744 HAVE_DECL_IMAXABS=1;
18745 HAVE_DECL_IMAXDIV=1;
18746 HAVE_DECL_STRTOIMAX=1;
18747 HAVE_DECL_STRTOUMAX=1;
18748 REPLACE_STRTOIMAX=0;
18749 INT32_MAX_LT_INTMAX_MAX=1;
18750 INT64_MAX_EQ_LONG_MAX='defined _LP64';
18751 PRI_MACROS_BROKEN=0;
18752 PRIPTR_PREFIX=__PRIPTR_PREFIX;
18753 UINT32_MAX_LT_UINTMAX_MAX=1;
18754 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
18755
18756
18757
18758
18759
18760
18761
18762
18763
18764
18765
18766
18767
18768
18769
18770 if test $gl_cv_have_include_next = yes; then
18771 gl_cv_next_inttypes_h='<'inttypes.h'>'
18772 else
18773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
18774 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
18775 if test "${gl_cv_next_inttypes_h+set}" = set; then :
18776 $as_echo_n "(cached) " >&6
18777 else
18778
18779 if test $ac_cv_header_inttypes_h = yes; then
18780
18781
18782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18783 /* end confdefs.h. */
18784 #include <inttypes.h>
18785
18786 _ACEOF
18787 case "$host_os" in
18788 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18789 *) gl_absname_cpp="$ac_cpp" ;;
18790 esac
18791
18792 case "$host_os" in
18793 mingw*)
18794 gl_dirsep_regex='[/\\]'
18795 ;;
18796 *)
18797 gl_dirsep_regex='\/'
18798 ;;
18799 esac
18800 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18801
18802 gl_header_literal_regex=`echo 'inttypes.h' \
18803 | sed -e "$gl_make_literal_regex_sed"`
18804 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18805 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18806 s|^/[^/]|//&|
18807 p
18808 q
18809 }'
18810 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18811 sed -n "$gl_absolute_header_sed"`'"'
18812 else
18813 gl_cv_next_inttypes_h='<'inttypes.h'>'
18814 fi
18815
18816
18817 fi
18818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
18819 $as_echo "$gl_cv_next_inttypes_h" >&6; }
18820 fi
18821 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
18822
18823 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18824 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18825 gl_next_as_first_directive='<'inttypes.h'>'
18826 else
18827 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18828 gl_next_as_first_directive=$gl_cv_next_inttypes_h
18829 fi
18830 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
18831
18832
18833
18834
18835
18836
18837
18838
18839
18840
18841
18842 case "$host_os" in
18843 mingw*)
18844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
18845 $as_echo_n "checking for 64-bit off_t... " >&6; }
18846 if test "${gl_cv_type_off_t_64+set}" = set; then :
18847 $as_echo_n "(cached) " >&6
18848 else
18849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18850 /* end confdefs.h. */
18851 #include <sys/types.h>
18852 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
18853
18854 int
18855 main ()
18856 {
18857
18858 ;
18859 return 0;
18860 }
18861 _ACEOF
18862 if ac_fn_c_try_compile "$LINENO"; then :
18863 gl_cv_type_off_t_64=yes
18864 else
18865 gl_cv_type_off_t_64=no
18866 fi
18867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18868
18869 fi
18870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
18871 $as_echo "$gl_cv_type_off_t_64" >&6; }
18872 if test $gl_cv_type_off_t_64 = no; then
18873 WINDOWS_64_BIT_OFF_T=1
18874 else
18875 WINDOWS_64_BIT_OFF_T=0
18876 fi
18877 WINDOWS_64_BIT_ST_SIZE=1
18878 ;;
18879 *)
18880 WINDOWS_64_BIT_OFF_T=0
18881 WINDOWS_64_BIT_ST_SIZE=0
18882 ;;
18883 esac
18884
18885
18886 GNULIB_FCHMODAT=0;
18887 GNULIB_FSTAT=0;
18888 GNULIB_FSTATAT=0;
18889 GNULIB_FUTIMENS=0;
18890 GNULIB_LCHMOD=0;
18891 GNULIB_LSTAT=0;
18892 GNULIB_MKDIRAT=0;
18893 GNULIB_MKFIFO=0;
18894 GNULIB_MKFIFOAT=0;
18895 GNULIB_MKNOD=0;
18896 GNULIB_MKNODAT=0;
18897 GNULIB_STAT=0;
18898 GNULIB_UTIMENSAT=0;
18899 HAVE_FCHMODAT=1;
18900 HAVE_FSTATAT=1;
18901 HAVE_FUTIMENS=1;
18902 HAVE_LCHMOD=1;
18903 HAVE_LSTAT=1;
18904 HAVE_MKDIRAT=1;
18905 HAVE_MKFIFO=1;
18906 HAVE_MKFIFOAT=1;
18907 HAVE_MKNOD=1;
18908 HAVE_MKNODAT=1;
18909 HAVE_UTIMENSAT=1;
18910 REPLACE_FSTAT=0;
18911 REPLACE_FSTATAT=0;
18912 REPLACE_FUTIMENS=0;
18913 REPLACE_LSTAT=0;
18914 REPLACE_MKDIR=0;
18915 REPLACE_MKFIFO=0;
18916 REPLACE_MKNOD=0;
18917 REPLACE_STAT=0;
18918 REPLACE_UTIMENSAT=0;
18919
18920
18921
18922
18923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
18924 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
18925 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
18926 $as_echo_n "(cached) " >&6
18927 else
18928 rm -f conftest.sym conftest.file
18929 echo >conftest.file
18930 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
18931 if test "$cross_compiling" = yes; then :
18932 case "$host_os" in
18933 # Guess yes on glibc systems.
18934 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
18935 # If we don't know, assume the worst.
18936 *) gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
18937 esac
18938
18939 else
18940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18941 /* end confdefs.h. */
18942 $ac_includes_default
18943 int
18944 main ()
18945 {
18946 struct stat sbuf;
18947 /* Linux will dereference the symlink and fail, as required by
18948 POSIX. That is better in the sense that it means we will not
18949 have to compile and use the lstat wrapper. */
18950 return lstat ("conftest.sym/", &sbuf) == 0;
18951
18952 ;
18953 return 0;
18954 }
18955 _ACEOF
18956 if ac_fn_c_try_run "$LINENO"; then :
18957 gl_cv_func_lstat_dereferences_slashed_symlink=yes
18958 else
18959 gl_cv_func_lstat_dereferences_slashed_symlink=no
18960 fi
18961 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18962 conftest.$ac_objext conftest.beam conftest.$ac_ext
18963 fi
18964
18965 else
18966 # If the 'ln -s' command failed, then we probably don't even
18967 # have an lstat function.
18968 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no"
18969 fi
18970 rm -f conftest.sym conftest.file
18971
18972 fi
18973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
18974 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
18975 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
18976 *yes)
18977
18978 cat >>confdefs.h <<_ACEOF
18979 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
18980 _ACEOF
18981
18982 ;;
18983 esac
18984
18985
18986 GNULIB_MKTIME=0;
18987 GNULIB_NANOSLEEP=0;
18988 GNULIB_STRPTIME=0;
18989 GNULIB_TIMEGM=0;
18990 GNULIB_TIME_R=0;
18991 HAVE_DECL_LOCALTIME_R=1;
18992 HAVE_NANOSLEEP=1;
18993 HAVE_STRPTIME=1;
18994 HAVE_TIMEGM=1;
18995 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
18996 REPLACE_MKTIME=GNULIB_PORTCHECK;
18997 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
18998 REPLACE_TIMEGM=GNULIB_PORTCHECK;
18999
19000
19001
19002
19003 GNULIB_PSELECT=0;
19004 GNULIB_SELECT=0;
19005 HAVE_PSELECT=1;
19006 REPLACE_PSELECT=0;
19007 REPLACE_SELECT=0;
19008
19009
19010
19011
19012
19013
19014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
19015 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
19016 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
19017 $as_echo_n "(cached) " >&6
19018 else
19019
19020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19021 /* end confdefs.h. */
19022 #include <sys/select.h>
19023 int
19024 main ()
19025 {
19026 struct timeval b;
19027 ;
19028 return 0;
19029 }
19030 _ACEOF
19031 if ac_fn_c_try_compile "$LINENO"; then :
19032 gl_cv_header_sys_select_h_selfcontained=yes
19033 else
19034 gl_cv_header_sys_select_h_selfcontained=no
19035 fi
19036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19037 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
19038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19039 /* end confdefs.h. */
19040 #include <sys/select.h>
19041 int
19042 main ()
19043 {
19044 int memset; int bzero;
19045 ;
19046 return 0;
19047 }
19048
19049 _ACEOF
19050 if ac_fn_c_try_compile "$LINENO"; then :
19051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19052 /* end confdefs.h. */
19053 #include <sys/select.h>
19054 int
19055 main ()
19056 {
19057
19058 #undef memset
19059 #define memset nonexistent_memset
19060 extern
19061 #ifdef __cplusplus
19062 "C"
19063 #endif
19064 void *memset (void *, int, unsigned long);
19065 #undef bzero
19066 #define bzero nonexistent_bzero
19067 extern
19068 #ifdef __cplusplus
19069 "C"
19070 #endif
19071 void bzero (void *, unsigned long);
19072 fd_set fds;
19073 FD_ZERO (&fds);
19074
19075 ;
19076 return 0;
19077 }
19078
19079 _ACEOF
19080 if ac_fn_c_try_link "$LINENO"; then :
19081
19082 else
19083 gl_cv_header_sys_select_h_selfcontained=no
19084 fi
19085 rm -f core conftest.err conftest.$ac_objext \
19086 conftest$ac_exeext conftest.$ac_ext
19087
19088 fi
19089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19090 fi
19091
19092 fi
19093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
19094 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
19095
19096
19097
19098
19099
19100
19101
19102
19103
19104 if test $gl_cv_have_include_next = yes; then
19105 gl_cv_next_sys_select_h='<'sys/select.h'>'
19106 else
19107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
19108 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
19109 if test "${gl_cv_next_sys_select_h+set}" = set; then :
19110 $as_echo_n "(cached) " >&6
19111 else
19112
19113 if test $ac_cv_header_sys_select_h = yes; then
19114
19115
19116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19117 /* end confdefs.h. */
19118 #include <sys/select.h>
19119
19120 _ACEOF
19121 case "$host_os" in
19122 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19123 *) gl_absname_cpp="$ac_cpp" ;;
19124 esac
19125
19126 case "$host_os" in
19127 mingw*)
19128 gl_dirsep_regex='[/\\]'
19129 ;;
19130 *)
19131 gl_dirsep_regex='\/'
19132 ;;
19133 esac
19134 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19135
19136 gl_header_literal_regex=`echo 'sys/select.h' \
19137 | sed -e "$gl_make_literal_regex_sed"`
19138 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19139 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19140 s|^/[^/]|//&|
19141 p
19142 q
19143 }'
19144 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19145 sed -n "$gl_absolute_header_sed"`'"'
19146 else
19147 gl_cv_next_sys_select_h='<'sys/select.h'>'
19148 fi
19149
19150
19151 fi
19152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
19153 $as_echo "$gl_cv_next_sys_select_h" >&6; }
19154 fi
19155 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
19156
19157 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19158 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19159 gl_next_as_first_directive='<'sys/select.h'>'
19160 else
19161 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19162 gl_next_as_first_directive=$gl_cv_next_sys_select_h
19163 fi
19164 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
19165
19166
19167
19168
19169 if test $ac_cv_header_sys_select_h = yes; then
19170 HAVE_SYS_SELECT_H=1
19171 else
19172 HAVE_SYS_SELECT_H=0
19173 fi
19174
19175
19176
19177
19178
19179 if test $ac_cv_header_sys_socket_h != yes; then
19180 for ac_header in winsock2.h
19181 do :
19182 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
19183 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
19184 cat >>confdefs.h <<_ACEOF
19185 #define HAVE_WINSOCK2_H 1
19186 _ACEOF
19187
19188 fi
19189
19190 done
19191
19192 fi
19193 if test "$ac_cv_header_winsock2_h" = yes; then
19194 HAVE_WINSOCK2_H=1
19195 UNISTD_H_HAVE_WINSOCK2_H=1
19196 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
19197 else
19198 HAVE_WINSOCK2_H=0
19199 fi
19200
19201
19202
19203
19204
19205
19206
19207
19208 GNULIB_PTHREAD_SIGMASK=0;
19209 GNULIB_RAISE=0;
19210 GNULIB_SIGNAL_H_SIGPIPE=0;
19211 GNULIB_SIGPROCMASK=0;
19212 GNULIB_SIGACTION=0;
19213 HAVE_POSIX_SIGNALBLOCKING=1;
19214 HAVE_PTHREAD_SIGMASK=1;
19215 HAVE_RAISE=1;
19216 HAVE_SIGSET_T=1;
19217 HAVE_SIGINFO_T=1;
19218 HAVE_SIGACTION=1;
19219 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
19220
19221 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
19222
19223 HAVE_SIGHANDLER_T=1;
19224 REPLACE_PTHREAD_SIGMASK=0;
19225 REPLACE_RAISE=0;
19226
19227
19228
19229
19230
19231
19232 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
19233 #include <signal.h>
19234 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
19235 #include <sys/types.h>
19236
19237 "
19238 if test "x$ac_cv_type_sigset_t" = x""yes; then :
19239
19240 cat >>confdefs.h <<_ACEOF
19241 #define HAVE_SIGSET_T 1
19242 _ACEOF
19243
19244 gl_cv_type_sigset_t=yes
19245 else
19246 gl_cv_type_sigset_t=no
19247 fi
19248
19249 if test $gl_cv_type_sigset_t != yes; then
19250 HAVE_SIGSET_T=0
19251 fi
19252
19253
19254
19255 if test $ac_cv_header_sys_socket_h = no; then
19256 for ac_header in ws2tcpip.h
19257 do :
19258 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
19259 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
19260 cat >>confdefs.h <<_ACEOF
19261 #define HAVE_WS2TCPIP_H 1
19262 _ACEOF
19263
19264 fi
19265
19266 done
19267
19268 fi
19269
19270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
19271 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
19272 if test "${ac_cv_header_stdbool_h+set}" = set; then :
19273 $as_echo_n "(cached) " >&6
19274 else
19275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19276 /* end confdefs.h. */
19277
19278 #include <stdbool.h>
19279 #ifndef bool
19280 "error: bool is not defined"
19281 #endif
19282 #ifndef false
19283 "error: false is not defined"
19284 #endif
19285 #if false
19286 "error: false is not 0"
19287 #endif
19288 #ifndef true
19289 "error: true is not defined"
19290 #endif
19291 #if true != 1
19292 "error: true is not 1"
19293 #endif
19294 #ifndef __bool_true_false_are_defined
19295 "error: __bool_true_false_are_defined is not defined"
19296 #endif
19297
19298 struct s { _Bool s: 1; _Bool t; } s;
19299
19300 char a[true == 1 ? 1 : -1];
19301 char b[false == 0 ? 1 : -1];
19302 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19303 char d[(bool) 0.5 == true ? 1 : -1];
19304 /* See body of main program for 'e'. */
19305 char f[(_Bool) 0.0 == false ? 1 : -1];
19306 char g[true];
19307 char h[sizeof (_Bool)];
19308 char i[sizeof s.t];
19309 enum { j = false, k = true, l = false * true, m = true * 256 };
19310 /* The following fails for
19311 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
19312 _Bool n[m];
19313 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19314 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19315 /* Catch a bug in an HP-UX C compiler. See
19316 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19317 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19318 */
19319 _Bool q = true;
19320 _Bool *pq = &q;
19321
19322 int
19323 main ()
19324 {
19325
19326 bool e = &s;
19327 *pq |= q;
19328 *pq |= ! q;
19329 /* Refer to every declared value, to avoid compiler optimizations. */
19330 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19331 + !m + !n + !o + !p + !q + !pq);
19332
19333 ;
19334 return 0;
19335 }
19336 _ACEOF
19337 if ac_fn_c_try_compile "$LINENO"; then :
19338 ac_cv_header_stdbool_h=yes
19339 else
19340 ac_cv_header_stdbool_h=no
19341 fi
19342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19343 fi
19344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
19345 $as_echo "$ac_cv_header_stdbool_h" >&6; }
19346 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
19347 if test "x$ac_cv_type__Bool" = x""yes; then :
19348
19349 cat >>confdefs.h <<_ACEOF
19350 #define HAVE__BOOL 1
19351 _ACEOF
19352
19353
19354 fi
19355
19356
19357
19358 REPLACE_NULL=0;
19359 HAVE_WCHAR_T=1;
19360
19361
19362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19363 $as_echo_n "checking for wchar_t... " >&6; }
19364 if test "${gt_cv_c_wchar_t+set}" = set; then :
19365 $as_echo_n "(cached) " >&6
19366 else
19367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19368 /* end confdefs.h. */
19369 #include <stddef.h>
19370 wchar_t foo = (wchar_t)'\0';
19371 int
19372 main ()
19373 {
19374
19375 ;
19376 return 0;
19377 }
19378 _ACEOF
19379 if ac_fn_c_try_compile "$LINENO"; then :
19380 gt_cv_c_wchar_t=yes
19381 else
19382 gt_cv_c_wchar_t=no
19383 fi
19384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19385 fi
19386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19387 $as_echo "$gt_cv_c_wchar_t" >&6; }
19388 if test $gt_cv_c_wchar_t = yes; then
19389
19390 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19391
19392 fi
19393
19394
19395 GNULIB_DPRINTF=0;
19396 GNULIB_FCLOSE=0;
19397 GNULIB_FDOPEN=0;
19398 GNULIB_FFLUSH=0;
19399 GNULIB_FGETC=0;
19400 GNULIB_FGETS=0;
19401 GNULIB_FOPEN=0;
19402 GNULIB_FPRINTF=0;
19403 GNULIB_FPRINTF_POSIX=0;
19404 GNULIB_FPURGE=0;
19405 GNULIB_FPUTC=0;
19406 GNULIB_FPUTS=0;
19407 GNULIB_FREAD=0;
19408 GNULIB_FREOPEN=0;
19409 GNULIB_FSCANF=0;
19410 GNULIB_FSEEK=0;
19411 GNULIB_FSEEKO=0;
19412 GNULIB_FTELL=0;
19413 GNULIB_FTELLO=0;
19414 GNULIB_FWRITE=0;
19415 GNULIB_GETC=0;
19416 GNULIB_GETCHAR=0;
19417 GNULIB_GETDELIM=0;
19418 GNULIB_GETLINE=0;
19419 GNULIB_OBSTACK_PRINTF=0;
19420 GNULIB_OBSTACK_PRINTF_POSIX=0;
19421 GNULIB_PCLOSE=0;
19422 GNULIB_PERROR=0;
19423 GNULIB_POPEN=0;
19424 GNULIB_PRINTF=0;
19425 GNULIB_PRINTF_POSIX=0;
19426 GNULIB_PUTC=0;
19427 GNULIB_PUTCHAR=0;
19428 GNULIB_PUTS=0;
19429 GNULIB_REMOVE=0;
19430 GNULIB_RENAME=0;
19431 GNULIB_RENAMEAT=0;
19432 GNULIB_SCANF=0;
19433 GNULIB_SNPRINTF=0;
19434 GNULIB_SPRINTF_POSIX=0;
19435 GNULIB_STDIO_H_NONBLOCKING=0;
19436 GNULIB_STDIO_H_SIGPIPE=0;
19437 GNULIB_TMPFILE=0;
19438 GNULIB_VASPRINTF=0;
19439 GNULIB_VFSCANF=0;
19440 GNULIB_VSCANF=0;
19441 GNULIB_VDPRINTF=0;
19442 GNULIB_VFPRINTF=0;
19443 GNULIB_VFPRINTF_POSIX=0;
19444 GNULIB_VPRINTF=0;
19445 GNULIB_VPRINTF_POSIX=0;
19446 GNULIB_VSNPRINTF=0;
19447 GNULIB_VSPRINTF_POSIX=0;
19448 HAVE_DECL_FPURGE=1;
19449 HAVE_DECL_FSEEKO=1;
19450 HAVE_DECL_FTELLO=1;
19451 HAVE_DECL_GETDELIM=1;
19452 HAVE_DECL_GETLINE=1;
19453 HAVE_DECL_OBSTACK_PRINTF=1;
19454 HAVE_DECL_SNPRINTF=1;
19455 HAVE_DECL_VSNPRINTF=1;
19456 HAVE_DPRINTF=1;
19457 HAVE_FSEEKO=1;
19458 HAVE_FTELLO=1;
19459 HAVE_PCLOSE=1;
19460 HAVE_POPEN=1;
19461 HAVE_RENAMEAT=1;
19462 HAVE_VASPRINTF=1;
19463 HAVE_VDPRINTF=1;
19464 REPLACE_DPRINTF=0;
19465 REPLACE_FCLOSE=0;
19466 REPLACE_FDOPEN=0;
19467 REPLACE_FFLUSH=0;
19468 REPLACE_FOPEN=0;
19469 REPLACE_FPRINTF=0;
19470 REPLACE_FPURGE=0;
19471 REPLACE_FREOPEN=0;
19472 REPLACE_FSEEK=0;
19473 REPLACE_FSEEKO=0;
19474 REPLACE_FTELL=0;
19475 REPLACE_FTELLO=0;
19476 REPLACE_GETDELIM=0;
19477 REPLACE_GETLINE=0;
19478 REPLACE_OBSTACK_PRINTF=0;
19479 REPLACE_PERROR=0;
19480 REPLACE_POPEN=0;
19481 REPLACE_PRINTF=0;
19482 REPLACE_REMOVE=0;
19483 REPLACE_RENAME=0;
19484 REPLACE_RENAMEAT=0;
19485 REPLACE_SNPRINTF=0;
19486 REPLACE_SPRINTF=0;
19487 REPLACE_STDIO_READ_FUNCS=0;
19488 REPLACE_STDIO_WRITE_FUNCS=0;
19489 REPLACE_TMPFILE=0;
19490 REPLACE_VASPRINTF=0;
19491 REPLACE_VDPRINTF=0;
19492 REPLACE_VFPRINTF=0;
19493 REPLACE_VPRINTF=0;
19494 REPLACE_VSNPRINTF=0;
19495 REPLACE_VSPRINTF=0;
19496
19497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
19498 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
19499 if test "${ac_cv_struct_tm+set}" = set; then :
19500 $as_echo_n "(cached) " >&6
19501 else
19502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19503 /* end confdefs.h. */
19504 #include <sys/types.h>
19505 #include <time.h>
19506
19507 int
19508 main ()
19509 {
19510 struct tm tm;
19511 int *p = &tm.tm_sec;
19512 return !p;
19513 ;
19514 return 0;
19515 }
19516 _ACEOF
19517 if ac_fn_c_try_compile "$LINENO"; then :
19518 ac_cv_struct_tm=time.h
19519 else
19520 ac_cv_struct_tm=sys/time.h
19521 fi
19522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19523 fi
19524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
19525 $as_echo "$ac_cv_struct_tm" >&6; }
19526 if test $ac_cv_struct_tm = sys/time.h; then
19527
19528 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
19529
19530 fi
19531
19532 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
19533 #include <$ac_cv_struct_tm>
19534
19535 "
19536 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
19537
19538 cat >>confdefs.h <<_ACEOF
19539 #define HAVE_STRUCT_TM_TM_ZONE 1
19540 _ACEOF
19541
19542
19543 fi
19544
19545 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19546
19547 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
19548
19549 else
19550 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
19551 "
19552 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
19553 ac_have_decl=1
19554 else
19555 ac_have_decl=0
19556 fi
19557
19558 cat >>confdefs.h <<_ACEOF
19559 #define HAVE_DECL_TZNAME $ac_have_decl
19560 _ACEOF
19561
19562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
19563 $as_echo_n "checking for tzname... " >&6; }
19564 if test "${ac_cv_var_tzname+set}" = set; then :
19565 $as_echo_n "(cached) " >&6
19566 else
19567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19568 /* end confdefs.h. */
19569 #include <time.h>
19570 #if !HAVE_DECL_TZNAME
19571 extern char *tzname[];
19572 #endif
19573
19574 int
19575 main ()
19576 {
19577 return tzname[0][0];
19578 ;
19579 return 0;
19580 }
19581 _ACEOF
19582 if ac_fn_c_try_link "$LINENO"; then :
19583 ac_cv_var_tzname=yes
19584 else
19585 ac_cv_var_tzname=no
19586 fi
19587 rm -f core conftest.err conftest.$ac_objext \
19588 conftest$ac_exeext conftest.$ac_ext
19589 fi
19590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
19591 $as_echo "$ac_cv_var_tzname" >&6; }
19592 if test $ac_cv_var_tzname = yes; then
19593
19594 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
19595
19596 fi
19597 fi
19598
19599
19600 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
19601 "
19602 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
19603
19604 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
19605
19606 fi
19607
19608
19609
19610
19611 ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
19612 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then :
19613 ac_have_decl=1
19614 else
19615 ac_have_decl=0
19616 fi
19617
19618 cat >>confdefs.h <<_ACEOF
19619 #define HAVE_DECL_STRTOIMAX $ac_have_decl
19620 _ACEOF
19621
19622
19623
19624 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
19625 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
19626 ac_have_decl=1
19627 else
19628 ac_have_decl=0
19629 fi
19630
19631 cat >>confdefs.h <<_ACEOF
19632 #define HAVE_DECL_STRTOUMAX $ac_have_decl
19633 _ACEOF
19634
19635
19636
19637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
19638 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
19639 if test "${ac_cv_header_stat_broken+set}" = set; then :
19640 $as_echo_n "(cached) " >&6
19641 else
19642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19643 /* end confdefs.h. */
19644 #include <sys/types.h>
19645 #include <sys/stat.h>
19646
19647 #if defined S_ISBLK && defined S_IFDIR
19648 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19649 #endif
19650
19651 #if defined S_ISBLK && defined S_IFCHR
19652 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19653 #endif
19654
19655 #if defined S_ISLNK && defined S_IFREG
19656 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19657 #endif
19658
19659 #if defined S_ISSOCK && defined S_IFREG
19660 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19661 #endif
19662
19663 _ACEOF
19664 if ac_fn_c_try_compile "$LINENO"; then :
19665 ac_cv_header_stat_broken=no
19666 else
19667 ac_cv_header_stat_broken=yes
19668 fi
19669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19670 fi
19671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
19672 $as_echo "$ac_cv_header_stat_broken" >&6; }
19673 if test $ac_cv_header_stat_broken = yes; then
19674
19675 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
19676
19677 fi
19678
19679
19680
19681 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
19682 if test "x$ac_cv_type_mode_t" = x""yes; then :
19683
19684 else
19685
19686 cat >>confdefs.h <<_ACEOF
19687 #define mode_t int
19688 _ACEOF
19689
19690 fi
19691
19692
19693
19694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
19695 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
19696 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
19697 $as_echo_n "(cached) " >&6
19698 else
19699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19700 /* end confdefs.h. */
19701 #include <time.h>
19702
19703 int
19704 main ()
19705 {
19706 static struct timespec x; x.tv_sec = x.tv_nsec;
19707 ;
19708 return 0;
19709 }
19710 _ACEOF
19711 if ac_fn_c_try_compile "$LINENO"; then :
19712 gl_cv_sys_struct_timespec_in_time_h=yes
19713 else
19714 gl_cv_sys_struct_timespec_in_time_h=no
19715 fi
19716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19717 fi
19718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
19719 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
19720
19721 TIME_H_DEFINES_STRUCT_TIMESPEC=0
19722 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
19723 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
19724 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
19725 TIME_H_DEFINES_STRUCT_TIMESPEC=1
19726 else
19727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
19728 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
19729 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
19730 $as_echo_n "(cached) " >&6
19731 else
19732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19733 /* end confdefs.h. */
19734 #include <sys/time.h>
19735
19736 int
19737 main ()
19738 {
19739 static struct timespec x; x.tv_sec = x.tv_nsec;
19740 ;
19741 return 0;
19742 }
19743 _ACEOF
19744 if ac_fn_c_try_compile "$LINENO"; then :
19745 gl_cv_sys_struct_timespec_in_sys_time_h=yes
19746 else
19747 gl_cv_sys_struct_timespec_in_sys_time_h=no
19748 fi
19749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19750 fi
19751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
19752 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
19753 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
19754 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
19755 else
19756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
19757 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
19758 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
19759 $as_echo_n "(cached) " >&6
19760 else
19761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19762 /* end confdefs.h. */
19763 #include <pthread.h>
19764
19765 int
19766 main ()
19767 {
19768 static struct timespec x; x.tv_sec = x.tv_nsec;
19769 ;
19770 return 0;
19771 }
19772 _ACEOF
19773 if ac_fn_c_try_compile "$LINENO"; then :
19774 gl_cv_sys_struct_timespec_in_pthread_h=yes
19775 else
19776 gl_cv_sys_struct_timespec_in_pthread_h=no
19777 fi
19778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19779 fi
19780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
19781 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
19782 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
19783 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
19784 fi
19785 fi
19786 fi
19787
19788
19789
19790
19791
19792
19793
19794
19795
19796
19797
19798
19799
19800
19801
19802 if test $gl_cv_have_include_next = yes; then
19803 gl_cv_next_time_h='<'time.h'>'
19804 else
19805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
19806 $as_echo_n "checking absolute name of <time.h>... " >&6; }
19807 if test "${gl_cv_next_time_h+set}" = set; then :
19808 $as_echo_n "(cached) " >&6
19809 else
19810
19811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19812 /* end confdefs.h. */
19813 #include <time.h>
19814
19815 _ACEOF
19816 case "$host_os" in
19817 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19818 *) gl_absname_cpp="$ac_cpp" ;;
19819 esac
19820
19821 case "$host_os" in
19822 mingw*)
19823 gl_dirsep_regex='[/\\]'
19824 ;;
19825 *)
19826 gl_dirsep_regex='\/'
19827 ;;
19828 esac
19829 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19830
19831 gl_header_literal_regex=`echo 'time.h' \
19832 | sed -e "$gl_make_literal_regex_sed"`
19833 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19834 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19835 s|^/[^/]|//&|
19836 p
19837 q
19838 }'
19839 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19840 sed -n "$gl_absolute_header_sed"`'"'
19841
19842
19843 fi
19844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
19845 $as_echo "$gl_cv_next_time_h" >&6; }
19846 fi
19847 NEXT_TIME_H=$gl_cv_next_time_h
19848
19849 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19850 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19851 gl_next_as_first_directive='<'time.h'>'
19852 else
19853 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19854 gl_next_as_first_directive=$gl_cv_next_time_h
19855 fi
19856 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
19857
19858
19859
19860
19861
19862
19863
19864
19865
19866
19867
19868
19869
19870
19871
19872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
19873 $as_echo_n "checking whether the utimes function works... " >&6; }
19874 if test "${gl_cv_func_working_utimes+set}" = set; then :
19875 $as_echo_n "(cached) " >&6
19876 else
19877
19878 if test "$cross_compiling" = yes; then :
19879 gl_cv_func_working_utimes=no
19880 else
19881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19882 /* end confdefs.h. */
19883
19884 #include <sys/types.h>
19885 #include <sys/stat.h>
19886 #include <fcntl.h>
19887 #include <sys/time.h>
19888 #include <time.h>
19889 #include <unistd.h>
19890 #include <stdlib.h>
19891 #include <stdio.h>
19892 #include <utime.h>
19893
19894 static int
19895 inorder (time_t a, time_t b, time_t c)
19896 {
19897 return a <= b && b <= c;
19898 }
19899
19900 int
19901 main ()
19902 {
19903 int result = 0;
19904 char const *file = "conftest.utimes";
19905 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
19906
19907 /* Test whether utimes() essentially works. */
19908 {
19909 struct stat sbuf;
19910 FILE *f = fopen (file, "w");
19911 if (f == NULL)
19912 result |= 1;
19913 else if (fclose (f) != 0)
19914 result |= 1;
19915 else if (utimes (file, timeval) != 0)
19916 result |= 2;
19917 else if (lstat (file, &sbuf) != 0)
19918 result |= 1;
19919 else if (!(sbuf.st_atime == timeval[0].tv_sec
19920 && sbuf.st_mtime == timeval[1].tv_sec))
19921 result |= 4;
19922 if (unlink (file) != 0)
19923 result |= 1;
19924 }
19925
19926 /* Test whether utimes() with a NULL argument sets the file's timestamp
19927 to the current time. Use 'fstat' as well as 'time' to
19928 determine the "current" time, to accommodate NFS file systems
19929 if there is a time skew between the host and the NFS server. */
19930 {
19931 int fd = open (file, O_WRONLY|O_CREAT, 0644);
19932 if (fd < 0)
19933 result |= 1;
19934 else
19935 {
19936 time_t t0, t2;
19937 struct stat st0, st1, st2;
19938 if (time (&t0) == (time_t) -1)
19939 result |= 1;
19940 else if (fstat (fd, &st0) != 0)
19941 result |= 1;
19942 else if (utimes (file, timeval) != 0)
19943 result |= 2;
19944 else if (utimes (file, NULL) != 0)
19945 result |= 8;
19946 else if (fstat (fd, &st1) != 0)
19947 result |= 1;
19948 else if (write (fd, "\n", 1) != 1)
19949 result |= 1;
19950 else if (fstat (fd, &st2) != 0)
19951 result |= 1;
19952 else if (time (&t2) == (time_t) -1)
19953 result |= 1;
19954 else
19955 {
19956 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
19957 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
19958 if (! (st1.st_atime == st1.st_mtime))
19959 result |= 16;
19960 if (! (m_ok_POSIX || m_ok_NFS))
19961 result |= 32;
19962 }
19963 if (close (fd) != 0)
19964 result |= 1;
19965 }
19966 if (unlink (file) != 0)
19967 result |= 1;
19968 }
19969
19970 /* Test whether utimes() with a NULL argument works on read-only files. */
19971 {
19972 int fd = open (file, O_WRONLY|O_CREAT, 0444);
19973 if (fd < 0)
19974 result |= 1;
19975 else if (close (fd) != 0)
19976 result |= 1;
19977 else if (utimes (file, NULL) != 0)
19978 result |= 64;
19979 if (unlink (file) != 0)
19980 result |= 1;
19981 }
19982
19983 return result;
19984 }
19985
19986 _ACEOF
19987 if ac_fn_c_try_run "$LINENO"; then :
19988 gl_cv_func_working_utimes=yes
19989 else
19990 gl_cv_func_working_utimes=no
19991 fi
19992 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19993 conftest.$ac_objext conftest.beam conftest.$ac_ext
19994 fi
19995
19996 fi
19997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
19998 $as_echo "$gl_cv_func_working_utimes" >&6; }
19999
20000 if test $gl_cv_func_working_utimes = yes; then
20001
20002 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
20003
20004 fi
20005
20006
20007
20008
20009
20010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
20011 $as_echo_n "checking for struct utimbuf... " >&6; }
20012 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then :
20013 $as_echo_n "(cached) " >&6
20014 else
20015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20016 /* end confdefs.h. */
20017 #if HAVE_SYS_TIME_H
20018 #include <sys/time.h>
20019 #endif
20020 #include <time.h>
20021 #ifdef HAVE_UTIME_H
20022 #include <utime.h>
20023 #endif
20024
20025 int
20026 main ()
20027 {
20028 static struct utimbuf x; x.actime = x.modtime;
20029 ;
20030 return 0;
20031 }
20032 _ACEOF
20033 if ac_fn_c_try_compile "$LINENO"; then :
20034 gl_cv_sys_struct_utimbuf=yes
20035 else
20036 gl_cv_sys_struct_utimbuf=no
20037 fi
20038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20039 fi
20040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
20041 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
20042
20043 if test $gl_cv_sys_struct_utimbuf = yes; then
20044
20045 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
20046
20047 fi
20048
20049
20050
20051
20052
20053
20054
20055
20056
20057
20058
20059
20060 if false; then
20061 GL_COND_LIBTOOL_TRUE=
20062 GL_COND_LIBTOOL_FALSE='#'
20063 else
20064 GL_COND_LIBTOOL_TRUE='#'
20065 GL_COND_LIBTOOL_FALSE=
20066 fi
20067
20068 gl_cond_libtool=false
20069 gl_libdeps=
20070 gl_ltlibdeps=
20071 gl_m4_base='m4'
20072
20073
20074
20075
20076
20077
20078
20079
20080
20081 gl_source_base='lib'
20082
20083
20084 if test $ac_cv_func_alloca_works = no; then
20085 :
20086 fi
20087
20088 # Define an additional variable used in the Makefile substitution.
20089 if test $ac_cv_working_alloca_h = yes; then
20090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
20091 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
20092 if test "${gl_cv_rpl_alloca+set}" = set; then :
20093 $as_echo_n "(cached) " >&6
20094 else
20095
20096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20097 /* end confdefs.h. */
20098
20099 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
20100 Need own alloca
20101 #endif
20102
20103 _ACEOF
20104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20105 $EGREP "Need own alloca" >/dev/null 2>&1; then :
20106 gl_cv_rpl_alloca=yes
20107 else
20108 gl_cv_rpl_alloca=no
20109 fi
20110 rm -f conftest*
20111
20112
20113 fi
20114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
20115 $as_echo "$gl_cv_rpl_alloca" >&6; }
20116 if test $gl_cv_rpl_alloca = yes; then
20117
20118 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
20119
20120 ALLOCA_H=alloca.h
20121 else
20122 ALLOCA_H=
20123 fi
20124 else
20125 ALLOCA_H=alloca.h
20126 fi
20127
20128 if test -n "$ALLOCA_H"; then
20129 GL_GENERATE_ALLOCA_H_TRUE=
20130 GL_GENERATE_ALLOCA_H_FALSE='#'
20131 else
20132 GL_GENERATE_ALLOCA_H_TRUE='#'
20133 GL_GENERATE_ALLOCA_H_FALSE=
20134 fi
20135
20136
20137
20138
20139
20140
20141 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
20142 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
20143
20144 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
20145 # programs in the package would end up linked with that potentially-shared
20146 # library, inducing unnecessary run-time overhead.
20147 LIB_CLOCK_GETTIME=
20148
20149 gl_saved_libs=$LIBS
20150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
20151 $as_echo_n "checking for library containing clock_gettime... " >&6; }
20152 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20153 $as_echo_n "(cached) " >&6
20154 else
20155 ac_func_search_save_LIBS=$LIBS
20156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20157 /* end confdefs.h. */
20158
20159 /* Override any GCC internal prototype to avoid an error.
20160 Use char because int might match the return type of a GCC
20161 builtin and then its argument prototype would still apply. */
20162 #ifdef __cplusplus
20163 extern "C"
20164 #endif
20165 char clock_gettime ();
20166 int
20167 main ()
20168 {
20169 return clock_gettime ();
20170 ;
20171 return 0;
20172 }
20173 _ACEOF
20174 for ac_lib in '' rt posix4; do
20175 if test -z "$ac_lib"; then
20176 ac_res="none required"
20177 else
20178 ac_res=-l$ac_lib
20179 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20180 fi
20181 if ac_fn_c_try_link "$LINENO"; then :
20182 ac_cv_search_clock_gettime=$ac_res
20183 fi
20184 rm -f core conftest.err conftest.$ac_objext \
20185 conftest$ac_exeext
20186 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20187 break
20188 fi
20189 done
20190 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20191
20192 else
20193 ac_cv_search_clock_gettime=no
20194 fi
20195 rm conftest.$ac_ext
20196 LIBS=$ac_func_search_save_LIBS
20197 fi
20198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
20199 $as_echo "$ac_cv_search_clock_gettime" >&6; }
20200 ac_res=$ac_cv_search_clock_gettime
20201 if test "$ac_res" != no; then :
20202 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20203 test "$ac_cv_search_clock_gettime" = "none required" ||
20204 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
20205 fi
20206
20207 for ac_func in clock_gettime clock_settime
20208 do :
20209 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20210 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20211 eval as_val=\$$as_ac_var
20212 if test "x$as_val" = x""yes; then :
20213 cat >>confdefs.h <<_ACEOF
20214 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20215 _ACEOF
20216
20217 fi
20218 done
20219
20220 LIBS=$gl_saved_libs
20221
20222
20223
20224
20225 :
20226
20227
20228
20229
20230 :
20231
20232
20233
20234
20235
20236
20237
20238
20239
20240
20241
20242
20243
20244
20245
20246 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
20247
20248
20249 if test $HAVE_DUP2 = 1; then
20250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
20251 $as_echo_n "checking whether dup2 works... " >&6; }
20252 if test "${gl_cv_func_dup2_works+set}" = set; then :
20253 $as_echo_n "(cached) " >&6
20254 else
20255 if test "$cross_compiling" = yes; then :
20256 case "$host_os" in
20257 mingw*) # on this platform, dup2 always returns 0 for success
20258 gl_cv_func_dup2_works="guessing no" ;;
20259 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
20260 gl_cv_func_dup2_works="guessing no" ;;
20261 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
20262 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
20263 gl_cv_func_dup2_works="guessing no" ;;
20264 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
20265 gl_cv_func_dup2_works="guessing no" ;;
20266 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
20267 gl_cv_func_dup2_works="guessing no" ;;
20268 *) gl_cv_func_dup2_works="guessing yes" ;;
20269 esac
20270 else
20271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20272 /* end confdefs.h. */
20273
20274 #include <unistd.h>
20275 #include <fcntl.h>
20276 #include <errno.h>
20277 int
20278 main ()
20279 {
20280 int result = 0;
20281 #ifdef FD_CLOEXEC
20282 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
20283 result |= 1;
20284 #endif
20285 if (dup2 (1, 1) == 0)
20286 result |= 2;
20287 #ifdef FD_CLOEXEC
20288 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
20289 result |= 4;
20290 #endif
20291 close (0);
20292 if (dup2 (0, 0) != -1)
20293 result |= 8;
20294 /* Many gnulib modules require POSIX conformance of EBADF. */
20295 if (dup2 (2, 1000000) == -1 && errno != EBADF)
20296 result |= 16;
20297 return result;
20298
20299 ;
20300 return 0;
20301 }
20302
20303 _ACEOF
20304 if ac_fn_c_try_run "$LINENO"; then :
20305 gl_cv_func_dup2_works=yes
20306 else
20307 gl_cv_func_dup2_works=no
20308 fi
20309 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20310 conftest.$ac_objext conftest.beam conftest.$ac_ext
20311 fi
20312
20313
20314 fi
20315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
20316 $as_echo "$gl_cv_func_dup2_works" >&6; }
20317 case "$gl_cv_func_dup2_works" in
20318 *yes) ;;
20319 *)
20320 REPLACE_DUP2=1
20321 ;;
20322 esac
20323 fi
20324
20325
20326 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
20327
20328
20329
20330
20331
20332
20333
20334
20335 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
20336
20337
20338 fi
20339
20340
20341
20342
20343
20344 GNULIB_DUP2=1
20345
20346
20347
20348
20349
20350
20351
20352
20353
20354
20355
20356 GNULIB_ENVIRON=1
20357
20358
20359
20360
20361
20362
20363
20364
20365 LIB_EXECINFO=''
20366 EXECINFO_H='execinfo.h'
20367
20368 if test $ac_cv_header_execinfo_h = yes; then
20369 gl_saved_libs=$LIBS
20370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols_fd" >&5
20371 $as_echo_n "checking for library containing backtrace_symbols_fd... " >&6; }
20372 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20373 $as_echo_n "(cached) " >&6
20374 else
20375 ac_func_search_save_LIBS=$LIBS
20376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20377 /* end confdefs.h. */
20378
20379 /* Override any GCC internal prototype to avoid an error.
20380 Use char because int might match the return type of a GCC
20381 builtin and then its argument prototype would still apply. */
20382 #ifdef __cplusplus
20383 extern "C"
20384 #endif
20385 char backtrace_symbols_fd ();
20386 int
20387 main ()
20388 {
20389 return backtrace_symbols_fd ();
20390 ;
20391 return 0;
20392 }
20393 _ACEOF
20394 for ac_lib in '' execinfo; do
20395 if test -z "$ac_lib"; then
20396 ac_res="none required"
20397 else
20398 ac_res=-l$ac_lib
20399 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20400 fi
20401 if ac_fn_c_try_link "$LINENO"; then :
20402 ac_cv_search_backtrace_symbols_fd=$ac_res
20403 fi
20404 rm -f core conftest.err conftest.$ac_objext \
20405 conftest$ac_exeext
20406 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20407 break
20408 fi
20409 done
20410 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20411
20412 else
20413 ac_cv_search_backtrace_symbols_fd=no
20414 fi
20415 rm conftest.$ac_ext
20416 LIBS=$ac_func_search_save_LIBS
20417 fi
20418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols_fd" >&5
20419 $as_echo "$ac_cv_search_backtrace_symbols_fd" >&6; }
20420 ac_res=$ac_cv_search_backtrace_symbols_fd
20421 if test "$ac_res" != no; then :
20422 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20423 test "$ac_cv_search_backtrace_symbols_fd" = "none required" ||
20424 LIB_EXECINFO=$ac_cv_search_backtrace_symbols_fd
20425 fi
20426
20427 LIBS=$gl_saved_libs
20428 test "$ac_cv_search_backtrace_symbols_fd" = no || EXECINFO_H=''
20429 fi
20430
20431 if test -n "$EXECINFO_H"; then
20432
20433
20434
20435
20436
20437
20438
20439
20440 gl_LIBOBJS="$gl_LIBOBJS execinfo.$ac_objext"
20441
20442 fi
20443
20444
20445
20446 if test -n "$EXECINFO_H"; then
20447 GL_GENERATE_EXECINFO_H_TRUE=
20448 GL_GENERATE_EXECINFO_H_FALSE='#'
20449 else
20450 GL_GENERATE_EXECINFO_H_TRUE='#'
20451 GL_GENERATE_EXECINFO_H_FALSE=
20452 fi
20453
20454
20455
20456
20457
20458
20459
20460
20461
20462 # Persuade glibc <stdlib.h> to declare getloadavg().
20463
20464
20465 gl_save_LIBS=$LIBS
20466
20467 # getloadvg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
20468 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
20469 HAVE_GETLOADAVG=1
20470 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
20471 if test "x$ac_cv_func_getloadavg" = x""yes; then :
20472
20473 else
20474 gl_func_getloadavg_done=no
20475
20476 # Some systems with -lutil have (and need) -lkvm as well, some do not.
20477 # On Solaris, -lkvm requires nlist from -lelf, so check that first
20478 # to get the right answer into the cache.
20479 # For kstat on solaris, we need to test for libelf and libkvm to force the
20480 # definition of SVR4 below.
20481 if test $gl_func_getloadavg_done = no; then
20482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
20483 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
20484 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
20485 $as_echo_n "(cached) " >&6
20486 else
20487 ac_check_lib_save_LIBS=$LIBS
20488 LIBS="-lelf $LIBS"
20489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20490 /* end confdefs.h. */
20491
20492 /* Override any GCC internal prototype to avoid an error.
20493 Use char because int might match the return type of a GCC
20494 builtin and then its argument prototype would still apply. */
20495 #ifdef __cplusplus
20496 extern "C"
20497 #endif
20498 char elf_begin ();
20499 int
20500 main ()
20501 {
20502 return elf_begin ();
20503 ;
20504 return 0;
20505 }
20506 _ACEOF
20507 if ac_fn_c_try_link "$LINENO"; then :
20508 ac_cv_lib_elf_elf_begin=yes
20509 else
20510 ac_cv_lib_elf_elf_begin=no
20511 fi
20512 rm -f core conftest.err conftest.$ac_objext \
20513 conftest$ac_exeext conftest.$ac_ext
20514 LIBS=$ac_check_lib_save_LIBS
20515 fi
20516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
20517 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
20518 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
20519 LIBS="-lelf $LIBS"
20520 fi
20521
20522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
20523 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
20524 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
20525 $as_echo_n "(cached) " >&6
20526 else
20527 ac_check_lib_save_LIBS=$LIBS
20528 LIBS="-lkvm $LIBS"
20529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20530 /* end confdefs.h. */
20531
20532 /* Override any GCC internal prototype to avoid an error.
20533 Use char because int might match the return type of a GCC
20534 builtin and then its argument prototype would still apply. */
20535 #ifdef __cplusplus
20536 extern "C"
20537 #endif
20538 char kvm_open ();
20539 int
20540 main ()
20541 {
20542 return kvm_open ();
20543 ;
20544 return 0;
20545 }
20546 _ACEOF
20547 if ac_fn_c_try_link "$LINENO"; then :
20548 ac_cv_lib_kvm_kvm_open=yes
20549 else
20550 ac_cv_lib_kvm_kvm_open=no
20551 fi
20552 rm -f core conftest.err conftest.$ac_objext \
20553 conftest$ac_exeext conftest.$ac_ext
20554 LIBS=$ac_check_lib_save_LIBS
20555 fi
20556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
20557 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
20558 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
20559 LIBS="-lkvm $LIBS"
20560 fi
20561
20562 # Check for the 4.4BSD definition of getloadavg.
20563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
20564 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
20565 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
20566 $as_echo_n "(cached) " >&6
20567 else
20568 ac_check_lib_save_LIBS=$LIBS
20569 LIBS="-lutil $LIBS"
20570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20571 /* end confdefs.h. */
20572
20573 /* Override any GCC internal prototype to avoid an error.
20574 Use char because int might match the return type of a GCC
20575 builtin and then its argument prototype would still apply. */
20576 #ifdef __cplusplus
20577 extern "C"
20578 #endif
20579 char getloadavg ();
20580 int
20581 main ()
20582 {
20583 return getloadavg ();
20584 ;
20585 return 0;
20586 }
20587 _ACEOF
20588 if ac_fn_c_try_link "$LINENO"; then :
20589 ac_cv_lib_util_getloadavg=yes
20590 else
20591 ac_cv_lib_util_getloadavg=no
20592 fi
20593 rm -f core conftest.err conftest.$ac_objext \
20594 conftest$ac_exeext conftest.$ac_ext
20595 LIBS=$ac_check_lib_save_LIBS
20596 fi
20597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
20598 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
20599 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
20600 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
20601 fi
20602
20603 fi
20604
20605 if test $gl_func_getloadavg_done = no; then
20606 # There is a commonly available library for RS/6000 AIX.
20607 # Since it is not a standard part of AIX, it might be installed locally.
20608 gl_getloadavg_LIBS=$LIBS
20609 LIBS="-L/usr/local/lib $LIBS"
20610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
20611 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
20612 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
20613 $as_echo_n "(cached) " >&6
20614 else
20615 ac_check_lib_save_LIBS=$LIBS
20616 LIBS="-lgetloadavg $LIBS"
20617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20618 /* end confdefs.h. */
20619
20620 /* Override any GCC internal prototype to avoid an error.
20621 Use char because int might match the return type of a GCC
20622 builtin and then its argument prototype would still apply. */
20623 #ifdef __cplusplus
20624 extern "C"
20625 #endif
20626 char getloadavg ();
20627 int
20628 main ()
20629 {
20630 return getloadavg ();
20631 ;
20632 return 0;
20633 }
20634 _ACEOF
20635 if ac_fn_c_try_link "$LINENO"; then :
20636 ac_cv_lib_getloadavg_getloadavg=yes
20637 else
20638 ac_cv_lib_getloadavg_getloadavg=no
20639 fi
20640 rm -f core conftest.err conftest.$ac_objext \
20641 conftest$ac_exeext conftest.$ac_ext
20642 LIBS=$ac_check_lib_save_LIBS
20643 fi
20644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
20645 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
20646 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
20647 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
20648 else
20649 LIBS=$gl_getloadavg_LIBS
20650 fi
20651
20652 fi
20653
20654 # Set up the replacement function if necessary.
20655 if test $gl_func_getloadavg_done = no; then
20656 HAVE_GETLOADAVG=0
20657
20658 # Solaris has libkstat which does not require root.
20659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
20660 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
20661 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
20662 $as_echo_n "(cached) " >&6
20663 else
20664 ac_check_lib_save_LIBS=$LIBS
20665 LIBS="-lkstat $LIBS"
20666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20667 /* end confdefs.h. */
20668
20669 /* Override any GCC internal prototype to avoid an error.
20670 Use char because int might match the return type of a GCC
20671 builtin and then its argument prototype would still apply. */
20672 #ifdef __cplusplus
20673 extern "C"
20674 #endif
20675 char kstat_open ();
20676 int
20677 main ()
20678 {
20679 return kstat_open ();
20680 ;
20681 return 0;
20682 }
20683 _ACEOF
20684 if ac_fn_c_try_link "$LINENO"; then :
20685 ac_cv_lib_kstat_kstat_open=yes
20686 else
20687 ac_cv_lib_kstat_kstat_open=no
20688 fi
20689 rm -f core conftest.err conftest.$ac_objext \
20690 conftest$ac_exeext conftest.$ac_ext
20691 LIBS=$ac_check_lib_save_LIBS
20692 fi
20693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
20694 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
20695 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
20696 cat >>confdefs.h <<_ACEOF
20697 #define HAVE_LIBKSTAT 1
20698 _ACEOF
20699
20700 LIBS="-lkstat $LIBS"
20701
20702 fi
20703
20704 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
20705
20706 # AIX has libperfstat which does not require root
20707 if test $gl_func_getloadavg_done = no; then
20708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
20709 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
20710 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
20711 $as_echo_n "(cached) " >&6
20712 else
20713 ac_check_lib_save_LIBS=$LIBS
20714 LIBS="-lperfstat $LIBS"
20715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20716 /* end confdefs.h. */
20717
20718 /* Override any GCC internal prototype to avoid an error.
20719 Use char because int might match the return type of a GCC
20720 builtin and then its argument prototype would still apply. */
20721 #ifdef __cplusplus
20722 extern "C"
20723 #endif
20724 char perfstat_cpu_total ();
20725 int
20726 main ()
20727 {
20728 return perfstat_cpu_total ();
20729 ;
20730 return 0;
20731 }
20732 _ACEOF
20733 if ac_fn_c_try_link "$LINENO"; then :
20734 ac_cv_lib_perfstat_perfstat_cpu_total=yes
20735 else
20736 ac_cv_lib_perfstat_perfstat_cpu_total=no
20737 fi
20738 rm -f core conftest.err conftest.$ac_objext \
20739 conftest$ac_exeext conftest.$ac_ext
20740 LIBS=$ac_check_lib_save_LIBS
20741 fi
20742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
20743 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
20744 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
20745 cat >>confdefs.h <<_ACEOF
20746 #define HAVE_LIBPERFSTAT 1
20747 _ACEOF
20748
20749 LIBS="-lperfstat $LIBS"
20750
20751 fi
20752
20753 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
20754 fi
20755
20756 if test $gl_func_getloadavg_done = no; then
20757 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
20758 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
20759 gl_func_getloadavg_done=yes
20760
20761 $as_echo "#define DGUX 1" >>confdefs.h
20762
20763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
20764 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
20765 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
20766 $as_echo_n "(cached) " >&6
20767 else
20768 ac_check_lib_save_LIBS=$LIBS
20769 LIBS="-ldgc $LIBS"
20770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20771 /* end confdefs.h. */
20772
20773 /* Override any GCC internal prototype to avoid an error.
20774 Use char because int might match the return type of a GCC
20775 builtin and then its argument prototype would still apply. */
20776 #ifdef __cplusplus
20777 extern "C"
20778 #endif
20779 char dg_sys_info ();
20780 int
20781 main ()
20782 {
20783 return dg_sys_info ();
20784 ;
20785 return 0;
20786 }
20787 _ACEOF
20788 if ac_fn_c_try_link "$LINENO"; then :
20789 ac_cv_lib_dgc_dg_sys_info=yes
20790 else
20791 ac_cv_lib_dgc_dg_sys_info=no
20792 fi
20793 rm -f core conftest.err conftest.$ac_objext \
20794 conftest$ac_exeext conftest.$ac_ext
20795 LIBS=$ac_check_lib_save_LIBS
20796 fi
20797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
20798 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
20799 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
20800 cat >>confdefs.h <<_ACEOF
20801 #define HAVE_LIBDGC 1
20802 _ACEOF
20803
20804 LIBS="-ldgc $LIBS"
20805
20806 fi
20807
20808 fi
20809
20810
20811 fi
20812 fi
20813 fi
20814
20815
20816 if test "x$gl_save_LIBS" = x; then
20817 GETLOADAVG_LIBS=$LIBS
20818 else
20819 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
20820 fi
20821 LIBS=$gl_save_LIBS
20822
20823
20824 # Test whether the system declares getloadavg. Solaris has the function
20825 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
20826 for ac_header in sys/loadavg.h
20827 do :
20828 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
20829 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
20830 cat >>confdefs.h <<_ACEOF
20831 #define HAVE_SYS_LOADAVG_H 1
20832 _ACEOF
20833
20834 fi
20835
20836 done
20837
20838 if test $ac_cv_header_sys_loadavg_h = yes; then
20839 HAVE_SYS_LOADAVG_H=1
20840 else
20841 HAVE_SYS_LOADAVG_H=0
20842 fi
20843 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
20844 # include <sys/loadavg.h>
20845 #endif
20846 #include <stdlib.h>
20847 "
20848 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
20849
20850 else
20851 HAVE_DECL_GETLOADAVG=0
20852 fi
20853
20854
20855 if test $HAVE_GETLOADAVG = 0; then
20856
20857
20858
20859
20860
20861
20862
20863
20864 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
20865
20866
20867 # Figure out what our getloadavg.c needs.
20868
20869
20870
20871 # On HPUX9, an unprivileged user can get load averages this way.
20872 if test $gl_func_getloadavg_done = no; then
20873 for ac_func in pstat_getdynamic
20874 do :
20875 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
20876 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
20877 cat >>confdefs.h <<_ACEOF
20878 #define HAVE_PSTAT_GETDYNAMIC 1
20879 _ACEOF
20880 gl_func_getloadavg_done=yes
20881 fi
20882 done
20883
20884 fi
20885
20886 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
20887 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
20888 # Irix 4.0.5F has the header but not the library.
20889 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
20890 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
20891 gl_func_getloadavg_done=yes
20892
20893 $as_echo "#define SVR4 1" >>confdefs.h
20894
20895 fi
20896
20897 if test $gl_func_getloadavg_done = no; then
20898 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
20899 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
20900 gl_func_getloadavg_done=yes
20901
20902 $as_echo "#define UMAX 1" >>confdefs.h
20903
20904
20905 $as_echo "#define UMAX4_3 1" >>confdefs.h
20906
20907 fi
20908
20909
20910 fi
20911
20912 if test $gl_func_getloadavg_done = no; then
20913 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
20914 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
20915 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
20916
20917 fi
20918
20919
20920 fi
20921
20922 if test $gl_func_getloadavg_done = no; then
20923 for ac_header in mach/mach.h
20924 do :
20925 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
20926 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
20927 cat >>confdefs.h <<_ACEOF
20928 #define HAVE_MACH_MACH_H 1
20929 _ACEOF
20930
20931 fi
20932
20933 done
20934
20935 fi
20936
20937 for ac_header in nlist.h
20938 do :
20939 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
20940 if test "x$ac_cv_header_nlist_h" = x""yes; then :
20941 cat >>confdefs.h <<_ACEOF
20942 #define HAVE_NLIST_H 1
20943 _ACEOF
20944 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
20945 "
20946 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
20947
20948 cat >>confdefs.h <<_ACEOF
20949 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
20950 _ACEOF
20951
20952
20953 fi
20954
20955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20956 /* end confdefs.h. */
20957 #include <nlist.h>
20958 int
20959 main ()
20960 {
20961 struct nlist x;
20962 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
20963 x.n_un.n_name = "";
20964 #else
20965 x.n_name = "";
20966 #endif
20967 ;
20968 return 0;
20969 }
20970 _ACEOF
20971 if ac_fn_c_try_link "$LINENO"; then :
20972
20973 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
20974
20975 fi
20976 rm -f core conftest.err conftest.$ac_objext \
20977 conftest$ac_exeext conftest.$ac_ext
20978
20979 fi
20980
20981 done
20982
20983 fi
20984
20985
20986
20987
20988
20989 GNULIB_GETLOADAVG=1
20990
20991
20992
20993
20994
20995
20996
20997
20998
20999
21000 if test $REPLACE_GETOPT = 1; then
21001
21002
21003
21004
21005
21006
21007
21008
21009 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
21010
21011
21012
21013
21014
21015
21016
21017
21018
21019 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
21020
21021
21022
21023
21024 GNULIB_GL_UNISTD_H_GETOPT=1
21025 fi
21026
21027
21028
21029
21030
21031
21032
21033 REPLACE_GETOPT=0
21034 if test -n "$gl_replace_getopt"; then
21035 REPLACE_GETOPT=1
21036 fi
21037
21038 if test $REPLACE_GETOPT = 1; then
21039
21040 GETOPT_H=getopt.h
21041
21042 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
21043
21044
21045
21046 fi
21047
21048 if test $REPLACE_GETOPT = 1; then
21049
21050
21051
21052
21053
21054
21055
21056
21057 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
21058
21059
21060
21061
21062
21063
21064
21065
21066
21067 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
21068
21069
21070
21071
21072 GNULIB_GL_UNISTD_H_GETOPT=1
21073 fi
21074
21075
21076
21077
21078
21079
21080
21081
21082
21083
21084
21085
21086 gl_gettimeofday_timezone=void
21087 if test $ac_cv_func_gettimeofday != yes; then
21088 HAVE_GETTIMEOFDAY=0
21089 else
21090
21091
21092
21093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
21094 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
21095 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
21096 $as_echo_n "(cached) " >&6
21097 else
21098 if test "$cross_compiling" = yes; then :
21099 # When cross-compiling:
21100 case "$host_os" in
21101 # Guess all is fine on glibc systems.
21102 *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
21103 # If we don't know, assume the worst.
21104 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
21105 esac
21106
21107 else
21108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21109 /* end confdefs.h. */
21110 #include <string.h>
21111 #include <sys/time.h>
21112 #include <time.h>
21113 #include <stdlib.h>
21114
21115 int
21116 main ()
21117 {
21118
21119 time_t t = 0;
21120 struct tm *lt;
21121 struct tm saved_lt;
21122 struct timeval tv;
21123 lt = localtime (&t);
21124 saved_lt = *lt;
21125 gettimeofday (&tv, NULL);
21126 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
21127
21128 ;
21129 return 0;
21130 }
21131 _ACEOF
21132 if ac_fn_c_try_run "$LINENO"; then :
21133 gl_cv_func_gettimeofday_clobber=no
21134 else
21135 gl_cv_func_gettimeofday_clobber=yes
21136 fi
21137 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21138 conftest.$ac_objext conftest.beam conftest.$ac_ext
21139 fi
21140
21141 fi
21142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
21143 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
21144
21145 case "$gl_cv_func_gettimeofday_clobber" in
21146 *yes)
21147 REPLACE_GETTIMEOFDAY=1
21148
21149
21150 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
21151
21152
21153 $as_echo "#define localtime rpl_localtime" >>confdefs.h
21154
21155
21156
21157 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
21158
21159 ;;
21160 esac
21161
21162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
21163 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
21164 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
21165 $as_echo_n "(cached) " >&6
21166 else
21167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21168 /* end confdefs.h. */
21169 #include <sys/time.h>
21170 struct timeval c;
21171 int gettimeofday (struct timeval *restrict, void *restrict);
21172
21173 int
21174 main ()
21175 {
21176 /* glibc uses struct timezone * rather than the POSIX void *
21177 if _GNU_SOURCE is defined. However, since the only portable
21178 use of gettimeofday uses NULL as the second parameter, and
21179 since the glibc definition is actually more typesafe, it is
21180 not worth wrapping this to get a compliant signature. */
21181 int (*f) (struct timeval *restrict, void *restrict)
21182 = gettimeofday;
21183 int x = f (&c, 0);
21184 return !(x | c.tv_sec | c.tv_usec);
21185
21186 ;
21187 return 0;
21188 }
21189 _ACEOF
21190 if ac_fn_c_try_compile "$LINENO"; then :
21191 gl_cv_func_gettimeofday_posix_signature=yes
21192 else
21193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21194 /* end confdefs.h. */
21195 #include <sys/time.h>
21196 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
21197
21198 int
21199 main ()
21200 {
21201
21202 ;
21203 return 0;
21204 }
21205 _ACEOF
21206 if ac_fn_c_try_compile "$LINENO"; then :
21207 gl_cv_func_gettimeofday_posix_signature=almost
21208 else
21209 gl_cv_func_gettimeofday_posix_signature=no
21210 fi
21211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21212 fi
21213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21214 fi
21215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
21216 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
21217 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
21218 gl_gettimeofday_timezone='struct timezone'
21219 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
21220 REPLACE_GETTIMEOFDAY=1
21221 fi
21222 if test $REPLACE_STRUCT_TIMEVAL = 1; then
21223 REPLACE_GETTIMEOFDAY=1
21224 fi
21225
21226 fi
21227
21228 cat >>confdefs.h <<_ACEOF
21229 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
21230 _ACEOF
21231
21232
21233 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
21234
21235
21236
21237
21238
21239
21240
21241
21242 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
21243
21244
21245 for ac_header in sys/timeb.h
21246 do :
21247 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
21248 if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
21249 cat >>confdefs.h <<_ACEOF
21250 #define HAVE_SYS_TIMEB_H 1
21251 _ACEOF
21252
21253 fi
21254
21255 done
21256
21257 for ac_func in _ftime
21258 do :
21259 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
21260 if test "x$ac_cv_func__ftime" = x""yes; then :
21261 cat >>confdefs.h <<_ACEOF
21262 #define HAVE__FTIME 1
21263 _ACEOF
21264
21265 fi
21266 done
21267
21268
21269 fi
21270
21271
21272
21273
21274
21275 GNULIB_GETTIMEOFDAY=1
21276
21277
21278
21279
21280
21281
21282
21283
21284
21285
21286 if test $ac_cv_func_lstat = yes; then
21287
21288 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
21289 *no)
21290 REPLACE_LSTAT=1
21291 ;;
21292 esac
21293 else
21294 HAVE_LSTAT=0
21295 fi
21296
21297 if test $REPLACE_LSTAT = 1; then
21298
21299
21300
21301
21302
21303
21304
21305
21306 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
21307
21308
21309
21310 :
21311
21312 fi
21313
21314
21315
21316
21317
21318 GNULIB_LSTAT=1
21319
21320
21321
21322
21323
21324
21325
21326
21327
21328
21329
21330 if test $APPLE_UNIVERSAL_BUILD = 1; then
21331 # A universal build on Apple Mac OS X platforms.
21332 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
21333 # But we need a configuration result that is valid in both modes.
21334 gl_cv_func_working_mktime=no
21335 fi
21336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
21337 $as_echo_n "checking for working mktime... " >&6; }
21338 if test "${gl_cv_func_working_mktime+set}" = set; then :
21339 $as_echo_n "(cached) " >&6
21340 else
21341 if test "$cross_compiling" = yes; then :
21342 gl_cv_func_working_mktime=no
21343 else
21344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21345 /* end confdefs.h. */
21346 /* Test program from Paul Eggert and Tony Leneis. */
21347 #include <limits.h>
21348 #include <stdlib.h>
21349 #include <time.h>
21350
21351 #ifdef HAVE_UNISTD_H
21352 # include <unistd.h>
21353 #endif
21354
21355 #ifndef HAVE_ALARM
21356 # define alarm(X) /* empty */
21357 #endif
21358
21359 /* Work around redefinition to rpl_putenv by other config tests. */
21360 #undef putenv
21361
21362 static time_t time_t_max;
21363 static time_t time_t_min;
21364
21365 /* Values we'll use to set the TZ environment variable. */
21366 static char *tz_strings[] = {
21367 (char *) 0, "TZ=GMT0", "TZ=JST-9",
21368 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
21369 };
21370 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
21371
21372 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
21373 Based on a problem report from Andreas Jaeger. */
21374 static int
21375 spring_forward_gap ()
21376 {
21377 /* glibc (up to about 1998-10-07) failed this test. */
21378 struct tm tm;
21379
21380 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
21381 instead of "TZ=America/Vancouver" in order to detect the bug even
21382 on systems that don't support the Olson extension, or don't have the
21383 full zoneinfo tables installed. */
21384 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
21385
21386 tm.tm_year = 98;
21387 tm.tm_mon = 3;
21388 tm.tm_mday = 5;
21389 tm.tm_hour = 2;
21390 tm.tm_min = 0;
21391 tm.tm_sec = 0;
21392 tm.tm_isdst = -1;
21393 return mktime (&tm) != (time_t) -1;
21394 }
21395
21396 static int
21397 mktime_test1 (time_t now)
21398 {
21399 struct tm *lt;
21400 return ! (lt = localtime (&now)) || mktime (lt) == now;
21401 }
21402
21403 static int
21404 mktime_test (time_t now)
21405 {
21406 return (mktime_test1 (now)
21407 && mktime_test1 ((time_t) (time_t_max - now))
21408 && mktime_test1 ((time_t) (time_t_min + now)));
21409 }
21410
21411 static int
21412 irix_6_4_bug ()
21413 {
21414 /* Based on code from Ariel Faigon. */
21415 struct tm tm;
21416 tm.tm_year = 96;
21417 tm.tm_mon = 3;
21418 tm.tm_mday = 0;
21419 tm.tm_hour = 0;
21420 tm.tm_min = 0;
21421 tm.tm_sec = 0;
21422 tm.tm_isdst = -1;
21423 mktime (&tm);
21424 return tm.tm_mon == 2 && tm.tm_mday == 31;
21425 }
21426
21427 static int
21428 bigtime_test (int j)
21429 {
21430 struct tm tm;
21431 time_t now;
21432 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
21433 now = mktime (&tm);
21434 if (now != (time_t) -1)
21435 {
21436 struct tm *lt = localtime (&now);
21437 if (! (lt
21438 && lt->tm_year == tm.tm_year
21439 && lt->tm_mon == tm.tm_mon
21440 && lt->tm_mday == tm.tm_mday
21441 && lt->tm_hour == tm.tm_hour
21442 && lt->tm_min == tm.tm_min
21443 && lt->tm_sec == tm.tm_sec
21444 && lt->tm_yday == tm.tm_yday
21445 && lt->tm_wday == tm.tm_wday
21446 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
21447 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
21448 return 0;
21449 }
21450 return 1;
21451 }
21452
21453 static int
21454 year_2050_test ()
21455 {
21456 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
21457 ignoring leap seconds. */
21458 unsigned long int answer = 2527315200UL;
21459
21460 struct tm tm;
21461 time_t t;
21462 tm.tm_year = 2050 - 1900;
21463 tm.tm_mon = 2 - 1;
21464 tm.tm_mday = 1;
21465 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
21466 tm.tm_isdst = -1;
21467
21468 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
21469 instead of "TZ=America/Vancouver" in order to detect the bug even
21470 on systems that don't support the Olson extension, or don't have the
21471 full zoneinfo tables installed. */
21472 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
21473
21474 t = mktime (&tm);
21475
21476 /* Check that the result is either a failure, or close enough
21477 to the correct answer that we can assume the discrepancy is
21478 due to leap seconds. */
21479 return (t == (time_t) -1
21480 || (0 < t && answer - 120 <= t && t <= answer + 120));
21481 }
21482
21483 int
21484 main ()
21485 {
21486 int result = 0;
21487 time_t t, delta;
21488 int i, j;
21489 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
21490 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
21491
21492 /* This test makes some buggy mktime implementations loop.
21493 Give up after 60 seconds; a mktime slower than that
21494 isn't worth using anyway. */
21495 alarm (60);
21496
21497 time_t_max = (! time_t_signed
21498 ? (time_t) -1
21499 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
21500 * 2 + 1));
21501 time_t_min = (! time_t_signed
21502 ? (time_t) 0
21503 : time_t_signed_magnitude
21504 ? ~ (time_t) 0
21505 : ~ time_t_max);
21506
21507 delta = time_t_max / 997; /* a suitable prime number */
21508 for (i = 0; i < N_STRINGS; i++)
21509 {
21510 if (tz_strings[i])
21511 putenv (tz_strings[i]);
21512
21513 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
21514 if (! mktime_test (t))
21515 result |= 1;
21516 if ((result & 2) == 0
21517 && ! (mktime_test ((time_t) 1)
21518 && mktime_test ((time_t) (60 * 60))
21519 && mktime_test ((time_t) (60 * 60 * 24))))
21520 result |= 2;
21521
21522 for (j = 1; (result & 4) == 0; j <<= 1)
21523 {
21524 if (! bigtime_test (j))
21525 result |= 4;
21526 if (INT_MAX / 2 < j)
21527 break;
21528 }
21529 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
21530 result |= 8;
21531 }
21532 if (! irix_6_4_bug ())
21533 result |= 16;
21534 if (! spring_forward_gap ())
21535 result |= 32;
21536 if (! year_2050_test ())
21537 result |= 64;
21538 return result;
21539 }
21540 _ACEOF
21541 if ac_fn_c_try_run "$LINENO"; then :
21542 gl_cv_func_working_mktime=yes
21543 else
21544 gl_cv_func_working_mktime=no
21545 fi
21546 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21547 conftest.$ac_objext conftest.beam conftest.$ac_ext
21548 fi
21549
21550
21551 fi
21552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
21553 $as_echo "$gl_cv_func_working_mktime" >&6; }
21554
21555 if test $gl_cv_func_working_mktime = no; then
21556 REPLACE_MKTIME=1
21557 else
21558 REPLACE_MKTIME=0
21559 fi
21560
21561 if test $REPLACE_MKTIME = 1; then
21562
21563
21564
21565
21566
21567
21568
21569
21570 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
21571
21572 :
21573 fi
21574
21575
21576
21577
21578
21579 GNULIB_MKTIME=1
21580
21581
21582
21583
21584
21585
21586
21587
21588
21589
21590
21591 if test $ac_cv_func_pselect = yes; then
21592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5
21593 $as_echo_n "checking whether signature of pselect conforms to POSIX... " >&6; }
21594 if test "${gl_cv_sig_pselect+set}" = set; then :
21595 $as_echo_n "(cached) " >&6
21596 else
21597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21598 /* end confdefs.h. */
21599 #include <sys/select.h>
21600
21601 int
21602 main ()
21603 {
21604 int (*p) (int, fd_set *, fd_set *, fd_set *restrict,
21605 struct timespec const *restrict,
21606 sigset_t const *restrict) = pselect;
21607 return !p;
21608 ;
21609 return 0;
21610 }
21611 _ACEOF
21612 if ac_fn_c_try_link "$LINENO"; then :
21613 gl_cv_sig_pselect=yes
21614 else
21615 gl_cv_sig_pselect=no
21616 fi
21617 rm -f core conftest.err conftest.$ac_objext \
21618 conftest$ac_exeext conftest.$ac_ext
21619 fi
21620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5
21621 $as_echo "$gl_cv_sig_pselect" >&6; }
21622 fi
21623
21624 if test $ac_cv_func_pselect = no || test $gl_cv_sig_pselect = no; then
21625 REPLACE_PSELECT=1
21626 fi
21627
21628 if test $HAVE_PSELECT = 0 || test $REPLACE_PSELECT = 1; then
21629
21630
21631
21632
21633
21634
21635
21636
21637 gl_LIBOBJS="$gl_LIBOBJS pselect.$ac_objext"
21638
21639 fi
21640
21641
21642
21643
21644
21645 GNULIB_PSELECT=1
21646
21647
21648
21649
21650
21651
21652
21653
21654
21655 LIB_PTHREAD_SIGMASK=
21656
21657
21658 if test $ac_cv_func_pthread_sigmask = yes; then
21659 :
21660 else
21661 HAVE_PTHREAD_SIGMASK=0
21662 REPLACE_PTHREAD_SIGMASK=1
21663 fi
21664
21665
21666
21667
21668 if test $HAVE_PTHREAD_SIGMASK = 1; then
21669
21670
21671 if test -z "$LIB_PTHREAD_SIGMASK"; then
21672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
21673 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
21674 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
21675 $as_echo_n "(cached) " >&6
21676 else
21677
21678 if test "$cross_compiling" = yes; then :
21679
21680 case "$host_os" in
21681 freebsd* | hpux* | solaris | solaris2.[2-9]*)
21682 gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
21683 *)
21684 gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
21685 esac
21686
21687 else
21688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21689 /* end confdefs.h. */
21690
21691 #include <pthread.h>
21692 #include <signal.h>
21693 #include <stddef.h>
21694 int main ()
21695 {
21696 sigset_t set;
21697 sigemptyset (&set);
21698 return pthread_sigmask (1729, &set, NULL) != 0;
21699 }
21700 _ACEOF
21701 if ac_fn_c_try_run "$LINENO"; then :
21702 gl_cv_func_pthread_sigmask_in_libc_works=no
21703 else
21704 gl_cv_func_pthread_sigmask_in_libc_works=yes
21705 fi
21706 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21707 conftest.$ac_objext conftest.beam conftest.$ac_ext
21708 fi
21709
21710
21711 fi
21712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
21713 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
21714 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
21715 *no)
21716 REPLACE_PTHREAD_SIGMASK=1
21717
21718 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
21719
21720 ;;
21721 esac
21722 fi
21723
21724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
21725 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
21726 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
21727 $as_echo_n "(cached) " >&6
21728 else
21729
21730 gl_save_LIBS="$LIBS"
21731 LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
21732 if test "$cross_compiling" = yes; then :
21733 case "$host_os" in
21734 cygwin*)
21735 gl_cv_func_pthread_sigmask_return_works="guessing no";;
21736 *)
21737 gl_cv_func_pthread_sigmask_return_works="guessing yes";;
21738 esac
21739
21740 else
21741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21742 /* end confdefs.h. */
21743
21744 #include <pthread.h>
21745 #include <signal.h>
21746 #include <stddef.h>
21747 int main ()
21748 {
21749 sigset_t set;
21750 sigemptyset (&set);
21751 if (pthread_sigmask (1729, &set, NULL) == -1)
21752 return 1;
21753 return 0;
21754 }
21755 _ACEOF
21756 if ac_fn_c_try_run "$LINENO"; then :
21757 gl_cv_func_pthread_sigmask_return_works=yes
21758 else
21759 gl_cv_func_pthread_sigmask_return_works=no
21760 fi
21761 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21762 conftest.$ac_objext conftest.beam conftest.$ac_ext
21763 fi
21764
21765 LIBS="$gl_save_LIBS"
21766
21767 fi
21768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
21769 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
21770 case "$gl_cv_func_pthread_sigmask_return_works" in
21771 *no)
21772 REPLACE_PTHREAD_SIGMASK=1
21773
21774 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
21775
21776 ;;
21777 esac
21778
21779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
21780 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
21781 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
21782 $as_echo_n "(cached) " >&6
21783 else
21784
21785 case "$host_os" in
21786 irix*)
21787 gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
21788 *)
21789 gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
21790 esac
21791 gl_save_LIBS="$LIBS"
21792 LIBS="$LIBS $LIBMULTITHREAD"
21793 if test "$cross_compiling" = yes; then :
21794 :
21795 else
21796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21797 /* end confdefs.h. */
21798
21799 #include <pthread.h>
21800 #include <signal.h>
21801 #include <stdio.h>
21802 #include <stdlib.h>
21803 #include <unistd.h>
21804 static volatile int sigint_occurred;
21805 static void
21806 sigint_handler (int sig)
21807 {
21808 sigint_occurred++;
21809 }
21810 int main ()
21811 {
21812 sigset_t set;
21813 int pid = getpid ();
21814 char command[80];
21815 signal (SIGINT, sigint_handler);
21816 sigemptyset (&set);
21817 sigaddset (&set, SIGINT);
21818 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
21819 return 1;
21820 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
21821 if (!(system (command) == 0))
21822 return 2;
21823 sleep (2);
21824 if (!(sigint_occurred == 0))
21825 return 3;
21826 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
21827 return 4;
21828 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
21829 return 5;
21830 return 0;
21831 }
21832 _ACEOF
21833 if ac_fn_c_try_run "$LINENO"; then :
21834 :
21835 else
21836 gl_cv_func_pthread_sigmask_unblock_works=no
21837 fi
21838 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21839 conftest.$ac_objext conftest.beam conftest.$ac_ext
21840 fi
21841
21842 LIBS="$gl_save_LIBS"
21843
21844 fi
21845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
21846 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
21847 case "$gl_cv_func_pthread_sigmask_unblock_works" in
21848 *no)
21849 REPLACE_PTHREAD_SIGMASK=1
21850
21851 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
21852
21853 ;;
21854 esac
21855 fi
21856
21857 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
21858
21859
21860
21861
21862
21863
21864
21865
21866 gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext"
21867
21868
21869 if test $HAVE_PTHREAD_SIGMASK = 1; then
21870
21871 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
21872
21873 fi
21874
21875 fi
21876
21877
21878
21879
21880
21881 GNULIB_PTHREAD_SIGMASK=1
21882
21883
21884
21885
21886
21887
21888
21889
21890 if test $ac_cv_func_readlink = no; then
21891 HAVE_READLINK=0
21892 else
21893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
21894 $as_echo_n "checking whether readlink signature is correct... " >&6; }
21895 if test "${gl_cv_decl_readlink_works+set}" = set; then :
21896 $as_echo_n "(cached) " >&6
21897 else
21898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21899 /* end confdefs.h. */
21900 #include <unistd.h>
21901 /* Cause compilation failure if original declaration has wrong type. */
21902 ssize_t readlink (const char *, char *, size_t);
21903 int
21904 main ()
21905 {
21906
21907 ;
21908 return 0;
21909 }
21910 _ACEOF
21911 if ac_fn_c_try_compile "$LINENO"; then :
21912 gl_cv_decl_readlink_works=yes
21913 else
21914 gl_cv_decl_readlink_works=no
21915 fi
21916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21917 fi
21918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
21919 $as_echo "$gl_cv_decl_readlink_works" >&6; }
21920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
21921 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
21922 if test "${gl_cv_func_readlink_works+set}" = set; then :
21923 $as_echo_n "(cached) " >&6
21924 else
21925 # We have readlink, so assume ln -s works.
21926 ln -s conftest.no-such conftest.link
21927 ln -s conftest.link conftest.lnk2
21928 if test "$cross_compiling" = yes; then :
21929 case "$host_os" in
21930 # Guess yes on glibc systems.
21931 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
21932 # If we don't know, assume the worst.
21933 *) gl_cv_func_readlink_works="guessing no" ;;
21934 esac
21935
21936 else
21937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21938 /* end confdefs.h. */
21939 #include <unistd.h>
21940
21941 int
21942 main ()
21943 {
21944 char buf[20];
21945 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
21946 ;
21947 return 0;
21948 }
21949 _ACEOF
21950 if ac_fn_c_try_run "$LINENO"; then :
21951 gl_cv_func_readlink_works=yes
21952 else
21953 gl_cv_func_readlink_works=no
21954 fi
21955 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21956 conftest.$ac_objext conftest.beam conftest.$ac_ext
21957 fi
21958
21959 rm -f conftest.link conftest.lnk2
21960 fi
21961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
21962 $as_echo "$gl_cv_func_readlink_works" >&6; }
21963 case "$gl_cv_func_readlink_works" in
21964 *yes)
21965 if test "$gl_cv_decl_readlink_works" != yes; then
21966 REPLACE_READLINK=1
21967 fi
21968 ;;
21969 *)
21970
21971 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
21972
21973 REPLACE_READLINK=1
21974 ;;
21975 esac
21976 fi
21977
21978 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
21979
21980
21981
21982
21983
21984
21985
21986
21987 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
21988
21989
21990 :
21991
21992 fi
21993
21994
21995
21996
21997
21998 GNULIB_READLINK=1
21999
22000
22001
22002
22003
22004
22005
22006
22007
22008
22009
22010
22011
22012
22013
22014
22015 if test $gl_cv_have_include_next = yes; then
22016 gl_cv_next_signal_h='<'signal.h'>'
22017 else
22018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
22019 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
22020 if test "${gl_cv_next_signal_h+set}" = set; then :
22021 $as_echo_n "(cached) " >&6
22022 else
22023
22024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22025 /* end confdefs.h. */
22026 #include <signal.h>
22027
22028 _ACEOF
22029 case "$host_os" in
22030 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22031 *) gl_absname_cpp="$ac_cpp" ;;
22032 esac
22033
22034 case "$host_os" in
22035 mingw*)
22036 gl_dirsep_regex='[/\\]'
22037 ;;
22038 *)
22039 gl_dirsep_regex='\/'
22040 ;;
22041 esac
22042 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22043
22044 gl_header_literal_regex=`echo 'signal.h' \
22045 | sed -e "$gl_make_literal_regex_sed"`
22046 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22047 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22048 s|^/[^/]|//&|
22049 p
22050 q
22051 }'
22052 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22053 sed -n "$gl_absolute_header_sed"`'"'
22054
22055
22056 fi
22057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
22058 $as_echo "$gl_cv_next_signal_h" >&6; }
22059 fi
22060 NEXT_SIGNAL_H=$gl_cv_next_signal_h
22061
22062 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22063 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22064 gl_next_as_first_directive='<'signal.h'>'
22065 else
22066 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22067 gl_next_as_first_directive=$gl_cv_next_signal_h
22068 fi
22069 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
22070
22071
22072
22073
22074
22075 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
22076 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
22077 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
22078 #include <signal.h>
22079
22080 "
22081 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
22082
22083 else
22084 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
22085 fi
22086
22087
22088
22089
22090
22091
22092
22093 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
22094 #include <signal.h>
22095
22096 "
22097 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
22098
22099 else
22100 HAVE_SIGHANDLER_T=0
22101 fi
22102
22103
22104
22105
22106 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
22107 /* <sys/types.h> is not needed according to POSIX, but the
22108 <sys/socket.h> in i386-unknown-freebsd4.10 and
22109 powerpc-apple-darwin5.5 required it. */
22110 #include <sys/types.h>
22111 #if HAVE_SYS_SOCKET_H
22112 # include <sys/socket.h>
22113 #elif HAVE_WS2TCPIP_H
22114 # include <ws2tcpip.h>
22115 #endif
22116
22117 "
22118 if test "x$ac_cv_type_socklen_t" = x""yes; then :
22119
22120 else
22121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
22122 $as_echo_n "checking for socklen_t equivalent... " >&6; }
22123 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
22124 $as_echo_n "(cached) " >&6
22125 else
22126 # Systems have either "struct sockaddr *" or
22127 # "void *" as the second argument to getpeername
22128 gl_cv_socklen_t_equiv=
22129 for arg2 in "struct sockaddr" void; do
22130 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
22131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22132 /* end confdefs.h. */
22133 #include <sys/types.h>
22134 #include <sys/socket.h>
22135
22136 int getpeername (int, $arg2 *, $t *);
22137 int
22138 main ()
22139 {
22140 $t len;
22141 getpeername (0, 0, &len);
22142 ;
22143 return 0;
22144 }
22145 _ACEOF
22146 if ac_fn_c_try_compile "$LINENO"; then :
22147 gl_cv_socklen_t_equiv="$t"
22148 fi
22149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22150 test "$gl_cv_socklen_t_equiv" != "" && break
22151 done
22152 test "$gl_cv_socklen_t_equiv" != "" && break
22153 done
22154
22155 fi
22156
22157 if test "$gl_cv_socklen_t_equiv" = ""; then
22158 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
22159 fi
22160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
22161 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
22162
22163 cat >>confdefs.h <<_ACEOF
22164 #define socklen_t $gl_cv_socklen_t_equiv
22165 _ACEOF
22166
22167 fi
22168
22169
22170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
22171 $as_echo_n "checking for ssize_t... " >&6; }
22172 if test "${gt_cv_ssize_t+set}" = set; then :
22173 $as_echo_n "(cached) " >&6
22174 else
22175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22176 /* end confdefs.h. */
22177 #include <sys/types.h>
22178 int
22179 main ()
22180 {
22181 int x = sizeof (ssize_t *) + sizeof (ssize_t);
22182 return !x;
22183 ;
22184 return 0;
22185 }
22186 _ACEOF
22187 if ac_fn_c_try_compile "$LINENO"; then :
22188 gt_cv_ssize_t=yes
22189 else
22190 gt_cv_ssize_t=no
22191 fi
22192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22193 fi
22194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
22195 $as_echo "$gt_cv_ssize_t" >&6; }
22196 if test $gt_cv_ssize_t = no; then
22197
22198 $as_echo "#define ssize_t int" >>confdefs.h
22199
22200 fi
22201
22202
22203
22204
22205
22206 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>
22207 #include <sys/stat.h>
22208 "
22209 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x""yes; then :
22210
22211 cat >>confdefs.h <<_ACEOF
22212 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
22213 _ACEOF
22214
22215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
22216 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
22217 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then :
22218 $as_echo_n "(cached) " >&6
22219 else
22220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22221 /* end confdefs.h. */
22222
22223 #include <sys/types.h>
22224 #include <sys/stat.h>
22225 #if HAVE_SYS_TIME_H
22226 # include <sys/time.h>
22227 #endif
22228 #include <time.h>
22229 struct timespec ts;
22230 struct stat st;
22231
22232 int
22233 main ()
22234 {
22235
22236 st.st_atim = ts;
22237
22238 ;
22239 return 0;
22240 }
22241 _ACEOF
22242 if ac_fn_c_try_compile "$LINENO"; then :
22243 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
22244 else
22245 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
22246 fi
22247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22248 fi
22249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
22250 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
22251 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
22252
22253 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
22254
22255 fi
22256 else
22257 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>
22258 #include <sys/stat.h>
22259 "
22260 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x""yes; then :
22261
22262 cat >>confdefs.h <<_ACEOF
22263 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
22264 _ACEOF
22265
22266
22267 else
22268 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
22269 #include <sys/stat.h>
22270 "
22271 if test "x$ac_cv_member_struct_stat_st_atimensec" = x""yes; then :
22272
22273 cat >>confdefs.h <<_ACEOF
22274 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
22275 _ACEOF
22276
22277
22278 else
22279 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>
22280 #include <sys/stat.h>
22281 "
22282 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x""yes; then :
22283
22284 cat >>confdefs.h <<_ACEOF
22285 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
22286 _ACEOF
22287
22288
22289 fi
22290
22291 fi
22292
22293 fi
22294
22295 fi
22296
22297
22298
22299
22300
22301 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>
22302 #include <sys/stat.h>
22303 "
22304 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x""yes; then :
22305
22306 cat >>confdefs.h <<_ACEOF
22307 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
22308 _ACEOF
22309
22310
22311 else
22312 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
22313 #include <sys/stat.h>
22314 "
22315 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x""yes; then :
22316
22317 cat >>confdefs.h <<_ACEOF
22318 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
22319 _ACEOF
22320
22321
22322 else
22323 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>
22324 #include <sys/stat.h>
22325 "
22326 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x""yes; then :
22327
22328 cat >>confdefs.h <<_ACEOF
22329 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
22330 _ACEOF
22331
22332
22333 fi
22334
22335 fi
22336
22337 fi
22338
22339
22340
22341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
22342 $as_echo_n "checking for working stdalign.h... " >&6; }
22343 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
22344 $as_echo_n "(cached) " >&6
22345 else
22346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22347 /* end confdefs.h. */
22348 #include <stdalign.h>
22349 #include <stddef.h>
22350
22351 /* Test that alignof yields a result consistent with offsetof.
22352 This catches GCC bug 52023
22353 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
22354 #ifdef __cplusplus
22355 template <class t> struct alignof_helper { char a; t b; };
22356 # define ao(type) offsetof (alignof_helper<type>, b)
22357 #else
22358 # define ao(type) offsetof (struct { char a; type b; }, b)
22359 #endif
22360 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
22361 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
22362 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
22363
22364 /* Test _Alignas only on platforms where gnulib can help. */
22365 #if \
22366 (__GNUC__ || __IBMC__ || __IBMCPP__ \
22367 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
22368 int alignas (8) alignas_int = 1;
22369 char test_alignas[_Alignof (alignas_int) == 8 ? 1 : -1];
22370 #endif
22371
22372 int
22373 main ()
22374 {
22375
22376 ;
22377 return 0;
22378 }
22379 _ACEOF
22380 if ac_fn_c_try_compile "$LINENO"; then :
22381 gl_cv_header_working_stdalign_h=yes
22382 else
22383 gl_cv_header_working_stdalign_h=no
22384 fi
22385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22386 fi
22387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
22388 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
22389
22390 if test $gl_cv_header_working_stdalign_h = yes; then
22391 STDALIGN_H=''
22392 else
22393 STDALIGN_H='stdalign.h'
22394 fi
22395
22396
22397 if test -n "$STDALIGN_H"; then
22398 GL_GENERATE_STDALIGN_H_TRUE=
22399 GL_GENERATE_STDALIGN_H_FALSE='#'
22400 else
22401 GL_GENERATE_STDALIGN_H_TRUE='#'
22402 GL_GENERATE_STDALIGN_H_FALSE=
22403 fi
22404
22405
22406
22407 STDARG_H=''
22408 NEXT_STDARG_H='<stdarg.h>'
22409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
22410 $as_echo_n "checking for va_copy... " >&6; }
22411 if test "${gl_cv_func_va_copy+set}" = set; then :
22412 $as_echo_n "(cached) " >&6
22413 else
22414
22415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22416 /* end confdefs.h. */
22417 #include <stdarg.h>
22418 int
22419 main ()
22420 {
22421
22422 #ifndef va_copy
22423 void (*func) (va_list, va_list) = va_copy;
22424 #endif
22425
22426 ;
22427 return 0;
22428 }
22429 _ACEOF
22430 if ac_fn_c_try_compile "$LINENO"; then :
22431 gl_cv_func_va_copy=yes
22432 else
22433 gl_cv_func_va_copy=no
22434 fi
22435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22436 fi
22437
22438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
22439 $as_echo "$gl_cv_func_va_copy" >&6; }
22440 if test $gl_cv_func_va_copy = no; then
22441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22442 /* end confdefs.h. */
22443 #if defined _AIX && !defined __GNUC__
22444 AIX vaccine
22445 #endif
22446
22447 _ACEOF
22448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22449 $EGREP "vaccine" >/dev/null 2>&1; then :
22450 gl_aixcc=yes
22451 else
22452 gl_aixcc=no
22453 fi
22454 rm -f conftest*
22455
22456 if test $gl_aixcc = yes; then
22457 STDARG_H=stdarg.h
22458
22459
22460
22461
22462
22463
22464
22465
22466 if test $gl_cv_have_include_next = yes; then
22467 gl_cv_next_stdarg_h='<'stdarg.h'>'
22468 else
22469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
22470 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
22471 if test "${gl_cv_next_stdarg_h+set}" = set; then :
22472 $as_echo_n "(cached) " >&6
22473 else
22474
22475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22476 /* end confdefs.h. */
22477 #include <stdarg.h>
22478
22479 _ACEOF
22480 case "$host_os" in
22481 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22482 *) gl_absname_cpp="$ac_cpp" ;;
22483 esac
22484
22485 case "$host_os" in
22486 mingw*)
22487 gl_dirsep_regex='[/\\]'
22488 ;;
22489 *)
22490 gl_dirsep_regex='\/'
22491 ;;
22492 esac
22493 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22494
22495 gl_header_literal_regex=`echo 'stdarg.h' \
22496 | sed -e "$gl_make_literal_regex_sed"`
22497 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22498 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22499 s|^/[^/]|//&|
22500 p
22501 q
22502 }'
22503 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22504 sed -n "$gl_absolute_header_sed"`'"'
22505
22506
22507 fi
22508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
22509 $as_echo "$gl_cv_next_stdarg_h" >&6; }
22510 fi
22511 NEXT_STDARG_H=$gl_cv_next_stdarg_h
22512
22513 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22514 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22515 gl_next_as_first_directive='<'stdarg.h'>'
22516 else
22517 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22518 gl_next_as_first_directive=$gl_cv_next_stdarg_h
22519 fi
22520 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
22521
22522
22523
22524
22525 if test "$gl_cv_next_stdarg_h" = '""'; then
22526 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
22527 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
22528 fi
22529 else
22530
22531 saved_as_echo_n="$as_echo_n"
22532 as_echo_n=':'
22533 if test "${gl_cv_func___va_copy+set}" = set; then :
22534 $as_echo_n "(cached) " >&6
22535 else
22536
22537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22538 /* end confdefs.h. */
22539 #include <stdarg.h>
22540 int
22541 main ()
22542 {
22543
22544 #ifndef __va_copy
22545 error, bail out
22546 #endif
22547
22548 ;
22549 return 0;
22550 }
22551 _ACEOF
22552 if ac_fn_c_try_compile "$LINENO"; then :
22553 gl_cv_func___va_copy=yes
22554 else
22555 gl_cv_func___va_copy=no
22556 fi
22557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22558 fi
22559
22560 as_echo_n="$saved_as_echo_n"
22561
22562 if test $gl_cv_func___va_copy = yes; then
22563
22564 $as_echo "#define va_copy __va_copy" >>confdefs.h
22565
22566 else
22567
22568
22569 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
22570
22571 fi
22572 fi
22573 fi
22574
22575 if test -n "$STDARG_H"; then
22576 GL_GENERATE_STDARG_H_TRUE=
22577 GL_GENERATE_STDARG_H_FALSE='#'
22578 else
22579 GL_GENERATE_STDARG_H_TRUE='#'
22580 GL_GENERATE_STDARG_H_FALSE=
22581 fi
22582
22583
22584
22585
22586
22587
22588 # Define two additional variables used in the Makefile substitution.
22589
22590 if test "$ac_cv_header_stdbool_h" = yes; then
22591 STDBOOL_H=''
22592 else
22593 STDBOOL_H='stdbool.h'
22594 fi
22595
22596 if test -n "$STDBOOL_H"; then
22597 GL_GENERATE_STDBOOL_H_TRUE=
22598 GL_GENERATE_STDBOOL_H_FALSE='#'
22599 else
22600 GL_GENERATE_STDBOOL_H_TRUE='#'
22601 GL_GENERATE_STDBOOL_H_FALSE=
22602 fi
22603
22604
22605 if test "$ac_cv_type__Bool" = yes; then
22606 HAVE__BOOL=1
22607 else
22608 HAVE__BOOL=0
22609 fi
22610
22611
22612
22613
22614
22615 STDDEF_H=
22616 if test $gt_cv_c_wchar_t = no; then
22617 HAVE_WCHAR_T=0
22618 STDDEF_H=stddef.h
22619 fi
22620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
22621 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
22622 if test "${gl_cv_decl_null_works+set}" = set; then :
22623 $as_echo_n "(cached) " >&6
22624 else
22625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22626 /* end confdefs.h. */
22627 #include <stddef.h>
22628 int test[2 * (sizeof NULL == sizeof (void *)) -1];
22629
22630 int
22631 main ()
22632 {
22633
22634 ;
22635 return 0;
22636 }
22637 _ACEOF
22638 if ac_fn_c_try_compile "$LINENO"; then :
22639 gl_cv_decl_null_works=yes
22640 else
22641 gl_cv_decl_null_works=no
22642 fi
22643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22644 fi
22645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
22646 $as_echo "$gl_cv_decl_null_works" >&6; }
22647 if test $gl_cv_decl_null_works = no; then
22648 REPLACE_NULL=1
22649 STDDEF_H=stddef.h
22650 fi
22651
22652 if test -n "$STDDEF_H"; then
22653 GL_GENERATE_STDDEF_H_TRUE=
22654 GL_GENERATE_STDDEF_H_FALSE='#'
22655 else
22656 GL_GENERATE_STDDEF_H_TRUE='#'
22657 GL_GENERATE_STDDEF_H_FALSE=
22658 fi
22659
22660 if test -n "$STDDEF_H"; then
22661
22662
22663
22664
22665
22666
22667
22668
22669 if test $gl_cv_have_include_next = yes; then
22670 gl_cv_next_stddef_h='<'stddef.h'>'
22671 else
22672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
22673 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
22674 if test "${gl_cv_next_stddef_h+set}" = set; then :
22675 $as_echo_n "(cached) " >&6
22676 else
22677
22678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22679 /* end confdefs.h. */
22680 #include <stddef.h>
22681
22682 _ACEOF
22683 case "$host_os" in
22684 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22685 *) gl_absname_cpp="$ac_cpp" ;;
22686 esac
22687
22688 case "$host_os" in
22689 mingw*)
22690 gl_dirsep_regex='[/\\]'
22691 ;;
22692 *)
22693 gl_dirsep_regex='\/'
22694 ;;
22695 esac
22696 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22697
22698 gl_header_literal_regex=`echo 'stddef.h' \
22699 | sed -e "$gl_make_literal_regex_sed"`
22700 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22701 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22702 s|^/[^/]|//&|
22703 p
22704 q
22705 }'
22706 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22707 sed -n "$gl_absolute_header_sed"`'"'
22708
22709
22710 fi
22711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
22712 $as_echo "$gl_cv_next_stddef_h" >&6; }
22713 fi
22714 NEXT_STDDEF_H=$gl_cv_next_stddef_h
22715
22716 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22717 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22718 gl_next_as_first_directive='<'stddef.h'>'
22719 else
22720 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22721 gl_next_as_first_directive=$gl_cv_next_stddef_h
22722 fi
22723 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
22724
22725
22726
22727
22728 fi
22729
22730
22731
22732
22733
22734
22735
22736
22737
22738
22739
22740
22741
22742 if test $gl_cv_have_include_next = yes; then
22743 gl_cv_next_stdio_h='<'stdio.h'>'
22744 else
22745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
22746 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
22747 if test "${gl_cv_next_stdio_h+set}" = set; then :
22748 $as_echo_n "(cached) " >&6
22749 else
22750
22751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22752 /* end confdefs.h. */
22753 #include <stdio.h>
22754
22755 _ACEOF
22756 case "$host_os" in
22757 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22758 *) gl_absname_cpp="$ac_cpp" ;;
22759 esac
22760
22761 case "$host_os" in
22762 mingw*)
22763 gl_dirsep_regex='[/\\]'
22764 ;;
22765 *)
22766 gl_dirsep_regex='\/'
22767 ;;
22768 esac
22769 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22770
22771 gl_header_literal_regex=`echo 'stdio.h' \
22772 | sed -e "$gl_make_literal_regex_sed"`
22773 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22774 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22775 s|^/[^/]|//&|
22776 p
22777 q
22778 }'
22779 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22780 sed -n "$gl_absolute_header_sed"`'"'
22781
22782
22783 fi
22784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
22785 $as_echo "$gl_cv_next_stdio_h" >&6; }
22786 fi
22787 NEXT_STDIO_H=$gl_cv_next_stdio_h
22788
22789 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22790 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22791 gl_next_as_first_directive='<'stdio.h'>'
22792 else
22793 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22794 gl_next_as_first_directive=$gl_cv_next_stdio_h
22795 fi
22796 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
22797
22798
22799
22800
22801
22802 GNULIB_FSCANF=1
22803
22804
22805 cat >>confdefs.h <<_ACEOF
22806 #define GNULIB_FSCANF 1
22807 _ACEOF
22808
22809
22810 GNULIB_SCANF=1
22811
22812
22813 cat >>confdefs.h <<_ACEOF
22814 #define GNULIB_SCANF 1
22815 _ACEOF
22816
22817
22818 GNULIB_FGETC=1
22819 GNULIB_GETC=1
22820 GNULIB_GETCHAR=1
22821 GNULIB_FGETS=1
22822 GNULIB_FREAD=1
22823
22824
22825 GNULIB_FPRINTF=1
22826 GNULIB_PRINTF=1
22827 GNULIB_VFPRINTF=1
22828 GNULIB_VPRINTF=1
22829 GNULIB_FPUTC=1
22830 GNULIB_PUTC=1
22831 GNULIB_PUTCHAR=1
22832 GNULIB_FPUTS=1
22833 GNULIB_PUTS=1
22834 GNULIB_FWRITE=1
22835
22836
22837
22838
22839
22840
22841
22842
22843
22844
22845
22846
22847
22848
22849
22850 if test $gl_cv_have_include_next = yes; then
22851 gl_cv_next_stdlib_h='<'stdlib.h'>'
22852 else
22853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
22854 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
22855 if test "${gl_cv_next_stdlib_h+set}" = set; then :
22856 $as_echo_n "(cached) " >&6
22857 else
22858
22859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22860 /* end confdefs.h. */
22861 #include <stdlib.h>
22862
22863 _ACEOF
22864 case "$host_os" in
22865 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22866 *) gl_absname_cpp="$ac_cpp" ;;
22867 esac
22868
22869 case "$host_os" in
22870 mingw*)
22871 gl_dirsep_regex='[/\\]'
22872 ;;
22873 *)
22874 gl_dirsep_regex='\/'
22875 ;;
22876 esac
22877 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22878
22879 gl_header_literal_regex=`echo 'stdlib.h' \
22880 | sed -e "$gl_make_literal_regex_sed"`
22881 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22882 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22883 s|^/[^/]|//&|
22884 p
22885 q
22886 }'
22887 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22888 sed -n "$gl_absolute_header_sed"`'"'
22889
22890
22891 fi
22892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
22893 $as_echo "$gl_cv_next_stdlib_h" >&6; }
22894 fi
22895 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
22896
22897 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22898 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22899 gl_next_as_first_directive='<'stdlib.h'>'
22900 else
22901 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22902 gl_next_as_first_directive=$gl_cv_next_stdlib_h
22903 fi
22904 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
22905
22906
22907
22908
22909
22910
22911
22912
22913
22914 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
22915
22916
22917
22918
22919
22920
22921
22922 $as_echo "#define my_strftime nstrftime" >>confdefs.h
22923
22924
22925
22926
22927
22928
22929
22930
22931 if test "$ac_cv_have_decl_strtoimax" != yes; then
22932 HAVE_DECL_STRTOIMAX=0
22933 fi
22934
22935 if test $ac_cv_func_strtoimax = yes; then
22936 HAVE_STRTOIMAX=1
22937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
22938 $as_echo_n "checking whether strtoimax works... " >&6; }
22939 if test "${gl_cv_func_strtoimax+set}" = set; then :
22940 $as_echo_n "(cached) " >&6
22941 else
22942 if test "$cross_compiling" = yes; then :
22943 case "$host_os" in
22944 # Guess no on AIX 5.
22945 aix5*) gl_cv_func_strtoimax="guessing no" ;;
22946 # Guess yes otherwise.
22947 *) gl_cv_func_strtoimax="guessing yes" ;;
22948 esac
22949
22950 else
22951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22952 /* end confdefs.h. */
22953
22954 #include <errno.h>
22955 #include <string.h>
22956 #include <inttypes.h>
22957 int main ()
22958 {
22959 if (sizeof (intmax_t) > sizeof (int))
22960 {
22961 const char *s = "4294967295";
22962 char *p;
22963 intmax_t res;
22964 errno = 0;
22965 res = strtoimax (s, &p, 10);
22966 if (p != s + strlen (s))
22967 return 1;
22968 if (errno != 0)
22969 return 2;
22970 if (res != (intmax_t) 65535 * (intmax_t) 65537)
22971 return 3;
22972 }
22973 else
22974 {
22975 const char *s = "2147483647";
22976 char *p;
22977 intmax_t res;
22978 errno = 0;
22979 res = strtoimax (s, &p, 10);
22980 if (p != s + strlen (s))
22981 return 1;
22982 if (errno != 0)
22983 return 2;
22984 if (res != 2147483647)
22985 return 3;
22986 }
22987 return 0;
22988 }
22989
22990 _ACEOF
22991 if ac_fn_c_try_run "$LINENO"; then :
22992 gl_cv_func_strtoimax=yes
22993 else
22994 gl_cv_func_strtoimax=no
22995 fi
22996 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22997 conftest.$ac_objext conftest.beam conftest.$ac_ext
22998 fi
22999
23000
23001 fi
23002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
23003 $as_echo "$gl_cv_func_strtoimax" >&6; }
23004 case "$gl_cv_func_strtoimax" in
23005 *no) REPLACE_STRTOIMAX=1 ;;
23006 esac
23007 else
23008 HAVE_STRTOIMAX=0
23009 fi
23010
23011 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
23012
23013
23014
23015
23016
23017
23018
23019
23020 gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext"
23021
23022
23023 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
23024 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
23025 ac_have_decl=1
23026 else
23027 ac_have_decl=0
23028 fi
23029
23030 cat >>confdefs.h <<_ACEOF
23031 #define HAVE_DECL_STRTOLL $ac_have_decl
23032 _ACEOF
23033
23034
23035
23036 fi
23037
23038
23039
23040
23041
23042 GNULIB_STRTOIMAX=1
23043
23044
23045
23046
23047
23048
23049
23050
23051
23052 if test "$ac_cv_have_decl_strtoumax" != yes; then
23053 HAVE_DECL_STRTOUMAX=0
23054 fi
23055
23056 if test $ac_cv_func_strtoumax = no; then
23057
23058
23059
23060
23061
23062
23063
23064
23065 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
23066
23067
23068 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
23069 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
23070 ac_have_decl=1
23071 else
23072 ac_have_decl=0
23073 fi
23074
23075 cat >>confdefs.h <<_ACEOF
23076 #define HAVE_DECL_STRTOULL $ac_have_decl
23077 _ACEOF
23078
23079
23080
23081 fi
23082
23083
23084
23085
23086
23087 GNULIB_STRTOUMAX=1
23088
23089
23090
23091
23092
23093
23094
23095 if test $ac_cv_func_symlink = no; then
23096 HAVE_SYMLINK=0
23097 else
23098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
23099 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
23100 if test "${gl_cv_func_symlink_works+set}" = set; then :
23101 $as_echo_n "(cached) " >&6
23102 else
23103 if test "$cross_compiling" = yes; then :
23104 case "$host_os" in
23105 # Guess yes on glibc systems.
23106 *-gnu*) gl_cv_func_symlink_works="guessing yes" ;;
23107 # If we don't know, assume the worst.
23108 *) gl_cv_func_symlink_works="guessing no" ;;
23109 esac
23110
23111 else
23112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23113 /* end confdefs.h. */
23114 #include <unistd.h>
23115
23116 int
23117 main ()
23118 {
23119 int result = 0;
23120 if (!symlink ("a", "conftest.link/"))
23121 result |= 1;
23122 if (symlink ("conftest.f", "conftest.lnk2"))
23123 result |= 2;
23124 else if (!symlink ("a", "conftest.lnk2/"))
23125 result |= 4;
23126 return result;
23127
23128 ;
23129 return 0;
23130 }
23131 _ACEOF
23132 if ac_fn_c_try_run "$LINENO"; then :
23133 gl_cv_func_symlink_works=yes
23134 else
23135 gl_cv_func_symlink_works=no
23136 fi
23137 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23138 conftest.$ac_objext conftest.beam conftest.$ac_ext
23139 fi
23140
23141 rm -f conftest.f conftest.link conftest.lnk2
23142 fi
23143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
23144 $as_echo "$gl_cv_func_symlink_works" >&6; }
23145 case "$gl_cv_func_symlink_works" in
23146 *yes) ;;
23147 *)
23148 REPLACE_SYMLINK=1
23149 ;;
23150 esac
23151 fi
23152
23153 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
23154
23155
23156
23157
23158
23159
23160
23161
23162 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
23163
23164 fi
23165
23166
23167
23168
23169
23170 GNULIB_SYMLINK=1
23171
23172
23173
23174
23175
23176
23177
23178
23179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
23180 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
23181 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
23182 $as_echo_n "(cached) " >&6
23183 else
23184
23185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23186 /* end confdefs.h. */
23187 #include <sys/select.h>
23188 int
23189 main ()
23190 {
23191 struct timeval b;
23192 ;
23193 return 0;
23194 }
23195 _ACEOF
23196 if ac_fn_c_try_compile "$LINENO"; then :
23197 gl_cv_header_sys_select_h_selfcontained=yes
23198 else
23199 gl_cv_header_sys_select_h_selfcontained=no
23200 fi
23201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23202 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
23203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23204 /* end confdefs.h. */
23205 #include <sys/select.h>
23206 int
23207 main ()
23208 {
23209 int memset; int bzero;
23210 ;
23211 return 0;
23212 }
23213
23214 _ACEOF
23215 if ac_fn_c_try_compile "$LINENO"; then :
23216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23217 /* end confdefs.h. */
23218 #include <sys/select.h>
23219 int
23220 main ()
23221 {
23222
23223 #undef memset
23224 #define memset nonexistent_memset
23225 extern
23226 #ifdef __cplusplus
23227 "C"
23228 #endif
23229 void *memset (void *, int, unsigned long);
23230 #undef bzero
23231 #define bzero nonexistent_bzero
23232 extern
23233 #ifdef __cplusplus
23234 "C"
23235 #endif
23236 void bzero (void *, unsigned long);
23237 fd_set fds;
23238 FD_ZERO (&fds);
23239
23240 ;
23241 return 0;
23242 }
23243
23244 _ACEOF
23245 if ac_fn_c_try_link "$LINENO"; then :
23246
23247 else
23248 gl_cv_header_sys_select_h_selfcontained=no
23249 fi
23250 rm -f core conftest.err conftest.$ac_objext \
23251 conftest$ac_exeext conftest.$ac_ext
23252
23253 fi
23254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23255 fi
23256
23257 fi
23258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
23259 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
23260
23261
23262
23263
23264
23265
23266
23267
23268
23269 if test $gl_cv_have_include_next = yes; then
23270 gl_cv_next_sys_select_h='<'sys/select.h'>'
23271 else
23272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
23273 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
23274 if test "${gl_cv_next_sys_select_h+set}" = set; then :
23275 $as_echo_n "(cached) " >&6
23276 else
23277
23278 if test $ac_cv_header_sys_select_h = yes; then
23279
23280
23281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23282 /* end confdefs.h. */
23283 #include <sys/select.h>
23284
23285 _ACEOF
23286 case "$host_os" in
23287 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23288 *) gl_absname_cpp="$ac_cpp" ;;
23289 esac
23290
23291 case "$host_os" in
23292 mingw*)
23293 gl_dirsep_regex='[/\\]'
23294 ;;
23295 *)
23296 gl_dirsep_regex='\/'
23297 ;;
23298 esac
23299 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23300
23301 gl_header_literal_regex=`echo 'sys/select.h' \
23302 | sed -e "$gl_make_literal_regex_sed"`
23303 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23304 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23305 s|^/[^/]|//&|
23306 p
23307 q
23308 }'
23309 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23310 sed -n "$gl_absolute_header_sed"`'"'
23311 else
23312 gl_cv_next_sys_select_h='<'sys/select.h'>'
23313 fi
23314
23315
23316 fi
23317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
23318 $as_echo "$gl_cv_next_sys_select_h" >&6; }
23319 fi
23320 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
23321
23322 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23323 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23324 gl_next_as_first_directive='<'sys/select.h'>'
23325 else
23326 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23327 gl_next_as_first_directive=$gl_cv_next_sys_select_h
23328 fi
23329 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
23330
23331
23332
23333
23334 if test $ac_cv_header_sys_select_h = yes; then
23335 HAVE_SYS_SELECT_H=1
23336 else
23337 HAVE_SYS_SELECT_H=0
23338 fi
23339
23340
23341
23342
23343
23344 if test $ac_cv_header_sys_socket_h != yes; then
23345 for ac_header in winsock2.h
23346 do :
23347 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
23348 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
23349 cat >>confdefs.h <<_ACEOF
23350 #define HAVE_WINSOCK2_H 1
23351 _ACEOF
23352
23353 fi
23354
23355 done
23356
23357 fi
23358 if test "$ac_cv_header_winsock2_h" = yes; then
23359 HAVE_WINSOCK2_H=1
23360 UNISTD_H_HAVE_WINSOCK2_H=1
23361 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
23362 else
23363 HAVE_WINSOCK2_H=0
23364 fi
23365
23366
23367
23368
23369
23370
23371
23372
23373
23374
23375
23376
23377
23378
23379
23380
23381
23382
23383
23384
23385
23386
23387 if test $gl_cv_have_include_next = yes; then
23388 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
23389 else
23390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
23391 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
23392 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
23393 $as_echo_n "(cached) " >&6
23394 else
23395
23396 if test $ac_cv_header_sys_stat_h = yes; then
23397
23398
23399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23400 /* end confdefs.h. */
23401 #include <sys/stat.h>
23402
23403 _ACEOF
23404 case "$host_os" in
23405 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23406 *) gl_absname_cpp="$ac_cpp" ;;
23407 esac
23408
23409 case "$host_os" in
23410 mingw*)
23411 gl_dirsep_regex='[/\\]'
23412 ;;
23413 *)
23414 gl_dirsep_regex='\/'
23415 ;;
23416 esac
23417 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23418
23419 gl_header_literal_regex=`echo 'sys/stat.h' \
23420 | sed -e "$gl_make_literal_regex_sed"`
23421 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23422 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23423 s|^/[^/]|//&|
23424 p
23425 q
23426 }'
23427 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23428 sed -n "$gl_absolute_header_sed"`'"'
23429 else
23430 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
23431 fi
23432
23433
23434 fi
23435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
23436 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
23437 fi
23438 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
23439
23440 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23441 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23442 gl_next_as_first_directive='<'sys/stat.h'>'
23443 else
23444 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23445 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
23446 fi
23447 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
23448
23449
23450
23451
23452
23453
23454
23455
23456
23457
23458
23459 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
23460
23461 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
23462
23463 fi
23464
23465 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
23466 #include <sys/stat.h>
23467 "
23468 if test "x$ac_cv_type_nlink_t" = x""yes; then :
23469
23470 else
23471
23472 $as_echo "#define nlink_t int" >>confdefs.h
23473
23474 fi
23475
23476
23477
23478
23479
23480
23481
23482
23483
23484
23485
23486
23487
23488
23489
23490
23491
23492
23493 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
23494 "
23495 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
23496 ac_have_decl=1
23497 else
23498 ac_have_decl=0
23499 fi
23500
23501 cat >>confdefs.h <<_ACEOF
23502 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
23503 _ACEOF
23504
23505 if test $ac_cv_have_decl_localtime_r = no; then
23506 HAVE_DECL_LOCALTIME_R=0
23507 fi
23508
23509
23510 if test $ac_cv_func_localtime_r = yes; then
23511 HAVE_LOCALTIME_R=1
23512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
23513 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
23514 if test "${gl_cv_time_r_posix+set}" = set; then :
23515 $as_echo_n "(cached) " >&6
23516 else
23517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23518 /* end confdefs.h. */
23519 #include <time.h>
23520 int
23521 main ()
23522 {
23523 /* We don't need to append 'restrict's to the argument types,
23524 even though the POSIX signature has the 'restrict's,
23525 since C99 says they can't affect type compatibility. */
23526 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
23527 if (ptr) return 0;
23528 /* Check the return type is a pointer.
23529 On HP-UX 10 it is 'int'. */
23530 *localtime_r (0, 0);
23531 ;
23532 return 0;
23533 }
23534
23535 _ACEOF
23536 if ac_fn_c_try_compile "$LINENO"; then :
23537 gl_cv_time_r_posix=yes
23538 else
23539 gl_cv_time_r_posix=no
23540 fi
23541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23542
23543 fi
23544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
23545 $as_echo "$gl_cv_time_r_posix" >&6; }
23546 if test $gl_cv_time_r_posix = yes; then
23547 REPLACE_LOCALTIME_R=0
23548 else
23549 REPLACE_LOCALTIME_R=1
23550 fi
23551 else
23552 HAVE_LOCALTIME_R=0
23553 fi
23554
23555 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
23556
23557
23558
23559
23560
23561
23562
23563
23564 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
23565
23566
23567 :
23568
23569 fi
23570
23571
23572
23573
23574
23575 GNULIB_TIME_R=1
23576
23577
23578
23579
23580
23581 :
23582
23583
23584
23585
23586
23587
23588
23589
23590
23591
23592
23593
23594
23595 if test $gl_cv_have_include_next = yes; then
23596 gl_cv_next_unistd_h='<'unistd.h'>'
23597 else
23598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
23599 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
23600 if test "${gl_cv_next_unistd_h+set}" = set; then :
23601 $as_echo_n "(cached) " >&6
23602 else
23603
23604 if test $ac_cv_header_unistd_h = yes; then
23605
23606
23607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23608 /* end confdefs.h. */
23609 #include <unistd.h>
23610
23611 _ACEOF
23612 case "$host_os" in
23613 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23614 *) gl_absname_cpp="$ac_cpp" ;;
23615 esac
23616
23617 case "$host_os" in
23618 mingw*)
23619 gl_dirsep_regex='[/\\]'
23620 ;;
23621 *)
23622 gl_dirsep_regex='\/'
23623 ;;
23624 esac
23625 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23626
23627 gl_header_literal_regex=`echo 'unistd.h' \
23628 | sed -e "$gl_make_literal_regex_sed"`
23629 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23630 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23631 s|^/[^/]|//&|
23632 p
23633 q
23634 }'
23635 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23636 sed -n "$gl_absolute_header_sed"`'"'
23637 else
23638 gl_cv_next_unistd_h='<'unistd.h'>'
23639 fi
23640
23641
23642 fi
23643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
23644 $as_echo "$gl_cv_next_unistd_h" >&6; }
23645 fi
23646 NEXT_UNISTD_H=$gl_cv_next_unistd_h
23647
23648 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23649 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23650 gl_next_as_first_directive='<'unistd.h'>'
23651 else
23652 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23653 gl_next_as_first_directive=$gl_cv_next_unistd_h
23654 fi
23655 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
23656
23657
23658
23659
23660 if test $ac_cv_header_unistd_h = yes; then
23661 HAVE_UNISTD_H=1
23662 else
23663 HAVE_UNISTD_H=0
23664 fi
23665
23666
23667
23668
23669
23670
23671
23672
23673
23674
23675
23676
23677
23678
23679 if test $ac_cv_func_futimens = no && test $ac_cv_func_futimesat = yes; then
23680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
23681 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
23682 if test "${gl_cv_func_futimesat_works+set}" = set; then :
23683 $as_echo_n "(cached) " >&6
23684 else
23685 touch conftest.file
23686 if test "$cross_compiling" = yes; then :
23687 case "$host_os" in
23688 # Guess yes on glibc systems.
23689 *-gnu*) gl_cv_func_futimesat_works="guessing yes" ;;
23690 # If we don't know, assume the worst.
23691 *) gl_cv_func_futimesat_works="guessing no" ;;
23692 esac
23693
23694 else
23695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23696 /* end confdefs.h. */
23697
23698 #include <stddef.h>
23699 #include <sys/times.h>
23700 #include <fcntl.h>
23701
23702 int
23703 main ()
23704 {
23705 int fd = open ("conftest.file", O_RDWR);
23706 if (fd < 0) return 1;
23707 if (futimesat (fd, NULL, NULL)) return 2;
23708
23709 ;
23710 return 0;
23711 }
23712 _ACEOF
23713 if ac_fn_c_try_run "$LINENO"; then :
23714 gl_cv_func_futimesat_works=yes
23715 else
23716 gl_cv_func_futimesat_works=no
23717 fi
23718 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23719 conftest.$ac_objext conftest.beam conftest.$ac_ext
23720 fi
23721
23722 rm -f conftest.file
23723 fi
23724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
23725 $as_echo "$gl_cv_func_futimesat_works" >&6; }
23726 case "$gl_cv_func_futimesat_works" in
23727 *yes) ;;
23728 *)
23729
23730 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
23731
23732 ;;
23733 esac
23734 fi
23735
23736 gl_gnulib_enabled_dosname=false
23737 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
23738 gl_gnulib_enabled_pathmax=false
23739 gl_gnulib_enabled_stat=false
23740 gl_gnulib_enabled_strtoll=false
23741 gl_gnulib_enabled_strtoull=false
23742 gl_gnulib_enabled_verify=false
23743 func_gl_gnulib_m4code_dosname ()
23744 {
23745 if ! $gl_gnulib_enabled_dosname; then
23746 gl_gnulib_enabled_dosname=true
23747 fi
23748 }
23749 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
23750 {
23751 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
23752
23753
23754 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
23755 fi
23756 }
23757 func_gl_gnulib_m4code_pathmax ()
23758 {
23759 if ! $gl_gnulib_enabled_pathmax; then
23760
23761
23762
23763 gl_gnulib_enabled_pathmax=true
23764 fi
23765 }
23766 func_gl_gnulib_m4code_stat ()
23767 {
23768 if ! $gl_gnulib_enabled_stat; then
23769
23770
23771
23772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
23773 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
23774 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
23775 $as_echo_n "(cached) " >&6
23776 else
23777 if test "$cross_compiling" = yes; then :
23778 case $host_os in
23779 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
23780 *) gl_cv_func_stat_dir_slash="guessing yes";;
23781 esac
23782 else
23783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23784 /* end confdefs.h. */
23785 #include <sys/stat.h>
23786
23787 int
23788 main ()
23789 {
23790 struct stat st; return stat (".", &st) != stat ("./", &st);
23791 ;
23792 return 0;
23793 }
23794 _ACEOF
23795 if ac_fn_c_try_run "$LINENO"; then :
23796 gl_cv_func_stat_dir_slash=yes
23797 else
23798 gl_cv_func_stat_dir_slash=no
23799 fi
23800 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23801 conftest.$ac_objext conftest.beam conftest.$ac_ext
23802 fi
23803
23804 fi
23805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
23806 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
23807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
23808 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
23809 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
23810 $as_echo_n "(cached) " >&6
23811 else
23812 touch conftest.tmp
23813 # Assume that if we have lstat, we can also check symlinks.
23814 if test $ac_cv_func_lstat = yes; then
23815 ln -s conftest.tmp conftest.lnk
23816 fi
23817 if test "$cross_compiling" = yes; then :
23818 case "$host_os" in
23819 # Guess yes on glibc systems.
23820 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
23821 # If we don't know, assume the worst.
23822 *) gl_cv_func_stat_file_slash="guessing no" ;;
23823 esac
23824
23825 else
23826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23827 /* end confdefs.h. */
23828 #include <sys/stat.h>
23829
23830 int
23831 main ()
23832 {
23833 int result = 0;
23834 struct stat st;
23835 if (!stat ("conftest.tmp/", &st))
23836 result |= 1;
23837 #if HAVE_LSTAT
23838 if (!stat ("conftest.lnk/", &st))
23839 result |= 2;
23840 #endif
23841 return result;
23842
23843 ;
23844 return 0;
23845 }
23846 _ACEOF
23847 if ac_fn_c_try_run "$LINENO"; then :
23848 gl_cv_func_stat_file_slash=yes
23849 else
23850 gl_cv_func_stat_file_slash=no
23851 fi
23852 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23853 conftest.$ac_objext conftest.beam conftest.$ac_ext
23854 fi
23855
23856 rm -f conftest.tmp conftest.lnk
23857 fi
23858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
23859 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
23860 case $gl_cv_func_stat_dir_slash in
23861 *no) REPLACE_STAT=1
23862
23863 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
23864 ;;
23865 esac
23866 case $gl_cv_func_stat_file_slash in
23867 *no) REPLACE_STAT=1
23868
23869 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
23870 ;;
23871 esac
23872
23873 if test $REPLACE_STAT = 1; then
23874
23875
23876
23877
23878
23879
23880
23881
23882 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
23883
23884
23885
23886 :
23887
23888 fi
23889
23890
23891
23892
23893
23894 GNULIB_STAT=1
23895
23896
23897
23898
23899
23900 gl_gnulib_enabled_stat=true
23901 if test $REPLACE_STAT = 1; then
23902 func_gl_gnulib_m4code_dosname
23903 fi
23904 if test $REPLACE_STAT = 1; then
23905 func_gl_gnulib_m4code_pathmax
23906 fi
23907 if test $REPLACE_STAT = 1; then
23908 func_gl_gnulib_m4code_verify
23909 fi
23910 fi
23911 }
23912 func_gl_gnulib_m4code_strtoll ()
23913 {
23914 if ! $gl_gnulib_enabled_strtoll; then
23915
23916
23917
23918 if test "$ac_cv_type_long_long_int" = yes; then
23919 for ac_func in strtoll
23920 do :
23921 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
23922 if test "x$ac_cv_func_strtoll" = x""yes; then :
23923 cat >>confdefs.h <<_ACEOF
23924 #define HAVE_STRTOLL 1
23925 _ACEOF
23926
23927 fi
23928 done
23929
23930 if test $ac_cv_func_strtoll = no; then
23931 HAVE_STRTOLL=0
23932 fi
23933 fi
23934
23935 if test $HAVE_STRTOLL = 0; then
23936
23937
23938
23939
23940
23941
23942
23943
23944 gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext"
23945
23946
23947 :
23948
23949 fi
23950
23951
23952
23953
23954
23955 GNULIB_STRTOLL=1
23956
23957
23958
23959
23960
23961 gl_gnulib_enabled_strtoll=true
23962 fi
23963 }
23964 func_gl_gnulib_m4code_strtoull ()
23965 {
23966 if ! $gl_gnulib_enabled_strtoull; then
23967
23968
23969
23970 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
23971 for ac_func in strtoull
23972 do :
23973 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
23974 if test "x$ac_cv_func_strtoull" = x""yes; then :
23975 cat >>confdefs.h <<_ACEOF
23976 #define HAVE_STRTOULL 1
23977 _ACEOF
23978
23979 fi
23980 done
23981
23982 if test $ac_cv_func_strtoull = no; then
23983 HAVE_STRTOULL=0
23984 fi
23985 fi
23986
23987 if test $HAVE_STRTOULL = 0; then
23988
23989
23990
23991
23992
23993
23994
23995
23996 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
23997
23998
23999 :
24000
24001 fi
24002
24003
24004
24005
24006
24007 GNULIB_STRTOULL=1
24008
24009
24010
24011
24012
24013 gl_gnulib_enabled_strtoull=true
24014 fi
24015 }
24016 func_gl_gnulib_m4code_verify ()
24017 {
24018 if ! $gl_gnulib_enabled_verify; then
24019 gl_gnulib_enabled_verify=true
24020 fi
24021 }
24022 if test $REPLACE_GETOPT = 1; then
24023 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
24024 fi
24025 if test $REPLACE_LSTAT = 1; then
24026 func_gl_gnulib_m4code_dosname
24027 fi
24028 if test $REPLACE_LSTAT = 1; then
24029 func_gl_gnulib_m4code_stat
24030 fi
24031 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
24032 func_gl_gnulib_m4code_stat
24033 fi
24034 if { test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
24035 func_gl_gnulib_m4code_strtoll
24036 fi
24037 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
24038 func_gl_gnulib_m4code_verify
24039 fi
24040 if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
24041 func_gl_gnulib_m4code_strtoull
24042 fi
24043 if test $ac_cv_func_strtoumax = no; then
24044 func_gl_gnulib_m4code_verify
24045 fi
24046
24047 if $gl_gnulib_enabled_dosname; then
24048 gl_GNULIB_ENABLED_dosname_TRUE=
24049 gl_GNULIB_ENABLED_dosname_FALSE='#'
24050 else
24051 gl_GNULIB_ENABLED_dosname_TRUE='#'
24052 gl_GNULIB_ENABLED_dosname_FALSE=
24053 fi
24054
24055 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
24056 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
24057 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
24058 else
24059 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
24060 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
24061 fi
24062
24063 if $gl_gnulib_enabled_pathmax; then
24064 gl_GNULIB_ENABLED_pathmax_TRUE=
24065 gl_GNULIB_ENABLED_pathmax_FALSE='#'
24066 else
24067 gl_GNULIB_ENABLED_pathmax_TRUE='#'
24068 gl_GNULIB_ENABLED_pathmax_FALSE=
24069 fi
24070
24071 if $gl_gnulib_enabled_stat; then
24072 gl_GNULIB_ENABLED_stat_TRUE=
24073 gl_GNULIB_ENABLED_stat_FALSE='#'
24074 else
24075 gl_GNULIB_ENABLED_stat_TRUE='#'
24076 gl_GNULIB_ENABLED_stat_FALSE=
24077 fi
24078
24079 if $gl_gnulib_enabled_strtoll; then
24080 gl_GNULIB_ENABLED_strtoll_TRUE=
24081 gl_GNULIB_ENABLED_strtoll_FALSE='#'
24082 else
24083 gl_GNULIB_ENABLED_strtoll_TRUE='#'
24084 gl_GNULIB_ENABLED_strtoll_FALSE=
24085 fi
24086
24087 if $gl_gnulib_enabled_strtoull; then
24088 gl_GNULIB_ENABLED_strtoull_TRUE=
24089 gl_GNULIB_ENABLED_strtoull_FALSE='#'
24090 else
24091 gl_GNULIB_ENABLED_strtoull_TRUE='#'
24092 gl_GNULIB_ENABLED_strtoull_FALSE=
24093 fi
24094
24095 if $gl_gnulib_enabled_verify; then
24096 gl_GNULIB_ENABLED_verify_TRUE=
24097 gl_GNULIB_ENABLED_verify_FALSE='#'
24098 else
24099 gl_GNULIB_ENABLED_verify_TRUE='#'
24100 gl_GNULIB_ENABLED_verify_FALSE=
24101 fi
24102
24103 # End of code from modules
24104
24105
24106
24107
24108
24109
24110
24111
24112
24113 gltests_libdeps=
24114 gltests_ltlibdeps=
24115
24116
24117
24118
24119
24120
24121
24122
24123
24124 gl_source_base='tests'
24125 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
24126
24127 gl_module_indicator_condition=$gltests_WITNESS
24128
24129
24130
24131
24132
24133
24134
24135
24136
24137
24138 LIBGNU_LIBDEPS="$gl_libdeps"
24139
24140 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
24141
24142
24143 CFLAGS=$SAVE_CFLAGS
24144 LIBS=$SAVE_LIBS
24145
24146 case "$opsys" in
24147 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
24148
24149 darwin)
24150 ## The -headerpad option tells ld (see man page) to leave room at the
24151 ## end of the header for adding load commands. Needed for dumping.
24152 ## 0x690 is the total size of 30 segment load commands (at 56
24153 ## each); under Cocoa 31 commands are required.
24154 if test "$HAVE_NS" = "yes"; then
24155 libs_nsgui="-framework AppKit"
24156 headerpad_extra=6C8
24157 else
24158 libs_nsgui=
24159 headerpad_extra=690
24160 fi
24161 LD_SWITCH_SYSTEM_TEMACS="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
24162
24163 ## This is here because src/Makefile.in did some extra fiddling around
24164 ## with LD_SWITCH_SYSTEM. The cpp logic was:
24165 ## #ifndef LD_SWITCH_SYSTEM
24166 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
24167 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
24168 ## not using gcc, darwin.
24169 ## Because this was done in src/Makefile.in, the resulting part of
24170 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
24171 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
24172 ## rather than LD_SWITCH_SYSTEM.
24173 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
24174 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
24175 ;;
24176
24177 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
24178 ## find X at run-time.
24179 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
24180 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
24181 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
24182 ## had different values in configure (in ac_link) and src/Makefile.in.
24183 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
24184 gnu*) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_RPATH)" ;;
24185
24186 *) LD_SWITCH_SYSTEM_TEMACS= ;;
24187 esac
24188
24189 if test "$NS_IMPL_GNUSTEP" = "yes"; then
24190 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
24191 fi
24192
24193
24194
24195
24196 LD_FIRSTFLAG=
24197 ORDINARY_LINK=
24198 case "$opsys" in
24199 ## gnu: GNU needs its own crt0.
24200 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
24201
24202 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
24203 ## library search parth, i.e. it won't search /usr/lib for libc and
24204 ## friends. Using -nostartfiles instead avoids this problem, and
24205 ## will also work on earlier NetBSD releases.
24206 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
24207
24208 ## powerpc*: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
24209 ## MkLinux/LinuxPPC needs this.
24210 ## s390x-* only supports opsys = gnu-linux so it can be added here.
24211 gnu-*)
24212 case "$canonical" in
24213 powerpc*|s390x-*) LD_FIRSTFLAG="-nostdlib" ;;
24214 esac
24215 ;;
24216 esac
24217
24218
24219 if test "x$ORDINARY_LINK" = "xyes"; then
24220
24221 LD_FIRSTFLAG=""
24222
24223 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
24224
24225
24226 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
24227 ## freebsd, gnu-* not on powerpc*|s390x*.
24228 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
24229
24230 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
24231 ## places that are difficult to figure out at make time. Fortunately,
24232 ## these same versions allow you to pass arbitrary flags on to the
24233 ## linker, so there is no reason not to use it as a linker.
24234 ##
24235 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
24236 ## searching for libraries in its internal directories, so we have to
24237 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
24238 LD_FIRSTFLAG="-nostdlib"
24239 fi
24240
24241 ## FIXME? What setting of EDIT_LDFLAGS should this have?
24242 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
24243
24244
24245
24246
24247 ## FIXME? The logic here is not precisely the same as that above.
24248 ## There is no check here for a pre-defined LD_FIRSTFLAG.
24249 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
24250 LIB_GCC=
24251 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
24252
24253 case "$opsys" in
24254 freebsd|netbsd|openbsd) LIB_GCC= ;;
24255
24256 gnu-*)
24257 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
24258 ## build on ARM EABI under GNU/Linux. (Bug#5518)
24259 case $host_cpu in
24260 arm*)
24261 LIB_GCC="-lgcc_s"
24262 ;;
24263 *)
24264 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
24265 ## immediately undefine it again and redefine it to empty.
24266 ## Was the C_SWITCH_X_SITE part really necessary?
24267 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
24268 LIB_GCC=
24269 ;;
24270 esac
24271 ;;
24272
24273 ## Ask GCC where to find libgcc.a.
24274 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
24275 esac
24276 fi
24277
24278 ## Common for all window systems
24279 if test "$window_system" != "none"; then
24280
24281 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
24282
24283
24284 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
24285
24286 WINDOW_SYSTEM_OBJ="fontset.o fringe.o image.o"
24287 fi
24288
24289
24290
24291
24292
24293 #### Report on what we decided to do.
24294 #### Report GTK as a toolkit, even if it doesn't use Xt.
24295 #### It makes printing result more understandable as using GTK sets
24296 #### toolkit_scroll_bars to yes by default.
24297 if test "${HAVE_GTK}" = "yes"; then
24298 USE_X_TOOLKIT="$USE_GTK_TOOLKIT"
24299 fi
24300
24301 echo "
24302 Configured for \`${canonical}'.
24303
24304 Where should the build process find the source code? ${srcdir}
24305 What compiler should emacs be built with? ${CC} ${CFLAGS}
24306 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
24307 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
24308 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
24309 What window system should Emacs use? ${window_system}
24310 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
24311
24312 if test -n "${x_includes}"; then
24313 echo " Where do we find X Windows header files? ${x_includes}"
24314 else
24315 echo " Where do we find X Windows header files? Standard dirs"
24316 fi
24317 if test -n "${x_libraries}"; then
24318 echo " Where do we find X Windows libraries? ${x_libraries}"
24319 else
24320 echo " Where do we find X Windows libraries? Standard dirs"
24321 fi
24322
24323 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
24324 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
24325 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
24326 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
24327 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
24328 echo " Does Emacs use -lpng? ${HAVE_PNG}"
24329 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
24330 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
24331
24332 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
24333 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
24334 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
24335 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
24336 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
24337 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
24338 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
24339
24340 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
24341 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
24342 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
24343 echo " Does Emacs use -lxft? ${HAVE_XFT}"
24344
24345 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
24346 echo
24347
24348 if test -n "${EMACSDATA}"; then
24349 echo " Environment variable EMACSDATA set to: $EMACSDATA"
24350 fi
24351 if test -n "${EMACSDOC}"; then
24352 echo " Environment variable EMACSDOC set to: $EMACSDOC"
24353 fi
24354
24355 echo
24356
24357 if test "$HAVE_NS" = "yes"; then
24358 echo
24359 echo "You must run \"${MAKE-make} install\" in order to test the built application.
24360 The installed application will go to nextstep/Emacs.app and can be
24361 run or moved from there."
24362 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
24363 echo "The application will be fully self-contained."
24364 else
24365 echo "The lisp resources for the application will be installed under ${prefix}.
24366 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
24367 to run if these resources are not installed."
24368 fi
24369 echo
24370 fi
24371
24372 if test "${opsys}" = "cygwin"; then
24373 case `uname -r` in
24374 1.5.*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
24375 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
24376 echo
24377 ;;
24378 esac
24379 fi
24380
24381 # Remove any trailing slashes in these variables.
24382 test "${prefix}" != NONE &&
24383 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24384 test "${exec_prefix}" != NONE &&
24385 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24386
24387 if test "$HAVE_NS" = "yes"; then
24388 if test "$NS_IMPL_GNUSTEP" = yes; then
24389 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"
24390
24391 else
24392 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"
24393
24394 fi
24395 fi
24396
24397 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"
24398
24399 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"
24400
24401
24402 opt_makefile=test/automated/Makefile
24403
24404 if test -f $srcdir/${opt_makefile}.in; then
24405 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
24406 ac_config_files="$ac_config_files test/automated/Makefile"
24407
24408 fi
24409
24410
24411 opt_makefile=admin/unidata/Makefile
24412
24413 if test -f $srcdir/${opt_makefile}.in; then
24414 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
24415 ac_config_files="$ac_config_files admin/unidata/Makefile"
24416
24417 fi
24418
24419
24420 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
24421
24422
24423
24424 ac_config_commands="$ac_config_commands mkdirs"
24425
24426
24427 ac_config_commands="$ac_config_commands epaths"
24428
24429
24430 ac_config_commands="$ac_config_commands gdbinit"
24431
24432
24433 cat >confcache <<\_ACEOF
24434 # This file is a shell script that caches the results of configure
24435 # tests run on this system so they can be shared between configure
24436 # scripts and configure runs, see configure's option --config-cache.
24437 # It is not useful on other systems. If it contains results you don't
24438 # want to keep, you may remove or edit it.
24439 #
24440 # config.status only pays attention to the cache file if you give it
24441 # the --recheck option to rerun configure.
24442 #
24443 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24444 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24445 # following values.
24446
24447 _ACEOF
24448
24449 # The following way of writing the cache mishandles newlines in values,
24450 # but we know of no workaround that is simple, portable, and efficient.
24451 # So, we kill variables containing newlines.
24452 # Ultrix sh set writes to stderr and can't be redirected directly,
24453 # and sets the high bit in the cache file unless we assign to the vars.
24454 (
24455 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24456 eval ac_val=\$$ac_var
24457 case $ac_val in #(
24458 *${as_nl}*)
24459 case $ac_var in #(
24460 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24461 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24462 esac
24463 case $ac_var in #(
24464 _ | IFS | as_nl) ;; #(
24465 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24466 *) { eval $ac_var=; unset $ac_var;} ;;
24467 esac ;;
24468 esac
24469 done
24470
24471 (set) 2>&1 |
24472 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24473 *${as_nl}ac_space=\ *)
24474 # `set' does not quote correctly, so add quotes: double-quote
24475 # substitution turns \\\\ into \\, and sed turns \\ into \.
24476 sed -n \
24477 "s/'/'\\\\''/g;
24478 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24479 ;; #(
24480 *)
24481 # `set' quotes correctly as required by POSIX, so do not add quotes.
24482 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24483 ;;
24484 esac |
24485 sort
24486 ) |
24487 sed '
24488 /^ac_cv_env_/b end
24489 t clear
24490 :clear
24491 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24492 t end
24493 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24494 :end' >>confcache
24495 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24496 if test -w "$cache_file"; then
24497 test "x$cache_file" != "x/dev/null" &&
24498 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24499 $as_echo "$as_me: updating cache $cache_file" >&6;}
24500 cat confcache >$cache_file
24501 else
24502 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24503 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24504 fi
24505 fi
24506 rm -f confcache
24507
24508 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24509 # Let make expand exec_prefix.
24510 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24511
24512 DEFS=-DHAVE_CONFIG_H
24513
24514 ac_libobjs=
24515 ac_ltlibobjs=
24516 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24517 # 1. Remove the extension, and $U if already installed.
24518 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24519 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24520 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24521 # will be set to the directory where LIBOBJS objects are built.
24522 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24523 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24524 done
24525 LIBOBJS=$ac_libobjs
24526
24527 LTLIBOBJS=$ac_ltlibobjs
24528
24529
24530 if test -n "$EXEEXT"; then
24531 am__EXEEXT_TRUE=
24532 am__EXEEXT_FALSE='#'
24533 else
24534 am__EXEEXT_TRUE='#'
24535 am__EXEEXT_FALSE=
24536 fi
24537
24538 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24539 as_fn_error "conditional \"AMDEP\" was never defined.
24540 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24541 fi
24542 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24543 as_fn_error "conditional \"am__fastdepCC\" was never defined.
24544 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24545 fi
24546 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
24547 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
24548 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24549 fi
24550 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
24551 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
24552 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24553 fi
24554
24555 if test -z "${GL_GENERATE_EXECINFO_H_TRUE}" && test -z "${GL_GENERATE_EXECINFO_H_FALSE}"; then
24556 as_fn_error "conditional \"GL_GENERATE_EXECINFO_H\" was never defined.
24557 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24558 fi
24559 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
24560 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
24561 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24562 fi
24563 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
24564 as_fn_error "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
24565 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24566 fi
24567 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
24568 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
24569 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24570 fi
24571 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
24572 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
24573 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24574 fi
24575 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
24576 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
24577 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24578 fi
24579 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
24580 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
24581 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24582 fi
24583 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
24584 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
24585 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24586 fi
24587 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
24588 as_fn_error "conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
24589 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24590 fi
24591 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
24592 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
24593 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24594 fi
24595 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
24596 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
24597 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24598 fi
24599 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
24600 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
24601 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24602 fi
24603 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
24604 as_fn_error "conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
24605 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24606 fi
24607
24608 gl_libobjs=
24609 gl_ltlibobjs=
24610 if test -n "$gl_LIBOBJS"; then
24611 # Remove the extension.
24612 sed_drop_objext='s/\.o$//;s/\.obj$//'
24613 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
24614 gl_libobjs="$gl_libobjs $i.$ac_objext"
24615 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
24616 done
24617 fi
24618 gl_LIBOBJS=$gl_libobjs
24619
24620 gl_LTLIBOBJS=$gl_ltlibobjs
24621
24622
24623
24624 gltests_libobjs=
24625 gltests_ltlibobjs=
24626 if test -n "$gltests_LIBOBJS"; then
24627 # Remove the extension.
24628 sed_drop_objext='s/\.o$//;s/\.obj$//'
24629 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
24630 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
24631 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
24632 done
24633 fi
24634 gltests_LIBOBJS=$gltests_libobjs
24635
24636 gltests_LTLIBOBJS=$gltests_ltlibobjs
24637
24638
24639
24640 : ${CONFIG_STATUS=./config.status}
24641 ac_write_fail=0
24642 ac_clean_files_save=$ac_clean_files
24643 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24644 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24645 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24646 as_write_fail=0
24647 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24648 #! $SHELL
24649 # Generated by $as_me.
24650 # Run this file to recreate the current configuration.
24651 # Compiler output produced by configure, useful for debugging
24652 # configure, is in config.log if it exists.
24653
24654 debug=false
24655 ac_cs_recheck=false
24656 ac_cs_silent=false
24657
24658 SHELL=\${CONFIG_SHELL-$SHELL}
24659 export SHELL
24660 _ASEOF
24661 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24662 ## -------------------- ##
24663 ## M4sh Initialization. ##
24664 ## -------------------- ##
24665
24666 # Be more Bourne compatible
24667 DUALCASE=1; export DUALCASE # for MKS sh
24668 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24669 emulate sh
24670 NULLCMD=:
24671 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24672 # is contrary to our usage. Disable this feature.
24673 alias -g '${1+"$@"}'='"$@"'
24674 setopt NO_GLOB_SUBST
24675 else
24676 case `(set -o) 2>/dev/null` in #(
24677 *posix*) :
24678 set -o posix ;; #(
24679 *) :
24680 ;;
24681 esac
24682 fi
24683
24684
24685 as_nl='
24686 '
24687 export as_nl
24688 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24689 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24690 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24691 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24692 # Prefer a ksh shell builtin over an external printf program on Solaris,
24693 # but without wasting forks for bash or zsh.
24694 if test -z "$BASH_VERSION$ZSH_VERSION" \
24695 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24696 as_echo='print -r --'
24697 as_echo_n='print -rn --'
24698 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24699 as_echo='printf %s\n'
24700 as_echo_n='printf %s'
24701 else
24702 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24703 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24704 as_echo_n='/usr/ucb/echo -n'
24705 else
24706 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24707 as_echo_n_body='eval
24708 arg=$1;
24709 case $arg in #(
24710 *"$as_nl"*)
24711 expr "X$arg" : "X\\(.*\\)$as_nl";
24712 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24713 esac;
24714 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24715 '
24716 export as_echo_n_body
24717 as_echo_n='sh -c $as_echo_n_body as_echo'
24718 fi
24719 export as_echo_body
24720 as_echo='sh -c $as_echo_body as_echo'
24721 fi
24722
24723 # The user is always right.
24724 if test "${PATH_SEPARATOR+set}" != set; then
24725 PATH_SEPARATOR=:
24726 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24727 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24728 PATH_SEPARATOR=';'
24729 }
24730 fi
24731
24732
24733 # IFS
24734 # We need space, tab and new line, in precisely that order. Quoting is
24735 # there to prevent editors from complaining about space-tab.
24736 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24737 # splitting by setting IFS to empty value.)
24738 IFS=" "" $as_nl"
24739
24740 # Find who we are. Look in the path if we contain no directory separator.
24741 case $0 in #((
24742 *[\\/]* ) as_myself=$0 ;;
24743 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24744 for as_dir in $PATH
24745 do
24746 IFS=$as_save_IFS
24747 test -z "$as_dir" && as_dir=.
24748 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24749 done
24750 IFS=$as_save_IFS
24751
24752 ;;
24753 esac
24754 # We did not find ourselves, most probably we were run as `sh COMMAND'
24755 # in which case we are not to be found in the path.
24756 if test "x$as_myself" = x; then
24757 as_myself=$0
24758 fi
24759 if test ! -f "$as_myself"; then
24760 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24761 exit 1
24762 fi
24763
24764 # Unset variables that we do not need and which cause bugs (e.g. in
24765 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
24766 # suppresses any "Segmentation fault" message there. '((' could
24767 # trigger a bug in pdksh 5.2.14.
24768 for as_var in BASH_ENV ENV MAIL MAILPATH
24769 do eval test x\${$as_var+set} = xset \
24770 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24771 done
24772 PS1='$ '
24773 PS2='> '
24774 PS4='+ '
24775
24776 # NLS nuisances.
24777 LC_ALL=C
24778 export LC_ALL
24779 LANGUAGE=C
24780 export LANGUAGE
24781
24782 # CDPATH.
24783 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24784
24785
24786 # as_fn_error ERROR [LINENO LOG_FD]
24787 # ---------------------------------
24788 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24789 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24790 # script with status $?, using 1 if that was 0.
24791 as_fn_error ()
24792 {
24793 as_status=$?; test $as_status -eq 0 && as_status=1
24794 if test "$3"; then
24795 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24796 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
24797 fi
24798 $as_echo "$as_me: error: $1" >&2
24799 as_fn_exit $as_status
24800 } # as_fn_error
24801
24802
24803 # as_fn_set_status STATUS
24804 # -----------------------
24805 # Set $? to STATUS, without forking.
24806 as_fn_set_status ()
24807 {
24808 return $1
24809 } # as_fn_set_status
24810
24811 # as_fn_exit STATUS
24812 # -----------------
24813 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24814 as_fn_exit ()
24815 {
24816 set +e
24817 as_fn_set_status $1
24818 exit $1
24819 } # as_fn_exit
24820
24821 # as_fn_unset VAR
24822 # ---------------
24823 # Portably unset VAR.
24824 as_fn_unset ()
24825 {
24826 { eval $1=; unset $1;}
24827 }
24828 as_unset=as_fn_unset
24829 # as_fn_append VAR VALUE
24830 # ----------------------
24831 # Append the text in VALUE to the end of the definition contained in VAR. Take
24832 # advantage of any shell optimizations that allow amortized linear growth over
24833 # repeated appends, instead of the typical quadratic growth present in naive
24834 # implementations.
24835 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
24836 eval 'as_fn_append ()
24837 {
24838 eval $1+=\$2
24839 }'
24840 else
24841 as_fn_append ()
24842 {
24843 eval $1=\$$1\$2
24844 }
24845 fi # as_fn_append
24846
24847 # as_fn_arith ARG...
24848 # ------------------
24849 # Perform arithmetic evaluation on the ARGs, and store the result in the
24850 # global $as_val. Take advantage of shells that can avoid forks. The arguments
24851 # must be portable across $(()) and expr.
24852 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
24853 eval 'as_fn_arith ()
24854 {
24855 as_val=$(( $* ))
24856 }'
24857 else
24858 as_fn_arith ()
24859 {
24860 as_val=`expr "$@" || test $? -eq 1`
24861 }
24862 fi # as_fn_arith
24863
24864
24865 if expr a : '\(a\)' >/dev/null 2>&1 &&
24866 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24867 as_expr=expr
24868 else
24869 as_expr=false
24870 fi
24871
24872 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24873 as_basename=basename
24874 else
24875 as_basename=false
24876 fi
24877
24878 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24879 as_dirname=dirname
24880 else
24881 as_dirname=false
24882 fi
24883
24884 as_me=`$as_basename -- "$0" ||
24885 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24886 X"$0" : 'X\(//\)$' \| \
24887 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24888 $as_echo X/"$0" |
24889 sed '/^.*\/\([^/][^/]*\)\/*$/{
24890 s//\1/
24891 q
24892 }
24893 /^X\/\(\/\/\)$/{
24894 s//\1/
24895 q
24896 }
24897 /^X\/\(\/\).*/{
24898 s//\1/
24899 q
24900 }
24901 s/.*/./; q'`
24902
24903 # Avoid depending upon Character Ranges.
24904 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24905 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24906 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24907 as_cr_digits='0123456789'
24908 as_cr_alnum=$as_cr_Letters$as_cr_digits
24909
24910 ECHO_C= ECHO_N= ECHO_T=
24911 case `echo -n x` in #(((((
24912 -n*)
24913 case `echo 'xy\c'` in
24914 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24915 xy) ECHO_C='\c';;
24916 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
24917 ECHO_T=' ';;
24918 esac;;
24919 *)
24920 ECHO_N='-n';;
24921 esac
24922
24923 rm -f conf$$ conf$$.exe conf$$.file
24924 if test -d conf$$.dir; then
24925 rm -f conf$$.dir/conf$$.file
24926 else
24927 rm -f conf$$.dir
24928 mkdir conf$$.dir 2>/dev/null
24929 fi
24930 if (echo >conf$$.file) 2>/dev/null; then
24931 if ln -s conf$$.file conf$$ 2>/dev/null; then
24932 as_ln_s='ln -s'
24933 # ... but there are two gotchas:
24934 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24935 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24936 # In both cases, we have to default to `cp -p'.
24937 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24938 as_ln_s='cp -p'
24939 elif ln conf$$.file conf$$ 2>/dev/null; then
24940 as_ln_s=ln
24941 else
24942 as_ln_s='cp -p'
24943 fi
24944 else
24945 as_ln_s='cp -p'
24946 fi
24947 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24948 rmdir conf$$.dir 2>/dev/null
24949
24950
24951 # as_fn_mkdir_p
24952 # -------------
24953 # Create "$as_dir" as a directory, including parents if necessary.
24954 as_fn_mkdir_p ()
24955 {
24956
24957 case $as_dir in #(
24958 -*) as_dir=./$as_dir;;
24959 esac
24960 test -d "$as_dir" || eval $as_mkdir_p || {
24961 as_dirs=
24962 while :; do
24963 case $as_dir in #(
24964 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24965 *) as_qdir=$as_dir;;
24966 esac
24967 as_dirs="'$as_qdir' $as_dirs"
24968 as_dir=`$as_dirname -- "$as_dir" ||
24969 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24970 X"$as_dir" : 'X\(//\)[^/]' \| \
24971 X"$as_dir" : 'X\(//\)$' \| \
24972 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24973 $as_echo X"$as_dir" |
24974 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24975 s//\1/
24976 q
24977 }
24978 /^X\(\/\/\)[^/].*/{
24979 s//\1/
24980 q
24981 }
24982 /^X\(\/\/\)$/{
24983 s//\1/
24984 q
24985 }
24986 /^X\(\/\).*/{
24987 s//\1/
24988 q
24989 }
24990 s/.*/./; q'`
24991 test -d "$as_dir" && break
24992 done
24993 test -z "$as_dirs" || eval "mkdir $as_dirs"
24994 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
24995
24996
24997 } # as_fn_mkdir_p
24998 if mkdir -p . 2>/dev/null; then
24999 as_mkdir_p='mkdir -p "$as_dir"'
25000 else
25001 test -d ./-p && rmdir ./-p
25002 as_mkdir_p=false
25003 fi
25004
25005 if test -x / >/dev/null 2>&1; then
25006 as_test_x='test -x'
25007 else
25008 if ls -dL / >/dev/null 2>&1; then
25009 as_ls_L_option=L
25010 else
25011 as_ls_L_option=
25012 fi
25013 as_test_x='
25014 eval sh -c '\''
25015 if test -d "$1"; then
25016 test -d "$1/.";
25017 else
25018 case $1 in #(
25019 -*)set "./$1";;
25020 esac;
25021 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25022 ???[sx]*):;;*)false;;esac;fi
25023 '\'' sh
25024 '
25025 fi
25026 as_executable_p=$as_test_x
25027
25028 # Sed expression to map a string onto a valid CPP name.
25029 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25030
25031 # Sed expression to map a string onto a valid variable name.
25032 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25033
25034
25035 exec 6>&1
25036 ## ----------------------------------- ##
25037 ## Main body of $CONFIG_STATUS script. ##
25038 ## ----------------------------------- ##
25039 _ASEOF
25040 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25041
25042 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25043 # Save the log message, to keep $0 and so on meaningful, and to
25044 # report actual input values of CONFIG_FILES etc. instead of their
25045 # values after options handling.
25046 ac_log="
25047 This file was extended by emacs $as_me 24.2.50, which was
25048 generated by GNU Autoconf 2.65. Invocation command line was
25049
25050 CONFIG_FILES = $CONFIG_FILES
25051 CONFIG_HEADERS = $CONFIG_HEADERS
25052 CONFIG_LINKS = $CONFIG_LINKS
25053 CONFIG_COMMANDS = $CONFIG_COMMANDS
25054 $ $0 $@
25055
25056 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25057 "
25058
25059 _ACEOF
25060
25061 case $ac_config_files in *"
25062 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25063 esac
25064
25065 case $ac_config_headers in *"
25066 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25067 esac
25068
25069
25070 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25071 # Files that config.status was made for.
25072 config_files="$ac_config_files"
25073 config_headers="$ac_config_headers"
25074 config_commands="$ac_config_commands"
25075
25076 _ACEOF
25077
25078 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25079 ac_cs_usage="\
25080 \`$as_me' instantiates files and other configuration actions
25081 from templates according to the current configuration. Unless the files
25082 and actions are specified as TAGs, all are instantiated by default.
25083
25084 Usage: $0 [OPTION]... [TAG]...
25085
25086 -h, --help print this help, then exit
25087 -V, --version print version number and configuration settings, then exit
25088 --config print configuration, then exit
25089 -q, --quiet, --silent
25090 do not print progress messages
25091 -d, --debug don't remove temporary files
25092 --recheck update $as_me by reconfiguring in the same conditions
25093 --file=FILE[:TEMPLATE]
25094 instantiate the configuration file FILE
25095 --header=FILE[:TEMPLATE]
25096 instantiate the configuration header FILE
25097
25098 Configuration files:
25099 $config_files
25100
25101 Configuration headers:
25102 $config_headers
25103
25104 Configuration commands:
25105 $config_commands
25106
25107 Report bugs to the package provider."
25108
25109 _ACEOF
25110 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25111 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
25112 ac_cs_version="\\
25113 emacs config.status 24.2.50
25114 configured by $0, generated by GNU Autoconf 2.65,
25115 with options \\"\$ac_cs_config\\"
25116
25117 Copyright (C) 2009 Free Software Foundation, Inc.
25118 This config.status script is free software; the Free Software Foundation
25119 gives unlimited permission to copy, distribute and modify it."
25120
25121 ac_pwd='$ac_pwd'
25122 srcdir='$srcdir'
25123 INSTALL='$INSTALL'
25124 MKDIR_P='$MKDIR_P'
25125 AWK='$AWK'
25126 test -n "\$AWK" || AWK=awk
25127 _ACEOF
25128
25129 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25130 # The default lists apply if the user does not specify any file.
25131 ac_need_defaults=:
25132 while test $# != 0
25133 do
25134 case $1 in
25135 --*=*)
25136 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25137 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25138 ac_shift=:
25139 ;;
25140 *)
25141 ac_option=$1
25142 ac_optarg=$2
25143 ac_shift=shift
25144 ;;
25145 esac
25146
25147 case $ac_option in
25148 # Handling of the options.
25149 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25150 ac_cs_recheck=: ;;
25151 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25152 $as_echo "$ac_cs_version"; exit ;;
25153 --config | --confi | --conf | --con | --co | --c )
25154 $as_echo "$ac_cs_config"; exit ;;
25155 --debug | --debu | --deb | --de | --d | -d )
25156 debug=: ;;
25157 --file | --fil | --fi | --f )
25158 $ac_shift
25159 case $ac_optarg in
25160 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25161 esac
25162 as_fn_append CONFIG_FILES " '$ac_optarg'"
25163 ac_need_defaults=false;;
25164 --header | --heade | --head | --hea )
25165 $ac_shift
25166 case $ac_optarg in
25167 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25168 esac
25169 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25170 ac_need_defaults=false;;
25171 --he | --h)
25172 # Conflict between --help and --header
25173 as_fn_error "ambiguous option: \`$1'
25174 Try \`$0 --help' for more information.";;
25175 --help | --hel | -h )
25176 $as_echo "$ac_cs_usage"; exit ;;
25177 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25178 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25179 ac_cs_silent=: ;;
25180
25181 # This is an error.
25182 -*) as_fn_error "unrecognized option: \`$1'
25183 Try \`$0 --help' for more information." ;;
25184
25185 *) as_fn_append ac_config_targets " $1"
25186 ac_need_defaults=false ;;
25187
25188 esac
25189 shift
25190 done
25191
25192 ac_configure_extra_args=
25193
25194 if $ac_cs_silent; then
25195 exec 6>/dev/null
25196 ac_configure_extra_args="$ac_configure_extra_args --silent"
25197 fi
25198
25199 _ACEOF
25200 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25201 if \$ac_cs_recheck; then
25202 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25203 shift
25204 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25205 CONFIG_SHELL='$SHELL'
25206 export CONFIG_SHELL
25207 exec "\$@"
25208 fi
25209
25210 _ACEOF
25211 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25212 exec 5>>config.log
25213 {
25214 echo
25215 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25216 ## Running $as_me. ##
25217 _ASBOX
25218 $as_echo "$ac_log"
25219 } >&5
25220
25221 _ACEOF
25222 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25223 #
25224 # INIT-COMMANDS
25225 #
25226 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25227 GCC="$GCC" CPPFLAGS="$CPPFLAGS"
25228
25229 _ACEOF
25230
25231 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25232
25233 # Handling of arguments.
25234 for ac_config_target in $ac_config_targets
25235 do
25236 case $ac_config_target in
25237 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
25238 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25239 "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" ;;
25240 "nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop") CONFIG_FILES="$CONFIG_FILES nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop:nextstep/templates/Emacs.desktop.in" ;;
25241 "nextstep/Cocoa/Emacs.base/Contents/Info.plist") CONFIG_FILES="$CONFIG_FILES nextstep/Cocoa/Emacs.base/Contents/Info.plist:nextstep/templates/Info.plist.in" ;;
25242 "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" ;;
25243 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25244 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
25245 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
25246 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
25247 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
25248 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
25249 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
25250 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
25251 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
25252 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
25253 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
25254 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
25255 "nextstep/Makefile") CONFIG_FILES="$CONFIG_FILES nextstep/Makefile" ;;
25256 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
25257 "admin/unidata/Makefile") CONFIG_FILES="$CONFIG_FILES admin/unidata/Makefile" ;;
25258 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
25259 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
25260 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
25261
25262 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25263 esac
25264 done
25265
25266
25267 # If the user did not use the arguments to specify the items to instantiate,
25268 # then the envvar interface is used. Set only those that are not.
25269 # We use the long form for the default assignment because of an extremely
25270 # bizarre bug on SunOS 4.1.3.
25271 if $ac_need_defaults; then
25272 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25273 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25274 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25275 fi
25276
25277 # Have a temporary directory for convenience. Make it in the build tree
25278 # simply because there is no reason against having it here, and in addition,
25279 # creating and moving files from /tmp can sometimes cause problems.
25280 # Hook for its removal unless debugging.
25281 # Note that there is a small window in which the directory will not be cleaned:
25282 # after its creation but before its name has been assigned to `$tmp'.
25283 $debug ||
25284 {
25285 tmp=
25286 trap 'exit_status=$?
25287 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25288 ' 0
25289 trap 'as_fn_exit 1' 1 2 13 15
25290 }
25291 # Create a (secure) tmp directory for tmp files.
25292
25293 {
25294 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25295 test -n "$tmp" && test -d "$tmp"
25296 } ||
25297 {
25298 tmp=./conf$$-$RANDOM
25299 (umask 077 && mkdir "$tmp")
25300 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
25301
25302 # Set up the scripts for CONFIG_FILES section.
25303 # No need to generate them if there are no CONFIG_FILES.
25304 # This happens for instance with `./config.status config.h'.
25305 if test -n "$CONFIG_FILES"; then
25306
25307 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
25308 ac_cs_awk_getline=:
25309 ac_cs_awk_pipe_init=
25310 ac_cs_awk_read_file='
25311 while ((getline aline < (F[key])) > 0)
25312 print(aline)
25313 close(F[key])'
25314 ac_cs_awk_pipe_fini=
25315 else
25316 ac_cs_awk_getline=false
25317 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
25318 ac_cs_awk_read_file='
25319 print "|#_!!_#|"
25320 print "cat " F[key] " &&"
25321 '$ac_cs_awk_pipe_init
25322 # The final `:' finishes the AND list.
25323 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
25324 fi
25325 ac_cr=`echo X | tr X '\015'`
25326 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25327 # But we know of no other shell where ac_cr would be empty at this
25328 # point, so we can use a bashism as a fallback.
25329 if test "x$ac_cr" = x; then
25330 eval ac_cr=\$\'\\r\'
25331 fi
25332 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25333 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25334 ac_cs_awk_cr='\r'
25335 else
25336 ac_cs_awk_cr=$ac_cr
25337 fi
25338
25339 echo 'BEGIN {' >"$tmp/subs1.awk" &&
25340 _ACEOF
25341
25342 # Create commands to substitute file output variables.
25343 {
25344 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
25345 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
25346 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
25347 echo "_ACAWK" &&
25348 echo "_ACEOF"
25349 } >conf$$files.sh &&
25350 . ./conf$$files.sh ||
25351 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25352 rm -f conf$$files.sh
25353
25354 {
25355 echo "cat >conf$$subs.awk <<_ACEOF" &&
25356 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25357 echo "_ACEOF"
25358 } >conf$$subs.sh ||
25359 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25360 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
25361 ac_delim='%!_!# '
25362 for ac_last_try in false false false false false :; do
25363 . ./conf$$subs.sh ||
25364 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25365
25366 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25367 if test $ac_delim_n = $ac_delim_num; then
25368 break
25369 elif $ac_last_try; then
25370 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25371 else
25372 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25373 fi
25374 done
25375 rm -f conf$$subs.sh
25376
25377 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25378 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
25379 _ACEOF
25380 sed -n '
25381 h
25382 s/^/S["/; s/!.*/"]=/
25383 p
25384 g
25385 s/^[^!]*!//
25386 :repl
25387 t repl
25388 s/'"$ac_delim"'$//
25389 t delim
25390 :nl
25391 h
25392 s/\(.\{148\}\)..*/\1/
25393 t more1
25394 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25395 p
25396 n
25397 b repl
25398 :more1
25399 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25400 p
25401 g
25402 s/.\{148\}//
25403 t nl
25404 :delim
25405 h
25406 s/\(.\{148\}\)..*/\1/
25407 t more2
25408 s/["\\]/\\&/g; s/^/"/; s/$/"/
25409 p
25410 b
25411 :more2
25412 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25413 p
25414 g
25415 s/.\{148\}//
25416 t delim
25417 ' <conf$$subs.awk | sed '
25418 /^[^""]/{
25419 N
25420 s/\n//
25421 }
25422 ' >>$CONFIG_STATUS || ac_write_fail=1
25423 rm -f conf$$subs.awk
25424 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25425 _ACAWK
25426 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
25427 for (key in S) S_is_set[key] = 1
25428 FS = "\a"
25429 \$ac_cs_awk_pipe_init
25430 }
25431 {
25432 line = $ 0
25433 nfields = split(line, field, "@")
25434 substed = 0
25435 len = length(field[1])
25436 for (i = 2; i < nfields; i++) {
25437 key = field[i]
25438 keylen = length(key)
25439 if (S_is_set[key]) {
25440 value = S[key]
25441 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25442 len += length(value) + length(field[++i])
25443 substed = 1
25444 } else
25445 len += 1 + keylen
25446 }
25447 if (nfields == 3 && !substed) {
25448 key = field[2]
25449 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
25450 \$ac_cs_awk_read_file
25451 next
25452 }
25453 }
25454 print line
25455 }
25456 \$ac_cs_awk_pipe_fini
25457 _ACAWK
25458 _ACEOF
25459 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25460 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25461 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25462 else
25463 cat
25464 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
25465 || as_fn_error "could not setup config files machinery" "$LINENO" 5
25466 _ACEOF
25467
25468 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25469 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25470 # trailing colons and then remove the whole line if VPATH becomes empty
25471 # (actually we leave an empty line to preserve line numbers).
25472 if test "x$srcdir" = x.; then
25473 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25474 s/:*\$(srcdir):*/:/
25475 s/:*\${srcdir}:*/:/
25476 s/:*@srcdir@:*/:/
25477 s/^\([^=]*=[ ]*\):*/\1/
25478 s/:*$//
25479 s/^[^=]*=[ ]*$//
25480 }'
25481 fi
25482
25483 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25484 fi # test -n "$CONFIG_FILES"
25485
25486 # Set up the scripts for CONFIG_HEADERS section.
25487 # No need to generate them if there are no CONFIG_HEADERS.
25488 # This happens for instance with `./config.status Makefile'.
25489 if test -n "$CONFIG_HEADERS"; then
25490 cat >"$tmp/defines.awk" <<\_ACAWK ||
25491 BEGIN {
25492 _ACEOF
25493
25494 # Transform confdefs.h into an awk script `defines.awk', embedded as
25495 # here-document in config.status, that substitutes the proper values into
25496 # config.h.in to produce config.h.
25497
25498 # Create a delimiter string that does not exist in confdefs.h, to ease
25499 # handling of long lines.
25500 ac_delim='%!_!# '
25501 for ac_last_try in false false :; do
25502 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
25503 if test -z "$ac_t"; then
25504 break
25505 elif $ac_last_try; then
25506 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
25507 else
25508 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25509 fi
25510 done
25511
25512 # For the awk script, D is an array of macro values keyed by name,
25513 # likewise P contains macro parameters if any. Preserve backslash
25514 # newline sequences.
25515
25516 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25517 sed -n '
25518 s/.\{148\}/&'"$ac_delim"'/g
25519 t rset
25520 :rset
25521 s/^[ ]*#[ ]*define[ ][ ]*/ /
25522 t def
25523 d
25524 :def
25525 s/\\$//
25526 t bsnl
25527 s/["\\]/\\&/g
25528 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25529 D["\1"]=" \3"/p
25530 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
25531 d
25532 :bsnl
25533 s/["\\]/\\&/g
25534 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25535 D["\1"]=" \3\\\\\\n"\\/p
25536 t cont
25537 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25538 t cont
25539 d
25540 :cont
25541 n
25542 s/.\{148\}/&'"$ac_delim"'/g
25543 t clear
25544 :clear
25545 s/\\$//
25546 t bsnlc
25547 s/["\\]/\\&/g; s/^/"/; s/$/"/p
25548 d
25549 :bsnlc
25550 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25551 b cont
25552 ' <confdefs.h | sed '
25553 s/'"$ac_delim"'/"\\\
25554 "/g' >>$CONFIG_STATUS || ac_write_fail=1
25555
25556 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25557 for (key in D) D_is_set[key] = 1
25558 FS = "\a"
25559 }
25560 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25561 line = \$ 0
25562 split(line, arg, " ")
25563 if (arg[1] == "#") {
25564 defundef = arg[2]
25565 mac1 = arg[3]
25566 } else {
25567 defundef = substr(arg[1], 2)
25568 mac1 = arg[2]
25569 }
25570 split(mac1, mac2, "(") #)
25571 macro = mac2[1]
25572 prefix = substr(line, 1, index(line, defundef) - 1)
25573 if (D_is_set[macro]) {
25574 # Preserve the white space surrounding the "#".
25575 print prefix "define", macro P[macro] D[macro]
25576 next
25577 } else {
25578 # Replace #undef with comments. This is necessary, for example,
25579 # in the case of _POSIX_SOURCE, which is predefined and required
25580 # on some systems where configure will not decide to define it.
25581 if (defundef == "undef") {
25582 print "/*", prefix defundef, macro, "*/"
25583 next
25584 }
25585 }
25586 }
25587 { print }
25588 _ACAWK
25589 _ACEOF
25590 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25591 as_fn_error "could not setup config headers machinery" "$LINENO" 5
25592 fi # test -n "$CONFIG_HEADERS"
25593
25594
25595 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
25596 shift
25597 for ac_tag
25598 do
25599 case $ac_tag in
25600 :[FHLC]) ac_mode=$ac_tag; continue;;
25601 esac
25602 case $ac_mode$ac_tag in
25603 :[FHL]*:*);;
25604 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
25605 :[FH]-) ac_tag=-:-;;
25606 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25607 esac
25608 ac_save_IFS=$IFS
25609 IFS=:
25610 set x $ac_tag
25611 IFS=$ac_save_IFS
25612 shift
25613 ac_file=$1
25614 shift
25615
25616 case $ac_mode in
25617 :L) ac_source=$1;;
25618 :[FH])
25619 ac_file_inputs=
25620 for ac_f
25621 do
25622 case $ac_f in
25623 -) ac_f="$tmp/stdin";;
25624 *) # Look for the file first in the build tree, then in the source tree
25625 # (if the path is not absolute). The absolute path cannot be DOS-style,
25626 # because $ac_f cannot contain `:'.
25627 test -f "$ac_f" ||
25628 case $ac_f in
25629 [\\/$]*) false;;
25630 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25631 esac ||
25632 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
25633 esac
25634 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25635 as_fn_append ac_file_inputs " '$ac_f'"
25636 done
25637
25638 # Let's still pretend it is `configure' which instantiates (i.e., don't
25639 # use $as_me), people would be surprised to read:
25640 # /* config.h. Generated by config.status. */
25641 configure_input='Generated from '`
25642 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25643 `' by configure.'
25644 if test x"$ac_file" != x-; then
25645 configure_input="$ac_file. $configure_input"
25646 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25647 $as_echo "$as_me: creating $ac_file" >&6;}
25648 fi
25649 # Neutralize special characters interpreted by sed in replacement strings.
25650 case $configure_input in #(
25651 *\&* | *\|* | *\\* )
25652 ac_sed_conf_input=`$as_echo "$configure_input" |
25653 sed 's/[\\\\&|]/\\\\&/g'`;; #(
25654 *) ac_sed_conf_input=$configure_input;;
25655 esac
25656
25657 case $ac_tag in
25658 *:-:* | *:-) cat >"$tmp/stdin" \
25659 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
25660 esac
25661 ;;
25662 esac
25663
25664 ac_dir=`$as_dirname -- "$ac_file" ||
25665 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25666 X"$ac_file" : 'X\(//\)[^/]' \| \
25667 X"$ac_file" : 'X\(//\)$' \| \
25668 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25669 $as_echo X"$ac_file" |
25670 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25671 s//\1/
25672 q
25673 }
25674 /^X\(\/\/\)[^/].*/{
25675 s//\1/
25676 q
25677 }
25678 /^X\(\/\/\)$/{
25679 s//\1/
25680 q
25681 }
25682 /^X\(\/\).*/{
25683 s//\1/
25684 q
25685 }
25686 s/.*/./; q'`
25687 as_dir="$ac_dir"; as_fn_mkdir_p
25688 ac_builddir=.
25689
25690 case "$ac_dir" in
25691 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25692 *)
25693 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25694 # A ".." for each directory in $ac_dir_suffix.
25695 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25696 case $ac_top_builddir_sub in
25697 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25698 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25699 esac ;;
25700 esac
25701 ac_abs_top_builddir=$ac_pwd
25702 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25703 # for backward compatibility:
25704 ac_top_builddir=$ac_top_build_prefix
25705
25706 case $srcdir in
25707 .) # We are building in place.
25708 ac_srcdir=.
25709 ac_top_srcdir=$ac_top_builddir_sub
25710 ac_abs_top_srcdir=$ac_pwd ;;
25711 [\\/]* | ?:[\\/]* ) # Absolute name.
25712 ac_srcdir=$srcdir$ac_dir_suffix;
25713 ac_top_srcdir=$srcdir
25714 ac_abs_top_srcdir=$srcdir ;;
25715 *) # Relative name.
25716 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25717 ac_top_srcdir=$ac_top_build_prefix$srcdir
25718 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25719 esac
25720 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25721
25722
25723 case $ac_mode in
25724 :F)
25725 #
25726 # CONFIG_FILE
25727 #
25728
25729 case $INSTALL in
25730 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25731 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25732 esac
25733 ac_MKDIR_P=$MKDIR_P
25734 case $MKDIR_P in
25735 [\\/$]* | ?:[\\/]* ) ;;
25736 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25737 esac
25738 _ACEOF
25739
25740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25741 # If the template does not know about datarootdir, expand it.
25742 # FIXME: This hack should be removed a few years after 2.60.
25743 ac_datarootdir_hack=; ac_datarootdir_seen=
25744 ac_sed_dataroot='
25745 /datarootdir/ {
25746 p
25747 q
25748 }
25749 /@datadir@/p
25750 /@docdir@/p
25751 /@infodir@/p
25752 /@localedir@/p
25753 /@mandir@/p'
25754 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25755 *datarootdir*) ac_datarootdir_seen=yes;;
25756 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25758 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25759 _ACEOF
25760 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25761 ac_datarootdir_hack='
25762 s&@datadir@&$datadir&g
25763 s&@docdir@&$docdir&g
25764 s&@infodir@&$infodir&g
25765 s&@localedir@&$localedir&g
25766 s&@mandir@&$mandir&g
25767 s&\\\${datarootdir}&$datarootdir&g' ;;
25768 esac
25769 _ACEOF
25770
25771 # Neutralize VPATH when `$srcdir' = `.'.
25772 # Shell code in configure.ac might set extrasub.
25773 # FIXME: do we really want to maintain this feature?
25774 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25775 ac_sed_extra="$ac_vpsub
25776 $extrasub
25777 _ACEOF
25778 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25779 :t
25780 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25781 s|@configure_input@|$ac_sed_conf_input|;t t
25782 s&@top_builddir@&$ac_top_builddir_sub&;t t
25783 s&@top_build_prefix@&$ac_top_build_prefix&;t t
25784 s&@srcdir@&$ac_srcdir&;t t
25785 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25786 s&@top_srcdir@&$ac_top_srcdir&;t t
25787 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25788 s&@builddir@&$ac_builddir&;t t
25789 s&@abs_builddir@&$ac_abs_builddir&;t t
25790 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25791 s&@INSTALL@&$ac_INSTALL&;t t
25792 s&@MKDIR_P@&$ac_MKDIR_P&;t t
25793 $ac_datarootdir_hack
25794 "
25795 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
25796 if $ac_cs_awk_getline; then
25797 $AWK -f "$tmp/subs.awk"
25798 else
25799 $AWK -f "$tmp/subs.awk" | $SHELL
25800 fi >$tmp/out \
25801 || as_fn_error "could not create $ac_file" "$LINENO" 5
25802
25803 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25804 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25805 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25807 which seems to be undefined. Please make sure it is defined." >&5
25808 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25809 which seems to be undefined. Please make sure it is defined." >&2;}
25810
25811 rm -f "$tmp/stdin"
25812 case $ac_file in
25813 -) cat "$tmp/out" && rm -f "$tmp/out";;
25814 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
25815 esac \
25816 || as_fn_error "could not create $ac_file" "$LINENO" 5
25817 ;;
25818 :H)
25819 #
25820 # CONFIG_HEADER
25821 #
25822 if test x"$ac_file" != x-; then
25823 {
25824 $as_echo "/* $configure_input */" \
25825 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
25826 } >"$tmp/config.h" \
25827 || as_fn_error "could not create $ac_file" "$LINENO" 5
25828 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
25829 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
25830 $as_echo "$as_me: $ac_file is unchanged" >&6;}
25831 else
25832 rm -f "$ac_file"
25833 mv "$tmp/config.h" "$ac_file" \
25834 || as_fn_error "could not create $ac_file" "$LINENO" 5
25835 fi
25836 else
25837 $as_echo "/* $configure_input */" \
25838 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
25839 || as_fn_error "could not create -" "$LINENO" 5
25840 fi
25841 # Compute "$ac_file"'s index in $config_headers.
25842 _am_arg="$ac_file"
25843 _am_stamp_count=1
25844 for _am_header in $config_headers :; do
25845 case $_am_header in
25846 $_am_arg | $_am_arg:* )
25847 break ;;
25848 * )
25849 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25850 esac
25851 done
25852 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25853 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25854 X"$_am_arg" : 'X\(//\)[^/]' \| \
25855 X"$_am_arg" : 'X\(//\)$' \| \
25856 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25857 $as_echo X"$_am_arg" |
25858 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25859 s//\1/
25860 q
25861 }
25862 /^X\(\/\/\)[^/].*/{
25863 s//\1/
25864 q
25865 }
25866 /^X\(\/\/\)$/{
25867 s//\1/
25868 q
25869 }
25870 /^X\(\/\).*/{
25871 s//\1/
25872 q
25873 }
25874 s/.*/./; q'`/stamp-h$_am_stamp_count
25875 ;;
25876
25877 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
25878 $as_echo "$as_me: executing $ac_file commands" >&6;}
25879 ;;
25880 esac
25881
25882
25883 case $ac_file$ac_mode in
25884 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
25885 # Autoconf 2.62 quotes --file arguments for eval, but not when files
25886 # are listed without --file. Let's play safe and only enable the eval
25887 # if we detect the quoting.
25888 case $CONFIG_FILES in
25889 *\'*) eval set x "$CONFIG_FILES" ;;
25890 *) set x $CONFIG_FILES ;;
25891 esac
25892 shift
25893 for mf
25894 do
25895 # Strip MF so we end up with the name of the file.
25896 mf=`echo "$mf" | sed -e 's/:.*$//'`
25897 # Check whether this is an Automake generated Makefile or not.
25898 # We used to match only the files named `Makefile.in', but
25899 # some people rename them; so instead we look at the file content.
25900 # Grep'ing the first line is not enough: some people post-process
25901 # each Makefile.in and add a new line on top of each file to say so.
25902 # Grep'ing the whole file is not good either: AIX grep has a line
25903 # limit of 2048, but all sed's we know have understand at least 4000.
25904 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
25905 dirpart=`$as_dirname -- "$mf" ||
25906 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25907 X"$mf" : 'X\(//\)[^/]' \| \
25908 X"$mf" : 'X\(//\)$' \| \
25909 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25910 $as_echo X"$mf" |
25911 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25912 s//\1/
25913 q
25914 }
25915 /^X\(\/\/\)[^/].*/{
25916 s//\1/
25917 q
25918 }
25919 /^X\(\/\/\)$/{
25920 s//\1/
25921 q
25922 }
25923 /^X\(\/\).*/{
25924 s//\1/
25925 q
25926 }
25927 s/.*/./; q'`
25928 else
25929 continue
25930 fi
25931 # Extract the definition of DEPDIR, am__include, and am__quote
25932 # from the Makefile without running `make'.
25933 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25934 test -z "$DEPDIR" && continue
25935 am__include=`sed -n 's/^am__include = //p' < "$mf"`
25936 test -z "am__include" && continue
25937 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25938 # When using ansi2knr, U may be empty or an underscore; expand it
25939 U=`sed -n 's/^U = //p' < "$mf"`
25940 # Find all dependency output files, they are included files with
25941 # $(DEPDIR) in their names. We invoke sed twice because it is the
25942 # simplest approach to changing $(DEPDIR) to its actual value in the
25943 # expansion.
25944 for file in `sed -n "
25945 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25946 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25947 # Make sure the directory exists.
25948 test -f "$dirpart/$file" && continue
25949 fdir=`$as_dirname -- "$file" ||
25950 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25951 X"$file" : 'X\(//\)[^/]' \| \
25952 X"$file" : 'X\(//\)$' \| \
25953 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25954 $as_echo X"$file" |
25955 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25956 s//\1/
25957 q
25958 }
25959 /^X\(\/\/\)[^/].*/{
25960 s//\1/
25961 q
25962 }
25963 /^X\(\/\/\)$/{
25964 s//\1/
25965 q
25966 }
25967 /^X\(\/\).*/{
25968 s//\1/
25969 q
25970 }
25971 s/.*/./; q'`
25972 as_dir=$dirpart/$fdir; as_fn_mkdir_p
25973 # echo "creating $dirpart/$file"
25974 echo '# dummy' > "$dirpart/$file"
25975 done
25976 done
25977 }
25978 ;;
25979 "mkdirs":C)
25980 for dir in etc lisp ; do
25981 test -d ${dir} || mkdir ${dir}
25982 done
25983 ;;
25984 "epaths":C)
25985 echo creating src/epaths.h
25986 ${MAKE-make} MAKEFILE_NAME=do-not-make-Makefile epaths-force
25987 ;;
25988 "gdbinit":C)
25989 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25990 echo creating src/.gdbinit
25991 echo source $srcdir/src/.gdbinit > src/.gdbinit
25992 fi
25993 ;;
25994
25995 esac
25996 done # for ac_tag
25997
25998
25999 as_fn_exit 0
26000 _ACEOF
26001 ac_clean_files=$ac_clean_files_save
26002
26003 test $ac_write_fail = 0 ||
26004 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
26005
26006
26007 # configure is writing to config.log, and then calls config.status.
26008 # config.status does its own redirection, appending to config.log.
26009 # Unfortunately, on DOS this fails, as config.log is still kept open
26010 # by configure, so config.status won't be able to write to it; its
26011 # output is simply discarded. So we exec the FD to /dev/null,
26012 # effectively closing config.log, so it can be properly (re)opened and
26013 # appended to by config.status. When coming back to configure, we
26014 # need to make the FD available again.
26015 if test "$no_create" != yes; then
26016 ac_cs_success=:
26017 ac_config_status_args=
26018 test "$silent" = yes &&
26019 ac_config_status_args="$ac_config_status_args --quiet"
26020 exec 5>/dev/null
26021 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26022 exec 5>>config.log
26023 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26024 # would make configure fail if this is the last instruction.
26025 $ac_cs_success || as_fn_exit $?
26026 fi
26027 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26029 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
26030 fi
26031