Commit | Line | Data |
---|---|---|
067d23c9 KY |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
d6974efa | 3 | # Generated by GNU Autoconf 2.68 for emacs 24.0.50. |
067d23c9 KY |
4 | # |
5 | # | |
6 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
2018939f AS |
7 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software |
8 | # Foundation, Inc. | |
067d23c9 KY |
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. | |
d6974efa | 92 | as_myself= |
067d23c9 KY |
93 | case $0 in #(( |
94 | *[\\/]* ) as_myself=$0 ;; | |
95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
96 | for as_dir in $PATH | |
97 | do | |
98 | IFS=$as_save_IFS | |
99 | test -z "$as_dir" && as_dir=. | |
100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
101 | done | |
102 | IFS=$as_save_IFS | |
103 | ||
104 | ;; | |
105 | esac | |
106 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
107 | # in which case we are not to be found in the path. | |
108 | if test "x$as_myself" = x; then | |
109 | as_myself=$0 | |
110 | fi | |
111 | if test ! -f "$as_myself"; then | |
112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
113 | exit 1 | |
114 | fi | |
115 | ||
116 | # Unset variables that we do not need and which cause bugs (e.g. in | |
117 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
118 | # suppresses any "Segmentation fault" message there. '((' could | |
119 | # trigger a bug in pdksh 5.2.14. | |
120 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
121 | do eval test x\${$as_var+set} = xset \ | |
122 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
123 | done | |
124 | PS1='$ ' | |
125 | PS2='> ' | |
126 | PS4='+ ' | |
127 | ||
128 | # NLS nuisances. | |
129 | LC_ALL=C | |
130 | export LC_ALL | |
131 | LANGUAGE=C | |
132 | export LANGUAGE | |
133 | ||
134 | # CDPATH. | |
135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
136 | ||
137 | if test "x$CONFIG_SHELL" = x; then | |
138 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
139 | emulate sh | |
140 | NULLCMD=: | |
141 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
142 | # is contrary to our usage. Disable this feature. | |
143 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
144 | setopt NO_GLOB_SUBST | |
145 | else | |
146 | case \`(set -o) 2>/dev/null\` in #( | |
147 | *posix*) : | |
148 | set -o posix ;; #( | |
149 | *) : | |
150 | ;; | |
151 | esac | |
152 | fi | |
153 | " | |
154 | as_required="as_fn_return () { (exit \$1); } | |
155 | as_fn_success () { as_fn_return 0; } | |
156 | as_fn_failure () { as_fn_return 1; } | |
157 | as_fn_ret_success () { return 0; } | |
158 | as_fn_ret_failure () { return 1; } | |
159 | ||
160 | exitcode=0 | |
161 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
162 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
163 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
164 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
165 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
166 | ||
167 | else | |
168 | exitcode=1; echo positional parameters were not saved. | |
169 | fi | |
170 | test x\$exitcode = x0 || exit 1" | |
171 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
172 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
173 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
174 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
175 | test \$(( 1 + 1 )) = 2 || exit 1" | |
176 | if (eval "$as_required") 2>/dev/null; then : | |
177 | as_have_required=yes | |
178 | else | |
179 | as_have_required=no | |
180 | fi | |
181 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
182 | ||
183 | else | |
184 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
185 | as_found=false | |
186 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
187 | do | |
188 | IFS=$as_save_IFS | |
189 | test -z "$as_dir" && as_dir=. | |
190 | as_found=: | |
191 | case $as_dir in #( | |
192 | /*) | |
193 | for as_base in sh bash ksh sh5; do | |
194 | # Try only shells that exist, to save several forks. | |
195 | as_shell=$as_dir/$as_base | |
196 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
197 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
198 | CONFIG_SHELL=$as_shell as_have_required=yes | |
199 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
200 | break 2 | |
201 | fi | |
202 | fi | |
203 | done;; | |
204 | esac | |
205 | as_found=false | |
206 | done | |
207 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
208 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
209 | CONFIG_SHELL=$SHELL as_have_required=yes | |
210 | fi; } | |
211 | IFS=$as_save_IFS | |
212 | ||
213 | ||
214 | if test "x$CONFIG_SHELL" != x; then : | |
215 | # We cannot yet assume a decent shell, so we have to provide a | |
216 | # neutralization value for shells without unset; and this also | |
217 | # works around shells that cannot unset nonexistent variables. | |
d6974efa | 218 | # Preserve -v and -x to the replacement shell. |
067d23c9 KY |
219 | BASH_ENV=/dev/null |
220 | ENV=/dev/null | |
221 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
222 | export CONFIG_SHELL | |
d6974efa PE |
223 | case $- in # (((( |
224 | *v*x* | *x*v* ) as_opts=-vx ;; | |
225 | *v* ) as_opts=-v ;; | |
226 | *x* ) as_opts=-x ;; | |
227 | * ) as_opts= ;; | |
228 | esac | |
229 | exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} | |
067d23c9 KY |
230 | fi |
231 | ||
232 | if test x$as_have_required = xno; then : | |
233 | $as_echo "$0: This script requires a shell more modern than all" | |
234 | $as_echo "$0: the shells that I found on your system." | |
235 | if test x${ZSH_VERSION+set} = xset ; then | |
236 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
237 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
238 | else | |
239 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, | |
240 | $0: including any error possibly output before this | |
241 | $0: message. Then install a modern shell, or manually run | |
242 | $0: the script under such a shell if you do have one." | |
243 | fi | |
244 | exit 1 | |
245 | fi | |
246 | fi | |
247 | fi | |
248 | SHELL=${CONFIG_SHELL-/bin/sh} | |
249 | export SHELL | |
250 | # Unset more variables known to interfere with behavior of common tools. | |
251 | CLICOLOR_FORCE= GREP_OPTIONS= | |
252 | unset CLICOLOR_FORCE GREP_OPTIONS | |
253 | ||
254 | ## --------------------- ## | |
255 | ## M4sh Shell Functions. ## | |
256 | ## --------------------- ## | |
257 | # as_fn_unset VAR | |
258 | # --------------- | |
259 | # Portably unset VAR. | |
260 | as_fn_unset () | |
261 | { | |
262 | { eval $1=; unset $1;} | |
263 | } | |
264 | as_unset=as_fn_unset | |
265 | ||
266 | # as_fn_set_status STATUS | |
267 | # ----------------------- | |
268 | # Set $? to STATUS, without forking. | |
269 | as_fn_set_status () | |
270 | { | |
271 | return $1 | |
272 | } # as_fn_set_status | |
273 | ||
274 | # as_fn_exit STATUS | |
275 | # ----------------- | |
276 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
277 | as_fn_exit () | |
278 | { | |
279 | set +e | |
280 | as_fn_set_status $1 | |
281 | exit $1 | |
282 | } # as_fn_exit | |
283 | ||
284 | # as_fn_mkdir_p | |
285 | # ------------- | |
286 | # Create "$as_dir" as a directory, including parents if necessary. | |
287 | as_fn_mkdir_p () | |
288 | { | |
289 | ||
290 | case $as_dir in #( | |
291 | -*) as_dir=./$as_dir;; | |
292 | esac | |
293 | test -d "$as_dir" || eval $as_mkdir_p || { | |
294 | as_dirs= | |
295 | while :; do | |
296 | case $as_dir in #( | |
297 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
298 | *) as_qdir=$as_dir;; | |
299 | esac | |
300 | as_dirs="'$as_qdir' $as_dirs" | |
301 | as_dir=`$as_dirname -- "$as_dir" || | |
302 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
303 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
304 | X"$as_dir" : 'X\(//\)$' \| \ | |
305 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
306 | $as_echo X"$as_dir" | | |
307 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
308 | s//\1/ | |
309 | q | |
310 | } | |
311 | /^X\(\/\/\)[^/].*/{ | |
312 | s//\1/ | |
313 | q | |
314 | } | |
315 | /^X\(\/\/\)$/{ | |
316 | s//\1/ | |
317 | q | |
318 | } | |
319 | /^X\(\/\).*/{ | |
320 | s//\1/ | |
321 | q | |
322 | } | |
323 | s/.*/./; q'` | |
324 | test -d "$as_dir" && break | |
325 | done | |
326 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
2018939f | 327 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
067d23c9 KY |
328 | |
329 | ||
330 | } # as_fn_mkdir_p | |
331 | # as_fn_append VAR VALUE | |
332 | # ---------------------- | |
333 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
334 | # advantage of any shell optimizations that allow amortized linear growth over | |
335 | # repeated appends, instead of the typical quadratic growth present in naive | |
336 | # implementations. | |
337 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
338 | eval 'as_fn_append () | |
339 | { | |
340 | eval $1+=\$2 | |
341 | }' | |
342 | else | |
343 | as_fn_append () | |
344 | { | |
345 | eval $1=\$$1\$2 | |
346 | } | |
347 | fi # as_fn_append | |
348 | ||
349 | # as_fn_arith ARG... | |
350 | # ------------------ | |
351 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
352 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
353 | # must be portable across $(()) and expr. | |
354 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
355 | eval 'as_fn_arith () | |
356 | { | |
357 | as_val=$(( $* )) | |
358 | }' | |
359 | else | |
360 | as_fn_arith () | |
361 | { | |
362 | as_val=`expr "$@" || test $? -eq 1` | |
363 | } | |
364 | fi # as_fn_arith | |
365 | ||
366 | ||
2018939f AS |
367 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
368 | # ---------------------------------------- | |
067d23c9 KY |
369 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
370 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
2018939f | 371 | # script with STATUS, using 1 if that was 0. |
067d23c9 KY |
372 | as_fn_error () |
373 | { | |
2018939f AS |
374 | as_status=$1; test $as_status -eq 0 && as_status=1 |
375 | if test "$4"; then | |
376 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
377 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
067d23c9 | 378 | fi |
2018939f | 379 | $as_echo "$as_me: error: $2" >&2 |
067d23c9 KY |
380 | as_fn_exit $as_status |
381 | } # as_fn_error | |
382 | ||
383 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
384 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
385 | as_expr=expr | |
386 | else | |
387 | as_expr=false | |
388 | fi | |
389 | ||
390 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
391 | as_basename=basename | |
392 | else | |
393 | as_basename=false | |
394 | fi | |
395 | ||
396 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
397 | as_dirname=dirname | |
398 | else | |
399 | as_dirname=false | |
400 | fi | |
401 | ||
402 | as_me=`$as_basename -- "$0" || | |
403 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
404 | X"$0" : 'X\(//\)$' \| \ | |
405 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
406 | $as_echo X/"$0" | | |
407 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
408 | s//\1/ | |
409 | q | |
410 | } | |
411 | /^X\/\(\/\/\)$/{ | |
412 | s//\1/ | |
413 | q | |
414 | } | |
415 | /^X\/\(\/\).*/{ | |
416 | s//\1/ | |
417 | q | |
418 | } | |
419 | s/.*/./; q'` | |
420 | ||
421 | # Avoid depending upon Character Ranges. | |
422 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
423 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
424 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
425 | as_cr_digits='0123456789' | |
426 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
427 | ||
428 | ||
429 | as_lineno_1=$LINENO as_lineno_1a=$LINENO | |
430 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
431 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
432 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
433 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
434 | sed -n ' | |
435 | p | |
436 | /[$]LINENO/= | |
437 | ' <$as_myself | | |
438 | sed ' | |
439 | s/[$]LINENO.*/&-/ | |
440 | t lineno | |
441 | b | |
442 | :lineno | |
443 | N | |
444 | :loop | |
445 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
446 | t loop | |
447 | s/-\n.*// | |
448 | ' >$as_me.lineno && | |
449 | chmod +x "$as_me.lineno" || | |
450 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
451 | ||
452 | # Don't try to exec as it changes $[0], causing all sort of problems | |
453 | # (the dirname of $[0] is not the place where we might find the | |
454 | # original and so on. Autoconf is especially sensitive to this). | |
455 | . "./$as_me.lineno" | |
456 | # Exit status is that of the last command. | |
457 | exit | |
458 | } | |
459 | ||
460 | ECHO_C= ECHO_N= ECHO_T= | |
461 | case `echo -n x` in #((((( | |
462 | -n*) | |
463 | case `echo 'xy\c'` in | |
464 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
465 | xy) ECHO_C='\c';; | |
466 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
467 | ECHO_T=' ';; | |
468 | esac;; | |
469 | *) | |
470 | ECHO_N='-n';; | |
471 | esac | |
472 | ||
473 | rm -f conf$$ conf$$.exe conf$$.file | |
474 | if test -d conf$$.dir; then | |
475 | rm -f conf$$.dir/conf$$.file | |
476 | else | |
477 | rm -f conf$$.dir | |
478 | mkdir conf$$.dir 2>/dev/null | |
479 | fi | |
480 | if (echo >conf$$.file) 2>/dev/null; then | |
481 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
482 | as_ln_s='ln -s' | |
483 | # ... but there are two gotchas: | |
484 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
485 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
486 | # In both cases, we have to default to `cp -p'. | |
487 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
488 | as_ln_s='cp -p' | |
489 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
490 | as_ln_s=ln | |
491 | else | |
492 | as_ln_s='cp -p' | |
493 | fi | |
494 | else | |
495 | as_ln_s='cp -p' | |
496 | fi | |
497 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
498 | rmdir conf$$.dir 2>/dev/null | |
499 | ||
500 | if mkdir -p . 2>/dev/null; then | |
501 | as_mkdir_p='mkdir -p "$as_dir"' | |
502 | else | |
503 | test -d ./-p && rmdir ./-p | |
504 | as_mkdir_p=false | |
505 | fi | |
506 | ||
507 | if test -x / >/dev/null 2>&1; then | |
508 | as_test_x='test -x' | |
509 | else | |
510 | if ls -dL / >/dev/null 2>&1; then | |
511 | as_ls_L_option=L | |
512 | else | |
513 | as_ls_L_option= | |
514 | fi | |
515 | as_test_x=' | |
516 | eval sh -c '\'' | |
517 | if test -d "$1"; then | |
518 | test -d "$1/."; | |
519 | else | |
520 | case $1 in #( | |
521 | -*)set "./$1";; | |
522 | esac; | |
523 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
524 | ???[sx]*):;;*)false;;esac;fi | |
525 | '\'' sh | |
526 | ' | |
527 | fi | |
528 | as_executable_p=$as_test_x | |
529 | ||
530 | # Sed expression to map a string onto a valid CPP name. | |
531 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
532 | ||
533 | # Sed expression to map a string onto a valid variable name. | |
534 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
535 | ||
536 | ||
537 | test -n "$DJDIR" || exec 7<&0 </dev/null | |
538 | exec 6>&1 | |
539 | ||
540 | # Name of the host. | |
2018939f | 541 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
067d23c9 KY |
542 | # so uname gets run too. |
543 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
544 | ||
545 | # | |
546 | # Initializations. | |
547 | # | |
548 | ac_default_prefix=/usr/local | |
549 | ac_clean_files= | |
550 | ac_config_libobj_dir=. | |
551 | LIBOBJS= | |
552 | cross_compiling=no | |
553 | subdirs= | |
554 | MFLAGS= | |
555 | MAKEFLAGS= | |
556 | ||
557 | # Identity of this package. | |
558 | PACKAGE_NAME='emacs' | |
559 | PACKAGE_TARNAME='emacs' | |
560 | PACKAGE_VERSION='24.0.50' | |
561 | PACKAGE_STRING='emacs 24.0.50' | |
562 | PACKAGE_BUGREPORT='' | |
563 | PACKAGE_URL='' | |
564 | ||
565 | ac_unique_file="src/lisp.h" | |
566 | # Factoring default headers for most tests. | |
567 | ac_includes_default="\ | |
568 | #include <stdio.h> | |
569 | #ifdef HAVE_SYS_TYPES_H | |
570 | # include <sys/types.h> | |
571 | #endif | |
572 | #ifdef HAVE_SYS_STAT_H | |
573 | # include <sys/stat.h> | |
574 | #endif | |
575 | #ifdef STDC_HEADERS | |
576 | # include <stdlib.h> | |
577 | # include <stddef.h> | |
578 | #else | |
579 | # ifdef HAVE_STDLIB_H | |
580 | # include <stdlib.h> | |
581 | # endif | |
582 | #endif | |
583 | #ifdef HAVE_STRING_H | |
584 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
585 | # include <memory.h> | |
586 | # endif | |
587 | # include <string.h> | |
588 | #endif | |
589 | #ifdef HAVE_STRINGS_H | |
590 | # include <strings.h> | |
591 | #endif | |
592 | #ifdef HAVE_INTTYPES_H | |
593 | # include <inttypes.h> | |
594 | #endif | |
595 | #ifdef HAVE_STDINT_H | |
596 | # include <stdint.h> | |
597 | #endif | |
598 | #ifdef HAVE_UNISTD_H | |
599 | # include <unistd.h> | |
600 | #endif" | |
601 | ||
067d23c9 | 602 | ac_header_list= |
e275c824 PE |
603 | gl_getopt_required=POSIX |
604 | gl_getopt_required=POSIX | |
067d23c9 | 605 | ac_func_list= |
743c80a7 PE |
606 | ac_subst_vars='gltests_LTLIBOBJS |
607 | gltests_LIBOBJS | |
608 | gl_LTLIBOBJS | |
609 | gl_LIBOBJS | |
610 | am__EXEEXT_FALSE | |
611 | am__EXEEXT_TRUE | |
612 | LTLIBOBJS | |
1f5d53eb | 613 | LIBOBJS |
067d23c9 KY |
614 | WINDOW_SUPPORT |
615 | TOOLTIP_SUPPORT | |
616 | MOUSE_SUPPORT | |
617 | LIB_GCC | |
618 | LD_FIRSTFLAG | |
619 | LD_SWITCH_SYSTEM_TEMACS | |
620 | POST_ALLOC_OBJ | |
621 | PRE_ALLOC_OBJ | |
622 | CYGWIN_OBJ | |
623 | RALLOC_OBJ | |
624 | OLDXMENU_DEPS | |
625 | LIBX_OTHER | |
626 | LIBXMENU | |
627 | OLDXMENU | |
628 | OLDXMENU_TARGET | |
629 | LIBXT_OTHER | |
630 | TOOLKIT_LIBW | |
631 | WIDGET_OBJ | |
632 | XOBJ | |
633 | XMENU_OBJ | |
634 | FONT_OBJ | |
635 | OTHER_FILES | |
636 | GNU_OBJC_CFLAGS | |
637 | ns_appsrc | |
638 | ns_appresdir | |
639 | ns_appbindir | |
640 | ns_appdir | |
d6a003a8 AS |
641 | S_FILE |
642 | M_FILE | |
067d23c9 KY |
643 | X_TOOLKIT_TYPE |
644 | C_SWITCH_X_SYSTEM | |
645 | C_SWITCH_X_SITE | |
646 | LD_SWITCH_X_SITE | |
647 | gameuser | |
648 | gamedir | |
649 | bitmapdir | |
650 | archlibdir | |
651 | etcdir | |
652 | x_default_search_path | |
653 | lisppath | |
654 | locallisppath | |
655 | lispdir | |
656 | srcdir | |
657 | canonical | |
658 | configuration | |
659 | version | |
660 | KRB4LIB | |
661 | DESLIB | |
662 | KRB5LIB | |
663 | CRYPTOLIB | |
664 | COM_ERRLIB | |
665 | LIBRESOLV | |
666 | LIBHESIOD | |
667 | TERMCAP_OBJ | |
668 | LIBS_TERMCAP | |
743c80a7 PE |
669 | LIBGNU_LTLIBDEPS |
670 | LIBGNU_LIBDEPS | |
671 | gltests_WITNESS | |
e275c824 PE |
672 | HAVE_UNISTD_H |
673 | NEXT_AS_FIRST_DIRECTIVE_UNISTD_H | |
674 | NEXT_UNISTD_H | |
1fd182f0 PE |
675 | PTHREAD_H_DEFINES_STRUCT_TIMESPEC |
676 | SYS_TIME_H_DEFINES_STRUCT_TIMESPEC | |
677 | TIME_H_DEFINES_STRUCT_TIMESPEC | |
678 | NEXT_AS_FIRST_DIRECTIVE_TIME_H | |
679 | NEXT_TIME_H | |
5fa4ac76 PE |
680 | NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H |
681 | NEXT_SYS_STAT_H | |
682 | REPLACE_UTIMENSAT | |
683 | REPLACE_STAT | |
684 | REPLACE_MKNOD | |
685 | REPLACE_MKFIFO | |
686 | REPLACE_MKDIR | |
687 | REPLACE_LSTAT | |
688 | REPLACE_FUTIMENS | |
689 | REPLACE_FSTATAT | |
690 | REPLACE_FSTAT | |
691 | HAVE_UTIMENSAT | |
692 | HAVE_MKNODAT | |
693 | HAVE_MKNOD | |
694 | HAVE_MKFIFOAT | |
695 | HAVE_MKFIFO | |
696 | HAVE_MKDIRAT | |
697 | HAVE_LSTAT | |
698 | HAVE_LCHMOD | |
699 | HAVE_FUTIMENS | |
700 | HAVE_FSTATAT | |
701 | HAVE_FCHMODAT | |
702 | GNULIB_UTIMENSAT | |
703 | GNULIB_STAT | |
704 | GNULIB_MKNODAT | |
705 | GNULIB_MKNOD | |
706 | GNULIB_MKFIFOAT | |
707 | GNULIB_MKFIFO | |
708 | GNULIB_MKDIRAT | |
709 | GNULIB_LSTAT | |
710 | GNULIB_LCHMOD | |
711 | GNULIB_FUTIMENS | |
712 | GNULIB_FSTATAT | |
713 | GNULIB_FCHMODAT | |
1f5d53eb PE |
714 | NEXT_AS_FIRST_DIRECTIVE_STDLIB_H |
715 | NEXT_STDLIB_H | |
5f90be1b PE |
716 | STDINT_H |
717 | WINT_T_SUFFIX | |
718 | WCHAR_T_SUFFIX | |
719 | SIG_ATOMIC_T_SUFFIX | |
720 | SIZE_T_SUFFIX | |
721 | PTRDIFF_T_SUFFIX | |
722 | HAVE_SIGNED_WINT_T | |
723 | HAVE_SIGNED_WCHAR_T | |
724 | HAVE_SIGNED_SIG_ATOMIC_T | |
725 | BITSIZEOF_WINT_T | |
726 | BITSIZEOF_WCHAR_T | |
727 | BITSIZEOF_SIG_ATOMIC_T | |
728 | BITSIZEOF_SIZE_T | |
729 | BITSIZEOF_PTRDIFF_T | |
730 | HAVE_SYS_BITYPES_H | |
731 | HAVE_SYS_INTTYPES_H | |
732 | HAVE_STDINT_H | |
733 | NEXT_AS_FIRST_DIRECTIVE_STDINT_H | |
734 | NEXT_STDINT_H | |
735 | HAVE_SYS_TYPES_H | |
736 | HAVE_INTTYPES_H | |
737 | HAVE_WCHAR_H | |
738 | HAVE_UNSIGNED_LONG_LONG_INT | |
739 | HAVE_LONG_LONG_INT | |
1fd182f0 PE |
740 | NEXT_AS_FIRST_DIRECTIVE_STDDEF_H |
741 | NEXT_STDDEF_H | |
1fd182f0 PE |
742 | STDDEF_H |
743 | HAVE_WCHAR_T | |
744 | REPLACE_NULL | |
16c3e636 PE |
745 | HAVE__BOOL |
746 | STDBOOL_H | |
1fd182f0 PE |
747 | APPLE_UNIVERSAL_BUILD |
748 | REPLACE_TIMEGM | |
749 | REPLACE_NANOSLEEP | |
750 | REPLACE_MKTIME | |
751 | REPLACE_LOCALTIME_R | |
752 | HAVE_TIMEGM | |
753 | HAVE_STRPTIME | |
754 | HAVE_NANOSLEEP | |
755 | HAVE_DECL_LOCALTIME_R | |
756 | GNULIB_TIME_R | |
757 | GNULIB_TIMEGM | |
758 | GNULIB_STRPTIME | |
759 | GNULIB_NANOSLEEP | |
760 | GNULIB_MKTIME | |
e275c824 PE |
761 | LTLIBINTL |
762 | LIBINTL | |
763 | GETOPT_H | |
764 | HAVE_GETOPT_H | |
765 | NEXT_AS_FIRST_DIRECTIVE_GETOPT_H | |
766 | NEXT_GETOPT_H | |
767 | PRAGMA_COLUMNS | |
768 | PRAGMA_SYSTEM_HEADER | |
769 | INCLUDE_NEXT_AS_FIRST_DIRECTIVE | |
770 | INCLUDE_NEXT | |
771 | UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS | |
772 | UNISTD_H_HAVE_WINSOCK2_H | |
773 | REPLACE_WRITE | |
774 | REPLACE_USLEEP | |
775 | REPLACE_UNLINKAT | |
776 | REPLACE_UNLINK | |
777 | REPLACE_TTYNAME_R | |
778 | REPLACE_SYMLINK | |
779 | REPLACE_SLEEP | |
780 | REPLACE_RMDIR | |
781 | REPLACE_READLINK | |
782 | REPLACE_PWRITE | |
783 | REPLACE_PREAD | |
784 | REPLACE_LSEEK | |
785 | REPLACE_LINKAT | |
786 | REPLACE_LINK | |
787 | REPLACE_LCHOWN | |
788 | REPLACE_GETPAGESIZE | |
789 | REPLACE_GETGROUPS | |
790 | REPLACE_GETLOGIN_R | |
791 | REPLACE_GETDOMAINNAME | |
792 | REPLACE_GETCWD | |
793 | REPLACE_FCHOWNAT | |
794 | REPLACE_DUP2 | |
795 | REPLACE_DUP | |
796 | REPLACE_CLOSE | |
797 | REPLACE_CHOWN | |
798 | HAVE_SYS_PARAM_H | |
799 | HAVE_OS_H | |
800 | HAVE_DECL_TTYNAME_R | |
801 | HAVE_DECL_GETUSERSHELL | |
802 | HAVE_DECL_GETPAGESIZE | |
803 | HAVE_DECL_GETLOGIN_R | |
804 | HAVE_DECL_GETDOMAINNAME | |
805 | HAVE_DECL_FCHDIR | |
806 | HAVE_DECL_ENVIRON | |
807 | HAVE_USLEEP | |
808 | HAVE_UNLINKAT | |
809 | HAVE_SYMLINKAT | |
810 | HAVE_SYMLINK | |
811 | HAVE_SLEEP | |
812 | HAVE_READLINKAT | |
813 | HAVE_READLINK | |
814 | HAVE_PWRITE | |
815 | HAVE_PREAD | |
816 | HAVE_PIPE2 | |
817 | HAVE_PIPE | |
818 | HAVE_LINKAT | |
819 | HAVE_LINK | |
820 | HAVE_LCHOWN | |
821 | HAVE_GETPAGESIZE | |
822 | HAVE_GETLOGIN | |
823 | HAVE_GETHOSTNAME | |
824 | HAVE_GETGROUPS | |
825 | HAVE_GETDTABLESIZE | |
826 | HAVE_FTRUNCATE | |
827 | HAVE_FSYNC | |
828 | HAVE_FCHOWNAT | |
829 | HAVE_FCHDIR | |
830 | HAVE_FACCESSAT | |
831 | HAVE_EUIDACCESS | |
832 | HAVE_DUP3 | |
833 | HAVE_DUP2 | |
834 | HAVE_CHOWN | |
835 | GNULIB_WRITE | |
836 | GNULIB_USLEEP | |
837 | GNULIB_UNLINKAT | |
838 | GNULIB_UNLINK | |
839 | GNULIB_UNISTD_H_SIGPIPE | |
840 | GNULIB_UNISTD_H_GETOPT | |
841 | GNULIB_TTYNAME_R | |
842 | GNULIB_SYMLINKAT | |
843 | GNULIB_SYMLINK | |
844 | GNULIB_SLEEP | |
845 | GNULIB_RMDIR | |
846 | GNULIB_READLINKAT | |
847 | GNULIB_READLINK | |
848 | GNULIB_PWRITE | |
849 | GNULIB_PREAD | |
850 | GNULIB_PIPE2 | |
851 | GNULIB_PIPE | |
852 | GNULIB_LSEEK | |
853 | GNULIB_LINKAT | |
854 | GNULIB_LINK | |
855 | GNULIB_LCHOWN | |
856 | GNULIB_GETUSERSHELL | |
857 | GNULIB_GETPAGESIZE | |
858 | GNULIB_GETLOGIN_R | |
859 | GNULIB_GETLOGIN | |
860 | GNULIB_GETHOSTNAME | |
861 | GNULIB_GETGROUPS | |
862 | GNULIB_GETDTABLESIZE | |
863 | GNULIB_GETDOMAINNAME | |
864 | GNULIB_GETCWD | |
865 | GNULIB_FTRUNCATE | |
866 | GNULIB_FSYNC | |
867 | GNULIB_FCHOWNAT | |
868 | GNULIB_FCHDIR | |
869 | GNULIB_FACCESSAT | |
870 | GNULIB_EUIDACCESS | |
871 | GNULIB_ENVIRON | |
872 | GNULIB_DUP3 | |
873 | GNULIB_DUP2 | |
874 | GNULIB_CLOSE | |
875 | GNULIB_CHOWN | |
1f5d53eb | 876 | GETLOADAVG_LIBS |
9411886d | 877 | REPLACE_WCTOMB |
1f5d53eb PE |
878 | REPLACE_UNSETENV |
879 | REPLACE_STRTOD | |
880 | REPLACE_SETENV | |
881 | REPLACE_REALPATH | |
882 | REPLACE_REALLOC | |
883 | REPLACE_PUTENV | |
884 | REPLACE_MKSTEMP | |
9411886d | 885 | REPLACE_MBTOWC |
1f5d53eb PE |
886 | REPLACE_MALLOC |
887 | REPLACE_CANONICALIZE_FILE_NAME | |
888 | REPLACE_CALLOC | |
889 | HAVE_DECL_UNSETENV | |
890 | HAVE_UNLOCKPT | |
891 | HAVE_SYS_LOADAVG_H | |
892 | HAVE_STRUCT_RANDOM_DATA | |
893 | HAVE_STRTOULL | |
894 | HAVE_STRTOLL | |
895 | HAVE_STRTOD | |
896 | HAVE_DECL_SETENV | |
897 | HAVE_SETENV | |
898 | HAVE_RPMATCH | |
899 | HAVE_REALPATH | |
900 | HAVE_RANDOM_R | |
901 | HAVE_RANDOM_H | |
902 | HAVE_PTSNAME | |
903 | HAVE_MKSTEMPS | |
904 | HAVE_MKSTEMP | |
905 | HAVE_MKOSTEMPS | |
906 | HAVE_MKOSTEMP | |
907 | HAVE_MKDTEMP | |
908 | HAVE_GRANTPT | |
909 | HAVE_GETSUBOPT | |
910 | HAVE_DECL_GETLOADAVG | |
911 | HAVE_CANONICALIZE_FILE_NAME | |
912 | HAVE_ATOLL | |
913 | HAVE__EXIT | |
9411886d | 914 | GNULIB_WCTOMB |
1f5d53eb PE |
915 | GNULIB_UNSETENV |
916 | GNULIB_UNLOCKPT | |
917 | GNULIB_SYSTEM_POSIX | |
918 | GNULIB_STRTOULL | |
919 | GNULIB_STRTOLL | |
920 | GNULIB_STRTOD | |
921 | GNULIB_SETENV | |
922 | GNULIB_RPMATCH | |
923 | GNULIB_REALPATH | |
924 | GNULIB_REALLOC_POSIX | |
925 | GNULIB_RANDOM_R | |
926 | GNULIB_PUTENV | |
927 | GNULIB_PTSNAME | |
928 | GNULIB_MKSTEMPS | |
929 | GNULIB_MKSTEMP | |
930 | GNULIB_MKOSTEMPS | |
931 | GNULIB_MKOSTEMP | |
932 | GNULIB_MKDTEMP | |
9411886d | 933 | GNULIB_MBTOWC |
1f5d53eb PE |
934 | GNULIB_MALLOC_POSIX |
935 | GNULIB_GRANTPT | |
936 | GNULIB_GETSUBOPT | |
937 | GNULIB_GETLOADAVG | |
938 | GNULIB_CANONICALIZE_FILE_NAME | |
939 | GNULIB_CALLOC_POSIX | |
940 | GNULIB_ATOLL | |
941 | GNULIB__EXIT | |
743c80a7 PE |
942 | GL_COND_LIBTOOL_FALSE |
943 | GL_COND_LIBTOOL_TRUE | |
067d23c9 KY |
944 | BLESSMAIL_TARGET |
945 | LIBS_MAIL | |
946 | liblockfile | |
947 | ALLOCA | |
948 | LIBXML2_LIBS | |
949 | LIBXML2_CFLAGS | |
950 | LIBXSM | |
951 | LIBGPM | |
952 | LIBGIF | |
953 | LIBTIFF | |
954 | LIBPNG | |
955 | LIBJPEG | |
956 | LIBXPM | |
957 | FREETYPE_LIBS | |
958 | FREETYPE_CFLAGS | |
959 | M17N_FLT_LIBS | |
960 | M17N_FLT_CFLAGS | |
961 | LIBOTF_LIBS | |
962 | LIBOTF_CFLAGS | |
963 | XFT_LIBS | |
964 | XFT_CFLAGS | |
965 | FONTCONFIG_LIBS | |
966 | FONTCONFIG_CFLAGS | |
967 | LIBXMU | |
968 | LIBXTR6 | |
969 | LIBGNUTLS_LIBS | |
970 | LIBGNUTLS_CFLAGS | |
971 | LIBSELINUX_LIBS | |
972 | GCONF_LIBS | |
973 | GCONF_CFLAGS | |
974 | DBUS_OBJ | |
975 | DBUS_LIBS | |
976 | DBUS_CFLAGS | |
977 | GTK_OBJ | |
978 | GTK_LIBS | |
979 | GTK_CFLAGS | |
980 | IMAGEMAGICK_LIBS | |
981 | IMAGEMAGICK_CFLAGS | |
982 | RSVG_LIBS | |
983 | RSVG_CFLAGS | |
984 | VMLIMIT_OBJ | |
985 | GMALLOC_OBJ | |
986 | HAVE_XSERVER | |
987 | LIB_STANDARD | |
988 | NS_SUPPORT | |
00b3c7ac | 989 | NS_OBJC_OBJ |
067d23c9 KY |
990 | NS_OBJ |
991 | TEMACS_LDFLAGS2 | |
992 | LD_SWITCH_X_SITE_AUX_RPATH | |
993 | LD_SWITCH_X_SITE_AUX | |
994 | XMKMF | |
995 | DEPFLAGS | |
996 | MKDEPDIR | |
067d23c9 KY |
997 | CFLAGS_SOUND |
998 | ALSA_LIBS | |
999 | ALSA_CFLAGS | |
1000 | PKG_CONFIG | |
1001 | LIBSOUND | |
1002 | START_FILES | |
1003 | LIB_MATH | |
1004 | CRT_DIR | |
1005 | LIBS_SYSTEM | |
1006 | C_SWITCH_SYSTEM | |
1007 | UNEXEC_OBJ | |
1008 | C_SWITCH_MACHINE | |
1009 | LD_SWITCH_SYSTEM | |
1010 | CANNOT_DUMP | |
96f129d5 | 1011 | HAVE_MAKEINFO |
067d23c9 KY |
1012 | GZIP_PROG |
1013 | INSTALL_INFO | |
067d23c9 KY |
1014 | C_WARNINGS_SWITCH |
1015 | EGREP | |
1016 | GREP | |
1017 | CPP | |
743c80a7 PE |
1018 | RANLIB |
1019 | am__fastdepCC_FALSE | |
1020 | am__fastdepCC_TRUE | |
1021 | CCDEPMODE | |
1022 | AMDEPBACKSLASH | |
1023 | AMDEP_FALSE | |
1024 | AMDEP_TRUE | |
1025 | am__quote | |
1026 | am__include | |
1027 | DEPDIR | |
067d23c9 KY |
1028 | OBJEXT |
1029 | EXEEXT | |
1030 | ac_ct_CC | |
1031 | CPPFLAGS | |
1032 | LDFLAGS | |
1033 | CFLAGS | |
1034 | CC | |
1035 | host_os | |
1036 | host_vendor | |
1037 | host_cpu | |
1038 | host | |
1039 | build_os | |
1040 | build_vendor | |
1041 | build_cpu | |
1042 | build | |
1043 | PROFILING_CFLAGS | |
1044 | MAINT | |
1045 | GZIP_INFO | |
743c80a7 PE |
1046 | am__untar |
1047 | am__tar | |
1048 | AMTAR | |
1049 | am__leading_dot | |
1050 | SET_MAKE | |
1051 | AWK | |
1052 | mkdir_p | |
1053 | MKDIR_P | |
1054 | INSTALL_STRIP_PROGRAM | |
1055 | STRIP | |
1056 | install_sh | |
1057 | MAKEINFO | |
1058 | AUTOHEADER | |
1059 | AUTOMAKE | |
1060 | AUTOCONF | |
1061 | ACLOCAL | |
1062 | VERSION | |
1063 | PACKAGE | |
1064 | CYGPATH_W | |
1065 | am__isrc | |
1066 | INSTALL_DATA | |
1067 | INSTALL_SCRIPT | |
1068 | INSTALL_PROGRAM | |
067d23c9 KY |
1069 | target_alias |
1070 | host_alias | |
1071 | build_alias | |
1072 | LIBS | |
1073 | ECHO_T | |
1074 | ECHO_N | |
1075 | ECHO_C | |
1076 | DEFS | |
1077 | mandir | |
1078 | localedir | |
1079 | libdir | |
1080 | psdir | |
1081 | pdfdir | |
1082 | dvidir | |
1083 | htmldir | |
1084 | infodir | |
1085 | docdir | |
1086 | oldincludedir | |
1087 | includedir | |
1088 | localstatedir | |
1089 | sharedstatedir | |
1090 | sysconfdir | |
1091 | datadir | |
1092 | datarootdir | |
1093 | libexecdir | |
1094 | sbindir | |
1095 | bindir | |
1096 | program_transform_name | |
1097 | prefix | |
1098 | exec_prefix | |
1099 | PACKAGE_URL | |
1100 | PACKAGE_BUGREPORT | |
1101 | PACKAGE_STRING | |
1102 | PACKAGE_VERSION | |
1103 | PACKAGE_TARNAME | |
1104 | PACKAGE_NAME | |
1105 | PATH_SEPARATOR | |
1106 | SHELL' | |
1107 | ac_subst_files='deps_frag | |
1108 | ns_frag' | |
1109 | ac_user_opts=' | |
1110 | enable_option_checking | |
1111 | with_pop | |
1112 | with_kerberos | |
1113 | with_kerberos5 | |
1114 | with_hesiod | |
1115 | with_mmdf | |
1116 | with_mail_unlink | |
1117 | with_mailhost | |
1118 | with_sound | |
1119 | with_sync_input | |
1120 | with_x_toolkit | |
1121 | with_xpm | |
1122 | with_jpeg | |
1123 | with_tiff | |
1124 | with_gif | |
1125 | with_png | |
1126 | with_rsvg | |
1127 | with_xml2 | |
1128 | with_imagemagick | |
1129 | with_xft | |
1130 | with_libotf | |
1131 | with_m17n_flt | |
1132 | with_toolkit_scroll_bars | |
1133 | with_xaw3d | |
1134 | with_xim | |
1135 | with_ns | |
1136 | with_gpm | |
1137 | with_dbus | |
1138 | with_gconf | |
1139 | with_selinux | |
1140 | with_gnutls | |
1141 | with_makeinfo | |
1142 | with_compress_info | |
1143 | with_pkg_config_prog | |
1144 | with_crt_dir | |
4fc5868a | 1145 | with_gameuser |
067d23c9 KY |
1146 | with_gnustep_conf |
1147 | enable_ns_self_contained | |
1148 | enable_asserts | |
1149 | enable_maintainer_mode | |
1150 | enable_locallisppath | |
1151 | enable_checking | |
1152 | enable_use_lisp_union_type | |
1153 | enable_profiling | |
1154 | enable_autodepend | |
743c80a7 | 1155 | enable_dependency_tracking |
067d23c9 KY |
1156 | enable_largefile |
1157 | with_x | |
1158 | ' | |
1159 | ac_precious_vars='build_alias | |
1160 | host_alias | |
1161 | target_alias | |
1162 | CC | |
1163 | CFLAGS | |
1164 | LDFLAGS | |
1165 | LIBS | |
1166 | CPPFLAGS | |
1167 | CPP | |
1f5d53eb PE |
1168 | CPPFLAGS |
1169 | CPP | |
1170 | CPPFLAGS | |
067d23c9 KY |
1171 | XMKMF' |
1172 | ||
1173 | ||
1174 | # Initialize some variables set by options. | |
1175 | ac_init_help= | |
1176 | ac_init_version=false | |
1177 | ac_unrecognized_opts= | |
1178 | ac_unrecognized_sep= | |
1179 | # The variables have the same names as the options, with | |
1180 | # dashes changed to underlines. | |
1181 | cache_file=/dev/null | |
1182 | exec_prefix=NONE | |
1183 | no_create= | |
1184 | no_recursion= | |
1185 | prefix=NONE | |
1186 | program_prefix=NONE | |
1187 | program_suffix=NONE | |
1188 | program_transform_name=s,x,x, | |
1189 | silent= | |
1190 | site= | |
1191 | srcdir= | |
1192 | verbose= | |
1193 | x_includes=NONE | |
1194 | x_libraries=NONE | |
1195 | ||
1196 | # Installation directory options. | |
1197 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
1198 | # and all the variables that are supposed to be based on exec_prefix | |
1199 | # by default will actually change. | |
1200 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
1201 | # (The list follows the same order as the GNU Coding Standards.) | |
1202 | bindir='${exec_prefix}/bin' | |
1203 | sbindir='${exec_prefix}/sbin' | |
1204 | libexecdir='${exec_prefix}/libexec' | |
1205 | datarootdir='${prefix}/share' | |
1206 | datadir='${datarootdir}' | |
1207 | sysconfdir='${prefix}/etc' | |
1208 | sharedstatedir='${prefix}/com' | |
1209 | localstatedir='${prefix}/var' | |
1210 | includedir='${prefix}/include' | |
1211 | oldincludedir='/usr/include' | |
1212 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
1213 | infodir='${datarootdir}/info' | |
1214 | htmldir='${docdir}' | |
1215 | dvidir='${docdir}' | |
1216 | pdfdir='${docdir}' | |
1217 | psdir='${docdir}' | |
1218 | libdir='${exec_prefix}/lib' | |
1219 | localedir='${datarootdir}/locale' | |
1220 | mandir='${datarootdir}/man' | |
1221 | ||
1222 | ac_prev= | |
1223 | ac_dashdash= | |
1224 | for ac_option | |
1225 | do | |
1226 | # If the previous option needs an argument, assign it. | |
1227 | if test -n "$ac_prev"; then | |
1228 | eval $ac_prev=\$ac_option | |
1229 | ac_prev= | |
1230 | continue | |
1231 | fi | |
1232 | ||
1233 | case $ac_option in | |
2018939f AS |
1234 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
1235 | *=) ac_optarg= ;; | |
1236 | *) ac_optarg=yes ;; | |
067d23c9 KY |
1237 | esac |
1238 | ||
1239 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
1240 | ||
1241 | case $ac_dashdash$ac_option in | |
1242 | --) | |
1243 | ac_dashdash=yes ;; | |
1244 | ||
1245 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
1246 | ac_prev=bindir ;; | |
1247 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
1248 | bindir=$ac_optarg ;; | |
1249 | ||
1250 | -build | --build | --buil | --bui | --bu) | |
1251 | ac_prev=build_alias ;; | |
1252 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
1253 | build_alias=$ac_optarg ;; | |
1254 | ||
1255 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
1256 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
1257 | ac_prev=cache_file ;; | |
1258 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
1259 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
1260 | cache_file=$ac_optarg ;; | |
1261 | ||
1262 | --config-cache | -C) | |
1263 | cache_file=config.cache ;; | |
1264 | ||
1265 | -datadir | --datadir | --datadi | --datad) | |
1266 | ac_prev=datadir ;; | |
1267 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
1268 | datadir=$ac_optarg ;; | |
1269 | ||
1270 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
1271 | | --dataroo | --dataro | --datar) | |
1272 | ac_prev=datarootdir ;; | |
1273 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1274 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1275 | datarootdir=$ac_optarg ;; | |
1276 | ||
1277 | -disable-* | --disable-*) | |
1278 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
1279 | # Reject names that are not valid shell variable names. | |
1280 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
2018939f | 1281 | as_fn_error $? "invalid feature name: $ac_useropt" |
067d23c9 KY |
1282 | ac_useropt_orig=$ac_useropt |
1283 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1284 | case $ac_user_opts in | |
1285 | *" | |
1286 | "enable_$ac_useropt" | |
1287 | "*) ;; | |
1288 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1289 | ac_unrecognized_sep=', ';; | |
1290 | esac | |
1291 | eval enable_$ac_useropt=no ;; | |
1292 | ||
1293 | -docdir | --docdir | --docdi | --doc | --do) | |
1294 | ac_prev=docdir ;; | |
1295 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1296 | docdir=$ac_optarg ;; | |
1297 | ||
1298 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1299 | ac_prev=dvidir ;; | |
1300 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1301 | dvidir=$ac_optarg ;; | |
1302 | ||
1303 | -enable-* | --enable-*) | |
1304 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
1305 | # Reject names that are not valid shell variable names. | |
1306 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
2018939f | 1307 | as_fn_error $? "invalid feature name: $ac_useropt" |
067d23c9 KY |
1308 | ac_useropt_orig=$ac_useropt |
1309 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1310 | case $ac_user_opts in | |
1311 | *" | |
1312 | "enable_$ac_useropt" | |
1313 | "*) ;; | |
1314 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1315 | ac_unrecognized_sep=', ';; | |
1316 | esac | |
1317 | eval enable_$ac_useropt=\$ac_optarg ;; | |
1318 | ||
1319 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1320 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1321 | | --exec | --exe | --ex) | |
1322 | ac_prev=exec_prefix ;; | |
1323 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1324 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1325 | | --exec=* | --exe=* | --ex=*) | |
1326 | exec_prefix=$ac_optarg ;; | |
1327 | ||
1328 | -gas | --gas | --ga | --g) | |
1329 | # Obsolete; use --with-gas. | |
1330 | with_gas=yes ;; | |
1331 | ||
1332 | -help | --help | --hel | --he | -h) | |
1333 | ac_init_help=long ;; | |
1334 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1335 | ac_init_help=recursive ;; | |
1336 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1337 | ac_init_help=short ;; | |
1338 | ||
1339 | -host | --host | --hos | --ho) | |
1340 | ac_prev=host_alias ;; | |
1341 | -host=* | --host=* | --hos=* | --ho=*) | |
1342 | host_alias=$ac_optarg ;; | |
1343 | ||
1344 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
1345 | ac_prev=htmldir ;; | |
1346 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1347 | | --ht=*) | |
1348 | htmldir=$ac_optarg ;; | |
1349 | ||
1350 | -includedir | --includedir | --includedi | --included | --include \ | |
1351 | | --includ | --inclu | --incl | --inc) | |
1352 | ac_prev=includedir ;; | |
1353 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1354 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1355 | includedir=$ac_optarg ;; | |
1356 | ||
1357 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1358 | ac_prev=infodir ;; | |
1359 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1360 | infodir=$ac_optarg ;; | |
1361 | ||
1362 | -libdir | --libdir | --libdi | --libd) | |
1363 | ac_prev=libdir ;; | |
1364 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1365 | libdir=$ac_optarg ;; | |
1366 | ||
1367 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1368 | | --libexe | --libex | --libe) | |
1369 | ac_prev=libexecdir ;; | |
1370 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1371 | | --libexe=* | --libex=* | --libe=*) | |
1372 | libexecdir=$ac_optarg ;; | |
1373 | ||
1374 | -localedir | --localedir | --localedi | --localed | --locale) | |
1375 | ac_prev=localedir ;; | |
1376 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1377 | localedir=$ac_optarg ;; | |
1378 | ||
1379 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1380 | | --localstate | --localstat | --localsta | --localst | --locals) | |
1381 | ac_prev=localstatedir ;; | |
1382 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1383 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1384 | localstatedir=$ac_optarg ;; | |
1385 | ||
1386 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1387 | ac_prev=mandir ;; | |
1388 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1389 | mandir=$ac_optarg ;; | |
1390 | ||
1391 | -nfp | --nfp | --nf) | |
1392 | # Obsolete; use --without-fp. | |
1393 | with_fp=no ;; | |
1394 | ||
1395 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1396 | | --no-cr | --no-c | -n) | |
1397 | no_create=yes ;; | |
1398 | ||
1399 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1400 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1401 | no_recursion=yes ;; | |
1402 | ||
1403 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1404 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1405 | | --oldin | --oldi | --old | --ol | --o) | |
1406 | ac_prev=oldincludedir ;; | |
1407 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1408 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1409 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1410 | oldincludedir=$ac_optarg ;; | |
1411 | ||
1412 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1413 | ac_prev=prefix ;; | |
1414 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1415 | prefix=$ac_optarg ;; | |
1416 | ||
1417 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1418 | | --program-pre | --program-pr | --program-p) | |
1419 | ac_prev=program_prefix ;; | |
1420 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1421 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1422 | program_prefix=$ac_optarg ;; | |
1423 | ||
1424 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1425 | | --program-suf | --program-su | --program-s) | |
1426 | ac_prev=program_suffix ;; | |
1427 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1428 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1429 | program_suffix=$ac_optarg ;; | |
1430 | ||
1431 | -program-transform-name | --program-transform-name \ | |
1432 | | --program-transform-nam | --program-transform-na \ | |
1433 | | --program-transform-n | --program-transform- \ | |
1434 | | --program-transform | --program-transfor \ | |
1435 | | --program-transfo | --program-transf \ | |
1436 | | --program-trans | --program-tran \ | |
1437 | | --progr-tra | --program-tr | --program-t) | |
1438 | ac_prev=program_transform_name ;; | |
1439 | -program-transform-name=* | --program-transform-name=* \ | |
1440 | | --program-transform-nam=* | --program-transform-na=* \ | |
1441 | | --program-transform-n=* | --program-transform-=* \ | |
1442 | | --program-transform=* | --program-transfor=* \ | |
1443 | | --program-transfo=* | --program-transf=* \ | |
1444 | | --program-trans=* | --program-tran=* \ | |
1445 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1446 | program_transform_name=$ac_optarg ;; | |
1447 | ||
1448 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1449 | ac_prev=pdfdir ;; | |
1450 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1451 | pdfdir=$ac_optarg ;; | |
1452 | ||
1453 | -psdir | --psdir | --psdi | --psd | --ps) | |
1454 | ac_prev=psdir ;; | |
1455 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1456 | psdir=$ac_optarg ;; | |
1457 | ||
1458 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1459 | | -silent | --silent | --silen | --sile | --sil) | |
1460 | silent=yes ;; | |
1461 | ||
1462 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1463 | ac_prev=sbindir ;; | |
1464 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1465 | | --sbi=* | --sb=*) | |
1466 | sbindir=$ac_optarg ;; | |
1467 | ||
1468 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1469 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1470 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1471 | | --sha | --sh) | |
1472 | ac_prev=sharedstatedir ;; | |
1473 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1474 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1475 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1476 | | --sha=* | --sh=*) | |
1477 | sharedstatedir=$ac_optarg ;; | |
1478 | ||
1479 | -site | --site | --sit) | |
1480 | ac_prev=site ;; | |
1481 | -site=* | --site=* | --sit=*) | |
1482 | site=$ac_optarg ;; | |
1483 | ||
1484 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1485 | ac_prev=srcdir ;; | |
1486 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1487 | srcdir=$ac_optarg ;; | |
1488 | ||
1489 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1490 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1491 | ac_prev=sysconfdir ;; | |
1492 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1493 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1494 | sysconfdir=$ac_optarg ;; | |
1495 | ||
1496 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1497 | ac_prev=target_alias ;; | |
1498 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1499 | target_alias=$ac_optarg ;; | |
1500 | ||
1501 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1502 | verbose=yes ;; | |
1503 | ||
1504 | -version | --version | --versio | --versi | --vers | -V) | |
1505 | ac_init_version=: ;; | |
1506 | ||
1507 | -with-* | --with-*) | |
1508 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1509 | # Reject names that are not valid shell variable names. | |
1510 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
2018939f | 1511 | as_fn_error $? "invalid package name: $ac_useropt" |
067d23c9 KY |
1512 | ac_useropt_orig=$ac_useropt |
1513 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1514 | case $ac_user_opts in | |
1515 | *" | |
1516 | "with_$ac_useropt" | |
1517 | "*) ;; | |
1518 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1519 | ac_unrecognized_sep=', ';; | |
1520 | esac | |
1521 | eval with_$ac_useropt=\$ac_optarg ;; | |
1522 | ||
1523 | -without-* | --without-*) | |
1524 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1525 | # Reject names that are not valid shell variable names. | |
1526 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
2018939f | 1527 | as_fn_error $? "invalid package name: $ac_useropt" |
067d23c9 KY |
1528 | ac_useropt_orig=$ac_useropt |
1529 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1530 | case $ac_user_opts in | |
1531 | *" | |
1532 | "with_$ac_useropt" | |
1533 | "*) ;; | |
1534 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1535 | ac_unrecognized_sep=', ';; | |
1536 | esac | |
1537 | eval with_$ac_useropt=no ;; | |
1538 | ||
1539 | --x) | |
1540 | # Obsolete; use --with-x. | |
1541 | with_x=yes ;; | |
1542 | ||
1543 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1544 | | --x-incl | --x-inc | --x-in | --x-i) | |
1545 | ac_prev=x_includes ;; | |
1546 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1547 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1548 | x_includes=$ac_optarg ;; | |
1549 | ||
1550 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1551 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1552 | ac_prev=x_libraries ;; | |
1553 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1554 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1555 | x_libraries=$ac_optarg ;; | |
1556 | ||
2018939f AS |
1557 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1558 | Try \`$0 --help' for more information" | |
067d23c9 KY |
1559 | ;; |
1560 | ||
1561 | *=*) | |
1562 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1563 | # Reject names that are not valid shell variable names. | |
1564 | case $ac_envvar in #( | |
1565 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
2018939f | 1566 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
067d23c9 KY |
1567 | esac |
1568 | eval $ac_envvar=\$ac_optarg | |
1569 | export $ac_envvar ;; | |
1570 | ||
1571 | *) | |
1572 | # FIXME: should be removed in autoconf 3.0. | |
1573 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1574 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1575 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
d6974efa | 1576 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
067d23c9 KY |
1577 | ;; |
1578 | ||
1579 | esac | |
1580 | done | |
1581 | ||
1582 | if test -n "$ac_prev"; then | |
1583 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
2018939f | 1584 | as_fn_error $? "missing argument to $ac_option" |
067d23c9 KY |
1585 | fi |
1586 | ||
1587 | if test -n "$ac_unrecognized_opts"; then | |
1588 | case $enable_option_checking in | |
1589 | no) ;; | |
2018939f | 1590 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
067d23c9 KY |
1591 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1592 | esac | |
1593 | fi | |
1594 | ||
1595 | # Check all directory arguments for consistency. | |
1596 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1597 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1598 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1599 | libdir localedir mandir | |
1600 | do | |
1601 | eval ac_val=\$$ac_var | |
1602 | # Remove trailing slashes. | |
1603 | case $ac_val in | |
1604 | */ ) | |
1605 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1606 | eval $ac_var=\$ac_val;; | |
1607 | esac | |
1608 | # Be sure to have absolute directory names. | |
1609 | case $ac_val in | |
1610 | [\\/$]* | ?:[\\/]* ) continue;; | |
1611 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1612 | esac | |
2018939f | 1613 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
067d23c9 KY |
1614 | done |
1615 | ||
1616 | # There might be people who depend on the old broken behavior: `$host' | |
1617 | # used to hold the argument of --host etc. | |
1618 | # FIXME: To remove some day. | |
1619 | build=$build_alias | |
1620 | host=$host_alias | |
1621 | target=$target_alias | |
1622 | ||
1623 | # FIXME: To remove some day. | |
1624 | if test "x$host_alias" != x; then | |
1625 | if test "x$build_alias" = x; then | |
1626 | cross_compiling=maybe | |
2018939f AS |
1627 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. |
1628 | If a cross compiler is detected then cross compile mode will be used" >&2 | |
067d23c9 KY |
1629 | elif test "x$build_alias" != "x$host_alias"; then |
1630 | cross_compiling=yes | |
1631 | fi | |
1632 | fi | |
1633 | ||
1634 | ac_tool_prefix= | |
1635 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1636 | ||
1637 | test "$silent" = yes && exec 6>/dev/null | |
1638 | ||
1639 | ||
1640 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1641 | ac_ls_di=`ls -di .` && | |
1642 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
2018939f | 1643 | as_fn_error $? "working directory cannot be determined" |
067d23c9 | 1644 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
2018939f | 1645 | as_fn_error $? "pwd does not report name of working directory" |
067d23c9 KY |
1646 | |
1647 | ||
1648 | # Find the source files, if location was not specified. | |
1649 | if test -z "$srcdir"; then | |
1650 | ac_srcdir_defaulted=yes | |
1651 | # Try the directory containing this script, then the parent directory. | |
1652 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1653 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1654 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1655 | X"$as_myself" : 'X\(//\)$' \| \ | |
1656 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1657 | $as_echo X"$as_myself" | | |
1658 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1659 | s//\1/ | |
1660 | q | |
1661 | } | |
1662 | /^X\(\/\/\)[^/].*/{ | |
1663 | s//\1/ | |
1664 | q | |
1665 | } | |
1666 | /^X\(\/\/\)$/{ | |
1667 | s//\1/ | |
1668 | q | |
1669 | } | |
1670 | /^X\(\/\).*/{ | |
1671 | s//\1/ | |
1672 | q | |
1673 | } | |
1674 | s/.*/./; q'` | |
1675 | srcdir=$ac_confdir | |
1676 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1677 | srcdir=.. | |
1678 | fi | |
1679 | else | |
1680 | ac_srcdir_defaulted=no | |
1681 | fi | |
1682 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1683 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
2018939f | 1684 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
067d23c9 KY |
1685 | fi |
1686 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1687 | ac_abs_confdir=`( | |
2018939f | 1688 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
067d23c9 KY |
1689 | pwd)` |
1690 | # When building in place, set srcdir=. | |
1691 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1692 | srcdir=. | |
1693 | fi | |
1694 | # Remove unnecessary trailing slashes from srcdir. | |
1695 | # Double slashes in file names in object file debugging info | |
1696 | # mess up M-x gdb in Emacs. | |
1697 | case $srcdir in | |
1698 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1699 | esac | |
1700 | for ac_var in $ac_precious_vars; do | |
1701 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1702 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1703 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1704 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1705 | done | |
1706 | ||
1707 | # | |
1708 | # Report the --help message. | |
1709 | # | |
1710 | if test "$ac_init_help" = "long"; then | |
1711 | # Omit some internal or obsolete options to make the list less imposing. | |
1712 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1713 | cat <<_ACEOF | |
1714 | \`configure' configures emacs 24.0.50 to adapt to many kinds of systems. | |
1715 | ||
1716 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1717 | ||
1718 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1719 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1720 | ||
1721 | Defaults for the options are specified in brackets. | |
1722 | ||
1723 | Configuration: | |
1724 | -h, --help display this help and exit | |
1725 | --help=short display options specific to this package | |
1726 | --help=recursive display the short help of all the included packages | |
1727 | -V, --version display version information and exit | |
2018939f | 1728 | -q, --quiet, --silent do not print \`checking ...' messages |
067d23c9 KY |
1729 | --cache-file=FILE cache test results in FILE [disabled] |
1730 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1731 | -n, --no-create do not create output files | |
1732 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1733 | ||
1734 | Installation directories: | |
1735 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1736 | [$ac_default_prefix] | |
1737 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1738 | [PREFIX] | |
1739 | ||
1740 | By default, \`make install' will install all the files in | |
1741 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1742 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1743 | for instance \`--prefix=\$HOME'. | |
1744 | ||
1745 | For better control, use the options below. | |
1746 | ||
1747 | Fine tuning of the installation directories: | |
1748 | --bindir=DIR user executables [EPREFIX/bin] | |
1749 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1750 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1751 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1752 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1753 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1754 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1755 | --includedir=DIR C header files [PREFIX/include] | |
1756 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1757 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1758 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1759 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1760 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1761 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1762 | --docdir=DIR documentation root [DATAROOTDIR/doc/emacs] | |
1763 | --htmldir=DIR html documentation [DOCDIR] | |
1764 | --dvidir=DIR dvi documentation [DOCDIR] | |
1765 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1766 | --psdir=DIR ps documentation [DOCDIR] | |
1767 | _ACEOF | |
1768 | ||
1769 | cat <<\_ACEOF | |
1770 | ||
1771 | Program names: | |
1772 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1773 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1774 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1775 | ||
1776 | X features: | |
1777 | --x-includes=DIR X include files are in DIR | |
1778 | --x-libraries=DIR X library files are in DIR | |
1779 | ||
1780 | System types: | |
1781 | --build=BUILD configure for building on BUILD [guessed] | |
1782 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1783 | _ACEOF | |
1784 | fi | |
1785 | ||
1786 | if test -n "$ac_init_help"; then | |
1787 | case $ac_init_help in | |
1788 | short | recursive ) echo "Configuration of emacs 24.0.50:";; | |
1789 | esac | |
1790 | cat <<\_ACEOF | |
1791 | ||
1792 | Optional Features: | |
1793 | --disable-option-checking ignore unrecognized --enable/--with options | |
1794 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1795 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1796 | --disable-ns-self-contained | |
1797 | disable self contained build under NeXTstep | |
1798 | --enable-asserts compile code with asserts enabled | |
1799 | --enable-maintainer-mode | |
1800 | enable make rules and dependencies not useful (and | |
1801 | sometimes confusing) to the casual installer | |
1802 | --enable-locallisppath=PATH | |
1803 | directories Emacs should search for lisp files | |
1804 | specific to this site | |
1805 | --enable-checking[=LIST] | |
1806 | enable expensive run-time checks. With LIST, enable | |
1807 | only specific categories of checks. Categories are: | |
1808 | all,yes,no. Flags are: stringbytes, stringoverrun, | |
1809 | stringfreelist, xmallocoverrun, conslist | |
1810 | --enable-use-lisp-union-type | |
1811 | use a union for the Lisp_Object data type. This is | |
1812 | only useful for development for catching certain | |
1813 | types of bugs. | |
1814 | --enable-profiling build emacs with profiling support. This might not | |
1815 | work on all platforms | |
1816 | --enable-autodepend automatically generate dependencies to .h-files. | |
1817 | Requires GNU Make and Gcc. Enabled if GNU Make and | |
1818 | Gcc is found | |
743c80a7 PE |
1819 | --disable-dependency-tracking speeds up one-time build |
1820 | --enable-dependency-tracking do not reject slow dependency extractors | |
067d23c9 KY |
1821 | --disable-largefile omit support for large files |
1822 | ||
1823 | Optional Packages: | |
1824 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1825 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1826 | --without-pop don't support POP mail retrieval with movemail | |
1827 | --with-kerberos support Kerberos-authenticated POP | |
1828 | --with-kerberos5 support Kerberos version 5 authenticated POP | |
1829 | --with-hesiod support Hesiod to get the POP server host | |
1830 | --with-mmdf support MMDF mailboxes | |
1831 | --with-mail-unlink unlink, rather than empty, mail spool after reading | |
1832 | --with-mailhost=HOSTNAME | |
1833 | string giving default POP mail host | |
1834 | --without-sound don't compile with sound support | |
1835 | --without-sync-input process async input synchronously | |
1836 | --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3, | |
1837 | lucid or athena, motif, no) | |
1838 | --without-xpm don't compile with XPM image support | |
1839 | --without-jpeg don't compile with JPEG image support | |
1840 | --without-tiff don't compile with TIFF image support | |
1841 | --without-gif don't compile with GIF image support | |
1842 | --without-png don't compile with PNG image support | |
1843 | --without-rsvg don't compile with SVG image support | |
1844 | --without-xml2 don't compile with XML parsing support | |
1845 | --without-imagemagick don't compile with ImageMagick image support | |
1846 | --without-xft don't use XFT for anti aliased fonts | |
1847 | --without-libotf don't use libotf for OpenType font support | |
1848 | --without-m17n-flt don't use m17n-flt for text shaping | |
1849 | --without-toolkit-scroll-bars | |
1850 | don't use Motif or Xaw3d scroll bars | |
1851 | --without-xaw3d don't use Xaw3d | |
1852 | --without-xim don't use X11 XIM | |
1853 | --with-ns use nextstep (Cocoa or GNUstep) windowing system | |
1854 | --without-gpm don't use -lgpm for mouse support on a GNU/Linux | |
1855 | console | |
1856 | --without-dbus don't compile with D-Bus support | |
1857 | --without-gconf don't compile with GConf support | |
1858 | --without-selinux don't compile with SELinux support | |
1859 | --without-gnutls don't use -lgnutls for SSL/TLS support | |
1860 | --without-makeinfo don't require makeinfo for building manuals | |
1861 | --without-compress-info don't compress the installed Info pages | |
1862 | --with-pkg-config-prog=PATH | |
1863 | path to pkg-config for finding GTK and librsvg | |
1864 | --with-crt-dir=DIR directory containing crtn.o etc. The default is | |
1865 | /usr/lib, or /usr/lib64 on some platforms. | |
4fc5868a | 1866 | --with-gameuser=USER user for shared game score files |
067d23c9 KY |
1867 | --with-gnustep-conf=PATH |
1868 | path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE, | |
1869 | or /etc/GNUstep/GNUstep.conf | |
1870 | --with-x use the X Window System | |
1871 | ||
1872 | Some influential environment variables: | |
1873 | CC C compiler command | |
1874 | CFLAGS C compiler flags | |
1875 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1876 | nonstandard directory <lib dir> | |
1877 | LIBS libraries to pass to the linker, e.g. -l<library> | |
1878 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | |
1879 | you have headers in a nonstandard directory <include dir> | |
1880 | CPP C preprocessor | |
1881 | XMKMF Path to xmkmf, Makefile generator for X Window System | |
1882 | ||
1883 | Use these variables to override the choices made by `configure' or to help | |
1884 | it to find libraries and programs with nonstandard names/locations. | |
1885 | ||
1886 | Report bugs to the package provider. | |
1887 | _ACEOF | |
1888 | ac_status=$? | |
1889 | fi | |
1890 | ||
1891 | if test "$ac_init_help" = "recursive"; then | |
1892 | # If there are subdirs, report their specific --help. | |
1893 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1894 | test -d "$ac_dir" || | |
1895 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1896 | continue | |
1897 | ac_builddir=. | |
1898 | ||
1899 | case "$ac_dir" in | |
1900 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1901 | *) | |
1902 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1903 | # A ".." for each directory in $ac_dir_suffix. | |
1904 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1905 | case $ac_top_builddir_sub in | |
1906 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1907 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1908 | esac ;; | |
1909 | esac | |
1910 | ac_abs_top_builddir=$ac_pwd | |
1911 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1912 | # for backward compatibility: | |
1913 | ac_top_builddir=$ac_top_build_prefix | |
1914 | ||
1915 | case $srcdir in | |
1916 | .) # We are building in place. | |
1917 | ac_srcdir=. | |
1918 | ac_top_srcdir=$ac_top_builddir_sub | |
1919 | ac_abs_top_srcdir=$ac_pwd ;; | |
1920 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1921 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1922 | ac_top_srcdir=$srcdir | |
1923 | ac_abs_top_srcdir=$srcdir ;; | |
1924 | *) # Relative name. | |
1925 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1926 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1927 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1928 | esac | |
1929 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1930 | ||
1931 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1932 | # Check for guested configure. | |
1933 | if test -f "$ac_srcdir/configure.gnu"; then | |
1934 | echo && | |
1935 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1936 | elif test -f "$ac_srcdir/configure"; then | |
1937 | echo && | |
1938 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1939 | else | |
1940 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1941 | fi || ac_status=$? | |
1942 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1943 | done | |
1944 | fi | |
1945 | ||
1946 | test -n "$ac_init_help" && exit $ac_status | |
1947 | if $ac_init_version; then | |
1948 | cat <<\_ACEOF | |
1949 | emacs configure 24.0.50 | |
d6974efa | 1950 | generated by GNU Autoconf 2.68 |
067d23c9 | 1951 | |
2018939f | 1952 | Copyright (C) 2010 Free Software Foundation, Inc. |
067d23c9 KY |
1953 | This configure script is free software; the Free Software Foundation |
1954 | gives unlimited permission to copy, distribute and modify it. | |
1955 | _ACEOF | |
1956 | exit | |
1957 | fi | |
1958 | ||
1959 | ## ------------------------ ## | |
1960 | ## Autoconf initialization. ## | |
1961 | ## ------------------------ ## | |
1962 | ||
1963 | # ac_fn_c_try_compile LINENO | |
1964 | # -------------------------- | |
1965 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1966 | ac_fn_c_try_compile () | |
1967 | { | |
1968 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1969 | rm -f conftest.$ac_objext | |
1970 | if { { ac_try="$ac_compile" | |
1971 | case "(($ac_try" in | |
1972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1973 | *) ac_try_echo=$ac_try;; | |
1974 | esac | |
1975 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1976 | $as_echo "$ac_try_echo"; } >&5 | |
1977 | (eval "$ac_compile") 2>conftest.err | |
1978 | ac_status=$? | |
1979 | if test -s conftest.err; then | |
1980 | grep -v '^ *+' conftest.err >conftest.er1 | |
1981 | cat conftest.er1 >&5 | |
1982 | mv -f conftest.er1 conftest.err | |
1983 | fi | |
1984 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1985 | test $ac_status = 0; } && { | |
1986 | test -z "$ac_c_werror_flag" || | |
1987 | test ! -s conftest.err | |
1988 | } && test -s conftest.$ac_objext; then : | |
1989 | ac_retval=0 | |
1990 | else | |
1991 | $as_echo "$as_me: failed program was:" >&5 | |
1992 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1993 | ||
1994 | ac_retval=1 | |
1995 | fi | |
d6974efa | 1996 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
067d23c9 KY |
1997 | as_fn_set_status $ac_retval |
1998 | ||
1999 | } # ac_fn_c_try_compile | |
2000 | ||
067d23c9 KY |
2001 | # ac_fn_c_try_cpp LINENO |
2002 | # ---------------------- | |
2003 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
2004 | ac_fn_c_try_cpp () | |
2005 | { | |
2006 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2007 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
2008 | case "(($ac_try" in | |
2009 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2010 | *) ac_try_echo=$ac_try;; | |
2011 | esac | |
2012 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2013 | $as_echo "$ac_try_echo"; } >&5 | |
2014 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
2015 | ac_status=$? | |
2016 | if test -s conftest.err; then | |
2017 | grep -v '^ *+' conftest.err >conftest.er1 | |
2018 | cat conftest.er1 >&5 | |
2019 | mv -f conftest.er1 conftest.err | |
2020 | fi | |
2021 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2018939f | 2022 | test $ac_status = 0; } > conftest.i && { |
067d23c9 KY |
2023 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
2024 | test ! -s conftest.err | |
2025 | }; then : | |
2026 | ac_retval=0 | |
2027 | else | |
2028 | $as_echo "$as_me: failed program was:" >&5 | |
2029 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2030 | ||
2031 | ac_retval=1 | |
2032 | fi | |
d6974efa | 2033 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
067d23c9 KY |
2034 | as_fn_set_status $ac_retval |
2035 | ||
2036 | } # ac_fn_c_try_cpp | |
2037 | ||
2038 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
2039 | # ------------------------------------------------------- | |
2040 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
2041 | # the include files in INCLUDES and setting the cache variable VAR | |
2042 | # accordingly. | |
2043 | ac_fn_c_check_header_mongrel () | |
2044 | { | |
2045 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
d6974efa | 2046 | if eval \${$3+:} false; then : |
067d23c9 KY |
2047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
2048 | $as_echo_n "checking for $2... " >&6; } | |
d6974efa | 2049 | if eval \${$3+:} false; then : |
067d23c9 KY |
2050 | $as_echo_n "(cached) " >&6 |
2051 | fi | |
2052 | eval ac_res=\$$3 | |
2053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2054 | $as_echo "$ac_res" >&6; } | |
2055 | else | |
2056 | # Is the header compilable? | |
2057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
2058 | $as_echo_n "checking $2 usability... " >&6; } | |
2059 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2060 | /* end confdefs.h. */ | |
2061 | $4 | |
2062 | #include <$2> | |
2063 | _ACEOF | |
2064 | if ac_fn_c_try_compile "$LINENO"; then : | |
2065 | ac_header_compiler=yes | |
2066 | else | |
2067 | ac_header_compiler=no | |
2068 | fi | |
2069 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
2071 | $as_echo "$ac_header_compiler" >&6; } | |
2072 | ||
2073 | # Is the header present? | |
2074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
2075 | $as_echo_n "checking $2 presence... " >&6; } | |
2076 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2077 | /* end confdefs.h. */ | |
2078 | #include <$2> | |
2079 | _ACEOF | |
2080 | if ac_fn_c_try_cpp "$LINENO"; then : | |
2081 | ac_header_preproc=yes | |
2082 | else | |
2083 | ac_header_preproc=no | |
2084 | fi | |
2018939f | 2085 | rm -f conftest.err conftest.i conftest.$ac_ext |
067d23c9 KY |
2086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
2087 | $as_echo "$ac_header_preproc" >&6; } | |
2088 | ||
2089 | # So? What about this header? | |
2090 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
2091 | yes:no: ) | |
2092 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
2093 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
2094 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2095 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2096 | ;; | |
2097 | no:yes:* ) | |
2098 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
2099 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
2100 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
2101 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
2102 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
2103 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
2104 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
2105 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
2106 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2107 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2108 | ;; | |
2109 | esac | |
2110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2111 | $as_echo_n "checking for $2... " >&6; } | |
d6974efa | 2112 | if eval \${$3+:} false; then : |
067d23c9 KY |
2113 | $as_echo_n "(cached) " >&6 |
2114 | else | |
2115 | eval "$3=\$ac_header_compiler" | |
2116 | fi | |
2117 | eval ac_res=\$$3 | |
2118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2119 | $as_echo "$ac_res" >&6; } | |
2120 | fi | |
d6974efa | 2121 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
067d23c9 KY |
2122 | |
2123 | } # ac_fn_c_check_header_mongrel | |
2124 | ||
2125 | # ac_fn_c_try_run LINENO | |
2126 | # ---------------------- | |
2127 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
2128 | # that executables *can* be run. | |
2129 | ac_fn_c_try_run () | |
2130 | { | |
2131 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2132 | if { { ac_try="$ac_link" | |
2133 | case "(($ac_try" in | |
2134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2135 | *) ac_try_echo=$ac_try;; | |
2136 | esac | |
2137 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2138 | $as_echo "$ac_try_echo"; } >&5 | |
2139 | (eval "$ac_link") 2>&5 | |
2140 | ac_status=$? | |
2141 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2142 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
2143 | { { case "(($ac_try" in | |
2144 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2145 | *) ac_try_echo=$ac_try;; | |
2146 | esac | |
2147 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2148 | $as_echo "$ac_try_echo"; } >&5 | |
2149 | (eval "$ac_try") 2>&5 | |
2150 | ac_status=$? | |
2151 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2152 | test $ac_status = 0; }; }; then : | |
2153 | ac_retval=0 | |
2154 | else | |
2155 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
2156 | $as_echo "$as_me: failed program was:" >&5 | |
2157 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2158 | ||
2159 | ac_retval=$ac_status | |
2160 | fi | |
2161 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
d6974efa | 2162 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
067d23c9 KY |
2163 | as_fn_set_status $ac_retval |
2164 | ||
2165 | } # ac_fn_c_try_run | |
2166 | ||
2167 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
2168 | # ------------------------------------------------------- | |
2169 | # Tests whether HEADER exists and can be compiled using the include files in | |
2170 | # INCLUDES, setting the cache variable VAR accordingly. | |
2171 | ac_fn_c_check_header_compile () | |
2172 | { | |
2173 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2174 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2175 | $as_echo_n "checking for $2... " >&6; } | |
d6974efa | 2176 | if eval \${$3+:} false; then : |
067d23c9 KY |
2177 | $as_echo_n "(cached) " >&6 |
2178 | else | |
2179 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2180 | /* end confdefs.h. */ | |
2181 | $4 | |
2182 | #include <$2> | |
2183 | _ACEOF | |
2184 | if ac_fn_c_try_compile "$LINENO"; then : | |
2185 | eval "$3=yes" | |
2186 | else | |
2187 | eval "$3=no" | |
2188 | fi | |
2189 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2190 | fi | |
2191 | eval ac_res=\$$3 | |
2192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2193 | $as_echo "$ac_res" >&6; } | |
d6974efa | 2194 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
067d23c9 KY |
2195 | |
2196 | } # ac_fn_c_check_header_compile | |
2197 | ||
1fd182f0 PE |
2198 | # ac_fn_c_try_link LINENO |
2199 | # ----------------------- | |
2200 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
2201 | ac_fn_c_try_link () | |
2202 | { | |
2203 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2204 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2205 | if { { ac_try="$ac_link" | |
2206 | case "(($ac_try" in | |
2207 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2208 | *) ac_try_echo=$ac_try;; | |
2209 | esac | |
2210 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2211 | $as_echo "$ac_try_echo"; } >&5 | |
2212 | (eval "$ac_link") 2>conftest.err | |
2213 | ac_status=$? | |
2214 | if test -s conftest.err; then | |
2215 | grep -v '^ *+' conftest.err >conftest.er1 | |
2216 | cat conftest.er1 >&5 | |
2217 | mv -f conftest.er1 conftest.err | |
2218 | fi | |
2219 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2220 | test $ac_status = 0; } && { | |
2221 | test -z "$ac_c_werror_flag" || | |
2222 | test ! -s conftest.err | |
2223 | } && test -s conftest$ac_exeext && { | |
2224 | test "$cross_compiling" = yes || | |
2225 | $as_test_x conftest$ac_exeext | |
2226 | }; then : | |
2227 | ac_retval=0 | |
2228 | else | |
2229 | $as_echo "$as_me: failed program was:" >&5 | |
2230 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2231 | ||
2232 | ac_retval=1 | |
2233 | fi | |
2234 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2235 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2236 | # interfere with the next link command; also delete a directory that is | |
2237 | # left behind by Apple's compiler. We do this before executing the actions. | |
2238 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
d6974efa | 2239 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1fd182f0 PE |
2240 | as_fn_set_status $ac_retval |
2241 | ||
2242 | } # ac_fn_c_try_link | |
2243 | ||
2018939f AS |
2244 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
2245 | # --------------------------------------------- | |
2246 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | |
2247 | # accordingly. | |
067d23c9 KY |
2248 | ac_fn_c_check_decl () |
2249 | { | |
2250 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2018939f AS |
2251 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
2252 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
2253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
2254 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
d6974efa | 2255 | if eval \${$3+:} false; then : |
067d23c9 KY |
2256 | $as_echo_n "(cached) " >&6 |
2257 | else | |
2258 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2259 | /* end confdefs.h. */ | |
2260 | $4 | |
2261 | int | |
2262 | main () | |
2263 | { | |
2018939f AS |
2264 | #ifndef $as_decl_name |
2265 | #ifdef __cplusplus | |
2266 | (void) $as_decl_use; | |
2267 | #else | |
2268 | (void) $as_decl_name; | |
2269 | #endif | |
067d23c9 KY |
2270 | #endif |
2271 | ||
2272 | ; | |
2273 | return 0; | |
2274 | } | |
2275 | _ACEOF | |
2276 | if ac_fn_c_try_compile "$LINENO"; then : | |
2277 | eval "$3=yes" | |
2278 | else | |
2279 | eval "$3=no" | |
2280 | fi | |
2281 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2282 | fi | |
2283 | eval ac_res=\$$3 | |
2284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2285 | $as_echo "$ac_res" >&6; } | |
d6974efa | 2286 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
067d23c9 KY |
2287 | |
2288 | } # ac_fn_c_check_decl | |
2289 | ||
2290 | # ac_fn_c_check_header_preproc LINENO HEADER VAR | |
2291 | # ---------------------------------------------- | |
2292 | # Tests whether HEADER is present, setting the cache variable VAR accordingly. | |
2293 | ac_fn_c_check_header_preproc () | |
2294 | { | |
2295 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2297 | $as_echo_n "checking for $2... " >&6; } | |
d6974efa | 2298 | if eval \${$3+:} false; then : |
067d23c9 KY |
2299 | $as_echo_n "(cached) " >&6 |
2300 | else | |
2301 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2302 | /* end confdefs.h. */ | |
2303 | #include <$2> | |
2304 | _ACEOF | |
2305 | if ac_fn_c_try_cpp "$LINENO"; then : | |
2306 | eval "$3=yes" | |
2307 | else | |
2308 | eval "$3=no" | |
2309 | fi | |
2018939f | 2310 | rm -f conftest.err conftest.i conftest.$ac_ext |
067d23c9 KY |
2311 | fi |
2312 | eval ac_res=\$$3 | |
2313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2314 | $as_echo "$ac_res" >&6; } | |
d6974efa | 2315 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
067d23c9 KY |
2316 | |
2317 | } # ac_fn_c_check_header_preproc | |
2318 | ||
2319 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES | |
2320 | # ---------------------------------------------------- | |
2321 | # Tries to find if the field MEMBER exists in type AGGR, after including | |
2322 | # INCLUDES, setting cache variable VAR accordingly. | |
2323 | ac_fn_c_check_member () | |
2324 | { | |
2325 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | |
2327 | $as_echo_n "checking for $2.$3... " >&6; } | |
d6974efa | 2328 | if eval \${$4+:} false; then : |
067d23c9 KY |
2329 | $as_echo_n "(cached) " >&6 |
2330 | else | |
2331 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2332 | /* end confdefs.h. */ | |
2333 | $5 | |
2334 | int | |
2335 | main () | |
2336 | { | |
2337 | static $2 ac_aggr; | |
2338 | if (ac_aggr.$3) | |
2339 | return 0; | |
2340 | ; | |
2341 | return 0; | |
2342 | } | |
2343 | _ACEOF | |
2344 | if ac_fn_c_try_compile "$LINENO"; then : | |
2345 | eval "$4=yes" | |
2346 | else | |
2347 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2348 | /* end confdefs.h. */ | |
2349 | $5 | |
2350 | int | |
2351 | main () | |
2352 | { | |
2353 | static $2 ac_aggr; | |
2354 | if (sizeof ac_aggr.$3) | |
2355 | return 0; | |
2356 | ; | |
2357 | return 0; | |
2358 | } | |
2359 | _ACEOF | |
2360 | if ac_fn_c_try_compile "$LINENO"; then : | |
2361 | eval "$4=yes" | |
2362 | else | |
2363 | eval "$4=no" | |
2364 | fi | |
2365 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2366 | fi | |
2367 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2368 | fi | |
2369 | eval ac_res=\$$4 | |
2370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2371 | $as_echo "$ac_res" >&6; } | |
d6974efa | 2372 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
067d23c9 KY |
2373 | |
2374 | } # ac_fn_c_check_member | |
2375 | ||
2376 | # ac_fn_c_check_func LINENO FUNC VAR | |
2377 | # ---------------------------------- | |
2378 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
2379 | ac_fn_c_check_func () | |
2380 | { | |
2381 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2383 | $as_echo_n "checking for $2... " >&6; } | |
d6974efa | 2384 | if eval \${$3+:} false; then : |
067d23c9 KY |
2385 | $as_echo_n "(cached) " >&6 |
2386 | else | |
2387 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2388 | /* end confdefs.h. */ | |
2389 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
2390 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2391 | #define $2 innocuous_$2 | |
2392 | ||
2393 | /* System header to define __stub macros and hopefully few prototypes, | |
2394 | which can conflict with char $2 (); below. | |
2395 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2396 | <limits.h> exists even on freestanding compilers. */ | |
2397 | ||
2398 | #ifdef __STDC__ | |
2399 | # include <limits.h> | |
2400 | #else | |
2401 | # include <assert.h> | |
2402 | #endif | |
2403 | ||
2404 | #undef $2 | |
2405 | ||
2406 | /* Override any GCC internal prototype to avoid an error. | |
2407 | Use char because int might match the return type of a GCC | |
2408 | builtin and then its argument prototype would still apply. */ | |
2409 | #ifdef __cplusplus | |
2410 | extern "C" | |
2411 | #endif | |
2412 | char $2 (); | |
2413 | /* The GNU C library defines this for functions which it implements | |
2414 | to always fail with ENOSYS. Some functions are actually named | |
2415 | something starting with __ and the normal name is an alias. */ | |
2416 | #if defined __stub_$2 || defined __stub___$2 | |
2417 | choke me | |
2418 | #endif | |
2419 | ||
2420 | int | |
2421 | main () | |
2422 | { | |
2423 | return $2 (); | |
2424 | ; | |
2425 | return 0; | |
2426 | } | |
2427 | _ACEOF | |
2428 | if ac_fn_c_try_link "$LINENO"; then : | |
2429 | eval "$3=yes" | |
2430 | else | |
2431 | eval "$3=no" | |
2432 | fi | |
2433 | rm -f core conftest.err conftest.$ac_objext \ | |
2434 | conftest$ac_exeext conftest.$ac_ext | |
2435 | fi | |
2436 | eval ac_res=\$$3 | |
2437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2438 | $as_echo "$ac_res" >&6; } | |
d6974efa | 2439 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
067d23c9 KY |
2440 | |
2441 | } # ac_fn_c_check_func | |
2442 | ||
2443 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | |
2444 | # ------------------------------------------- | |
2445 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
2446 | # variable VAR accordingly. | |
2447 | ac_fn_c_check_type () | |
2448 | { | |
2449 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2450 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2451 | $as_echo_n "checking for $2... " >&6; } | |
d6974efa | 2452 | if eval \${$3+:} false; then : |
067d23c9 KY |
2453 | $as_echo_n "(cached) " >&6 |
2454 | else | |
2455 | eval "$3=no" | |
2456 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2457 | /* end confdefs.h. */ | |
2458 | $4 | |
2459 | int | |
2460 | main () | |
2461 | { | |
2462 | if (sizeof ($2)) | |
2463 | return 0; | |
2464 | ; | |
2465 | return 0; | |
2466 | } | |
2467 | _ACEOF | |
2468 | if ac_fn_c_try_compile "$LINENO"; then : | |
2469 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2470 | /* end confdefs.h. */ | |
2471 | $4 | |
2472 | int | |
2473 | main () | |
2474 | { | |
2475 | if (sizeof (($2))) | |
2476 | return 0; | |
2477 | ; | |
2478 | return 0; | |
2479 | } | |
2480 | _ACEOF | |
2481 | if ac_fn_c_try_compile "$LINENO"; then : | |
2482 | ||
2483 | else | |
2484 | eval "$3=yes" | |
2485 | fi | |
2486 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2487 | fi | |
2488 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2489 | fi | |
2490 | eval ac_res=\$$3 | |
2491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2492 | $as_echo "$ac_res" >&6; } | |
d6974efa | 2493 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
067d23c9 KY |
2494 | |
2495 | } # ac_fn_c_check_type | |
5f90be1b PE |
2496 | |
2497 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | |
2498 | # -------------------------------------------- | |
2499 | # Tries to find the compile-time value of EXPR in a program that includes | |
2500 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
2501 | # computed | |
2502 | ac_fn_c_compute_int () | |
2503 | { | |
2504 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2505 | if test "$cross_compiling" = yes; then | |
2506 | # Depending upon the size, compute the lo and hi bounds. | |
2507 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2508 | /* end confdefs.h. */ | |
2509 | $4 | |
2510 | int | |
2511 | main () | |
2512 | { | |
2513 | static int test_array [1 - 2 * !(($2) >= 0)]; | |
2514 | test_array [0] = 0 | |
2515 | ||
2516 | ; | |
2517 | return 0; | |
2518 | } | |
2519 | _ACEOF | |
2520 | if ac_fn_c_try_compile "$LINENO"; then : | |
2521 | ac_lo=0 ac_mid=0 | |
2522 | while :; do | |
2523 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2524 | /* end confdefs.h. */ | |
2525 | $4 | |
2526 | int | |
2527 | main () | |
2528 | { | |
2529 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
2530 | test_array [0] = 0 | |
2531 | ||
2532 | ; | |
2533 | return 0; | |
2534 | } | |
2535 | _ACEOF | |
2536 | if ac_fn_c_try_compile "$LINENO"; then : | |
2537 | ac_hi=$ac_mid; break | |
2538 | else | |
2539 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | |
2540 | if test $ac_lo -le $ac_mid; then | |
2541 | ac_lo= ac_hi= | |
2542 | break | |
2543 | fi | |
2544 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
2545 | fi | |
2546 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2547 | done | |
2548 | else | |
2549 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2550 | /* end confdefs.h. */ | |
2551 | $4 | |
2552 | int | |
2553 | main () | |
2554 | { | |
2555 | static int test_array [1 - 2 * !(($2) < 0)]; | |
2556 | test_array [0] = 0 | |
2557 | ||
2558 | ; | |
2559 | return 0; | |
2560 | } | |
2561 | _ACEOF | |
2562 | if ac_fn_c_try_compile "$LINENO"; then : | |
2563 | ac_hi=-1 ac_mid=-1 | |
2564 | while :; do | |
2565 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2566 | /* end confdefs.h. */ | |
2567 | $4 | |
2568 | int | |
2569 | main () | |
2570 | { | |
2571 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
2572 | test_array [0] = 0 | |
2573 | ||
2574 | ; | |
2575 | return 0; | |
2576 | } | |
2577 | _ACEOF | |
2578 | if ac_fn_c_try_compile "$LINENO"; then : | |
2579 | ac_lo=$ac_mid; break | |
2580 | else | |
2581 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
2582 | if test $ac_mid -le $ac_hi; then | |
2583 | ac_lo= ac_hi= | |
2584 | break | |
2585 | fi | |
2586 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
2587 | fi | |
2588 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2589 | done | |
2590 | else | |
2591 | ac_lo= ac_hi= | |
2592 | fi | |
2593 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2594 | fi | |
2595 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2596 | # Binary search between lo and hi bounds. | |
2597 | while test "x$ac_lo" != "x$ac_hi"; do | |
2598 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
2599 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2600 | /* end confdefs.h. */ | |
2601 | $4 | |
2602 | int | |
2603 | main () | |
2604 | { | |
2605 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
2606 | test_array [0] = 0 | |
2607 | ||
2608 | ; | |
2609 | return 0; | |
2610 | } | |
2611 | _ACEOF | |
2612 | if ac_fn_c_try_compile "$LINENO"; then : | |
2613 | ac_hi=$ac_mid | |
2614 | else | |
2615 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | |
2616 | fi | |
2617 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2618 | done | |
2619 | case $ac_lo in #(( | |
2620 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
2621 | '') ac_retval=1 ;; | |
2622 | esac | |
2623 | else | |
2624 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2625 | /* end confdefs.h. */ | |
2626 | $4 | |
2627 | static long int longval () { return $2; } | |
2628 | static unsigned long int ulongval () { return $2; } | |
2629 | #include <stdio.h> | |
2630 | #include <stdlib.h> | |
2631 | int | |
2632 | main () | |
2633 | { | |
2634 | ||
2635 | FILE *f = fopen ("conftest.val", "w"); | |
2636 | if (! f) | |
2637 | return 1; | |
2638 | if (($2) < 0) | |
2639 | { | |
2640 | long int i = longval (); | |
2641 | if (i != ($2)) | |
2642 | return 1; | |
2643 | fprintf (f, "%ld", i); | |
2644 | } | |
2645 | else | |
2646 | { | |
2647 | unsigned long int i = ulongval (); | |
2648 | if (i != ($2)) | |
2649 | return 1; | |
2650 | fprintf (f, "%lu", i); | |
2651 | } | |
2652 | /* Do not output a trailing newline, as this causes \r\n confusion | |
2653 | on some platforms. */ | |
2654 | return ferror (f) || fclose (f) != 0; | |
2655 | ||
2656 | ; | |
2657 | return 0; | |
2658 | } | |
2659 | _ACEOF | |
2660 | if ac_fn_c_try_run "$LINENO"; then : | |
2661 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
2662 | else | |
2663 | ac_retval=1 | |
2664 | fi | |
2665 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
2666 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2667 | rm -f conftest.val | |
2668 | ||
2669 | fi | |
2670 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2671 | as_fn_set_status $ac_retval | |
2672 | ||
2673 | } # ac_fn_c_compute_int | |
067d23c9 KY |
2674 | cat >config.log <<_ACEOF |
2675 | This file contains any messages produced by compilers while | |
2676 | running configure, to aid debugging if configure makes a mistake. | |
2677 | ||
2678 | It was created by emacs $as_me 24.0.50, which was | |
d6974efa | 2679 | generated by GNU Autoconf 2.68. Invocation command line was |
067d23c9 KY |
2680 | |
2681 | $ $0 $@ | |
2682 | ||
2683 | _ACEOF | |
2684 | exec 5>>config.log | |
2685 | { | |
2686 | cat <<_ASUNAME | |
2687 | ## --------- ## | |
2688 | ## Platform. ## | |
2689 | ## --------- ## | |
2690 | ||
2691 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2692 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2693 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2694 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2695 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2696 | ||
2697 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2698 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2699 | ||
2700 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2701 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2702 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2703 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2704 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2705 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2706 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2707 | ||
2708 | _ASUNAME | |
2709 | ||
2710 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2711 | for as_dir in $PATH | |
2712 | do | |
2713 | IFS=$as_save_IFS | |
2714 | test -z "$as_dir" && as_dir=. | |
2715 | $as_echo "PATH: $as_dir" | |
2716 | done | |
2717 | IFS=$as_save_IFS | |
2718 | ||
2719 | } >&5 | |
2720 | ||
2721 | cat >&5 <<_ACEOF | |
2722 | ||
2723 | ||
2724 | ## ----------- ## | |
2725 | ## Core tests. ## | |
2726 | ## ----------- ## | |
2727 | ||
2728 | _ACEOF | |
2729 | ||
2730 | ||
2731 | # Keep a trace of the command line. | |
2732 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2733 | # Strip out --silent because we don't want to record it for future runs. | |
2734 | # Also quote any args containing shell meta-characters. | |
2735 | # Make two passes to allow for proper duplicate-argument suppression. | |
2736 | ac_configure_args= | |
2737 | ac_configure_args0= | |
2738 | ac_configure_args1= | |
2739 | ac_must_keep_next=false | |
2740 | for ac_pass in 1 2 | |
2741 | do | |
2742 | for ac_arg | |
2743 | do | |
2744 | case $ac_arg in | |
2745 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2746 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2747 | | -silent | --silent | --silen | --sile | --sil) | |
2748 | continue ;; | |
2749 | *\'*) | |
2750 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2751 | esac | |
2752 | case $ac_pass in | |
2753 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2754 | 2) | |
2755 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2756 | if test $ac_must_keep_next = true; then | |
2757 | ac_must_keep_next=false # Got value, back to normal. | |
2758 | else | |
2759 | case $ac_arg in | |
2760 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2761 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2762 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2763 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2764 | case "$ac_configure_args0 " in | |
2765 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2766 | esac | |
2767 | ;; | |
2768 | -* ) ac_must_keep_next=true ;; | |
2769 | esac | |
2770 | fi | |
2771 | as_fn_append ac_configure_args " '$ac_arg'" | |
2772 | ;; | |
2773 | esac | |
2774 | done | |
2775 | done | |
2776 | { ac_configure_args0=; unset ac_configure_args0;} | |
2777 | { ac_configure_args1=; unset ac_configure_args1;} | |
2778 | ||
2779 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2780 | # config.log. We remove comments because anyway the quotes in there | |
2781 | # would cause problems or look ugly. | |
2782 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2783 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2784 | trap 'exit_status=$? | |
2785 | # Save into config.log some information that might help in debugging. | |
2786 | { | |
2787 | echo | |
2788 | ||
2018939f | 2789 | $as_echo "## ---------------- ## |
067d23c9 | 2790 | ## Cache variables. ## |
2018939f | 2791 | ## ---------------- ##" |
067d23c9 KY |
2792 | echo |
2793 | # The following way of writing the cache mishandles newlines in values, | |
2794 | ( | |
2795 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2796 | eval ac_val=\$$ac_var | |
2797 | case $ac_val in #( | |
2798 | *${as_nl}*) | |
2799 | case $ac_var in #( | |
2800 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2801 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2802 | esac | |
2803 | case $ac_var in #( | |
2804 | _ | IFS | as_nl) ;; #( | |
2805 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2806 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2807 | esac ;; | |
2808 | esac | |
2809 | done | |
2810 | (set) 2>&1 | | |
2811 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2812 | *${as_nl}ac_space=\ *) | |
2813 | sed -n \ | |
2814 | "s/'\''/'\''\\\\'\'''\''/g; | |
2815 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2816 | ;; #( | |
2817 | *) | |
2818 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2819 | ;; | |
2820 | esac | | |
2821 | sort | |
2822 | ) | |
2823 | echo | |
2824 | ||
2018939f | 2825 | $as_echo "## ----------------- ## |
067d23c9 | 2826 | ## Output variables. ## |
2018939f | 2827 | ## ----------------- ##" |
067d23c9 KY |
2828 | echo |
2829 | for ac_var in $ac_subst_vars | |
2830 | do | |
2831 | eval ac_val=\$$ac_var | |
2832 | case $ac_val in | |
2833 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2834 | esac | |
2835 | $as_echo "$ac_var='\''$ac_val'\''" | |
2836 | done | sort | |
2837 | echo | |
2838 | ||
2839 | if test -n "$ac_subst_files"; then | |
2018939f | 2840 | $as_echo "## ------------------- ## |
067d23c9 | 2841 | ## File substitutions. ## |
2018939f | 2842 | ## ------------------- ##" |
067d23c9 KY |
2843 | echo |
2844 | for ac_var in $ac_subst_files | |
2845 | do | |
2846 | eval ac_val=\$$ac_var | |
2847 | case $ac_val in | |
2848 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2849 | esac | |
2850 | $as_echo "$ac_var='\''$ac_val'\''" | |
2851 | done | sort | |
2852 | echo | |
2853 | fi | |
2854 | ||
2855 | if test -s confdefs.h; then | |
2018939f | 2856 | $as_echo "## ----------- ## |
067d23c9 | 2857 | ## confdefs.h. ## |
2018939f | 2858 | ## ----------- ##" |
067d23c9 KY |
2859 | echo |
2860 | cat confdefs.h | |
2861 | echo | |
2862 | fi | |
2863 | test "$ac_signal" != 0 && | |
2864 | $as_echo "$as_me: caught signal $ac_signal" | |
2865 | $as_echo "$as_me: exit $exit_status" | |
2866 | } >&5 | |
2867 | rm -f core *.core core.conftest.* && | |
2868 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2869 | exit $exit_status | |
2870 | ' 0 | |
2871 | for ac_signal in 1 2 13 15; do | |
2872 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2873 | done | |
2874 | ac_signal=0 | |
2875 | ||
2876 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2877 | rm -f -r conftest* confdefs.h | |
2878 | ||
2879 | $as_echo "/* confdefs.h */" > confdefs.h | |
2880 | ||
2881 | # Predefined preprocessor variables. | |
2882 | ||
2883 | cat >>confdefs.h <<_ACEOF | |
2884 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2885 | _ACEOF | |
2886 | ||
2887 | cat >>confdefs.h <<_ACEOF | |
2888 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2889 | _ACEOF | |
2890 | ||
2891 | cat >>confdefs.h <<_ACEOF | |
2892 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2893 | _ACEOF | |
2894 | ||
2895 | cat >>confdefs.h <<_ACEOF | |
2896 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2897 | _ACEOF | |
2898 | ||
2899 | cat >>confdefs.h <<_ACEOF | |
2900 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2901 | _ACEOF | |
2902 | ||
2903 | cat >>confdefs.h <<_ACEOF | |
2904 | #define PACKAGE_URL "$PACKAGE_URL" | |
2905 | _ACEOF | |
2906 | ||
2907 | ||
2908 | # Let the site file select an alternate cache file if it wants to. | |
2909 | # Prefer an explicitly selected file to automatically selected ones. | |
2910 | ac_site_file1=NONE | |
2911 | ac_site_file2=NONE | |
2912 | if test -n "$CONFIG_SITE"; then | |
2018939f AS |
2913 | # We do not want a PATH search for config.site. |
2914 | case $CONFIG_SITE in #(( | |
2915 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2916 | */*) ac_site_file1=$CONFIG_SITE;; | |
2917 | *) ac_site_file1=./$CONFIG_SITE;; | |
2918 | esac | |
067d23c9 KY |
2919 | elif test "x$prefix" != xNONE; then |
2920 | ac_site_file1=$prefix/share/config.site | |
2921 | ac_site_file2=$prefix/etc/config.site | |
2922 | else | |
2923 | ac_site_file1=$ac_default_prefix/share/config.site | |
2924 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2925 | fi | |
2926 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2927 | do | |
2928 | test "x$ac_site_file" = xNONE && continue | |
2929 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | |
2930 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2931 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2932 | sed 's/^/| /' "$ac_site_file" >&5 | |
2018939f AS |
2933 | . "$ac_site_file" \ |
2934 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2935 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2936 | as_fn_error $? "failed to load site script $ac_site_file | |
d6974efa | 2937 | See \`config.log' for more details" "$LINENO" 5; } |
067d23c9 KY |
2938 | fi |
2939 | done | |
2940 | ||
2941 | if test -r "$cache_file"; then | |
2942 | # Some versions of bash will fail to source /dev/null (special files | |
2943 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2944 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2945 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2946 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2947 | case $cache_file in | |
2948 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2949 | *) . "./$cache_file";; | |
2950 | esac | |
2951 | fi | |
2952 | else | |
2953 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2954 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2955 | >$cache_file | |
2956 | fi | |
2957 | ||
2958 | as_fn_append ac_header_list " stdlib.h" | |
2959 | as_fn_append ac_header_list " unistd.h" | |
2960 | as_fn_append ac_header_list " sys/param.h" | |
e275c824 PE |
2961 | gl_getopt_required=GNU |
2962 | as_fn_append ac_header_list " getopt.h" | |
067d23c9 | 2963 | as_fn_append ac_func_list " alarm" |
5f90be1b PE |
2964 | as_fn_append ac_header_list " wchar.h" |
2965 | as_fn_append ac_header_list " stdint.h" | |
16c3e636 | 2966 | as_fn_append ac_func_list " tzset" |
5fa4ac76 | 2967 | as_fn_append ac_header_list " sys/stat.h" |
1fd182f0 PE |
2968 | as_fn_append ac_header_list " sys/time.h" |
2969 | as_fn_append ac_func_list " localtime_r" | |
f68c809d | 2970 | as_fn_append ac_func_list " lstat" |
067d23c9 KY |
2971 | # Check that the precious variables saved in the cache have kept the same |
2972 | # value. | |
2973 | ac_cache_corrupted=false | |
2974 | for ac_var in $ac_precious_vars; do | |
2975 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2976 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2977 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2978 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2979 | case $ac_old_set,$ac_new_set in | |
2980 | set,) | |
2981 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2982 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2983 | ac_cache_corrupted=: ;; | |
2984 | ,set) | |
2985 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2986 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2987 | ac_cache_corrupted=: ;; | |
2988 | ,);; | |
2989 | *) | |
2990 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2991 | # differences in whitespace do not lead to failure. | |
2992 | ac_old_val_w=`echo x $ac_old_val` | |
2993 | ac_new_val_w=`echo x $ac_new_val` | |
2994 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2995 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2996 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2997 | ac_cache_corrupted=: | |
2998 | else | |
2999 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
3000 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
3001 | eval $ac_var=\$ac_old_val | |
3002 | fi | |
3003 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
3004 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
3005 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
3006 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
3007 | fi;; | |
3008 | esac | |
3009 | # Pass precious variables to config.status. | |
3010 | if test "$ac_new_set" = set; then | |
3011 | case $ac_new_val in | |
3012 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
3013 | *) ac_arg=$ac_var=$ac_new_val ;; | |
3014 | esac | |
3015 | case " $ac_configure_args " in | |
3016 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
3017 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
3018 | esac | |
3019 | fi | |
3020 | done | |
3021 | if $ac_cache_corrupted; then | |
3022 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3023 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3024 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
3025 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2018939f | 3026 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
067d23c9 KY |
3027 | fi |
3028 | ## -------------------- ## | |
3029 | ## Main body of script. ## | |
3030 | ## -------------------- ## | |
3031 | ||
3032 | ac_ext=c | |
3033 | ac_cpp='$CPP $CPPFLAGS' | |
3034 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3035 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3036 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3037 | ||
3038 | ||
3039 | ac_config_headers="$ac_config_headers src/config.h:src/config.in" | |
3040 | ||
3041 | ||
743c80a7 | 3042 | am__api_version='1.11' |
067d23c9 | 3043 | |
743c80a7 PE |
3044 | ac_aux_dir= |
3045 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
3046 | if test -f "$ac_dir/install-sh"; then | |
3047 | ac_aux_dir=$ac_dir | |
3048 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
3049 | break | |
3050 | elif test -f "$ac_dir/install.sh"; then | |
3051 | ac_aux_dir=$ac_dir | |
3052 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
3053 | break | |
3054 | elif test -f "$ac_dir/shtool"; then | |
3055 | ac_aux_dir=$ac_dir | |
3056 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
3057 | break | |
3058 | fi | |
3059 | done | |
3060 | if test -z "$ac_aux_dir"; then | |
3061 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
3062 | fi | |
067d23c9 | 3063 | |
743c80a7 PE |
3064 | # These three variables are undocumented and unsupported, |
3065 | # and are intended to be withdrawn in a future Autoconf release. | |
3066 | # They can cause serious problems if a builder's source tree is in a directory | |
3067 | # whose full name contains unusual characters. | |
3068 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
3069 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
3070 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
067d23c9 | 3071 | |
067d23c9 | 3072 | |
743c80a7 PE |
3073 | # Find a good install program. We prefer a C program (faster), |
3074 | # so one script is as good as another. But avoid the broken or | |
3075 | # incompatible versions: | |
3076 | # SysV /etc/install, /usr/sbin/install | |
3077 | # SunOS /usr/etc/install | |
3078 | # IRIX /sbin/install | |
3079 | # AIX /bin/install | |
3080 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3081 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3082 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3083 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3084 | # OS/2's system install, which has a completely different semantic | |
3085 | # ./install, which can be erroneously created by make from ./install.sh. | |
3086 | # Reject install programs that cannot install multiple files. | |
3087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
3088 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
3089 | if test -z "$INSTALL"; then | |
d6974efa | 3090 | if ${ac_cv_path_install+:} false; then : |
743c80a7 PE |
3091 | $as_echo_n "(cached) " >&6 |
3092 | else | |
3093 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3094 | for as_dir in $PATH | |
3095 | do | |
3096 | IFS=$as_save_IFS | |
3097 | test -z "$as_dir" && as_dir=. | |
3098 | # Account for people who put trailing slashes in PATH elements. | |
3099 | case $as_dir/ in #(( | |
3100 | ./ | .// | /[cC]/* | \ | |
3101 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3102 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
3103 | /usr/ucb/* ) ;; | |
3104 | *) | |
3105 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3106 | # Don't use installbsd from OSF since it installs stuff as root | |
3107 | # by default. | |
3108 | for ac_prog in ginstall scoinst install; do | |
3109 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3110 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
3111 | if test $ac_prog = install && | |
3112 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3113 | # AIX install. It has an incompatible calling convention. | |
3114 | : | |
3115 | elif test $ac_prog = install && | |
3116 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3117 | # program-specific install script used by HP pwplus--don't use. | |
3118 | : | |
3119 | else | |
3120 | rm -rf conftest.one conftest.two conftest.dir | |
3121 | echo one > conftest.one | |
3122 | echo two > conftest.two | |
3123 | mkdir conftest.dir | |
3124 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3125 | test -s conftest.one && test -s conftest.two && | |
3126 | test -s conftest.dir/conftest.one && | |
3127 | test -s conftest.dir/conftest.two | |
3128 | then | |
3129 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3130 | break 3 | |
3131 | fi | |
3132 | fi | |
3133 | fi | |
3134 | done | |
3135 | done | |
3136 | ;; | |
3137 | esac | |
067d23c9 | 3138 | |
743c80a7 PE |
3139 | done |
3140 | IFS=$as_save_IFS | |
067d23c9 | 3141 | |
743c80a7 | 3142 | rm -rf conftest.one conftest.two conftest.dir |
067d23c9 | 3143 | |
067d23c9 | 3144 | fi |
743c80a7 PE |
3145 | if test "${ac_cv_path_install+set}" = set; then |
3146 | INSTALL=$ac_cv_path_install | |
3147 | else | |
3148 | # As a last resort, use the slow shell script. Don't cache a | |
3149 | # value for INSTALL within a source directory, because that will | |
3150 | # break other packages using the cache if that directory is | |
3151 | # removed, or if the value is a relative name. | |
3152 | INSTALL=$ac_install_sh | |
3153 | fi | |
067d23c9 | 3154 | fi |
743c80a7 PE |
3155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
3156 | $as_echo "$INSTALL" >&6; } | |
067d23c9 | 3157 | |
743c80a7 PE |
3158 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3159 | # It thinks the first close brace ends the variable substitution. | |
3160 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
067d23c9 | 3161 | |
743c80a7 | 3162 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
067d23c9 | 3163 | |
743c80a7 | 3164 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
067d23c9 | 3165 | |
743c80a7 PE |
3166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
3167 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
3168 | # Just in case | |
3169 | sleep 1 | |
3170 | echo timestamp > conftest.file | |
3171 | # Reject unsafe characters in $srcdir or the absolute working directory | |
3172 | # name. Accept space and tab only in the latter. | |
3173 | am_lf=' | |
3174 | ' | |
3175 | case `pwd` in | |
3176 | *[\\\"\#\$\&\'\`$am_lf]*) | |
d6974efa | 3177 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
743c80a7 PE |
3178 | esac |
3179 | case $srcdir in | |
3180 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
d6974efa | 3181 | as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; |
743c80a7 | 3182 | esac |
067d23c9 | 3183 | |
743c80a7 PE |
3184 | # Do `set' in a subshell so we don't clobber the current shell's |
3185 | # arguments. Must try -L first in case configure is actually a | |
3186 | # symlink; some systems play weird games with the mod time of symlinks | |
3187 | # (eg FreeBSD returns the mod time of the symlink's containing | |
3188 | # directory). | |
3189 | if ( | |
3190 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
3191 | if test "$*" = "X"; then | |
3192 | # -L didn't work. | |
3193 | set X `ls -t "$srcdir/configure" conftest.file` | |
3194 | fi | |
3195 | rm -f conftest.file | |
3196 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
3197 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
3198 | ||
3199 | # If neither matched, then we have a broken ls. This can happen | |
3200 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
3201 | # broken ls alias from the environment. This has actually | |
3202 | # happened. Such a system could not be considered "sane". | |
3203 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
3204 | alias in your environment" "$LINENO" 5 | |
3205 | fi | |
067d23c9 | 3206 | |
743c80a7 PE |
3207 | test "$2" = conftest.file |
3208 | ) | |
3209 | then | |
3210 | # Ok. | |
3211 | : | |
067d23c9 | 3212 | else |
743c80a7 PE |
3213 | as_fn_error $? "newly created file is older than distributed files! |
3214 | Check your system clock" "$LINENO" 5 | |
067d23c9 | 3215 | fi |
743c80a7 PE |
3216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3217 | $as_echo "yes" >&6; } | |
3218 | test "$program_prefix" != NONE && | |
3219 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
3220 | # Use a double $ so make ignores it. | |
3221 | test "$program_suffix" != NONE && | |
3222 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
3223 | # Double any \ or $. | |
3224 | # By default was `s,x,x', remove it if useless. | |
3225 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
3226 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
067d23c9 | 3227 | |
743c80a7 PE |
3228 | # expand $ac_aux_dir to an absolute path |
3229 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
067d23c9 | 3230 | |
743c80a7 PE |
3231 | if test x"${MISSING+set}" != xset; then |
3232 | case $am_aux_dir in | |
3233 | *\ * | *\ *) | |
3234 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
3235 | *) | |
3236 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
3237 | esac | |
067d23c9 | 3238 | fi |
743c80a7 PE |
3239 | # Use eval to expand $SHELL |
3240 | if eval "$MISSING --run true"; then | |
3241 | am_missing_run="$MISSING --run " | |
067d23c9 | 3242 | else |
743c80a7 PE |
3243 | am_missing_run= |
3244 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 | |
3245 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
067d23c9 KY |
3246 | fi |
3247 | ||
743c80a7 PE |
3248 | if test x"${install_sh}" != xset; then |
3249 | case $am_aux_dir in | |
3250 | *\ * | *\ *) | |
3251 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
3252 | *) | |
3253 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
3254 | esac | |
067d23c9 KY |
3255 | fi |
3256 | ||
743c80a7 PE |
3257 | # Installed binaries are usually stripped using `strip' when the user |
3258 | # run `make install-strip'. However `strip' might not be the right | |
3259 | # tool to use in cross-compilation environments, therefore Automake | |
3260 | # will honor the `STRIP' environment variable to overrule this program. | |
3261 | if test "$cross_compiling" != no; then | |
3262 | if test -n "$ac_tool_prefix"; then | |
3263 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
3264 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
3265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3266 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6974efa | 3267 | if ${ac_cv_prog_STRIP+:} false; then : |
743c80a7 | 3268 | $as_echo_n "(cached) " >&6 |
067d23c9 | 3269 | else |
743c80a7 PE |
3270 | if test -n "$STRIP"; then |
3271 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
3272 | else | |
3273 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3274 | for as_dir in $PATH | |
3275 | do | |
3276 | IFS=$as_save_IFS | |
3277 | test -z "$as_dir" && as_dir=. | |
3278 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3279 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3280 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
3281 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3282 | break 2 | |
3283 | fi | |
3284 | done | |
3285 | done | |
3286 | IFS=$as_save_IFS | |
067d23c9 KY |
3287 | |
3288 | fi | |
067d23c9 | 3289 | fi |
743c80a7 PE |
3290 | STRIP=$ac_cv_prog_STRIP |
3291 | if test -n "$STRIP"; then | |
3292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
3293 | $as_echo "$STRIP" >&6; } | |
3294 | else | |
3295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3296 | $as_echo "no" >&6; } | |
067d23c9 KY |
3297 | fi |
3298 | ||
3299 | ||
067d23c9 | 3300 | fi |
743c80a7 PE |
3301 | if test -z "$ac_cv_prog_STRIP"; then |
3302 | ac_ct_STRIP=$STRIP | |
3303 | # Extract the first word of "strip", so it can be a program name with args. | |
3304 | set dummy strip; ac_word=$2 | |
3305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3306 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6974efa | 3307 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
743c80a7 PE |
3308 | $as_echo_n "(cached) " >&6 |
3309 | else | |
3310 | if test -n "$ac_ct_STRIP"; then | |
3311 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
3312 | else | |
3313 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3314 | for as_dir in $PATH | |
3315 | do | |
3316 | IFS=$as_save_IFS | |
3317 | test -z "$as_dir" && as_dir=. | |
3318 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3319 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3320 | ac_cv_prog_ac_ct_STRIP="strip" | |
3321 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3322 | break 2 | |
3323 | fi | |
3324 | done | |
3325 | done | |
3326 | IFS=$as_save_IFS | |
3327 | ||
3328 | fi | |
3329 | fi | |
3330 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
3331 | if test -n "$ac_ct_STRIP"; then | |
3332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
3333 | $as_echo "$ac_ct_STRIP" >&6; } | |
3334 | else | |
3335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3336 | $as_echo "no" >&6; } | |
3337 | fi | |
3338 | ||
3339 | if test "x$ac_ct_STRIP" = x; then | |
3340 | STRIP=":" | |
3341 | else | |
3342 | case $cross_compiling:$ac_tool_warned in | |
3343 | yes:) | |
3344 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3345 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3346 | ac_tool_warned=yes ;; | |
3347 | esac | |
3348 | STRIP=$ac_ct_STRIP | |
3349 | fi | |
3350 | else | |
3351 | STRIP="$ac_cv_prog_STRIP" | |
3352 | fi | |
3353 | ||
3354 | fi | |
3355 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
3356 | ||
3357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
3358 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
3359 | if test -z "$MKDIR_P"; then | |
d6974efa | 3360 | if ${ac_cv_path_mkdir+:} false; then : |
743c80a7 PE |
3361 | $as_echo_n "(cached) " >&6 |
3362 | else | |
3363 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3364 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3365 | do | |
3366 | IFS=$as_save_IFS | |
3367 | test -z "$as_dir" && as_dir=. | |
3368 | for ac_prog in mkdir gmkdir; do | |
3369 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3370 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
3371 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3372 | 'mkdir (GNU coreutils) '* | \ | |
3373 | 'mkdir (coreutils) '* | \ | |
3374 | 'mkdir (fileutils) '4.1*) | |
3375 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3376 | break 3;; | |
3377 | esac | |
3378 | done | |
3379 | done | |
3380 | done | |
3381 | IFS=$as_save_IFS | |
3382 | ||
3383 | fi | |
3384 | ||
3385 | test -d ./--version && rmdir ./--version | |
3386 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3387 | MKDIR_P="$ac_cv_path_mkdir -p" | |
3388 | else | |
3389 | # As a last resort, use the slow shell script. Don't cache a | |
3390 | # value for MKDIR_P within a source directory, because that will | |
3391 | # break other packages using the cache if that directory is | |
3392 | # removed, or if the value is a relative name. | |
3393 | MKDIR_P="$ac_install_sh -d" | |
3394 | fi | |
3395 | fi | |
3396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
3397 | $as_echo "$MKDIR_P" >&6; } | |
3398 | ||
a451f14b | 3399 | |
743c80a7 PE |
3400 | mkdir_p="$MKDIR_P" |
3401 | case $mkdir_p in | |
3402 | [\\/$]* | ?:[\\/]*) ;; | |
3403 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
3404 | esac | |
3405 | ||
3406 | for ac_prog in gawk mawk nawk awk | |
3407 | do | |
3408 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3409 | set dummy $ac_prog; ac_word=$2 | |
3410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3411 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6974efa | 3412 | if ${ac_cv_prog_AWK+:} false; then : |
743c80a7 PE |
3413 | $as_echo_n "(cached) " >&6 |
3414 | else | |
3415 | if test -n "$AWK"; then | |
3416 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3417 | else | |
3418 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3419 | for as_dir in $PATH | |
3420 | do | |
3421 | IFS=$as_save_IFS | |
3422 | test -z "$as_dir" && as_dir=. | |
3423 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3424 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3425 | ac_cv_prog_AWK="$ac_prog" | |
3426 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3427 | break 2 | |
3428 | fi | |
3429 | done | |
3430 | done | |
3431 | IFS=$as_save_IFS | |
3432 | ||
3433 | fi | |
3434 | fi | |
3435 | AWK=$ac_cv_prog_AWK | |
3436 | if test -n "$AWK"; then | |
3437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
3438 | $as_echo "$AWK" >&6; } | |
3439 | else | |
3440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3441 | $as_echo "no" >&6; } | |
3442 | fi | |
3443 | ||
3444 | ||
3445 | test -n "$AWK" && break | |
3446 | done | |
3447 | ||
3448 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
3449 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3450 | set x ${MAKE-make} | |
3451 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
d6974efa | 3452 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
743c80a7 PE |
3453 | $as_echo_n "(cached) " >&6 |
3454 | else | |
3455 | cat >conftest.make <<\_ACEOF | |
3456 | SHELL = /bin/sh | |
3457 | all: | |
3458 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3459 | _ACEOF | |
3460 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
3461 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
3462 | *@@@%%%=?*=@@@%%%*) | |
3463 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3464 | *) | |
3465 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3466 | esac | |
3467 | rm -f conftest.make | |
3468 | fi | |
3469 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
3470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3471 | $as_echo "yes" >&6; } | |
3472 | SET_MAKE= | |
3473 | else | |
3474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3475 | $as_echo "no" >&6; } | |
3476 | SET_MAKE="MAKE=${MAKE-make}" | |
3477 | fi | |
3478 | ||
3479 | rm -rf .tst 2>/dev/null | |
3480 | mkdir .tst 2>/dev/null | |
3481 | if test -d .tst; then | |
3482 | am__leading_dot=. | |
3483 | else | |
3484 | am__leading_dot=_ | |
3485 | fi | |
3486 | rmdir .tst 2>/dev/null | |
3487 | ||
3488 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
3489 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
3490 | # is not polluted with repeated "-I." | |
3491 | am__isrc=' -I$(srcdir)' | |
3492 | # test to see if srcdir already configured | |
3493 | if test -f $srcdir/config.status; then | |
3494 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
3495 | fi | |
3496 | fi | |
3497 | ||
3498 | # test whether we have cygpath | |
3499 | if test -z "$CYGPATH_W"; then | |
3500 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3501 | CYGPATH_W='cygpath -w' | |
3502 | else | |
3503 | CYGPATH_W=echo | |
3504 | fi | |
3505 | fi | |
3506 | ||
3507 | ||
3508 | # Define the identity of the package. | |
3509 | PACKAGE='emacs' | |
3510 | VERSION='24.0.50' | |
3511 | ||
3512 | ||
3513 | cat >>confdefs.h <<_ACEOF | |
3514 | #define PACKAGE "$PACKAGE" | |
3515 | _ACEOF | |
3516 | ||
3517 | ||
3518 | cat >>confdefs.h <<_ACEOF | |
3519 | #define VERSION "$VERSION" | |
3520 | _ACEOF | |
3521 | ||
3522 | # Some tools Automake needs. | |
3523 | ||
3524 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3525 | ||
3526 | ||
3527 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3528 | ||
3529 | ||
3530 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3531 | ||
3532 | ||
3533 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3534 | ||
3535 | ||
3536 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
3537 | ||
3538 | # We need awk for the "check" target. The system "awk" is bad on | |
3539 | # some platforms. | |
3540 | # Always define AMTAR for backward compatibility. | |
3541 | ||
3542 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
3543 | ||
3544 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
3545 | ||
3546 | ||
3547 | ||
3548 | ||
3549 | ||
3550 | ||
3551 | ||
3552 | ||
3553 | lispdir='${datadir}/emacs/${version}/lisp' | |
3554 | locallisppath='${datadir}/emacs/${version}/site-lisp:'\ | |
3555 | '${datadir}/emacs/site-lisp' | |
3556 | lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim' | |
3557 | etcdir='${datadir}/emacs/${version}/etc' | |
3558 | archlibdir='${libexecdir}/emacs/${version}/${configuration}' | |
3559 | docdir='${datadir}/emacs/${version}/etc' | |
3560 | gamedir='${localstatedir}/games/emacs' | |
3561 | ||
3562 | ||
3563 | ||
3564 | ||
3565 | # Check whether --with-pop was given. | |
3566 | if test "${with_pop+set}" = set; then : | |
3567 | withval=$with_pop; | |
3568 | else | |
3569 | with_pop=yes | |
3570 | fi | |
3571 | ||
3572 | if test "$with_pop" = yes; then | |
3573 | $as_echo "#define MAIL_USE_POP 1" >>confdefs.h | |
3574 | ||
3575 | fi | |
3576 | ||
3577 | ||
3578 | # Check whether --with-kerberos was given. | |
3579 | if test "${with_kerberos+set}" = set; then : | |
3580 | withval=$with_kerberos; | |
3581 | else | |
3582 | with_kerberos=no | |
3583 | fi | |
3584 | ||
3585 | if test "$with_kerberos" != no; then | |
3586 | $as_echo "#define KERBEROS 1" >>confdefs.h | |
3587 | ||
3588 | fi | |
3589 | ||
3590 | ||
3591 | # Check whether --with-kerberos5 was given. | |
3592 | if test "${with_kerberos5+set}" = set; then : | |
3593 | withval=$with_kerberos5; | |
3594 | else | |
3595 | with_kerberos5=no | |
3596 | fi | |
3597 | ||
3598 | if test "${with_kerberos5}" != no; then | |
3599 | if test "${with_kerberos}" = no; then | |
3600 | with_kerberos=yes | |
3601 | $as_echo "#define KERBEROS 1" >>confdefs.h | |
3602 | ||
3603 | fi | |
3604 | ||
3605 | $as_echo "#define KERBEROS5 1" >>confdefs.h | |
3606 | ||
3607 | fi | |
3608 | ||
3609 | ||
3610 | # Check whether --with-hesiod was given. | |
3611 | if test "${with_hesiod+set}" = set; then : | |
3612 | withval=$with_hesiod; | |
3613 | else | |
3614 | with_hesiod=no | |
3615 | fi | |
3616 | ||
3617 | if test "$with_hesiod" != no; then | |
3618 | ||
3619 | $as_echo "#define HESIOD 1" >>confdefs.h | |
3620 | ||
3621 | fi | |
3622 | ||
3623 | ||
3624 | # Check whether --with-mmdf was given. | |
3625 | if test "${with_mmdf+set}" = set; then : | |
3626 | withval=$with_mmdf; | |
3627 | else | |
3628 | with_mmdf=no | |
3629 | fi | |
3630 | ||
3631 | if test "$with_mmdf" != no; then | |
3632 | ||
3633 | $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h | |
3634 | ||
3635 | fi | |
3636 | ||
3637 | ||
3638 | # Check whether --with-mail-unlink was given. | |
3639 | if test "${with_mail_unlink+set}" = set; then : | |
3640 | withval=$with_mail_unlink; | |
3641 | else | |
3642 | with_mail_unlink=no | |
3643 | fi | |
3644 | ||
3645 | if test "$with_mail_unlink" != no; then | |
3646 | ||
3647 | $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h | |
3648 | ||
3649 | fi | |
3650 | ||
3651 | ||
3652 | # Check whether --with-mailhost was given. | |
3653 | if test "${with_mailhost+set}" = set; then : | |
3654 | withval=$with_mailhost; | |
3655 | cat >>confdefs.h <<_ACEOF | |
3656 | #define MAILHOST "$withval" | |
3657 | _ACEOF | |
3658 | ||
3659 | fi | |
3660 | ||
3661 | ||
3662 | ||
067d23c9 KY |
3663 | # Check whether --with-sound was given. |
3664 | if test "${with_sound+set}" = set; then : | |
3665 | withval=$with_sound; | |
3666 | else | |
3667 | with_sound=yes | |
3668 | fi | |
3669 | ||
3670 | ||
3671 | ||
3672 | # Check whether --with-sync-input was given. | |
3673 | if test "${with_sync_input+set}" = set; then : | |
3674 | withval=$with_sync_input; | |
3675 | else | |
3676 | with_sync_input=yes | |
3677 | fi | |
3678 | ||
3679 | if test "$with_sync_input" = yes; then | |
3680 | ||
3681 | $as_echo "#define SYNC_INPUT 1" >>confdefs.h | |
3682 | ||
3683 | fi | |
3684 | ||
3685 | ||
3686 | # Check whether --with-x-toolkit was given. | |
3687 | if test "${with_x_toolkit+set}" = set; then : | |
3688 | withval=$with_x_toolkit; case "${withval}" in | |
3689 | y | ye | yes ) val=gtk ;; | |
3690 | n | no ) val=no ;; | |
3691 | l | lu | luc | luci | lucid ) val=lucid ;; | |
3692 | a | at | ath | athe | athen | athena ) val=athena ;; | |
3693 | m | mo | mot | moti | motif ) val=motif ;; | |
3694 | g | gt | gtk ) val=gtk ;; | |
3695 | gtk3 ) val=gtk3 ;; | |
3696 | * ) | |
2018939f | 3697 | as_fn_error $? "\`--with-x-toolkit=$withval' is invalid; |
067d23c9 KY |
3698 | this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or |
3699 | \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5 | |
3700 | ;; | |
3701 | esac | |
3702 | with_x_toolkit=$val | |
3703 | ||
3704 | fi | |
3705 | ||
3706 | ||
3707 | ||
3708 | # Check whether --with-xpm was given. | |
3709 | if test "${with_xpm+set}" = set; then : | |
3710 | withval=$with_xpm; | |
3711 | else | |
3712 | with_xpm=yes | |
3713 | fi | |
3714 | ||
3715 | ||
3716 | # Check whether --with-jpeg was given. | |
3717 | if test "${with_jpeg+set}" = set; then : | |
3718 | withval=$with_jpeg; | |
3719 | else | |
3720 | with_jpeg=yes | |
3721 | fi | |
3722 | ||
3723 | ||
3724 | # Check whether --with-tiff was given. | |
3725 | if test "${with_tiff+set}" = set; then : | |
3726 | withval=$with_tiff; | |
3727 | else | |
3728 | with_tiff=yes | |
3729 | fi | |
3730 | ||
3731 | ||
3732 | # Check whether --with-gif was given. | |
3733 | if test "${with_gif+set}" = set; then : | |
3734 | withval=$with_gif; | |
3735 | else | |
3736 | with_gif=yes | |
3737 | fi | |
3738 | ||
3739 | ||
3740 | # Check whether --with-png was given. | |
3741 | if test "${with_png+set}" = set; then : | |
3742 | withval=$with_png; | |
3743 | else | |
3744 | with_png=yes | |
3745 | fi | |
3746 | ||
3747 | ||
3748 | # Check whether --with-rsvg was given. | |
3749 | if test "${with_rsvg+set}" = set; then : | |
3750 | withval=$with_rsvg; | |
3751 | else | |
3752 | with_rsvg=yes | |
3753 | fi | |
3754 | ||
3755 | ||
3756 | # Check whether --with-xml2 was given. | |
3757 | if test "${with_xml2+set}" = set; then : | |
3758 | withval=$with_xml2; | |
3759 | else | |
3760 | with_xml2=yes | |
3761 | fi | |
3762 | ||
3763 | ||
3764 | # Check whether --with-imagemagick was given. | |
3765 | if test "${with_imagemagick+set}" = set; then : | |
3766 | withval=$with_imagemagick; | |
3767 | else | |
3768 | with_imagemagick=yes | |
3769 | fi | |
3770 | ||
3771 | ||
3772 | ||
3773 | # Check whether --with-xft was given. | |
3774 | if test "${with_xft+set}" = set; then : | |
3775 | withval=$with_xft; | |
3776 | else | |
3777 | with_xft=yes | |
3778 | fi | |
3779 | ||
3780 | ||
3781 | # Check whether --with-libotf was given. | |
3782 | if test "${with_libotf+set}" = set; then : | |
3783 | withval=$with_libotf; | |
3784 | else | |
3785 | with_libotf=yes | |
3786 | fi | |
3787 | ||
3788 | ||
3789 | # Check whether --with-m17n-flt was given. | |
3790 | if test "${with_m17n_flt+set}" = set; then : | |
3791 | withval=$with_m17n_flt; | |
3792 | else | |
3793 | with_m17n_flt=yes | |
3794 | fi | |
3795 | ||
3796 | ||
3797 | ||
3798 | # Check whether --with-toolkit-scroll-bars was given. | |
3799 | if test "${with_toolkit_scroll_bars+set}" = set; then : | |
3800 | withval=$with_toolkit_scroll_bars; | |
3801 | else | |
3802 | with_toolkit_scroll_bars=yes | |
3803 | fi | |
3804 | ||
3805 | ||
3806 | # Check whether --with-xaw3d was given. | |
3807 | if test "${with_xaw3d+set}" = set; then : | |
3808 | withval=$with_xaw3d; | |
3809 | else | |
3810 | with_xaw3d=yes | |
3811 | fi | |
3812 | ||
3813 | ||
3814 | # Check whether --with-xim was given. | |
3815 | if test "${with_xim+set}" = set; then : | |
3816 | withval=$with_xim; | |
3817 | else | |
3818 | with_xim=yes | |
3819 | fi | |
3820 | ||
3821 | ||
3822 | # Check whether --with-ns was given. | |
3823 | if test "${with_ns+set}" = set; then : | |
3824 | withval=$with_ns; | |
3825 | else | |
3826 | with_ns=no | |
3827 | fi | |
3828 | ||
3829 | ||
3830 | ||
3831 | # Check whether --with-gpm was given. | |
3832 | if test "${with_gpm+set}" = set; then : | |
3833 | withval=$with_gpm; | |
3834 | else | |
3835 | with_gpm=yes | |
3836 | fi | |
3837 | ||
3838 | ||
3839 | # Check whether --with-dbus was given. | |
3840 | if test "${with_dbus+set}" = set; then : | |
3841 | withval=$with_dbus; | |
3842 | else | |
3843 | with_dbus=yes | |
3844 | fi | |
3845 | ||
3846 | ||
3847 | # Check whether --with-gconf was given. | |
3848 | if test "${with_gconf+set}" = set; then : | |
3849 | withval=$with_gconf; | |
3850 | else | |
3851 | with_gconf=yes | |
3852 | fi | |
3853 | ||
3854 | ||
3855 | # Check whether --with-selinux was given. | |
3856 | if test "${with_selinux+set}" = set; then : | |
3857 | withval=$with_selinux; | |
3858 | else | |
3859 | with_selinux=yes | |
3860 | fi | |
3861 | ||
3862 | ||
3863 | # Check whether --with-gnutls was given. | |
3864 | if test "${with_gnutls+set}" = set; then : | |
3865 | withval=$with_gnutls; | |
3866 | else | |
3867 | with_gnutls=yes | |
3868 | fi | |
3869 | ||
3870 | ||
3871 | ## For the times when you want to build Emacs but don't have | |
3872 | ## a suitable makeinfo, and can live without the manuals. | |
3873 | ||
3874 | # Check whether --with-makeinfo was given. | |
3875 | if test "${with_makeinfo+set}" = set; then : | |
3876 | withval=$with_makeinfo; | |
3877 | else | |
3878 | with_makeinfo=yes | |
3879 | fi | |
3880 | ||
3881 | ||
3882 | ## This is an option because I do not know if all info/man support | |
3883 | ## compressed files, nor how to test if they do so. | |
3884 | ||
3885 | # Check whether --with-compress-info was given. | |
3886 | if test "${with_compress_info+set}" = set; then : | |
3887 | withval=$with_compress_info; | |
3888 | else | |
3889 | with_compress_info=yes | |
3890 | fi | |
3891 | ||
3892 | if test $with_compress_info = yes; then | |
3893 | GZIP_INFO=yes | |
3894 | else | |
3895 | GZIP_INFO= | |
3896 | fi | |
3897 | ||
3898 | ||
3899 | ||
3900 | # Check whether --with-pkg-config-prog was given. | |
3901 | if test "${with_pkg_config_prog+set}" = set; then : | |
3902 | withval=$with_pkg_config_prog; | |
3903 | fi | |
3904 | ||
3905 | if test "X${with_pkg_config_prog}" != X; then | |
3906 | if test "${with_pkg_config_prog}" != yes; then | |
3907 | PKG_CONFIG="${with_pkg_config_prog}" | |
3908 | fi | |
3909 | fi | |
3910 | ||
3911 | CRT_DIR= | |
3912 | ||
3913 | # Check whether --with-crt-dir was given. | |
3914 | if test "${with_crt_dir+set}" = set; then : | |
3915 | withval=$with_crt_dir; | |
3916 | fi | |
3917 | ||
3918 | CRT_DIR="${with_crt_dir}" | |
3919 | ||
3920 | ||
4fc5868a UM |
3921 | # Check whether --with-gameuser was given. |
3922 | if test "${with_gameuser+set}" = set; then : | |
3923 | withval=$with_gameuser; | |
3924 | fi | |
3925 | ||
3926 | test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \ | |
3927 | && gameuser="${with_gameuser}" | |
3928 | test "X$gameuser" = X && gameuser=games | |
3929 | ||
3930 | ||
067d23c9 KY |
3931 | # Check whether --with-gnustep-conf was given. |
3932 | if test "${with_gnustep_conf+set}" = set; then : | |
3933 | withval=$with_gnustep_conf; | |
3934 | fi | |
3935 | ||
3936 | test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \ | |
3937 | GNUSTEP_CONFIG_FILE="${with_gnustep_conf}" | |
3938 | test "X$GNUSTEP_CONFIG_FILE" = "X" && \ | |
3939 | GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf | |
3940 | ||
3941 | # Check whether --enable-ns-self-contained was given. | |
3942 | if test "${enable_ns_self_contained+set}" = set; then : | |
3943 | enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval | |
3944 | else | |
3945 | EN_NS_SELF_CONTAINED=yes | |
3946 | fi | |
3947 | ||
3948 | ||
3949 | # Check whether --enable-asserts was given. | |
3950 | if test "${enable_asserts+set}" = set; then : | |
3951 | enableval=$enable_asserts; USE_XASSERTS=$enableval | |
3952 | else | |
3953 | USE_XASSERTS=no | |
3954 | fi | |
3955 | ||
3956 | ||
3957 | # Check whether --enable-maintainer-mode was given. | |
3958 | if test "${enable_maintainer_mode+set}" = set; then : | |
3959 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
3960 | else | |
3961 | USE_MAINTAINER_MODE=no | |
3962 | fi | |
3963 | ||
3964 | if test $USE_MAINTAINER_MODE = yes; then | |
3965 | MAINT= | |
3966 | else | |
3967 | MAINT=# | |
3968 | fi | |
3969 | ||
3970 | ||
3971 | # Check whether --enable-locallisppath was given. | |
3972 | if test "${enable_locallisppath+set}" = set; then : | |
3973 | enableval=$enable_locallisppath; if test "${enableval}" = "no"; then | |
3974 | locallisppath= | |
3975 | elif test "${enableval}" != "yes"; then | |
3976 | locallisppath=${enableval} | |
3977 | fi | |
3978 | fi | |
3979 | ||
3980 | ||
3981 | # Check whether --enable-checking was given. | |
3982 | if test "${enable_checking+set}" = set; then : | |
3983 | enableval=$enable_checking; ac_checking_flags="${enableval}" | |
3984 | fi | |
3985 | ||
3986 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS," | |
3987 | for check in $ac_checking_flags | |
3988 | do | |
3989 | case $check in | |
3990 | # these set all the flags to specific states | |
3991 | yes) ac_enable_checking=1 ;; | |
3992 | no) ac_enable_checking= ; | |
3993 | ac_gc_check_stringbytes= ; | |
3994 | ac_gc_check_string_overrun= ; | |
3995 | ac_gc_check_string_free_list= ; | |
3996 | ac_xmalloc_overrun= ; | |
3997 | ac_gc_check_cons_list= ;; | |
3998 | all) ac_enable_checking=1 ; | |
3999 | ac_gc_check_stringbytes=1 ; | |
4000 | ac_gc_check_string_overrun=1 ; | |
4001 | ac_gc_check_string_free_list=1 ; | |
4002 | ac_xmalloc_overrun=1 ; | |
4003 | ac_gc_check_cons_list=1 ;; | |
4004 | # these enable particular checks | |
4005 | stringbytes) ac_gc_check_stringbytes=1 ;; | |
4006 | stringoverrun) ac_gc_check_string_overrun=1 ;; | |
4007 | stringfreelist) ac_gc_check_string_free_list=1 ;; | |
4008 | xmallocoverrun) ac_xmalloc_overrun=1 ;; | |
4009 | conslist) ac_gc_check_cons_list=1 ;; | |
d6974efa | 4010 | *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;; |
067d23c9 KY |
4011 | esac |
4012 | done | |
4013 | IFS="$ac_save_IFS" | |
4014 | ||
4015 | if test x$ac_enable_checking != x ; then | |
4016 | ||
4017 | $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h | |
4018 | ||
4019 | fi | |
4020 | if test x$ac_gc_check_stringbytes != x ; then | |
4021 | ||
4022 | $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h | |
4023 | ||
4024 | fi | |
4025 | if test x$ac_gc_check_stringoverrun != x ; then | |
4026 | ||
4027 | $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h | |
4028 | ||
4029 | fi | |
4030 | if test x$ac_gc_check_string_free_list != x ; then | |
4031 | ||
4032 | $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h | |
4033 | ||
4034 | fi | |
4035 | if test x$ac_xmalloc_overrun != x ; then | |
4036 | ||
4037 | $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h | |
4038 | ||
4039 | fi | |
4040 | if test x$ac_gc_check_cons_list != x ; then | |
4041 | ||
4042 | $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h | |
4043 | ||
4044 | fi | |
4045 | ||
4046 | # Check whether --enable-use-lisp-union-type was given. | |
4047 | if test "${enable_use_lisp_union_type+set}" = set; then : | |
4048 | enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then | |
4049 | ||
4050 | $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h | |
4051 | ||
4052 | fi | |
4053 | fi | |
4054 | ||
4055 | ||
4056 | ||
4057 | # Check whether --enable-profiling was given. | |
4058 | if test "${enable_profiling+set}" = set; then : | |
4059 | enableval=$enable_profiling; ac_enable_profiling="${enableval}" | |
4060 | fi | |
4061 | ||
4062 | if test x$ac_enable_profiling != x ; then | |
4063 | PROFILING_CFLAGS="-DPROFILING=1 -pg" | |
4064 | else | |
4065 | PROFILING_CFLAGS= | |
4066 | fi | |
4067 | ||
4068 | ||
4069 | # Check whether --enable-autodepend was given. | |
4070 | if test "${enable_autodepend+set}" = set; then : | |
4071 | enableval=$enable_autodepend; ac_enable_autodepend="${enableval}" | |
4072 | else | |
4073 | ac_enable_autodepend=yes | |
4074 | fi | |
4075 | ||
4076 | ||
4077 | #### Make srcdir absolute, if it isn't already. It's important to | |
4078 | #### avoid running the path through pwd unnecessarily, since pwd can | |
4079 | #### give you automounter prefixes, which can go away. We do all this | |
4080 | #### so Emacs can find its files when run uninstalled. | |
4081 | ## Make sure CDPATH doesn't affect cd (in case PWD is relative). | |
4082 | unset CDPATH | |
4083 | case "${srcdir}" in | |
4084 | /* ) ;; | |
4085 | . ) | |
4086 | ## We may be able to use the $PWD environment variable to make this | |
4087 | ## absolute. But sometimes PWD is inaccurate. | |
4088 | ## Note: we used to use ${PWD} at the end instead of `pwd`, | |
4089 | ## but that tested only for a well-formed and valid PWD, | |
4090 | ## it did not object when PWD was well-formed and valid but just wrong. | |
4091 | if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ; | |
4092 | then | |
4093 | srcdir="$PWD" | |
4094 | else | |
4095 | srcdir="`(cd ${srcdir}; pwd)`" | |
4096 | fi | |
4097 | ;; | |
4098 | * ) srcdir="`(cd ${srcdir}; pwd)`" ;; | |
4099 | esac | |
4100 | ||
4101 | #### Check if the source directory already has a configured system in it. | |
4102 | if test `pwd` != `(cd ${srcdir} && pwd)` \ | |
4103 | && test -f "${srcdir}/src/config.h" ; then | |
4104 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used | |
4105 | as a build directory right now; it has been configured in its own | |
4106 | right. To configure in another directory as well, you MUST | |
4107 | use GNU make. If you do not have GNU make, then you must | |
4108 | now do \`make distclean' in ${srcdir}, | |
4109 | and then run $0 again." >&5 | |
4110 | $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used | |
4111 | as a build directory right now; it has been configured in its own | |
4112 | right. To configure in another directory as well, you MUST | |
4113 | use GNU make. If you do not have GNU make, then you must | |
4114 | now do \`make distclean' in ${srcdir}, | |
4115 | and then run $0 again." >&2;} | |
4116 | fi | |
4117 | ||
4118 | #### Given the configuration name, set machfile and opsysfile to the | |
4119 | #### names of the m/*.h and s/*.h files we should use. | |
4120 | ||
4121 | ### Canonicalize the configuration name. | |
4122 | ||
067d23c9 KY |
4123 | # Make sure we can run config.sub. |
4124 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
2018939f | 4125 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
067d23c9 KY |
4126 | |
4127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
4128 | $as_echo_n "checking build system type... " >&6; } | |
d6974efa | 4129 | if ${ac_cv_build+:} false; then : |
067d23c9 KY |
4130 | $as_echo_n "(cached) " >&6 |
4131 | else | |
4132 | ac_build_alias=$build_alias | |
4133 | test "x$ac_build_alias" = x && | |
4134 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
4135 | test "x$ac_build_alias" = x && | |
2018939f | 4136 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
067d23c9 | 4137 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
2018939f | 4138 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
067d23c9 KY |
4139 | |
4140 | fi | |
4141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
4142 | $as_echo "$ac_cv_build" >&6; } | |
4143 | case $ac_cv_build in | |
4144 | *-*-*) ;; | |
d6974efa | 4145 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
067d23c9 KY |
4146 | esac |
4147 | build=$ac_cv_build | |
4148 | ac_save_IFS=$IFS; IFS='-' | |
4149 | set x $ac_cv_build | |
4150 | shift | |
4151 | build_cpu=$1 | |
4152 | build_vendor=$2 | |
4153 | shift; shift | |
4154 | # Remember, the first character of IFS is used to create $*, | |
4155 | # except with old shells: | |
4156 | build_os=$* | |
4157 | IFS=$ac_save_IFS | |
4158 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
4159 | ||
4160 | ||
4161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
4162 | $as_echo_n "checking host system type... " >&6; } | |
d6974efa | 4163 | if ${ac_cv_host+:} false; then : |
067d23c9 KY |
4164 | $as_echo_n "(cached) " >&6 |
4165 | else | |
4166 | if test "x$host_alias" = x; then | |
4167 | ac_cv_host=$ac_cv_build | |
4168 | else | |
4169 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2018939f | 4170 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
067d23c9 KY |
4171 | fi |
4172 | ||
4173 | fi | |
4174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
4175 | $as_echo "$ac_cv_host" >&6; } | |
4176 | case $ac_cv_host in | |
4177 | *-*-*) ;; | |
d6974efa | 4178 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
067d23c9 KY |
4179 | esac |
4180 | host=$ac_cv_host | |
4181 | ac_save_IFS=$IFS; IFS='-' | |
4182 | set x $ac_cv_host | |
4183 | shift | |
4184 | host_cpu=$1 | |
4185 | host_vendor=$2 | |
4186 | shift; shift | |
4187 | # Remember, the first character of IFS is used to create $*, | |
4188 | # except with old shells: | |
4189 | host_os=$* | |
4190 | IFS=$ac_save_IFS | |
4191 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
4192 | ||
4193 | ||
4194 | canonical=$host | |
4195 | configuration=${host_alias-${build_alias-$host}} | |
4196 | ||
4197 | ||
4198 | ||
4199 | ### If you add support for a new configuration, add code to this | |
4200 | ### switch statement to recognize your configuration name and select | |
4201 | ### the appropriate operating system and machine description files. | |
4202 | ||
4203 | ### You would hope that you could choose an m/*.h file pretty much | |
4204 | ### based on the machine portion of the configuration name, and an s/*.h | |
4205 | ### file based on the operating system portion. However, it turns out | |
4206 | ### that each m/*.h file is pretty manufacturer-specific - for | |
4207 | ### example mips.h is MIPS | |
4208 | ### So we basically have to have a special case for each | |
4209 | ### configuration name. | |
4210 | ### | |
4211 | ### As far as handling version numbers on operating systems is | |
4212 | ### concerned, make sure things will fail in a fixable way. If | |
4213 | ### /etc/MACHINES doesn't say anything about version numbers, be | |
4214 | ### prepared to handle anything reasonably. If version numbers | |
4215 | ### matter, be sure /etc/MACHINES says something about it. | |
4216 | ||
4217 | machine='' opsys='' unported=no | |
4218 | case "${canonical}" in | |
4219 | ||
d6a003a8 AS |
4220 | ## GNU/Linux ports |
4221 | *-*-linux-gnu*) | |
4222 | opsys=gnu-linux | |
4223 | case ${canonical} in | |
4224 | alpha*) machine=alpha ;; | |
4225 | s390-*) machine=ibms390 ;; | |
4226 | s390x-*) machine=ibms390x ;; | |
4227 | powerpc*) machine=macppc ;; | |
4228 | sparc*) machine=sparc ;; | |
4229 | ia64*) machine=ia64 ;; | |
4230 | m68k*) machine=m68k ;; | |
4231 | x86_64*) machine=amdx86-64 ;; | |
4232 | esac | |
4233 | ;; | |
4234 | ||
067d23c9 KY |
4235 | ## FreeBSD ports |
4236 | *-*-freebsd* ) | |
4237 | opsys=freebsd | |
4238 | case "${canonical}" in | |
4239 | alpha*) machine=alpha ;; | |
4240 | amd64-*|x86_64-*) machine=amdx86-64 ;; | |
067d23c9 KY |
4241 | ia64-*) machine=ia64 ;; |
4242 | i[3456]86-*) machine=intel386 ;; | |
4243 | powerpc-*) machine=macppc ;; | |
4244 | sparc-*) machine=sparc ;; | |
4245 | sparc64-*) machine=sparc ;; | |
4246 | esac | |
4247 | ;; | |
4248 | ||
4249 | ## FreeBSD kernel + glibc based userland | |
4250 | *-*-kfreebsd*gnu* ) | |
4251 | opsys=gnu-kfreebsd | |
4252 | case "${canonical}" in | |
4253 | alpha*) machine=alpha ;; | |
4254 | amd64-*|x86_64-*) machine=amdx86-64 ;; | |
4255 | ia64-*) machine=ia64 ;; | |
4256 | i[3456]86-*) machine=intel386 ;; | |
4257 | powerpc-*) machine=macppc ;; | |
4258 | sparc-*) machine=sparc ;; | |
4259 | sparc64-*) machine=sparc ;; | |
4260 | esac | |
4261 | ;; | |
4262 | ||
4263 | ## NetBSD ports | |
4264 | *-*-netbsd* ) | |
4265 | opsys=netbsd | |
4266 | case "${canonical}" in | |
4267 | alpha*) machine=alpha ;; | |
4268 | x86_64-*) machine=amdx86-64 ;; | |
067d23c9 KY |
4269 | i[3456]86-*) machine=intel386 ;; |
4270 | m68k-*) machine=m68k ;; | |
4271 | powerpc-*) machine=macppc ;; | |
067d23c9 KY |
4272 | sparc*-) machine=sparc ;; |
4273 | vax-*) machine=vax ;; | |
4274 | esac | |
4275 | ;; | |
4276 | ||
4277 | ## OpenBSD ports | |
4278 | *-*-openbsd* ) | |
4279 | opsys=openbsd | |
4280 | case "${canonical}" in | |
4281 | alpha*) machine=alpha ;; | |
4282 | x86_64-*) machine=amdx86-64 ;; | |
067d23c9 KY |
4283 | i386-*) machine=intel386 ;; |
4284 | powerpc-*) machine=macppc ;; | |
4285 | sparc*) machine=sparc ;; | |
4286 | vax-*) machine=vax ;; | |
4287 | esac | |
4288 | ;; | |
4289 | ||
067d23c9 KY |
4290 | ## Apple Darwin / Mac OS X |
4291 | *-apple-darwin* ) | |
4292 | case "${canonical}" in | |
4293 | i[3456]86-* ) machine=intel386 ;; | |
4294 | powerpc-* ) machine=macppc ;; | |
4295 | x86_64-* ) machine=amdx86-64 ;; | |
4296 | * ) unported=yes ;; | |
4297 | esac | |
4298 | opsys=darwin | |
4299 | # Define CPP as follows to make autoconf work correctly. | |
4300 | CPP="${CC-cc} -E -no-cpp-precomp" | |
4301 | # Use fink packages if available. | |
4302 | if test -d /sw/include && test -d /sw/lib; then | |
4303 | GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib" | |
4304 | CPP="${CPP} ${GCC_TEST_OPTIONS}" | |
4305 | NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS} | |
4306 | fi | |
4307 | ;; | |
4308 | ||
4309 | ## HP 9000 series 700 and 800, running HP/UX | |
4310 | hppa*-hp-hpux10.2* ) | |
d6a003a8 | 4311 | opsys=hpux10-20 |
067d23c9 KY |
4312 | ;; |
4313 | hppa*-hp-hpux1[1-9]* ) | |
d6a003a8 | 4314 | opsys=hpux11 |
067d23c9 KY |
4315 | CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS" |
4316 | ;; | |
4317 | ||
125c3718 PE |
4318 | ia64*-hp-hpux1[1-9]* ) |
4319 | machine=hp800 opsys=hpux11 | |
4320 | ## FIXME. Peter O'Gorman reports that dumping using unexelf.o doesn't | |
4321 | ## work either: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6811 | |
4322 | CANNOT_DUMP=yes | |
4323 | ;; | |
4324 | ||
4325 | hppa*-*-linux-gnu* ) | |
4326 | machine=hp800 opsys=gnu-linux | |
4327 | ;; | |
4328 | ||
067d23c9 | 4329 | ## IBM machines |
067d23c9 KY |
4330 | rs6000-ibm-aix4.[23]* ) |
4331 | machine=ibmrs6000 opsys=aix4-2 | |
4332 | ;; | |
4333 | powerpc-ibm-aix4.[23]* ) | |
4334 | machine=ibmrs6000 opsys=aix4-2 | |
4335 | ;; | |
4336 | rs6000-ibm-aix[56]* ) | |
4337 | machine=ibmrs6000 opsys=aix4-2 | |
4338 | ;; | |
4339 | powerpc-ibm-aix[56]* ) | |
4340 | machine=ibmrs6000 opsys=aix4-2 | |
4341 | ;; | |
4342 | ||
067d23c9 KY |
4343 | ## Silicon Graphics machines |
4344 | ## Iris 4D | |
4345 | mips-sgi-irix6.5 ) | |
4346 | machine=iris4d opsys=irix6-5 | |
4347 | # Without defining _LANGUAGE_C, things get masked out in the headers | |
4348 | # so that, for instance, grepping for `free' in stdlib.h fails and | |
4349 | # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m). | |
4350 | NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C" | |
4351 | NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C" | |
4352 | ;; | |
4353 | ||
4354 | ## Suns | |
067d23c9 KY |
4355 | *-sun-solaris* \ |
4356 | | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \ | |
4357 | | x86_64-*-solaris2* | x86_64-*-sunos5*) | |
4358 | case "${canonical}" in | |
4359 | i[3456]86-*-* ) machine=intel386 ;; | |
4360 | amd64-*-*|x86_64-*-*) machine=amdx86-64 ;; | |
4361 | sparc* ) machine=sparc ;; | |
4362 | * ) unported=yes ;; | |
4363 | esac | |
4364 | case "${canonical}" in | |
4365 | *-sunos5.6* | *-solaris2.6* ) | |
4366 | opsys=sol2-6 | |
4367 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
4368 | RANLIB="ar -ts" | |
4369 | ;; | |
4370 | *-sunos5.[7-9]* | *-solaris2.[7-9]* ) | |
4371 | opsys=sol2-6 | |
4372 | emacs_check_sunpro_c=yes | |
4373 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
4374 | ;; | |
4375 | *-sunos5* | *-solaris* ) | |
4376 | opsys=sol2-10 | |
4377 | emacs_check_sunpro_c=yes | |
4378 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
4379 | ;; | |
4380 | esac | |
4381 | ## Watch out for a compiler that we know will not work. | |
4382 | case "${canonical}" in | |
4383 | *-solaris* | *-sunos5* ) | |
4384 | if [ "x$CC" = x/usr/ucb/cc ]; then | |
4385 | ## /usr/ucb/cc doesn't work; | |
4386 | ## we should find some other compiler that does work. | |
4387 | unset CC | |
4388 | fi | |
4389 | ;; | |
4390 | *) ;; | |
4391 | esac | |
4392 | ;; | |
4393 | ||
067d23c9 KY |
4394 | ## Intel 386 machines where we don't care about the manufacturer. |
4395 | i[3456]86-*-* ) | |
4396 | machine=intel386 | |
4397 | case "${canonical}" in | |
4398 | *-cygwin ) opsys=cygwin ;; | |
4399 | *-darwin* ) opsys=darwin | |
4400 | CPP="${CC-cc} -E -no-cpp-precomp" | |
4401 | ;; | |
067d23c9 KY |
4402 | *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;; |
4403 | *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;; | |
4404 | *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;; | |
4405 | ## Otherwise, we'll fall through to the generic opsys code at the bottom. | |
4406 | esac | |
4407 | ;; | |
4408 | ||
067d23c9 KY |
4409 | * ) |
4410 | unported=yes | |
4411 | ;; | |
4412 | esac | |
4413 | ||
4414 | ### If the code above didn't choose an operating system, just choose | |
4415 | ### an operating system based on the configuration name. You really | |
4416 | ### only want to use this when you have no idea what the right | |
4417 | ### operating system is; if you know what operating systems a machine | |
4418 | ### runs, it's cleaner to make it explicit in the case statement | |
4419 | ### above. | |
4420 | if test x"${opsys}" = x; then | |
4421 | case "${canonical}" in | |
4422 | *-gnu* ) opsys=gnu ;; | |
4423 | * ) | |
4424 | unported=yes | |
4425 | ;; | |
4426 | esac | |
4427 | fi | |
4428 | ||
4429 | ||
4430 | ||
4431 | if test $unported = yes; then | |
2018939f | 4432 | as_fn_error $? "Emacs hasn't been ported to \`${canonical}' systems. |
067d23c9 KY |
4433 | Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5 |
4434 | fi | |
4435 | ||
d6a003a8 AS |
4436 | if test -n "$machine"; then |
4437 | machfile="m/${machine}.h" | |
4438 | else | |
4439 | machfile= | |
4440 | fi | |
067d23c9 KY |
4441 | opsysfile="s/${opsys}.h" |
4442 | ||
4443 | ||
4444 | #### Choose a compiler. | |
4445 | test -n "$CC" && cc_specified=yes | |
4446 | ||
4447 | # Save the value of CFLAGS that the user specified. | |
4448 | SPECIFIED_CFLAGS="$CFLAGS" | |
4449 | ||
4450 | ac_ext=c | |
4451 | ac_cpp='$CPP $CPPFLAGS' | |
4452 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4453 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4454 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4455 | if test -n "$ac_tool_prefix"; then | |
4456 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4457 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
4458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4459 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6974efa | 4460 | if ${ac_cv_prog_CC+:} false; then : |
067d23c9 KY |
4461 | $as_echo_n "(cached) " >&6 |
4462 | else | |
4463 | if test -n "$CC"; then | |
4464 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4465 | else | |
4466 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4467 | for as_dir in $PATH | |
4468 | do | |
4469 | IFS=$as_save_IFS | |
4470 | test -z "$as_dir" && as_dir=. | |
4471 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4472 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4473 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
4474 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4475 | break 2 | |
4476 | fi | |
4477 | done | |
4478 | done | |
4479 | IFS=$as_save_IFS | |
4480 | ||
4481 | fi | |
4482 | fi | |
4483 | CC=$ac_cv_prog_CC | |
4484 | if test -n "$CC"; then | |
4485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4486 | $as_echo "$CC" >&6; } | |
4487 | else | |
4488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4489 | $as_echo "no" >&6; } | |
4490 | fi | |
4491 | ||
4492 | ||
4493 | fi | |
4494 | if test -z "$ac_cv_prog_CC"; then | |
4495 | ac_ct_CC=$CC | |
4496 | # Extract the first word of "gcc", so it can be a program name with args. | |
4497 | set dummy gcc; ac_word=$2 | |
4498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4499 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6974efa | 4500 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
067d23c9 KY |
4501 | $as_echo_n "(cached) " >&6 |
4502 | else | |
4503 | if test -n "$ac_ct_CC"; then | |
4504 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4505 | else | |
4506 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4507 | for as_dir in $PATH | |
4508 | do | |
4509 | IFS=$as_save_IFS | |
4510 | test -z "$as_dir" && as_dir=. | |
4511 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4512 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4513 | ac_cv_prog_ac_ct_CC="gcc" | |
4514 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4515 | break 2 | |
4516 | fi | |
4517 | done | |
4518 | done | |
4519 | IFS=$as_save_IFS | |
4520 | ||
4521 | fi | |
4522 | fi | |
4523 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4524 | if test -n "$ac_ct_CC"; then | |
4525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
4526 | $as_echo "$ac_ct_CC" >&6; } | |
4527 | else | |
4528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4529 | $as_echo "no" >&6; } | |
4530 | fi | |
4531 | ||
4532 | if test "x$ac_ct_CC" = x; then | |
4533 | CC="" | |
4534 | else | |
4535 | case $cross_compiling:$ac_tool_warned in | |
4536 | yes:) | |
4537 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4538 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4539 | ac_tool_warned=yes ;; | |
4540 | esac | |
4541 | CC=$ac_ct_CC | |
4542 | fi | |
4543 | else | |
4544 | CC="$ac_cv_prog_CC" | |
4545 | fi | |
4546 | ||
4547 | if test -z "$CC"; then | |
4548 | if test -n "$ac_tool_prefix"; then | |
4549 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
4550 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
4551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4552 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6974efa | 4553 | if ${ac_cv_prog_CC+:} false; then : |
067d23c9 KY |
4554 | $as_echo_n "(cached) " >&6 |
4555 | else | |
4556 | if test -n "$CC"; then | |
4557 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4558 | else | |
4559 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4560 | for as_dir in $PATH | |
4561 | do | |
4562 | IFS=$as_save_IFS | |
4563 | test -z "$as_dir" && as_dir=. | |
4564 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4565 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4566 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
4567 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4568 | break 2 | |
4569 | fi | |
4570 | done | |
4571 | done | |
4572 | IFS=$as_save_IFS | |
4573 | ||
4574 | fi | |
4575 | fi | |
4576 | CC=$ac_cv_prog_CC | |
4577 | if test -n "$CC"; then | |
4578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4579 | $as_echo "$CC" >&6; } | |
4580 | else | |
4581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4582 | $as_echo "no" >&6; } | |
4583 | fi | |
4584 | ||
4585 | ||
4586 | fi | |
4587 | fi | |
4588 | if test -z "$CC"; then | |
4589 | # Extract the first word of "cc", so it can be a program name with args. | |
4590 | set dummy cc; ac_word=$2 | |
4591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4592 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6974efa | 4593 | if ${ac_cv_prog_CC+:} false; then : |
067d23c9 KY |
4594 | $as_echo_n "(cached) " >&6 |
4595 | else | |
4596 | if test -n "$CC"; then | |
4597 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4598 | else | |
4599 | ac_prog_rejected=no | |
4600 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4601 | for as_dir in $PATH | |
4602 | do | |
4603 | IFS=$as_save_IFS | |
4604 | test -z "$as_dir" && as_dir=. | |
4605 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4606 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4607 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
4608 | ac_prog_rejected=yes | |
4609 | continue | |
4610 | fi | |
4611 | ac_cv_prog_CC="cc" | |
4612 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4613 | break 2 | |
4614 | fi | |
4615 | done | |
4616 | done | |
4617 | IFS=$as_save_IFS | |
4618 | ||
4619 | if test $ac_prog_rejected = yes; then | |
4620 | # We found a bogon in the path, so make sure we never use it. | |
4621 | set dummy $ac_cv_prog_CC | |
4622 | shift | |
4623 | if test $# != 0; then | |
4624 | # We chose a different compiler from the bogus one. | |
4625 | # However, it has the same basename, so the bogon will be chosen | |
4626 | # first if we set CC to just the basename; use the full file name. | |
4627 | shift | |
4628 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
4629 | fi | |
4630 | fi | |
4631 | fi | |
4632 | fi | |
4633 | CC=$ac_cv_prog_CC | |
4634 | if test -n "$CC"; then | |
4635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4636 | $as_echo "$CC" >&6; } | |
4637 | else | |
4638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4639 | $as_echo "no" >&6; } | |
4640 | fi | |
4641 | ||
4642 | ||
4643 | fi | |
4644 | if test -z "$CC"; then | |
4645 | if test -n "$ac_tool_prefix"; then | |
4646 | for ac_prog in cl.exe | |
4647 | do | |
4648 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4649 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4651 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6974efa | 4652 | if ${ac_cv_prog_CC+:} false; then : |
067d23c9 KY |
4653 | $as_echo_n "(cached) " >&6 |
4654 | else | |
4655 | if test -n "$CC"; then | |
4656 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4657 | else | |
4658 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4659 | for as_dir in $PATH | |
4660 | do | |
4661 | IFS=$as_save_IFS | |
4662 | test -z "$as_dir" && as_dir=. | |
4663 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4664 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4665 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
4666 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4667 | break 2 | |
4668 | fi | |
4669 | done | |
4670 | done | |
4671 | IFS=$as_save_IFS | |
4672 | ||
4673 | fi | |
4674 | fi | |
4675 | CC=$ac_cv_prog_CC | |
4676 | if test -n "$CC"; then | |
4677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4678 | $as_echo "$CC" >&6; } | |
4679 | else | |
4680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4681 | $as_echo "no" >&6; } | |
4682 | fi | |
4683 | ||
4684 | ||
4685 | test -n "$CC" && break | |
4686 | done | |
4687 | fi | |
4688 | if test -z "$CC"; then | |
4689 | ac_ct_CC=$CC | |
4690 | for ac_prog in cl.exe | |
4691 | do | |
4692 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4693 | set dummy $ac_prog; ac_word=$2 | |
4694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4695 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6974efa | 4696 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
067d23c9 KY |
4697 | $as_echo_n "(cached) " >&6 |
4698 | else | |
4699 | if test -n "$ac_ct_CC"; then | |
4700 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4701 | else | |
4702 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4703 | for as_dir in $PATH | |
4704 | do | |
4705 | IFS=$as_save_IFS | |
4706 | test -z "$as_dir" && as_dir=. | |
4707 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4708 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4709 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
4710 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4711 | break 2 | |
4712 | fi | |
4713 | done | |
4714 | done | |
4715 | IFS=$as_save_IFS | |
4716 | ||
4717 | fi | |
4718 | fi | |
4719 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4720 | if test -n "$ac_ct_CC"; then | |
4721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
4722 | $as_echo "$ac_ct_CC" >&6; } | |
4723 | else | |
4724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4725 | $as_echo "no" >&6; } | |
4726 | fi | |
4727 | ||
4728 | ||
4729 | test -n "$ac_ct_CC" && break | |
4730 | done | |
4731 | ||
4732 | if test "x$ac_ct_CC" = x; then | |
4733 | CC="" | |
4734 | else | |
4735 | case $cross_compiling:$ac_tool_warned in | |
4736 | yes:) | |
4737 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4738 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4739 | ac_tool_warned=yes ;; | |
4740 | esac | |
4741 | CC=$ac_ct_CC | |
4742 | fi | |
4743 | fi | |
4744 | ||
4745 | fi | |
4746 | ||
4747 | ||
4748 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4749 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2018939f | 4750 | as_fn_error $? "no acceptable C compiler found in \$PATH |
d6974efa | 4751 | See \`config.log' for more details" "$LINENO" 5; } |
067d23c9 KY |
4752 | |
4753 | # Provide some information about the compiler. | |
4754 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
4755 | set X $ac_compile | |
4756 | ac_compiler=$2 | |
4757 | for ac_option in --version -v -V -qversion; do | |
4758 | { { ac_try="$ac_compiler $ac_option >&5" | |
4759 | case "(($ac_try" in | |
4760 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4761 | *) ac_try_echo=$ac_try;; | |
4762 | esac | |
4763 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4764 | $as_echo "$ac_try_echo"; } >&5 | |
4765 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
4766 | ac_status=$? | |
4767 | if test -s conftest.err; then | |
4768 | sed '10a\ | |
4769 | ... rest of stderr output deleted ... | |
4770 | 10q' conftest.err >conftest.er1 | |
4771 | cat conftest.er1 >&5 | |
4772 | fi | |
4773 | rm -f conftest.er1 conftest.err | |
4774 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4775 | test $ac_status = 0; } | |
4776 | done | |
4777 | ||
4778 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4779 | /* end confdefs.h. */ | |
4780 | ||
4781 | int | |
4782 | main () | |
4783 | { | |
4784 | ||
4785 | ; | |
4786 | return 0; | |
4787 | } | |
4788 | _ACEOF | |
4789 | ac_clean_files_save=$ac_clean_files | |
4790 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
4791 | # Try to create an executable without -o first, disregard a.out. | |
4792 | # It will help us diagnose broken compilers, and finding out an intuition | |
4793 | # of exeext. | |
4794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
4795 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
4796 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
4797 | ||
4798 | # The possible output files: | |
4799 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4800 | ||
4801 | ac_rmfiles= | |
4802 | for ac_file in $ac_files | |
4803 | do | |
4804 | case $ac_file in | |
4805 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4806 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4807 | esac | |
4808 | done | |
4809 | rm -f $ac_rmfiles | |
4810 | ||
4811 | if { { ac_try="$ac_link_default" | |
4812 | case "(($ac_try" in | |
4813 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4814 | *) ac_try_echo=$ac_try;; | |
4815 | esac | |
4816 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4817 | $as_echo "$ac_try_echo"; } >&5 | |
4818 | (eval "$ac_link_default") 2>&5 | |
4819 | ac_status=$? | |
4820 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4821 | test $ac_status = 0; }; then : | |
4822 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4823 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4824 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4825 | # so that the user can short-circuit this test for compilers unknown to | |
4826 | # Autoconf. | |
4827 | for ac_file in $ac_files '' | |
4828 | do | |
4829 | test -f "$ac_file" || continue | |
4830 | case $ac_file in | |
4831 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
4832 | ;; | |
4833 | [ab].out ) | |
4834 | # We found the default executable, but exeext='' is most | |
4835 | # certainly right. | |
4836 | break;; | |
4837 | *.* ) | |
4838 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
4839 | then :; else | |
4840 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4841 | fi | |
4842 | # We set ac_cv_exeext here because the later test for it is not | |
4843 | # safe: cross compilers may not add the suffix if given an `-o' | |
4844 | # argument, so we may need to know it at that point already. | |
4845 | # Even if this section looks crufty: it has the advantage of | |
4846 | # actually working. | |
4847 | break;; | |
4848 | * ) | |
4849 | break;; | |
4850 | esac | |
4851 | done | |
4852 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
4853 | ||
4854 | else | |
4855 | ac_file='' | |
4856 | fi | |
4857 | if test -z "$ac_file"; then : | |
4858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4859 | $as_echo "no" >&6; } | |
4860 | $as_echo "$as_me: failed program was:" >&5 | |
4861 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4862 | ||
4863 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4864 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2018939f | 4865 | as_fn_error 77 "C compiler cannot create executables |
d6974efa | 4866 | See \`config.log' for more details" "$LINENO" 5; } |
067d23c9 KY |
4867 | else |
4868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4869 | $as_echo "yes" >&6; } | |
4870 | fi | |
4871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
4872 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4874 | $as_echo "$ac_file" >&6; } | |
4875 | ac_exeext=$ac_cv_exeext | |
4876 | ||
4877 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | |
4878 | ac_clean_files=$ac_clean_files_save | |
4879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
4880 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4881 | if { { ac_try="$ac_link" | |
4882 | case "(($ac_try" in | |
4883 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4884 | *) ac_try_echo=$ac_try;; | |
4885 | esac | |
4886 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4887 | $as_echo "$ac_try_echo"; } >&5 | |
4888 | (eval "$ac_link") 2>&5 | |
4889 | ac_status=$? | |
4890 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4891 | test $ac_status = 0; }; then : | |
4892 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
4893 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4894 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4895 | # `rm'. | |
4896 | for ac_file in conftest.exe conftest conftest.*; do | |
4897 | test -f "$ac_file" || continue | |
4898 | case $ac_file in | |
4899 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4900 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4901 | break;; | |
4902 | * ) break;; | |
4903 | esac | |
4904 | done | |
4905 | else | |
4906 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4907 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2018939f | 4908 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
d6974efa | 4909 | See \`config.log' for more details" "$LINENO" 5; } |
067d23c9 KY |
4910 | fi |
4911 | rm -f conftest conftest$ac_cv_exeext | |
4912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
4913 | $as_echo "$ac_cv_exeext" >&6; } | |
4914 | ||
4915 | rm -f conftest.$ac_ext | |
4916 | EXEEXT=$ac_cv_exeext | |
4917 | ac_exeext=$EXEEXT | |
4918 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4919 | /* end confdefs.h. */ | |
4920 | #include <stdio.h> | |
4921 | int | |
4922 | main () | |
4923 | { | |
4924 | FILE *f = fopen ("conftest.out", "w"); | |
4925 | return ferror (f) || fclose (f) != 0; | |
4926 | ||
4927 | ; | |
4928 | return 0; | |
4929 | } | |
4930 | _ACEOF | |
4931 | ac_clean_files="$ac_clean_files conftest.out" | |
4932 | # Check that the compiler produces executables we can run. If not, either | |
4933 | # the compiler is broken, or we cross compile. | |
4934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
4935 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4936 | if test "$cross_compiling" != yes; then | |
4937 | { { ac_try="$ac_link" | |
4938 | case "(($ac_try" in | |
4939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4940 | *) ac_try_echo=$ac_try;; | |
4941 | esac | |
4942 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4943 | $as_echo "$ac_try_echo"; } >&5 | |
4944 | (eval "$ac_link") 2>&5 | |
4945 | ac_status=$? | |
4946 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4947 | test $ac_status = 0; } | |
4948 | if { ac_try='./conftest$ac_cv_exeext' | |
4949 | { { case "(($ac_try" in | |
4950 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4951 | *) ac_try_echo=$ac_try;; | |
4952 | esac | |
4953 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4954 | $as_echo "$ac_try_echo"; } >&5 | |
4955 | (eval "$ac_try") 2>&5 | |
4956 | ac_status=$? | |
4957 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4958 | test $ac_status = 0; }; }; then | |
4959 | cross_compiling=no | |
4960 | else | |
4961 | if test "$cross_compiling" = maybe; then | |
4962 | cross_compiling=yes | |
4963 | else | |
4964 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4965 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2018939f | 4966 | as_fn_error $? "cannot run C compiled programs. |
067d23c9 | 4967 | If you meant to cross compile, use \`--host'. |
d6974efa | 4968 | See \`config.log' for more details" "$LINENO" 5; } |
067d23c9 KY |
4969 | fi |
4970 | fi | |
4971 | fi | |
4972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4973 | $as_echo "$cross_compiling" >&6; } | |
4974 | ||
4975 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
4976 | ac_clean_files=$ac_clean_files_save | |
4977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
4978 | $as_echo_n "checking for suffix of object files... " >&6; } | |
d6974efa | 4979 | if ${ac_cv_objext+:} false; then : |
067d23c9 KY |
4980 | $as_echo_n "(cached) " >&6 |
4981 | else | |
4982 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4983 | /* end confdefs.h. */ | |
4984 | ||
4985 | int | |
4986 | main () | |
4987 | { | |
4988 | ||
4989 | ; | |
4990 | return 0; | |
4991 | } | |
4992 | _ACEOF | |
4993 | rm -f conftest.o conftest.obj | |
4994 | if { { ac_try="$ac_compile" | |
4995 | case "(($ac_try" in | |
4996 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4997 | *) ac_try_echo=$ac_try;; | |
4998 | esac | |
4999 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
5000 | $as_echo "$ac_try_echo"; } >&5 | |
5001 | (eval "$ac_compile") 2>&5 | |
5002 | ac_status=$? | |
5003 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5004 | test $ac_status = 0; }; then : | |
5005 | for ac_file in conftest.o conftest.obj conftest.*; do | |
5006 | test -f "$ac_file" || continue; | |
5007 | case $ac_file in | |
5008 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
5009 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
5010 | break;; | |
5011 | esac | |
5012 | done | |
5013 | else | |
5014 | $as_echo "$as_me: failed program was:" >&5 | |
5015 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5016 | ||
5017 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
5018 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2018939f | 5019 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
d6974efa | 5020 | See \`config.log' for more details" "$LINENO" 5; } |
067d23c9 KY |
5021 | fi |
5022 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
5023 | fi | |
5024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
5025 | $as_echo "$ac_cv_objext" >&6; } | |
5026 | OBJEXT=$ac_cv_objext | |
5027 | ac_objext=$OBJEXT | |
5028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
5029 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
d6974efa | 5030 | if ${ac_cv_c_compiler_gnu+:} false; then : |
067d23c9 KY |
5031 | $as_echo_n "(cached) " >&6 |
5032 | else | |
5033 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5034 | /* end confdefs.h. */ | |
5035 | ||
5036 | int | |
5037 | main () | |
5038 | { | |
5039 | #ifndef __GNUC__ | |
5040 | choke me | |
5041 | #endif | |
5042 | ||
5043 | ; | |
5044 | return 0; | |
5045 | } | |
5046 | _ACEOF | |
5047 | if ac_fn_c_try_compile "$LINENO"; then : | |
5048 | ac_compiler_gnu=yes | |
5049 | else | |
5050 | ac_compiler_gnu=no | |
5051 | fi | |
5052 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5053 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
5054 | ||
5055 | fi | |
5056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
5057 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
5058 | if test $ac_compiler_gnu = yes; then | |
5059 | GCC=yes | |
5060 | else | |
5061 | GCC= | |
5062 | fi | |
5063 | ac_test_CFLAGS=${CFLAGS+set} | |
5064 | ac_save_CFLAGS=$CFLAGS | |
5065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
5066 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
d6974efa | 5067 | if ${ac_cv_prog_cc_g+:} false; then : |
067d23c9 KY |
5068 | $as_echo_n "(cached) " >&6 |
5069 | else | |
5070 | ac_save_c_werror_flag=$ac_c_werror_flag | |
5071 | ac_c_werror_flag=yes | |
5072 | ac_cv_prog_cc_g=no | |
5073 | CFLAGS="-g" | |
5074 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5075 | /* end confdefs.h. */ | |
5076 | ||
5077 | int | |
5078 | main () | |
5079 | { | |
5080 | ||
5081 | ; | |
5082 | return 0; | |
5083 | } | |
5084 | _ACEOF | |
5085 | if ac_fn_c_try_compile "$LINENO"; then : | |
5086 | ac_cv_prog_cc_g=yes | |
5087 | else | |
5088 | CFLAGS="" | |
5089 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5090 | /* end confdefs.h. */ | |
5091 | ||
5092 | int | |
5093 | main () | |
5094 | { | |
5095 | ||
5096 | ; | |
5097 | return 0; | |
5098 | } | |
5099 | _ACEOF | |
5100 | if ac_fn_c_try_compile "$LINENO"; then : | |
5101 | ||
5102 | else | |
5103 | ac_c_werror_flag=$ac_save_c_werror_flag | |
5104 | CFLAGS="-g" | |
5105 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5106 | /* end confdefs.h. */ | |
5107 | ||
5108 | int | |
5109 | main () | |
5110 | { | |
5111 | ||
5112 | ; | |
5113 | return 0; | |
5114 | } | |
5115 | _ACEOF | |
5116 | if ac_fn_c_try_compile "$LINENO"; then : | |
5117 | ac_cv_prog_cc_g=yes | |
5118 | fi | |
5119 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5120 | fi | |
5121 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5122 | fi | |
5123 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5124 | ac_c_werror_flag=$ac_save_c_werror_flag | |
5125 | fi | |
5126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
5127 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
5128 | if test "$ac_test_CFLAGS" = set; then | |
5129 | CFLAGS=$ac_save_CFLAGS | |
5130 | elif test $ac_cv_prog_cc_g = yes; then | |
5131 | if test "$GCC" = yes; then | |
5132 | CFLAGS="-g -O2" | |
5133 | else | |
5134 | CFLAGS="-g" | |
5135 | fi | |
5136 | else | |
5137 | if test "$GCC" = yes; then | |
5138 | CFLAGS="-O2" | |
5139 | else | |
5140 | CFLAGS= | |
5141 | fi | |
5142 | fi | |
5143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
5144 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
d6974efa | 5145 | if ${ac_cv_prog_cc_c89+:} false; then : |
067d23c9 KY |
5146 | $as_echo_n "(cached) " >&6 |
5147 | else | |
5148 | ac_cv_prog_cc_c89=no | |
5149 | ac_save_CC=$CC | |
5150 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5151 | /* end confdefs.h. */ | |
5152 | #include <stdarg.h> | |
5153 | #include <stdio.h> | |
5154 | #include <sys/types.h> | |
5155 | #include <sys/stat.h> | |
5156 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
5157 | struct buf { int x; }; | |
5158 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
5159 | static char *e (p, i) | |
5160 | char **p; | |
5161 | int i; | |
5162 | { | |
5163 | return p[i]; | |
5164 | } | |
5165 | static char *f (char * (*g) (char **, int), char **p, ...) | |
5166 | { | |
5167 | char *s; | |
5168 | va_list v; | |
5169 | va_start (v,p); | |
5170 | s = g (p, va_arg (v,int)); | |
5171 | va_end (v); | |
5172 | return s; | |
5173 | } | |
5174 | ||
5175 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
5176 | function prototypes and stuff, but not '\xHH' hex character constants. | |
5177 | These don't provoke an error unfortunately, instead are silently treated | |
5178 | as 'x'. The following induces an error, until -std is added to get | |
5179 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
5180 | array size at least. It's necessary to write '\x00'==0 to get something | |
5181 | that's true only with -std. */ | |
5182 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
5183 | ||
5184 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
5185 | inside strings and character constants. */ | |
5186 | #define FOO(x) 'x' | |
5187 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
5188 | ||
5189 | int test (int i, double x); | |
5190 | struct s1 {int (*f) (int a);}; | |
5191 | struct s2 {int (*f) (double a);}; | |
5192 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
5193 | int argc; | |
5194 | char **argv; | |
5195 | int | |
5196 | main () | |
5197 | { | |
5198 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
5199 | ; | |
5200 | return 0; | |
5201 | } | |
5202 | _ACEOF | |
5203 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
5204 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
5205 | do | |
5206 | CC="$ac_save_CC $ac_arg" | |
5207 | if ac_fn_c_try_compile "$LINENO"; then : | |
5208 | ac_cv_prog_cc_c89=$ac_arg | |
5209 | fi | |
5210 | rm -f core conftest.err conftest.$ac_objext | |
5211 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
5212 | done | |
743c80a7 PE |
5213 | rm -f conftest.$ac_ext |
5214 | CC=$ac_save_CC | |
5215 | ||
5216 | fi | |
5217 | # AC_CACHE_VAL | |
5218 | case "x$ac_cv_prog_cc_c89" in | |
5219 | x) | |
5220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
5221 | $as_echo "none needed" >&6; } ;; | |
5222 | xno) | |
5223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
5224 | $as_echo "unsupported" >&6; } ;; | |
5225 | *) | |
5226 | CC="$CC $ac_cv_prog_cc_c89" | |
5227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
5228 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
5229 | esac | |
5230 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
5231 | ||
5232 | fi | |
5233 | ||
5234 | ac_ext=c | |
5235 | ac_cpp='$CPP $CPPFLAGS' | |
5236 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5237 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5238 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5239 | DEPDIR="${am__leading_dot}deps" | |
5240 | ||
5241 | ac_config_commands="$ac_config_commands depfiles" | |
5242 | ||
5243 | ||
5244 | am_make=${MAKE-make} | |
5245 | cat > confinc << 'END' | |
5246 | am__doit: | |
5247 | @echo this is the am__doit target | |
5248 | .PHONY: am__doit | |
5249 | END | |
5250 | # If we don't find an include directive, just comment out the code. | |
5251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
5252 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
5253 | am__include="#" | |
5254 | am__quote= | |
5255 | _am_result=none | |
5256 | # First try GNU make style include. | |
5257 | echo "include confinc" > confmf | |
5258 | # Ignore all kinds of additional output from `make'. | |
5259 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
5260 | *the\ am__doit\ target*) | |
5261 | am__include=include | |
5262 | am__quote= | |
5263 | _am_result=GNU | |
5264 | ;; | |
5265 | esac | |
5266 | # Now try BSD make style include. | |
5267 | if test "$am__include" = "#"; then | |
5268 | echo '.include "confinc"' > confmf | |
5269 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
5270 | *the\ am__doit\ target*) | |
5271 | am__include=.include | |
5272 | am__quote="\"" | |
5273 | _am_result=BSD | |
5274 | ;; | |
5275 | esac | |
5276 | fi | |
5277 | ||
5278 | ||
5279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | |
5280 | $as_echo "$_am_result" >&6; } | |
5281 | rm -f confinc confmf | |
5282 | ||
5283 | # Check whether --enable-dependency-tracking was given. | |
5284 | if test "${enable_dependency_tracking+set}" = set; then : | |
5285 | enableval=$enable_dependency_tracking; | |
5286 | fi | |
5287 | ||
5288 | if test "x$enable_dependency_tracking" != xno; then | |
5289 | am_depcomp="$ac_aux_dir/depcomp" | |
5290 | AMDEPBACKSLASH='\' | |
5291 | fi | |
5292 | if test "x$enable_dependency_tracking" != xno; then | |
5293 | AMDEP_TRUE= | |
5294 | AMDEP_FALSE='#' | |
5295 | else | |
5296 | AMDEP_TRUE='#' | |
5297 | AMDEP_FALSE= | |
5298 | fi | |
5299 | ||
5300 | ||
5301 | ||
5302 | depcc="$CC" am_compiler_list= | |
5303 | ||
5304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
5305 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
d6974efa | 5306 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
743c80a7 PE |
5307 | $as_echo_n "(cached) " >&6 |
5308 | else | |
5309 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
5310 | # We make a subdir and do the tests there. Otherwise we can end up | |
5311 | # making bogus files that we don't know about and never remove. For | |
5312 | # instance it was reported that on HP-UX the gcc test will end up | |
5313 | # making a dummy file named `D' -- because `-MD' means `put the output | |
5314 | # in D'. | |
5315 | mkdir conftest.dir | |
5316 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
5317 | # using a relative directory. | |
5318 | cp "$am_depcomp" conftest.dir | |
5319 | cd conftest.dir | |
5320 | # We will build objects and dependencies in a subdirectory because | |
5321 | # it helps to detect inapplicable dependency modes. For instance | |
5322 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
5323 | # side effect of compilation, but ICC will put the dependencies in | |
5324 | # the current directory while Tru64 will put them in the object | |
5325 | # directory. | |
5326 | mkdir sub | |
5327 | ||
5328 | am_cv_CC_dependencies_compiler_type=none | |
5329 | if test "$am_compiler_list" = ""; then | |
5330 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
5331 | fi | |
5332 | am__universal=false | |
5333 | case " $depcc " in #( | |
5334 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
5335 | esac | |
5336 | ||
5337 | for depmode in $am_compiler_list; do | |
5338 | # Setup a source with many dependencies, because some compilers | |
5339 | # like to wrap large dependency lists on column 80 (with \), and | |
5340 | # we should not choose a depcomp mode which is confused by this. | |
5341 | # | |
5342 | # We need to recreate these files for each test, as the compiler may | |
5343 | # overwrite some of them when testing with obscure command lines. | |
5344 | # This happens at least with the AIX C compiler. | |
5345 | : > sub/conftest.c | |
5346 | for i in 1 2 3 4 5 6; do | |
5347 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
5348 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
5349 | # Solaris 8's {/usr,}/bin/sh. | |
5350 | touch sub/conftst$i.h | |
5351 | done | |
5352 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
5353 | ||
5354 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
5355 | # mode. It turns out that the SunPro C++ compiler does not properly | |
5356 | # handle `-M -o', and we need to detect this. Also, some Intel | |
5357 | # versions had trouble with output in subdirs | |
5358 | am__obj=sub/conftest.${OBJEXT-o} | |
5359 | am__minus_obj="-o $am__obj" | |
5360 | case $depmode in | |
5361 | gcc) | |
5362 | # This depmode causes a compiler race in universal mode. | |
5363 | test "$am__universal" = false || continue | |
5364 | ;; | |
5365 | nosideeffect) | |
5366 | # after this tag, mechanisms are not by side-effect, so they'll | |
5367 | # only be used when explicitly requested | |
5368 | if test "x$enable_dependency_tracking" = xyes; then | |
5369 | continue | |
5370 | else | |
5371 | break | |
5372 | fi | |
5373 | ;; | |
5374 | msvisualcpp | msvcmsys) | |
5375 | # This compiler won't grok `-c -o', but also, the minuso test has | |
5376 | # not run yet. These depmodes are late enough in the game, and | |
5377 | # so weak that their functioning should not be impacted. | |
5378 | am__obj=conftest.${OBJEXT-o} | |
5379 | am__minus_obj= | |
5380 | ;; | |
5381 | none) break ;; | |
5382 | esac | |
5383 | if depmode=$depmode \ | |
5384 | source=sub/conftest.c object=$am__obj \ | |
5385 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
5386 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
5387 | >/dev/null 2>conftest.err && | |
5388 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
5389 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
5390 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
5391 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
5392 | # icc doesn't choke on unknown options, it will just issue warnings | |
5393 | # or remarks (even with -Werror). So we grep stderr for any message | |
5394 | # that says an option was ignored or not supported. | |
5395 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
5396 | # icc: Command line warning: ignoring option '-M'; no argument required | |
5397 | # The diagnosis changed in icc 8.0: | |
5398 | # icc: Command line remark: option '-MP' not supported | |
5399 | if (grep 'ignoring option' conftest.err || | |
5400 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
5401 | am_cv_CC_dependencies_compiler_type=$depmode | |
5402 | break | |
5403 | fi | |
5404 | fi | |
5405 | done | |
5406 | ||
5407 | cd .. | |
5408 | rm -rf conftest.dir | |
5409 | else | |
5410 | am_cv_CC_dependencies_compiler_type=none | |
5411 | fi | |
5412 | ||
5413 | fi | |
5414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
5415 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
5416 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
5417 | ||
5418 | if | |
5419 | test "x$enable_dependency_tracking" != xno \ | |
5420 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
5421 | am__fastdepCC_TRUE= | |
5422 | am__fastdepCC_FALSE='#' | |
5423 | else | |
5424 | am__fastdepCC_TRUE='#' | |
5425 | am__fastdepCC_FALSE= | |
5426 | fi | |
5427 | ||
5428 | ||
5429 | if test "x$CC" != xcc; then | |
5430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 | |
5431 | $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } | |
5432 | else | |
5433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 | |
5434 | $as_echo_n "checking whether cc understands -c and -o together... " >&6; } | |
5435 | fi | |
5436 | set dummy $CC; ac_cc=`$as_echo "$2" | | |
5437 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` | |
d6974efa | 5438 | if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then : |
743c80a7 PE |
5439 | $as_echo_n "(cached) " >&6 |
5440 | else | |
5441 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5442 | /* end confdefs.h. */ | |
5443 | ||
5444 | int | |
5445 | main () | |
5446 | { | |
5447 | ||
5448 | ; | |
5449 | return 0; | |
5450 | } | |
5451 | _ACEOF | |
5452 | # Make sure it works both with $CC and with simple cc. | |
5453 | # We do the test twice because some compilers refuse to overwrite an | |
5454 | # existing .o file with -o, though they will create one. | |
5455 | ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' | |
5456 | rm -f conftest2.* | |
5457 | if { { case "(($ac_try" in | |
5458 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5459 | *) ac_try_echo=$ac_try;; | |
5460 | esac | |
5461 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
5462 | $as_echo "$ac_try_echo"; } >&5 | |
5463 | (eval "$ac_try") 2>&5 | |
5464 | ac_status=$? | |
5465 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5466 | test $ac_status = 0; } && | |
5467 | test -f conftest2.$ac_objext && { { case "(($ac_try" in | |
5468 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5469 | *) ac_try_echo=$ac_try;; | |
5470 | esac | |
5471 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
5472 | $as_echo "$ac_try_echo"; } >&5 | |
5473 | (eval "$ac_try") 2>&5 | |
5474 | ac_status=$? | |
5475 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5476 | test $ac_status = 0; }; | |
5477 | then | |
5478 | eval ac_cv_prog_cc_${ac_cc}_c_o=yes | |
5479 | if test "x$CC" != xcc; then | |
5480 | # Test first that cc exists at all. | |
5481 | if { ac_try='cc -c conftest.$ac_ext >&5' | |
5482 | { { case "(($ac_try" in | |
5483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5484 | *) ac_try_echo=$ac_try;; | |
5485 | esac | |
5486 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
5487 | $as_echo "$ac_try_echo"; } >&5 | |
5488 | (eval "$ac_try") 2>&5 | |
5489 | ac_status=$? | |
5490 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5491 | test $ac_status = 0; }; }; then | |
5492 | ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' | |
5493 | rm -f conftest2.* | |
5494 | if { { case "(($ac_try" in | |
5495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5496 | *) ac_try_echo=$ac_try;; | |
5497 | esac | |
5498 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
5499 | $as_echo "$ac_try_echo"; } >&5 | |
5500 | (eval "$ac_try") 2>&5 | |
5501 | ac_status=$? | |
5502 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5503 | test $ac_status = 0; } && | |
5504 | test -f conftest2.$ac_objext && { { case "(($ac_try" in | |
5505 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5506 | *) ac_try_echo=$ac_try;; | |
5507 | esac | |
5508 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
5509 | $as_echo "$ac_try_echo"; } >&5 | |
5510 | (eval "$ac_try") 2>&5 | |
5511 | ac_status=$? | |
5512 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5513 | test $ac_status = 0; }; | |
5514 | then | |
5515 | # cc works too. | |
5516 | : | |
5517 | else | |
5518 | # cc exists but doesn't like -o. | |
5519 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | |
5520 | fi | |
5521 | fi | |
5522 | fi | |
5523 | else | |
5524 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | |
5525 | fi | |
5526 | rm -f core conftest* | |
5527 | ||
5528 | fi | |
5529 | if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then | |
5530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5531 | $as_echo "yes" >&6; } | |
5532 | else | |
5533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5534 | $as_echo "no" >&6; } | |
5535 | ||
5536 | $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h | |
5537 | ||
5538 | fi | |
5539 | ||
5540 | # FIXME: we rely on the cache variable name because | |
5541 | # there is no other way. | |
5542 | set dummy $CC | |
5543 | am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` | |
5544 | eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o | |
5545 | if test "$am_t" != yes; then | |
5546 | # Losing compiler, so override with the script. | |
5547 | # FIXME: It is wrong to rewrite CC. | |
5548 | # But if we don't then we get into trouble of one sort or another. | |
5549 | # A longer-term fix would be to have automake use am__CC in this case, | |
5550 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
5551 | CC="$am_aux_dir/compile $CC" | |
5552 | fi | |
5553 | ||
5554 | ||
5555 | ||
5556 | # Initialize gnulib right after verifying that the C compiler works. | |
5557 | if test -n "$ac_tool_prefix"; then | |
5558 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5559 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5561 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6974efa | 5562 | if ${ac_cv_prog_RANLIB+:} false; then : |
743c80a7 PE |
5563 | $as_echo_n "(cached) " >&6 |
5564 | else | |
5565 | if test -n "$RANLIB"; then | |
5566 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5567 | else | |
5568 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5569 | for as_dir in $PATH | |
5570 | do | |
5571 | IFS=$as_save_IFS | |
5572 | test -z "$as_dir" && as_dir=. | |
5573 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5574 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5575 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
5576 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5577 | break 2 | |
5578 | fi | |
5579 | done | |
5580 | done | |
5581 | IFS=$as_save_IFS | |
5582 | ||
5583 | fi | |
5584 | fi | |
5585 | RANLIB=$ac_cv_prog_RANLIB | |
5586 | if test -n "$RANLIB"; then | |
5587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
5588 | $as_echo "$RANLIB" >&6; } | |
5589 | else | |
5590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5591 | $as_echo "no" >&6; } | |
5592 | fi | |
5593 | ||
5594 | ||
5595 | fi | |
5596 | if test -z "$ac_cv_prog_RANLIB"; then | |
5597 | ac_ct_RANLIB=$RANLIB | |
5598 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5599 | set dummy ranlib; ac_word=$2 | |
5600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5601 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6974efa | 5602 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
743c80a7 PE |
5603 | $as_echo_n "(cached) " >&6 |
5604 | else | |
5605 | if test -n "$ac_ct_RANLIB"; then | |
5606 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5607 | else | |
5608 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5609 | for as_dir in $PATH | |
5610 | do | |
5611 | IFS=$as_save_IFS | |
5612 | test -z "$as_dir" && as_dir=. | |
5613 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5614 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5615 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
5616 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5617 | break 2 | |
5618 | fi | |
5619 | done | |
5620 | done | |
5621 | IFS=$as_save_IFS | |
067d23c9 KY |
5622 | |
5623 | fi | |
743c80a7 PE |
5624 | fi |
5625 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5626 | if test -n "$ac_ct_RANLIB"; then | |
5627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
5628 | $as_echo "$ac_ct_RANLIB" >&6; } | |
5629 | else | |
5630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5631 | $as_echo "no" >&6; } | |
5632 | fi | |
067d23c9 | 5633 | |
743c80a7 PE |
5634 | if test "x$ac_ct_RANLIB" = x; then |
5635 | RANLIB=":" | |
5636 | else | |
5637 | case $cross_compiling:$ac_tool_warned in | |
5638 | yes:) | |
5639 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5640 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5641 | ac_tool_warned=yes ;; | |
5642 | esac | |
5643 | RANLIB=$ac_ct_RANLIB | |
5644 | fi | |
5645 | else | |
5646 | RANLIB="$ac_cv_prog_RANLIB" | |
067d23c9 KY |
5647 | fi |
5648 | ||
743c80a7 | 5649 | |
067d23c9 KY |
5650 | ac_ext=c |
5651 | ac_cpp='$CPP $CPPFLAGS' | |
5652 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5653 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5654 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
5656 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
5657 | # On Suns, sometimes $CPP names a directory. | |
5658 | if test -n "$CPP" && test -d "$CPP"; then | |
5659 | CPP= | |
5660 | fi | |
5661 | if test -z "$CPP"; then | |
d6974efa | 5662 | if ${ac_cv_prog_CPP+:} false; then : |
067d23c9 KY |
5663 | $as_echo_n "(cached) " >&6 |
5664 | else | |
5665 | # Double quotes because CPP needs to be expanded | |
5666 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
5667 | do | |
5668 | ac_preproc_ok=false | |
5669 | for ac_c_preproc_warn_flag in '' yes | |
5670 | do | |
5671 | # Use a header file that comes with gcc, so configuring glibc | |
5672 | # with a fresh cross-compiler works. | |
5673 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5674 | # <limits.h> exists even on freestanding compilers. | |
5675 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5676 | # not just through cpp. "Syntax error" is here to catch this case. | |
5677 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5678 | /* end confdefs.h. */ | |
5679 | #ifdef __STDC__ | |
5680 | # include <limits.h> | |
5681 | #else | |
5682 | # include <assert.h> | |
5683 | #endif | |
5684 | Syntax error | |
5685 | _ACEOF | |
5686 | if ac_fn_c_try_cpp "$LINENO"; then : | |
5687 | ||
5688 | else | |
5689 | # Broken: fails on valid input. | |
5690 | continue | |
5691 | fi | |
2018939f | 5692 | rm -f conftest.err conftest.i conftest.$ac_ext |
067d23c9 KY |
5693 | |
5694 | # OK, works on sane cases. Now check whether nonexistent headers | |
5695 | # can be detected and how. | |
5696 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5697 | /* end confdefs.h. */ | |
5698 | #include <ac_nonexistent.h> | |
5699 | _ACEOF | |
5700 | if ac_fn_c_try_cpp "$LINENO"; then : | |
5701 | # Broken: success on invalid input. | |
5702 | continue | |
5703 | else | |
5704 | # Passes both tests. | |
5705 | ac_preproc_ok=: | |
5706 | break | |
5707 | fi | |
2018939f | 5708 | rm -f conftest.err conftest.i conftest.$ac_ext |
067d23c9 KY |
5709 | |
5710 | done | |
5711 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2018939f | 5712 | rm -f conftest.i conftest.err conftest.$ac_ext |
067d23c9 KY |
5713 | if $ac_preproc_ok; then : |
5714 | break | |
5715 | fi | |
5716 | ||
5717 | done | |
5718 | ac_cv_prog_CPP=$CPP | |
5719 | ||
5720 | fi | |
5721 | CPP=$ac_cv_prog_CPP | |
5722 | else | |
5723 | ac_cv_prog_CPP=$CPP | |
5724 | fi | |
5725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
5726 | $as_echo "$CPP" >&6; } | |
5727 | ac_preproc_ok=false | |
5728 | for ac_c_preproc_warn_flag in '' yes | |
5729 | do | |
5730 | # Use a header file that comes with gcc, so configuring glibc | |
5731 | # with a fresh cross-compiler works. | |
5732 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5733 | # <limits.h> exists even on freestanding compilers. | |
5734 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5735 | # not just through cpp. "Syntax error" is here to catch this case. | |
5736 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5737 | /* end confdefs.h. */ | |
5738 | #ifdef __STDC__ | |
5739 | # include <limits.h> | |
5740 | #else | |
5741 | # include <assert.h> | |
5742 | #endif | |
5743 | Syntax error | |
5744 | _ACEOF | |
5745 | if ac_fn_c_try_cpp "$LINENO"; then : | |
5746 | ||
5747 | else | |
5748 | # Broken: fails on valid input. | |
5749 | continue | |
5750 | fi | |
2018939f | 5751 | rm -f conftest.err conftest.i conftest.$ac_ext |
067d23c9 KY |
5752 | |
5753 | # OK, works on sane cases. Now check whether nonexistent headers | |
5754 | # can be detected and how. | |
5755 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5756 | /* end confdefs.h. */ | |
5757 | #include <ac_nonexistent.h> | |
5758 | _ACEOF | |
5759 | if ac_fn_c_try_cpp "$LINENO"; then : | |
5760 | # Broken: success on invalid input. | |
5761 | continue | |
5762 | else | |
5763 | # Passes both tests. | |
5764 | ac_preproc_ok=: | |
5765 | break | |
5766 | fi | |
2018939f | 5767 | rm -f conftest.err conftest.i conftest.$ac_ext |
067d23c9 KY |
5768 | |
5769 | done | |
5770 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2018939f | 5771 | rm -f conftest.i conftest.err conftest.$ac_ext |
067d23c9 KY |
5772 | if $ac_preproc_ok; then : |
5773 | ||
5774 | else | |
5775 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
5776 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2018939f | 5777 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
d6974efa | 5778 | See \`config.log' for more details" "$LINENO" 5; } |
067d23c9 KY |
5779 | fi |
5780 | ||
5781 | ac_ext=c | |
5782 | ac_cpp='$CPP $CPPFLAGS' | |
5783 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5784 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5785 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5786 | ||
5787 | ||
5788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
5789 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
d6974efa | 5790 | if ${ac_cv_path_GREP+:} false; then : |
067d23c9 KY |
5791 | $as_echo_n "(cached) " >&6 |
5792 | else | |
5793 | if test -z "$GREP"; then | |
5794 | ac_path_GREP_found=false | |
5795 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5796 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5797 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5798 | do | |
5799 | IFS=$as_save_IFS | |
5800 | test -z "$as_dir" && as_dir=. | |
5801 | for ac_prog in grep ggrep; do | |
5802 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5803 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
5804 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
5805 | # Check for GNU ac_path_GREP and select it if it is found. | |
5806 | # Check for GNU $ac_path_GREP | |
5807 | case `"$ac_path_GREP" --version 2>&1` in | |
5808 | *GNU*) | |
5809 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
5810 | *) | |
5811 | ac_count=0 | |
5812 | $as_echo_n 0123456789 >"conftest.in" | |
5813 | while : | |
5814 | do | |
5815 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5816 | mv "conftest.tmp" "conftest.in" | |
5817 | cp "conftest.in" "conftest.nl" | |
5818 | $as_echo 'GREP' >> "conftest.nl" | |
5819 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5820 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5821 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5822 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
5823 | # Best one so far, save it but keep looking for a better one | |
5824 | ac_cv_path_GREP="$ac_path_GREP" | |
5825 | ac_path_GREP_max=$ac_count | |
5826 | fi | |
5827 | # 10*(2^10) chars as input seems more than enough | |
5828 | test $ac_count -gt 10 && break | |
5829 | done | |
5830 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5831 | esac | |
5832 | ||
5833 | $ac_path_GREP_found && break 3 | |
5834 | done | |
5835 | done | |
5836 | done | |
5837 | IFS=$as_save_IFS | |
5838 | if test -z "$ac_cv_path_GREP"; then | |
2018939f | 5839 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
067d23c9 KY |
5840 | fi |
5841 | else | |
5842 | ac_cv_path_GREP=$GREP | |
5843 | fi | |
5844 | ||
5845 | fi | |
5846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
5847 | $as_echo "$ac_cv_path_GREP" >&6; } | |
5848 | GREP="$ac_cv_path_GREP" | |
5849 | ||
5850 | ||
5851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
5852 | $as_echo_n "checking for egrep... " >&6; } | |
d6974efa | 5853 | if ${ac_cv_path_EGREP+:} false; then : |
067d23c9 KY |
5854 | $as_echo_n "(cached) " >&6 |
5855 | else | |
5856 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
5857 | then ac_cv_path_EGREP="$GREP -E" | |
5858 | else | |
5859 | if test -z "$EGREP"; then | |
5860 | ac_path_EGREP_found=false | |
5861 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5862 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5863 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5864 | do | |
5865 | IFS=$as_save_IFS | |
5866 | test -z "$as_dir" && as_dir=. | |
5867 | for ac_prog in egrep; do | |
5868 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5869 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5870 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
5871 | # Check for GNU ac_path_EGREP and select it if it is found. | |
5872 | # Check for GNU $ac_path_EGREP | |
5873 | case `"$ac_path_EGREP" --version 2>&1` in | |
5874 | *GNU*) | |
5875 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
5876 | *) | |
5877 | ac_count=0 | |
5878 | $as_echo_n 0123456789 >"conftest.in" | |
5879 | while : | |
5880 | do | |
5881 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5882 | mv "conftest.tmp" "conftest.in" | |
5883 | cp "conftest.in" "conftest.nl" | |
5884 | $as_echo 'EGREP' >> "conftest.nl" | |
5885 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5886 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5887 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5888 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
5889 | # Best one so far, save it but keep looking for a better one | |
5890 | ac_cv_path_EGREP="$ac_path_EGREP" | |
5891 | ac_path_EGREP_max=$ac_count | |
5892 | fi | |
5893 | # 10*(2^10) chars as input seems more than enough | |
5894 | test $ac_count -gt 10 && break | |
5895 | done | |
5896 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5897 | esac | |
5898 | ||
5899 | $ac_path_EGREP_found && break 3 | |
5900 | done | |
5901 | done | |
5902 | done | |
5903 | IFS=$as_save_IFS | |
5904 | if test -z "$ac_cv_path_EGREP"; then | |
2018939f | 5905 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
067d23c9 KY |
5906 | fi |
5907 | else | |
5908 | ac_cv_path_EGREP=$EGREP | |
5909 | fi | |
5910 | ||
5911 | fi | |
5912 | fi | |
5913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
5914 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
5915 | EGREP="$ac_cv_path_EGREP" | |
5916 | ||
5917 | ||
5918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
5919 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
d6974efa | 5920 | if ${ac_cv_header_stdc+:} false; then : |
067d23c9 KY |
5921 | $as_echo_n "(cached) " >&6 |
5922 | else | |
5923 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5924 | /* end confdefs.h. */ | |
5925 | #include <stdlib.h> | |
5926 | #include <stdarg.h> | |
5927 | #include <string.h> | |
5928 | #include <float.h> | |
5929 | ||
5930 | int | |
5931 | main () | |
5932 | { | |
5933 | ||
5934 | ; | |
5935 | return 0; | |
5936 | } | |
5937 | _ACEOF | |
5938 | if ac_fn_c_try_compile "$LINENO"; then : | |
5939 | ac_cv_header_stdc=yes | |
5940 | else | |
5941 | ac_cv_header_stdc=no | |
5942 | fi | |
5943 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5944 | ||
5945 | if test $ac_cv_header_stdc = yes; then | |
5946 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5947 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5948 | /* end confdefs.h. */ | |
5949 | #include <string.h> | |
5950 | ||
5951 | _ACEOF | |
5952 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5953 | $EGREP "memchr" >/dev/null 2>&1; then : | |
5954 | ||
5955 | else | |
5956 | ac_cv_header_stdc=no | |
5957 | fi | |
5958 | rm -f conftest* | |
5959 | ||
5960 | fi | |
5961 | ||
5962 | if test $ac_cv_header_stdc = yes; then | |
5963 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5964 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5965 | /* end confdefs.h. */ | |
5966 | #include <stdlib.h> | |
5967 | ||
5968 | _ACEOF | |
5969 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5970 | $EGREP "free" >/dev/null 2>&1; then : | |
5971 | ||
5972 | else | |
5973 | ac_cv_header_stdc=no | |
5974 | fi | |
5975 | rm -f conftest* | |
5976 | ||
5977 | fi | |
5978 | ||
5979 | if test $ac_cv_header_stdc = yes; then | |
5980 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5981 | if test "$cross_compiling" = yes; then : | |
5982 | : | |
5983 | else | |
5984 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5985 | /* end confdefs.h. */ | |
5986 | #include <ctype.h> | |
5987 | #include <stdlib.h> | |
5988 | #if ((' ' & 0x0FF) == 0x020) | |
5989 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5990 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5991 | #else | |
5992 | # define ISLOWER(c) \ | |
5993 | (('a' <= (c) && (c) <= 'i') \ | |
5994 | || ('j' <= (c) && (c) <= 'r') \ | |
5995 | || ('s' <= (c) && (c) <= 'z')) | |
5996 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5997 | #endif | |
5998 | ||
5999 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
6000 | int | |
6001 | main () | |
6002 | { | |
6003 | int i; | |
6004 | for (i = 0; i < 256; i++) | |
6005 | if (XOR (islower (i), ISLOWER (i)) | |
6006 | || toupper (i) != TOUPPER (i)) | |
6007 | return 2; | |
6008 | return 0; | |
6009 | } | |
6010 | _ACEOF | |
6011 | if ac_fn_c_try_run "$LINENO"; then : | |
6012 | ||
6013 | else | |
6014 | ac_cv_header_stdc=no | |
6015 | fi | |
6016 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6017 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6018 | fi | |
6019 | ||
6020 | fi | |
6021 | fi | |
6022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
6023 | $as_echo "$ac_cv_header_stdc" >&6; } | |
6024 | if test $ac_cv_header_stdc = yes; then | |
6025 | ||
6026 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
6027 | ||
6028 | fi | |
6029 | ||
6030 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
6031 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
6032 | inttypes.h stdint.h unistd.h | |
6033 | do : | |
6034 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6035 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
6036 | " | |
2018939f | 6037 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
067d23c9 KY |
6038 | cat >>confdefs.h <<_ACEOF |
6039 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6040 | _ACEOF | |
6041 | ||
6042 | fi | |
6043 | ||
6044 | done | |
6045 | ||
6046 | ||
6047 | ||
1fd182f0 PE |
6048 | |
6049 | ||
067d23c9 | 6050 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
d6974efa | 6051 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
067d23c9 KY |
6052 | MINIX=yes |
6053 | else | |
6054 | MINIX= | |
6055 | fi | |
6056 | ||
6057 | ||
6058 | if test "$MINIX" = yes; then | |
6059 | ||
6060 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
6061 | ||
6062 | ||
6063 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | |
6064 | ||
6065 | ||
6066 | $as_echo "#define _MINIX 1" >>confdefs.h | |
6067 | ||
6068 | fi | |
6069 | ||
1fd182f0 PE |
6070 | case "$host_os" in |
6071 | hpux*) | |
6072 | ||
6073 | $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h | |
6074 | ||
6075 | ;; | |
6076 | esac | |
6077 | ||
067d23c9 KY |
6078 | |
6079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | |
6080 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
d6974efa | 6081 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
067d23c9 KY |
6082 | $as_echo_n "(cached) " >&6 |
6083 | else | |
6084 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6085 | /* end confdefs.h. */ | |
6086 | ||
1fd182f0 PE |
6087 | # define __EXTENSIONS__ 1 |
6088 | $ac_includes_default | |
067d23c9 KY |
6089 | int |
6090 | main () | |
6091 | { | |
6092 | ||
6093 | ; | |
6094 | return 0; | |
6095 | } | |
6096 | _ACEOF | |
6097 | if ac_fn_c_try_compile "$LINENO"; then : | |
6098 | ac_cv_safe_to_define___extensions__=yes | |
6099 | else | |
6100 | ac_cv_safe_to_define___extensions__=no | |
6101 | fi | |
6102 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6103 | fi | |
6104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | |
6105 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
6106 | test $ac_cv_safe_to_define___extensions__ = yes && | |
6107 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
6108 | ||
6109 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | |
6110 | ||
6111 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | |
6112 | ||
6113 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | |
6114 | ||
6115 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
6116 | ||
6117 | ||
6118 | ||
1fd182f0 PE |
6119 | |
6120 | ||
6121 | ||
6122 | ||
6123 | ||
6124 | ||
6125 | ||
6126 | # Code from module arg-nonnull: | |
6127 | # Code from module c++defs: | |
942f733f | 6128 | # Code from module crypto/md5: |
f737437b | 6129 | # Code from module dtoastr: |
1fd182f0 PE |
6130 | # Code from module extensions: |
6131 | ||
5fa4ac76 | 6132 | # Code from module filemode: |
1f5d53eb | 6133 | # Code from module getloadavg: |
e275c824 PE |
6134 | # Code from module getopt-gnu: |
6135 | # Code from module getopt-posix: | |
6136 | # Code from module gettext-h: | |
67342916 | 6137 | # Code from module ignore-value: |
1fd182f0 PE |
6138 | # Code from module include_next: |
6139 | # Code from module intprops: | |
6140 | # Code from module mktime: | |
6141 | # Code from module multiarch: | |
16c3e636 | 6142 | # Code from module stdbool: |
1fd182f0 | 6143 | # Code from module stddef: |
5f90be1b | 6144 | # Code from module stdint: |
1f5d53eb | 6145 | # Code from module stdlib: |
16c3e636 | 6146 | # Code from module strftime: |
5fa4ac76 | 6147 | # Code from module sys_stat: |
1fd182f0 PE |
6148 | # Code from module time: |
6149 | # Code from module time_r: | |
e275c824 | 6150 | # Code from module unistd: |
1fd182f0 PE |
6151 | # Code from module warn-on-use: |
6152 | ||
6153 | ||
6154 | # On Suns, sometimes $CPP names a directory. | |
6155 | if test -n "$CPP" && test -d "$CPP"; then | |
6156 | CPP= | |
6157 | fi | |
6158 | ||
6159 | ## If not using gcc, and on Solaris, and no CPP specified, see if | |
6160 | ## using a Sun compiler, which needs -Xs to prevent whitespace. | |
6161 | if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \ | |
6162 | test x"$CPP" = x; then | |
6163 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5 | |
6164 | $as_echo_n "checking whether we are using a Sun C compiler... " >&6; } | |
d6974efa | 6165 | if ${emacs_cv_sunpro_c+:} false; then : |
1fd182f0 PE |
6166 | $as_echo_n "(cached) " >&6 |
6167 | else | |
6168 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6169 | /* end confdefs.h. */ | |
6170 | ||
6171 | int | |
6172 | main () | |
6173 | { | |
6174 | #ifndef __SUNPRO_C | |
6175 | fail; | |
6176 | #endif | |
6177 | ||
6178 | ; | |
6179 | return 0; | |
6180 | } | |
6181 | _ACEOF | |
6182 | if ac_fn_c_try_link "$LINENO"; then : | |
6183 | emacs_cv_sunpro_c=yes | |
6184 | else | |
6185 | emacs_cv_sunpro_c=no | |
6186 | fi | |
6187 | rm -f core conftest.err conftest.$ac_objext \ | |
6188 | conftest$ac_exeext conftest.$ac_ext | |
6189 | fi | |
6190 | ||
6191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5 | |
6192 | $as_echo "$emacs_cv_sunpro_c" >&6; } | |
6193 | ||
6194 | if test x"$emacs_cv_sunpro_c" = xyes; then | |
6195 | NON_GNU_CPP="$CC -E -Xs" | |
6196 | fi | |
6197 | fi | |
6198 | ||
6199 | #### Some systems specify a CPP to use unless we are using GCC. | |
6200 | #### Now that we know whether we are using GCC, we can decide whether | |
6201 | #### to use that one. | |
6202 | if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x | |
6203 | then | |
6204 | CPP="$NON_GNU_CPP" | |
6205 | fi | |
6206 | ||
6207 | #### Some systems specify a CC to use unless we are using GCC. | |
6208 | #### Now that we know whether we are using GCC, we can decide whether | |
6209 | #### to use that one. | |
6210 | if test "x$NON_GNU_CC" != x && test x$GCC != xyes && | |
6211 | test x$cc_specified != xyes | |
6212 | then | |
6213 | CC="$NON_GNU_CC" | |
6214 | fi | |
6215 | ||
6216 | if test x$GCC = xyes; then | |
6217 | test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS" | |
6218 | else | |
6219 | test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS" | |
6220 | fi | |
6221 | ||
067d23c9 KY |
6222 | ### Use -Wdeclaration-after-statement if the compiler supports it |
6223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5 | |
6224 | $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; } | |
6225 | SAVE_CFLAGS="$CFLAGS" | |
6226 | CFLAGS="$CFLAGS -Wdeclaration-after-statement" | |
6227 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6228 | /* end confdefs.h. */ | |
6229 | ||
6230 | int | |
6231 | main () | |
6232 | { | |
6233 | ||
6234 | ; | |
6235 | return 0; | |
6236 | } | |
6237 | _ACEOF | |
6238 | if ac_fn_c_try_compile "$LINENO"; then : | |
6239 | has_option=yes | |
6240 | else | |
6241 | has_option=no | |
6242 | fi | |
6243 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6244 | if test $has_option = yes; then | |
6245 | C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH" | |
6246 | fi | |
6247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5 | |
6248 | $as_echo "$has_option" >&6; } | |
6249 | CFLAGS="$SAVE_CFLAGS" | |
6250 | unset has_option | |
6251 | unset SAVE_CFLAGS | |
6252 | ||
6253 | ### Use -Wold-style-definition if the compiler supports it | |
6254 | # This can be removed when conversion to standard C is finished. | |
6255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5 | |
6256 | $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; } | |
6257 | SAVE_CFLAGS="$CFLAGS" | |
6258 | CFLAGS="$CFLAGS -Wold-style-definition" | |
6259 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6260 | /* end confdefs.h. */ | |
6261 | ||
6262 | int | |
6263 | main () | |
6264 | { | |
6265 | ||
6266 | ; | |
6267 | return 0; | |
6268 | } | |
6269 | _ACEOF | |
6270 | if ac_fn_c_try_compile "$LINENO"; then : | |
6271 | has_option=yes | |
6272 | else | |
6273 | has_option=no | |
6274 | fi | |
6275 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6276 | if test $has_option = yes; then | |
6277 | C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH" | |
6278 | fi | |
6279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5 | |
6280 | $as_echo "$has_option" >&6; } | |
6281 | CFLAGS="$SAVE_CFLAGS" | |
6282 | unset has_option | |
6283 | unset SAVE_CFLAGS | |
6284 | ||
6285 | ### Use -Wimplicit-function-declaration if the compiler supports it | |
6286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5 | |
6287 | $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; } | |
6288 | SAVE_CFLAGS="$CFLAGS" | |
6289 | CFLAGS="$CFLAGS -Wimplicit-function-declaration" | |
6290 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6291 | /* end confdefs.h. */ | |
6292 | ||
6293 | int | |
6294 | main () | |
6295 | { | |
6296 | ||
6297 | ; | |
6298 | return 0; | |
6299 | } | |
6300 | _ACEOF | |
6301 | if ac_fn_c_try_compile "$LINENO"; then : | |
6302 | has_option=yes | |
6303 | else | |
6304 | has_option=no | |
6305 | fi | |
6306 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6307 | if test $has_option = yes; then | |
6308 | C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH" | |
6309 | fi | |
6310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5 | |
6311 | $as_echo "$has_option" >&6; } | |
6312 | CFLAGS="$SAVE_CFLAGS" | |
6313 | unset has_option | |
6314 | unset SAVE_CFLAGS | |
6315 | ||
6316 | ||
6317 | ||
6318 | ||
6319 | #### Some other nice autoconf tests. | |
6320 | ||
6321 | ac_ext=c | |
6322 | ac_cpp='$CPP $CPPFLAGS' | |
6323 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6324 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6325 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
6327 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
6328 | # On Suns, sometimes $CPP names a directory. | |
6329 | if test -n "$CPP" && test -d "$CPP"; then | |
6330 | CPP= | |
6331 | fi | |
6332 | if test -z "$CPP"; then | |
d6974efa | 6333 | if ${ac_cv_prog_CPP+:} false; then : |
067d23c9 KY |
6334 | $as_echo_n "(cached) " >&6 |
6335 | else | |
6336 | # Double quotes because CPP needs to be expanded | |
6337 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
6338 | do | |
6339 | ac_preproc_ok=false | |
6340 | for ac_c_preproc_warn_flag in '' yes | |
6341 | do | |
6342 | # Use a header file that comes with gcc, so configuring glibc | |
6343 | # with a fresh cross-compiler works. | |
6344 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6345 | # <limits.h> exists even on freestanding compilers. | |
6346 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6347 | # not just through cpp. "Syntax error" is here to catch this case. | |
6348 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6349 | /* end confdefs.h. */ | |
6350 | #ifdef __STDC__ | |
6351 | # include <limits.h> | |
6352 | #else | |
6353 | # include <assert.h> | |
6354 | #endif | |
6355 | Syntax error | |
6356 | _ACEOF | |
6357 | if ac_fn_c_try_cpp "$LINENO"; then : | |
6358 | ||
6359 | else | |
6360 | # Broken: fails on valid input. | |
6361 | continue | |
6362 | fi | |
2018939f | 6363 | rm -f conftest.err conftest.i conftest.$ac_ext |
067d23c9 KY |
6364 | |
6365 | # OK, works on sane cases. Now check whether nonexistent headers | |
6366 | # can be detected and how. | |
6367 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6368 | /* end confdefs.h. */ | |
6369 | #include <ac_nonexistent.h> | |
6370 | _ACEOF | |
6371 | if ac_fn_c_try_cpp "$LINENO"; then : | |
6372 | # Broken: success on invalid input. | |
6373 | continue | |
6374 | else | |
6375 | # Passes both tests. | |
6376 | ac_preproc_ok=: | |
6377 | break | |
6378 | fi | |
2018939f | 6379 | rm -f conftest.err conftest.i conftest.$ac_ext |
067d23c9 KY |
6380 | |
6381 | done | |
6382 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2018939f | 6383 | rm -f conftest.i conftest.err conftest.$ac_ext |
067d23c9 KY |
6384 | if $ac_preproc_ok; then : |
6385 | break | |
6386 | fi | |
6387 | ||
6388 | done | |
6389 | ac_cv_prog_CPP=$CPP | |
6390 | ||
6391 | fi | |
6392 | CPP=$ac_cv_prog_CPP | |
6393 | else | |
6394 | ac_cv_prog_CPP=$CPP | |
6395 | fi | |
6396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
6397 | $as_echo "$CPP" >&6; } | |
6398 | ac_preproc_ok=false | |
6399 | for ac_c_preproc_warn_flag in '' yes | |
6400 | do | |
6401 | # Use a header file that comes with gcc, so configuring glibc | |
6402 | # with a fresh cross-compiler works. | |
6403 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6404 | # <limits.h> exists even on freestanding compilers. | |
6405 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6406 | # not just through cpp. "Syntax error" is here to catch this case. | |
6407 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6408 | /* end confdefs.h. */ | |
6409 | #ifdef __STDC__ | |
6410 | # include <limits.h> | |
6411 | #else | |
6412 | # include <assert.h> | |
6413 | #endif | |
6414 | Syntax error | |
6415 | _ACEOF | |
6416 | if ac_fn_c_try_cpp "$LINENO"; then : | |
6417 | ||
6418 | else | |
6419 | # Broken: fails on valid input. | |
6420 | continue | |
6421 | fi | |
2018939f | 6422 | rm -f conftest.err conftest.i conftest.$ac_ext |
067d23c9 KY |
6423 | |
6424 | # OK, works on sane cases. Now check whether nonexistent headers | |
6425 | # can be detected and how. | |
6426 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6427 | /* end confdefs.h. */ | |
6428 | #include <ac_nonexistent.h> | |
6429 | _ACEOF | |
6430 | if ac_fn_c_try_cpp "$LINENO"; then : | |
6431 | # Broken: success on invalid input. | |
6432 | continue | |
6433 | else | |
6434 | # Passes both tests. | |
6435 | ac_preproc_ok=: | |
6436 | break | |
6437 | fi | |
2018939f | 6438 | rm -f conftest.err conftest.i conftest.$ac_ext |
067d23c9 KY |
6439 | |
6440 | done | |
6441 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2018939f | 6442 | rm -f conftest.i conftest.err conftest.$ac_ext |
067d23c9 KY |
6443 | if $ac_preproc_ok; then : |
6444 | ||
6445 | else | |
6446 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
6447 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2018939f | 6448 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
d6974efa | 6449 | See \`config.log' for more details" "$LINENO" 5; } |
067d23c9 KY |
6450 | fi |
6451 | ||
6452 | ac_ext=c | |
6453 | ac_cpp='$CPP $CPPFLAGS' | |
6454 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6455 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6456 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6457 | ||
067d23c9 KY |
6458 | |
6459 | if test "x$RANLIB" = x; then | |
6460 | if test -n "$ac_tool_prefix"; then | |
6461 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6462 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
6463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6464 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6974efa | 6465 | if ${ac_cv_prog_RANLIB+:} false; then : |
067d23c9 KY |
6466 | $as_echo_n "(cached) " >&6 |
6467 | else | |
6468 | if test -n "$RANLIB"; then | |
6469 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6470 | else | |
6471 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6472 | for as_dir in $PATH | |
6473 | do | |
6474 | IFS=$as_save_IFS | |
6475 | test -z "$as_dir" && as_dir=. | |
6476 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6477 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6478 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
6479 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6480 | break 2 | |
6481 | fi | |
6482 | done | |
6483 | done | |
6484 | IFS=$as_save_IFS | |
6485 | ||
6486 | fi | |
6487 | fi | |
6488 | RANLIB=$ac_cv_prog_RANLIB | |
6489 | if test -n "$RANLIB"; then | |
6490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
6491 | $as_echo "$RANLIB" >&6; } | |
6492 | else | |
6493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6494 | $as_echo "no" >&6; } | |
6495 | fi | |
6496 | ||
6497 | ||
6498 | fi | |
6499 | if test -z "$ac_cv_prog_RANLIB"; then | |
6500 | ac_ct_RANLIB=$RANLIB | |
6501 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6502 | set dummy ranlib; ac_word=$2 | |
6503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6504 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6974efa | 6505 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
067d23c9 KY |
6506 | $as_echo_n "(cached) " >&6 |
6507 | else | |
6508 | if test -n "$ac_ct_RANLIB"; then | |
6509 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6510 | else | |
6511 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6512 | for as_dir in $PATH | |
6513 | do | |
6514 | IFS=$as_save_IFS | |
6515 | test -z "$as_dir" && as_dir=. | |
6516 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6517 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6518 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
6519 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6520 | break 2 | |
6521 | fi | |
6522 | done | |
6523 | done | |
6524 | IFS=$as_save_IFS | |
6525 | ||
6526 | fi | |
6527 | fi | |
6528 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6529 | if test -n "$ac_ct_RANLIB"; then | |
6530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
6531 | $as_echo "$ac_ct_RANLIB" >&6; } | |
6532 | else | |
6533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6534 | $as_echo "no" >&6; } | |
6535 | fi | |
6536 | ||
6537 | if test "x$ac_ct_RANLIB" = x; then | |
6538 | RANLIB=":" | |
6539 | else | |
6540 | case $cross_compiling:$ac_tool_warned in | |
6541 | yes:) | |
6542 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6543 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6544 | ac_tool_warned=yes ;; | |
6545 | esac | |
6546 | RANLIB=$ac_ct_RANLIB | |
6547 | fi | |
6548 | else | |
6549 | RANLIB="$ac_cv_prog_RANLIB" | |
6550 | fi | |
6551 | ||
6552 | fi | |
6553 | ||
6554 | ## Although we're running on an amd64 kernel, we're actually compiling for | |
6555 | ## the x86 architecture. The user should probably have provided an | |
6556 | ## explicit --build to `configure', but if everything else than the kernel | |
6557 | ## is running in i386 mode, we can help them out. | |
6558 | if test "$machine" = "amdx86-64"; then | |
6559 | ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default" | |
d6974efa | 6560 | if test "x$ac_cv_have_decl_i386" = xyes; then : |
067d23c9 KY |
6561 | |
6562 | fi | |
6563 | ||
6564 | if test "$ac_cv_have_decl_i386" = "yes"; then | |
6565 | canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'` | |
6566 | machine=intel386 | |
6567 | machfile="m/${machine}.h" | |
6568 | fi | |
6569 | fi | |
6570 | ||
6571 | # Extract the first word of "install-info", so it can be a program name with args. | |
6572 | set dummy install-info; ac_word=$2 | |
6573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6574 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6974efa | 6575 | if ${ac_cv_path_INSTALL_INFO+:} false; then : |
067d23c9 KY |
6576 | $as_echo_n "(cached) " >&6 |
6577 | else | |
6578 | case $INSTALL_INFO in | |
6579 | [\\/]* | ?:[\\/]*) | |
6580 | ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. | |
6581 | ;; | |
6582 | *) | |
6583 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6584 | for as_dir in $PATH | |
6585 | do | |
6586 | IFS=$as_save_IFS | |
6587 | test -z "$as_dir" && as_dir=. | |
6588 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6589 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6590 | ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" | |
6591 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6592 | break 2 | |
6593 | fi | |
6594 | done | |
6595 | done | |
6596 | IFS=$as_save_IFS | |
6597 | ||
6598 | ;; | |
6599 | esac | |
6600 | fi | |
6601 | INSTALL_INFO=$ac_cv_path_INSTALL_INFO | |
6602 | if test -n "$INSTALL_INFO"; then | |
6603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5 | |
6604 | $as_echo "$INSTALL_INFO" >&6; } | |
6605 | else | |
6606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6607 | $as_echo "no" >&6; } | |
6608 | fi | |
6609 | ||
6610 | ||
6611 | # Extract the first word of "install-info", so it can be a program name with args. | |
6612 | set dummy install-info; ac_word=$2 | |
6613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6614 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6974efa | 6615 | if ${ac_cv_path_INSTALL_INFO+:} false; then : |
067d23c9 KY |
6616 | $as_echo_n "(cached) " >&6 |
6617 | else | |
6618 | case $INSTALL_INFO in | |
6619 | [\\/]* | ?:[\\/]*) | |
6620 | ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. | |
6621 | ;; | |
6622 | *) | |
6623 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6624 | for as_dir in /usr/sbin | |
6625 | do | |
6626 | IFS=$as_save_IFS | |
6627 | test -z "$as_dir" && as_dir=. | |
6628 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6629 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6630 | ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" | |
6631 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6632 | break 2 | |
6633 | fi | |
6634 | done | |
6635 | done | |
6636 | IFS=$as_save_IFS | |
6637 | ||
6638 | ;; | |
6639 | esac | |
6640 | fi | |
6641 | INSTALL_INFO=$ac_cv_path_INSTALL_INFO | |
6642 | if test -n "$INSTALL_INFO"; then | |
6643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5 | |
6644 | $as_echo "$INSTALL_INFO" >&6; } | |
6645 | else | |
6646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6647 | $as_echo "no" >&6; } | |
6648 | fi | |
6649 | ||
6650 | ||
6651 | # Extract the first word of "install-info", so it can be a program name with args. | |
6652 | set dummy install-info; ac_word=$2 | |
6653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6654 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6974efa | 6655 | if ${ac_cv_path_INSTALL_INFO+:} false; then : |
067d23c9 KY |
6656 | $as_echo_n "(cached) " >&6 |
6657 | else | |
6658 | case $INSTALL_INFO in | |
6659 | [\\/]* | ?:[\\/]*) | |
6660 | ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. | |
6661 | ;; | |
6662 | *) | |
6663 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6664 | for as_dir in /sbin | |
6665 | do | |
6666 | IFS=$as_save_IFS | |
6667 | test -z "$as_dir" && as_dir=. | |
6668 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6669 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6670 | ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" | |
6671 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6672 | break 2 | |
6673 | fi | |
6674 | done | |
6675 | done | |
6676 | IFS=$as_save_IFS | |
6677 | ||
6678 | test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":" | |
6679 | ;; | |
6680 | esac | |
6681 | fi | |
6682 | INSTALL_INFO=$ac_cv_path_INSTALL_INFO | |
6683 | if test -n "$INSTALL_INFO"; then | |
6684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5 | |
6685 | $as_echo "$INSTALL_INFO" >&6; } | |
6686 | else | |
6687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6688 | $as_echo "no" >&6; } | |
6689 | fi | |
6690 | ||
6691 | ||
6692 | # Extract the first word of "gzip", so it can be a program name with args. | |
6693 | set dummy gzip; ac_word=$2 | |
6694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6695 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6974efa | 6696 | if ${ac_cv_path_GZIP_PROG+:} false; then : |
067d23c9 KY |
6697 | $as_echo_n "(cached) " >&6 |
6698 | else | |
6699 | case $GZIP_PROG in | |
6700 | [\\/]* | ?:[\\/]*) | |
6701 | ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path. | |
6702 | ;; | |
6703 | *) | |
6704 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6705 | for as_dir in $PATH | |
6706 | do | |
6707 | IFS=$as_save_IFS | |
6708 | test -z "$as_dir" && as_dir=. | |
6709 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6710 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6711 | ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext" | |
6712 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6713 | break 2 | |
6714 | fi | |
6715 | done | |
6716 | done | |
6717 | IFS=$as_save_IFS | |
6718 | ||
6719 | ;; | |
6720 | esac | |
6721 | fi | |
6722 | GZIP_PROG=$ac_cv_path_GZIP_PROG | |
6723 | if test -n "$GZIP_PROG"; then | |
6724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5 | |
6725 | $as_echo "$GZIP_PROG" >&6; } | |
6726 | else | |
6727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6728 | $as_echo "no" >&6; } | |
6729 | fi | |
6730 | ||
6731 | ||
6732 | ||
6733 | ||
6734 | ## Need makeinfo >= 4.6 (?) to build the manuals. | |
6735 | # Extract the first word of "makeinfo", so it can be a program name with args. | |
6736 | set dummy makeinfo; ac_word=$2 | |
6737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6738 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6974efa | 6739 | if ${ac_cv_path_MAKEINFO+:} false; then : |
067d23c9 KY |
6740 | $as_echo_n "(cached) " >&6 |
6741 | else | |
6742 | case $MAKEINFO in | |
6743 | [\\/]* | ?:[\\/]*) | |
6744 | ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path. | |
6745 | ;; | |
6746 | *) | |
6747 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6748 | for as_dir in $PATH | |
6749 | do | |
6750 | IFS=$as_save_IFS | |
6751 | test -z "$as_dir" && as_dir=. | |
6752 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6753 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6754 | ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext" | |
6755 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6756 | break 2 | |
6757 | fi | |
6758 | done | |
6759 | done | |
6760 | IFS=$as_save_IFS | |
6761 | ||
6762 | test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no" | |
6763 | ;; | |
6764 | esac | |
6765 | fi | |
6766 | MAKEINFO=$ac_cv_path_MAKEINFO | |
6767 | if test -n "$MAKEINFO"; then | |
6768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 | |
6769 | $as_echo "$MAKEINFO" >&6; } | |
6770 | else | |
6771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6772 | $as_echo "no" >&6; } | |
6773 | fi | |
6774 | ||
6775 | ||
6776 | if test "$MAKEINFO" != "no" && \ | |
6777 | test x"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[6-9]|4\.[1-5][0-9]+)'`" = x; then | |
6778 | MAKEINFO=no | |
6779 | fi | |
6780 | ||
6781 | ## Makeinfo is unusual. For a released Emacs, the manuals are | |
6782 | ## pre-built, and not deleted by the normal clean rules. makeinfo is | |
6783 | ## therefore in the category of "special tools" not normally required, which | |
6784 | ## configure does not have to check for (eg autoconf itself). | |
6785 | ## In a Bazaar checkout on the other hand, the manuals are not included. | |
6786 | ## So makeinfo is a requirement to build from Bazaar, and configure | |
6787 | ## should test for it as it does for any other build requirement. | |
6788 | ## We use the presence of $srcdir/info/emacs to distinguish a release, | |
6789 | ## with pre-built manuals, from a Bazaar checkout. | |
96f129d5 GM |
6790 | HAVE_MAKEINFO=yes |
6791 | ||
067d23c9 | 6792 | if test "$MAKEINFO" = "no"; then |
96f129d5 | 6793 | MAKEINFO=makeinfo |
067d23c9 | 6794 | if test "x${with_makeinfo}" = "xno"; then |
96f129d5 | 6795 | HAVE_MAKEINFO=no |
067d23c9 | 6796 | elif test ! -e $srcdir/info/emacs; then |
2018939f | 6797 | as_fn_error $? "You do not seem to have makeinfo >= 4.6, and your |
067d23c9 KY |
6798 | source tree does not seem to have pre-built manuals in the \`info' directory. |
6799 | Either install a suitable version of makeinfo, or re-run configure | |
6800 | with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5 | |
6801 | fi | |
6802 | fi | |
6803 | ||
6804 | ||
96f129d5 | 6805 | |
067d23c9 KY |
6806 | if test x$GCC = xyes; then |
6807 | test "x$GCC_LINK_TEST_OPTIONS" != x && \ | |
6808 | ac_link="$ac_link $GCC_LINK_TEST_OPTIONS" | |
6809 | else | |
6810 | test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \ | |
6811 | ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS" | |
6812 | fi | |
6813 | ||
6814 | ||
6815 | late_LDFLAGS=$LDFLAGS | |
6816 | if test x$GCC = xyes; then | |
6817 | LDFLAGS="$LDFLAGS -Wl,-znocombreloc" | |
6818 | else | |
6819 | LDFLAGS="$LDFLAGS -znocombreloc" | |
6820 | fi | |
6821 | ||
6822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5 | |
6823 | $as_echo_n "checking for -znocombreloc... " >&6; } | |
6824 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6825 | /* end confdefs.h. */ | |
6826 | ||
6827 | int | |
6828 | main () | |
6829 | { | |
6830 | ||
6831 | ; | |
6832 | return 0; | |
6833 | } | |
6834 | _ACEOF | |
6835 | if ac_fn_c_try_link "$LINENO"; then : | |
6836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6837 | $as_echo "yes" >&6; } | |
6838 | else | |
6839 | LDFLAGS=$late_LDFLAGS | |
6840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6841 | $as_echo "no" >&6; } | |
6842 | fi | |
6843 | rm -f core conftest.err conftest.$ac_objext \ | |
6844 | conftest$ac_exeext conftest.$ac_ext | |
6845 | ||
6846 | ||
6847 | # The value of CPP is a quoted variable reference, so we need to do this | |
6848 | # to get its actual value... | |
6849 | CPP=`eval "echo $CPP"` | |
6850 | ||
6851 | ||
125c3718 | 6852 | test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no |
067d23c9 | 6853 | case "$opsys" in |
125c3718 PE |
6854 | your-opsys-here) CANNOT_DUMP=yes ;; |
6855 | esac | |
6856 | ||
6857 | test "$CANNOT_DUMP" = "yes" && \ | |
067d23c9 KY |
6858 | |
6859 | $as_echo "#define CANNOT_DUMP 1" >>confdefs.h | |
6860 | ||
125c3718 | 6861 | |
067d23c9 KY |
6862 | |
6863 | ||
6864 | ||
6865 | UNEXEC_OBJ=unexelf.o | |
6866 | case "$opsys" in | |
6867 | # MSDOS uses unexcoff.o | |
6868 | # MSWindows uses unexw32.o | |
6869 | aix4-2) | |
6870 | UNEXEC_OBJ=unexaix.o | |
6871 | ;; | |
6872 | cygwin) | |
6873 | UNEXEC_OBJ=unexcw.o | |
6874 | ;; | |
6875 | darwin) | |
6876 | UNEXEC_OBJ=unexmacosx.o | |
6877 | ;; | |
6878 | hpux10-20 | hpux11) | |
6879 | UNEXEC_OBJ=unexhp9k800.o | |
6880 | ;; | |
6881 | sol2-10) | |
6882 | # Use the Solaris dldump() function, called from unexsol.c, to dump | |
6883 | # emacs, instead of the generic ELF dump code found in unexelf.c. | |
6884 | # The resulting binary has a complete symbol table, and is better | |
6885 | # for debugging and other observability tools (debuggers, pstack, etc). | |
6886 | # | |
6887 | # If you encounter a problem using dldump(), please consider sending | |
6888 | # a message to the OpenSolaris tools-linking mailing list: | |
6889 | # http://mail.opensolaris.org/mailman/listinfo/tools-linking | |
6890 | # | |
6891 | # It is likely that dldump() works with older Solaris too, but this has | |
6892 | # not been tested, so for now this change is for Solaris 10 or newer. | |
6893 | UNEXEC_OBJ=unexsol.o | |
6894 | ;; | |
6895 | esac | |
6896 | ||
6897 | LD_SWITCH_SYSTEM= | |
6898 | case "$opsys" in | |
6899 | freebsd) | |
6900 | ## Let `ld' find image libs and similar things in /usr/local/lib. | |
6901 | ## The system compiler, GCC, has apparently been modified to not | |
6902 | ## look there, contrary to what a stock GCC would do. | |
6903 | LD_SWITCH_SYSTEM=-L/usr/local/lib | |
6904 | ;; | |
6905 | ||
6906 | gnu-linux) | |
6907 | ## cpp test was "ifdef __mips__", but presumably this is equivalent... | |
d6a003a8 | 6908 | case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac |
067d23c9 KY |
6909 | ;; |
6910 | ||
6911 | netbsd) | |
6912 | LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib" | |
6913 | ;; | |
6914 | ||
6915 | openbsd) | |
6916 | ## Han Boetes <han@mijncomputer.nl> says this is necessary, | |
6917 | ## otherwise Emacs dumps core on elf systems. | |
6918 | LD_SWITCH_SYSTEM="-Z" | |
6919 | ;; | |
6920 | esac | |
6921 | ||
6922 | ||
6923 | ac_link="$ac_link $LD_SWITCH_SYSTEM" | |
6924 | ||
6925 | ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX, | |
6926 | ## which has not been defined yet. When this was handled with cpp, | |
6927 | ## it was expanded to null when configure sourced the s/*.h file. | |
6928 | ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles. | |
6929 | ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS | |
6930 | ## (or somesuch), but because it is supposed to go at the _front_ | |
6931 | ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way. | |
6932 | ## Compare with the gnu-linux case below, which added to the end | |
6933 | ## of LD_SWITCH_SYSTEM, and so can instead go at the front of | |
6934 | ## LD_SWITCH_SYSTEM_TEMACS. | |
6935 | case "$opsys" in | |
6936 | netbsd|openbsd) | |
6937 | ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R. | |
6938 | LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;; | |
6939 | esac | |
6940 | ||
6941 | ||
6942 | C_SWITCH_MACHINE= | |
6943 | if test "$machine" = "alpha"; then | |
6944 | ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default" | |
d6974efa | 6945 | if test "x$ac_cv_have_decl___ELF__" = xyes; then : |
067d23c9 KY |
6946 | |
6947 | fi | |
6948 | ||
6949 | if test "$ac_cv_have_decl___ELF__" = "yes"; then | |
6950 | ## With ELF, make sure that all common symbols get allocated to in the | |
6951 | ## data section. Otherwise, the dump of temacs may miss variables in | |
6952 | ## the shared library that have been initialized. For example, with | |
6953 | ## GNU libc, __malloc_initialized would normally be resolved to the | |
6954 | ## shared library's .bss section, which is fatal. | |
6955 | if test "x$GCC" = "xyes"; then | |
6956 | C_SWITCH_MACHINE="-fno-common" | |
6957 | else | |
2018939f | 6958 | as_fn_error $? "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5 |
067d23c9 KY |
6959 | fi |
6960 | else | |
6961 | UNEXEC_OBJ=unexalpha.o | |
6962 | fi | |
6963 | fi | |
6964 | ||
6965 | ||
6966 | ||
6967 | ||
6968 | C_SWITCH_SYSTEM= | |
6969 | ## Some programs in src produce warnings saying certain subprograms | |
6970 | ## are too complex and need a MAXMEM value greater than 2000 for | |
6971 | ## additional optimization. --nils@exp-math.uni-essen.de | |
6972 | test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \ | |
6973 | C_SWITCH_SYSTEM="-ma -qmaxmem=4000" | |
6974 | ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems. | |
6975 | ## It is redundant in glibc2, since we define _GNU_SOURCE. | |
6976 | ||
6977 | ||
6978 | ||
6979 | LIBS_SYSTEM= | |
6980 | case "$opsys" in | |
6981 | ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2. | |
6982 | aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;; | |
6983 | ||
6984 | freebsd) LIBS_SYSTEM="-lutil" ;; | |
6985 | ||
6986 | hpux*) LIBS_SYSTEM="-l:libdld.sl" ;; | |
6987 | ||
1f5d53eb | 6988 | sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;; |
067d23c9 KY |
6989 | |
6990 | ## Motif needs -lgen. | |
6991 | unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;; | |
6992 | esac | |
6993 | ||
6994 | ||
6995 | ||
6996 | ### Make sure subsequent tests use flags consistent with the build flags. | |
6997 | ||
6998 | if test x"${OVERRIDE_CPPFLAGS}" != x; then | |
6999 | CPPFLAGS="${OVERRIDE_CPPFLAGS}" | |
7000 | else | |
7001 | CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS" | |
7002 | fi | |
7003 | ||
067d23c9 KY |
7004 | # Check whether --enable-largefile was given. |
7005 | if test "${enable_largefile+set}" = set; then : | |
7006 | enableval=$enable_largefile; | |
7007 | fi | |
7008 | ||
7009 | if test "$enable_largefile" != no; then | |
7010 | ||
7011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 | |
7012 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | |
d6974efa | 7013 | if ${ac_cv_sys_largefile_CC+:} false; then : |
067d23c9 KY |
7014 | $as_echo_n "(cached) " >&6 |
7015 | else | |
7016 | ac_cv_sys_largefile_CC=no | |
7017 | if test "$GCC" != yes; then | |
7018 | ac_save_CC=$CC | |
7019 | while :; do | |
7020 | # IRIX 6.2 and later do not support large files by default, | |
7021 | # so use the C compiler's -n32 option if that helps. | |
7022 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7023 | /* end confdefs.h. */ | |
7024 | #include <sys/types.h> | |
7025 | /* Check that off_t can represent 2**63 - 1 correctly. | |
7026 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
7027 | since some C++ compilers masquerading as C compilers | |
7028 | incorrectly reject 9223372036854775807. */ | |
7029 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
7030 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
7031 | && LARGE_OFF_T % 2147483647 == 1) | |
7032 | ? 1 : -1]; | |
7033 | int | |
7034 | main () | |
7035 | { | |
7036 | ||
7037 | ; | |
7038 | return 0; | |
7039 | } | |
7040 | _ACEOF | |
7041 | if ac_fn_c_try_compile "$LINENO"; then : | |
7042 | break | |
7043 | fi | |
7044 | rm -f core conftest.err conftest.$ac_objext | |
7045 | CC="$CC -n32" | |
7046 | if ac_fn_c_try_compile "$LINENO"; then : | |
7047 | ac_cv_sys_largefile_CC=' -n32'; break | |
7048 | fi | |
7049 | rm -f core conftest.err conftest.$ac_objext | |
7050 | break | |
7051 | done | |
7052 | CC=$ac_save_CC | |
7053 | rm -f conftest.$ac_ext | |
7054 | fi | |
7055 | fi | |
7056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | |
7057 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | |
7058 | if test "$ac_cv_sys_largefile_CC" != no; then | |
7059 | CC=$CC$ac_cv_sys_largefile_CC | |
7060 | fi | |
7061 | ||
7062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
7063 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
d6974efa | 7064 | if ${ac_cv_sys_file_offset_bits+:} false; then : |
067d23c9 KY |
7065 | $as_echo_n "(cached) " >&6 |
7066 | else | |
7067 | while :; do | |
7068 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7069 | /* end confdefs.h. */ | |
7070 | #include <sys/types.h> | |
7071 | /* Check that off_t can represent 2**63 - 1 correctly. | |
7072 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
7073 | since some C++ compilers masquerading as C compilers | |
7074 | incorrectly reject 9223372036854775807. */ | |
7075 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
7076 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
7077 | && LARGE_OFF_T % 2147483647 == 1) | |
7078 | ? 1 : -1]; | |
7079 | int | |
7080 | main () | |
7081 | { | |
7082 | ||
7083 | ; | |
7084 | return 0; | |
7085 | } | |
7086 | _ACEOF | |
7087 | if ac_fn_c_try_compile "$LINENO"; then : | |
7088 | ac_cv_sys_file_offset_bits=no; break | |
7089 | fi | |
7090 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7091 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7092 | /* end confdefs.h. */ | |
7093 | #define _FILE_OFFSET_BITS 64 | |
7094 | #include <sys/types.h> | |
7095 | /* Check that off_t can represent 2**63 - 1 correctly. | |
7096 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
7097 | since some C++ compilers masquerading as C compilers | |
7098 | incorrectly reject 9223372036854775807. */ | |
7099 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
7100 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
7101 | && LARGE_OFF_T % 2147483647 == 1) | |
7102 | ? 1 : -1]; | |
7103 | int | |
7104 | main () | |
7105 | { | |
7106 | ||
7107 | ; | |
7108 | return 0; | |
7109 | } | |
7110 | _ACEOF | |
7111 | if ac_fn_c_try_compile "$LINENO"; then : | |
7112 | ac_cv_sys_file_offset_bits=64; break | |
7113 | fi | |
7114 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7115 | ac_cv_sys_file_offset_bits=unknown | |
7116 | break | |
7117 | done | |
7118 | fi | |
7119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 | |
7120 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
7121 | case $ac_cv_sys_file_offset_bits in #( | |
7122 | no | unknown) ;; | |
7123 | *) | |
7124 | cat >>confdefs.h <<_ACEOF | |
7125 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
7126 | _ACEOF | |
7127 | ;; | |
7128 | esac | |
7129 | rm -rf conftest* | |
7130 | if test $ac_cv_sys_file_offset_bits = unknown; then | |
7131 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | |
7132 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
d6974efa | 7133 | if ${ac_cv_sys_large_files+:} false; then : |
067d23c9 KY |
7134 | $as_echo_n "(cached) " >&6 |
7135 | else | |
7136 | while :; do | |
7137 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7138 | /* end confdefs.h. */ | |
7139 | #include <sys/types.h> | |
7140 | /* Check that off_t can represent 2**63 - 1 correctly. | |
7141 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
7142 | since some C++ compilers masquerading as C compilers | |
7143 | incorrectly reject 9223372036854775807. */ | |
7144 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
7145 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
7146 | && LARGE_OFF_T % 2147483647 == 1) | |
7147 | ? 1 : -1]; | |
7148 | int | |
7149 | main () | |
7150 | { | |
7151 | ||
7152 | ; | |
7153 | return 0; | |
7154 | } | |
7155 | _ACEOF | |
7156 | if ac_fn_c_try_compile "$LINENO"; then : | |
7157 | ac_cv_sys_large_files=no; break | |
7158 | fi | |
7159 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7160 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7161 | /* end confdefs.h. */ | |
7162 | #define _LARGE_FILES 1 | |
7163 | #include <sys/types.h> | |
7164 | /* Check that off_t can represent 2**63 - 1 correctly. | |
7165 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
7166 | since some C++ compilers masquerading as C compilers | |
7167 | incorrectly reject 9223372036854775807. */ | |
7168 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
7169 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
7170 | && LARGE_OFF_T % 2147483647 == 1) | |
7171 | ? 1 : -1]; | |
7172 | int | |
7173 | main () | |
7174 | { | |
7175 | ||
7176 | ; | |
7177 | return 0; | |
7178 | } | |
7179 | _ACEOF | |
7180 | if ac_fn_c_try_compile "$LINENO"; then : | |
7181 | ac_cv_sys_large_files=1; break | |
7182 | fi | |
7183 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7184 | ac_cv_sys_large_files=unknown | |
7185 | break | |
7186 | done | |
7187 | fi | |
7188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 | |
7189 | $as_echo "$ac_cv_sys_large_files" >&6; } | |
7190 | case $ac_cv_sys_large_files in #( | |
7191 | no | unknown) ;; | |
7192 | *) | |
7193 | cat >>confdefs.h <<_ACEOF | |
7194 | #define _LARGE_FILES $ac_cv_sys_large_files | |
7195 | _ACEOF | |
7196 | ;; | |
7197 | esac | |
7198 | rm -rf conftest* | |
7199 | fi | |
7200 | fi | |
7201 | ||
7202 | ||
7203 | ||
7204 | ## If user specified a crt-dir, use that unconditionally. | |
7205 | if test "X$CRT_DIR" = "X"; then | |
7206 | ||
7207 | case "$canonical" in | |
7208 | x86_64-*-linux-gnu* | s390x-*-linux-gnu*) | |
7209 | ## On x86-64 and s390x GNU/Linux distributions, the standard library | |
7210 | ## can be in a variety of places. We only try /usr/lib64 and /usr/lib. | |
7211 | ## For anything else (eg /usr/lib32), it is up the user to specify | |
7212 | ## the location (bug#5655). | |
7213 | ## Test for crtn.o, not just the directory, because sometimes the | |
7214 | ## directory exists but does not have the relevant files (bug#1287). | |
7215 | ## FIXME better to test for binary compatibility somehow. | |
7216 | test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64 | |
7217 | ;; | |
7218 | ||
7219 | powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;; | |
7220 | esac | |
7221 | ||
7222 | case "$opsys" in | |
7223 | hpux10-20) CRT_DIR=/lib ;; | |
7224 | esac | |
7225 | ||
7226 | ## Default is /usr/lib. | |
7227 | test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib | |
7228 | ||
7229 | else | |
7230 | ||
7231 | ## Some platforms don't use any of these files, so it is not | |
7232 | ## appropriate to put this test outside the if block. | |
7233 | test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \ | |
2018939f | 7234 | as_fn_error $? "crt*.o not found in specified location." "$LINENO" 5 |
067d23c9 KY |
7235 | |
7236 | fi | |
7237 | ||
7238 | ||
7239 | ||
7240 | LIB_MATH=-lm | |
7241 | LIB_STANDARD= | |
7242 | START_FILES= | |
7243 | ||
7244 | case $opsys in | |
7245 | cygwin ) | |
7246 | LIB_MATH= | |
7247 | START_FILES='pre-crt0.o' | |
7248 | ;; | |
7249 | darwin ) | |
7250 | ## Adding -lm confuses the dynamic linker, so omit it. | |
7251 | LIB_MATH= | |
7252 | START_FILES='pre-crt0.o' | |
7253 | ;; | |
7254 | freebsd ) | |
7255 | LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o' | |
7256 | START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o' | |
7257 | ;; | |
7258 | gnu-linux | gnu-kfreebsd ) | |
7259 | LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o' | |
7260 | START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o' | |
7261 | ;; | |
7262 | hpux10-20 | hpux11 ) | |
7263 | LIB_STANDARD=-lc | |
7264 | START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o' | |
7265 | ;; | |
7266 | netbsd | openbsd ) | |
7267 | if test -f $CRT_DIR/crti.o; then | |
7268 | LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o' | |
7269 | START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o' | |
7270 | else | |
7271 | LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o' | |
7272 | START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o' | |
7273 | fi | |
7274 | ;; | |
7275 | esac | |
7276 | ||
7277 | ||
7278 | ||
7279 | ||
7280 | ||
7281 | ||
7282 | ||
7283 | if test "${with_sound}" != "no"; then | |
7284 | # Sound support for GNU/Linux and the free BSDs. | |
7285 | for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h | |
7286 | do : | |
7287 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7288 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
2018939f | 7289 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
067d23c9 KY |
7290 | cat >>confdefs.h <<_ACEOF |
7291 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7292 | _ACEOF | |
7293 | have_sound_header=yes | |
7294 | fi | |
7295 | ||
7296 | done | |
7297 | ||
7298 | # Emulation library used on NetBSD. | |
7299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5 | |
7300 | $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; } | |
d6974efa | 7301 | if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then : |
067d23c9 KY |
7302 | $as_echo_n "(cached) " >&6 |
7303 | else | |
7304 | ac_check_lib_save_LIBS=$LIBS | |
7305 | LIBS="-lossaudio $LIBS" | |
7306 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7307 | /* end confdefs.h. */ | |
7308 | ||
7309 | /* Override any GCC internal prototype to avoid an error. | |
7310 | Use char because int might match the return type of a GCC | |
7311 | builtin and then its argument prototype would still apply. */ | |
7312 | #ifdef __cplusplus | |
7313 | extern "C" | |
7314 | #endif | |
7315 | char _oss_ioctl (); | |
7316 | int | |
7317 | main () | |
7318 | { | |
7319 | return _oss_ioctl (); | |
7320 | ; | |
7321 | return 0; | |
7322 | } | |
7323 | _ACEOF | |
7324 | if ac_fn_c_try_link "$LINENO"; then : | |
7325 | ac_cv_lib_ossaudio__oss_ioctl=yes | |
7326 | else | |
7327 | ac_cv_lib_ossaudio__oss_ioctl=no | |
7328 | fi | |
7329 | rm -f core conftest.err conftest.$ac_objext \ | |
7330 | conftest$ac_exeext conftest.$ac_ext | |
7331 | LIBS=$ac_check_lib_save_LIBS | |
7332 | fi | |
7333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 | |
7334 | $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; } | |
d6974efa | 7335 | if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then : |
067d23c9 KY |
7336 | LIBSOUND=-lossaudio |
7337 | else | |
7338 | LIBSOUND= | |
7339 | fi | |
7340 | ||
7341 | ||
7342 | ||
7343 | ALSA_REQUIRED=1.0.0 | |
7344 | ALSA_MODULES="alsa >= $ALSA_REQUIRED" | |
7345 | ||
7346 | succeeded=no | |
7347 | ||
7348 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
7349 | set dummy pkg-config; ac_word=$2 | |
7350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7351 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6974efa | 7352 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
067d23c9 KY |
7353 | $as_echo_n "(cached) " >&6 |
7354 | else | |
7355 | case $PKG_CONFIG in | |
7356 | [\\/]* | ?:[\\/]*) | |
7357 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
7358 | ;; | |
7359 | *) | |
7360 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7361 | for as_dir in $PATH | |
7362 | do | |
7363 | IFS=$as_save_IFS | |
7364 | test -z "$as_dir" && as_dir=. | |
7365 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7366 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7367 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
7368 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7369 | break 2 | |
7370 | fi | |
7371 | done | |
7372 | done | |
7373 | IFS=$as_save_IFS | |
7374 | ||
7375 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
7376 | ;; | |
7377 | esac | |
7378 | fi | |
7379 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
7380 | if test -n "$PKG_CONFIG"; then | |
7381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
7382 | $as_echo "$PKG_CONFIG" >&6; } | |
7383 | else | |
7384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7385 | $as_echo "no" >&6; } | |
7386 | fi | |
7387 | ||
7388 | ||
7389 | ||
7390 | if test "$PKG_CONFIG" = "no" ; then | |
7391 | HAVE_ALSA=no | |
7392 | else | |
7393 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
7394 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
7395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5 | |
7396 | $as_echo_n "checking for $ALSA_MODULES... " >&6; } | |
7397 | ||
7398 | if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then | |
7399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7400 | $as_echo "yes" >&6; } | |
7401 | succeeded=yes | |
7402 | ||
7403 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5 | |
7404 | $as_echo_n "checking ALSA_CFLAGS... " >&6; } | |
7405 | ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'` | |
7406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5 | |
7407 | $as_echo "$ALSA_CFLAGS" >&6; } | |
7408 | ||
7409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5 | |
7410 | $as_echo_n "checking ALSA_LIBS... " >&6; } | |
7411 | ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'` | |
7412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5 | |
7413 | $as_echo "$ALSA_LIBS" >&6; } | |
7414 | else | |
7415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7416 | $as_echo "no" >&6; } | |
7417 | ALSA_CFLAGS="" | |
7418 | ALSA_LIBS="" | |
7419 | ## If we have a custom action on failure, don't print errors, but | |
7420 | ## do set a variable so people can do so. | |
7421 | ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"` | |
7422 | ||
7423 | fi | |
7424 | ||
7425 | ||
7426 | ||
7427 | else | |
7428 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
7429 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
7430 | fi | |
7431 | fi | |
7432 | ||
7433 | if test $succeeded = yes; then | |
7434 | HAVE_ALSA=yes | |
7435 | else | |
7436 | HAVE_ALSA=no | |
7437 | fi | |
7438 | ||
7439 | if test $HAVE_ALSA = yes; then | |
7440 | SAVE_CFLAGS="$CFLAGS" | |
7441 | SAVE_LDFLAGS="$LDFLAGS" | |
7442 | CFLAGS="$ALSA_CFLAGS $CFLAGS" | |
7443 | LDFLAGS="$ALSA_LIBS $LDFLAGS" | |
7444 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7445 | /* end confdefs.h. */ | |
7446 | #include <asoundlib.h> | |
7447 | int | |
7448 | main () | |
7449 | { | |
7450 | snd_lib_error_set_handler (0); | |
7451 | ; | |
7452 | return 0; | |
7453 | } | |
7454 | _ACEOF | |
7455 | if ac_fn_c_try_compile "$LINENO"; then : | |
7456 | emacs_alsa_normal=yes | |
7457 | else | |
7458 | emacs_alsa_normal=no | |
7459 | fi | |
7460 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7461 | if test "$emacs_alsa_normal" != yes; then | |
7462 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7463 | /* end confdefs.h. */ | |
7464 | #include <alsa/asoundlib.h> | |
7465 | int | |
7466 | main () | |
7467 | { | |
7468 | snd_lib_error_set_handler (0); | |
7469 | ; | |
7470 | return 0; | |
7471 | } | |
7472 | _ACEOF | |
7473 | if ac_fn_c_try_compile "$LINENO"; then : | |
7474 | emacs_alsa_subdir=yes | |
7475 | else | |
7476 | emacs_alsa_subdir=no | |
7477 | fi | |
7478 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7479 | if test "$emacs_alsa_subdir" != yes; then | |
2018939f | 7480 | as_fn_error $? "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5 |
067d23c9 KY |
7481 | fi |
7482 | ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE" | |
7483 | fi | |
7484 | ||
7485 | CFLAGS="$SAVE_CFLAGS" | |
7486 | LDFLAGS="$SAVE_LDFLAGS" | |
7487 | LIBSOUND="$LIBSOUND $ALSA_LIBS" | |
7488 | CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS" | |
7489 | ||
7490 | $as_echo "#define HAVE_ALSA 1" >>confdefs.h | |
7491 | ||
7492 | fi | |
7493 | ||
7494 | if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then | |
7495 | case "$opsys" in | |
7496 | gnu-linux|freebsd|netbsd) | |
7497 | ||
7498 | $as_echo "#define HAVE_SOUND 1" >>confdefs.h | |
7499 | ||
7500 | ;; | |
7501 | esac | |
7502 | fi | |
7503 | ||
7504 | ||
7505 | fi | |
7506 | ||
7507 | for ac_header in sys/select.h sys/time.h unistd.h utime.h \ | |
7508 | linux/version.h sys/systeminfo.h limits.h \ | |
7509 | stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \ | |
7510 | sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \ | |
7511 | sys/utsname.h pwd.h utmp.h dirent.h util.h | |
7512 | do : | |
7513 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7514 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
2018939f | 7515 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
067d23c9 KY |
7516 | cat >>confdefs.h <<_ACEOF |
7517 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7518 | _ACEOF | |
7519 | ||
7520 | fi | |
7521 | ||
7522 | done | |
7523 | ||
7524 | ||
7525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5 | |
7526 | $as_echo_n "checking if personality LINUX32 can be set... " >&6; } | |
7527 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7528 | /* end confdefs.h. */ | |
7529 | #include <sys/personality.h> | |
7530 | int | |
7531 | main () | |
7532 | { | |
7533 | personality (PER_LINUX32) | |
7534 | ; | |
7535 | return 0; | |
7536 | } | |
7537 | _ACEOF | |
7538 | if ac_fn_c_try_compile "$LINENO"; then : | |
7539 | emacs_cv_personality_linux32=yes | |
7540 | else | |
7541 | emacs_cv_personality_linux32=no | |
7542 | fi | |
7543 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5 | |
7545 | $as_echo "$emacs_cv_personality_linux32" >&6; } | |
7546 | ||
7547 | if test $emacs_cv_personality_linux32 = yes; then | |
7548 | ||
7549 | $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h | |
7550 | ||
7551 | fi | |
7552 | ||
7553 | for ac_header in term.h | |
7554 | do : | |
7555 | ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h" | |
d6974efa | 7556 | if test "x$ac_cv_header_term_h" = xyes; then : |
067d23c9 KY |
7557 | cat >>confdefs.h <<_ACEOF |
7558 | #define HAVE_TERM_H 1 | |
7559 | _ACEOF | |
7560 | ||
7561 | fi | |
7562 | ||
7563 | done | |
7564 | ||
7565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
7566 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
d6974efa | 7567 | if ${ac_cv_header_stdc+:} false; then : |
067d23c9 KY |
7568 | $as_echo_n "(cached) " >&6 |
7569 | else | |
7570 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7571 | /* end confdefs.h. */ | |
7572 | #include <stdlib.h> | |
7573 | #include <stdarg.h> | |
7574 | #include <string.h> | |
7575 | #include <float.h> | |
7576 | ||
7577 | int | |
7578 | main () | |
7579 | { | |
7580 | ||
7581 | ; | |
7582 | return 0; | |
7583 | } | |
7584 | _ACEOF | |
7585 | if ac_fn_c_try_compile "$LINENO"; then : | |
7586 | ac_cv_header_stdc=yes | |
7587 | else | |
7588 | ac_cv_header_stdc=no | |
7589 | fi | |
7590 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7591 | ||
7592 | if test $ac_cv_header_stdc = yes; then | |
7593 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
7594 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7595 | /* end confdefs.h. */ | |
7596 | #include <string.h> | |
7597 | ||
7598 | _ACEOF | |
7599 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7600 | $EGREP "memchr" >/dev/null 2>&1; then : | |
7601 | ||
7602 | else | |
7603 | ac_cv_header_stdc=no | |
7604 | fi | |
7605 | rm -f conftest* | |
7606 | ||
7607 | fi | |
7608 | ||
7609 | if test $ac_cv_header_stdc = yes; then | |
7610 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
7611 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7612 | /* end confdefs.h. */ | |
7613 | #include <stdlib.h> | |
7614 | ||
7615 | _ACEOF | |
7616 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7617 | $EGREP "free" >/dev/null 2>&1; then : | |
7618 | ||
7619 | else | |
7620 | ac_cv_header_stdc=no | |
7621 | fi | |
7622 | rm -f conftest* | |
7623 | ||
7624 | fi | |
7625 | ||
7626 | if test $ac_cv_header_stdc = yes; then | |
7627 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
7628 | if test "$cross_compiling" = yes; then : | |
7629 | : | |
7630 | else | |
7631 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7632 | /* end confdefs.h. */ | |
7633 | #include <ctype.h> | |
7634 | #include <stdlib.h> | |
7635 | #if ((' ' & 0x0FF) == 0x020) | |
7636 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
7637 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
7638 | #else | |
7639 | # define ISLOWER(c) \ | |
7640 | (('a' <= (c) && (c) <= 'i') \ | |
7641 | || ('j' <= (c) && (c) <= 'r') \ | |
7642 | || ('s' <= (c) && (c) <= 'z')) | |
7643 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
7644 | #endif | |
7645 | ||
7646 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
7647 | int | |
7648 | main () | |
7649 | { | |
7650 | int i; | |
7651 | for (i = 0; i < 256; i++) | |
7652 | if (XOR (islower (i), ISLOWER (i)) | |
7653 | || toupper (i) != TOUPPER (i)) | |
7654 | return 2; | |
7655 | return 0; | |
7656 | } | |
7657 | _ACEOF | |
7658 | if ac_fn_c_try_run "$LINENO"; then : | |
7659 | ||
7660 | else | |
7661 | ac_cv_header_stdc=no | |
7662 | fi | |
7663 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
7664 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
7665 | fi | |
7666 | ||
7667 | fi | |
7668 | fi | |
7669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
7670 | $as_echo "$ac_cv_header_stdc" >&6; } | |
7671 | if test $ac_cv_header_stdc = yes; then | |
7672 | ||
7673 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
7674 | ||
7675 | fi | |
7676 | ||
7677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 | |
7678 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | |
d6974efa | 7679 | if ${ac_cv_header_time+:} false; then : |
067d23c9 KY |
7680 | $as_echo_n "(cached) " >&6 |
7681 | else | |
7682 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7683 | /* end confdefs.h. */ | |
7684 | #include <sys/types.h> | |
7685 | #include <sys/time.h> | |
7686 | #include <time.h> | |
7687 | ||
7688 | int | |
7689 | main () | |
7690 | { | |
7691 | if ((struct tm *) 0) | |
7692 | return 0; | |
7693 | ; | |
7694 | return 0; | |
7695 | } | |
7696 | _ACEOF | |
7697 | if ac_fn_c_try_compile "$LINENO"; then : | |
7698 | ac_cv_header_time=yes | |
7699 | else | |
7700 | ac_cv_header_time=no | |
7701 | fi | |
7702 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7703 | fi | |
7704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 | |
7705 | $as_echo "$ac_cv_header_time" >&6; } | |
7706 | if test $ac_cv_header_time = yes; then | |
7707 | ||
7708 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h | |
7709 | ||
7710 | fi | |
7711 | ||
7712 | ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default" | |
d6974efa | 7713 | if test "x$ac_cv_have_decl_sys_siglist" = xyes; then : |
067d23c9 KY |
7714 | ac_have_decl=1 |
7715 | else | |
7716 | ac_have_decl=0 | |
7717 | fi | |
7718 | ||
7719 | cat >>confdefs.h <<_ACEOF | |
7720 | #define HAVE_DECL_SYS_SIGLIST $ac_have_decl | |
7721 | _ACEOF | |
7722 | ||
7723 | if test $ac_cv_have_decl_sys_siglist != yes; then | |
7724 | # For Tru64, at least: | |
7725 | ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default" | |
d6974efa | 7726 | if test "x$ac_cv_have_decl___sys_siglist" = xyes; then : |
067d23c9 KY |
7727 | ac_have_decl=1 |
7728 | else | |
7729 | ac_have_decl=0 | |
7730 | fi | |
7731 | ||
7732 | cat >>confdefs.h <<_ACEOF | |
7733 | #define HAVE_DECL___SYS_SIGLIST $ac_have_decl | |
7734 | _ACEOF | |
7735 | ||
7736 | if test $ac_cv_have_decl___sys_siglist = yes; then | |
7737 | ||
7738 | $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h | |
7739 | ||
7740 | fi | |
7741 | fi | |
7742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 | |
7743 | $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } | |
d6974efa | 7744 | if ${ac_cv_header_sys_wait_h+:} false; then : |
067d23c9 KY |
7745 | $as_echo_n "(cached) " >&6 |
7746 | else | |
7747 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7748 | /* end confdefs.h. */ | |
7749 | #include <sys/types.h> | |
7750 | #include <sys/wait.h> | |
7751 | #ifndef WEXITSTATUS | |
7752 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) | |
7753 | #endif | |
7754 | #ifndef WIFEXITED | |
7755 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
7756 | #endif | |
7757 | ||
7758 | int | |
7759 | main () | |
7760 | { | |
7761 | int s; | |
7762 | wait (&s); | |
7763 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
7764 | ; | |
7765 | return 0; | |
7766 | } | |
7767 | _ACEOF | |
7768 | if ac_fn_c_try_compile "$LINENO"; then : | |
7769 | ac_cv_header_sys_wait_h=yes | |
7770 | else | |
7771 | ac_cv_header_sys_wait_h=no | |
7772 | fi | |
7773 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7774 | fi | |
7775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 | |
7776 | $as_echo "$ac_cv_header_sys_wait_h" >&6; } | |
7777 | if test $ac_cv_header_sys_wait_h = yes; then | |
7778 | ||
7779 | $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h | |
7780 | ||
7781 | fi | |
7782 | ||
7783 | ||
7784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5 | |
7785 | $as_echo_n "checking for struct utimbuf... " >&6; } | |
d6974efa | 7786 | if ${emacs_cv_struct_utimbuf+:} false; then : |
067d23c9 KY |
7787 | $as_echo_n "(cached) " >&6 |
7788 | else | |
7789 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7790 | /* end confdefs.h. */ | |
7791 | #ifdef TIME_WITH_SYS_TIME | |
7792 | #include <sys/time.h> | |
7793 | #include <time.h> | |
7794 | #else | |
7795 | #ifdef HAVE_SYS_TIME_H | |
7796 | #include <sys/time.h> | |
7797 | #else | |
7798 | #include <time.h> | |
7799 | #endif | |
7800 | #endif | |
7801 | #ifdef HAVE_UTIME_H | |
7802 | #include <utime.h> | |
7803 | #endif | |
7804 | int | |
7805 | main () | |
7806 | { | |
7807 | static struct utimbuf x; x.actime = x.modtime; | |
7808 | ; | |
7809 | return 0; | |
7810 | } | |
7811 | _ACEOF | |
7812 | if ac_fn_c_try_compile "$LINENO"; then : | |
7813 | emacs_cv_struct_utimbuf=yes | |
7814 | else | |
7815 | emacs_cv_struct_utimbuf=no | |
7816 | fi | |
7817 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7818 | fi | |
7819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5 | |
7820 | $as_echo "$emacs_cv_struct_utimbuf" >&6; } | |
7821 | if test $emacs_cv_struct_utimbuf = yes; then | |
7822 | ||
7823 | $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h | |
7824 | ||
7825 | fi | |
7826 | ||
7827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 | |
7828 | $as_echo_n "checking return type of signal handlers... " >&6; } | |
d6974efa | 7829 | if ${ac_cv_type_signal+:} false; then : |
067d23c9 KY |
7830 | $as_echo_n "(cached) " >&6 |
7831 | else | |
7832 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7833 | /* end confdefs.h. */ | |
7834 | #include <sys/types.h> | |
7835 | #include <signal.h> | |
7836 | ||
7837 | int | |
7838 | main () | |
7839 | { | |
7840 | return *(signal (0, 0)) (0) == 1; | |
7841 | ; | |
7842 | return 0; | |
7843 | } | |
7844 | _ACEOF | |
7845 | if ac_fn_c_try_compile "$LINENO"; then : | |
7846 | ac_cv_type_signal=int | |
7847 | else | |
7848 | ac_cv_type_signal=void | |
7849 | fi | |
7850 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7851 | fi | |
7852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 | |
7853 | $as_echo "$ac_cv_type_signal" >&6; } | |
7854 | ||
7855 | cat >>confdefs.h <<_ACEOF | |
7856 | #define RETSIGTYPE $ac_cv_type_signal | |
7857 | _ACEOF | |
7858 | ||
7859 | ||
7860 | ||
7861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5 | |
7862 | $as_echo_n "checking for speed_t... " >&6; } | |
d6974efa | 7863 | if ${emacs_cv_speed_t+:} false; then : |
067d23c9 KY |
7864 | $as_echo_n "(cached) " >&6 |
7865 | else | |
7866 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7867 | /* end confdefs.h. */ | |
7868 | #include <termios.h> | |
7869 | int | |
7870 | main () | |
7871 | { | |
7872 | speed_t x = 1; | |
7873 | ; | |
7874 | return 0; | |
7875 | } | |
7876 | _ACEOF | |
7877 | if ac_fn_c_try_compile "$LINENO"; then : | |
7878 | emacs_cv_speed_t=yes | |
7879 | else | |
7880 | emacs_cv_speed_t=no | |
7881 | fi | |
7882 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7883 | fi | |
7884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5 | |
7885 | $as_echo "$emacs_cv_speed_t" >&6; } | |
7886 | if test $emacs_cv_speed_t = yes; then | |
7887 | ||
7888 | $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h | |
7889 | ||
7890 | fi | |
7891 | ||
7892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5 | |
7893 | $as_echo_n "checking for struct timeval... " >&6; } | |
d6974efa | 7894 | if ${emacs_cv_struct_timeval+:} false; then : |
067d23c9 KY |
7895 | $as_echo_n "(cached) " >&6 |
7896 | else | |
7897 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7898 | /* end confdefs.h. */ | |
7899 | #ifdef TIME_WITH_SYS_TIME | |
7900 | #include <sys/time.h> | |
7901 | #include <time.h> | |
7902 | #else | |
7903 | #ifdef HAVE_SYS_TIME_H | |
7904 | #include <sys/time.h> | |
7905 | #else | |
7906 | #include <time.h> | |
7907 | #endif | |
7908 | #endif | |
7909 | int | |
7910 | main () | |
7911 | { | |
7912 | static struct timeval x; x.tv_sec = x.tv_usec; | |
7913 | ; | |
7914 | return 0; | |
7915 | } | |
7916 | _ACEOF | |
7917 | if ac_fn_c_try_compile "$LINENO"; then : | |
7918 | emacs_cv_struct_timeval=yes | |
7919 | else | |
7920 | emacs_cv_struct_timeval=no | |
7921 | fi | |
7922 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7923 | fi | |
7924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5 | |
7925 | $as_echo "$emacs_cv_struct_timeval" >&6; } | |
7926 | HAVE_TIMEVAL=$emacs_cv_struct_timeval | |
7927 | if test $emacs_cv_struct_timeval = yes; then | |
7928 | ||
7929 | $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h | |
7930 | ||
7931 | fi | |
7932 | ||
7933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5 | |
7934 | $as_echo_n "checking for struct exception... " >&6; } | |
d6974efa | 7935 | if ${emacs_cv_struct_exception+:} false; then : |
067d23c9 KY |
7936 | $as_echo_n "(cached) " >&6 |
7937 | else | |
7938 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7939 | /* end confdefs.h. */ | |
7940 | #include <math.h> | |
7941 | int | |
7942 | main () | |
7943 | { | |
7944 | static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1; | |
7945 | ; | |
7946 | return 0; | |
7947 | } | |
7948 | _ACEOF | |
7949 | if ac_fn_c_try_compile "$LINENO"; then : | |
7950 | emacs_cv_struct_exception=yes | |
7951 | else | |
7952 | emacs_cv_struct_exception=no | |
7953 | fi | |
7954 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7955 | fi | |
7956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5 | |
7957 | $as_echo "$emacs_cv_struct_exception" >&6; } | |
7958 | HAVE_EXCEPTION=$emacs_cv_struct_exception | |
7959 | if test $emacs_cv_struct_exception != yes; then | |
7960 | ||
7961 | $as_echo "#define NO_MATHERR 1" >>confdefs.h | |
7962 | ||
7963 | fi | |
7964 | ||
7965 | for ac_header in sys/socket.h | |
7966 | do : | |
7967 | ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" | |
d6974efa | 7968 | if test "x$ac_cv_header_sys_socket_h" = xyes; then : |
067d23c9 KY |
7969 | cat >>confdefs.h <<_ACEOF |
7970 | #define HAVE_SYS_SOCKET_H 1 | |
7971 | _ACEOF | |
7972 | ||
7973 | fi | |
7974 | ||
7975 | done | |
7976 | ||
7977 | for ac_header in net/if.h | |
7978 | do : | |
7979 | ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default | |
7980 | #if HAVE_SYS_SOCKET_H | |
7981 | #include <sys/socket.h> | |
7982 | #endif | |
7983 | " | |
d6974efa | 7984 | if test "x$ac_cv_header_net_if_h" = xyes; then : |
067d23c9 KY |
7985 | cat >>confdefs.h <<_ACEOF |
7986 | #define HAVE_NET_IF_H 1 | |
7987 | _ACEOF | |
7988 | ||
7989 | fi | |
7990 | ||
7991 | done | |
7992 | ||
7993 | ||
7994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 | |
7995 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | |
d6974efa | 7996 | if ${ac_cv_struct_tm+:} false; then : |
067d23c9 KY |
7997 | $as_echo_n "(cached) " >&6 |
7998 | else | |
7999 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8000 | /* end confdefs.h. */ | |
8001 | #include <sys/types.h> | |
8002 | #include <time.h> | |
8003 | ||
8004 | int | |
8005 | main () | |
8006 | { | |
8007 | struct tm tm; | |
8008 | int *p = &tm.tm_sec; | |
8009 | return !p; | |
8010 | ; | |
8011 | return 0; | |
8012 | } | |
8013 | _ACEOF | |
8014 | if ac_fn_c_try_compile "$LINENO"; then : | |
8015 | ac_cv_struct_tm=time.h | |
8016 | else | |
8017 | ac_cv_struct_tm=sys/time.h | |
8018 | fi | |
8019 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8020 | fi | |
8021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 | |
8022 | $as_echo "$ac_cv_struct_tm" >&6; } | |
8023 | if test $ac_cv_struct_tm = sys/time.h; then | |
8024 | ||
8025 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h | |
8026 | ||
8027 | fi | |
8028 | ||
8029 | ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> | |
8030 | #include <$ac_cv_struct_tm> | |
8031 | ||
8032 | " | |
d6974efa | 8033 | if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : |
067d23c9 KY |
8034 | |
8035 | cat >>confdefs.h <<_ACEOF | |
8036 | #define HAVE_STRUCT_TM_TM_ZONE 1 | |
8037 | _ACEOF | |
8038 | ||
8039 | ||
8040 | fi | |
8041 | ||
8042 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | |
8043 | ||
8044 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h | |
8045 | ||
8046 | else | |
8047 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> | |
8048 | " | |
d6974efa | 8049 | if test "x$ac_cv_have_decl_tzname" = xyes; then : |
067d23c9 KY |
8050 | ac_have_decl=1 |
8051 | else | |
8052 | ac_have_decl=0 | |
8053 | fi | |
8054 | ||
8055 | cat >>confdefs.h <<_ACEOF | |
8056 | #define HAVE_DECL_TZNAME $ac_have_decl | |
8057 | _ACEOF | |
8058 | ||
8059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 | |
8060 | $as_echo_n "checking for tzname... " >&6; } | |
d6974efa | 8061 | if ${ac_cv_var_tzname+:} false; then : |
067d23c9 KY |
8062 | $as_echo_n "(cached) " >&6 |
8063 | else | |
8064 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8065 | /* end confdefs.h. */ | |
8066 | #include <time.h> | |
8067 | #if !HAVE_DECL_TZNAME | |
8068 | extern char *tzname[]; | |
8069 | #endif | |
8070 | ||
8071 | int | |
8072 | main () | |
8073 | { | |
8074 | return tzname[0][0]; | |
8075 | ; | |
8076 | return 0; | |
8077 | } | |
8078 | _ACEOF | |
8079 | if ac_fn_c_try_link "$LINENO"; then : | |
8080 | ac_cv_var_tzname=yes | |
8081 | else | |
8082 | ac_cv_var_tzname=no | |
8083 | fi | |
8084 | rm -f core conftest.err conftest.$ac_objext \ | |
8085 | conftest$ac_exeext conftest.$ac_ext | |
8086 | fi | |
8087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 | |
8088 | $as_echo "$ac_cv_var_tzname" >&6; } | |
8089 | if test $ac_cv_var_tzname = yes; then | |
8090 | ||
8091 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h | |
8092 | ||
8093 | fi | |
8094 | fi | |
8095 | ||
8096 | ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h> | |
8097 | " | |
d6974efa | 8098 | if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then : |
067d23c9 KY |
8099 | |
8100 | $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h | |
8101 | ||
8102 | fi | |
8103 | ||
8104 | ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default | |
8105 | #if HAVE_SYS_SOCKET_H | |
8106 | #include <sys/socket.h> | |
8107 | #endif | |
8108 | #if HAVE_NET_IF_H | |
8109 | #include <net/if.h> | |
8110 | #endif | |
8111 | " | |
d6974efa | 8112 | if test "x$ac_cv_member_struct_ifreq_ifr_flags" = xyes; then : |
067d23c9 KY |
8113 | |
8114 | cat >>confdefs.h <<_ACEOF | |
8115 | #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1 | |
8116 | _ACEOF | |
8117 | ||
8118 | ||
8119 | fi | |
8120 | ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default | |
8121 | #if HAVE_SYS_SOCKET_H | |
8122 | #include <sys/socket.h> | |
8123 | #endif | |
8124 | #if HAVE_NET_IF_H | |
8125 | #include <net/if.h> | |
8126 | #endif | |
8127 | " | |
d6974efa | 8128 | if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then : |
067d23c9 KY |
8129 | |
8130 | cat >>confdefs.h <<_ACEOF | |
8131 | #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1 | |
8132 | _ACEOF | |
8133 | ||
8134 | ||
8135 | fi | |
8136 | ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default | |
8137 | #if HAVE_SYS_SOCKET_H | |
8138 | #include <sys/socket.h> | |
8139 | #endif | |
8140 | #if HAVE_NET_IF_H | |
8141 | #include <net/if.h> | |
8142 | #endif | |
8143 | " | |
d6974efa | 8144 | if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = xyes; then : |
067d23c9 KY |
8145 | |
8146 | cat >>confdefs.h <<_ACEOF | |
8147 | #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1 | |
8148 | _ACEOF | |
8149 | ||
8150 | ||
8151 | fi | |
8152 | ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default | |
8153 | #if HAVE_SYS_SOCKET_H | |
8154 | #include <sys/socket.h> | |
8155 | #endif | |
8156 | #if HAVE_NET_IF_H | |
8157 | #include <net/if.h> | |
8158 | #endif | |
8159 | " | |
d6974efa | 8160 | if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = xyes; then : |
067d23c9 KY |
8161 | |
8162 | cat >>confdefs.h <<_ACEOF | |
8163 | #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1 | |
8164 | _ACEOF | |
8165 | ||
8166 | ||
8167 | fi | |
8168 | ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default | |
8169 | #if HAVE_SYS_SOCKET_H | |
8170 | #include <sys/socket.h> | |
8171 | #endif | |
8172 | #if HAVE_NET_IF_H | |
8173 | #include <net/if.h> | |
8174 | #endif | |
8175 | " | |
d6974efa | 8176 | if test "x$ac_cv_member_struct_ifreq_ifr_addr" = xyes; then : |
067d23c9 KY |
8177 | |
8178 | cat >>confdefs.h <<_ACEOF | |
8179 | #define HAVE_STRUCT_IFREQ_IFR_ADDR 1 | |
8180 | _ACEOF | |
8181 | ||
8182 | ||
8183 | fi | |
8184 | ||
8185 | ||
8186 | ||
8187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5 | |
8188 | $as_echo_n "checking for function prototypes... " >&6; } | |
8189 | if test "$ac_cv_prog_cc_c89" != no; then | |
8190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8191 | $as_echo "yes" >&6; } | |
8192 | ||
8193 | $as_echo "#define PROTOTYPES 1" >>confdefs.h | |
8194 | ||
8195 | ||
8196 | $as_echo "#define __PROTOTYPES 1" >>confdefs.h | |
8197 | ||
8198 | else | |
8199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8200 | $as_echo "no" >&6; } | |
8201 | fi | |
8202 | ||
8203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 | |
8204 | $as_echo_n "checking for working volatile... " >&6; } | |
d6974efa | 8205 | if ${ac_cv_c_volatile+:} false; then : |
067d23c9 KY |
8206 | $as_echo_n "(cached) " >&6 |
8207 | else | |
8208 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8209 | /* end confdefs.h. */ | |
8210 | ||
8211 | int | |
8212 | main () | |
8213 | { | |
8214 | ||
8215 | volatile int x; | |
8216 | int * volatile y = (int *) 0; | |
8217 | return !x && !y; | |
8218 | ; | |
8219 | return 0; | |
8220 | } | |
8221 | _ACEOF | |
8222 | if ac_fn_c_try_compile "$LINENO"; then : | |
8223 | ac_cv_c_volatile=yes | |
8224 | else | |
8225 | ac_cv_c_volatile=no | |
8226 | fi | |
8227 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8228 | fi | |
8229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 | |
8230 | $as_echo "$ac_cv_c_volatile" >&6; } | |
8231 | if test $ac_cv_c_volatile = no; then | |
8232 | ||
8233 | $as_echo "#define volatile /**/" >>confdefs.h | |
8234 | ||
8235 | fi | |
8236 | ||
8237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 | |
8238 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
d6974efa | 8239 | if ${ac_cv_c_const+:} false; then : |
067d23c9 KY |
8240 | $as_echo_n "(cached) " >&6 |
8241 | else | |
8242 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8243 | /* end confdefs.h. */ | |
8244 | ||
8245 | int | |
8246 | main () | |
8247 | { | |
8248 | /* FIXME: Include the comments suggested by Paul. */ | |
8249 | #ifndef __cplusplus | |
8250 | /* Ultrix mips cc rejects this. */ | |
8251 | typedef int charset[2]; | |
8252 | const charset cs; | |
8253 | /* SunOS 4.1.1 cc rejects this. */ | |
8254 | char const *const *pcpcc; | |
8255 | char **ppc; | |
8256 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
8257 | struct point {int x, y;}; | |
8258 | static struct point const zero = {0,0}; | |
8259 | /* AIX XL C 1.02.0.0 rejects this. | |
8260 | It does not let you subtract one const X* pointer from another in | |
8261 | an arm of an if-expression whose if-part is not a constant | |
8262 | expression */ | |
8263 | const char *g = "string"; | |
8264 | pcpcc = &g + (g ? g-g : 0); | |
8265 | /* HPUX 7.0 cc rejects these. */ | |
8266 | ++pcpcc; | |
8267 | ppc = (char**) pcpcc; | |
8268 | pcpcc = (char const *const *) ppc; | |
8269 | { /* SCO 3.2v4 cc rejects this. */ | |
8270 | char *t; | |
8271 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
8272 | ||
8273 | *t++ = 0; | |
8274 | if (s) return 0; | |
8275 | } | |
8276 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
8277 | int x[] = {25, 17}; | |
8278 | const int *foo = &x[0]; | |
8279 | ++foo; | |
8280 | } | |
8281 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
8282 | typedef const int *iptr; | |
8283 | iptr p = 0; | |
8284 | ++p; | |
8285 | } | |
8286 | { /* AIX XL C 1.02.0.0 rejects this saying | |
8287 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
8288 | struct s { int j; const int *ap[3]; }; | |
8289 | struct s *b; b->j = 5; | |
8290 | } | |
8291 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
8292 | const int foo = 10; | |
8293 | if (!foo) return 0; | |
8294 | } | |
8295 | return !cs[0] && !zero.x; | |
8296 | #endif | |
8297 | ||
8298 | ; | |
8299 | return 0; | |
8300 | } | |
8301 | _ACEOF | |
8302 | if ac_fn_c_try_compile "$LINENO"; then : | |
8303 | ac_cv_c_const=yes | |
8304 | else | |
8305 | ac_cv_c_const=no | |
8306 | fi | |
8307 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8308 | fi | |
8309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 | |
8310 | $as_echo "$ac_cv_c_const" >&6; } | |
8311 | if test $ac_cv_c_const = no; then | |
8312 | ||
8313 | $as_echo "#define const /**/" >>confdefs.h | |
8314 | ||
8315 | fi | |
8316 | ||
8317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5 | |
8318 | $as_echo_n "checking for void * support... " >&6; } | |
d6974efa | 8319 | if ${emacs_cv_void_star+:} false; then : |
067d23c9 KY |
8320 | $as_echo_n "(cached) " >&6 |
8321 | else | |
8322 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8323 | /* end confdefs.h. */ | |
8324 | ||
8325 | int | |
8326 | main () | |
8327 | { | |
8328 | void * foo; | |
8329 | ; | |
8330 | return 0; | |
8331 | } | |
8332 | _ACEOF | |
8333 | if ac_fn_c_try_compile "$LINENO"; then : | |
8334 | emacs_cv_void_star=yes | |
8335 | else | |
8336 | emacs_cv_void_star=no | |
8337 | fi | |
8338 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8339 | fi | |
8340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5 | |
8341 | $as_echo "$emacs_cv_void_star" >&6; } | |
8342 | if test $emacs_cv_void_star = yes; then | |
8343 | $as_echo "#define POINTER_TYPE void" >>confdefs.h | |
8344 | ||
8345 | else | |
8346 | $as_echo "#define POINTER_TYPE char" >>confdefs.h | |
8347 | ||
8348 | fi | |
8349 | ||
8350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | |
8351 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
d6974efa | 8352 | if ${ac_cv_c_bigendian+:} false; then : |
067d23c9 KY |
8353 | $as_echo_n "(cached) " >&6 |
8354 | else | |
8355 | ac_cv_c_bigendian=unknown | |
8356 | # See if we're dealing with a universal compiler. | |
8357 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8358 | /* end confdefs.h. */ | |
8359 | #ifndef __APPLE_CC__ | |
8360 | not a universal capable compiler | |
8361 | #endif | |
8362 | typedef int dummy; | |
8363 | ||
8364 | _ACEOF | |
8365 | if ac_fn_c_try_compile "$LINENO"; then : | |
8366 | ||
8367 | # Check for potential -arch flags. It is not universal unless | |
8368 | # there are at least two -arch flags with different values. | |
8369 | ac_arch= | |
8370 | ac_prev= | |
8371 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
8372 | if test -n "$ac_prev"; then | |
8373 | case $ac_word in | |
8374 | i?86 | x86_64 | ppc | ppc64) | |
8375 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
8376 | ac_arch=$ac_word | |
8377 | else | |
8378 | ac_cv_c_bigendian=universal | |
8379 | break | |
8380 | fi | |
8381 | ;; | |
8382 | esac | |
8383 | ac_prev= | |
8384 | elif test "x$ac_word" = "x-arch"; then | |
8385 | ac_prev=arch | |
8386 | fi | |
8387 | done | |
8388 | fi | |
8389 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8390 | if test $ac_cv_c_bigendian = unknown; then | |
8391 | # See if sys/param.h defines the BYTE_ORDER macro. | |
8392 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8393 | /* end confdefs.h. */ | |
8394 | #include <sys/types.h> | |
8395 | #include <sys/param.h> | |
8396 | ||
8397 | int | |
8398 | main () | |
8399 | { | |
8400 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | |
8401 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
8402 | && LITTLE_ENDIAN) | |
8403 | bogus endian macros | |
8404 | #endif | |
8405 | ||
8406 | ; | |
8407 | return 0; | |
8408 | } | |
8409 | _ACEOF | |
8410 | if ac_fn_c_try_compile "$LINENO"; then : | |
8411 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
8412 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8413 | /* end confdefs.h. */ | |
8414 | #include <sys/types.h> | |
8415 | #include <sys/param.h> | |
8416 | ||
8417 | int | |
8418 | main () | |
8419 | { | |
8420 | #if BYTE_ORDER != BIG_ENDIAN | |
8421 | not big endian | |
8422 | #endif | |
8423 | ||
8424 | ; | |
8425 | return 0; | |
8426 | } | |
8427 | _ACEOF | |
8428 | if ac_fn_c_try_compile "$LINENO"; then : | |
8429 | ac_cv_c_bigendian=yes | |
8430 | else | |
8431 | ac_cv_c_bigendian=no | |
8432 | fi | |
8433 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8434 | fi | |
8435 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8436 | fi | |
8437 | if test $ac_cv_c_bigendian = unknown; then | |
8438 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
8439 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8440 | /* end confdefs.h. */ | |
8441 | #include <limits.h> | |
8442 | ||
8443 | int | |
8444 | main () | |
8445 | { | |
8446 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
8447 | bogus endian macros | |
8448 | #endif | |
8449 | ||
8450 | ; | |
8451 | return 0; | |
8452 | } | |
8453 | _ACEOF | |
8454 | if ac_fn_c_try_compile "$LINENO"; then : | |
8455 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
8456 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8457 | /* end confdefs.h. */ | |
8458 | #include <limits.h> | |
8459 | ||
8460 | int | |
8461 | main () | |
8462 | { | |
8463 | #ifndef _BIG_ENDIAN | |
8464 | not big endian | |
8465 | #endif | |
8466 | ||
8467 | ; | |
8468 | return 0; | |
8469 | } | |
8470 | _ACEOF | |
8471 | if ac_fn_c_try_compile "$LINENO"; then : | |
8472 | ac_cv_c_bigendian=yes | |
8473 | else | |
8474 | ac_cv_c_bigendian=no | |
8475 | fi | |
8476 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8477 | fi | |
8478 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8479 | fi | |
8480 | if test $ac_cv_c_bigendian = unknown; then | |
8481 | # Compile a test program. | |
8482 | if test "$cross_compiling" = yes; then : | |
8483 | # Try to guess by grepping values from an object file. | |
8484 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8485 | /* end confdefs.h. */ | |
8486 | short int ascii_mm[] = | |
8487 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
8488 | short int ascii_ii[] = | |
8489 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
8490 | int use_ascii (int i) { | |
8491 | return ascii_mm[i] + ascii_ii[i]; | |
8492 | } | |
8493 | short int ebcdic_ii[] = | |
8494 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
8495 | short int ebcdic_mm[] = | |
8496 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
8497 | int use_ebcdic (int i) { | |
8498 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
8499 | } | |
8500 | extern int foo; | |
8501 | ||
8502 | int | |
8503 | main () | |
8504 | { | |
8505 | return use_ascii (foo) == use_ebcdic (foo); | |
8506 | ; | |
8507 | return 0; | |
8508 | } | |
8509 | _ACEOF | |
8510 | if ac_fn_c_try_compile "$LINENO"; then : | |
8511 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
8512 | ac_cv_c_bigendian=yes | |
8513 | fi | |
8514 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
8515 | if test "$ac_cv_c_bigendian" = unknown; then | |
8516 | ac_cv_c_bigendian=no | |
8517 | else | |
8518 | # finding both strings is unlikely to happen, but who knows? | |
8519 | ac_cv_c_bigendian=unknown | |
8520 | fi | |
8521 | fi | |
8522 | fi | |
8523 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8524 | else | |
8525 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8526 | /* end confdefs.h. */ | |
8527 | $ac_includes_default | |
8528 | int | |
8529 | main () | |
8530 | { | |
8531 | ||
8532 | /* Are we little or big endian? From Harbison&Steele. */ | |
8533 | union | |
8534 | { | |
8535 | long int l; | |
8536 | char c[sizeof (long int)]; | |
8537 | } u; | |
8538 | u.l = 1; | |
8539 | return u.c[sizeof (long int) - 1] == 1; | |
8540 | ||
8541 | ; | |
8542 | return 0; | |
8543 | } | |
8544 | _ACEOF | |
8545 | if ac_fn_c_try_run "$LINENO"; then : | |
8546 | ac_cv_c_bigendian=no | |
8547 | else | |
8548 | ac_cv_c_bigendian=yes | |
8549 | fi | |
8550 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
8551 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
8552 | fi | |
8553 | ||
8554 | fi | |
8555 | fi | |
8556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | |
8557 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
8558 | case $ac_cv_c_bigendian in #( | |
8559 | yes) | |
8560 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
8561 | ;; #( | |
8562 | no) | |
8563 | ;; #( | |
8564 | universal) | |
8565 | ||
8566 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | |
8567 | ||
8568 | ;; #( | |
8569 | *) | |
2018939f | 8570 | as_fn_error $? "unknown endianness |
d6974efa | 8571 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
067d23c9 KY |
8572 | esac |
8573 | ||
8574 | ||
7cae64b4 PE |
8575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5 |
8576 | $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; } | |
d6974efa | 8577 | if ${emacs_cv_attribute_aligned+:} false; then : |
7cae64b4 PE |
8578 | $as_echo_n "(cached) " >&6 |
8579 | else | |
8580 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8581 | /* end confdefs.h. */ | |
8582 | char __attribute__ ((__aligned__ (1 << 3))) c; | |
8583 | int | |
8584 | main () | |
8585 | { | |
8586 | ||
8587 | ; | |
8588 | return 0; | |
8589 | } | |
8590 | _ACEOF | |
8591 | if ac_fn_c_try_compile "$LINENO"; then : | |
8592 | emacs_cv_attribute_aligned=yes | |
8593 | else | |
8594 | emacs_cv_attribute_aligned=no | |
8595 | fi | |
8596 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8597 | fi | |
8598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5 | |
8599 | $as_echo "$emacs_cv_attribute_aligned" >&6; } | |
8600 | if test $emacs_cv_attribute_aligned = yes; then | |
8601 | ||
8602 | $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h | |
8603 | ||
8604 | fi | |
8605 | ||
067d23c9 KY |
8606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
8607 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
8608 | set x ${MAKE-make} | |
8609 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
d6974efa | 8610 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
067d23c9 KY |
8611 | $as_echo_n "(cached) " >&6 |
8612 | else | |
8613 | cat >conftest.make <<\_ACEOF | |
8614 | SHELL = /bin/sh | |
8615 | all: | |
8616 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
8617 | _ACEOF | |
2018939f | 8618 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
067d23c9 KY |
8619 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
8620 | *@@@%%%=?*=@@@%%%*) | |
8621 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
8622 | *) | |
8623 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
8624 | esac | |
8625 | rm -f conftest.make | |
8626 | fi | |
8627 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
8628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8629 | $as_echo "yes" >&6; } | |
8630 | SET_MAKE= | |
8631 | else | |
8632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8633 | $as_echo "no" >&6; } | |
8634 | SET_MAKE="MAKE=${MAKE-make}" | |
8635 | fi | |
8636 | ||
8637 | ||
8638 | DEPFLAGS= | |
8639 | MKDEPDIR=":" | |
8640 | deps_frag=deps.mk | |
8641 | if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then | |
8642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5 | |
8643 | $as_echo_n "checking whether we are using GNU Make... " >&6; } | |
8644 | HAVE_GNU_MAKE=no | |
8645 | testval=`make --version 2>/dev/null | grep 'GNU Make'` | |
8646 | if test "x$testval" != x; then | |
8647 | HAVE_GNU_MAKE=yes | |
8648 | else | |
8649 | ac_enable_autodepend=no | |
8650 | fi | |
8651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5 | |
8652 | $as_echo "$HAVE_GNU_MAKE" >&6; } | |
8653 | if test $HAVE_GNU_MAKE = yes; then | |
8654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5 | |
8655 | $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; } | |
8656 | SAVE_CFLAGS="$CFLAGS" | |
8657 | CFLAGS="$CFLAGS -MMD -MF deps.d" | |
8658 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8659 | /* end confdefs.h. */ | |
8660 | ||
8661 | int | |
8662 | main () | |
8663 | { | |
8664 | ||
8665 | ; | |
8666 | return 0; | |
8667 | } | |
8668 | _ACEOF | |
8669 | if ac_fn_c_try_compile "$LINENO"; then : | |
8670 | ||
8671 | else | |
8672 | ac_enable_autodepend=no | |
8673 | fi | |
8674 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8675 | CFLAGS="$SAVE_CFLAGS" | |
8676 | test -f deps.d || ac_enable_autodepend=no | |
8677 | rm -rf deps.d | |
8678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5 | |
8679 | $as_echo "$ac_enable_autodepend" >&6; } | |
8680 | fi | |
8681 | if test $ac_enable_autodepend = yes; then | |
8682 | DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d' | |
8683 | ## In parallel builds, another make might create depdir between | |
8684 | ## the first test and mkdir, so stick another test on the end. | |
8685 | ## Or use mkinstalldirs? mkdir -p is not portable. | |
8686 | MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}' | |
8687 | deps_frag=autodeps.mk | |
8688 | fi | |
8689 | fi | |
8690 | deps_frag=$srcdir/src/$deps_frag | |
8691 | ||
8692 | ||
8693 | ||
8694 | ||
8695 | ||
8696 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5 | |
8697 | $as_echo_n "checking for long file names... " >&6; } | |
d6974efa | 8698 | if ${ac_cv_sys_long_file_names+:} false; then : |
067d23c9 KY |
8699 | $as_echo_n "(cached) " >&6 |
8700 | else | |
8701 | ac_cv_sys_long_file_names=yes | |
8702 | # Test for long file names in all the places we know might matter: | |
8703 | # . the current directory, where building will happen | |
8704 | # $prefix/lib where we will be installing things | |
8705 | # $exec_prefix/lib likewise | |
8706 | # $TMPDIR if set, where it might want to write temporary files | |
8707 | # /tmp where it might want to write temporary files | |
8708 | # /var/tmp likewise | |
8709 | # /usr/tmp likewise | |
8710 | for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do | |
8711 | # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib | |
8712 | # in the usual case where exec_prefix is '${prefix}'. | |
8713 | case $ac_dir in #( | |
8714 | . | /* | ?:[\\/]*) ;; #( | |
8715 | *) continue;; | |
8716 | esac | |
8717 | test -w "$ac_dir/." || continue # It is less confusing to not echo anything here. | |
8718 | ac_xdir=$ac_dir/cf$$ | |
8719 | (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue | |
8720 | ac_tf1=$ac_xdir/conftest9012345 | |
8721 | ac_tf2=$ac_xdir/conftest9012346 | |
8722 | touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" || | |
8723 | ac_cv_sys_long_file_names=no | |
8724 | rm -f -r "$ac_xdir" 2>/dev/null | |
8725 | test $ac_cv_sys_long_file_names = no && break | |
8726 | done | |
8727 | fi | |
8728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5 | |
8729 | $as_echo "$ac_cv_sys_long_file_names" >&6; } | |
8730 | if test $ac_cv_sys_long_file_names = yes; then | |
8731 | ||
8732 | $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h | |
8733 | ||
8734 | fi | |
8735 | ||
8736 | ||
8737 | #### Choose a window system. | |
8738 | ||
8739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 | |
8740 | $as_echo_n "checking for X... " >&6; } | |
8741 | ||
8742 | ||
8743 | # Check whether --with-x was given. | |
8744 | if test "${with_x+set}" = set; then : | |
8745 | withval=$with_x; | |
8746 | fi | |
8747 | ||
8748 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
8749 | if test "x$with_x" = xno; then | |
8750 | # The user explicitly disabled X. | |
8751 | have_x=disabled | |
8752 | else | |
8753 | case $x_includes,$x_libraries in #( | |
d6974efa PE |
8754 | *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( |
8755 | *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : | |
067d23c9 KY |
8756 | $as_echo_n "(cached) " >&6 |
8757 | else | |
8758 | # One or both of the vars are not set, and there is no cached value. | |
8759 | ac_x_includes=no ac_x_libraries=no | |
8760 | rm -f -r conftest.dir | |
8761 | if mkdir conftest.dir; then | |
8762 | cd conftest.dir | |
8763 | cat >Imakefile <<'_ACEOF' | |
8764 | incroot: | |
8765 | @echo incroot='${INCROOT}' | |
8766 | usrlibdir: | |
8767 | @echo usrlibdir='${USRLIBDIR}' | |
8768 | libdir: | |
8769 | @echo libdir='${LIBDIR}' | |
8770 | _ACEOF | |
8771 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then | |
2018939f | 8772 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
067d23c9 KY |
8773 | for ac_var in incroot usrlibdir libdir; do |
8774 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" | |
8775 | done | |
8776 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
8777 | for ac_extension in a so sl dylib la dll; do | |
8778 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && | |
8779 | test -f "$ac_im_libdir/libX11.$ac_extension"; then | |
8780 | ac_im_usrlibdir=$ac_im_libdir; break | |
8781 | fi | |
8782 | done | |
8783 | # Screen out bogus values from the imake configuration. They are | |
8784 | # bogus both because they are the default anyway, and because | |
8785 | # using them would break gcc on systems where it needs fixed includes. | |
8786 | case $ac_im_incroot in | |
8787 | /usr/include) ac_x_includes= ;; | |
8788 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | |
8789 | esac | |
8790 | case $ac_im_usrlibdir in | |
8791 | /usr/lib | /usr/lib64 | /lib | /lib64) ;; | |
8792 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | |
8793 | esac | |
8794 | fi | |
8795 | cd .. | |
8796 | rm -f -r conftest.dir | |
8797 | fi | |
8798 | ||
8799 | # Standard set of common directories for X headers. | |
8800 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
8801 | ac_x_header_dirs=' | |
8802 | /usr/X11/include | |
8803 | /usr/X11R7/include | |
8804 | /usr/X11R6/include | |
8805 | /usr/X11R5/include | |
8806 | /usr/X11R4/include | |
8807 | ||
8808 | /usr/include/X11 | |
8809 | /usr/include/X11R7 | |
8810 | /usr/include/X11R6 | |
8811 | /usr/include/X11R5 | |
8812 | /usr/include/X11R4 | |
8813 | ||
8814 | /usr/local/X11/include | |
8815 | /usr/local/X11R7/include | |
8816 | /usr/local/X11R6/include | |
8817 | /usr/local/X11R5/include | |
8818 | /usr/local/X11R4/include | |
8819 | ||
8820 | /usr/local/include/X11 | |
8821 | /usr/local/include/X11R7 | |
8822 | /usr/local/include/X11R6 | |
8823 | /usr/local/include/X11R5 | |
8824 | /usr/local/include/X11R4 | |
8825 | ||
8826 | /usr/X386/include | |
8827 | /usr/x386/include | |
8828 | /usr/XFree86/include/X11 | |
8829 | ||
8830 | /usr/include | |
8831 | /usr/local/include | |
8832 | /usr/unsupported/include | |
8833 | /usr/athena/include | |
8834 | /usr/local/x11r5/include | |
8835 | /usr/lpp/Xamples/include | |
8836 | ||
8837 | /usr/openwin/include | |
8838 | /usr/openwin/share/include' | |
8839 | ||
8840 | if test "$ac_x_includes" = no; then | |
8841 | # Guess where to find include files, by looking for Xlib.h. | |
8842 | # First, try using that file with no special directory specified. | |
8843 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8844 | /* end confdefs.h. */ | |
8845 | #include <X11/Xlib.h> | |
8846 | _ACEOF | |
8847 | if ac_fn_c_try_cpp "$LINENO"; then : | |
8848 | # We can compile using X headers with no special include directory. | |
8849 | ac_x_includes= | |
8850 | else | |
8851 | for ac_dir in $ac_x_header_dirs; do | |
8852 | if test -r "$ac_dir/X11/Xlib.h"; then | |
8853 | ac_x_includes=$ac_dir | |
8854 | break | |
8855 | fi | |
8856 | done | |
8857 | fi | |
2018939f | 8858 | rm -f conftest.err conftest.i conftest.$ac_ext |
067d23c9 KY |
8859 | fi # $ac_x_includes = no |
8860 | ||
8861 | if test "$ac_x_libraries" = no; then | |
8862 | # Check for the libraries. | |
8863 | # See if we find them without any special options. | |
8864 | # Don't add to $LIBS permanently. | |
8865 | ac_save_LIBS=$LIBS | |
8866 | LIBS="-lX11 $LIBS" | |
8867 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8868 | /* end confdefs.h. */ | |
8869 | #include <X11/Xlib.h> | |
8870 | int | |
8871 | main () | |
8872 | { | |
8873 | XrmInitialize () | |
8874 | ; | |
8875 | return 0; | |
8876 | } | |
8877 | _ACEOF | |
8878 | if ac_fn_c_try_link "$LINENO"; then : | |
8879 | LIBS=$ac_save_LIBS | |
8880 | # We can link X programs with no special library path. | |
8881 | ac_x_libraries= | |
8882 | else | |
8883 | LIBS=$ac_save_LIBS | |
8884 | for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
8885 | do | |
8886 | # Don't even attempt the hair of trying to link an X program! | |
8887 | for ac_extension in a so sl dylib la dll; do | |
8888 | if test -r "$ac_dir/libX11.$ac_extension"; then | |
8889 | ac_x_libraries=$ac_dir | |
8890 | break 2 | |
8891 | fi | |
8892 | done | |
8893 | done | |
8894 | fi | |
8895 | rm -f core conftest.err conftest.$ac_objext \ | |
8896 | conftest$ac_exeext conftest.$ac_ext | |
8897 | fi # $ac_x_libraries = no | |
8898 | ||
8899 | case $ac_x_includes,$ac_x_libraries in #( | |
8900 | no,* | *,no | *\'*) | |
8901 | # Didn't find X, or a directory has "'" in its name. | |
8902 | ac_cv_have_x="have_x=no";; #( | |
8903 | *) | |
8904 | # Record where we found X for the cache. | |
8905 | ac_cv_have_x="have_x=yes\ | |
8906 | ac_x_includes='$ac_x_includes'\ | |
8907 | ac_x_libraries='$ac_x_libraries'" | |
8908 | esac | |
8909 | fi | |
8910 | ;; #( | |
8911 | *) have_x=yes;; | |
8912 | esac | |
8913 | eval "$ac_cv_have_x" | |
8914 | fi # $with_x != no | |
8915 | ||
8916 | if test "$have_x" != yes; then | |
8917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 | |
8918 | $as_echo "$have_x" >&6; } | |
8919 | no_x=yes | |
8920 | else | |
8921 | # If each of the values was on the command line, it overrides each guess. | |
8922 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
8923 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
8924 | # Update the cache value to reflect the command line values. | |
8925 | ac_cv_have_x="have_x=yes\ | |
8926 | ac_x_includes='$x_includes'\ | |
8927 | ac_x_libraries='$x_libraries'" | |
8928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 | |
8929 | $as_echo "libraries $x_libraries, headers $x_includes" >&6; } | |
8930 | fi | |
8931 | ||
8932 | if test "$no_x" = yes; then | |
8933 | window_system=none | |
8934 | else | |
8935 | window_system=x11 | |
8936 | fi | |
8937 | ||
8938 | ## Workaround for bug in autoconf <= 2.62. | |
8939 | ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html | |
8940 | ## No need to do anything special for these standard directories. | |
8941 | if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then | |
8942 | ||
8943 | x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'` | |
8944 | ||
8945 | fi | |
8946 | ||
8947 | LD_SWITCH_X_SITE_AUX= | |
8948 | LD_SWITCH_X_SITE_AUX_RPATH= | |
8949 | if test "${x_libraries}" != NONE; then | |
8950 | if test -n "${x_libraries}"; then | |
8951 | LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"` | |
8952 | LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"` | |
8953 | LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'` | |
8954 | fi | |
8955 | x_default_search_path="" | |
8956 | x_search_path=${x_libraries} | |
8957 | if test -z "${x_search_path}"; then | |
8958 | x_search_path=/usr/lib | |
8959 | fi | |
8960 | for x_library in `echo ${x_search_path}: | \ | |
8961 | sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do | |
8962 | x_search_path="\ | |
8963 | ${x_library}/X11/%L/%T/%N%C%S:\ | |
8964 | ${x_library}/X11/%l/%T/%N%C%S:\ | |
8965 | ${x_library}/X11/%T/%N%C%S:\ | |
8966 | ${x_library}/X11/%L/%T/%N%S:\ | |
8967 | ${x_library}/X11/%l/%T/%N%S:\ | |
8968 | ${x_library}/X11/%T/%N%S" | |
8969 | if test x"${x_default_search_path}" = x; then | |
8970 | x_default_search_path=${x_search_path} | |
8971 | else | |
8972 | x_default_search_path="${x_search_path}:${x_default_search_path}" | |
8973 | fi | |
8974 | done | |
8975 | fi | |
8976 | ||
8977 | ||
8978 | ||
8979 | if test "${x_includes}" != NONE && test -n "${x_includes}"; then | |
8980 | C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"` | |
8981 | fi | |
8982 | ||
8983 | if test x"${x_includes}" = x; then | |
8984 | bitmapdir=/usr/include/X11/bitmaps | |
8985 | else | |
8986 | # accumulate include directories that have X11 bitmap subdirectories | |
8987 | bmd_acc="dummyval" | |
8988 | for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do | |
8989 | if test -d "${bmd}/X11/bitmaps"; then | |
8990 | bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps" | |
8991 | fi | |
8992 | if test -d "${bmd}/bitmaps"; then | |
8993 | bmd_acc="${bmd_acc}:${bmd}/bitmaps" | |
8994 | fi | |
8995 | done | |
8996 | if test ${bmd_acc} != "dummyval"; then | |
8997 | bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"` | |
8998 | fi | |
8999 | fi | |
9000 | ||
9001 | HAVE_NS=no | |
9002 | NS_IMPL_COCOA=no | |
9003 | NS_IMPL_GNUSTEP=no | |
9004 | tmp_CPPFLAGS="$CPPFLAGS" | |
9005 | tmp_CFLAGS="$CFLAGS" | |
9006 | CPPFLAGS="$CPPFLAGS -x objective-c" | |
9007 | CFLAGS="$CFLAGS -x objective-c" | |
9008 | TEMACS_LDFLAGS2="\${LDFLAGS}" | |
9009 | if test "${with_ns}" != no; then | |
9010 | if test "${opsys}" = darwin; then | |
9011 | NS_IMPL_COCOA=yes | |
9012 | ns_appdir=`pwd`/nextstep/Emacs.app | |
9013 | ns_appbindir=${ns_appdir}/Contents/MacOS/ | |
9014 | ns_appresdir=${ns_appdir}/Contents/Resources | |
9015 | ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base | |
9016 | elif test -f $GNUSTEP_CONFIG_FILE; then | |
9017 | NS_IMPL_GNUSTEP=yes | |
9018 | ns_appdir=`pwd`/nextstep/Emacs.app | |
9019 | ns_appbindir=${ns_appdir}/ | |
9020 | ns_appresdir=${ns_appdir}/Resources | |
9021 | ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base | |
9022 | GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)" | |
9023 | GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)" | |
9024 | GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)" | |
9025 | GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)" | |
9026 | test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \ | |
9027 | GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}" | |
9028 | test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \ | |
9029 | GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}" | |
9030 | CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}" | |
9031 | CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}" | |
9032 | LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}" | |
9033 | LIB_STANDARD= | |
9034 | START_FILES= | |
9035 | TEMACS_LDFLAGS2= | |
9036 | fi | |
9037 | ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default" | |
d6974efa | 9038 | if test "x$ac_cv_header_AppKit_AppKit_h" = xyes; then : |
067d23c9 KY |
9039 | HAVE_NS=yes |
9040 | else | |
2018939f | 9041 | as_fn_error $? "\`--with-ns' was specified, but the include |
067d23c9 KY |
9042 | files are missing or cannot be compiled." "$LINENO" 5 |
9043 | fi | |
9044 | ||
9045 | ||
9046 | NS_HAVE_NSINTEGER=yes | |
9047 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9048 | /* end confdefs.h. */ | |
9049 | #include <Foundation/NSObjCRuntime.h> | |
9050 | int | |
9051 | main () | |
9052 | { | |
9053 | NSInteger i; | |
9054 | ; | |
9055 | return 0; | |
9056 | } | |
9057 | _ACEOF | |
9058 | if ac_fn_c_try_compile "$LINENO"; then : | |
9059 | ns_have_nsinteger=yes | |
9060 | else | |
9061 | ns_have_nsinteger=no | |
9062 | fi | |
9063 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9064 | if test $ns_have_nsinteger = no; then | |
9065 | NS_HAVE_NSINTEGER=no | |
9066 | fi | |
9067 | fi | |
9068 | ||
9069 | ||
9070 | ns_frag=/dev/null | |
9071 | NS_OBJ= | |
00b3c7ac | 9072 | NS_OBJC_OBJ= |
067d23c9 KY |
9073 | NS_SUPPORT= |
9074 | if test "${HAVE_NS}" = yes; then | |
9075 | window_system=nextstep | |
9076 | with_xft=no | |
9077 | # set up packaging dirs | |
9078 | exec_prefix=${ns_appbindir} | |
9079 | libexecdir=${ns_appbindir}/libexec | |
9080 | if test "${EN_NS_SELF_CONTAINED}" = yes; then | |
9081 | prefix=${ns_appresdir} | |
9082 | fi | |
9083 | ns_frag=$srcdir/src/ns.mk | |
00b3c7ac TT |
9084 | NS_OBJ="fontset.o fringe.o image.o" |
9085 | NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o" | |
067d23c9 KY |
9086 | NS_SUPPORT="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc" |
9087 | fi | |
9088 | CFLAGS="$tmp_CFLAGS" | |
9089 | CPPFLAGS="$tmp_CPPFLAGS" | |
9090 | ||
9091 | ||
9092 | ||
9093 | ||
9094 | ||
00b3c7ac | 9095 | |
067d23c9 KY |
9096 | case "${window_system}" in |
9097 | x11 ) | |
9098 | HAVE_X_WINDOWS=yes | |
9099 | HAVE_X11=yes | |
9100 | case "${with_x_toolkit}" in | |
9101 | athena | lucid ) USE_X_TOOLKIT=LUCID ;; | |
9102 | motif ) USE_X_TOOLKIT=MOTIF ;; | |
9103 | gtk ) with_gtk=yes | |
9104 | USE_X_TOOLKIT=none ;; | |
9105 | gtk3 ) with_gtk3=yes | |
9106 | USE_X_TOOLKIT=none ;; | |
9107 | no ) USE_X_TOOLKIT=none ;; | |
9108 | * ) USE_X_TOOLKIT=maybe ;; | |
9109 | esac | |
9110 | ;; | |
9111 | nextstep | none ) | |
9112 | HAVE_X_WINDOWS=no | |
9113 | HAVE_X11=no | |
9114 | USE_X_TOOLKIT=none | |
9115 | ;; | |
9116 | esac | |
9117 | ||
9118 | if test "$window_system" = none && test "X$with_x" != "Xno"; then | |
9119 | # Extract the first word of "X", so it can be a program name with args. | |
9120 | set dummy X; ac_word=$2 | |
9121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9122 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6974efa | 9123 | if ${ac_cv_prog_HAVE_XSERVER+:} false; then : |
067d23c9 KY |
9124 | $as_echo_n "(cached) " >&6 |
9125 | else | |
9126 | if test -n "$HAVE_XSERVER"; then | |
9127 | ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test. | |
9128 | else | |
9129 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9130 | for as_dir in $PATH | |
9131 | do | |
9132 | IFS=$as_save_IFS | |
9133 | test -z "$as_dir" && as_dir=. | |
9134 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9135 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9136 | ac_cv_prog_HAVE_XSERVER="true" | |
9137 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9138 | break 2 | |
9139 | fi | |
9140 | done | |
9141 | done | |
9142 | IFS=$as_save_IFS | |
9143 | ||
9144 | test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false" | |
9145 | fi | |
9146 | fi | |
9147 | HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER | |
9148 | if test -n "$HAVE_XSERVER"; then | |
9149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5 | |
9150 | $as_echo "$HAVE_XSERVER" >&6; } | |
9151 | else | |
9152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9153 | $as_echo "no" >&6; } | |
9154 | fi | |
9155 | ||
9156 | ||
9157 | if test "$HAVE_XSERVER" = true || | |
9158 | test -n "$DISPLAY" || | |
9159 | test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then | |
2018939f | 9160 | as_fn_error $? "You seem to be running X, but no X development libraries |
067d23c9 KY |
9161 | were found. You should install the relevant development files for X |
9162 | and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make | |
9163 | sure you have development files for image handling, i.e. | |
9164 | tiff, gif, jpeg, png and xpm. | |
9165 | If you are sure you want Emacs compiled without X window support, pass | |
9166 | --without-x | |
9167 | to configure." "$LINENO" 5 | |
9168 | fi | |
9169 | fi | |
9170 | ||
9171 | ### If we're using X11, we should use the X menu package. | |
9172 | HAVE_MENUS=no | |
9173 | case ${HAVE_X11} in | |
9174 | yes ) HAVE_MENUS=yes ;; | |
9175 | esac | |
9176 | ||
9177 | # Do the opsystem or machine files prohibit the use of the GNU malloc? | |
9178 | # Assume not, until told otherwise. | |
9179 | GNU_MALLOC=yes | |
9180 | doug_lea_malloc=yes | |
9181 | ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state" | |
d6974efa | 9182 | if test "x$ac_cv_func_malloc_get_state" = xyes; then : |
067d23c9 KY |
9183 | |
9184 | else | |
9185 | doug_lea_malloc=no | |
9186 | fi | |
9187 | ||
9188 | ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state" | |
d6974efa | 9189 | if test "x$ac_cv_func_malloc_set_state" = xyes; then : |
067d23c9 KY |
9190 | |
9191 | else | |
9192 | doug_lea_malloc=no | |
9193 | fi | |
9194 | ||
9195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5 | |
9196 | $as_echo_n "checking whether __after_morecore_hook exists... " >&6; } | |
d6974efa | 9197 | if ${emacs_cv_var___after_morecore_hook+:} false; then : |
067d23c9 KY |
9198 | $as_echo_n "(cached) " >&6 |
9199 | else | |
9200 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9201 | /* end confdefs.h. */ | |
9202 | extern void (* __after_morecore_hook)(); | |
9203 | int | |
9204 | main () | |
9205 | { | |
9206 | __after_morecore_hook = 0 | |
9207 | ; | |
9208 | return 0; | |
9209 | } | |
9210 | _ACEOF | |
9211 | if ac_fn_c_try_link "$LINENO"; then : | |
9212 | emacs_cv_var___after_morecore_hook=yes | |
9213 | else | |
9214 | emacs_cv_var___after_morecore_hook=no | |
9215 | fi | |
9216 | rm -f core conftest.err conftest.$ac_objext \ | |
9217 | conftest$ac_exeext conftest.$ac_ext | |
9218 | fi | |
9219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5 | |
9220 | $as_echo "$emacs_cv_var___after_morecore_hook" >&6; } | |
9221 | if test $emacs_cv_var___after_morecore_hook = no; then | |
9222 | doug_lea_malloc=no | |
9223 | fi | |
9224 | ||
9225 | ||
9226 | system_malloc=no | |
9227 | case "$opsys" in | |
9228 | ## darwin ld insists on the use of malloc routines in the System framework. | |
9229 | darwin|sol2-10) system_malloc=yes ;; | |
9230 | esac | |
9231 | ||
9232 | if test "${system_malloc}" = "yes"; then | |
9233 | ||
9234 | $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h | |
9235 | ||
9236 | GNU_MALLOC=no | |
9237 | GNU_MALLOC_reason=" | |
9238 | (The GNU allocators don't work with this system configuration.)" | |
9239 | GMALLOC_OBJ= | |
9240 | VMLIMIT_OBJ= | |
9241 | else | |
9242 | test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o | |
9243 | VMLIMIT_OBJ=vm-limit.o | |
9244 | fi | |
9245 | ||
9246 | ||
9247 | ||
9248 | if test "$doug_lea_malloc" = "yes" ; then | |
9249 | if test "$GNU_MALLOC" = yes ; then | |
9250 | GNU_MALLOC_reason=" | |
9251 | (Using Doug Lea's new malloc from the GNU C Library.)" | |
9252 | fi | |
9253 | ||
9254 | $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h | |
9255 | ||
9256 | ||
9257 | ## Use mmap directly for allocating larger buffers. | |
9258 | ## FIXME this comes from src/s/{gnu,gnu-linux}.h: | |
9259 | ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif | |
9260 | ## Does the AC_FUNC_MMAP test below make this check unecessary? | |
9261 | case "$opsys" in | |
9262 | gnu*) REL_ALLOC=no ;; | |
9263 | esac | |
9264 | fi | |
9265 | ||
9266 | if test x"${REL_ALLOC}" = x; then | |
9267 | REL_ALLOC=${GNU_MALLOC} | |
9268 | fi | |
9269 | ||
9270 | use_mmap_for_buffers=no | |
9271 | case "$opsys" in | |
9272 | freebsd|irix6-5) use_mmap_for_buffers=yes ;; | |
9273 | esac | |
9274 | ||
9275 | ||
9276 | ||
9277 | ||
9278 | for ac_header in $ac_header_list | |
9279 | do : | |
9280 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9281 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
9282 | " | |
2018939f | 9283 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
067d23c9 KY |
9284 | cat >>confdefs.h <<_ACEOF |
9285 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9286 | _ACEOF | |
9287 | ||
9288 | fi | |
9289 | ||
9290 | done | |
9291 | ||
9292 | ||
9293 | ||
9294 | ||
9295 | ||
9296 | ||
9297 | ||
9298 | ||
9299 | for ac_func in getpagesize | |
9300 | do : | |
9301 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" | |
d6974efa | 9302 | if test "x$ac_cv_func_getpagesize" = xyes; then : |
067d23c9 KY |
9303 | cat >>confdefs.h <<_ACEOF |
9304 | #define HAVE_GETPAGESIZE 1 | |
9305 | _ACEOF | |
9306 | ||
9307 | fi | |
9308 | done | |
9309 | ||
9310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 | |
9311 | $as_echo_n "checking for working mmap... " >&6; } | |
d6974efa | 9312 | if ${ac_cv_func_mmap_fixed_mapped+:} false; then : |
067d23c9 KY |
9313 | $as_echo_n "(cached) " >&6 |
9314 | else | |
9315 | if test "$cross_compiling" = yes; then : | |
9316 | ac_cv_func_mmap_fixed_mapped=no | |
9317 | else | |
9318 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9319 | /* end confdefs.h. */ | |
9320 | $ac_includes_default | |
9321 | /* malloc might have been renamed as rpl_malloc. */ | |
9322 | #undef malloc | |
9323 | ||
9324 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
9325 | Here is a matrix of mmap possibilities: | |
9326 | mmap private not fixed | |
9327 | mmap private fixed at somewhere currently unmapped | |
9328 | mmap private fixed at somewhere already mapped | |
9329 | mmap shared not fixed | |
9330 | mmap shared fixed at somewhere currently unmapped | |
9331 | mmap shared fixed at somewhere already mapped | |
9332 | For private mappings, we should verify that changes cannot be read() | |
9333 | back from the file, nor mmap's back from the file at a different | |
9334 | address. (There have been systems where private was not correctly | |
9335 | implemented like the infamous i386 svr4.0, and systems where the | |
9336 | VM page cache was not coherent with the file system buffer cache | |
9337 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
9338 | For shared mappings, we should conversely verify that changes get | |
9339 | propagated back to all the places they're supposed to be. | |
9340 | ||
9341 | Grep wants private fixed already mapped. | |
9342 | The main things grep needs to know about mmap are: | |
9343 | * does it exist and is it safe to write into the mmap'd area | |
9344 | * how to use it (BSD variants) */ | |
9345 | ||
9346 | #include <fcntl.h> | |
9347 | #include <sys/mman.h> | |
9348 | ||
9349 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H | |
9350 | char *malloc (); | |
9351 | #endif | |
9352 | ||
9353 | /* This mess was copied from the GNU getpagesize.h. */ | |
9354 | #ifndef HAVE_GETPAGESIZE | |
9355 | # ifdef _SC_PAGESIZE | |
9356 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
9357 | # else /* no _SC_PAGESIZE */ | |
9358 | # ifdef HAVE_SYS_PARAM_H | |
9359 | # include <sys/param.h> | |
9360 | # ifdef EXEC_PAGESIZE | |
9361 | # define getpagesize() EXEC_PAGESIZE | |
9362 | # else /* no EXEC_PAGESIZE */ | |
9363 | # ifdef NBPG | |
9364 | # define getpagesize() NBPG * CLSIZE | |
9365 | # ifndef CLSIZE | |
9366 | # define CLSIZE 1 | |
9367 | # endif /* no CLSIZE */ | |
9368 | # else /* no NBPG */ | |
9369 | # ifdef NBPC | |
9370 | # define getpagesize() NBPC | |
9371 | # else /* no NBPC */ | |
9372 | # ifdef PAGESIZE | |
9373 | # define getpagesize() PAGESIZE | |
9374 | # endif /* PAGESIZE */ | |
9375 | # endif /* no NBPC */ | |
9376 | # endif /* no NBPG */ | |
9377 | # endif /* no EXEC_PAGESIZE */ | |
9378 | # else /* no HAVE_SYS_PARAM_H */ | |
9379 | # define getpagesize() 8192 /* punt totally */ | |
9380 | # endif /* no HAVE_SYS_PARAM_H */ | |
9381 | # endif /* no _SC_PAGESIZE */ | |
9382 | ||
9383 | #endif /* no HAVE_GETPAGESIZE */ | |
9384 | ||
9385 | int | |
9386 | main () | |
9387 | { | |
9388 | char *data, *data2, *data3; | |
2018939f | 9389 | const char *cdata2; |
067d23c9 KY |
9390 | int i, pagesize; |
9391 | int fd, fd2; | |
9392 | ||
9393 | pagesize = getpagesize (); | |
9394 | ||
9395 | /* First, make a file with some known garbage in it. */ | |
9396 | data = (char *) malloc (pagesize); | |
9397 | if (!data) | |
9398 | return 1; | |
9399 | for (i = 0; i < pagesize; ++i) | |
9400 | *(data + i) = rand (); | |
9401 | umask (0); | |
9402 | fd = creat ("conftest.mmap", 0600); | |
9403 | if (fd < 0) | |
9404 | return 2; | |
9405 | if (write (fd, data, pagesize) != pagesize) | |
9406 | return 3; | |
9407 | close (fd); | |
9408 | ||
9409 | /* Next, check that the tail of a page is zero-filled. File must have | |
9410 | non-zero length, otherwise we risk SIGBUS for entire page. */ | |
9411 | fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); | |
9412 | if (fd2 < 0) | |
9413 | return 4; | |
2018939f AS |
9414 | cdata2 = ""; |
9415 | if (write (fd2, cdata2, 1) != 1) | |
067d23c9 | 9416 | return 5; |
2018939f | 9417 | data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); |
067d23c9 KY |
9418 | if (data2 == MAP_FAILED) |
9419 | return 6; | |
9420 | for (i = 0; i < pagesize; ++i) | |
9421 | if (*(data2 + i)) | |
9422 | return 7; | |
9423 | close (fd2); | |
9424 | if (munmap (data2, pagesize)) | |
9425 | return 8; | |
9426 | ||
9427 | /* Next, try to mmap the file at a fixed address which already has | |
9428 | something else allocated at it. If we can, also make sure that | |
9429 | we see the same garbage. */ | |
9430 | fd = open ("conftest.mmap", O_RDWR); | |
9431 | if (fd < 0) | |
9432 | return 9; | |
9433 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
9434 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
9435 | return 10; | |
9436 | for (i = 0; i < pagesize; ++i) | |
9437 | if (*(data + i) != *(data2 + i)) | |
9438 | return 11; | |
9439 | ||
9440 | /* Finally, make sure that changes to the mapped area do not | |
9441 | percolate back to the file as seen by read(). (This is a bug on | |
9442 | some variants of i386 svr4.0.) */ | |
9443 | for (i = 0; i < pagesize; ++i) | |
9444 | *(data2 + i) = *(data2 + i) + 1; | |
9445 | data3 = (char *) malloc (pagesize); | |
9446 | if (!data3) | |
9447 | return 12; | |
9448 | if (read (fd, data3, pagesize) != pagesize) | |
9449 | return 13; | |
9450 | for (i = 0; i < pagesize; ++i) | |
9451 | if (*(data + i) != *(data3 + i)) | |
9452 | return 14; | |
9453 | close (fd); | |
9454 | return 0; | |
9455 | } | |
9456 | _ACEOF | |
9457 | if ac_fn_c_try_run "$LINENO"; then : | |
9458 | ac_cv_func_mmap_fixed_mapped=yes | |
9459 | else | |
9460 | ac_cv_func_mmap_fixed_mapped=no | |
9461 | fi | |
9462 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
9463 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
9464 | fi | |
9465 | ||
9466 | fi | |
9467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 | |
9468 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
9469 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
9470 | ||
9471 | $as_echo "#define HAVE_MMAP 1" >>confdefs.h | |
9472 | ||
9473 | fi | |
9474 | rm -f conftest.mmap conftest.txt | |
9475 | ||
9476 | if test $use_mmap_for_buffers = yes; then | |
9477 | ||
9478 | $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h | |
9479 | ||
9480 | REL_ALLOC=no | |
9481 | fi | |
9482 | ||
9483 | LIBS="$LIBS_SYSTEM $LIBS" | |
9484 | ||
9485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 | |
9486 | $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } | |
d6974efa | 9487 | if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : |
067d23c9 KY |
9488 | $as_echo_n "(cached) " >&6 |
9489 | else | |
9490 | ac_check_lib_save_LIBS=$LIBS | |
9491 | LIBS="-ldnet $LIBS" | |
9492 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9493 | /* end confdefs.h. */ | |
9494 | ||
9495 | /* Override any GCC internal prototype to avoid an error. | |
9496 | Use char because int might match the return type of a GCC | |
9497 | builtin and then its argument prototype would still apply. */ | |
9498 | #ifdef __cplusplus | |
9499 | extern "C" | |
9500 | #endif | |
9501 | char dnet_ntoa (); | |
9502 | int | |
9503 | main () | |
9504 | { | |
9505 | return dnet_ntoa (); | |
9506 | ; | |
9507 | return 0; | |
9508 | } | |
9509 | _ACEOF | |
9510 | if ac_fn_c_try_link "$LINENO"; then : | |
9511 | ac_cv_lib_dnet_dnet_ntoa=yes | |
9512 | else | |
9513 | ac_cv_lib_dnet_dnet_ntoa=no | |
9514 | fi | |
9515 | rm -f core conftest.err conftest.$ac_objext \ | |
9516 | conftest$ac_exeext conftest.$ac_ext | |
9517 | LIBS=$ac_check_lib_save_LIBS | |
9518 | fi | |
9519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
9520 | $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } | |
d6974efa | 9521 | if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : |
067d23c9 KY |
9522 | cat >>confdefs.h <<_ACEOF |
9523 | #define HAVE_LIBDNET 1 | |
9524 | _ACEOF | |
9525 | ||
9526 | LIBS="-ldnet $LIBS" | |
9527 | ||
9528 | fi | |
9529 | ||
9530 | ||
9531 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5 | |
9532 | $as_echo_n "checking for main in -lXbsd... " >&6; } | |
d6974efa | 9533 | if ${ac_cv_lib_Xbsd_main+:} false; then : |
067d23c9 KY |
9534 | $as_echo_n "(cached) " >&6 |
9535 | else | |
9536 | ac_check_lib_save_LIBS=$LIBS | |
9537 | LIBS="-lXbsd $LIBS" | |
9538 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9539 | /* end confdefs.h. */ | |
9540 | ||
9541 | ||
9542 | int | |
9543 | main () | |
9544 | { | |
9545 | return main (); | |
9546 | ; | |
9547 | return 0; | |
9548 | } | |
9549 | _ACEOF | |
9550 | if ac_fn_c_try_link "$LINENO"; then : | |
9551 | ac_cv_lib_Xbsd_main=yes | |
9552 | else | |
9553 | ac_cv_lib_Xbsd_main=no | |
9554 | fi | |
9555 | rm -f core conftest.err conftest.$ac_objext \ | |
9556 | conftest$ac_exeext conftest.$ac_ext | |
9557 | LIBS=$ac_check_lib_save_LIBS | |
9558 | fi | |
9559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5 | |
9560 | $as_echo "$ac_cv_lib_Xbsd_main" >&6; } | |
d6974efa | 9561 | if test "x$ac_cv_lib_Xbsd_main" = xyes; then : |
067d23c9 KY |
9562 | LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd" |
9563 | fi | |
9564 | ||
9565 | ||
9566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5 | |
9567 | $as_echo_n "checking for cma_open in -lpthreads... " >&6; } | |
d6974efa | 9568 | if ${ac_cv_lib_pthreads_cma_open+:} false; then : |
067d23c9 KY |
9569 | $as_echo_n "(cached) " >&6 |
9570 | else | |
9571 | ac_check_lib_save_LIBS=$LIBS | |
9572 | LIBS="-lpthreads $LIBS" | |
9573 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9574 | /* end confdefs.h. */ | |
9575 | ||
9576 | /* Override any GCC internal prototype to avoid an error. | |
9577 | Use char because int might match the return type of a GCC | |
9578 | builtin and then its argument prototype would still apply. */ | |
9579 | #ifdef __cplusplus | |
9580 | extern "C" | |
9581 | #endif | |
9582 | char cma_open (); | |
9583 | int | |
9584 | main () | |
9585 | { | |
9586 | return cma_open (); | |
9587 | ; | |
9588 | return 0; | |
9589 | } | |
9590 | _ACEOF | |
9591 | if ac_fn_c_try_link "$LINENO"; then : | |
9592 | ac_cv_lib_pthreads_cma_open=yes | |
9593 | else | |
9594 | ac_cv_lib_pthreads_cma_open=no | |
9595 | fi | |
9596 | rm -f core conftest.err conftest.$ac_objext \ | |
9597 | conftest$ac_exeext conftest.$ac_ext | |
9598 | LIBS=$ac_check_lib_save_LIBS | |
9599 | fi | |
9600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5 | |
9601 | $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; } | |
d6974efa | 9602 | if test "x$ac_cv_lib_pthreads_cma_open" = xyes; then : |
067d23c9 KY |
9603 | cat >>confdefs.h <<_ACEOF |
9604 | #define HAVE_LIBPTHREADS 1 | |
9605 | _ACEOF | |
9606 | ||
9607 | LIBS="-lpthreads $LIBS" | |
9608 | ||
9609 | fi | |
9610 | ||
9611 | ||
9612 | ## Note: when using cpp in s/aix4.2.h, this definition depended on | |
9613 | ## HAVE_LIBPTHREADS. That was not defined earlier in configure when | |
9614 | ## the system file was sourced. Hence the value of LIBS_SYSTEM | |
9615 | ## added to LIBS in configure would never contain the pthreads part, | |
9616 | ## but the value used in Makefiles might. FIXME? | |
9617 | ## | |
9618 | ## -lpthreads seems to be necessary for Xlib in X11R6, and should | |
9619 | ## be harmless on older versions of X where it happens to exist. | |
9620 | test "$opsys" = "aix4-2" && \ | |
9621 | test $ac_cv_lib_pthreads_cma_open = yes && \ | |
9622 | LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads" | |
9623 | ||
9624 | ||
9625 | case ${host_os} in | |
9626 | aix*) | |
9627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5 | |
9628 | $as_echo_n "checking for -bbigtoc option... " >&6; } | |
d6974efa | 9629 | if ${gdb_cv_bigtoc+:} false; then : |
067d23c9 KY |
9630 | $as_echo_n "(cached) " >&6 |
9631 | else | |
9632 | ||
9633 | case $GCC in | |
9634 | yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;; | |
9635 | *) gdb_cv_bigtoc=-bbigtoc ;; | |
9636 | esac | |
9637 | ||
9638 | LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc | |
9639 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9640 | /* end confdefs.h. */ | |
9641 | ||
9642 | int | |
9643 | main () | |
9644 | { | |
9645 | int i; | |
9646 | ; | |
9647 | return 0; | |
9648 | } | |
9649 | _ACEOF | |
9650 | if ac_fn_c_try_link "$LINENO"; then : | |
9651 | ||
9652 | else | |
9653 | gdb_cv_bigtoc= | |
9654 | fi | |
9655 | rm -f core conftest.err conftest.$ac_objext \ | |
9656 | conftest$ac_exeext conftest.$ac_ext | |
9657 | ||
9658 | fi | |
9659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5 | |
9660 | $as_echo "$gdb_cv_bigtoc" >&6; } | |
9661 | ;; | |
9662 | esac | |
9663 | ||
9664 | # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets | |
9665 | # used for the tests that follow. We set them back to REAL_CFLAGS and | |
9666 | # REAL_CPPFLAGS later on. | |
9667 | ||
9668 | REAL_CFLAGS="$CFLAGS" | |
9669 | REAL_CPPFLAGS="$CPPFLAGS" | |
9670 | ||
9671 | if test "${HAVE_X11}" = "yes"; then | |
9672 | DEFS="$C_SWITCH_X_SITE $DEFS" | |
9673 | LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE" | |
9674 | LIBS="-lX11 $LIBS" | |
9675 | CFLAGS="$C_SWITCH_X_SITE $CFLAGS" | |
9676 | CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS" | |
9677 | ||
9678 | # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests. | |
9679 | # This is handled by LD_SWITCH_X_SITE_AUX during the real build, | |
9680 | # but it's more convenient here to set LD_RUN_PATH | |
9681 | # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX. | |
9682 | if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then | |
9683 | LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH | |
9684 | export LD_RUN_PATH | |
9685 | fi | |
9686 | ||
9687 | if test "${opsys}" = "gnu-linux"; then | |
9688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5 | |
9689 | $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; } | |
9690 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9691 | /* end confdefs.h. */ | |
9692 | ||
9693 | int | |
9694 | main () | |
9695 | { | |
9696 | XOpenDisplay ("foo"); | |
9697 | ; | |
9698 | return 0; | |
9699 | } | |
9700 | _ACEOF | |
9701 | if ac_fn_c_try_link "$LINENO"; then : | |
9702 | xlinux_first_failure=no | |
9703 | else | |
9704 | xlinux_first_failure=yes | |
9705 | fi | |
9706 | rm -f core conftest.err conftest.$ac_objext \ | |
9707 | conftest$ac_exeext conftest.$ac_ext | |
9708 | if test "${xlinux_first_failure}" = "yes"; then | |
9709 | OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE" | |
9710 | OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE" | |
9711 | OLD_CPPFLAGS="$CPPFLAGS" | |
9712 | OLD_LIBS="$LIBS" | |
9713 | LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout" | |
9714 | C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" | |
9715 | CPPFLAGS="$CPPFLAGS -b i486-linuxaout" | |
9716 | LIBS="$LIBS -b i486-linuxaout" | |
9717 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9718 | /* end confdefs.h. */ | |
9719 | ||
9720 | int | |
9721 | main () | |
9722 | { | |
9723 | XOpenDisplay ("foo"); | |
9724 | ; | |
9725 | return 0; | |
9726 | } | |
9727 | _ACEOF | |
9728 | if ac_fn_c_try_link "$LINENO"; then : | |
9729 | xlinux_second_failure=no | |
9730 | else | |
9731 | xlinux_second_failure=yes | |
9732 | fi | |
9733 | rm -f core conftest.err conftest.$ac_objext \ | |
9734 | conftest$ac_exeext conftest.$ac_ext | |
9735 | if test "${xlinux_second_failure}" = "yes"; then | |
9736 | # If we get the same failure with -b, there is no use adding -b. | |
9737 | # So take it out. This plays safe. | |
9738 | LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE" | |
9739 | C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE" | |
9740 | CPPFLAGS="$OLD_CPPFLAGS" | |
9741 | LIBS="$OLD_LIBS" | |
9742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9743 | $as_echo "no" >&6; } | |
9744 | else | |
9745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
9746 | $as_echo "yes" >&6; } | |
9747 | fi | |
9748 | else | |
9749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9750 | $as_echo "no" >&6; } | |
9751 | fi | |
9752 | fi | |
9753 | ||
9754 | # Reportedly, some broken Solaris systems have XKBlib.h but are missing | |
9755 | # header files included from there. | |
9756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5 | |
9757 | $as_echo_n "checking for Xkb... " >&6; } | |
9758 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9759 | /* end confdefs.h. */ | |
9760 | #include <X11/Xlib.h> | |
9761 | #include <X11/XKBlib.h> | |
9762 | int | |
9763 | main () | |
9764 | { | |
9765 | XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd); | |
9766 | ; | |
9767 | return 0; | |
9768 | } | |
9769 | _ACEOF | |
9770 | if ac_fn_c_try_link "$LINENO"; then : | |
9771 | emacs_xkb=yes | |
9772 | else | |
9773 | emacs_xkb=no | |
9774 | fi | |
9775 | rm -f core conftest.err conftest.$ac_objext \ | |
9776 | conftest$ac_exeext conftest.$ac_ext | |
9777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5 | |
9778 | $as_echo "$emacs_xkb" >&6; } | |
9779 | if test $emacs_xkb = yes; then | |
9780 | ||
9781 | $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h | |
9782 | ||
9783 | fi | |
9784 | ||
9785 | for ac_func in XrmSetDatabase XScreenResourceString \ | |
9786 | XScreenNumberOfScreen XSetWMProtocols | |
9787 | do : | |
9788 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
9789 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
2018939f | 9790 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
067d23c9 KY |
9791 | cat >>confdefs.h <<_ACEOF |
9792 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9793 | _ACEOF | |
9794 | ||
9795 | fi | |
9796 | done | |
9797 | ||
9798 | fi | |
9799 | ||
9800 | if test "${window_system}" = "x11"; then | |
9801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5 | |
9802 | $as_echo_n "checking X11 version 6... " >&6; } | |
d6974efa | 9803 | if ${emacs_cv_x11_version_6+:} false; then : |
067d23c9 KY |
9804 | $as_echo_n "(cached) " >&6 |
9805 | else | |
9806 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9807 | /* end confdefs.h. */ | |
9808 | #include <X11/Xlib.h> | |
9809 | int | |
9810 | main () | |
9811 | { | |
9812 | #if XlibSpecificationRelease < 6 | |
9813 | fail; | |
9814 | #endif | |
9815 | ||
9816 | ; | |
9817 | return 0; | |
9818 | } | |
9819 | _ACEOF | |
9820 | if ac_fn_c_try_link "$LINENO"; then : | |
9821 | emacs_cv_x11_version_6=yes | |
9822 | else | |
9823 | emacs_cv_x11_version_6=no | |
9824 | fi | |
9825 | rm -f core conftest.err conftest.$ac_objext \ | |
9826 | conftest$ac_exeext conftest.$ac_ext | |
9827 | fi | |
9828 | ||
9829 | if test $emacs_cv_x11_version_6 = yes; then | |
9830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5 | |
9831 | $as_echo "6 or newer" >&6; } | |
9832 | ||
9833 | $as_echo "#define HAVE_X11R6 1" >>confdefs.h | |
9834 | ||
9835 | ||
9836 | $as_echo "#define HAVE_X_I18N 1" >>confdefs.h | |
9837 | ||
9838 | ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style | |
9839 | ## XIM support. | |
9840 | case "$opsys" in | |
9841 | sol2-*) : ;; | |
9842 | *) | |
9843 | $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h | |
9844 | ||
9845 | ;; | |
9846 | esac | |
9847 | else | |
9848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5 | |
9849 | $as_echo "before 6" >&6; } | |
9850 | fi | |
9851 | fi | |
9852 | ||
9853 | ||
9854 | ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified. | |
9855 | HAVE_RSVG=no | |
9856 | if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then | |
9857 | if test "${with_rsvg}" != "no"; then | |
9858 | RSVG_REQUIRED=2.11.0 | |
9859 | RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED" | |
9860 | ||
9861 | ||
9862 | succeeded=no | |
9863 | ||
9864 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
9865 | set dummy pkg-config; ac_word=$2 | |
9866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9867 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6974efa | 9868 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
067d23c9 KY |
9869 | $as_echo_n "(cached) " >&6 |
9870 | else | |
9871 | case $PKG_CONFIG in | |
9872 | [\\/]* | ?:[\\/]*) | |
9873 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
9874 | ;; | |
9875 | *) | |
9876 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9877 | for as_dir in $PATH | |
9878 | do | |
9879 | IFS=$as_save_IFS | |
9880 | test -z "$as_dir" && as_dir=. | |
9881 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9882 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9883 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
9884 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9885 | break 2 | |
9886 | fi | |
9887 | done | |
9888 | done | |
9889 | IFS=$as_save_IFS | |
9890 | ||
9891 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
9892 | ;; | |
9893 | esac | |
9894 | fi | |
9895 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
9896 | if test -n "$PKG_CONFIG"; then | |
9897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
9898 | $as_echo "$PKG_CONFIG" >&6; } | |
9899 | else | |
9900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9901 | $as_echo "no" >&6; } | |
9902 | fi | |
9903 | ||
9904 | ||
9905 | ||
9906 | if test "$PKG_CONFIG" = "no" ; then | |
9907 | : | |
9908 | else | |
9909 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
9910 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
9911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5 | |
9912 | $as_echo_n "checking for $RSVG_MODULE... " >&6; } | |
9913 | ||
9914 | if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then | |
9915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
9916 | $as_echo "yes" >&6; } | |
9917 | succeeded=yes | |
9918 | ||
9919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5 | |
9920 | $as_echo_n "checking RSVG_CFLAGS... " >&6; } | |
9921 | RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'` | |
9922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5 | |
9923 | $as_echo "$RSVG_CFLAGS" >&6; } | |
9924 | ||
9925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5 | |
9926 | $as_echo_n "checking RSVG_LIBS... " >&6; } | |
9927 | RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'` | |
9928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5 | |
9929 | $as_echo "$RSVG_LIBS" >&6; } | |
9930 | else | |
9931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9932 | $as_echo "no" >&6; } | |
9933 | RSVG_CFLAGS="" | |
9934 | RSVG_LIBS="" | |
9935 | ## If we have a custom action on failure, don't print errors, but | |
9936 | ## do set a variable so people can do so. | |
9937 | RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"` | |
9938 | ||
9939 | fi | |
9940 | ||
9941 | ||
9942 | ||
9943 | else | |
9944 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
9945 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
9946 | fi | |
9947 | fi | |
9948 | ||
9949 | if test $succeeded = yes; then | |
9950 | HAVE_RSVG=yes | |
9951 | else | |
9952 | : | |
9953 | fi | |
9954 | ||
9955 | ||
9956 | ||
9957 | ||
9958 | if test $HAVE_RSVG = yes; then | |
9959 | ||
9960 | $as_echo "#define HAVE_RSVG 1" >>confdefs.h | |
9961 | ||
9962 | CFLAGS="$CFLAGS $RSVG_CFLAGS" | |
9963 | LIBS="$RSVG_LIBS $LIBS" | |
9964 | fi | |
9965 | fi | |
9966 | fi | |
9967 | ||
9968 | HAVE_IMAGEMAGICK=no | |
9969 | if test "${HAVE_X11}" = "yes"; then | |
9970 | if test "${with_imagemagick}" != "no"; then | |
9971 | IMAGEMAGICK_MODULE="Wand" | |
9972 | ||
9973 | succeeded=no | |
9974 | ||
9975 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
9976 | set dummy pkg-config; ac_word=$2 | |
9977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9978 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6974efa | 9979 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
067d23c9 KY |
9980 | $as_echo_n "(cached) " >&6 |
9981 | else | |
9982 | case $PKG_CONFIG in | |
9983 | [\\/]* | ?:[\\/]*) | |
9984 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
9985 | ;; | |
9986 | *) | |
9987 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9988 | for as_dir in $PATH | |
9989 | do | |
9990 | IFS=$as_save_IFS | |
9991 | test -z "$as_dir" && as_dir=. | |
9992 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9993 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9994 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
9995 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9996 | break 2 | |
9997 | fi | |
9998 | done | |
9999 | done | |
10000 | IFS=$as_save_IFS | |
10001 | ||
10002 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
10003 | ;; | |
10004 | esac | |
10005 | fi | |
10006 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
10007 | if test -n "$PKG_CONFIG"; then | |
10008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
10009 | $as_echo "$PKG_CONFIG" >&6; } | |
10010 | else | |
10011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10012 | $as_echo "no" >&6; } | |
10013 | fi | |
10014 | ||
10015 | ||
10016 | ||
10017 | if test "$PKG_CONFIG" = "no" ; then | |
10018 | : | |
10019 | else | |
10020 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
10021 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
10022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5 | |
10023 | $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; } | |
10024 | ||
10025 | if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then | |
10026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10027 | $as_echo "yes" >&6; } | |
10028 | succeeded=yes | |
10029 | ||
10030 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5 | |
10031 | $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; } | |
10032 | IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'` | |
10033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5 | |
10034 | $as_echo "$IMAGEMAGICK_CFLAGS" >&6; } | |
10035 | ||
10036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5 | |
10037 | $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; } | |
10038 | IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'` | |
10039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5 | |
10040 | $as_echo "$IMAGEMAGICK_LIBS" >&6; } | |
10041 | else | |
10042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10043 | $as_echo "no" >&6; } | |
10044 | IMAGEMAGICK_CFLAGS="" | |
10045 | IMAGEMAGICK_LIBS="" | |
10046 | ## If we have a custom action on failure, don't print errors, but | |
10047 | ## do set a variable so people can do so. | |
10048 | IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"` | |
10049 | ||
10050 | fi | |
10051 | ||
10052 | ||
10053 | ||
10054 | else | |
10055 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
10056 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
10057 | fi | |
10058 | fi | |
10059 | ||
10060 | if test $succeeded = yes; then | |
10061 | HAVE_IMAGEMAGICK=yes | |
10062 | else | |
10063 | : | |
10064 | fi | |
10065 | ||
10066 | ||
10067 | ||
10068 | ||
10069 | if test $HAVE_IMAGEMAGICK = yes; then | |
10070 | ||
10071 | $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h | |
10072 | ||
10073 | CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS" | |
10074 | LIBS="$IMAGEMAGICK_LIBS $LIBS" | |
10075 | for ac_func in MagickExportImagePixels | |
10076 | do : | |
10077 | ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels" | |
d6974efa | 10078 | if test "x$ac_cv_func_MagickExportImagePixels" = xyes; then : |
067d23c9 KY |
10079 | cat >>confdefs.h <<_ACEOF |
10080 | #define HAVE_MAGICKEXPORTIMAGEPIXELS 1 | |
10081 | _ACEOF | |
10082 | ||
10083 | fi | |
10084 | done | |
10085 | ||
10086 | fi | |
10087 | fi | |
10088 | fi | |
10089 | ||
10090 | ||
10091 | HAVE_GTK=no | |
10092 | if test "${with_gtk3}" = "yes"; then | |
10093 | GLIB_REQUIRED=2.6 | |
10094 | GTK_REQUIRED=2.90 | |
10095 | GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED" | |
10096 | ||
10097 | ||
10098 | succeeded=no | |
10099 | ||
10100 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
10101 | set dummy pkg-config; ac_word=$2 | |
10102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10103 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6974efa | 10104 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
067d23c9 KY |
10105 | $as_echo_n "(cached) " >&6 |
10106 | else | |
10107 | case $PKG_CONFIG in | |
10108 | [\\/]* | ?:[\\/]*) | |
10109 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
10110 | ;; | |
10111 | *) | |
10112 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10113 | for as_dir in $PATH | |
10114 | do | |
10115 | IFS=$as_save_IFS | |
10116 | test -z "$as_dir" && as_dir=. | |
10117 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10118 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10119 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
10120 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10121 | break 2 | |
10122 | fi | |
10123 | done | |
10124 | done | |
10125 | IFS=$as_save_IFS | |
10126 | ||
10127 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
10128 | ;; | |
10129 | esac | |
10130 | fi | |
10131 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
10132 | if test -n "$PKG_CONFIG"; then | |
10133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
10134 | $as_echo "$PKG_CONFIG" >&6; } | |
10135 | else | |
10136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10137 | $as_echo "no" >&6; } | |
10138 | fi | |
10139 | ||
10140 | ||
10141 | ||
10142 | if test "$PKG_CONFIG" = "no" ; then | |
10143 | pkg_check_gtk=no | |
10144 | else | |
10145 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
10146 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
10147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5 | |
10148 | $as_echo_n "checking for $GTK_MODULES... " >&6; } | |
10149 | ||
10150 | if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then | |
10151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10152 | $as_echo "yes" >&6; } | |
10153 | succeeded=yes | |
10154 | ||
10155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5 | |
10156 | $as_echo_n "checking GTK_CFLAGS... " >&6; } | |
10157 | GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'` | |
10158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5 | |
10159 | $as_echo "$GTK_CFLAGS" >&6; } | |
10160 | ||
10161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5 | |
10162 | $as_echo_n "checking GTK_LIBS... " >&6; } | |
10163 | GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'` | |
10164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5 | |
10165 | $as_echo "$GTK_LIBS" >&6; } | |
10166 | else | |
10167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10168 | $as_echo "no" >&6; } | |
10169 | GTK_CFLAGS="" | |
10170 | GTK_LIBS="" | |
10171 | ## If we have a custom action on failure, don't print errors, but | |
10172 | ## do set a variable so people can do so. | |
10173 | GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"` | |
10174 | ||
10175 | fi | |
10176 | ||
10177 | ||
10178 | ||
10179 | else | |
10180 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
10181 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
10182 | fi | |
10183 | fi | |
10184 | ||
10185 | if test $succeeded = yes; then | |
10186 | pkg_check_gtk=yes | |
10187 | else | |
10188 | pkg_check_gtk=no | |
10189 | fi | |
10190 | ||
10191 | if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then | |
2018939f | 10192 | as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5 |
067d23c9 KY |
10193 | fi |
10194 | fi | |
10195 | ||
10196 | if test "$pkg_check_gtk" != "yes"; then | |
10197 | HAVE_GTK=no | |
10198 | if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then | |
10199 | GLIB_REQUIRED=2.6 | |
10200 | GTK_REQUIRED=2.6 | |
10201 | GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED" | |
10202 | ||
10203 | ||
10204 | succeeded=no | |
10205 | ||
10206 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
10207 | set dummy pkg-config; ac_word=$2 | |
10208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10209 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6974efa | 10210 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
067d23c9 KY |
10211 | $as_echo_n "(cached) " >&6 |
10212 | else | |
10213 | case $PKG_CONFIG in | |
10214 | [\\/]* | ?:[\\/]*) | |
10215 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
10216 | ;; | |
10217 | *) | |
10218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10219 | for as_dir in $PATH | |
10220 | do | |
10221 | IFS=$as_save_IFS | |
10222 | test -z "$as_dir" && as_dir=. | |
10223 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10224 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10225 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
10226 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10227 | break 2 | |
10228 | fi | |
10229 | done | |
10230 | done | |
10231 | IFS=$as_save_IFS | |
10232 | ||
10233 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
10234 | ;; | |
10235 | esac | |
10236 | fi | |
10237 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
10238 | if test -n "$PKG_CONFIG"; then | |
10239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
10240 | $as_echo "$PKG_CONFIG" >&6; } | |
10241 | else | |
10242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10243 | $as_echo "no" >&6; } | |
10244 | fi | |
10245 | ||
10246 | ||
10247 | ||
10248 | if test "$PKG_CONFIG" = "no" ; then | |
10249 | pkg_check_gtk=no | |
10250 | else | |
10251 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
10252 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
10253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5 | |
10254 | $as_echo_n "checking for $GTK_MODULES... " >&6; } | |
10255 | ||
10256 | if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then | |
10257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10258 | $as_echo "yes" >&6; } | |
10259 | succeeded=yes | |
10260 | ||
10261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5 | |
10262 | $as_echo_n "checking GTK_CFLAGS... " >&6; } | |
10263 | GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'` | |
10264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5 | |
10265 | $as_echo "$GTK_CFLAGS" >&6; } | |
10266 | ||
10267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5 | |
10268 | $as_echo_n "checking GTK_LIBS... " >&6; } | |
10269 | GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'` | |
10270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5 | |
10271 | $as_echo "$GTK_LIBS" >&6; } | |
10272 | else | |
10273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10274 | $as_echo "no" >&6; } | |
10275 | GTK_CFLAGS="" | |
10276 | GTK_LIBS="" | |
10277 | ## If we have a custom action on failure, don't print errors, but | |
10278 | ## do set a variable so people can do so. | |
10279 | GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"` | |
10280 | ||
10281 | fi | |
10282 | ||
10283 | ||
10284 | ||
10285 | else | |
10286 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
10287 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
10288 | fi | |
10289 | fi | |
10290 | ||
10291 | if test $succeeded = yes; then | |
10292 | pkg_check_gtk=yes | |
10293 | else | |
10294 | pkg_check_gtk=no | |
10295 | fi | |
10296 | ||
10297 | if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then | |
2018939f | 10298 | as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5 |
067d23c9 KY |
10299 | fi |
10300 | fi | |
10301 | fi | |
10302 | ||
10303 | GTK_OBJ= | |
10304 | if test x"$pkg_check_gtk" = xyes; then | |
10305 | ||
10306 | ||
10307 | ||
10308 | C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS" | |
10309 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10310 | LIBS="$GTK_LIBS $LIBS" | |
10311 | GTK_COMPILES=no | |
10312 | for ac_func in gtk_main | |
10313 | do : | |
10314 | ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main" | |
d6974efa | 10315 | if test "x$ac_cv_func_gtk_main" = xyes; then : |
067d23c9 KY |
10316 | cat >>confdefs.h <<_ACEOF |
10317 | #define HAVE_GTK_MAIN 1 | |
10318 | _ACEOF | |
10319 | GTK_COMPILES=yes | |
10320 | fi | |
10321 | done | |
10322 | ||
10323 | if test "${GTK_COMPILES}" != "yes"; then | |
10324 | if test "$USE_X_TOOLKIT" != "maybe"; then | |
d6974efa | 10325 | as_fn_error $? "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5; |
067d23c9 KY |
10326 | fi |
10327 | else | |
10328 | HAVE_GTK=yes | |
10329 | ||
10330 | $as_echo "#define USE_GTK 1" >>confdefs.h | |
10331 | ||
10332 | GTK_OBJ=gtkutil.o | |
10333 | USE_X_TOOLKIT=none | |
10334 | if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then | |
10335 | : | |
10336 | else | |
10337 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with | |
10338 | closing open displays. This is no problem if you just use | |
10339 | one display, but if you use more than one and close one of them | |
10340 | Emacs may crash." >&5 | |
10341 | $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with | |
10342 | closing open displays. This is no problem if you just use | |
10343 | one display, but if you use more than one and close one of them | |
10344 | Emacs may crash." >&2;} | |
10345 | sleep 3 | |
10346 | fi | |
10347 | fi | |
10348 | ||
10349 | fi | |
10350 | ||
10351 | ||
10352 | ||
10353 | if test "${HAVE_GTK}" = "yes"; then | |
10354 | ||
10355 | if test "$with_toolkit_scroll_bars" != no; then | |
10356 | with_toolkit_scroll_bars=yes | |
10357 | fi | |
10358 | ||
10359 | HAVE_GTK_FILE_SELECTION=no | |
10360 | ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default | |
10361 | #include <gtk/gtk.h> | |
10362 | " | |
d6974efa | 10363 | if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = xyes; then : |
067d23c9 KY |
10364 | HAVE_GTK_FILE_SELECTION=yes |
10365 | else | |
10366 | HAVE_GTK_FILE_SELECTION=no | |
10367 | fi | |
10368 | ||
10369 | if test "$HAVE_GTK_FILE_SELECTION" = yes; then | |
10370 | for ac_func in gtk_file_selection_new | |
10371 | do : | |
10372 | ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new" | |
d6974efa | 10373 | if test "x$ac_cv_func_gtk_file_selection_new" = xyes; then : |
067d23c9 KY |
10374 | cat >>confdefs.h <<_ACEOF |
10375 | #define HAVE_GTK_FILE_SELECTION_NEW 1 | |
10376 | _ACEOF | |
10377 | ||
10378 | fi | |
10379 | done | |
10380 | ||
10381 | fi | |
10382 | ||
10383 | HAVE_GTK_AND_PTHREAD=no | |
10384 | for ac_header in pthread.h | |
10385 | do : | |
10386 | ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" | |
d6974efa | 10387 | if test "x$ac_cv_header_pthread_h" = xyes; then : |
067d23c9 KY |
10388 | cat >>confdefs.h <<_ACEOF |
10389 | #define HAVE_PTHREAD_H 1 | |
10390 | _ACEOF | |
10391 | ||
10392 | fi | |
10393 | ||
10394 | done | |
10395 | ||
10396 | if test "$ac_cv_header_pthread_h"; then | |
10397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5 | |
10398 | $as_echo_n "checking for pthread_self in -lpthread... " >&6; } | |
d6974efa | 10399 | if ${ac_cv_lib_pthread_pthread_self+:} false; then : |
067d23c9 KY |
10400 | $as_echo_n "(cached) " >&6 |
10401 | else | |
10402 | ac_check_lib_save_LIBS=$LIBS | |
10403 | LIBS="-lpthread $LIBS" | |
10404 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10405 | /* end confdefs.h. */ | |
10406 | ||
10407 | /* Override any GCC internal prototype to avoid an error. | |
10408 | Use char because int might match the return type of a GCC | |
10409 | builtin and then its argument prototype would still apply. */ | |
10410 | #ifdef __cplusplus | |
10411 | extern "C" | |
10412 | #endif | |
10413 | char pthread_self (); | |
10414 | int | |
10415 | main () | |
10416 | { | |
10417 | return pthread_self (); | |
10418 | ; | |
10419 | return 0; | |
10420 | } | |
10421 | _ACEOF | |
10422 | if ac_fn_c_try_link "$LINENO"; then : | |
10423 | ac_cv_lib_pthread_pthread_self=yes | |
10424 | else | |
10425 | ac_cv_lib_pthread_pthread_self=no | |
10426 | fi | |
10427 | rm -f core conftest.err conftest.$ac_objext \ | |
10428 | conftest$ac_exeext conftest.$ac_ext | |
10429 | LIBS=$ac_check_lib_save_LIBS | |
10430 | fi | |
10431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5 | |
10432 | $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; } | |
d6974efa | 10433 | if test "x$ac_cv_lib_pthread_pthread_self" = xyes; then : |
067d23c9 KY |
10434 | HAVE_GTK_AND_PTHREAD=yes |
10435 | fi | |
10436 | ||
10437 | fi | |
10438 | if test "$HAVE_GTK_AND_PTHREAD" = yes; then | |
10439 | case "${canonical}" in | |
10440 | *-hpux*) ;; | |
10441 | *) GTK_LIBS="$GTK_LIBS -lpthread" ;; | |
10442 | esac | |
10443 | ||
10444 | $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h | |
10445 | ||
10446 | fi | |
10447 | ||
10448 | for ac_func in gtk_widget_get_window gtk_widget_set_has_window \ | |
10449 | gtk_dialog_get_action_area gtk_widget_get_sensitive \ | |
10450 | gtk_widget_get_mapped gtk_adjustment_get_page_size \ | |
10451 | gtk_orientable_set_orientation | |
10452 | do : | |
10453 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
10454 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
2018939f | 10455 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
067d23c9 KY |
10456 | cat >>confdefs.h <<_ACEOF |
10457 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10458 | _ACEOF | |
10459 | ||
10460 | fi | |
10461 | done | |
10462 | ||
10463 | ||
10464 | fi | |
10465 | ||
10466 | HAVE_DBUS=no | |
10467 | DBUS_OBJ= | |
10468 | if test "${with_dbus}" = "yes"; then | |
10469 | ||
10470 | succeeded=no | |
10471 | ||
10472 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
10473 | set dummy pkg-config; ac_word=$2 | |
10474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10475 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6974efa | 10476 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
067d23c9 KY |
10477 | $as_echo_n "(cached) " >&6 |
10478 | else | |
10479 | case $PKG_CONFIG in | |
10480 | [\\/]* | ?:[\\/]*) | |
10481 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
10482 | ;; | |
10483 | *) | |
10484 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10485 | for as_dir in $PATH | |
10486 | do | |
10487 | IFS=$as_save_IFS | |
10488 | test -z "$as_dir" && as_dir=. | |
10489 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10490 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10491 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
10492 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10493 | break 2 | |
10494 | fi | |
10495 | done | |
10496 | done | |
10497 | IFS=$as_save_IFS | |
10498 | ||
10499 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
10500 | ;; | |
10501 | esac | |
10502 | fi | |
10503 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
10504 | if test -n "$PKG_CONFIG"; then | |
10505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
10506 | $as_echo "$PKG_CONFIG" >&6; } | |
10507 | else | |
10508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10509 | $as_echo "no" >&6; } | |
10510 | fi | |
10511 | ||
10512 | ||
10513 | ||
10514 | if test "$PKG_CONFIG" = "no" ; then | |
10515 | HAVE_DBUS=no | |
10516 | else | |
10517 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
10518 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
10519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5 | |
10520 | $as_echo_n "checking for dbus-1 >= 1.0... " >&6; } | |
10521 | ||
10522 | if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then | |
10523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10524 | $as_echo "yes" >&6; } | |
10525 | succeeded=yes | |
10526 | ||
10527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5 | |
10528 | $as_echo_n "checking DBUS_CFLAGS... " >&6; } | |
10529 | DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'` | |
10530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5 | |
10531 | $as_echo "$DBUS_CFLAGS" >&6; } | |
10532 | ||
10533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5 | |
10534 | $as_echo_n "checking DBUS_LIBS... " >&6; } | |
10535 | DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'` | |
10536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5 | |
10537 | $as_echo "$DBUS_LIBS" >&6; } | |
10538 | else | |
10539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10540 | $as_echo "no" >&6; } | |
10541 | DBUS_CFLAGS="" | |
10542 | DBUS_LIBS="" | |
10543 | ## If we have a custom action on failure, don't print errors, but | |
10544 | ## do set a variable so people can do so. | |
10545 | DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"` | |
10546 | ||
10547 | fi | |
10548 | ||
10549 | ||
10550 | ||
10551 | else | |
10552 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
10553 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
10554 | fi | |
10555 | fi | |
10556 | ||
10557 | if test $succeeded = yes; then | |
10558 | HAVE_DBUS=yes | |
10559 | else | |
10560 | HAVE_DBUS=no | |
10561 | fi | |
10562 | ||
10563 | if test "$HAVE_DBUS" = yes; then | |
10564 | LIBS="$LIBS $DBUS_LIBS" | |
10565 | ||
10566 | $as_echo "#define HAVE_DBUS 1" >>confdefs.h | |
10567 | ||
10568 | for ac_func in dbus_watch_get_unix_fd | |
10569 | do : | |
10570 | ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd" | |
d6974efa | 10571 | if test "x$ac_cv_func_dbus_watch_get_unix_fd" = xyes; then : |
067d23c9 KY |
10572 | cat >>confdefs.h <<_ACEOF |
10573 | #define HAVE_DBUS_WATCH_GET_UNIX_FD 1 | |
10574 | _ACEOF | |
10575 | ||
10576 | fi | |
10577 | done | |
10578 | ||
10579 | DBUS_OBJ=dbusbind.o | |
10580 | fi | |
10581 | fi | |
10582 | ||
10583 | ||
10584 | HAVE_GCONF=no | |
10585 | if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then | |
10586 | ||
10587 | succeeded=no | |
10588 | ||
10589 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
10590 | set dummy pkg-config; ac_word=$2 | |
10591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10592 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6974efa | 10593 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
067d23c9 KY |
10594 | $as_echo_n "(cached) " >&6 |
10595 | else | |
10596 | case $PKG_CONFIG in | |
10597 | [\\/]* | ?:[\\/]*) | |
10598 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
10599 | ;; | |
10600 | *) | |
10601 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10602 | for as_dir in $PATH | |
10603 | do | |
10604 | IFS=$as_save_IFS | |
10605 | test -z "$as_dir" && as_dir=. | |
10606 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10607 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10608 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
10609 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10610 | break 2 | |
10611 | fi | |
10612 | done | |
10613 | done | |
10614 | IFS=$as_save_IFS | |
10615 | ||
10616 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
10617 | ;; | |
10618 | esac | |
10619 | fi | |
10620 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
10621 | if test -n "$PKG_CONFIG"; then | |
10622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
10623 | $as_echo "$PKG_CONFIG" >&6; } | |
10624 | else | |
10625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10626 | $as_echo "no" >&6; } | |
10627 | fi | |
10628 | ||
10629 | ||
10630 | ||
10631 | if test "$PKG_CONFIG" = "no" ; then | |
10632 | HAVE_GCONF=no | |
10633 | else | |
10634 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
10635 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
10636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5 | |
10637 | $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; } | |
10638 | ||
10639 | if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then | |
10640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10641 | $as_echo "yes" >&6; } | |
10642 | succeeded=yes | |
10643 | ||
10644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5 | |
10645 | $as_echo_n "checking GCONF_CFLAGS... " >&6; } | |
10646 | GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'` | |
10647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5 | |
10648 | $as_echo "$GCONF_CFLAGS" >&6; } | |
10649 | ||
10650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5 | |
10651 | $as_echo_n "checking GCONF_LIBS... " >&6; } | |
10652 | GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'` | |
10653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5 | |
10654 | $as_echo "$GCONF_LIBS" >&6; } | |
10655 | else | |
10656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10657 | $as_echo "no" >&6; } | |
10658 | GCONF_CFLAGS="" | |
10659 | GCONF_LIBS="" | |
10660 | ## If we have a custom action on failure, don't print errors, but | |
10661 | ## do set a variable so people can do so. | |
10662 | GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"` | |
10663 | ||
10664 | fi | |
10665 | ||
10666 | ||
10667 | ||
10668 | else | |
10669 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
10670 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
10671 | fi | |
10672 | fi | |
10673 | ||
10674 | if test $succeeded = yes; then | |
10675 | HAVE_GCONF=yes | |
10676 | else | |
10677 | HAVE_GCONF=no | |
10678 | fi | |
10679 | ||
10680 | if test "$HAVE_GCONF" = yes; then | |
10681 | ||
10682 | $as_echo "#define HAVE_GCONF 1" >>confdefs.h | |
10683 | ||
10684 | for ac_func in g_type_init | |
10685 | do : | |
10686 | ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init" | |
d6974efa | 10687 | if test "x$ac_cv_func_g_type_init" = xyes; then : |
067d23c9 KY |
10688 | cat >>confdefs.h <<_ACEOF |
10689 | #define HAVE_G_TYPE_INIT 1 | |
10690 | _ACEOF | |
10691 | ||
10692 | fi | |
10693 | done | |
10694 | ||
10695 | fi | |
10696 | fi | |
10697 | ||
10698 | HAVE_LIBSELINUX=no | |
10699 | LIBSELINUX_LIBS= | |
10700 | if test "${with_selinux}" = "yes"; then | |
10701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5 | |
10702 | $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; } | |
d6974efa | 10703 | if ${ac_cv_lib_selinux_lgetfilecon+:} false; then : |
067d23c9 KY |
10704 | $as_echo_n "(cached) " >&6 |
10705 | else | |
10706 | ac_check_lib_save_LIBS=$LIBS | |
10707 | LIBS="-lselinux $LIBS" | |
10708 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10709 | /* end confdefs.h. */ | |
10710 | ||
10711 | /* Override any GCC internal prototype to avoid an error. | |
10712 | Use char because int might match the return type of a GCC | |
10713 | builtin and then its argument prototype would still apply. */ | |
10714 | #ifdef __cplusplus | |
10715 | extern "C" | |
10716 | #endif | |
10717 | char lgetfilecon (); | |
10718 | int | |
10719 | main () | |
10720 | { | |
10721 | return lgetfilecon (); | |
10722 | ; | |
10723 | return 0; | |
10724 | } | |
10725 | _ACEOF | |
10726 | if ac_fn_c_try_link "$LINENO"; then : | |
10727 | ac_cv_lib_selinux_lgetfilecon=yes | |
10728 | else | |
10729 | ac_cv_lib_selinux_lgetfilecon=no | |
10730 | fi | |
10731 | rm -f core conftest.err conftest.$ac_objext \ | |
10732 | conftest$ac_exeext conftest.$ac_ext | |
10733 | LIBS=$ac_check_lib_save_LIBS | |
10734 | fi | |
10735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5 | |
10736 | $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; } | |
d6974efa | 10737 | if test "x$ac_cv_lib_selinux_lgetfilecon" = xyes; then : |
067d23c9 KY |
10738 | HAVE_LIBSELINUX=yes |
10739 | else | |
10740 | HAVE_LIBSELINUX=no | |
10741 | fi | |
10742 | ||
10743 | if test "$HAVE_LIBSELINUX" = yes; then | |
10744 | ||
10745 | $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h | |
10746 | ||
10747 | LIBSELINUX_LIBS=-lselinux | |
10748 | fi | |
10749 | fi | |
10750 | ||
10751 | ||
10752 | HAVE_GNUTLS=no | |
10753 | if test "${with_gnutls}" = "yes" ; then | |
10754 | ||
10755 | succeeded=no | |
10756 | ||
10757 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
10758 | set dummy pkg-config; ac_word=$2 | |
10759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10760 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6974efa | 10761 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
067d23c9 KY |
10762 | $as_echo_n "(cached) " >&6 |
10763 | else | |
10764 | case $PKG_CONFIG in | |
10765 | [\\/]* | ?:[\\/]*) | |
10766 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
10767 | ;; | |
10768 | *) | |
10769 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10770 | for as_dir in $PATH | |
10771 | do | |
10772 | IFS=$as_save_IFS | |
10773 | test -z "$as_dir" && as_dir=. | |
10774 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10775 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10776 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
10777 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10778 | break 2 | |
10779 | fi | |
10780 | done | |
10781 | done | |
10782 | IFS=$as_save_IFS | |
10783 | ||
10784 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
10785 | ;; | |
10786 | esac | |
10787 | fi | |
10788 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
10789 | if test -n "$PKG_CONFIG"; then | |
10790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
10791 | $as_echo "$PKG_CONFIG" >&6; } | |
10792 | else | |
10793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10794 | $as_echo "no" >&6; } | |
10795 | fi | |
10796 | ||
10797 | ||
10798 | ||
10799 | if test "$PKG_CONFIG" = "no" ; then | |
10800 | HAVE_GNUTLS=no | |
10801 | else | |
10802 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
10803 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
10804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5 | |
10805 | $as_echo_n "checking for gnutls >= 2.2.4... " >&6; } | |
10806 | ||
10807 | if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then | |
10808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10809 | $as_echo "yes" >&6; } | |
10810 | succeeded=yes | |
10811 | ||
10812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5 | |
10813 | $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; } | |
10814 | LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'` | |
10815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5 | |
10816 | $as_echo "$LIBGNUTLS_CFLAGS" >&6; } | |
10817 | ||
10818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5 | |
10819 | $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; } | |
10820 | LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'` | |
10821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5 | |
10822 | $as_echo "$LIBGNUTLS_LIBS" >&6; } | |
10823 | else | |
10824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10825 | $as_echo "no" >&6; } | |
10826 | LIBGNUTLS_CFLAGS="" | |
10827 | LIBGNUTLS_LIBS="" | |
10828 | ## If we have a custom action on failure, don't print errors, but | |
10829 | ## do set a variable so people can do so. | |
10830 | LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"` | |
10831 | ||
10832 | fi | |
10833 | ||
10834 | ||
10835 | ||
10836 | else | |
10837 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
10838 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
10839 | fi | |
10840 | fi | |
10841 | ||
10842 | if test $succeeded = yes; then | |
10843 | HAVE_GNUTLS=yes | |
10844 | else | |
10845 | HAVE_GNUTLS=no | |
10846 | fi | |
10847 | ||
10848 | if test "${HAVE_GNUTLS}" = "yes"; then | |
10849 | ||
10850 | $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h | |
10851 | ||
10852 | fi | |
10853 | fi | |
10854 | ||
10855 | ||
10856 | ||
10857 | HAVE_XAW3D=no | |
10858 | LUCID_LIBW= | |
10859 | if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then | |
10860 | if test "$with_xaw3d" != no; then | |
10861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5 | |
10862 | $as_echo_n "checking for xaw3d... " >&6; } | |
d6974efa | 10863 | if ${emacs_cv_xaw3d+:} false; then : |
067d23c9 KY |
10864 | $as_echo_n "(cached) " >&6 |
10865 | else | |
10866 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10867 | /* end confdefs.h. */ | |
10868 | ||
10869 | #include <X11/Intrinsic.h> | |
10870 | #include <X11/Xaw3d/Simple.h> | |
10871 | int | |
10872 | main () | |
10873 | { | |
10874 | ||
10875 | ; | |
10876 | return 0; | |
10877 | } | |
10878 | _ACEOF | |
10879 | if ac_fn_c_try_link "$LINENO"; then : | |
14beddf4 CY |
10880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5 |
10881 | $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; } | |
67342916 | 10882 | if ${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+:} false; then : |
ae1362a3 AS |
10883 | $as_echo_n "(cached) " >&6 |
10884 | else | |
10885 | ac_check_lib_save_LIBS=$LIBS | |
14beddf4 | 10886 | LIBS="-lXaw3d $LIBS" |
ae1362a3 AS |
10887 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10888 | /* end confdefs.h. */ | |
bf89cb4d | 10889 | |
ae1362a3 AS |
10890 | /* Override any GCC internal prototype to avoid an error. |
10891 | Use char because int might match the return type of a GCC | |
10892 | builtin and then its argument prototype would still apply. */ | |
10893 | #ifdef __cplusplus | |
10894 | extern "C" | |
10895 | #endif | |
14beddf4 | 10896 | char XawScrollbarSetThumb (); |
ae1362a3 AS |
10897 | int |
10898 | main () | |
10899 | { | |
14beddf4 | 10900 | return XawScrollbarSetThumb (); |
ae1362a3 AS |
10901 | ; |
10902 | return 0; | |
10903 | } | |
10904 | _ACEOF | |
10905 | if ac_fn_c_try_link "$LINENO"; then : | |
14beddf4 | 10906 | ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes |
ae1362a3 | 10907 | else |
14beddf4 | 10908 | ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no |
ae1362a3 AS |
10909 | fi |
10910 | rm -f core conftest.err conftest.$ac_objext \ | |
10911 | conftest$ac_exeext conftest.$ac_ext | |
10912 | LIBS=$ac_check_lib_save_LIBS | |
10913 | fi | |
14beddf4 CY |
10914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5 |
10915 | $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; } | |
67342916 | 10916 | if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = xyes; then : |
067d23c9 KY |
10917 | emacs_cv_xaw3d=yes |
10918 | else | |
10919 | emacs_cv_xaw3d=no | |
10920 | fi | |
14beddf4 CY |
10921 | |
10922 | else | |
10923 | emacs_cv_xaw3d=no | |
10924 | fi | |
067d23c9 KY |
10925 | rm -f core conftest.err conftest.$ac_objext \ |
10926 | conftest$ac_exeext conftest.$ac_ext | |
10927 | fi | |
10928 | ||
10929 | else | |
10930 | emacs_cv_xaw3d=no | |
10931 | fi | |
10932 | if test $emacs_cv_xaw3d = yes; then | |
10933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5 | |
10934 | $as_echo "yes; using Lucid toolkit" >&6; } | |
10935 | USE_X_TOOLKIT=LUCID | |
10936 | HAVE_XAW3D=yes | |
10937 | LUCID_LIBW=-lXaw3d | |
10938 | ||
10939 | $as_echo "#define HAVE_XAW3D 1" >>confdefs.h | |
10940 | ||
10941 | else | |
10942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10943 | $as_echo "no" >&6; } | |
10944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5 | |
10945 | $as_echo_n "checking for libXaw... " >&6; } | |
d6974efa | 10946 | if ${emacs_cv_xaw+:} false; then : |
067d23c9 KY |
10947 | $as_echo_n "(cached) " >&6 |
10948 | else | |
10949 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10950 | /* end confdefs.h. */ | |
10951 | ||
10952 | #include <X11/Intrinsic.h> | |
10953 | #include <X11/Xaw/Simple.h> | |
10954 | int | |
10955 | main () | |
10956 | { | |
10957 | ||
10958 | ; | |
10959 | return 0; | |
10960 | } | |
10961 | _ACEOF | |
10962 | if ac_fn_c_try_link "$LINENO"; then : | |
10963 | emacs_cv_xaw=yes | |
10964 | else | |
10965 | emacs_cv_xaw=no | |
10966 | fi | |
10967 | rm -f core conftest.err conftest.$ac_objext \ | |
10968 | conftest$ac_exeext conftest.$ac_ext | |
10969 | fi | |
10970 | ||
10971 | if test $emacs_cv_xaw = yes; then | |
10972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5 | |
10973 | $as_echo "yes; using Lucid toolkit" >&6; } | |
10974 | USE_X_TOOLKIT=LUCID | |
10975 | LUCID_LIBW=-lXaw | |
10976 | elif test x"${USE_X_TOOLKIT}" = xLUCID; then | |
2018939f | 10977 | as_fn_error $? "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5 |
067d23c9 KY |
10978 | else |
10979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5 | |
10980 | $as_echo "no; do not use toolkit by default" >&6; } | |
10981 | USE_X_TOOLKIT=none | |
10982 | fi | |
10983 | fi | |
10984 | fi | |
10985 | ||
10986 | X_TOOLKIT_TYPE=$USE_X_TOOLKIT | |
10987 | ||
10988 | LIBXTR6= | |
10989 | if test "${USE_X_TOOLKIT}" != "none"; then | |
10990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5 | |
10991 | $as_echo_n "checking X11 toolkit version... " >&6; } | |
d6974efa | 10992 | if ${emacs_cv_x11_toolkit_version_6+:} false; then : |
067d23c9 KY |
10993 | $as_echo_n "(cached) " >&6 |
10994 | else | |
10995 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10996 | /* end confdefs.h. */ | |
10997 | #include <X11/Intrinsic.h> | |
10998 | int | |
10999 | main () | |
11000 | { | |
11001 | #if XtSpecificationRelease < 6 | |
11002 | fail; | |
11003 | #endif | |
11004 | ||
11005 | ; | |
11006 | return 0; | |
11007 | } | |
11008 | _ACEOF | |
11009 | if ac_fn_c_try_link "$LINENO"; then : | |
11010 | emacs_cv_x11_toolkit_version_6=yes | |
11011 | else | |
11012 | emacs_cv_x11_toolkit_version_6=no | |
11013 | fi | |
11014 | rm -f core conftest.err conftest.$ac_objext \ | |
11015 | conftest$ac_exeext conftest.$ac_ext | |
11016 | fi | |
11017 | ||
11018 | HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6 | |
11019 | if test $emacs_cv_x11_toolkit_version_6 = yes; then | |
11020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5 | |
11021 | $as_echo "6 or newer" >&6; } | |
11022 | ||
11023 | $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h | |
11024 | ||
11025 | LIBXTR6="-lSM -lICE" | |
11026 | case "$opsys" in | |
11027 | ## Use libw.a along with X11R6 Xt. | |
11028 | unixware) LIBXTR6="$LIBXTR6 -lw" ;; | |
11029 | esac | |
11030 | else | |
11031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5 | |
11032 | $as_echo "before 6" >&6; } | |
11033 | fi | |
11034 | ||
11035 | OLDLIBS="$LIBS" | |
11036 | if test x$HAVE_X11XTR6 = xyes; then | |
11037 | LIBS="-lXt -lSM -lICE $LIBS" | |
11038 | else | |
11039 | LIBS="-lXt $LIBS" | |
11040 | fi | |
11041 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5 | |
11042 | $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; } | |
d6974efa | 11043 | if ${ac_cv_lib_Xmu_XmuConvertStandardSelection+:} false; then : |
067d23c9 KY |
11044 | $as_echo_n "(cached) " >&6 |
11045 | else | |
11046 | ac_check_lib_save_LIBS=$LIBS | |
11047 | LIBS="-lXmu $LIBS" | |
11048 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11049 | /* end confdefs.h. */ | |
11050 | ||
11051 | /* Override any GCC internal prototype to avoid an error. | |
11052 | Use char because int might match the return type of a GCC | |
11053 | builtin and then its argument prototype would still apply. */ | |
11054 | #ifdef __cplusplus | |
11055 | extern "C" | |
11056 | #endif | |
11057 | char XmuConvertStandardSelection (); | |
11058 | int | |
11059 | main () | |
11060 | { | |
11061 | return XmuConvertStandardSelection (); | |
11062 | ; | |
11063 | return 0; | |
11064 | } | |
11065 | _ACEOF | |
11066 | if ac_fn_c_try_link "$LINENO"; then : | |
11067 | ac_cv_lib_Xmu_XmuConvertStandardSelection=yes | |
11068 | else | |
11069 | ac_cv_lib_Xmu_XmuConvertStandardSelection=no | |
11070 | fi | |
11071 | rm -f core conftest.err conftest.$ac_objext \ | |
11072 | conftest$ac_exeext conftest.$ac_ext | |
11073 | LIBS=$ac_check_lib_save_LIBS | |
11074 | fi | |
11075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5 | |
11076 | $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; } | |
d6974efa | 11077 | if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = xyes; then : |
067d23c9 KY |
11078 | cat >>confdefs.h <<_ACEOF |
11079 | #define HAVE_LIBXMU 1 | |
11080 | _ACEOF | |
11081 | ||
11082 | LIBS="-lXmu $LIBS" | |
11083 | ||
11084 | fi | |
11085 | ||
11086 | test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS" | |
11087 | fi | |
11088 | ||
11089 | ||
11090 | LIBXMU=-lXmu | |
d6a003a8 AS |
11091 | case $opsys in |
11092 | ## These systems don't supply Xmu. | |
067d23c9 KY |
11093 | hpux* | aix4-2 ) |
11094 | test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU= | |
11095 | ;; | |
11096 | esac | |
11097 | ||
11098 | ||
11099 | # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D. | |
11100 | if test "${HAVE_X11}" = "yes"; then | |
11101 | if test "${USE_X_TOOLKIT}" != "none"; then | |
11102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5 | |
11103 | $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; } | |
d6974efa | 11104 | if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then : |
067d23c9 KY |
11105 | $as_echo_n "(cached) " >&6 |
11106 | else | |
11107 | ac_check_lib_save_LIBS=$LIBS | |
11108 | LIBS="-lXext $LIBS" | |
11109 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11110 | /* end confdefs.h. */ | |
11111 | ||
11112 | /* Override any GCC internal prototype to avoid an error. | |
11113 | Use char because int might match the return type of a GCC | |
11114 | builtin and then its argument prototype would still apply. */ | |
11115 | #ifdef __cplusplus | |
11116 | extern "C" | |
11117 | #endif | |
11118 | char XShapeQueryExtension (); | |
11119 | int | |
11120 | main () | |
11121 | { | |
11122 | return XShapeQueryExtension (); | |
11123 | ; | |
11124 | return 0; | |
11125 | } | |
11126 | _ACEOF | |
11127 | if ac_fn_c_try_link "$LINENO"; then : | |
11128 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
11129 | else | |
11130 | ac_cv_lib_Xext_XShapeQueryExtension=no | |
11131 | fi | |
11132 | rm -f core conftest.err conftest.$ac_objext \ | |
11133 | conftest$ac_exeext conftest.$ac_ext | |
11134 | LIBS=$ac_check_lib_save_LIBS | |
11135 | fi | |
11136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | |
11137 | $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; } | |
d6974efa | 11138 | if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then : |
067d23c9 KY |
11139 | cat >>confdefs.h <<_ACEOF |
11140 | #define HAVE_LIBXEXT 1 | |
11141 | _ACEOF | |
11142 | ||
11143 | LIBS="-lXext $LIBS" | |
11144 | ||
11145 | fi | |
11146 | ||
11147 | fi | |
11148 | fi | |
11149 | ||
11150 | LIBXP= | |
11151 | if test "${USE_X_TOOLKIT}" = "MOTIF"; then | |
11152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5 | |
11153 | $as_echo_n "checking for Motif version 2.1... " >&6; } | |
d6974efa | 11154 | if ${emacs_cv_motif_version_2_1+:} false; then : |
067d23c9 KY |
11155 | $as_echo_n "(cached) " >&6 |
11156 | else | |
11157 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11158 | /* end confdefs.h. */ | |
11159 | #include <Xm/Xm.h> | |
11160 | int | |
11161 | main () | |
11162 | { | |
11163 | #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) | |
11164 | int x = 5; | |
11165 | #else | |
11166 | Motif version prior to 2.1. | |
11167 | #endif | |
11168 | ; | |
11169 | return 0; | |
11170 | } | |
11171 | _ACEOF | |
11172 | if ac_fn_c_try_compile "$LINENO"; then : | |
11173 | emacs_cv_motif_version_2_1=yes | |
11174 | else | |
11175 | emacs_cv_motif_version_2_1=no | |
11176 | fi | |
11177 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11178 | fi | |
11179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5 | |
11180 | $as_echo "$emacs_cv_motif_version_2_1" >&6; } | |
11181 | if test $emacs_cv_motif_version_2_1 = yes; then | |
11182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5 | |
11183 | $as_echo_n "checking for XpCreateContext in -lXp... " >&6; } | |
d6974efa | 11184 | if ${ac_cv_lib_Xp_XpCreateContext+:} false; then : |
067d23c9 KY |
11185 | $as_echo_n "(cached) " >&6 |
11186 | else | |
11187 | ac_check_lib_save_LIBS=$LIBS | |
11188 | LIBS="-lXp $LIBS" | |
11189 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11190 | /* end confdefs.h. */ | |
11191 | ||
11192 | /* Override any GCC internal prototype to avoid an error. | |
11193 | Use char because int might match the return type of a GCC | |
11194 | builtin and then its argument prototype would still apply. */ | |
11195 | #ifdef __cplusplus | |
11196 | extern "C" | |
11197 | #endif | |
11198 | char XpCreateContext (); | |
11199 | int | |
11200 | main () | |
11201 | { | |
11202 | return XpCreateContext (); | |
11203 | ; | |
11204 | return 0; | |
11205 | } | |
11206 | _ACEOF | |
11207 | if ac_fn_c_try_link "$LINENO"; then : | |
11208 | ac_cv_lib_Xp_XpCreateContext=yes | |
11209 | else | |
11210 | ac_cv_lib_Xp_XpCreateContext=no | |
11211 | fi | |
11212 | rm -f core conftest.err conftest.$ac_objext \ | |
11213 | conftest$ac_exeext conftest.$ac_ext | |
11214 | LIBS=$ac_check_lib_save_LIBS | |
11215 | fi | |
11216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5 | |
11217 | $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; } | |
d6974efa | 11218 | if test "x$ac_cv_lib_Xp_XpCreateContext" = xyes; then : |
067d23c9 KY |
11219 | LIBXP=-lXp |
11220 | fi | |
11221 | ||
11222 | else | |
11223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5 | |
11224 | $as_echo_n "checking for LessTif where some systems put it... " >&6; } | |
d6974efa | 11225 | if ${emacs_cv_lesstif+:} false; then : |
067d23c9 KY |
11226 | $as_echo_n "(cached) " >&6 |
11227 | else | |
11228 | # We put this in CFLAGS temporarily to precede other -I options | |
11229 | # that might be in CFLAGS temporarily. | |
11230 | # We put this in CPPFLAGS where it precedes the other -I options. | |
11231 | OLD_CPPFLAGS=$CPPFLAGS | |
11232 | OLD_CFLAGS=$CFLAGS | |
11233 | CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS" | |
11234 | CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS" | |
11235 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11236 | /* end confdefs.h. */ | |
11237 | #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h> | |
11238 | int | |
11239 | main () | |
11240 | { | |
11241 | int x = 5; | |
11242 | ; | |
11243 | return 0; | |
11244 | } | |
11245 | _ACEOF | |
11246 | if ac_fn_c_try_compile "$LINENO"; then : | |
11247 | emacs_cv_lesstif=yes | |
11248 | else | |
11249 | emacs_cv_lesstif=no | |
11250 | fi | |
11251 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11252 | fi | |
11253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5 | |
11254 | $as_echo "$emacs_cv_lesstif" >&6; } | |
11255 | if test $emacs_cv_lesstif = yes; then | |
11256 | # Make sure this -I option remains in CPPFLAGS after it is set | |
11257 | # back to REAL_CPPFLAGS. | |
11258 | # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not | |
11259 | # have those other -I options anyway. Ultimately, having this | |
11260 | # directory ultimately in CPPFLAGS will be enough. | |
11261 | REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS" | |
11262 | LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS" | |
11263 | else | |
11264 | CFLAGS=$OLD_CFLAGS | |
11265 | CPPFLAGS=$OLD_CPPFLAGS | |
11266 | fi | |
11267 | fi | |
11268 | fi | |
11269 | ||
11270 | ||
11271 | USE_TOOLKIT_SCROLL_BARS=no | |
11272 | if test "${with_toolkit_scroll_bars}" != "no"; then | |
11273 | if test "${USE_X_TOOLKIT}" != "none"; then | |
11274 | if test "${USE_X_TOOLKIT}" = "MOTIF"; then | |
11275 | $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h | |
11276 | ||
11277 | HAVE_XAW3D=no | |
11278 | USE_TOOLKIT_SCROLL_BARS=yes | |
11279 | elif test "${HAVE_XAW3D}" = "yes"; then | |
11280 | $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h | |
11281 | ||
11282 | USE_TOOLKIT_SCROLL_BARS=yes | |
11283 | fi | |
11284 | elif test "${HAVE_GTK}" = "yes"; then | |
11285 | $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h | |
11286 | ||
11287 | USE_TOOLKIT_SCROLL_BARS=yes | |
11288 | elif test "${HAVE_NS}" = "yes"; then | |
11289 | $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h | |
11290 | ||
11291 | USE_TOOLKIT_SCROLL_BARS=yes | |
11292 | fi | |
11293 | fi | |
11294 | ||
11295 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11296 | /* end confdefs.h. */ | |
11297 | ||
11298 | #include <X11/Xlib.h> | |
11299 | #include <X11/Xresource.h> | |
11300 | int | |
11301 | main () | |
11302 | { | |
11303 | XIMProc callback; | |
11304 | ; | |
11305 | return 0; | |
11306 | } | |
11307 | _ACEOF | |
11308 | if ac_fn_c_try_compile "$LINENO"; then : | |
11309 | HAVE_XIM=yes | |
11310 | ||
11311 | $as_echo "#define HAVE_XIM 1" >>confdefs.h | |
11312 | ||
11313 | else | |
11314 | HAVE_XIM=no | |
11315 | fi | |
11316 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11317 | ||
11318 | ||
11319 | if test "${with_xim}" != "no"; then | |
11320 | ||
11321 | $as_echo "#define USE_XIM 1" >>confdefs.h | |
11322 | ||
11323 | fi | |
11324 | ||
11325 | ||
11326 | if test "${HAVE_XIM}" != "no"; then | |
11327 | late_CFLAGS=$CFLAGS | |
11328 | if test "$GCC" = yes; then | |
11329 | CFLAGS="$CFLAGS --pedantic-errors" | |
11330 | fi | |
11331 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11332 | /* end confdefs.h. */ | |
11333 | ||
11334 | #include <X11/Xlib.h> | |
11335 | #include <X11/Xresource.h> | |
11336 | int | |
11337 | main () | |
11338 | { | |
11339 | Display *display; | |
11340 | XrmDatabase db; | |
11341 | char *res_name; | |
11342 | char *res_class; | |
11343 | XIMProc callback; | |
11344 | XPointer *client_data; | |
11345 | #ifndef __GNUC__ | |
11346 | /* If we're not using GCC, it's probably not XFree86, and this is | |
11347 | probably right, but we can't use something like --pedantic-errors. */ | |
11348 | extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*, | |
11349 | char*, XIMProc, XPointer*); | |
11350 | #endif | |
11351 | (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback, | |
11352 | client_data); | |
11353 | ; | |
11354 | return 0; | |
11355 | } | |
11356 | _ACEOF | |
11357 | if ac_fn_c_try_compile "$LINENO"; then : | |
11358 | emacs_cv_arg6_star=yes | |
11359 | fi | |
11360 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11361 | if test "$emacs_cv_arg6_star" = yes; then | |
11362 | $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h | |
11363 | ||
11364 | else | |
11365 | $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h | |
11366 | ||
11367 | fi | |
11368 | CFLAGS=$late_CFLAGS | |
11369 | fi | |
11370 | ||
11371 | ### Start of font-backend (under any platform) section. | |
11372 | # (nothing here yet -- this is a placeholder) | |
11373 | ### End of font-backend (under any platform) section. | |
11374 | ||
11375 | ### Start of font-backend (under X11) section. | |
11376 | if test "${HAVE_X11}" = "yes"; then | |
11377 | ||
11378 | succeeded=no | |
11379 | ||
11380 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
11381 | set dummy pkg-config; ac_word=$2 | |
11382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11383 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6974efa | 11384 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
067d23c9 KY |
11385 | $as_echo_n "(cached) " >&6 |
11386 | else | |
11387 | case $PKG_CONFIG in | |
11388 | [\\/]* | ?:[\\/]*) | |
11389 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
11390 | ;; | |
11391 | *) | |
11392 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11393 | for as_dir in $PATH | |
11394 | do | |
11395 | IFS=$as_save_IFS | |
11396 | test -z "$as_dir" && as_dir=. | |
11397 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11398 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11399 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
11400 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11401 | break 2 | |
11402 | fi | |
11403 | done | |
11404 | done | |
11405 | IFS=$as_save_IFS | |
11406 | ||
11407 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
11408 | ;; | |
11409 | esac | |
11410 | fi | |
11411 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
11412 | if test -n "$PKG_CONFIG"; then | |
11413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
11414 | $as_echo "$PKG_CONFIG" >&6; } | |
11415 | else | |
11416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11417 | $as_echo "no" >&6; } | |
11418 | fi | |
11419 | ||
11420 | ||
11421 | ||
11422 | if test "$PKG_CONFIG" = "no" ; then | |
11423 | HAVE_FC=no | |
11424 | else | |
11425 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
11426 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
11427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5 | |
11428 | $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; } | |
11429 | ||
11430 | if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then | |
11431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11432 | $as_echo "yes" >&6; } | |
11433 | succeeded=yes | |
11434 | ||
11435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5 | |
11436 | $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; } | |
11437 | FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'` | |
11438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5 | |
11439 | $as_echo "$FONTCONFIG_CFLAGS" >&6; } | |
11440 | ||
11441 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5 | |
11442 | $as_echo_n "checking FONTCONFIG_LIBS... " >&6; } | |
11443 | FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'` | |
11444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5 | |
11445 | $as_echo "$FONTCONFIG_LIBS" >&6; } | |
11446 | else | |
11447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11448 | $as_echo "no" >&6; } | |
11449 | FONTCONFIG_CFLAGS="" | |
11450 | FONTCONFIG_LIBS="" | |
11451 | ## If we have a custom action on failure, don't print errors, but | |
11452 | ## do set a variable so people can do so. | |
11453 | FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"` | |
11454 | ||
11455 | fi | |
11456 | ||
11457 | ||
11458 | ||
11459 | else | |
11460 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
11461 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
11462 | fi | |
11463 | fi | |
11464 | ||
11465 | if test $succeeded = yes; then | |
11466 | HAVE_FC=yes | |
11467 | else | |
11468 | HAVE_FC=no | |
11469 | fi | |
11470 | ||
11471 | ||
11472 | ## Use -lXft if available, unless `--with-xft=no'. | |
11473 | HAVE_XFT=maybe | |
11474 | if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then | |
11475 | with_xft="no"; | |
11476 | fi | |
11477 | if test "x${with_xft}" != "xno"; then | |
11478 | ||
11479 | ||
11480 | succeeded=no | |
11481 | ||
11482 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
11483 | set dummy pkg-config; ac_word=$2 | |
11484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11485 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6974efa | 11486 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
067d23c9 KY |
11487 | $as_echo_n "(cached) " >&6 |
11488 | else | |
11489 | case $PKG_CONFIG in | |
11490 | [\\/]* | ?:[\\/]*) | |
11491 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
11492 | ;; | |
11493 | *) | |
11494 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11495 | for as_dir in $PATH | |
11496 | do | |
11497 | IFS=$as_save_IFS | |
11498 | test -z "$as_dir" && as_dir=. | |
11499 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11500 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11501 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
11502 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11503 | break 2 | |
11504 | fi | |
11505 | done | |
11506 | done | |
11507 | IFS=$as_save_IFS | |
11508 | ||
11509 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
11510 | ;; | |
11511 | esac | |
11512 | fi | |
11513 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
11514 | if test -n "$PKG_CONFIG"; then | |
11515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
11516 | $as_echo "$PKG_CONFIG" >&6; } | |
11517 | else | |
11518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11519 | $as_echo "no" >&6; } | |
11520 | fi | |
11521 | ||
11522 | ||
11523 | ||
11524 | if test "$PKG_CONFIG" = "no" ; then | |
11525 | HAVE_XFT=no | |
11526 | else | |
11527 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
11528 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
11529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5 | |
11530 | $as_echo_n "checking for xft >= 0.13.0... " >&6; } | |
11531 | ||
11532 | if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then | |
11533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11534 | $as_echo "yes" >&6; } | |
11535 | succeeded=yes | |
11536 | ||
11537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5 | |
11538 | $as_echo_n "checking XFT_CFLAGS... " >&6; } | |
11539 | XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'` | |
11540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5 | |
11541 | $as_echo "$XFT_CFLAGS" >&6; } | |
11542 | ||
11543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5 | |
11544 | $as_echo_n "checking XFT_LIBS... " >&6; } | |
11545 | XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'` | |
11546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5 | |
11547 | $as_echo "$XFT_LIBS" >&6; } | |
11548 | else | |
11549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11550 | $as_echo "no" >&6; } | |
11551 | XFT_CFLAGS="" | |
11552 | XFT_LIBS="" | |
11553 | ## If we have a custom action on failure, don't print errors, but | |
11554 | ## do set a variable so people can do so. | |
11555 | XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"` | |
11556 | ||
11557 | fi | |
11558 | ||
11559 | ||
11560 | ||
11561 | else | |
11562 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
11563 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
11564 | fi | |
11565 | fi | |
11566 | ||
11567 | if test $succeeded = yes; then | |
11568 | : | |
11569 | else | |
11570 | HAVE_XFT=no | |
11571 | fi | |
11572 | ||
11573 | ## Because xftfont.c uses XRenderQueryExtension, we also | |
11574 | ## need to link to -lXrender. | |
11575 | HAVE_XRENDER=no | |
11576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5 | |
11577 | $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; } | |
d6974efa | 11578 | if ${ac_cv_lib_Xrender_XRenderQueryExtension+:} false; then : |
067d23c9 KY |
11579 | $as_echo_n "(cached) " >&6 |
11580 | else | |
11581 | ac_check_lib_save_LIBS=$LIBS | |
11582 | LIBS="-lXrender $LIBS" | |
11583 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11584 | /* end confdefs.h. */ | |
11585 | ||
11586 | /* Override any GCC internal prototype to avoid an error. | |
11587 | Use char because int might match the return type of a GCC | |
11588 | builtin and then its argument prototype would still apply. */ | |
11589 | #ifdef __cplusplus | |
11590 | extern "C" | |
11591 | #endif | |
11592 | char XRenderQueryExtension (); | |
11593 | int | |
11594 | main () | |
11595 | { | |
11596 | return XRenderQueryExtension (); | |
11597 | ; | |
11598 | return 0; | |
11599 | } | |
11600 | _ACEOF | |
11601 | if ac_fn_c_try_link "$LINENO"; then : | |
11602 | ac_cv_lib_Xrender_XRenderQueryExtension=yes | |
11603 | else | |
11604 | ac_cv_lib_Xrender_XRenderQueryExtension=no | |
11605 | fi | |
11606 | rm -f core conftest.err conftest.$ac_objext \ | |
11607 | conftest$ac_exeext conftest.$ac_ext | |
11608 | LIBS=$ac_check_lib_save_LIBS | |
11609 | fi | |
11610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5 | |
11611 | $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; } | |
d6974efa | 11612 | if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = xyes; then : |
067d23c9 KY |
11613 | HAVE_XRENDER=yes |
11614 | fi | |
11615 | ||
11616 | if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then | |
11617 | OLD_CPPFLAGS="$CPPFLAGS" | |
11618 | OLD_CFLAGS="$CFLAGS" | |
11619 | OLD_LIBS="$LIBS" | |
11620 | CPPFLAGS="$CPPFLAGS $XFT_CFLAGS" | |
11621 | CFLAGS="$CFLAGS $XFT_CFLAGS" | |
11622 | XFT_LIBS="-lXrender $XFT_LIBS" | |
11623 | LIBS="$XFT_LIBS $LIBS" | |
11624 | ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default" | |
d6974efa | 11625 | if test "x$ac_cv_header_X11_Xft_Xft_h" = xyes; then : |
067d23c9 KY |
11626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5 |
11627 | $as_echo_n "checking for XftFontOpen in -lXft... " >&6; } | |
d6974efa | 11628 | if ${ac_cv_lib_Xft_XftFontOpen+:} false; then : |
067d23c9 KY |
11629 | $as_echo_n "(cached) " >&6 |
11630 | else | |
11631 | ac_check_lib_save_LIBS=$LIBS | |
11632 | LIBS="-lXft $XFT_LIBS $LIBS" | |
11633 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11634 | /* end confdefs.h. */ | |
11635 | ||
11636 | /* Override any GCC internal prototype to avoid an error. | |
11637 | Use char because int might match the return type of a GCC | |
11638 | builtin and then its argument prototype would still apply. */ | |
11639 | #ifdef __cplusplus | |
11640 | extern "C" | |
11641 | #endif | |
11642 | char XftFontOpen (); | |
11643 | int | |
11644 | main () | |
11645 | { | |
11646 | return XftFontOpen (); | |
11647 | ; | |
11648 | return 0; | |
11649 | } | |
11650 | _ACEOF | |
11651 | if ac_fn_c_try_link "$LINENO"; then : | |
11652 | ac_cv_lib_Xft_XftFontOpen=yes | |
11653 | else | |
11654 | ac_cv_lib_Xft_XftFontOpen=no | |
11655 | fi | |
11656 | rm -f core conftest.err conftest.$ac_objext \ | |
11657 | conftest$ac_exeext conftest.$ac_ext | |
11658 | LIBS=$ac_check_lib_save_LIBS | |
11659 | fi | |
11660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5 | |
11661 | $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; } | |
d6974efa | 11662 | if test "x$ac_cv_lib_Xft_XftFontOpen" = xyes; then : |
067d23c9 KY |
11663 | HAVE_XFT=yes |
11664 | fi | |
11665 | ||
11666 | fi | |
11667 | ||
11668 | ||
11669 | ||
11670 | if test "${HAVE_XFT}" = "yes"; then | |
11671 | ||
11672 | $as_echo "#define HAVE_XFT 1" >>confdefs.h | |
11673 | ||
11674 | ||
11675 | C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS" | |
11676 | else | |
11677 | CPPFLAGS="$OLD_CPPFLAGS" | |
11678 | CFLAGS="$OLD_CFLAGS" | |
11679 | LIBS="$OLD_LIBS" | |
11680 | fi # "${HAVE_XFT}" = "yes" | |
11681 | fi # "$HAVE_XFT" != no | |
11682 | fi # "x${with_xft}" != "xno" | |
11683 | ||
11684 | if test "$HAVE_XFT" != "yes"; then | |
11685 | HAVE_XFT=no | |
11686 | fi | |
11687 | ||
067d23c9 KY |
11688 | ## We used to allow building with FreeType and without Xft. |
11689 | ## However, the ftx font backend driver is not in good shape. | |
9ba41eb9 | 11690 | HAVE_FREETYPE=$HAVE_XFT |
067d23c9 KY |
11691 | |
11692 | HAVE_LIBOTF=no | |
11693 | if test "${HAVE_FREETYPE}" = "yes"; then | |
11694 | ||
11695 | $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h | |
11696 | ||
11697 | if test "${with_libotf}" != "no"; then | |
11698 | ||
11699 | succeeded=no | |
11700 | ||
11701 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
11702 | set dummy pkg-config; ac_word=$2 | |
11703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11704 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6974efa | 11705 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
067d23c9 KY |
11706 | $as_echo_n "(cached) " >&6 |
11707 | else | |
11708 | case $PKG_CONFIG in | |
11709 | [\\/]* | ?:[\\/]*) | |
11710 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
11711 | ;; | |
11712 | *) | |
11713 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11714 | for as_dir in $PATH | |
11715 | do | |
11716 | IFS=$as_save_IFS | |
11717 | test -z "$as_dir" && as_dir=. | |
11718 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11719 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11720 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
11721 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11722 | break 2 | |
11723 | fi | |
11724 | done | |
11725 | done | |
11726 | IFS=$as_save_IFS | |
11727 | ||
11728 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
11729 | ;; | |
11730 | esac | |
11731 | fi | |
11732 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
11733 | if test -n "$PKG_CONFIG"; then | |
11734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
11735 | $as_echo "$PKG_CONFIG" >&6; } | |
11736 | else | |
11737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11738 | $as_echo "no" >&6; } | |
11739 | fi | |
11740 | ||
11741 | ||
11742 | ||
11743 | if test "$PKG_CONFIG" = "no" ; then | |
11744 | HAVE_LIBOTF=no | |
11745 | else | |
11746 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
11747 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
11748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5 | |
11749 | $as_echo_n "checking for libotf... " >&6; } | |
11750 | ||
11751 | if $PKG_CONFIG --exists "libotf" 2>&5; then | |
11752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11753 | $as_echo "yes" >&6; } | |
11754 | succeeded=yes | |
11755 | ||
11756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5 | |
11757 | $as_echo_n "checking LIBOTF_CFLAGS... " >&6; } | |
11758 | LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'` | |
11759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5 | |
11760 | $as_echo "$LIBOTF_CFLAGS" >&6; } | |
11761 | ||
11762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5 | |
11763 | $as_echo_n "checking LIBOTF_LIBS... " >&6; } | |
11764 | LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'` | |
11765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5 | |
11766 | $as_echo "$LIBOTF_LIBS" >&6; } | |
11767 | else | |
11768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11769 | $as_echo "no" >&6; } | |
11770 | LIBOTF_CFLAGS="" | |
11771 | LIBOTF_LIBS="" | |
11772 | ## If we have a custom action on failure, don't print errors, but | |
11773 | ## do set a variable so people can do so. | |
11774 | LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"` | |
11775 | ||
11776 | fi | |
11777 | ||
11778 | ||
11779 | ||
11780 | else | |
11781 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
11782 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
11783 | fi | |
11784 | fi | |
11785 | ||
11786 | if test $succeeded = yes; then | |
11787 | HAVE_LIBOTF=yes | |
11788 | else | |
11789 | HAVE_LIBOTF=no | |
11790 | fi | |
11791 | ||
11792 | if test "$HAVE_LIBOTF" = "yes"; then | |
11793 | ||
11794 | $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h | |
11795 | ||
11796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5 | |
11797 | $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; } | |
d6974efa | 11798 | if ${ac_cv_lib_otf_OTF_get_variation_glyphs+:} false; then : |
067d23c9 KY |
11799 | $as_echo_n "(cached) " >&6 |
11800 | else | |
11801 | ac_check_lib_save_LIBS=$LIBS | |
11802 | LIBS="-lotf $LIBS" | |
11803 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11804 | /* end confdefs.h. */ | |
11805 | ||
11806 | /* Override any GCC internal prototype to avoid an error. | |
11807 | Use char because int might match the return type of a GCC | |
11808 | builtin and then its argument prototype would still apply. */ | |
11809 | #ifdef __cplusplus | |
11810 | extern "C" | |
11811 | #endif | |
11812 | char OTF_get_variation_glyphs (); | |
11813 | int | |
11814 | main () | |
11815 | { | |
11816 | return OTF_get_variation_glyphs (); | |
11817 | ; | |
11818 | return 0; | |
11819 | } | |
11820 | _ACEOF | |
11821 | if ac_fn_c_try_link "$LINENO"; then : | |
11822 | ac_cv_lib_otf_OTF_get_variation_glyphs=yes | |
11823 | else | |
11824 | ac_cv_lib_otf_OTF_get_variation_glyphs=no | |
11825 | fi | |
11826 | rm -f core conftest.err conftest.$ac_objext \ | |
11827 | conftest$ac_exeext conftest.$ac_ext | |
11828 | LIBS=$ac_check_lib_save_LIBS | |
11829 | fi | |
11830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5 | |
11831 | $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; } | |
d6974efa | 11832 | if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = xyes; then : |
067d23c9 KY |
11833 | HAVE_OTF_GET_VARIATION_GLYPHS=yes |
11834 | else | |
11835 | HAVE_OTF_GET_VARIATION_GLYPHS=no | |
11836 | fi | |
11837 | ||
11838 | if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then | |
11839 | ||
11840 | $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h | |
11841 | ||
11842 | fi | |
11843 | fi | |
11844 | fi | |
11845 | fi | |
11846 | ||
11847 | HAVE_M17N_FLT=no | |
11848 | if test "${HAVE_LIBOTF}" = yes; then | |
11849 | if test "${with_m17n_flt}" != "no"; then | |
11850 | ||
11851 | succeeded=no | |
11852 | ||
11853 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
11854 | set dummy pkg-config; ac_word=$2 | |
11855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11856 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6974efa | 11857 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
067d23c9 KY |
11858 | $as_echo_n "(cached) " >&6 |
11859 | else | |
11860 | case $PKG_CONFIG in | |
11861 | [\\/]* | ?:[\\/]*) | |
11862 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
11863 | ;; | |
11864 | *) | |
11865 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11866 | for as_dir in $PATH | |
11867 | do | |
11868 | IFS=$as_save_IFS | |
11869 | test -z "$as_dir" && as_dir=. | |
11870 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11871 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11872 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
11873 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11874 | break 2 | |
11875 | fi | |
11876 | done | |
11877 | done | |
11878 | IFS=$as_save_IFS | |
11879 | ||
11880 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
11881 | ;; | |
11882 | esac | |
11883 | fi | |
11884 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
11885 | if test -n "$PKG_CONFIG"; then | |
11886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
11887 | $as_echo "$PKG_CONFIG" >&6; } | |
11888 | else | |
11889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11890 | $as_echo "no" >&6; } | |
11891 | fi | |
11892 | ||
11893 | ||
11894 | ||
11895 | if test "$PKG_CONFIG" = "no" ; then | |
11896 | HAVE_M17N_FLT=no | |
11897 | else | |
11898 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
11899 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
11900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5 | |
11901 | $as_echo_n "checking for m17n-flt... " >&6; } | |
11902 | ||
11903 | if $PKG_CONFIG --exists "m17n-flt" 2>&5; then | |
11904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11905 | $as_echo "yes" >&6; } | |
11906 | succeeded=yes | |
11907 | ||
11908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5 | |
11909 | $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; } | |
11910 | M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'` | |
11911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5 | |
11912 | $as_echo "$M17N_FLT_CFLAGS" >&6; } | |
11913 | ||
11914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5 | |
11915 | $as_echo_n "checking M17N_FLT_LIBS... " >&6; } | |
11916 | M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'` | |
11917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5 | |
11918 | $as_echo "$M17N_FLT_LIBS" >&6; } | |
11919 | else | |
11920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11921 | $as_echo "no" >&6; } | |
11922 | M17N_FLT_CFLAGS="" | |
11923 | M17N_FLT_LIBS="" | |
11924 | ## If we have a custom action on failure, don't print errors, but | |
11925 | ## do set a variable so people can do so. | |
11926 | M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"` | |
11927 | ||
11928 | fi | |
11929 | ||
11930 | ||
11931 | ||
11932 | else | |
11933 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
11934 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
11935 | fi | |
11936 | fi | |
11937 | ||
11938 | if test $succeeded = yes; then | |
11939 | HAVE_M17N_FLT=yes | |
11940 | else | |
11941 | HAVE_M17N_FLT=no | |
11942 | fi | |
11943 | ||
11944 | if test "$HAVE_M17N_FLT" = "yes"; then | |
11945 | ||
11946 | $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h | |
11947 | ||
11948 | fi | |
11949 | fi | |
11950 | fi | |
11951 | else | |
11952 | HAVE_XFT=no | |
11953 | HAVE_FREETYPE=no | |
11954 | HAVE_LIBOTF=no | |
11955 | HAVE_M17N_FLT=no | |
11956 | fi | |
11957 | ||
11958 | ### End of font-backend (under X11) section. | |
11959 | ||
11960 | ||
11961 | ||
11962 | ||
11963 | ||
11964 | ||
11965 | ||
11966 | ||
11967 | ||
11968 | ||
11969 | ### Use -lXpm if available, unless `--with-xpm=no'. | |
11970 | HAVE_XPM=no | |
11971 | LIBXPM= | |
11972 | if test "${HAVE_X11}" = "yes"; then | |
11973 | if test "${with_xpm}" != "no"; then | |
11974 | ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default" | |
d6974efa | 11975 | if test "x$ac_cv_header_X11_xpm_h" = xyes; then : |
067d23c9 KY |
11976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5 |
11977 | $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; } | |
d6974efa | 11978 | if ${ac_cv_lib_Xpm_XpmReadFileToPixmap+:} false; then : |
067d23c9 KY |
11979 | $as_echo_n "(cached) " >&6 |
11980 | else | |
11981 | ac_check_lib_save_LIBS=$LIBS | |
11982 | LIBS="-lXpm -lX11 $LIBS" | |
11983 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11984 | /* end confdefs.h. */ | |
11985 | ||
11986 | /* Override any GCC internal prototype to avoid an error. | |
11987 | Use char because int might match the return type of a GCC | |
11988 | builtin and then its argument prototype would still apply. */ | |
11989 | #ifdef __cplusplus | |
11990 | extern "C" | |
11991 | #endif | |
11992 | char XpmReadFileToPixmap (); | |
11993 | int | |
11994 | main () | |
11995 | { | |
11996 | return XpmReadFileToPixmap (); | |
11997 | ; | |
11998 | return 0; | |
11999 | } | |
12000 | _ACEOF | |
12001 | if ac_fn_c_try_link "$LINENO"; then : | |
12002 | ac_cv_lib_Xpm_XpmReadFileToPixmap=yes | |
12003 | else | |
12004 | ac_cv_lib_Xpm_XpmReadFileToPixmap=no | |
12005 | fi | |
12006 | rm -f core conftest.err conftest.$ac_objext \ | |
12007 | conftest$ac_exeext conftest.$ac_ext | |
12008 | LIBS=$ac_check_lib_save_LIBS | |
12009 | fi | |
12010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5 | |
12011 | $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; } | |
d6974efa | 12012 | if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = xyes; then : |
067d23c9 KY |
12013 | HAVE_XPM=yes |
12014 | fi | |
12015 | ||
12016 | fi | |
12017 | ||
12018 | ||
12019 | if test "${HAVE_XPM}" = "yes"; then | |
12020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5 | |
12021 | $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; } | |
12022 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12023 | /* end confdefs.h. */ | |
12024 | #include "X11/xpm.h" | |
12025 | #ifndef XpmReturnAllocPixels | |
12026 | no_return_alloc_pixels | |
12027 | #endif | |
12028 | ||
12029 | _ACEOF | |
12030 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12031 | $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then : | |
12032 | HAVE_XPM=no | |
12033 | else | |
12034 | HAVE_XPM=yes | |
12035 | fi | |
12036 | rm -f conftest* | |
12037 | ||
12038 | ||
12039 | if test "${HAVE_XPM}" = "yes"; then | |
12040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12041 | $as_echo "yes" >&6; } | |
12042 | else | |
12043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12044 | $as_echo "no" >&6; } | |
12045 | fi | |
12046 | fi | |
12047 | fi | |
12048 | ||
12049 | if test "${HAVE_XPM}" = "yes"; then | |
12050 | ||
12051 | $as_echo "#define HAVE_XPM 1" >>confdefs.h | |
12052 | ||
12053 | LIBXPM=-lXpm | |
12054 | fi | |
12055 | fi | |
12056 | ||
12057 | ||
12058 | ### Use -ljpeg if available, unless `--with-jpeg=no'. | |
12059 | HAVE_JPEG=no | |
12060 | LIBJPEG= | |
12061 | if test "${HAVE_X11}" = "yes"; then | |
12062 | if test "${with_jpeg}" != "no"; then | |
12063 | ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default" | |
d6974efa | 12064 | if test "x$ac_cv_header_jerror_h" = xyes; then : |
067d23c9 KY |
12065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5 |
12066 | $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; } | |
d6974efa | 12067 | if ${ac_cv_lib_jpeg_jpeg_destroy_compress+:} false; then : |
067d23c9 KY |
12068 | $as_echo_n "(cached) " >&6 |
12069 | else | |
12070 | ac_check_lib_save_LIBS=$LIBS | |
12071 | LIBS="-ljpeg $LIBS" | |
12072 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12073 | /* end confdefs.h. */ | |
12074 | ||
12075 | /* Override any GCC internal prototype to avoid an error. | |
12076 | Use char because int might match the return type of a GCC | |
12077 | builtin and then its argument prototype would still apply. */ | |
12078 | #ifdef __cplusplus | |
12079 | extern "C" | |
12080 | #endif | |
12081 | char jpeg_destroy_compress (); | |
12082 | int | |
12083 | main () | |
12084 | { | |
12085 | return jpeg_destroy_compress (); | |
12086 | ; | |
12087 | return 0; | |
12088 | } | |
12089 | _ACEOF | |
12090 | if ac_fn_c_try_link "$LINENO"; then : | |
12091 | ac_cv_lib_jpeg_jpeg_destroy_compress=yes | |
12092 | else | |
12093 | ac_cv_lib_jpeg_jpeg_destroy_compress=no | |
12094 | fi | |
12095 | rm -f core conftest.err conftest.$ac_objext \ | |
12096 | conftest$ac_exeext conftest.$ac_ext | |
12097 | LIBS=$ac_check_lib_save_LIBS | |
12098 | fi | |
12099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5 | |
12100 | $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; } | |
d6974efa | 12101 | if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes; then : |
067d23c9 KY |
12102 | HAVE_JPEG=yes |
12103 | fi | |
12104 | ||
12105 | fi | |
12106 | ||
12107 | ||
12108 | fi | |
12109 | ||
12110 | if test "${HAVE_JPEG}" = "yes"; then | |
12111 | $as_echo "#define HAVE_JPEG 1" >>confdefs.h | |
12112 | ||
12113 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12114 | /* end confdefs.h. */ | |
12115 | #include <jpeglib.h> | |
12116 | version=JPEG_LIB_VERSION | |
12117 | ||
12118 | _ACEOF | |
12119 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12120 | $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then : | |
12121 | $as_echo "#define HAVE_JPEG 1" >>confdefs.h | |
12122 | ||
12123 | else | |
12124 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5 | |
12125 | $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;} | |
12126 | HAVE_JPEG=no | |
12127 | fi | |
12128 | rm -f conftest* | |
12129 | ||
12130 | fi | |
12131 | if test "${HAVE_JPEG}" = "yes"; then | |
12132 | LIBJPEG=-ljpeg | |
12133 | fi | |
12134 | fi | |
12135 | ||
12136 | ||
12137 | ### Use -lpng if available, unless `--with-png=no'. | |
12138 | HAVE_PNG=no | |
12139 | LIBPNG= | |
12140 | if test "${HAVE_X11}" = "yes"; then | |
12141 | if test "${with_png}" != "no"; then | |
12142 | # Debian unstable as of July 2003 has multiple libpngs, and puts png.h | |
12143 | # in /usr/include/libpng. | |
12144 | for ac_header in png.h libpng/png.h | |
12145 | do : | |
12146 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12147 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
2018939f | 12148 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
067d23c9 KY |
12149 | cat >>confdefs.h <<_ACEOF |
12150 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12151 | _ACEOF | |
12152 | ||
12153 | fi | |
12154 | ||
12155 | done | |
12156 | ||
12157 | if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then | |
12158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5 | |
12159 | $as_echo_n "checking for png_get_channels in -lpng... " >&6; } | |
d6974efa | 12160 | if ${ac_cv_lib_png_png_get_channels+:} false; then : |
067d23c9 KY |
12161 | $as_echo_n "(cached) " >&6 |
12162 | else | |
12163 | ac_check_lib_save_LIBS=$LIBS | |
12164 | LIBS="-lpng -lz -lm $LIBS" | |
12165 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12166 | /* end confdefs.h. */ | |
12167 | ||
12168 | /* Override any GCC internal prototype to avoid an error. | |
12169 | Use char because int might match the return type of a GCC | |
12170 | builtin and then its argument prototype would still apply. */ | |
12171 | #ifdef __cplusplus | |
12172 | extern "C" | |
12173 | #endif | |
12174 | char png_get_channels (); | |
12175 | int | |
12176 | main () | |
12177 | { | |
12178 | return png_get_channels (); | |
12179 | ; | |
12180 | return 0; | |
12181 | } | |
12182 | _ACEOF | |
12183 | if ac_fn_c_try_link "$LINENO"; then : | |
12184 | ac_cv_lib_png_png_get_channels=yes | |
12185 | else | |
12186 | ac_cv_lib_png_png_get_channels=no | |
12187 | fi | |
12188 | rm -f core conftest.err conftest.$ac_objext \ | |
12189 | conftest$ac_exeext conftest.$ac_ext | |
12190 | LIBS=$ac_check_lib_save_LIBS | |
12191 | fi | |
12192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5 | |
12193 | $as_echo "$ac_cv_lib_png_png_get_channels" >&6; } | |
d6974efa | 12194 | if test "x$ac_cv_lib_png_png_get_channels" = xyes; then : |
067d23c9 KY |
12195 | HAVE_PNG=yes |
12196 | fi | |
12197 | ||
12198 | fi | |
12199 | fi | |
12200 | ||
12201 | if test "${HAVE_PNG}" = "yes"; then | |
12202 | ||
12203 | $as_echo "#define HAVE_PNG 1" >>confdefs.h | |
12204 | ||
12205 | LIBPNG="-lpng -lz -lm" | |
12206 | fi | |
12207 | fi | |
12208 | ||
12209 | ||
12210 | ### Use -ltiff if available, unless `--with-tiff=no'. | |
12211 | HAVE_TIFF=no | |
12212 | LIBTIFF= | |
12213 | if test "${HAVE_X11}" = "yes"; then | |
12214 | if test "${with_tiff}" != "no"; then | |
12215 | ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default" | |
d6974efa | 12216 | if test "x$ac_cv_header_tiffio_h" = xyes; then : |
067d23c9 KY |
12217 | tifflibs="-lz -lm" |
12218 | # At least one tiff package requires the jpeg library. | |
12219 | if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi | |
12220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5 | |
12221 | $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; } | |
d6974efa | 12222 | if ${ac_cv_lib_tiff_TIFFGetVersion+:} false; then : |
067d23c9 KY |
12223 | $as_echo_n "(cached) " >&6 |
12224 | else | |
12225 | ac_check_lib_save_LIBS=$LIBS | |
12226 | LIBS="-ltiff $tifflibs $LIBS" | |
12227 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12228 | /* end confdefs.h. */ | |
12229 | ||
12230 | /* Override any GCC internal prototype to avoid an error. | |
12231 | Use char because int might match the return type of a GCC | |
12232 | builtin and then its argument prototype would still apply. */ | |
12233 | #ifdef __cplusplus | |
12234 | extern "C" | |
12235 | #endif | |
12236 | char TIFFGetVersion (); | |
12237 | int | |
12238 | main () | |
12239 | { | |
12240 | return TIFFGetVersion (); | |
12241 | ; | |
12242 | return 0; | |
12243 | } | |
12244 | _ACEOF | |
12245 | if ac_fn_c_try_link "$LINENO"; then : | |
12246 | ac_cv_lib_tiff_TIFFGetVersion=yes | |
12247 | else | |
12248 | ac_cv_lib_tiff_TIFFGetVersion=no | |
12249 | fi | |
12250 | rm -f core conftest.err conftest.$ac_objext \ | |
12251 | conftest$ac_exeext conftest.$ac_ext | |
12252 | LIBS=$ac_check_lib_save_LIBS | |
12253 | fi | |
12254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5 | |
12255 | $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; } | |
d6974efa | 12256 | if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then : |
067d23c9 KY |
12257 | HAVE_TIFF=yes |
12258 | fi | |
12259 | ||
12260 | fi | |
12261 | ||
12262 | ||
12263 | fi | |
12264 | ||
12265 | if test "${HAVE_TIFF}" = "yes"; then | |
12266 | ||
12267 | $as_echo "#define HAVE_TIFF 1" >>confdefs.h | |
12268 | ||
12269 | LIBTIFF=-ltiff | |
12270 | fi | |
12271 | fi | |
12272 | ||
12273 | ||
12274 | ### Use -lgif or -lungif if available, unless `--with-gif=no'. | |
12275 | HAVE_GIF=no | |
12276 | LIBGIF= | |
12277 | if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then | |
12278 | ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default" | |
d6974efa | 12279 | if test "x$ac_cv_header_gif_lib_h" = xyes; then : |
067d23c9 KY |
12280 | # EGifPutExtensionLast only exists from version libungif-4.1.0b1. |
12281 | # Earlier versions can crash Emacs. | |
12282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5 | |
12283 | $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; } | |
d6974efa | 12284 | if ${ac_cv_lib_gif_EGifPutExtensionLast+:} false; then : |
067d23c9 KY |
12285 | $as_echo_n "(cached) " >&6 |
12286 | else | |
12287 | ac_check_lib_save_LIBS=$LIBS | |
12288 | LIBS="-lgif $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 EGifPutExtensionLast (); | |
12299 | int | |
12300 | main () | |
12301 | { | |
12302 | return EGifPutExtensionLast (); | |
12303 | ; | |
12304 | return 0; | |
12305 | } | |
12306 | _ACEOF | |
12307 | if ac_fn_c_try_link "$LINENO"; then : | |
12308 | ac_cv_lib_gif_EGifPutExtensionLast=yes | |
12309 | else | |
12310 | ac_cv_lib_gif_EGifPutExtensionLast=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_gif_EGifPutExtensionLast" >&5 | |
12317 | $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; } | |
d6974efa | 12318 | if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = xyes; then : |
067d23c9 KY |
12319 | HAVE_GIF=yes |
12320 | else | |
12321 | HAVE_GIF=maybe | |
12322 | fi | |
12323 | ||
12324 | fi | |
12325 | ||
12326 | ||
12327 | ||
12328 | if test "$HAVE_GIF" = yes; then | |
12329 | LIBGIF=-lgif | |
12330 | elif test "$HAVE_GIF" = maybe; then | |
12331 | # If gif_lib.h but no libgif, try libungif. | |
12332 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5 | |
12333 | $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; } | |
d6974efa | 12334 | if ${ac_cv_lib_ungif_EGifPutExtensionLast+:} false; then : |
067d23c9 KY |
12335 | $as_echo_n "(cached) " >&6 |
12336 | else | |
12337 | ac_check_lib_save_LIBS=$LIBS | |
12338 | LIBS="-lungif $LIBS" | |
12339 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12340 | /* end confdefs.h. */ | |
12341 | ||
12342 | /* Override any GCC internal prototype to avoid an error. | |
12343 | Use char because int might match the return type of a GCC | |
12344 | builtin and then its argument prototype would still apply. */ | |
12345 | #ifdef __cplusplus | |
12346 | extern "C" | |
12347 | #endif | |
12348 | char EGifPutExtensionLast (); | |
12349 | int | |
12350 | main () | |
12351 | { | |
12352 | return EGifPutExtensionLast (); | |
12353 | ; | |
12354 | return 0; | |
12355 | } | |
12356 | _ACEOF | |
12357 | if ac_fn_c_try_link "$LINENO"; then : | |
12358 | ac_cv_lib_ungif_EGifPutExtensionLast=yes | |
12359 | else | |
12360 | ac_cv_lib_ungif_EGifPutExtensionLast=no | |
12361 | fi | |
12362 | rm -f core conftest.err conftest.$ac_objext \ | |
12363 | conftest$ac_exeext conftest.$ac_ext | |
12364 | LIBS=$ac_check_lib_save_LIBS | |
12365 | fi | |
12366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5 | |
12367 | $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; } | |
d6974efa | 12368 | if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = xyes; then : |
067d23c9 KY |
12369 | HAVE_GIF=yes |
12370 | else | |
12371 | HAVE_GIF=no | |
12372 | fi | |
12373 | ||
12374 | test "$HAVE_GIF" = yes && LIBGIF=-lungif | |
12375 | fi | |
12376 | ||
12377 | if test "${HAVE_GIF}" = "yes"; then | |
12378 | ||
12379 | $as_echo "#define HAVE_GIF 1" >>confdefs.h | |
12380 | ||
12381 | fi | |
12382 | fi | |
12383 | ||
12384 | ||
12385 | if test "${HAVE_X11}" = "yes"; then | |
12386 | MISSING="" | |
12387 | WITH_NO="" | |
12388 | test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" && | |
12389 | MISSING="libXpm" && WITH_NO="--with-xpm=no" | |
12390 | test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" && | |
12391 | MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no" | |
12392 | test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" && | |
12393 | MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no" | |
12394 | test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" && | |
12395 | MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no" | |
12396 | test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" && | |
12397 | MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no" | |
12398 | ||
12399 | if test "X${MISSING}" != X; then | |
2018939f | 12400 | as_fn_error $? "The following required libraries were not found: |
067d23c9 KY |
12401 | $MISSING |
12402 | Maybe some development libraries/packages are missing? | |
12403 | If you don't want to link with them give | |
12404 | $WITH_NO | |
12405 | as options to configure" "$LINENO" 5 | |
12406 | fi | |
12407 | fi | |
12408 | ||
12409 | ### Use -lgpm if available, unless `--with-gpm=no'. | |
12410 | HAVE_GPM=no | |
12411 | LIBGPM= | |
12412 | MOUSE_SUPPORT= | |
12413 | if test "${with_gpm}" != "no"; then | |
12414 | ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default" | |
d6974efa | 12415 | if test "x$ac_cv_header_gpm_h" = xyes; then : |
067d23c9 KY |
12416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5 |
12417 | $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; } | |
d6974efa | 12418 | if ${ac_cv_lib_gpm_Gpm_Open+:} false; then : |
067d23c9 KY |
12419 | $as_echo_n "(cached) " >&6 |
12420 | else | |
12421 | ac_check_lib_save_LIBS=$LIBS | |
12422 | LIBS="-lgpm $LIBS" | |
12423 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12424 | /* end confdefs.h. */ | |
12425 | ||
12426 | /* Override any GCC internal prototype to avoid an error. | |
12427 | Use char because int might match the return type of a GCC | |
12428 | builtin and then its argument prototype would still apply. */ | |
12429 | #ifdef __cplusplus | |
12430 | extern "C" | |
12431 | #endif | |
12432 | char Gpm_Open (); | |
12433 | int | |
12434 | main () | |
12435 | { | |
12436 | return Gpm_Open (); | |
12437 | ; | |
12438 | return 0; | |
12439 | } | |
12440 | _ACEOF | |
12441 | if ac_fn_c_try_link "$LINENO"; then : | |
12442 | ac_cv_lib_gpm_Gpm_Open=yes | |
12443 | else | |
12444 | ac_cv_lib_gpm_Gpm_Open=no | |
12445 | fi | |
12446 | rm -f core conftest.err conftest.$ac_objext \ | |
12447 | conftest$ac_exeext conftest.$ac_ext | |
12448 | LIBS=$ac_check_lib_save_LIBS | |
12449 | fi | |
12450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5 | |
12451 | $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; } | |
d6974efa | 12452 | if test "x$ac_cv_lib_gpm_Gpm_Open" = xyes; then : |
067d23c9 KY |
12453 | HAVE_GPM=yes |
12454 | fi | |
12455 | ||
12456 | fi | |
12457 | ||
12458 | ||
12459 | ||
12460 | if test "${HAVE_GPM}" = "yes"; then | |
12461 | ||
12462 | $as_echo "#define HAVE_GPM 1" >>confdefs.h | |
12463 | ||
12464 | LIBGPM=-lgpm | |
12465 | ## May be reset below. | |
12466 | MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)" | |
12467 | fi | |
12468 | fi | |
12469 | ||
12470 | ||
12471 | ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default" | |
d6974efa | 12472 | if test "x$ac_cv_header_malloc_malloc_h" = xyes; then : |
067d23c9 KY |
12473 | |
12474 | $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h | |
12475 | ||
12476 | fi | |
12477 | ||
12478 | ||
12479 | ||
12480 | C_SWITCH_X_SYSTEM= | |
12481 | ### Use NeXTstep API to implement GUI. | |
12482 | if test "${HAVE_NS}" = "yes"; then | |
12483 | ||
12484 | $as_echo "#define HAVE_NS 1" >>confdefs.h | |
12485 | ||
12486 | if test "${NS_IMPL_COCOA}" = "yes"; then | |
12487 | ||
12488 | $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h | |
12489 | ||
12490 | GNU_OBJC_CFLAGS= | |
12491 | fi | |
12492 | if test "${NS_IMPL_GNUSTEP}" = "yes"; then | |
12493 | ||
12494 | $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h | |
12495 | ||
12496 | # See also .m.o rule in Makefile.in */ | |
12497 | # FIXME: are all these flags really needed? Document here why. */ | |
12498 | C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing" | |
12499 | GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE" | |
12500 | fi | |
12501 | if test "${NS_HAVE_NSINTEGER}" = "yes"; then | |
12502 | ||
12503 | $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h | |
12504 | ||
12505 | fi | |
12506 | # We also have mouse menus. | |
12507 | HAVE_MENUS=yes | |
12508 | OTHER_FILES=ns-app | |
12509 | fi | |
12510 | ||
12511 | ||
12512 | ### Use session management (-lSM -lICE) if available | |
12513 | HAVE_X_SM=no | |
12514 | LIBXSM= | |
12515 | if test "${HAVE_X11}" = "yes"; then | |
12516 | ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default" | |
d6974efa | 12517 | if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes; then : |
067d23c9 KY |
12518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5 |
12519 | $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; } | |
d6974efa | 12520 | if ${ac_cv_lib_SM_SmcOpenConnection+:} false; then : |
067d23c9 KY |
12521 | $as_echo_n "(cached) " >&6 |
12522 | else | |
12523 | ac_check_lib_save_LIBS=$LIBS | |
12524 | LIBS="-lSM -lICE $LIBS" | |
12525 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12526 | /* end confdefs.h. */ | |
12527 | ||
12528 | /* Override any GCC internal prototype to avoid an error. | |
12529 | Use char because int might match the return type of a GCC | |
12530 | builtin and then its argument prototype would still apply. */ | |
12531 | #ifdef __cplusplus | |
12532 | extern "C" | |
12533 | #endif | |
12534 | char SmcOpenConnection (); | |
12535 | int | |
12536 | main () | |
12537 | { | |
12538 | return SmcOpenConnection (); | |
12539 | ; | |
12540 | return 0; | |
12541 | } | |
12542 | _ACEOF | |
12543 | if ac_fn_c_try_link "$LINENO"; then : | |
12544 | ac_cv_lib_SM_SmcOpenConnection=yes | |
12545 | else | |
12546 | ac_cv_lib_SM_SmcOpenConnection=no | |
12547 | fi | |
12548 | rm -f core conftest.err conftest.$ac_objext \ | |
12549 | conftest$ac_exeext conftest.$ac_ext | |
12550 | LIBS=$ac_check_lib_save_LIBS | |
12551 | fi | |
12552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5 | |
12553 | $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; } | |
d6974efa | 12554 | if test "x$ac_cv_lib_SM_SmcOpenConnection" = xyes; then : |
067d23c9 KY |
12555 | HAVE_X_SM=yes |
12556 | fi | |
12557 | ||
12558 | fi | |
12559 | ||
12560 | ||
12561 | ||
12562 | if test "${HAVE_X_SM}" = "yes"; then | |
12563 | ||
12564 | $as_echo "#define HAVE_X_SM 1" >>confdefs.h | |
12565 | ||
12566 | LIBXSM="-lSM -lICE" | |
12567 | case "$LIBS" in | |
12568 | *-lSM*) ;; | |
12569 | *) LIBS="$LIBXSM $LIBS" ;; | |
12570 | esac | |
12571 | fi | |
12572 | fi | |
12573 | ||
12574 | ||
12575 | ### Use libxml (-lxml2) if available | |
12576 | if test "${with_xml2}" != "no"; then | |
12577 | ### I'm not sure what the version number should be, so I just guessed. | |
12578 | ||
12579 | succeeded=no | |
12580 | ||
12581 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
12582 | set dummy pkg-config; ac_word=$2 | |
12583 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12584 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6974efa | 12585 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
067d23c9 KY |
12586 | $as_echo_n "(cached) " >&6 |
12587 | else | |
12588 | case $PKG_CONFIG in | |
12589 | [\\/]* | ?:[\\/]*) | |
12590 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
12591 | ;; | |
12592 | *) | |
12593 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12594 | for as_dir in $PATH | |
12595 | do | |
12596 | IFS=$as_save_IFS | |
12597 | test -z "$as_dir" && as_dir=. | |
12598 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12599 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12600 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
12601 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12602 | break 2 | |
12603 | fi | |
12604 | done | |
12605 | done | |
12606 | IFS=$as_save_IFS | |
12607 | ||
12608 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
12609 | ;; | |
12610 | esac | |
12611 | fi | |
12612 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
12613 | if test -n "$PKG_CONFIG"; then | |
12614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
12615 | $as_echo "$PKG_CONFIG" >&6; } | |
12616 | else | |
12617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12618 | $as_echo "no" >&6; } | |
12619 | fi | |
12620 | ||
12621 | ||
12622 | ||
12623 | if test "$PKG_CONFIG" = "no" ; then | |
12624 | HAVE_LIBXML2=no | |
12625 | else | |
12626 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
12627 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
dab73760 CY |
12628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5 |
12629 | $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; } | |
067d23c9 | 12630 | |
dab73760 | 12631 | if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then |
067d23c9 KY |
12632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12633 | $as_echo "yes" >&6; } | |
12634 | succeeded=yes | |
12635 | ||
12636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5 | |
12637 | $as_echo_n "checking LIBXML2_CFLAGS... " >&6; } | |
dab73760 | 12638 | LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'` |
067d23c9 KY |
12639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5 |
12640 | $as_echo "$LIBXML2_CFLAGS" >&6; } | |
12641 | ||
12642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5 | |
12643 | $as_echo_n "checking LIBXML2_LIBS... " >&6; } | |
dab73760 | 12644 | LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'` |
067d23c9 KY |
12645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5 |
12646 | $as_echo "$LIBXML2_LIBS" >&6; } | |
12647 | else | |
12648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12649 | $as_echo "no" >&6; } | |
12650 | LIBXML2_CFLAGS="" | |
12651 | LIBXML2_LIBS="" | |
12652 | ## If we have a custom action on failure, don't print errors, but | |
12653 | ## do set a variable so people can do so. | |
dab73760 | 12654 | LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"` |
067d23c9 KY |
12655 | |
12656 | fi | |
12657 | ||
12658 | ||
12659 | ||
12660 | else | |
12661 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
12662 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
12663 | fi | |
12664 | fi | |
12665 | ||
12666 | if test $succeeded = yes; then | |
12667 | HAVE_LIBXML2=yes | |
12668 | else | |
12669 | HAVE_LIBXML2=no | |
12670 | fi | |
12671 | ||
12672 | if test "${HAVE_LIBXML2}" = "yes"; then | |
12673 | LIBS="$LIBXML2_LIBS $LIBS" | |
12674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5 | |
12675 | $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; } | |
d6974efa | 12676 | if ${ac_cv_lib_xml2_htmlReadMemory+:} false; then : |
067d23c9 KY |
12677 | $as_echo_n "(cached) " >&6 |
12678 | else | |
12679 | ac_check_lib_save_LIBS=$LIBS | |
12680 | LIBS="-lxml2 $LIBS" | |
12681 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12682 | /* end confdefs.h. */ | |
12683 | ||
12684 | /* Override any GCC internal prototype to avoid an error. | |
12685 | Use char because int might match the return type of a GCC | |
12686 | builtin and then its argument prototype would still apply. */ | |
12687 | #ifdef __cplusplus | |
12688 | extern "C" | |
12689 | #endif | |
12690 | char htmlReadMemory (); | |
12691 | int | |
12692 | main () | |
12693 | { | |
12694 | return htmlReadMemory (); | |
12695 | ; | |
12696 | return 0; | |
12697 | } | |
12698 | _ACEOF | |
12699 | if ac_fn_c_try_link "$LINENO"; then : | |
12700 | ac_cv_lib_xml2_htmlReadMemory=yes | |
12701 | else | |
12702 | ac_cv_lib_xml2_htmlReadMemory=no | |
12703 | fi | |
12704 | rm -f core conftest.err conftest.$ac_objext \ | |
12705 | conftest$ac_exeext conftest.$ac_ext | |
12706 | LIBS=$ac_check_lib_save_LIBS | |
12707 | fi | |
12708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5 | |
12709 | $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; } | |
d6974efa | 12710 | if test "x$ac_cv_lib_xml2_htmlReadMemory" = xyes; then : |
067d23c9 KY |
12711 | HAVE_LIBXML2=yes |
12712 | else | |
12713 | HAVE_LIBXML2=no | |
12714 | fi | |
12715 | ||
12716 | if test "${HAVE_LIBXML2}" = "yes"; then | |
12717 | ||
12718 | $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h | |
12719 | ||
12720 | else | |
12721 | LIBXML2_LIBS="" | |
12722 | LIBXML2_CFLAGS="" | |
12723 | fi | |
12724 | fi | |
12725 | fi | |
12726 | ||
12727 | ||
12728 | ||
12729 | # If netdb.h doesn't declare h_errno, we must declare it by hand. | |
12730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5 | |
12731 | $as_echo_n "checking whether netdb declares h_errno... " >&6; } | |
d6974efa | 12732 | if ${emacs_cv_netdb_declares_h_errno+:} false; then : |
067d23c9 KY |
12733 | $as_echo_n "(cached) " >&6 |
12734 | else | |
12735 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12736 | /* end confdefs.h. */ | |
12737 | #include <netdb.h> | |
12738 | int | |
12739 | main () | |
12740 | { | |
12741 | return h_errno; | |
12742 | ; | |
12743 | return 0; | |
12744 | } | |
12745 | _ACEOF | |
12746 | if ac_fn_c_try_link "$LINENO"; then : | |
12747 | emacs_cv_netdb_declares_h_errno=yes | |
12748 | else | |
12749 | emacs_cv_netdb_declares_h_errno=no | |
12750 | fi | |
12751 | rm -f core conftest.err conftest.$ac_objext \ | |
12752 | conftest$ac_exeext conftest.$ac_ext | |
12753 | fi | |
12754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5 | |
12755 | $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; } | |
12756 | if test $emacs_cv_netdb_declares_h_errno = yes; then | |
12757 | ||
12758 | $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h | |
12759 | ||
12760 | fi | |
12761 | ||
d6974efa PE |
12762 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
12763 | if test "x$ac_cv_type_size_t" = xyes; then : | |
12764 | ||
12765 | else | |
12766 | ||
12767 | cat >>confdefs.h <<_ACEOF | |
12768 | #define size_t unsigned int | |
12769 | _ACEOF | |
12770 | ||
12771 | fi | |
12772 | ||
067d23c9 KY |
12773 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
12774 | # for constant arguments. Useless! | |
12775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 | |
12776 | $as_echo_n "checking for working alloca.h... " >&6; } | |
d6974efa | 12777 | if ${ac_cv_working_alloca_h+:} false; then : |
067d23c9 KY |
12778 | $as_echo_n "(cached) " >&6 |
12779 | else | |
12780 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12781 | /* end confdefs.h. */ | |
12782 | #include <alloca.h> | |
12783 | int | |
12784 | main () | |
12785 | { | |
12786 | char *p = (char *) alloca (2 * sizeof (int)); | |
12787 | if (p) return 0; | |
12788 | ; | |
12789 | return 0; | |
12790 | } | |
12791 | _ACEOF | |
12792 | if ac_fn_c_try_link "$LINENO"; then : | |
12793 | ac_cv_working_alloca_h=yes | |
12794 | else | |
12795 | ac_cv_working_alloca_h=no | |
12796 | fi | |
12797 | rm -f core conftest.err conftest.$ac_objext \ | |
12798 | conftest$ac_exeext conftest.$ac_ext | |
12799 | fi | |
12800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 | |
12801 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
12802 | if test $ac_cv_working_alloca_h = yes; then | |
12803 | ||
12804 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h | |
12805 | ||
12806 | fi | |
12807 | ||
12808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 | |
12809 | $as_echo_n "checking for alloca... " >&6; } | |
d6974efa | 12810 | if ${ac_cv_func_alloca_works+:} false; then : |
067d23c9 KY |
12811 | $as_echo_n "(cached) " >&6 |
12812 | else | |
12813 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12814 | /* end confdefs.h. */ | |
12815 | #ifdef __GNUC__ | |
12816 | # define alloca __builtin_alloca | |
12817 | #else | |
12818 | # ifdef _MSC_VER | |
12819 | # include <malloc.h> | |
12820 | # define alloca _alloca | |
12821 | # else | |
12822 | # ifdef HAVE_ALLOCA_H | |
12823 | # include <alloca.h> | |
12824 | # else | |
12825 | # ifdef _AIX | |
12826 | #pragma alloca | |
12827 | # else | |
12828 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
d6974efa | 12829 | void *alloca (size_t); |
067d23c9 KY |
12830 | # endif |
12831 | # endif | |
12832 | # endif | |
12833 | # endif | |
12834 | #endif | |
12835 | ||
12836 | int | |
12837 | main () | |
12838 | { | |
12839 | char *p = (char *) alloca (1); | |
12840 | if (p) return 0; | |
12841 | ; | |
12842 | return 0; | |
12843 | } | |
12844 | _ACEOF | |
12845 | if ac_fn_c_try_link "$LINENO"; then : | |
12846 | ac_cv_func_alloca_works=yes | |
12847 | else | |
12848 | ac_cv_func_alloca_works=no | |
12849 | fi | |
12850 | rm -f core conftest.err conftest.$ac_objext \ | |
12851 | conftest$ac_exeext conftest.$ac_ext | |
12852 | fi | |
12853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 | |
12854 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
12855 | ||
12856 | if test $ac_cv_func_alloca_works = yes; then | |
12857 | ||
12858 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h | |
12859 | ||
12860 | else | |
12861 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
12862 | # that cause trouble. Some versions do not even contain alloca or | |
12863 | # contain a buggy version. If you still want to use their alloca, | |
12864 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
12865 | ||
12866 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext | |
12867 | ||
12868 | $as_echo "#define C_ALLOCA 1" >>confdefs.h | |
12869 | ||
12870 | ||
12871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 | |
12872 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
d6974efa | 12873 | if ${ac_cv_os_cray+:} false; then : |
067d23c9 KY |
12874 | $as_echo_n "(cached) " >&6 |
12875 | else | |
12876 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12877 | /* end confdefs.h. */ | |
12878 | #if defined CRAY && ! defined CRAY2 | |
12879 | webecray | |
12880 | #else | |
12881 | wenotbecray | |
12882 | #endif | |
12883 | ||
12884 | _ACEOF | |
12885 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12886 | $EGREP "webecray" >/dev/null 2>&1; then : | |
12887 | ac_cv_os_cray=yes | |
12888 | else | |
12889 | ac_cv_os_cray=no | |
12890 | fi | |
12891 | rm -f conftest* | |
12892 | ||
12893 | fi | |
12894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 | |
12895 | $as_echo "$ac_cv_os_cray" >&6; } | |
12896 | if test $ac_cv_os_cray = yes; then | |
12897 | for ac_func in _getb67 GETB67 getb67; do | |
12898 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
12899 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
2018939f | 12900 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
067d23c9 KY |
12901 | |
12902 | cat >>confdefs.h <<_ACEOF | |
12903 | #define CRAY_STACKSEG_END $ac_func | |
12904 | _ACEOF | |
12905 | ||
12906 | break | |
12907 | fi | |
12908 | ||
12909 | done | |
12910 | fi | |
12911 | ||
12912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 | |
12913 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
d6974efa | 12914 | if ${ac_cv_c_stack_direction+:} false; then : |
067d23c9 KY |
12915 | $as_echo_n "(cached) " >&6 |
12916 | else | |
12917 | if test "$cross_compiling" = yes; then : | |
12918 | ac_cv_c_stack_direction=0 | |
12919 | else | |
12920 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12921 | /* end confdefs.h. */ | |
12922 | $ac_includes_default | |
12923 | int | |
12924 | find_stack_direction () | |
12925 | { | |
12926 | static char *addr = 0; | |
12927 | auto char dummy; | |
12928 | if (addr == 0) | |
12929 | { | |
12930 | addr = &dummy; | |
12931 | return find_stack_direction (); | |
12932 | } | |
12933 | else | |
12934 | return (&dummy > addr) ? 1 : -1; | |
12935 | } | |
12936 | ||
12937 | int | |
12938 | main () | |
12939 | { | |
12940 | return find_stack_direction () < 0; | |
12941 | } | |
12942 | _ACEOF | |
12943 | if ac_fn_c_try_run "$LINENO"; then : | |
12944 | ac_cv_c_stack_direction=1 | |
12945 | else | |
12946 | ac_cv_c_stack_direction=-1 | |
12947 | fi | |
12948 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
12949 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
12950 | fi | |
12951 | ||
12952 | fi | |
12953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 | |
12954 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
12955 | cat >>confdefs.h <<_ACEOF | |
12956 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
12957 | _ACEOF | |
12958 | ||
12959 | ||
12960 | fi | |
12961 | ||
12962 | ||
12963 | if test x"$ac_cv_func_alloca_works" != xyes; then | |
2018939f | 12964 | as_fn_error $? "a system implementation of alloca is required " "$LINENO" 5 |
067d23c9 KY |
12965 | fi |
12966 | ||
12967 | # fmod, logb, and frexp are found in -lm on most systems. | |
12968 | # On HPUX 9.01, -lm does not contain logb, so check for sqrt. | |
12969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5 | |
12970 | $as_echo_n "checking for sqrt in -lm... " >&6; } | |
d6974efa | 12971 | if ${ac_cv_lib_m_sqrt+:} false; then : |
067d23c9 KY |
12972 | $as_echo_n "(cached) " >&6 |
12973 | else | |
12974 | ac_check_lib_save_LIBS=$LIBS | |
12975 | LIBS="-lm $LIBS" | |
12976 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12977 | /* end confdefs.h. */ | |
12978 | ||
12979 | /* Override any GCC internal prototype to avoid an error. | |
12980 | Use char because int might match the return type of a GCC | |
12981 | builtin and then its argument prototype would still apply. */ | |
12982 | #ifdef __cplusplus | |
12983 | extern "C" | |
12984 | #endif | |
12985 | char sqrt (); | |
12986 | int | |
12987 | main () | |
12988 | { | |
12989 | return sqrt (); | |
12990 | ; | |
12991 | return 0; | |
12992 | } | |
12993 | _ACEOF | |
12994 | if ac_fn_c_try_link "$LINENO"; then : | |
12995 | ac_cv_lib_m_sqrt=yes | |
12996 | else | |
12997 | ac_cv_lib_m_sqrt=no | |
12998 | fi | |
12999 | rm -f core conftest.err conftest.$ac_objext \ | |
13000 | conftest$ac_exeext conftest.$ac_ext | |
13001 | LIBS=$ac_check_lib_save_LIBS | |
13002 | fi | |
13003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5 | |
13004 | $as_echo "$ac_cv_lib_m_sqrt" >&6; } | |
d6974efa | 13005 | if test "x$ac_cv_lib_m_sqrt" = xyes; then : |
067d23c9 KY |
13006 | cat >>confdefs.h <<_ACEOF |
13007 | #define HAVE_LIBM 1 | |
13008 | _ACEOF | |
13009 | ||
13010 | LIBS="-lm $LIBS" | |
13011 | ||
13012 | fi | |
13013 | ||
13014 | ||
13015 | # Check for mail-locking functions in a "mail" library. Probably this should | |
13016 | # have the same check as for liblockfile below. | |
13017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5 | |
13018 | $as_echo_n "checking for maillock in -lmail... " >&6; } | |
d6974efa | 13019 | if ${ac_cv_lib_mail_maillock+:} false; then : |
067d23c9 KY |
13020 | $as_echo_n "(cached) " >&6 |
13021 | else | |
13022 | ac_check_lib_save_LIBS=$LIBS | |
13023 | LIBS="-lmail $LIBS" | |
13024 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13025 | /* end confdefs.h. */ | |
13026 | ||
13027 | /* Override any GCC internal prototype to avoid an error. | |
13028 | Use char because int might match the return type of a GCC | |
13029 | builtin and then its argument prototype would still apply. */ | |
13030 | #ifdef __cplusplus | |
13031 | extern "C" | |
13032 | #endif | |
13033 | char maillock (); | |
13034 | int | |
13035 | main () | |
13036 | { | |
13037 | return maillock (); | |
13038 | ; | |
13039 | return 0; | |
13040 | } | |
13041 | _ACEOF | |
13042 | if ac_fn_c_try_link "$LINENO"; then : | |
13043 | ac_cv_lib_mail_maillock=yes | |
13044 | else | |
13045 | ac_cv_lib_mail_maillock=no | |
13046 | fi | |
13047 | rm -f core conftest.err conftest.$ac_objext \ | |
13048 | conftest$ac_exeext conftest.$ac_ext | |
13049 | LIBS=$ac_check_lib_save_LIBS | |
13050 | fi | |
13051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5 | |
13052 | $as_echo "$ac_cv_lib_mail_maillock" >&6; } | |
d6974efa | 13053 | if test "x$ac_cv_lib_mail_maillock" = xyes; then : |
067d23c9 KY |
13054 | have_mail=yes |
13055 | else | |
13056 | have_mail=no | |
13057 | fi | |
13058 | ||
13059 | if test $have_mail = yes; then | |
13060 | LIBS_MAIL=-lmail | |
13061 | LIBS="$LIBS_MAIL $LIBS" | |
13062 | ||
13063 | $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h | |
13064 | ||
13065 | else | |
13066 | LIBS_MAIL= | |
13067 | fi | |
13068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5 | |
13069 | $as_echo_n "checking for maillock in -llockfile... " >&6; } | |
d6974efa | 13070 | if ${ac_cv_lib_lockfile_maillock+:} false; then : |
067d23c9 KY |
13071 | $as_echo_n "(cached) " >&6 |
13072 | else | |
13073 | ac_check_lib_save_LIBS=$LIBS | |
13074 | LIBS="-llockfile $LIBS" | |
13075 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13076 | /* end confdefs.h. */ | |
13077 | ||
13078 | /* Override any GCC internal prototype to avoid an error. | |
13079 | Use char because int might match the return type of a GCC | |
13080 | builtin and then its argument prototype would still apply. */ | |
13081 | #ifdef __cplusplus | |
13082 | extern "C" | |
13083 | #endif | |
13084 | char maillock (); | |
13085 | int | |
13086 | main () | |
13087 | { | |
13088 | return maillock (); | |
13089 | ; | |
13090 | return 0; | |
13091 | } | |
13092 | _ACEOF | |
13093 | if ac_fn_c_try_link "$LINENO"; then : | |
13094 | ac_cv_lib_lockfile_maillock=yes | |
13095 | else | |
13096 | ac_cv_lib_lockfile_maillock=no | |
13097 | fi | |
13098 | rm -f core conftest.err conftest.$ac_objext \ | |
13099 | conftest$ac_exeext conftest.$ac_ext | |
13100 | LIBS=$ac_check_lib_save_LIBS | |
13101 | fi | |
13102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5 | |
13103 | $as_echo "$ac_cv_lib_lockfile_maillock" >&6; } | |
d6974efa | 13104 | if test "x$ac_cv_lib_lockfile_maillock" = xyes; then : |
067d23c9 KY |
13105 | have_lockfile=yes |
13106 | else | |
13107 | have_lockfile=no | |
13108 | fi | |
13109 | ||
13110 | if test $have_lockfile = yes; then | |
13111 | LIBS_MAIL=-llockfile | |
13112 | LIBS="$LIBS_MAIL $LIBS" | |
13113 | ||
13114 | $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h | |
13115 | ||
13116 | else | |
13117 | # If we have the shared liblockfile, assume we must use it for mail | |
13118 | # locking (e.g. Debian). If we couldn't link against liblockfile | |
13119 | # (no liblockfile.a installed), ensure that we don't need to. | |
13120 | # Extract the first word of "liblockfile.so", so it can be a program name with args. | |
13121 | set dummy liblockfile.so; ac_word=$2 | |
13122 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13123 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6974efa | 13124 | if ${ac_cv_prog_liblockfile+:} false; then : |
067d23c9 KY |
13125 | $as_echo_n "(cached) " >&6 |
13126 | else | |
13127 | if test -n "$liblockfile"; then | |
13128 | ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. | |
13129 | else | |
13130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13131 | as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH" | |
13132 | for as_dir in $as_dummy | |
13133 | do | |
13134 | IFS=$as_save_IFS | |
13135 | test -z "$as_dir" && as_dir=. | |
13136 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13137 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13138 | ac_cv_prog_liblockfile="yes" | |
13139 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13140 | break 2 | |
13141 | fi | |
13142 | done | |
13143 | done | |
13144 | IFS=$as_save_IFS | |
13145 | ||
13146 | test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no" | |
13147 | fi | |
13148 | fi | |
13149 | liblockfile=$ac_cv_prog_liblockfile | |
13150 | if test -n "$liblockfile"; then | |
13151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5 | |
13152 | $as_echo "$liblockfile" >&6; } | |
13153 | else | |
13154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13155 | $as_echo "no" >&6; } | |
13156 | fi | |
13157 | ||
13158 | ||
13159 | if test $ac_cv_prog_liblockfile = yes; then | |
2018939f | 13160 | as_fn_error $? "Shared liblockfile found but can't link against it. |
067d23c9 KY |
13161 | This probably means that movemail could lose mail. |
13162 | There may be a \`development' package to install containing liblockfile." "$LINENO" 5 | |
13163 | fi | |
13164 | fi | |
13165 | for ac_func in touchlock | |
13166 | do : | |
13167 | ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock" | |
d6974efa | 13168 | if test "x$ac_cv_func_touchlock" = xyes; then : |
067d23c9 KY |
13169 | cat >>confdefs.h <<_ACEOF |
13170 | #define HAVE_TOUCHLOCK 1 | |
13171 | _ACEOF | |
13172 | ||
13173 | fi | |
13174 | done | |
13175 | ||
13176 | for ac_header in maillock.h | |
13177 | do : | |
13178 | ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default" | |
d6974efa | 13179 | if test "x$ac_cv_header_maillock_h" = xyes; then : |
067d23c9 KY |
13180 | cat >>confdefs.h <<_ACEOF |
13181 | #define HAVE_MAILLOCK_H 1 | |
13182 | _ACEOF | |
13183 | ||
13184 | fi | |
13185 | ||
13186 | done | |
13187 | ||
13188 | ||
13189 | ||
13190 | ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to | |
13191 | ## interlock access to the mail spool. The alternative is a lock file named | |
13192 | ## /usr/spool/mail/$USER.lock. | |
13193 | mail_lock=no | |
13194 | case "$opsys" in | |
13195 | aix4-2) mail_lock="lockf" ;; | |
13196 | ||
13197 | gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;; | |
13198 | ||
13199 | ## On GNU/Linux systems, both methods are used by various mail programs. | |
13200 | ## I assume most people are using newer mailers that have heard of flock. | |
13201 | ## Change this if you need to. | |
13202 | ## Debian contains a patch which says: ``On Debian/GNU/Linux systems, | |
13203 | ## configure gets the right answers, and that means *NOT* using flock. | |
13204 | ## Using flock is guaranteed to be the wrong thing. See Debian Policy | |
13205 | ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the | |
13206 | ## Debian maintainer hasn't provided a clean fix for Emacs. | |
13207 | ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and | |
13208 | ## HAVE_MAILLOCK_H are defined, so the following appears to be the | |
13209 | ## correct logic. -- fx | |
13210 | ## We must check for HAVE_LIBLOCKFILE too, as movemail does. | |
13211 | ## liblockfile is a Free Software replacement for libmail, used on | |
13212 | ## Debian systems and elsewhere. -rfr. | |
13213 | gnu-*) | |
13214 | mail_lock="flock" | |
13215 | if test $have_mail = yes || test $have_lockfile = yes; then | |
13216 | test $ac_cv_header_maillock_h = yes && mail_lock=no | |
13217 | fi | |
13218 | ;; | |
13219 | esac | |
13220 | ||
13221 | BLESSMAIL_TARGET= | |
13222 | case "$mail_lock" in | |
13223 | flock) | |
13224 | $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h | |
13225 | ;; | |
13226 | ||
13227 | lockf) | |
13228 | $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h | |
13229 | ;; | |
13230 | ||
13231 | *) BLESSMAIL_TARGET="need-blessmail" ;; | |
13232 | esac | |
13233 | ||
13234 | ||
13235 | ||
13236 | for ac_func in gethostname getdomainname dup2 \ | |
13237 | rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \ | |
13238 | random lrand48 logb frexp fmod rint cbrt ftime setsid \ | |
1fd182f0 | 13239 | strerror fpathconf select euidaccess getpagesize tzset setlocale \ |
067d23c9 KY |
13240 | utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \ |
13241 | __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \ | |
13242 | sendto recvfrom getsockopt setsockopt getsockname getpeername \ | |
13243 | gai_strerror mkstemp getline getdelim mremap memmove fsync sync \ | |
13244 | memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \ | |
13245 | cfmakeraw cfsetspeed isnan copysign __executable_start | |
13246 | do : | |
13247 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13248 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
2018939f | 13249 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
067d23c9 KY |
13250 | cat >>confdefs.h <<_ACEOF |
13251 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13252 | _ACEOF | |
13253 | ||
13254 | fi | |
13255 | done | |
13256 | ||
13257 | ||
2018939f AS |
13258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5 |
13259 | $as_echo_n "checking for __builtin_unwind_init... " >&6; } | |
d6974efa | 13260 | if ${emacs_cv_func___builtin_unwind_init+:} false; then : |
2018939f AS |
13261 | $as_echo_n "(cached) " >&6 |
13262 | else | |
13263 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13264 | /* end confdefs.h. */ | |
13265 | ||
13266 | int | |
13267 | main () | |
13268 | { | |
13269 | __builtin_unwind_init (); | |
13270 | ; | |
13271 | return 0; | |
13272 | } | |
13273 | _ACEOF | |
13274 | if ac_fn_c_try_link "$LINENO"; then : | |
13275 | emacs_cv_func___builtin_unwind_init=yes | |
13276 | else | |
13277 | emacs_cv_func___builtin_unwind_init=no | |
13278 | fi | |
13279 | rm -f core conftest.err conftest.$ac_objext \ | |
13280 | conftest$ac_exeext conftest.$ac_ext | |
13281 | fi | |
13282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5 | |
13283 | $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; } | |
13284 | if test $emacs_cv_func___builtin_unwind_init = yes; then | |
13285 | ||
13286 | $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h | |
13287 | ||
13288 | fi | |
13289 | ||
067d23c9 KY |
13290 | for ac_header in sys/un.h |
13291 | do : | |
13292 | ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default" | |
d6974efa | 13293 | if test "x$ac_cv_header_sys_un_h" = xyes; then : |
067d23c9 KY |
13294 | cat >>confdefs.h <<_ACEOF |
13295 | #define HAVE_SYS_UN_H 1 | |
13296 | _ACEOF | |
13297 | ||
13298 | fi | |
13299 | ||
13300 | done | |
13301 | ||
13302 | ||
1f5d53eb PE |
13303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 |
13304 | $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } | |
13305 | if ${ac_cv_sys_largefile_source+:} false; then : | |
067d23c9 KY |
13306 | $as_echo_n "(cached) " >&6 |
13307 | else | |
1f5d53eb PE |
13308 | while :; do |
13309 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
067d23c9 | 13310 | /* end confdefs.h. */ |
1f5d53eb PE |
13311 | #include <sys/types.h> /* for off_t */ |
13312 | #include <stdio.h> | |
067d23c9 KY |
13313 | int |
13314 | main () | |
13315 | { | |
1f5d53eb PE |
13316 | int (*fp) (FILE *, off_t, int) = fseeko; |
13317 | return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); | |
067d23c9 KY |
13318 | ; |
13319 | return 0; | |
13320 | } | |
13321 | _ACEOF | |
13322 | if ac_fn_c_try_link "$LINENO"; then : | |
1f5d53eb | 13323 | ac_cv_sys_largefile_source=no; break |
067d23c9 KY |
13324 | fi |
13325 | rm -f core conftest.err conftest.$ac_objext \ | |
13326 | conftest$ac_exeext conftest.$ac_ext | |
1f5d53eb | 13327 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
067d23c9 | 13328 | /* end confdefs.h. */ |
1f5d53eb PE |
13329 | #define _LARGEFILE_SOURCE 1 |
13330 | #include <sys/types.h> /* for off_t */ | |
13331 | #include <stdio.h> | |
067d23c9 KY |
13332 | int |
13333 | main () | |
13334 | { | |
1f5d53eb PE |
13335 | int (*fp) (FILE *, off_t, int) = fseeko; |
13336 | return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); | |
067d23c9 KY |
13337 | ; |
13338 | return 0; | |
13339 | } | |
13340 | _ACEOF | |
13341 | if ac_fn_c_try_link "$LINENO"; then : | |
1f5d53eb | 13342 | ac_cv_sys_largefile_source=1; break |
067d23c9 KY |
13343 | fi |
13344 | rm -f core conftest.err conftest.$ac_objext \ | |
13345 | conftest$ac_exeext conftest.$ac_ext | |
1f5d53eb PE |
13346 | ac_cv_sys_largefile_source=unknown |
13347 | break | |
13348 | done | |
067d23c9 | 13349 | fi |
1f5d53eb PE |
13350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 |
13351 | $as_echo "$ac_cv_sys_largefile_source" >&6; } | |
13352 | case $ac_cv_sys_largefile_source in #( | |
13353 | no | unknown) ;; | |
13354 | *) | |
13355 | cat >>confdefs.h <<_ACEOF | |
13356 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source | |
13357 | _ACEOF | |
13358 | ;; | |
13359 | esac | |
13360 | rm -rf conftest* | |
067d23c9 | 13361 | |
1f5d53eb PE |
13362 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug |
13363 | # in glibc 2.1.3, but that breaks too many other things. | |
13364 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | |
13365 | if test $ac_cv_sys_largefile_source != unknown; then | |
13366 | ||
13367 | $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h | |
067d23c9 | 13368 | |
067d23c9 KY |
13369 | fi |
13370 | ||
1f5d53eb PE |
13371 | |
13372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5 | |
13373 | $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; } | |
13374 | if ${ac_cv_func_getpgrp_void+:} false; then : | |
067d23c9 KY |
13375 | $as_echo_n "(cached) " >&6 |
13376 | else | |
1f5d53eb | 13377 | # Use it with a single arg. |
067d23c9 KY |
13378 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13379 | /* end confdefs.h. */ | |
1f5d53eb | 13380 | $ac_includes_default |
067d23c9 KY |
13381 | int |
13382 | main () | |
13383 | { | |
1f5d53eb | 13384 | getpgrp (0); |
067d23c9 KY |
13385 | ; |
13386 | return 0; | |
13387 | } | |
13388 | _ACEOF | |
1f5d53eb PE |
13389 | if ac_fn_c_try_compile "$LINENO"; then : |
13390 | ac_cv_func_getpgrp_void=no | |
067d23c9 | 13391 | else |
1f5d53eb | 13392 | ac_cv_func_getpgrp_void=yes |
067d23c9 | 13393 | fi |
1f5d53eb PE |
13394 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13395 | ||
067d23c9 | 13396 | fi |
1f5d53eb PE |
13397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5 |
13398 | $as_echo "$ac_cv_func_getpgrp_void" >&6; } | |
13399 | if test $ac_cv_func_getpgrp_void = yes; then | |
13400 | ||
13401 | $as_echo "#define GETPGRP_VOID 1" >>confdefs.h | |
067d23c9 KY |
13402 | |
13403 | fi | |
13404 | ||
1f5d53eb PE |
13405 | |
13406 | # Configure gnulib. | |
13407 | ||
13408 | ||
13409 | ||
13410 | ||
13411 | ||
13412 | ||
13413 | ||
13414 | ||
13415 | ||
13416 | ||
13417 | LIBC_FATAL_STDERR_=1 | |
13418 | export LIBC_FATAL_STDERR_ | |
13419 | ||
13420 | ||
942f733f PE |
13421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
13422 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
13423 | if ${ac_cv_c_bigendian+:} false; then : | |
13424 | $as_echo_n "(cached) " >&6 | |
13425 | else | |
13426 | ac_cv_c_bigendian=unknown | |
13427 | # See if we're dealing with a universal compiler. | |
13428 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13429 | /* end confdefs.h. */ | |
13430 | #ifndef __APPLE_CC__ | |
13431 | not a universal capable compiler | |
13432 | #endif | |
13433 | typedef int dummy; | |
13434 | ||
13435 | _ACEOF | |
13436 | if ac_fn_c_try_compile "$LINENO"; then : | |
13437 | ||
13438 | # Check for potential -arch flags. It is not universal unless | |
13439 | # there are at least two -arch flags with different values. | |
13440 | ac_arch= | |
13441 | ac_prev= | |
13442 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
13443 | if test -n "$ac_prev"; then | |
13444 | case $ac_word in | |
13445 | i?86 | x86_64 | ppc | ppc64) | |
13446 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
13447 | ac_arch=$ac_word | |
13448 | else | |
13449 | ac_cv_c_bigendian=universal | |
13450 | break | |
13451 | fi | |
13452 | ;; | |
13453 | esac | |
13454 | ac_prev= | |
13455 | elif test "x$ac_word" = "x-arch"; then | |
13456 | ac_prev=arch | |
13457 | fi | |
13458 | done | |
13459 | fi | |
13460 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13461 | if test $ac_cv_c_bigendian = unknown; then | |
13462 | # See if sys/param.h defines the BYTE_ORDER macro. | |
13463 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13464 | /* end confdefs.h. */ | |
13465 | #include <sys/types.h> | |
13466 | #include <sys/param.h> | |
13467 | ||
13468 | int | |
13469 | main () | |
13470 | { | |
13471 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | |
13472 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
13473 | && LITTLE_ENDIAN) | |
13474 | bogus endian macros | |
13475 | #endif | |
13476 | ||
13477 | ; | |
13478 | return 0; | |
13479 | } | |
13480 | _ACEOF | |
13481 | if ac_fn_c_try_compile "$LINENO"; then : | |
13482 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
13483 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13484 | /* end confdefs.h. */ | |
13485 | #include <sys/types.h> | |
13486 | #include <sys/param.h> | |
13487 | ||
13488 | int | |
13489 | main () | |
13490 | { | |
13491 | #if BYTE_ORDER != BIG_ENDIAN | |
13492 | not big endian | |
13493 | #endif | |
13494 | ||
13495 | ; | |
13496 | return 0; | |
13497 | } | |
13498 | _ACEOF | |
13499 | if ac_fn_c_try_compile "$LINENO"; then : | |
13500 | ac_cv_c_bigendian=yes | |
13501 | else | |
13502 | ac_cv_c_bigendian=no | |
13503 | fi | |
13504 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13505 | fi | |
13506 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13507 | fi | |
13508 | if test $ac_cv_c_bigendian = unknown; then | |
13509 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
13510 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13511 | /* end confdefs.h. */ | |
13512 | #include <limits.h> | |
13513 | ||
13514 | int | |
13515 | main () | |
13516 | { | |
13517 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
13518 | bogus endian macros | |
13519 | #endif | |
13520 | ||
13521 | ; | |
13522 | return 0; | |
13523 | } | |
13524 | _ACEOF | |
13525 | if ac_fn_c_try_compile "$LINENO"; then : | |
13526 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
13527 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13528 | /* end confdefs.h. */ | |
13529 | #include <limits.h> | |
13530 | ||
13531 | int | |
13532 | main () | |
13533 | { | |
13534 | #ifndef _BIG_ENDIAN | |
13535 | not big endian | |
13536 | #endif | |
13537 | ||
13538 | ; | |
13539 | return 0; | |
13540 | } | |
13541 | _ACEOF | |
13542 | if ac_fn_c_try_compile "$LINENO"; then : | |
13543 | ac_cv_c_bigendian=yes | |
13544 | else | |
13545 | ac_cv_c_bigendian=no | |
13546 | fi | |
13547 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13548 | fi | |
13549 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13550 | fi | |
13551 | if test $ac_cv_c_bigendian = unknown; then | |
13552 | # Compile a test program. | |
13553 | if test "$cross_compiling" = yes; then : | |
13554 | # Try to guess by grepping values from an object file. | |
13555 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13556 | /* end confdefs.h. */ | |
13557 | short int ascii_mm[] = | |
13558 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
13559 | short int ascii_ii[] = | |
13560 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
13561 | int use_ascii (int i) { | |
13562 | return ascii_mm[i] + ascii_ii[i]; | |
13563 | } | |
13564 | short int ebcdic_ii[] = | |
13565 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
13566 | short int ebcdic_mm[] = | |
13567 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
13568 | int use_ebcdic (int i) { | |
13569 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
13570 | } | |
13571 | extern int foo; | |
13572 | ||
13573 | int | |
13574 | main () | |
13575 | { | |
13576 | return use_ascii (foo) == use_ebcdic (foo); | |
13577 | ; | |
13578 | return 0; | |
13579 | } | |
13580 | _ACEOF | |
13581 | if ac_fn_c_try_compile "$LINENO"; then : | |
13582 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
13583 | ac_cv_c_bigendian=yes | |
13584 | fi | |
13585 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
13586 | if test "$ac_cv_c_bigendian" = unknown; then | |
13587 | ac_cv_c_bigendian=no | |
13588 | else | |
13589 | # finding both strings is unlikely to happen, but who knows? | |
13590 | ac_cv_c_bigendian=unknown | |
13591 | fi | |
13592 | fi | |
13593 | fi | |
13594 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13595 | else | |
13596 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13597 | /* end confdefs.h. */ | |
13598 | $ac_includes_default | |
13599 | int | |
13600 | main () | |
13601 | { | |
13602 | ||
13603 | /* Are we little or big endian? From Harbison&Steele. */ | |
13604 | union | |
13605 | { | |
13606 | long int l; | |
13607 | char c[sizeof (long int)]; | |
13608 | } u; | |
13609 | u.l = 1; | |
13610 | return u.c[sizeof (long int) - 1] == 1; | |
13611 | ||
13612 | ; | |
13613 | return 0; | |
13614 | } | |
13615 | _ACEOF | |
13616 | if ac_fn_c_try_run "$LINENO"; then : | |
13617 | ac_cv_c_bigendian=no | |
13618 | else | |
13619 | ac_cv_c_bigendian=yes | |
13620 | fi | |
13621 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
13622 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
13623 | fi | |
13624 | ||
13625 | fi | |
13626 | fi | |
13627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | |
13628 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
13629 | case $ac_cv_c_bigendian in #( | |
13630 | yes) | |
13631 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
13632 | ;; #( | |
13633 | no) | |
13634 | ;; #( | |
13635 | universal) | |
13636 | ||
13637 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | |
13638 | ||
13639 | ;; #( | |
13640 | *) | |
13641 | as_fn_error $? "unknown endianness | |
13642 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | |
13643 | esac | |
13644 | ||
13645 | ||
13646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 | |
13647 | $as_echo_n "checking for inline... " >&6; } | |
13648 | if ${ac_cv_c_inline+:} false; then : | |
13649 | $as_echo_n "(cached) " >&6 | |
13650 | else | |
13651 | ac_cv_c_inline=no | |
13652 | for ac_kw in inline __inline__ __inline; do | |
13653 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13654 | /* end confdefs.h. */ | |
13655 | #ifndef __cplusplus | |
13656 | typedef int foo_t; | |
13657 | static $ac_kw foo_t static_foo () {return 0; } | |
13658 | $ac_kw foo_t foo () {return 0; } | |
13659 | #endif | |
13660 | ||
13661 | _ACEOF | |
13662 | if ac_fn_c_try_compile "$LINENO"; then : | |
13663 | ac_cv_c_inline=$ac_kw | |
13664 | fi | |
13665 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13666 | test "$ac_cv_c_inline" != no && break | |
13667 | done | |
13668 | ||
13669 | fi | |
13670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | |
13671 | $as_echo "$ac_cv_c_inline" >&6; } | |
13672 | ||
13673 | case $ac_cv_c_inline in | |
13674 | inline | yes) ;; | |
13675 | *) | |
13676 | case $ac_cv_c_inline in | |
13677 | no) ac_val=;; | |
13678 | *) ac_val=$ac_cv_c_inline;; | |
13679 | esac | |
13680 | cat >>confdefs.h <<_ACEOF | |
13681 | #ifndef __cplusplus | |
13682 | #define inline $ac_val | |
13683 | #endif | |
13684 | _ACEOF | |
13685 | ;; | |
13686 | esac | |
13687 | ||
13688 | ||
1f5d53eb PE |
13689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5 |
13690 | $as_echo_n "checking whether strtold conforms to C99... " >&6; } | |
13691 | if ${gl_cv_func_c99_strtold+:} false; then : | |
067d23c9 KY |
13692 | $as_echo_n "(cached) " >&6 |
13693 | else | |
1f5d53eb | 13694 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
067d23c9 | 13695 | /* end confdefs.h. */ |
1f5d53eb PE |
13696 | /* On HP-UX before 11.23, strtold returns a struct instead of |
13697 | long double. Reject implementations like that, by requiring | |
13698 | compatibility with the C99 prototype. */ | |
13699 | #include <stdlib.h> | |
13700 | static long double (*p) (char const *, char **) = strtold; | |
13701 | static long double | |
13702 | test (char const *nptr, char **endptr) | |
13703 | { | |
13704 | long double r; | |
13705 | r = strtold (nptr, endptr); | |
13706 | return r; | |
13707 | } | |
067d23c9 KY |
13708 | int |
13709 | main () | |
13710 | { | |
1f5d53eb | 13711 | return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1; |
067d23c9 KY |
13712 | ; |
13713 | return 0; | |
13714 | } | |
13715 | _ACEOF | |
13716 | if ac_fn_c_try_link "$LINENO"; then : | |
1f5d53eb | 13717 | gl_cv_func_c99_strtold=yes |
067d23c9 | 13718 | else |
1f5d53eb | 13719 | gl_cv_func_c99_strtold=no |
067d23c9 KY |
13720 | fi |
13721 | rm -f core conftest.err conftest.$ac_objext \ | |
13722 | conftest$ac_exeext conftest.$ac_ext | |
067d23c9 | 13723 | fi |
1f5d53eb PE |
13724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5 |
13725 | $as_echo "$gl_cv_func_c99_strtold" >&6; } | |
13726 | if test $gl_cv_func_c99_strtold = yes; then | |
067d23c9 | 13727 | |
1f5d53eb | 13728 | $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h |
067d23c9 | 13729 | |
1f5d53eb | 13730 | fi |
067d23c9 | 13731 | |
5fa4ac76 PE |
13732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5 |
13733 | $as_echo_n "checking for st_dm_mode in struct stat... " >&6; } | |
13734 | if ${ac_cv_struct_st_dm_mode+:} false; then : | |
13735 | $as_echo_n "(cached) " >&6 | |
13736 | else | |
13737 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13738 | /* end confdefs.h. */ | |
13739 | ||
13740 | #include <sys/types.h> | |
13741 | #include <sys/stat.h> | |
13742 | int | |
13743 | main () | |
13744 | { | |
13745 | struct stat s; s.st_dm_mode; | |
13746 | ; | |
13747 | return 0; | |
13748 | } | |
13749 | _ACEOF | |
13750 | if ac_fn_c_try_compile "$LINENO"; then : | |
13751 | ac_cv_struct_st_dm_mode=yes | |
13752 | else | |
13753 | ac_cv_struct_st_dm_mode=no | |
13754 | fi | |
13755 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13756 | fi | |
13757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5 | |
13758 | $as_echo "$ac_cv_struct_st_dm_mode" >&6; } | |
13759 | ||
13760 | if test $ac_cv_struct_st_dm_mode = yes; then | |
13761 | ||
13762 | $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h | |
13763 | ||
13764 | fi | |
13765 | ||
13766 | ||
13767 | ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default" | |
13768 | if test "x$ac_cv_have_decl_strmode" = xyes; then : | |
13769 | ac_have_decl=1 | |
13770 | else | |
13771 | ac_have_decl=0 | |
13772 | fi | |
13773 | ||
13774 | cat >>confdefs.h <<_ACEOF | |
13775 | #define HAVE_DECL_STRMODE $ac_have_decl | |
13776 | _ACEOF | |
13777 | ||
067d23c9 | 13778 | |
1f5d53eb PE |
13779 | GNULIB__EXIT=0; |
13780 | GNULIB_ATOLL=0; | |
13781 | GNULIB_CALLOC_POSIX=0; | |
13782 | GNULIB_CANONICALIZE_FILE_NAME=0; | |
13783 | GNULIB_GETLOADAVG=0; | |
13784 | GNULIB_GETSUBOPT=0; | |
13785 | GNULIB_GRANTPT=0; | |
13786 | GNULIB_MALLOC_POSIX=0; | |
9411886d | 13787 | GNULIB_MBTOWC=0; |
1f5d53eb PE |
13788 | GNULIB_MKDTEMP=0; |
13789 | GNULIB_MKOSTEMP=0; | |
13790 | GNULIB_MKOSTEMPS=0; | |
13791 | GNULIB_MKSTEMP=0; | |
13792 | GNULIB_MKSTEMPS=0; | |
13793 | GNULIB_PTSNAME=0; | |
13794 | GNULIB_PUTENV=0; | |
13795 | GNULIB_RANDOM_R=0; | |
13796 | GNULIB_REALLOC_POSIX=0; | |
13797 | GNULIB_REALPATH=0; | |
13798 | GNULIB_RPMATCH=0; | |
13799 | GNULIB_SETENV=0; | |
13800 | GNULIB_STRTOD=0; | |
13801 | GNULIB_STRTOLL=0; | |
13802 | GNULIB_STRTOULL=0; | |
13803 | GNULIB_SYSTEM_POSIX=0; | |
13804 | GNULIB_UNLOCKPT=0; | |
13805 | GNULIB_UNSETENV=0; | |
9411886d | 13806 | GNULIB_WCTOMB=0; |
1f5d53eb PE |
13807 | HAVE__EXIT=1; |
13808 | HAVE_ATOLL=1; | |
13809 | HAVE_CANONICALIZE_FILE_NAME=1; | |
13810 | HAVE_DECL_GETLOADAVG=1; | |
13811 | HAVE_GETSUBOPT=1; | |
13812 | HAVE_GRANTPT=1; | |
13813 | HAVE_MKDTEMP=1; | |
13814 | HAVE_MKOSTEMP=1; | |
13815 | HAVE_MKOSTEMPS=1; | |
13816 | HAVE_MKSTEMP=1; | |
13817 | HAVE_MKSTEMPS=1; | |
13818 | HAVE_PTSNAME=1; | |
13819 | HAVE_RANDOM_H=1; | |
13820 | HAVE_RANDOM_R=1; | |
13821 | HAVE_REALPATH=1; | |
13822 | HAVE_RPMATCH=1; | |
13823 | HAVE_SETENV=1; | |
13824 | HAVE_DECL_SETENV=1; | |
13825 | HAVE_STRTOD=1; | |
13826 | HAVE_STRTOLL=1; | |
13827 | HAVE_STRTOULL=1; | |
13828 | HAVE_STRUCT_RANDOM_DATA=1; | |
13829 | HAVE_SYS_LOADAVG_H=0; | |
13830 | HAVE_UNLOCKPT=1; | |
13831 | HAVE_DECL_UNSETENV=1; | |
13832 | REPLACE_CALLOC=0; | |
13833 | REPLACE_CANONICALIZE_FILE_NAME=0; | |
13834 | REPLACE_MALLOC=0; | |
9411886d | 13835 | REPLACE_MBTOWC=0; |
1f5d53eb PE |
13836 | REPLACE_MKSTEMP=0; |
13837 | REPLACE_PUTENV=0; | |
13838 | REPLACE_REALLOC=0; | |
13839 | REPLACE_REALPATH=0; | |
13840 | REPLACE_SETENV=0; | |
13841 | REPLACE_STRTOD=0; | |
13842 | REPLACE_UNSETENV=0; | |
9411886d | 13843 | REPLACE_WCTOMB=0; |
067d23c9 | 13844 | |
067d23c9 | 13845 | |
1f5d53eb PE |
13846 | GNULIB_CHOWN=0; |
13847 | GNULIB_CLOSE=0; | |
13848 | GNULIB_DUP2=0; | |
13849 | GNULIB_DUP3=0; | |
13850 | GNULIB_ENVIRON=0; | |
13851 | GNULIB_EUIDACCESS=0; | |
13852 | GNULIB_FACCESSAT=0; | |
13853 | GNULIB_FCHDIR=0; | |
13854 | GNULIB_FCHOWNAT=0; | |
13855 | GNULIB_FSYNC=0; | |
13856 | GNULIB_FTRUNCATE=0; | |
13857 | GNULIB_GETCWD=0; | |
13858 | GNULIB_GETDOMAINNAME=0; | |
13859 | GNULIB_GETDTABLESIZE=0; | |
13860 | GNULIB_GETGROUPS=0; | |
13861 | GNULIB_GETHOSTNAME=0; | |
13862 | GNULIB_GETLOGIN=0; | |
13863 | GNULIB_GETLOGIN_R=0; | |
13864 | GNULIB_GETPAGESIZE=0; | |
13865 | GNULIB_GETUSERSHELL=0; | |
13866 | GNULIB_LCHOWN=0; | |
13867 | GNULIB_LINK=0; | |
13868 | GNULIB_LINKAT=0; | |
13869 | GNULIB_LSEEK=0; | |
13870 | GNULIB_PIPE=0; | |
13871 | GNULIB_PIPE2=0; | |
13872 | GNULIB_PREAD=0; | |
13873 | GNULIB_PWRITE=0; | |
13874 | GNULIB_READLINK=0; | |
13875 | GNULIB_READLINKAT=0; | |
13876 | GNULIB_RMDIR=0; | |
13877 | GNULIB_SLEEP=0; | |
13878 | GNULIB_SYMLINK=0; | |
13879 | GNULIB_SYMLINKAT=0; | |
13880 | GNULIB_TTYNAME_R=0; | |
13881 | GNULIB_UNISTD_H_GETOPT=0; | |
13882 | GNULIB_UNISTD_H_SIGPIPE=0; | |
13883 | GNULIB_UNLINK=0; | |
13884 | GNULIB_UNLINKAT=0; | |
13885 | GNULIB_USLEEP=0; | |
13886 | GNULIB_WRITE=0; | |
13887 | HAVE_CHOWN=1; | |
13888 | HAVE_DUP2=1; | |
13889 | HAVE_DUP3=1; | |
13890 | HAVE_EUIDACCESS=1; | |
13891 | HAVE_FACCESSAT=1; | |
13892 | HAVE_FCHDIR=1; | |
13893 | HAVE_FCHOWNAT=1; | |
13894 | HAVE_FSYNC=1; | |
13895 | HAVE_FTRUNCATE=1; | |
13896 | HAVE_GETDTABLESIZE=1; | |
13897 | HAVE_GETGROUPS=1; | |
13898 | HAVE_GETHOSTNAME=1; | |
13899 | HAVE_GETLOGIN=1; | |
13900 | HAVE_GETPAGESIZE=1; | |
13901 | HAVE_LCHOWN=1; | |
13902 | HAVE_LINK=1; | |
13903 | HAVE_LINKAT=1; | |
13904 | HAVE_PIPE=1; | |
13905 | HAVE_PIPE2=1; | |
13906 | HAVE_PREAD=1; | |
13907 | HAVE_PWRITE=1; | |
13908 | HAVE_READLINK=1; | |
13909 | HAVE_READLINKAT=1; | |
13910 | HAVE_SLEEP=1; | |
13911 | HAVE_SYMLINK=1; | |
13912 | HAVE_SYMLINKAT=1; | |
13913 | HAVE_UNLINKAT=1; | |
13914 | HAVE_USLEEP=1; | |
13915 | HAVE_DECL_ENVIRON=1; | |
13916 | HAVE_DECL_FCHDIR=1; | |
13917 | HAVE_DECL_GETDOMAINNAME=1; | |
13918 | HAVE_DECL_GETLOGIN_R=1; | |
13919 | HAVE_DECL_GETPAGESIZE=1; | |
13920 | HAVE_DECL_GETUSERSHELL=1; | |
13921 | HAVE_DECL_TTYNAME_R=1; | |
13922 | HAVE_OS_H=0; | |
13923 | HAVE_SYS_PARAM_H=0; | |
13924 | REPLACE_CHOWN=0; | |
13925 | REPLACE_CLOSE=0; | |
13926 | REPLACE_DUP=0; | |
13927 | REPLACE_DUP2=0; | |
13928 | REPLACE_FCHOWNAT=0; | |
13929 | REPLACE_GETCWD=0; | |
13930 | REPLACE_GETDOMAINNAME=0; | |
13931 | REPLACE_GETLOGIN_R=0; | |
13932 | REPLACE_GETGROUPS=0; | |
13933 | REPLACE_GETPAGESIZE=0; | |
13934 | REPLACE_LCHOWN=0; | |
13935 | REPLACE_LINK=0; | |
13936 | REPLACE_LINKAT=0; | |
13937 | REPLACE_LSEEK=0; | |
13938 | REPLACE_PREAD=0; | |
13939 | REPLACE_PWRITE=0; | |
13940 | REPLACE_READLINK=0; | |
13941 | REPLACE_RMDIR=0; | |
13942 | REPLACE_SLEEP=0; | |
13943 | REPLACE_SYMLINK=0; | |
13944 | REPLACE_TTYNAME_R=0; | |
13945 | REPLACE_UNLINK=0; | |
13946 | REPLACE_UNLINKAT=0; | |
13947 | REPLACE_USLEEP=0; | |
13948 | REPLACE_WRITE=0; | |
13949 | UNISTD_H_HAVE_WINSOCK2_H=0; | |
13950 | UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0; | |
067d23c9 | 13951 | |
067d23c9 | 13952 | |
1f5d53eb PE |
13953 | |
13954 | ||
13955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5 | |
13956 | $as_echo_n "checking whether the preprocessor supports include_next... " >&6; } | |
13957 | if ${gl_cv_have_include_next+:} false; then : | |
067d23c9 KY |
13958 | $as_echo_n "(cached) " >&6 |
13959 | else | |
1f5d53eb PE |
13960 | rm -rf conftestd1a conftestd1b conftestd2 |
13961 | mkdir conftestd1a conftestd1b conftestd2 | |
13962 | cat <<EOF > conftestd1a/conftest.h | |
13963 | #define DEFINED_IN_CONFTESTD1 | |
13964 | #include_next <conftest.h> | |
13965 | #ifdef DEFINED_IN_CONFTESTD2 | |
13966 | int foo; | |
13967 | #else | |
13968 | #error "include_next doesn't work" | |
067d23c9 | 13969 | #endif |
1f5d53eb PE |
13970 | EOF |
13971 | cat <<EOF > conftestd1b/conftest.h | |
13972 | #define DEFINED_IN_CONFTESTD1 | |
13973 | #include <stdio.h> | |
13974 | #include_next <conftest.h> | |
13975 | #ifdef DEFINED_IN_CONFTESTD2 | |
13976 | int foo; | |
13977 | #else | |
13978 | #error "include_next doesn't work" | |
13979 | #endif | |
13980 | EOF | |
13981 | cat <<EOF > conftestd2/conftest.h | |
13982 | #ifndef DEFINED_IN_CONFTESTD1 | |
13983 | #error "include_next test doesn't work" | |
13984 | #endif | |
13985 | #define DEFINED_IN_CONFTESTD2 | |
13986 | EOF | |
13987 | gl_save_CPPFLAGS="$CPPFLAGS" | |
13988 | CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2" | |
13989 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13990 | /* end confdefs.h. */ | |
13991 | #include <conftest.h> | |
067d23c9 | 13992 | _ACEOF |
1f5d53eb PE |
13993 | if ac_fn_c_try_compile "$LINENO"; then : |
13994 | gl_cv_have_include_next=yes | |
067d23c9 | 13995 | else |
1f5d53eb PE |
13996 | CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2" |
13997 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13998 | /* end confdefs.h. */ | |
13999 | #include <conftest.h> | |
067d23c9 | 14000 | _ACEOF |
1f5d53eb PE |
14001 | if ac_fn_c_try_compile "$LINENO"; then : |
14002 | gl_cv_have_include_next=buggy | |
14003 | else | |
14004 | gl_cv_have_include_next=no | |
067d23c9 | 14005 | fi |
1f5d53eb | 14006 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
067d23c9 KY |
14007 | |
14008 | fi | |
1f5d53eb PE |
14009 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
14010 | CPPFLAGS="$gl_save_CPPFLAGS" | |
14011 | rm -rf conftestd1a conftestd1b conftestd2 | |
067d23c9 | 14012 | |
1f5d53eb PE |
14013 | fi |
14014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5 | |
14015 | $as_echo "$gl_cv_have_include_next" >&6; } | |
14016 | PRAGMA_SYSTEM_HEADER= | |
14017 | if test $gl_cv_have_include_next = yes; then | |
14018 | INCLUDE_NEXT=include_next | |
14019 | INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next | |
14020 | if test -n "$GCC"; then | |
14021 | PRAGMA_SYSTEM_HEADER='#pragma GCC system_header' | |
14022 | fi | |
14023 | else | |
14024 | if test $gl_cv_have_include_next = buggy; then | |
14025 | INCLUDE_NEXT=include | |
14026 | INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next | |
14027 | else | |
14028 | INCLUDE_NEXT=include | |
14029 | INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include | |
14030 | fi | |
14031 | fi | |
067d23c9 KY |
14032 | |
14033 | ||
067d23c9 | 14034 | |
1f5d53eb PE |
14035 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5 |
14036 | $as_echo_n "checking whether system header files limit the line length... " >&6; } | |
14037 | if ${gl_cv_pragma_columns+:} false; then : | |
14038 | $as_echo_n "(cached) " >&6 | |
14039 | else | |
14040 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14041 | /* end confdefs.h. */ | |
067d23c9 | 14042 | |
1f5d53eb PE |
14043 | #ifdef __TANDEM |
14044 | choke me | |
14045 | #endif | |
067d23c9 | 14046 | |
067d23c9 | 14047 | _ACEOF |
1f5d53eb PE |
14048 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
14049 | $EGREP "choke me" >/dev/null 2>&1; then : | |
14050 | gl_cv_pragma_columns=yes | |
14051 | else | |
14052 | gl_cv_pragma_columns=no | |
067d23c9 | 14053 | fi |
1f5d53eb | 14054 | rm -f conftest* |
067d23c9 | 14055 | |
067d23c9 KY |
14056 | |
14057 | fi | |
1f5d53eb PE |
14058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5 |
14059 | $as_echo "$gl_cv_pragma_columns" >&6; } | |
14060 | if test $gl_cv_pragma_columns = yes; then | |
14061 | PRAGMA_COLUMNS="#pragma COLUMNS 10000" | |
14062 | else | |
14063 | PRAGMA_COLUMNS= | |
14064 | fi | |
067d23c9 | 14065 | |
067d23c9 | 14066 | |
067d23c9 KY |
14067 | |
14068 | ||
067d23c9 | 14069 | |
067d23c9 KY |
14070 | |
14071 | ||
067d23c9 | 14072 | |
067d23c9 | 14073 | |
067d23c9 KY |
14074 | |
14075 | ||
067d23c9 | 14076 | |
067d23c9 | 14077 | |
067d23c9 | 14078 | |
067d23c9 | 14079 | |
067d23c9 | 14080 | |
067d23c9 | 14081 | |
1f5d53eb PE |
14082 | if test $gl_cv_have_include_next = yes; then |
14083 | gl_cv_next_getopt_h='<'getopt.h'>' | |
14084 | else | |
14085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5 | |
14086 | $as_echo_n "checking absolute name of <getopt.h>... " >&6; } | |
14087 | if ${gl_cv_next_getopt_h+:} false; then : | |
14088 | $as_echo_n "(cached) " >&6 | |
14089 | else | |
067d23c9 | 14090 | |
1f5d53eb | 14091 | if test $ac_cv_header_getopt_h = yes; then |
067d23c9 | 14092 | |
067d23c9 | 14093 | |
1f5d53eb PE |
14094 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14095 | /* end confdefs.h. */ | |
14096 | #include <getopt.h> | |
14097 | ||
14098 | _ACEOF | |
14099 | case "$host_os" in | |
14100 | aix*) gl_absname_cpp="$ac_cpp -C" ;; | |
14101 | *) gl_absname_cpp="$ac_cpp" ;; | |
14102 | esac | |
14103 | gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | | |
14104 | sed -n '\#/getopt.h#{ | |
14105 | s#.*"\(.*/getopt.h\)".*#\1# | |
14106 | s#^/[^/]#//&# | |
14107 | p | |
14108 | q | |
14109 | }'`'"' | |
14110 | else | |
14111 | gl_cv_next_getopt_h='<'getopt.h'>' | |
14112 | fi | |
067d23c9 KY |
14113 | |
14114 | ||
14115 | fi | |
1f5d53eb PE |
14116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5 |
14117 | $as_echo "$gl_cv_next_getopt_h" >&6; } | |
14118 | fi | |
14119 | NEXT_GETOPT_H=$gl_cv_next_getopt_h | |
067d23c9 | 14120 | |
1f5d53eb PE |
14121 | if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then |
14122 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' | |
14123 | gl_next_as_first_directive='<'getopt.h'>' | |
14124 | else | |
14125 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' | |
14126 | gl_next_as_first_directive=$gl_cv_next_getopt_h | |
14127 | fi | |
14128 | NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive | |
067d23c9 | 14129 | |
067d23c9 KY |
14130 | |
14131 | ||
067d23c9 | 14132 | |
1f5d53eb PE |
14133 | if test $ac_cv_header_getopt_h = yes; then |
14134 | HAVE_GETOPT_H=1 | |
14135 | else | |
14136 | HAVE_GETOPT_H=0 | |
14137 | fi | |
067d23c9 | 14138 | |
1f5d53eb PE |
14139 | |
14140 | gl_replace_getopt= | |
14141 | ||
14142 | if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then | |
14143 | for ac_header in getopt.h | |
14144 | do : | |
14145 | ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" | |
14146 | if test "x$ac_cv_header_getopt_h" = xyes; then : | |
14147 | cat >>confdefs.h <<_ACEOF | |
14148 | #define HAVE_GETOPT_H 1 | |
14149 | _ACEOF | |
067d23c9 KY |
14150 | |
14151 | else | |
1f5d53eb | 14152 | gl_replace_getopt=yes |
067d23c9 KY |
14153 | fi |
14154 | ||
1f5d53eb PE |
14155 | done |
14156 | ||
14157 | fi | |
14158 | ||
14159 | if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then | |
14160 | for ac_func in getopt_long_only | |
14161 | do : | |
14162 | ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only" | |
14163 | if test "x$ac_cv_func_getopt_long_only" = xyes; then : | |
14164 | cat >>confdefs.h <<_ACEOF | |
14165 | #define HAVE_GETOPT_LONG_ONLY 1 | |
14166 | _ACEOF | |
067d23c9 | 14167 | |
067d23c9 | 14168 | else |
1f5d53eb | 14169 | gl_replace_getopt=yes |
067d23c9 | 14170 | fi |
1f5d53eb | 14171 | done |
067d23c9 | 14172 | |
1f5d53eb | 14173 | fi |
067d23c9 | 14174 | |
1f5d53eb PE |
14175 | if test -z "$gl_replace_getopt"; then |
14176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5 | |
14177 | $as_echo_n "checking whether getopt is POSIX compatible... " >&6; } | |
14178 | if ${gl_cv_func_getopt_posix+:} false; then : | |
067d23c9 KY |
14179 | $as_echo_n "(cached) " >&6 |
14180 | else | |
1f5d53eb PE |
14181 | |
14182 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
067d23c9 | 14183 | /* end confdefs.h. */ |
1f5d53eb | 14184 | #include <unistd.h> |
067d23c9 KY |
14185 | int |
14186 | main () | |
14187 | { | |
1f5d53eb | 14188 | int *p = &optreset; return optreset; |
067d23c9 KY |
14189 | ; |
14190 | return 0; | |
14191 | } | |
14192 | _ACEOF | |
1f5d53eb PE |
14193 | if ac_fn_c_try_compile "$LINENO"; then : |
14194 | gl_optind_min=1 | |
1fd182f0 | 14195 | else |
1f5d53eb | 14196 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1fd182f0 | 14197 | /* end confdefs.h. */ |
1f5d53eb | 14198 | #include <getopt.h> |
1fd182f0 PE |
14199 | int |
14200 | main () | |
14201 | { | |
1f5d53eb | 14202 | return !getopt_clip; |
1fd182f0 PE |
14203 | ; |
14204 | return 0; | |
14205 | } | |
14206 | _ACEOF | |
14207 | if ac_fn_c_try_compile "$LINENO"; then : | |
1f5d53eb | 14208 | gl_optind_min=1 |
1fd182f0 | 14209 | else |
1f5d53eb | 14210 | gl_optind_min=0 |
1fd182f0 PE |
14211 | fi |
14212 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1fd182f0 | 14213 | fi |
1f5d53eb | 14214 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1fd182f0 | 14215 | |
1f5d53eb PE |
14216 | gl_save_CPPFLAGS=$CPPFLAGS |
14217 | CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min" | |
14218 | if test "$cross_compiling" = yes; then : | |
14219 | case "$host_os" in | |
14220 | mingw*) gl_cv_func_getopt_posix="guessing no";; | |
14221 | darwin* | aix*) gl_cv_func_getopt_posix="guessing no";; | |
14222 | *) gl_cv_func_getopt_posix="guessing yes";; | |
14223 | esac | |
1fd182f0 | 14224 | |
1f5d53eb PE |
14225 | else |
14226 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14227 | /* end confdefs.h. */ | |
1fd182f0 | 14228 | |
1f5d53eb PE |
14229 | #include <unistd.h> |
14230 | #include <stdlib.h> | |
14231 | #include <string.h> | |
1fd182f0 | 14232 | |
1f5d53eb PE |
14233 | int |
14234 | main () | |
14235 | { | |
14236 | { | |
14237 | int argc = 0; | |
14238 | char *argv[10]; | |
14239 | int c; | |
1fd182f0 | 14240 | |
1f5d53eb PE |
14241 | argv[argc++] = "program"; |
14242 | argv[argc++] = "-a"; | |
14243 | argv[argc++] = "foo"; | |
14244 | argv[argc++] = "bar"; | |
14245 | argv[argc] = NULL; | |
14246 | optind = OPTIND_MIN; | |
14247 | opterr = 0; | |
b06b1098 | 14248 | |
1f5d53eb PE |
14249 | c = getopt (argc, argv, "ab"); |
14250 | if (!(c == 'a')) | |
14251 | return 1; | |
14252 | c = getopt (argc, argv, "ab"); | |
14253 | if (!(c == -1)) | |
14254 | return 2; | |
14255 | if (!(optind == 2)) | |
14256 | return 3; | |
14257 | } | |
14258 | /* Some internal state exists at this point. */ | |
14259 | { | |
14260 | int argc = 0; | |
14261 | char *argv[10]; | |
14262 | int c; | |
b06b1098 | 14263 | |
1f5d53eb PE |
14264 | argv[argc++] = "program"; |
14265 | argv[argc++] = "donald"; | |
14266 | argv[argc++] = "-p"; | |
14267 | argv[argc++] = "billy"; | |
14268 | argv[argc++] = "duck"; | |
14269 | argv[argc++] = "-a"; | |
14270 | argv[argc++] = "bar"; | |
14271 | argv[argc] = NULL; | |
14272 | optind = OPTIND_MIN; | |
14273 | opterr = 0; | |
b06b1098 | 14274 | |
1f5d53eb PE |
14275 | c = getopt (argc, argv, "+abp:q:"); |
14276 | if (!(c == -1)) | |
14277 | return 4; | |
14278 | if (!(strcmp (argv[0], "program") == 0)) | |
14279 | return 5; | |
14280 | if (!(strcmp (argv[1], "donald") == 0)) | |
14281 | return 6; | |
14282 | if (!(strcmp (argv[2], "-p") == 0)) | |
14283 | return 7; | |
14284 | if (!(strcmp (argv[3], "billy") == 0)) | |
14285 | return 8; | |
14286 | if (!(strcmp (argv[4], "duck") == 0)) | |
14287 | return 9; | |
14288 | if (!(strcmp (argv[5], "-a") == 0)) | |
14289 | return 10; | |
14290 | if (!(strcmp (argv[6], "bar") == 0)) | |
14291 | return 11; | |
14292 | if (!(optind == 1)) | |
14293 | return 12; | |
14294 | } | |
14295 | /* Detect MacOS 10.5, AIX 7.1 bug. */ | |
14296 | { | |
14297 | char *argv[3] = { "program", "-ab", NULL }; | |
14298 | optind = OPTIND_MIN; | |
14299 | opterr = 0; | |
14300 | if (getopt (2, argv, "ab:") != 'a') | |
14301 | return 13; | |
14302 | if (getopt (2, argv, "ab:") != '?') | |
14303 | return 14; | |
14304 | if (optopt != 'b') | |
14305 | return 15; | |
14306 | if (optind != 2) | |
14307 | return 16; | |
14308 | } | |
d6974efa | 14309 | |
1f5d53eb PE |
14310 | return 0; |
14311 | } | |
d6974efa | 14312 | |
1f5d53eb PE |
14313 | _ACEOF |
14314 | if ac_fn_c_try_run "$LINENO"; then : | |
14315 | gl_cv_func_getopt_posix=yes | |
14316 | else | |
14317 | gl_cv_func_getopt_posix=no | |
14318 | fi | |
14319 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
14320 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
14321 | fi | |
d6974efa | 14322 | |
1f5d53eb | 14323 | CPPFLAGS=$gl_save_CPPFLAGS |
1fd182f0 | 14324 | |
1f5d53eb PE |
14325 | fi |
14326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5 | |
14327 | $as_echo "$gl_cv_func_getopt_posix" >&6; } | |
14328 | case "$gl_cv_func_getopt_posix" in | |
14329 | *no) gl_replace_getopt=yes ;; | |
14330 | esac | |
14331 | fi | |
1fd182f0 | 14332 | |
1f5d53eb PE |
14333 | if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then |
14334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5 | |
14335 | $as_echo_n "checking for working GNU getopt function... " >&6; } | |
14336 | if ${gl_cv_func_getopt_gnu+:} false; then : | |
1fd182f0 | 14337 | $as_echo_n "(cached) " >&6 |
1f5d53eb PE |
14338 | else |
14339 | # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the | |
14340 | # optstring is necessary for programs like m4 that have POSIX-mandated | |
14341 | # semantics for supporting options interspersed with files. | |
14342 | # Also, since getopt_long is a GNU extension, we require optind=0. | |
14343 | # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT; | |
14344 | # so take care to revert to the correct (non-)export state. | |
14345 | gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }' | |
14346 | case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in | |
14347 | xx) gl_had_POSIXLY_CORRECT=exported ;; | |
14348 | x) gl_had_POSIXLY_CORRECT=yes ;; | |
14349 | *) gl_had_POSIXLY_CORRECT= ;; | |
14350 | esac | |
14351 | POSIXLY_CORRECT=1 | |
14352 | export POSIXLY_CORRECT | |
14353 | if test "$cross_compiling" = yes; then : | |
14354 | case $host_os:$ac_cv_have_decl_optreset in | |
14355 | *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;; | |
14356 | *:yes) gl_cv_func_getopt_gnu=no;; | |
14357 | *) gl_cv_func_getopt_gnu=yes;; | |
14358 | esac | |
14359 | ||
1fd182f0 PE |
14360 | else |
14361 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14362 | /* end confdefs.h. */ | |
1f5d53eb PE |
14363 | #include <getopt.h> |
14364 | #include <stddef.h> | |
14365 | #include <string.h> | |
14366 | ||
1fd182f0 PE |
14367 | int |
14368 | main () | |
14369 | { | |
1f5d53eb PE |
14370 | |
14371 | int result = 0; | |
14372 | /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw, | |
14373 | and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5, | |
14374 | OSF/1 5.1, Solaris 10. */ | |
14375 | { | |
14376 | char *myargv[3]; | |
14377 | myargv[0] = "conftest"; | |
14378 | myargv[1] = "-+"; | |
14379 | myargv[2] = 0; | |
14380 | opterr = 0; | |
14381 | if (getopt (2, myargv, "+a") != '?') | |
14382 | result |= 1; | |
14383 | } | |
14384 | /* This code succeeds on glibc 2.8, mingw, | |
14385 | and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11, | |
14386 | IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */ | |
14387 | { | |
14388 | char *argv[] = { "program", "-p", "foo", "bar", NULL }; | |
14389 | ||
14390 | optind = 1; | |
14391 | if (getopt (4, argv, "p::") != 'p') | |
14392 | result |= 2; | |
14393 | else if (optarg != NULL) | |
14394 | result |= 4; | |
14395 | else if (getopt (4, argv, "p::") != -1) | |
14396 | result |= 6; | |
14397 | else if (optind != 2) | |
14398 | result |= 8; | |
14399 | } | |
14400 | /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */ | |
14401 | { | |
14402 | char *argv[] = { "program", "foo", "-p", NULL }; | |
14403 | optind = 0; | |
14404 | if (getopt (3, argv, "-p") != 1) | |
14405 | result |= 16; | |
14406 | else if (getopt (3, argv, "-p") != 'p') | |
14407 | result |= 32; | |
14408 | } | |
14409 | /* This code fails on glibc 2.11. */ | |
14410 | { | |
14411 | char *argv[] = { "program", "-b", "-a", NULL }; | |
14412 | optind = opterr = 0; | |
14413 | if (getopt (3, argv, "+:a:b") != 'b') | |
14414 | result |= 64; | |
14415 | else if (getopt (3, argv, "+:a:b") != ':') | |
14416 | result |= 64; | |
14417 | } | |
14418 | return result; | |
14419 | ||
1fd182f0 PE |
14420 | ; |
14421 | return 0; | |
14422 | } | |
14423 | _ACEOF | |
1f5d53eb PE |
14424 | if ac_fn_c_try_run "$LINENO"; then : |
14425 | gl_cv_func_getopt_gnu=yes | |
1fd182f0 | 14426 | else |
1f5d53eb | 14427 | gl_cv_func_getopt_gnu=no |
1fd182f0 | 14428 | fi |
1f5d53eb PE |
14429 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
14430 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
1fd182f0 | 14431 | fi |
1fd182f0 | 14432 | |
1f5d53eb PE |
14433 | case $gl_had_POSIXLY_CORRECT in |
14434 | exported) ;; | |
14435 | yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;; | |
14436 | *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;; | |
14437 | esac | |
1fd182f0 | 14438 | |
1f5d53eb PE |
14439 | fi |
14440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5 | |
14441 | $as_echo "$gl_cv_func_getopt_gnu" >&6; } | |
14442 | if test "$gl_cv_func_getopt_gnu" = "no"; then | |
14443 | gl_replace_getopt=yes | |
14444 | fi | |
1fd182f0 PE |
14445 | fi |
14446 | ||
1f5d53eb PE |
14447 | ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default" |
14448 | if test "x$ac_cv_have_decl_getenv" = xyes; then : | |
14449 | ac_have_decl=1 | |
14450 | else | |
14451 | ac_have_decl=0 | |
14452 | fi | |
1fd182f0 | 14453 | |
1f5d53eb PE |
14454 | cat >>confdefs.h <<_ACEOF |
14455 | #define HAVE_DECL_GETENV $ac_have_decl | |
14456 | _ACEOF | |
1fd182f0 PE |
14457 | |
14458 | ||
14459 | ||
14460 | ||
1f5d53eb PE |
14461 | |
14462 | ||
14463 | if test -n "$gl_replace_getopt"; then : | |
14464 | ||
14465 | ||
14466 | ||
14467 | GETOPT_H=getopt.h | |
14468 | ||
14469 | $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h | |
14470 | ||
14471 | ||
14472 | ||
14473 | GNULIB_UNISTD_H_GETOPT=1 | |
14474 | ||
14475 | ||
14476 | ||
14477 | ||
14478 | ||
14479 | ||
14480 | ||
14481 | ||
14482 | gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext" | |
14483 | ||
14484 | ||
14485 | ||
14486 | ||
14487 | ||
14488 | ||
14489 | ||
14490 | ||
14491 | ||
14492 | gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext" | |
14493 | ||
14494 | ||
14495 | ||
14496 | ||
14497 | ||
14498 | ||
14499 | fi | |
14500 | ||
14501 | ||
1f5d53eb PE |
14502 | |
14503 | GNULIB_MKTIME=0; | |
14504 | GNULIB_NANOSLEEP=0; | |
14505 | GNULIB_STRPTIME=0; | |
14506 | GNULIB_TIMEGM=0; | |
14507 | GNULIB_TIME_R=0; | |
14508 | HAVE_DECL_LOCALTIME_R=1; | |
14509 | HAVE_NANOSLEEP=1; | |
14510 | HAVE_STRPTIME=1; | |
14511 | HAVE_TIMEGM=1; | |
14512 | REPLACE_LOCALTIME_R=GNULIB_PORTCHECK; | |
14513 | REPLACE_MKTIME=GNULIB_PORTCHECK; | |
14514 | REPLACE_NANOSLEEP=GNULIB_PORTCHECK; | |
14515 | REPLACE_TIMEGM=GNULIB_PORTCHECK; | |
14516 | ||
14517 | ||
14518 | ||
14519 | ||
14520 | for ac_func in $ac_func_list | |
14521 | do : | |
14522 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
14523 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
14524 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
14525 | cat >>confdefs.h <<_ACEOF | |
14526 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
14527 | _ACEOF | |
1fd182f0 | 14528 | |
e275c824 | 14529 | fi |
1f5d53eb | 14530 | done |
1fd182f0 PE |
14531 | |
14532 | ||
e275c824 | 14533 | |
1fd182f0 | 14534 | |
1f5d53eb PE |
14535 | gl_cv_c_multiarch=no |
14536 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14537 | /* end confdefs.h. */ | |
14538 | #ifndef __APPLE_CC__ | |
14539 | not a universal capable compiler | |
14540 | #endif | |
14541 | typedef int dummy; | |
e275c824 PE |
14542 | |
14543 | _ACEOF | |
1f5d53eb | 14544 | if ac_fn_c_try_compile "$LINENO"; then : |
e275c824 | 14545 | |
1f5d53eb PE |
14546 | arch= |
14547 | prev= | |
14548 | for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do | |
14549 | if test -n "$prev"; then | |
14550 | case $word in | |
14551 | i?86 | x86_64 | ppc | ppc64) | |
14552 | if test -z "$arch" || test "$arch" = "$word"; then | |
14553 | arch="$word" | |
14554 | else | |
14555 | gl_cv_c_multiarch=yes | |
14556 | fi | |
14557 | ;; | |
14558 | esac | |
14559 | prev= | |
14560 | else | |
14561 | if test "x$word" = "x-arch"; then | |
14562 | prev=arch | |
14563 | fi | |
14564 | fi | |
14565 | done | |
e275c824 PE |
14566 | |
14567 | fi | |
1f5d53eb PE |
14568 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
14569 | if test $gl_cv_c_multiarch = yes; then | |
14570 | APPLE_UNIVERSAL_BUILD=1 | |
e275c824 | 14571 | else |
1f5d53eb | 14572 | APPLE_UNIVERSAL_BUILD=0 |
e275c824 PE |
14573 | fi |
14574 | ||
14575 | ||
1f5d53eb PE |
14576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 |
14577 | $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } | |
14578 | if ${ac_cv_header_stdbool_h+:} false; then : | |
14579 | $as_echo_n "(cached) " >&6 | |
14580 | else | |
14581 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14582 | /* end confdefs.h. */ | |
e275c824 | 14583 | |
1f5d53eb PE |
14584 | #include <stdbool.h> |
14585 | #ifndef bool | |
14586 | "error: bool is not defined" | |
14587 | #endif | |
14588 | #ifndef false | |
14589 | "error: false is not defined" | |
14590 | #endif | |
14591 | #if false | |
14592 | "error: false is not 0" | |
14593 | #endif | |
14594 | #ifndef true | |
14595 | "error: true is not defined" | |
14596 | #endif | |
14597 | #if true != 1 | |
14598 | "error: true is not 1" | |
14599 | #endif | |
14600 | #ifndef __bool_true_false_are_defined | |
14601 | "error: __bool_true_false_are_defined is not defined" | |
14602 | #endif | |
e275c824 | 14603 | |
1f5d53eb | 14604 | struct s { _Bool s: 1; _Bool t; } s; |
e275c824 | 14605 | |
1f5d53eb PE |
14606 | char a[true == 1 ? 1 : -1]; |
14607 | char b[false == 0 ? 1 : -1]; | |
14608 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; | |
14609 | char d[(bool) 0.5 == true ? 1 : -1]; | |
14610 | /* See body of main program for 'e'. */ | |
14611 | char f[(_Bool) 0.0 == false ? 1 : -1]; | |
14612 | char g[true]; | |
14613 | char h[sizeof (_Bool)]; | |
14614 | char i[sizeof s.t]; | |
14615 | enum { j = false, k = true, l = false * true, m = true * 256 }; | |
14616 | /* The following fails for | |
14617 | HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ | |
14618 | _Bool n[m]; | |
14619 | char o[sizeof n == m * sizeof n[0] ? 1 : -1]; | |
14620 | char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; | |
14621 | /* Catch a bug in an HP-UX C compiler. See | |
14622 | http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html | |
14623 | http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html | |
14624 | */ | |
14625 | _Bool q = true; | |
14626 | _Bool *pq = &q; | |
e275c824 | 14627 | |
1f5d53eb PE |
14628 | int |
14629 | main () | |
14630 | { | |
e275c824 | 14631 | |
1f5d53eb PE |
14632 | bool e = &s; |
14633 | *pq |= q; | |
14634 | *pq |= ! q; | |
14635 | /* Refer to every declared value, to avoid compiler optimizations. */ | |
14636 | return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l | |
14637 | + !m + !n + !o + !p + !q + !pq); | |
e275c824 | 14638 | |
1f5d53eb PE |
14639 | ; |
14640 | return 0; | |
14641 | } | |
14642 | _ACEOF | |
14643 | if ac_fn_c_try_compile "$LINENO"; then : | |
14644 | ac_cv_header_stdbool_h=yes | |
14645 | else | |
14646 | ac_cv_header_stdbool_h=no | |
14647 | fi | |
14648 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14649 | fi | |
14650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 | |
14651 | $as_echo "$ac_cv_header_stdbool_h" >&6; } | |
14652 | ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" | |
14653 | if test "x$ac_cv_type__Bool" = xyes; then : | |
e275c824 | 14654 | |
1f5d53eb PE |
14655 | cat >>confdefs.h <<_ACEOF |
14656 | #define HAVE__BOOL 1 | |
14657 | _ACEOF | |
e275c824 PE |
14658 | |
14659 | ||
1f5d53eb | 14660 | fi |
e275c824 PE |
14661 | |
14662 | ||
14663 | ||
1f5d53eb PE |
14664 | REPLACE_NULL=0; |
14665 | HAVE_WCHAR_T=1; | |
14666 | STDDEF_H=''; | |
b06b1098 PE |
14667 | |
14668 | ||
1f5d53eb PE |
14669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5 |
14670 | $as_echo_n "checking for wchar_t... " >&6; } | |
14671 | if ${gt_cv_c_wchar_t+:} false; then : | |
e275c824 PE |
14672 | $as_echo_n "(cached) " >&6 |
14673 | else | |
1f5d53eb | 14674 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e275c824 | 14675 | /* end confdefs.h. */ |
1f5d53eb PE |
14676 | #include <stddef.h> |
14677 | wchar_t foo = (wchar_t)'\0'; | |
14678 | int | |
14679 | main () | |
14680 | { | |
e275c824 | 14681 | |
1f5d53eb PE |
14682 | ; |
14683 | return 0; | |
14684 | } | |
e275c824 | 14685 | _ACEOF |
1f5d53eb PE |
14686 | if ac_fn_c_try_compile "$LINENO"; then : |
14687 | gt_cv_c_wchar_t=yes | |
14688 | else | |
14689 | gt_cv_c_wchar_t=no | |
e275c824 | 14690 | fi |
1f5d53eb PE |
14691 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
14692 | fi | |
14693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5 | |
14694 | $as_echo "$gt_cv_c_wchar_t" >&6; } | |
14695 | if test $gt_cv_c_wchar_t = yes; then | |
e275c824 | 14696 | |
1f5d53eb | 14697 | $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h |
e275c824 | 14698 | |
e275c824 PE |
14699 | fi |
14700 | ||
14701 | ||
5f90be1b PE |
14702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 |
14703 | $as_echo_n "checking for unsigned long long int... " >&6; } | |
14704 | if ${ac_cv_type_unsigned_long_long_int+:} false; then : | |
14705 | $as_echo_n "(cached) " >&6 | |
14706 | else | |
14707 | ac_cv_type_unsigned_long_long_int=yes | |
14708 | if test "x${ac_cv_prog_cc_c99-no}" = xno; then | |
14709 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14710 | /* end confdefs.h. */ | |
14711 | ||
14712 | /* For now, do not test the preprocessor; as of 2007 there are too many | |
14713 | implementations with broken preprocessors. Perhaps this can | |
14714 | be revisited in 2012. In the meantime, code should not expect | |
14715 | #if to work with literals wider than 32 bits. */ | |
14716 | /* Test literals. */ | |
14717 | long long int ll = 9223372036854775807ll; | |
14718 | long long int nll = -9223372036854775807LL; | |
14719 | unsigned long long int ull = 18446744073709551615ULL; | |
14720 | /* Test constant expressions. */ | |
14721 | typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) | |
14722 | ? 1 : -1)]; | |
14723 | typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 | |
14724 | ? 1 : -1)]; | |
14725 | int i = 63; | |
14726 | int | |
14727 | main () | |
14728 | { | |
14729 | /* Test availability of runtime routines for shift and division. */ | |
14730 | long long int llmax = 9223372036854775807ll; | |
14731 | unsigned long long int ullmax = 18446744073709551615ull; | |
14732 | return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) | |
14733 | | (llmax / ll) | (llmax % ll) | |
14734 | | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) | |
14735 | | (ullmax / ull) | (ullmax % ull)); | |
14736 | ; | |
14737 | return 0; | |
14738 | } | |
14739 | ||
14740 | _ACEOF | |
14741 | if ac_fn_c_try_link "$LINENO"; then : | |
14742 | ||
14743 | else | |
14744 | ac_cv_type_unsigned_long_long_int=no | |
14745 | fi | |
14746 | rm -f core conftest.err conftest.$ac_objext \ | |
14747 | conftest$ac_exeext conftest.$ac_ext | |
14748 | fi | |
14749 | fi | |
14750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 | |
14751 | $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } | |
14752 | if test $ac_cv_type_unsigned_long_long_int = yes; then | |
14753 | ||
14754 | $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h | |
14755 | ||
14756 | fi | |
14757 | ||
14758 | ||
14759 | ||
14760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 | |
14761 | $as_echo_n "checking for long long int... " >&6; } | |
14762 | if ${ac_cv_type_long_long_int+:} false; then : | |
14763 | $as_echo_n "(cached) " >&6 | |
14764 | else | |
14765 | ac_cv_type_long_long_int=yes | |
14766 | if test "x${ac_cv_prog_cc_c99-no}" = xno; then | |
14767 | ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int | |
14768 | if test $ac_cv_type_long_long_int = yes; then | |
14769 | if test "$cross_compiling" = yes; then : | |
14770 | : | |
14771 | else | |
14772 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14773 | /* end confdefs.h. */ | |
14774 | #include <limits.h> | |
14775 | #ifndef LLONG_MAX | |
14776 | # define HALF \ | |
14777 | (1LL << (sizeof (long long int) * CHAR_BIT - 2)) | |
14778 | # define LLONG_MAX (HALF - 1 + HALF) | |
14779 | #endif | |
14780 | int | |
14781 | main () | |
14782 | { | |
14783 | long long int n = 1; | |
14784 | int i; | |
14785 | for (i = 0; ; i++) | |
14786 | { | |
14787 | long long int m = n << i; | |
14788 | if (m >> i != n) | |
14789 | return 1; | |
14790 | if (LLONG_MAX / 2 < m) | |
14791 | break; | |
14792 | } | |
14793 | return 0; | |
14794 | ; | |
14795 | return 0; | |
14796 | } | |
14797 | _ACEOF | |
14798 | if ac_fn_c_try_run "$LINENO"; then : | |
14799 | ||
14800 | else | |
14801 | ac_cv_type_long_long_int=no | |
14802 | fi | |
14803 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
14804 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
14805 | fi | |
14806 | ||
14807 | fi | |
14808 | fi | |
14809 | fi | |
14810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 | |
14811 | $as_echo "$ac_cv_type_long_long_int" >&6; } | |
14812 | if test $ac_cv_type_long_long_int = yes; then | |
14813 | ||
14814 | $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h | |
14815 | ||
14816 | fi | |
14817 | ||
14818 | ||
14819 | ||
14820 | ||
14821 | ||
14822 | ||
1f5d53eb PE |
14823 | ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h> |
14824 | " | |
14825 | if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then : | |
e275c824 | 14826 | |
1f5d53eb | 14827 | $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h |
e275c824 | 14828 | |
e275c824 PE |
14829 | fi |
14830 | ||
e275c824 | 14831 | |
e275c824 | 14832 | |
e275c824 | 14833 | |
5fa4ac76 PE |
14834 | |
14835 | GNULIB_FCHMODAT=0; | |
14836 | GNULIB_FSTATAT=0; | |
14837 | GNULIB_FUTIMENS=0; | |
14838 | GNULIB_LCHMOD=0; | |
14839 | GNULIB_LSTAT=0; | |
14840 | GNULIB_MKDIRAT=0; | |
14841 | GNULIB_MKFIFO=0; | |
14842 | GNULIB_MKFIFOAT=0; | |
14843 | GNULIB_MKNOD=0; | |
14844 | GNULIB_MKNODAT=0; | |
14845 | GNULIB_STAT=0; | |
14846 | GNULIB_UTIMENSAT=0; | |
14847 | HAVE_FCHMODAT=1; | |
14848 | HAVE_FSTATAT=1; | |
14849 | HAVE_FUTIMENS=1; | |
14850 | HAVE_LCHMOD=1; | |
14851 | HAVE_LSTAT=1; | |
14852 | HAVE_MKDIRAT=1; | |
14853 | HAVE_MKFIFO=1; | |
14854 | HAVE_MKFIFOAT=1; | |
14855 | HAVE_MKNOD=1; | |
14856 | HAVE_MKNODAT=1; | |
14857 | HAVE_UTIMENSAT=1; | |
14858 | REPLACE_FSTAT=0; | |
14859 | REPLACE_FSTATAT=0; | |
14860 | REPLACE_FUTIMENS=0; | |
14861 | REPLACE_LSTAT=0; | |
14862 | REPLACE_MKDIR=0; | |
14863 | REPLACE_MKFIFO=0; | |
14864 | REPLACE_MKNOD=0; | |
14865 | REPLACE_STAT=0; | |
14866 | REPLACE_UTIMENSAT=0; | |
14867 | ||
14868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5 | |
14869 | $as_echo_n "checking whether stat file-mode macros are broken... " >&6; } | |
14870 | if ${ac_cv_header_stat_broken+:} false; then : | |
14871 | $as_echo_n "(cached) " >&6 | |
14872 | else | |
14873 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14874 | /* end confdefs.h. */ | |
14875 | #include <sys/types.h> | |
14876 | #include <sys/stat.h> | |
14877 | ||
14878 | #if defined S_ISBLK && defined S_IFDIR | |
14879 | extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; | |
14880 | #endif | |
14881 | ||
14882 | #if defined S_ISBLK && defined S_IFCHR | |
14883 | extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; | |
14884 | #endif | |
14885 | ||
14886 | #if defined S_ISLNK && defined S_IFREG | |
14887 | extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; | |
14888 | #endif | |
14889 | ||
14890 | #if defined S_ISSOCK && defined S_IFREG | |
14891 | extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; | |
14892 | #endif | |
14893 | ||
14894 | _ACEOF | |
14895 | if ac_fn_c_try_compile "$LINENO"; then : | |
14896 | ac_cv_header_stat_broken=no | |
14897 | else | |
14898 | ac_cv_header_stat_broken=yes | |
14899 | fi | |
14900 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14901 | fi | |
14902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5 | |
14903 | $as_echo "$ac_cv_header_stat_broken" >&6; } | |
14904 | if test $ac_cv_header_stat_broken = yes; then | |
14905 | ||
14906 | $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h | |
14907 | ||
14908 | fi | |
14909 | ||
14910 | ||
14911 | ||
1f5d53eb PE |
14912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 |
14913 | $as_echo_n "checking for C/C++ restrict keyword... " >&6; } | |
14914 | if ${ac_cv_c_restrict+:} false; then : | |
d6974efa | 14915 | $as_echo_n "(cached) " >&6 |
e275c824 | 14916 | else |
1f5d53eb PE |
14917 | ac_cv_c_restrict=no |
14918 | # The order here caters to the fact that C++ does not require restrict. | |
14919 | for ac_kw in __restrict __restrict__ _Restrict restrict; do | |
14920 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d6974efa | 14921 | /* end confdefs.h. */ |
1f5d53eb PE |
14922 | typedef int * int_ptr; |
14923 | int foo (int_ptr $ac_kw ip) { | |
14924 | return ip[0]; | |
14925 | } | |
d6974efa PE |
14926 | int |
14927 | main () | |
14928 | { | |
1f5d53eb PE |
14929 | int s[1]; |
14930 | int * $ac_kw t = s; | |
14931 | t[0] = 0; | |
14932 | return foo(t) | |
d6974efa PE |
14933 | ; |
14934 | return 0; | |
14935 | } | |
e275c824 | 14936 | _ACEOF |
1f5d53eb PE |
14937 | if ac_fn_c_try_compile "$LINENO"; then : |
14938 | ac_cv_c_restrict=$ac_kw | |
14939 | fi | |
14940 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14941 | test "$ac_cv_c_restrict" != no && break | |
14942 | done | |
14943 | ||
14944 | fi | |
14945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 | |
14946 | $as_echo "$ac_cv_c_restrict" >&6; } | |
14947 | ||
14948 | case $ac_cv_c_restrict in | |
14949 | restrict) ;; | |
14950 | no) $as_echo "#define restrict /**/" >>confdefs.h | |
14951 | ;; | |
14952 | *) cat >>confdefs.h <<_ACEOF | |
14953 | #define restrict $ac_cv_c_restrict | |
14954 | _ACEOF | |
14955 | ;; | |
14956 | esac | |
14957 | ||
14958 | ||
14959 | ||
14960 | ||
14961 | ||
14962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5 | |
14963 | $as_echo_n "checking for struct timespec in <time.h>... " >&6; } | |
14964 | if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then : | |
14965 | $as_echo_n "(cached) " >&6 | |
e275c824 | 14966 | else |
d6974efa PE |
14967 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14968 | /* end confdefs.h. */ | |
1f5d53eb PE |
14969 | #include <time.h> |
14970 | ||
d6974efa PE |
14971 | int |
14972 | main () | |
14973 | { | |
1f5d53eb | 14974 | static struct timespec x; x.tv_sec = x.tv_nsec; |
d6974efa PE |
14975 | ; |
14976 | return 0; | |
14977 | } | |
14978 | _ACEOF | |
14979 | if ac_fn_c_try_compile "$LINENO"; then : | |
1f5d53eb | 14980 | gl_cv_sys_struct_timespec_in_time_h=yes |
e275c824 | 14981 | else |
1f5d53eb | 14982 | gl_cv_sys_struct_timespec_in_time_h=no |
e275c824 | 14983 | fi |
d6974efa | 14984 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e275c824 | 14985 | fi |
1f5d53eb PE |
14986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5 |
14987 | $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; } | |
e275c824 | 14988 | |
1f5d53eb PE |
14989 | TIME_H_DEFINES_STRUCT_TIMESPEC=0 |
14990 | SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0 | |
14991 | PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0 | |
14992 | if test $gl_cv_sys_struct_timespec_in_time_h = yes; then | |
14993 | TIME_H_DEFINES_STRUCT_TIMESPEC=1 | |
14994 | else | |
14995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5 | |
14996 | $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; } | |
14997 | if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then : | |
14998 | $as_echo_n "(cached) " >&6 | |
e275c824 PE |
14999 | else |
15000 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15001 | /* end confdefs.h. */ | |
1f5d53eb | 15002 | #include <sys/time.h> |
e275c824 | 15003 | |
e275c824 PE |
15004 | int |
15005 | main () | |
15006 | { | |
1f5d53eb PE |
15007 | static struct timespec x; x.tv_sec = x.tv_nsec; |
15008 | ; | |
e275c824 PE |
15009 | return 0; |
15010 | } | |
e275c824 | 15011 | _ACEOF |
1f5d53eb PE |
15012 | if ac_fn_c_try_compile "$LINENO"; then : |
15013 | gl_cv_sys_struct_timespec_in_sys_time_h=yes | |
e275c824 | 15014 | else |
1f5d53eb | 15015 | gl_cv_sys_struct_timespec_in_sys_time_h=no |
e275c824 | 15016 | fi |
1f5d53eb | 15017 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e275c824 | 15018 | fi |
1f5d53eb PE |
15019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5 |
15020 | $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; } | |
15021 | if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then | |
15022 | SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1 | |
15023 | else | |
15024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5 | |
15025 | $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; } | |
15026 | if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then : | |
e275c824 | 15027 | $as_echo_n "(cached) " >&6 |
e275c824 PE |
15028 | else |
15029 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15030 | /* end confdefs.h. */ | |
1f5d53eb | 15031 | #include <pthread.h> |
e275c824 PE |
15032 | |
15033 | int | |
15034 | main () | |
15035 | { | |
1f5d53eb | 15036 | static struct timespec x; x.tv_sec = x.tv_nsec; |
e275c824 PE |
15037 | ; |
15038 | return 0; | |
15039 | } | |
15040 | _ACEOF | |
1f5d53eb PE |
15041 | if ac_fn_c_try_compile "$LINENO"; then : |
15042 | gl_cv_sys_struct_timespec_in_pthread_h=yes | |
e275c824 | 15043 | else |
1f5d53eb | 15044 | gl_cv_sys_struct_timespec_in_pthread_h=no |
e275c824 | 15045 | fi |
1f5d53eb | 15046 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e275c824 | 15047 | fi |
1f5d53eb PE |
15048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5 |
15049 | $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; } | |
15050 | if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then | |
15051 | PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1 | |
15052 | fi | |
e275c824 PE |
15053 | fi |
15054 | fi | |
15055 | ||
e275c824 | 15056 | |
e275c824 | 15057 | |
e275c824 PE |
15058 | |
15059 | ||
15060 | ||
e275c824 PE |
15061 | |
15062 | ||
15063 | ||
15064 | ||
15065 | ||
15066 | ||
15067 | ||
15068 | ||
e275c824 | 15069 | |
1f5d53eb PE |
15070 | if test $gl_cv_have_include_next = yes; then |
15071 | gl_cv_next_time_h='<'time.h'>' | |
15072 | else | |
15073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5 | |
15074 | $as_echo_n "checking absolute name of <time.h>... " >&6; } | |
15075 | if ${gl_cv_next_time_h+:} false; then : | |
15076 | $as_echo_n "(cached) " >&6 | |
15077 | else | |
e275c824 | 15078 | |
1f5d53eb PE |
15079 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
15080 | /* end confdefs.h. */ | |
15081 | #include <time.h> | |
e275c824 | 15082 | |
1f5d53eb PE |
15083 | _ACEOF |
15084 | case "$host_os" in | |
15085 | aix*) gl_absname_cpp="$ac_cpp -C" ;; | |
15086 | *) gl_absname_cpp="$ac_cpp" ;; | |
15087 | esac | |
15088 | gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | | |
15089 | sed -n '\#/time.h#{ | |
15090 | s#.*"\(.*/time.h\)".*#\1# | |
15091 | s#^/[^/]#//&# | |
15092 | p | |
15093 | q | |
15094 | }'`'"' | |
e275c824 PE |
15095 | |
15096 | ||
1f5d53eb PE |
15097 | fi |
15098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5 | |
15099 | $as_echo "$gl_cv_next_time_h" >&6; } | |
15100 | fi | |
15101 | NEXT_TIME_H=$gl_cv_next_time_h | |
e275c824 | 15102 | |
1f5d53eb PE |
15103 | if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then |
15104 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' | |
15105 | gl_next_as_first_directive='<'time.h'>' | |
15106 | else | |
15107 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' | |
15108 | gl_next_as_first_directive=$gl_cv_next_time_h | |
15109 | fi | |
15110 | NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive | |
e275c824 PE |
15111 | |
15112 | ||
15113 | ||
e275c824 PE |
15114 | |
15115 | ||
15116 | ||
1f5d53eb PE |
15117 | ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default" |
15118 | if test "x$ac_cv_have_decl_localtime_r" = xyes; then : | |
15119 | ac_have_decl=1 | |
15120 | else | |
15121 | ac_have_decl=0 | |
15122 | fi | |
e275c824 | 15123 | |
1f5d53eb PE |
15124 | cat >>confdefs.h <<_ACEOF |
15125 | #define HAVE_DECL_LOCALTIME_R $ac_have_decl | |
15126 | _ACEOF | |
e275c824 PE |
15127 | |
15128 | ||
e275c824 PE |
15129 | |
15130 | ||
1f5d53eb PE |
15131 | if false; then |
15132 | GL_COND_LIBTOOL_TRUE= | |
15133 | GL_COND_LIBTOOL_FALSE='#' | |
67342916 | 15134 | else |
1f5d53eb PE |
15135 | GL_COND_LIBTOOL_TRUE='#' |
15136 | GL_COND_LIBTOOL_FALSE= | |
67342916 | 15137 | fi |
67342916 | 15138 | |
1f5d53eb PE |
15139 | gl_cond_libtool=false |
15140 | gl_libdeps= | |
15141 | gl_ltlibdeps= | |
15142 | gl_m4_base='m4' | |
67342916 | 15143 | |
67342916 | 15144 | |
e275c824 | 15145 | |
e275c824 PE |
15146 | |
15147 | ||
15148 | ||
15149 | ||
e275c824 | 15150 | |
e275c824 | 15151 | |
1f5d53eb PE |
15152 | gl_source_base='lib' |
15153 | # Code from module arg-nonnull: | |
15154 | # Code from module c++defs: | |
942f733f PE |
15155 | # Code from module crypto/md5: |
15156 | ||
15157 | ||
15158 | ||
15159 | ||
15160 | ||
15161 | ||
15162 | ||
15163 | ||
15164 | ||
15165 | gl_LIBOBJS="$gl_LIBOBJS md5.$ac_objext" | |
15166 | ||
15167 | ||
15168 | ||
15169 | ||
15170 | : | |
15171 | ||
1f5d53eb | 15172 | # Code from module dtoastr: |
e275c824 | 15173 | |
1f5d53eb | 15174 | # Code from module extensions: |
5fa4ac76 PE |
15175 | # Code from module filemode: |
15176 | ||
15177 | ||
15178 | ||
15179 | ||
15180 | ||
15181 | ||
15182 | ||
15183 | ||
15184 | ||
15185 | ||
15186 | gl_LIBOBJS="$gl_LIBOBJS filemode.$ac_objext" | |
15187 | ||
15188 | ||
15189 | ||
1f5d53eb | 15190 | # Code from module getloadavg: |
e275c824 PE |
15191 | |
15192 | ||
1f5d53eb | 15193 | # Persuade glibc <stdlib.h> to declare getloadavg(). |
e275c824 | 15194 | |
e275c824 | 15195 | |
1f5d53eb PE |
15196 | # Make sure getloadavg.c is where it belongs, at configure-time. |
15197 | test -f "$srcdir/$gl_source_base/getloadavg.c" || | |
15198 | as_fn_error $? "$srcdir/$gl_source_base/getloadavg.c is missing" "$LINENO" 5 | |
e275c824 | 15199 | |
1f5d53eb | 15200 | gl_save_LIBS=$LIBS |
e275c824 | 15201 | |
7d315eb6 PE |
15202 | # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0, |
15203 | # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7. | |
1f5d53eb PE |
15204 | ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg" |
15205 | if test "x$ac_cv_func_getloadavg" = xyes; then : | |
e275c824 | 15206 | |
1f5d53eb PE |
15207 | else |
15208 | gl_have_func=no | |
15209 | ||
15210 | # Some systems with -lutil have (and need) -lkvm as well, some do not. | |
15211 | # On Solaris, -lkvm requires nlist from -lelf, so check that first | |
15212 | # to get the right answer into the cache. | |
15213 | # For kstat on solaris, we need to test for libelf and libkvm to force the | |
15214 | # definition of SVR4 below. | |
15215 | if test $gl_have_func = no; then | |
15216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5 | |
15217 | $as_echo_n "checking for elf_begin in -lelf... " >&6; } | |
15218 | if ${ac_cv_lib_elf_elf_begin+:} false; then : | |
16c3e636 PE |
15219 | $as_echo_n "(cached) " >&6 |
15220 | else | |
1f5d53eb PE |
15221 | ac_check_lib_save_LIBS=$LIBS |
15222 | LIBS="-lelf $LIBS" | |
15223 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16c3e636 PE |
15224 | /* end confdefs.h. */ |
15225 | ||
1f5d53eb PE |
15226 | /* Override any GCC internal prototype to avoid an error. |
15227 | Use char because int might match the return type of a GCC | |
15228 | builtin and then its argument prototype would still apply. */ | |
15229 | #ifdef __cplusplus | |
15230 | extern "C" | |
15231 | #endif | |
15232 | char elf_begin (); | |
15233 | int | |
15234 | main () | |
15235 | { | |
15236 | return elf_begin (); | |
15237 | ; | |
15238 | return 0; | |
15239 | } | |
15240 | _ACEOF | |
15241 | if ac_fn_c_try_link "$LINENO"; then : | |
15242 | ac_cv_lib_elf_elf_begin=yes | |
15243 | else | |
15244 | ac_cv_lib_elf_elf_begin=no | |
15245 | fi | |
15246 | rm -f core conftest.err conftest.$ac_objext \ | |
15247 | conftest$ac_exeext conftest.$ac_ext | |
15248 | LIBS=$ac_check_lib_save_LIBS | |
15249 | fi | |
15250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5 | |
15251 | $as_echo "$ac_cv_lib_elf_elf_begin" >&6; } | |
15252 | if test "x$ac_cv_lib_elf_elf_begin" = xyes; then : | |
15253 | LIBS="-lelf $LIBS" | |
15254 | fi | |
15255 | ||
15256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5 | |
15257 | $as_echo_n "checking for kvm_open in -lkvm... " >&6; } | |
15258 | if ${ac_cv_lib_kvm_kvm_open+:} false; then : | |
15259 | $as_echo_n "(cached) " >&6 | |
15260 | else | |
15261 | ac_check_lib_save_LIBS=$LIBS | |
15262 | LIBS="-lkvm $LIBS" | |
15263 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15264 | /* end confdefs.h. */ | |
16c3e636 | 15265 | |
1f5d53eb PE |
15266 | /* Override any GCC internal prototype to avoid an error. |
15267 | Use char because int might match the return type of a GCC | |
15268 | builtin and then its argument prototype would still apply. */ | |
15269 | #ifdef __cplusplus | |
15270 | extern "C" | |
15271 | #endif | |
15272 | char kvm_open (); | |
16c3e636 PE |
15273 | int |
15274 | main () | |
15275 | { | |
1f5d53eb | 15276 | return kvm_open (); |
16c3e636 PE |
15277 | ; |
15278 | return 0; | |
15279 | } | |
15280 | _ACEOF | |
1f5d53eb PE |
15281 | if ac_fn_c_try_link "$LINENO"; then : |
15282 | ac_cv_lib_kvm_kvm_open=yes | |
16c3e636 | 15283 | else |
1f5d53eb | 15284 | ac_cv_lib_kvm_kvm_open=no |
16c3e636 | 15285 | fi |
1f5d53eb PE |
15286 | rm -f core conftest.err conftest.$ac_objext \ |
15287 | conftest$ac_exeext conftest.$ac_ext | |
15288 | LIBS=$ac_check_lib_save_LIBS | |
16c3e636 | 15289 | fi |
1f5d53eb PE |
15290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5 |
15291 | $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; } | |
15292 | if test "x$ac_cv_lib_kvm_kvm_open" = xyes; then : | |
15293 | LIBS="-lkvm $LIBS" | |
16c3e636 PE |
15294 | fi |
15295 | ||
1f5d53eb PE |
15296 | # Check for the 4.4BSD definition of getloadavg. |
15297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5 | |
15298 | $as_echo_n "checking for getloadavg in -lutil... " >&6; } | |
15299 | if ${ac_cv_lib_util_getloadavg+:} false; then : | |
1fd182f0 PE |
15300 | $as_echo_n "(cached) " >&6 |
15301 | else | |
1f5d53eb PE |
15302 | ac_check_lib_save_LIBS=$LIBS |
15303 | LIBS="-lutil $LIBS" | |
15304 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1fd182f0 | 15305 | /* end confdefs.h. */ |
1f5d53eb PE |
15306 | |
15307 | /* Override any GCC internal prototype to avoid an error. | |
15308 | Use char because int might match the return type of a GCC | |
15309 | builtin and then its argument prototype would still apply. */ | |
15310 | #ifdef __cplusplus | |
15311 | extern "C" | |
15312 | #endif | |
15313 | char getloadavg (); | |
1fd182f0 PE |
15314 | int |
15315 | main () | |
15316 | { | |
1f5d53eb | 15317 | return getloadavg (); |
1fd182f0 PE |
15318 | ; |
15319 | return 0; | |
15320 | } | |
15321 | _ACEOF | |
1f5d53eb PE |
15322 | if ac_fn_c_try_link "$LINENO"; then : |
15323 | ac_cv_lib_util_getloadavg=yes | |
1fd182f0 | 15324 | else |
1f5d53eb | 15325 | ac_cv_lib_util_getloadavg=no |
1fd182f0 | 15326 | fi |
1f5d53eb PE |
15327 | rm -f core conftest.err conftest.$ac_objext \ |
15328 | conftest$ac_exeext conftest.$ac_ext | |
15329 | LIBS=$ac_check_lib_save_LIBS | |
1fd182f0 | 15330 | fi |
1f5d53eb PE |
15331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5 |
15332 | $as_echo "$ac_cv_lib_util_getloadavg" >&6; } | |
15333 | if test "x$ac_cv_lib_util_getloadavg" = xyes; then : | |
15334 | LIBS="-lutil $LIBS" gl_have_func=yes | |
16c3e636 PE |
15335 | fi |
15336 | ||
1f5d53eb | 15337 | fi |
16c3e636 | 15338 | |
1f5d53eb PE |
15339 | if test $gl_have_func = no; then |
15340 | # There is a commonly available library for RS/6000 AIX. | |
15341 | # Since it is not a standard part of AIX, it might be installed locally. | |
15342 | gl_getloadavg_LIBS=$LIBS | |
15343 | LIBS="-L/usr/local/lib $LIBS" | |
15344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5 | |
15345 | $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; } | |
15346 | if ${ac_cv_lib_getloadavg_getloadavg+:} false; then : | |
1fd182f0 PE |
15347 | $as_echo_n "(cached) " >&6 |
15348 | else | |
1f5d53eb PE |
15349 | ac_check_lib_save_LIBS=$LIBS |
15350 | LIBS="-lgetloadavg $LIBS" | |
15351 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1fd182f0 | 15352 | /* end confdefs.h. */ |
1f5d53eb PE |
15353 | |
15354 | /* Override any GCC internal prototype to avoid an error. | |
15355 | Use char because int might match the return type of a GCC | |
15356 | builtin and then its argument prototype would still apply. */ | |
15357 | #ifdef __cplusplus | |
15358 | extern "C" | |
15359 | #endif | |
15360 | char getloadavg (); | |
1fd182f0 PE |
15361 | int |
15362 | main () | |
15363 | { | |
1f5d53eb | 15364 | return getloadavg (); |
1fd182f0 PE |
15365 | ; |
15366 | return 0; | |
15367 | } | |
15368 | _ACEOF | |
1f5d53eb PE |
15369 | if ac_fn_c_try_link "$LINENO"; then : |
15370 | ac_cv_lib_getloadavg_getloadavg=yes | |
15371 | else | |
15372 | ac_cv_lib_getloadavg_getloadavg=no | |
1fd182f0 | 15373 | fi |
1f5d53eb PE |
15374 | rm -f core conftest.err conftest.$ac_objext \ |
15375 | conftest$ac_exeext conftest.$ac_ext | |
15376 | LIBS=$ac_check_lib_save_LIBS | |
15377 | fi | |
15378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5 | |
15379 | $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; } | |
15380 | if test "x$ac_cv_lib_getloadavg_getloadavg" = xyes; then : | |
15381 | LIBS="-lgetloadavg $LIBS" gl_have_func=yes | |
15382 | else | |
15383 | LIBS=$gl_getloadavg_LIBS | |
1fd182f0 | 15384 | fi |
1fd182f0 | 15385 | |
1f5d53eb | 15386 | fi |
1fd182f0 | 15387 | |
1f5d53eb PE |
15388 | # Set up the replacement function if necessary. |
15389 | if test $gl_have_func = no; then | |
1fd182f0 PE |
15390 | |
15391 | ||
15392 | ||
15393 | ||
1f5d53eb PE |
15394 | |
15395 | ||
15396 | ||
15397 | ||
15398 | gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext" | |
15399 | ||
15400 | ||
15401 | # Figure out what our getloadavg.c needs. | |
15402 | ||
15403 | # Solaris has libkstat which does not require root. | |
15404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5 | |
15405 | $as_echo_n "checking for kstat_open in -lkstat... " >&6; } | |
15406 | if ${ac_cv_lib_kstat_kstat_open+:} false; then : | |
1fd182f0 PE |
15407 | $as_echo_n "(cached) " >&6 |
15408 | else | |
1f5d53eb PE |
15409 | ac_check_lib_save_LIBS=$LIBS |
15410 | LIBS="-lkstat $LIBS" | |
15411 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1fd182f0 | 15412 | /* end confdefs.h. */ |
1fd182f0 | 15413 | |
1f5d53eb PE |
15414 | /* Override any GCC internal prototype to avoid an error. |
15415 | Use char because int might match the return type of a GCC | |
15416 | builtin and then its argument prototype would still apply. */ | |
15417 | #ifdef __cplusplus | |
15418 | extern "C" | |
15419 | #endif | |
15420 | char kstat_open (); | |
1fd182f0 PE |
15421 | int |
15422 | main () | |
15423 | { | |
1f5d53eb | 15424 | return kstat_open (); |
1fd182f0 PE |
15425 | ; |
15426 | return 0; | |
15427 | } | |
15428 | _ACEOF | |
1f5d53eb PE |
15429 | if ac_fn_c_try_link "$LINENO"; then : |
15430 | ac_cv_lib_kstat_kstat_open=yes | |
1fd182f0 | 15431 | else |
1f5d53eb | 15432 | ac_cv_lib_kstat_kstat_open=no |
1fd182f0 | 15433 | fi |
1f5d53eb PE |
15434 | rm -f core conftest.err conftest.$ac_objext \ |
15435 | conftest$ac_exeext conftest.$ac_ext | |
15436 | LIBS=$ac_check_lib_save_LIBS | |
1fd182f0 | 15437 | fi |
1f5d53eb PE |
15438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5 |
15439 | $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; } | |
15440 | if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then : | |
15441 | cat >>confdefs.h <<_ACEOF | |
15442 | #define HAVE_LIBKSTAT 1 | |
15443 | _ACEOF | |
1fd182f0 | 15444 | |
1f5d53eb PE |
15445 | LIBS="-lkstat $LIBS" |
15446 | ||
15447 | fi | |
15448 | ||
15449 | test $ac_cv_lib_kstat_kstat_open = yes && gl_have_func=yes | |
15450 | ||
15451 | # On HPUX9, an unprivileged user can get load averages this way. | |
15452 | if test $gl_have_func = no; then | |
15453 | for ac_func in pstat_getdynamic | |
15454 | do : | |
15455 | ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic" | |
15456 | if test "x$ac_cv_func_pstat_getdynamic" = xyes; then : | |
15457 | cat >>confdefs.h <<_ACEOF | |
15458 | #define HAVE_PSTAT_GETDYNAMIC 1 | |
15459 | _ACEOF | |
15460 | gl_have_func=yes | |
15461 | fi | |
15462 | done | |
15463 | ||
15464 | fi | |
15465 | ||
15466 | # AIX has libperfstat which does not require root | |
15467 | if test $gl_have_func = no; then | |
15468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5 | |
15469 | $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; } | |
15470 | if ${ac_cv_lib_perfstat_perfstat_cpu_total+:} false; then : | |
1fd182f0 PE |
15471 | $as_echo_n "(cached) " >&6 |
15472 | else | |
1f5d53eb PE |
15473 | ac_check_lib_save_LIBS=$LIBS |
15474 | LIBS="-lperfstat $LIBS" | |
15475 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1fd182f0 | 15476 | /* end confdefs.h. */ |
1fd182f0 | 15477 | |
1f5d53eb PE |
15478 | /* Override any GCC internal prototype to avoid an error. |
15479 | Use char because int might match the return type of a GCC | |
15480 | builtin and then its argument prototype would still apply. */ | |
15481 | #ifdef __cplusplus | |
15482 | extern "C" | |
15483 | #endif | |
15484 | char perfstat_cpu_total (); | |
1fd182f0 PE |
15485 | int |
15486 | main () | |
15487 | { | |
1f5d53eb | 15488 | return perfstat_cpu_total (); |
1fd182f0 PE |
15489 | ; |
15490 | return 0; | |
15491 | } | |
15492 | _ACEOF | |
1f5d53eb PE |
15493 | if ac_fn_c_try_link "$LINENO"; then : |
15494 | ac_cv_lib_perfstat_perfstat_cpu_total=yes | |
1fd182f0 | 15495 | else |
1f5d53eb | 15496 | ac_cv_lib_perfstat_perfstat_cpu_total=no |
1fd182f0 | 15497 | fi |
1f5d53eb PE |
15498 | rm -f core conftest.err conftest.$ac_objext \ |
15499 | conftest$ac_exeext conftest.$ac_ext | |
15500 | LIBS=$ac_check_lib_save_LIBS | |
1fd182f0 | 15501 | fi |
1f5d53eb PE |
15502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5 |
15503 | $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; } | |
15504 | if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = xyes; then : | |
15505 | cat >>confdefs.h <<_ACEOF | |
15506 | #define HAVE_LIBPERFSTAT 1 | |
15507 | _ACEOF | |
15508 | ||
15509 | LIBS="-lperfstat $LIBS" | |
15510 | ||
15511 | fi | |
15512 | ||
15513 | test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_have_func=yes | |
15514 | fi | |
15515 | ||
15516 | if test $gl_have_func = no; then | |
15517 | ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default" | |
15518 | if test "x$ac_cv_header_sys_dg_sys_info_h" = xyes; then : | |
15519 | gl_have_func=yes | |
15520 | ||
15521 | $as_echo "#define DGUX 1" >>confdefs.h | |
15522 | ||
15523 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5 | |
15524 | $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; } | |
15525 | if ${ac_cv_lib_dgc_dg_sys_info+:} false; then : | |
1fd182f0 PE |
15526 | $as_echo_n "(cached) " >&6 |
15527 | else | |
1f5d53eb PE |
15528 | ac_check_lib_save_LIBS=$LIBS |
15529 | LIBS="-ldgc $LIBS" | |
15530 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1fd182f0 | 15531 | /* end confdefs.h. */ |
1fd182f0 | 15532 | |
1f5d53eb PE |
15533 | /* Override any GCC internal prototype to avoid an error. |
15534 | Use char because int might match the return type of a GCC | |
15535 | builtin and then its argument prototype would still apply. */ | |
15536 | #ifdef __cplusplus | |
15537 | extern "C" | |
15538 | #endif | |
15539 | char dg_sys_info (); | |
1fd182f0 PE |
15540 | int |
15541 | main () | |
15542 | { | |
1f5d53eb | 15543 | return dg_sys_info (); |
1fd182f0 PE |
15544 | ; |
15545 | return 0; | |
15546 | } | |
15547 | _ACEOF | |
1f5d53eb PE |
15548 | if ac_fn_c_try_link "$LINENO"; then : |
15549 | ac_cv_lib_dgc_dg_sys_info=yes | |
1fd182f0 | 15550 | else |
1f5d53eb | 15551 | ac_cv_lib_dgc_dg_sys_info=no |
1fd182f0 | 15552 | fi |
1f5d53eb PE |
15553 | rm -f core conftest.err conftest.$ac_objext \ |
15554 | conftest$ac_exeext conftest.$ac_ext | |
15555 | LIBS=$ac_check_lib_save_LIBS | |
1fd182f0 | 15556 | fi |
1f5d53eb PE |
15557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5 |
15558 | $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; } | |
15559 | if test "x$ac_cv_lib_dgc_dg_sys_info" = xyes; then : | |
15560 | cat >>confdefs.h <<_ACEOF | |
15561 | #define HAVE_LIBDGC 1 | |
15562 | _ACEOF | |
1fd182f0 | 15563 | |
1f5d53eb | 15564 | LIBS="-ldgc $LIBS" |
1fd182f0 | 15565 | |
1f5d53eb | 15566 | fi |
1fd182f0 | 15567 | |
1f5d53eb | 15568 | fi |
1fd182f0 PE |
15569 | |
15570 | ||
1f5d53eb | 15571 | fi |
1fd182f0 | 15572 | |
1f5d53eb PE |
15573 | # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it |
15574 | # uses stabs), but it is still SVR4. We cannot check for <elf.h> because | |
15575 | # Irix 4.0.5F has the header but not the library. | |
15576 | if test $gl_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes \ | |
15577 | && test "$ac_cv_lib_kvm_kvm_open" = yes; then | |
15578 | gl_have_func=yes | |
1fd182f0 | 15579 | |
1f5d53eb | 15580 | $as_echo "#define SVR4 1" >>confdefs.h |
1fd182f0 | 15581 | |
1f5d53eb | 15582 | fi |
1fd182f0 | 15583 | |
1f5d53eb PE |
15584 | if test $gl_have_func = no; then |
15585 | ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default" | |
15586 | if test "x$ac_cv_header_inq_stats_cpustats_h" = xyes; then : | |
15587 | gl_have_func=yes | |
1fd182f0 | 15588 | |
1f5d53eb | 15589 | $as_echo "#define UMAX 1" >>confdefs.h |
1fd182f0 PE |
15590 | |
15591 | ||
1f5d53eb | 15592 | $as_echo "#define UMAX4_3 1" >>confdefs.h |
1fd182f0 | 15593 | |
1f5d53eb | 15594 | fi |
b06b1098 PE |
15595 | |
15596 | ||
1f5d53eb | 15597 | fi |
1fd182f0 | 15598 | |
1f5d53eb PE |
15599 | if test $gl_have_func = no; then |
15600 | ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default" | |
15601 | if test "x$ac_cv_header_sys_cpustats_h" = xyes; then : | |
15602 | gl_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h | |
1fd182f0 | 15603 | |
1f5d53eb | 15604 | fi |
b06b1098 | 15605 | |
1fd182f0 PE |
15606 | |
15607 | fi | |
1fd182f0 | 15608 | |
1f5d53eb PE |
15609 | if test $gl_have_func = no; then |
15610 | for ac_header in mach/mach.h | |
15611 | do : | |
15612 | ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default" | |
15613 | if test "x$ac_cv_header_mach_mach_h" = xyes; then : | |
15614 | cat >>confdefs.h <<_ACEOF | |
15615 | #define HAVE_MACH_MACH_H 1 | |
15616 | _ACEOF | |
1fd182f0 | 15617 | |
1f5d53eb | 15618 | fi |
1fd182f0 | 15619 | |
1f5d53eb | 15620 | done |
1fd182f0 | 15621 | |
1f5d53eb | 15622 | fi |
1fd182f0 | 15623 | |
1f5d53eb PE |
15624 | for ac_header in nlist.h |
15625 | do : | |
15626 | ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default" | |
15627 | if test "x$ac_cv_header_nlist_h" = xyes; then : | |
15628 | cat >>confdefs.h <<_ACEOF | |
15629 | #define HAVE_NLIST_H 1 | |
15630 | _ACEOF | |
15631 | ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h> | |
15632 | " | |
15633 | if test "x$ac_cv_member_struct_nlist_n_un_n_name" = xyes; then : | |
15634 | ||
15635 | cat >>confdefs.h <<_ACEOF | |
15636 | #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1 | |
15637 | _ACEOF | |
1fd182f0 | 15638 | |
b06b1098 | 15639 | |
1fd182f0 PE |
15640 | fi |
15641 | ||
1f5d53eb PE |
15642 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
15643 | /* end confdefs.h. */ | |
15644 | #include <nlist.h> | |
15645 | int | |
15646 | main () | |
15647 | { | |
15648 | struct nlist x; | |
15649 | #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME | |
15650 | x.n_un.n_name = ""; | |
15651 | #else | |
15652 | x.n_name = ""; | |
15653 | #endif | |
15654 | ; | |
15655 | return 0; | |
15656 | } | |
1fd182f0 | 15657 | _ACEOF |
1f5d53eb PE |
15658 | if ac_fn_c_try_link "$LINENO"; then : |
15659 | ||
15660 | $as_echo "#define N_NAME_POINTER 1" >>confdefs.h | |
15661 | ||
15662 | fi | |
15663 | rm -f core conftest.err conftest.$ac_objext \ | |
15664 | conftest$ac_exeext conftest.$ac_ext | |
1fd182f0 | 15665 | |
1f5d53eb | 15666 | fi |
1fd182f0 | 15667 | |
1f5d53eb | 15668 | done |
1fd182f0 | 15669 | |
1f5d53eb PE |
15670 | fi |
15671 | fi | |
1fd182f0 | 15672 | |
1f5d53eb PE |
15673 | |
15674 | if test "x$gl_save_LIBS" = x; then | |
15675 | GETLOADAVG_LIBS=$LIBS | |
1fd182f0 | 15676 | else |
1f5d53eb | 15677 | GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"` |
1fd182f0 | 15678 | fi |
1f5d53eb | 15679 | LIBS=$gl_save_LIBS |
1fd182f0 | 15680 | |
1fd182f0 | 15681 | |
1f5d53eb PE |
15682 | # Test whether the system declares getloadavg. Solaris has the function |
15683 | # but declares it in <sys/loadavg.h>, not <stdlib.h>. | |
15684 | for ac_header in sys/loadavg.h | |
15685 | do : | |
15686 | ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default" | |
15687 | if test "x$ac_cv_header_sys_loadavg_h" = xyes; then : | |
15688 | cat >>confdefs.h <<_ACEOF | |
15689 | #define HAVE_SYS_LOADAVG_H 1 | |
15690 | _ACEOF | |
15691 | ||
15692 | fi | |
1fd182f0 | 15693 | |
1f5d53eb | 15694 | done |
1fd182f0 | 15695 | |
1f5d53eb PE |
15696 | if test $ac_cv_header_sys_loadavg_h = yes; then |
15697 | HAVE_SYS_LOADAVG_H=1 | |
15698 | else | |
15699 | HAVE_SYS_LOADAVG_H=0 | |
15700 | fi | |
15701 | ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H | |
15702 | # include <sys/loadavg.h> | |
15703 | #endif | |
15704 | #include <stdlib.h> | |
15705 | " | |
15706 | if test "x$ac_cv_have_decl_getloadavg" = xyes; then : | |
1fd182f0 | 15707 | |
1f5d53eb PE |
15708 | else |
15709 | HAVE_DECL_GETLOADAVG=0 | |
15710 | fi | |
1fd182f0 PE |
15711 | |
15712 | ||
15713 | ||
15714 | ||
15715 | ||
1f5d53eb PE |
15716 | GNULIB_GETLOADAVG=1 |
15717 | ||
15718 | ||
1fd182f0 | 15719 | |
e275c824 PE |
15720 | # Code from module getopt-gnu: |
15721 | ||
15722 | ||
15723 | ||
15724 | ||
15725 | ||
15726 | ||
e275c824 PE |
15727 | # Code from module getopt-posix: |
15728 | ||
15729 | ||
15730 | ||
15731 | ||
15732 | ||
15733 | if test -n "$gl_replace_getopt"; then : | |
15734 | ||
15735 | ||
15736 | ||
15737 | GETOPT_H=getopt.h | |
15738 | ||
15739 | $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h | |
15740 | ||
15741 | ||
15742 | ||
15743 | GNULIB_UNISTD_H_GETOPT=1 | |
15744 | ||
15745 | ||
15746 | ||
15747 | ||
15748 | ||
15749 | ||
15750 | ||
15751 | ||
15752 | gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext" | |
15753 | ||
15754 | ||
15755 | ||
15756 | ||
15757 | ||
15758 | ||
15759 | ||
15760 | ||
15761 | ||
15762 | gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext" | |
15763 | ||
15764 | ||
15765 | ||
15766 | ||
15767 | ||
15768 | ||
15769 | fi | |
15770 | ||
15771 | ||
15772 | # Code from module gettext-h: | |
15773 | ||
15774 | ||
67342916 PE |
15775 | # Code from module ignore-value: |
15776 | ||
1fd182f0 PE |
15777 | # Code from module include_next: |
15778 | # Code from module intprops: | |
15779 | # Code from module mktime: | |
15780 | ||
15781 | ||
15782 | ||
15783 | ||
15784 | ||
15785 | if test $APPLE_UNIVERSAL_BUILD = 1; then | |
15786 | # A universal build on Apple MacOS X platforms. | |
15787 | # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode. | |
15788 | # But we need a configuration result that is valid in both modes. | |
15789 | ac_cv_func_working_mktime=no | |
15790 | fi | |
15791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5 | |
15792 | $as_echo_n "checking for working mktime... " >&6; } | |
d6974efa | 15793 | if ${ac_cv_func_working_mktime+:} false; then : |
1fd182f0 PE |
15794 | $as_echo_n "(cached) " >&6 |
15795 | else | |
15796 | if test "$cross_compiling" = yes; then : | |
15797 | ac_cv_func_working_mktime=no | |
15798 | else | |
15799 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15800 | /* end confdefs.h. */ | |
15801 | /* Test program from Paul Eggert and Tony Leneis. */ | |
15802 | #include <limits.h> | |
15803 | #include <stdlib.h> | |
15804 | #include <time.h> | |
15805 | ||
15806 | #ifdef HAVE_UNISTD_H | |
15807 | # include <unistd.h> | |
15808 | #endif | |
15809 | ||
15810 | #ifndef HAVE_ALARM | |
15811 | # define alarm(X) /* empty */ | |
15812 | #endif | |
15813 | ||
15814 | /* Work around redefinition to rpl_putenv by other config tests. */ | |
15815 | #undef putenv | |
15816 | ||
15817 | static time_t time_t_max; | |
15818 | static time_t time_t_min; | |
15819 | ||
15820 | /* Values we'll use to set the TZ environment variable. */ | |
15821 | static char *tz_strings[] = { | |
15822 | (char *) 0, "TZ=GMT0", "TZ=JST-9", | |
15823 | "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" | |
15824 | }; | |
15825 | #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) | |
15826 | ||
15827 | /* Return 0 if mktime fails to convert a date in the spring-forward gap. | |
15828 | Based on a problem report from Andreas Jaeger. */ | |
15829 | static int | |
15830 | spring_forward_gap () | |
15831 | { | |
15832 | /* glibc (up to about 1998-10-07) failed this test. */ | |
15833 | struct tm tm; | |
15834 | ||
15835 | /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" | |
15836 | instead of "TZ=America/Vancouver" in order to detect the bug even | |
15837 | on systems that don't support the Olson extension, or don't have the | |
15838 | full zoneinfo tables installed. */ | |
15839 | putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); | |
15840 | ||
15841 | tm.tm_year = 98; | |
15842 | tm.tm_mon = 3; | |
15843 | tm.tm_mday = 5; | |
15844 | tm.tm_hour = 2; | |
15845 | tm.tm_min = 0; | |
15846 | tm.tm_sec = 0; | |
15847 | tm.tm_isdst = -1; | |
15848 | return mktime (&tm) != (time_t) -1; | |
15849 | } | |
15850 | ||
15851 | static int | |
15852 | mktime_test1 (time_t now) | |
15853 | { | |
15854 | struct tm *lt; | |
15855 | return ! (lt = localtime (&now)) || mktime (lt) == now; | |
15856 | } | |
15857 | ||
15858 | static int | |
15859 | mktime_test (time_t now) | |
15860 | { | |
15861 | return (mktime_test1 (now) | |
15862 | && mktime_test1 ((time_t) (time_t_max - now)) | |
15863 | && mktime_test1 ((time_t) (time_t_min + now))); | |
15864 | } | |
15865 | ||
15866 | static int | |
15867 | irix_6_4_bug () | |
15868 | { | |
15869 | /* Based on code from Ariel Faigon. */ | |
15870 | struct tm tm; | |
15871 | tm.tm_year = 96; | |
15872 | tm.tm_mon = 3; | |
15873 | tm.tm_mday = 0; | |
15874 | tm.tm_hour = 0; | |
15875 | tm.tm_min = 0; | |
15876 | tm.tm_sec = 0; | |
15877 | tm.tm_isdst = -1; | |
15878 | mktime (&tm); | |
15879 | return tm.tm_mon == 2 && tm.tm_mday == 31; | |
15880 | } | |
15881 | ||
15882 | static int | |
15883 | bigtime_test (int j) | |
15884 | { | |
15885 | struct tm tm; | |
15886 | time_t now; | |
15887 | tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; | |
15888 | now = mktime (&tm); | |
15889 | if (now != (time_t) -1) | |
15890 | { | |
15891 | struct tm *lt = localtime (&now); | |
15892 | if (! (lt | |
15893 | && lt->tm_year == tm.tm_year | |
15894 | && lt->tm_mon == tm.tm_mon | |
15895 | && lt->tm_mday == tm.tm_mday | |
15896 | && lt->tm_hour == tm.tm_hour | |
15897 | && lt->tm_min == tm.tm_min | |
15898 | && lt->tm_sec == tm.tm_sec | |
15899 | && lt->tm_yday == tm.tm_yday | |
15900 | && lt->tm_wday == tm.tm_wday | |
15901 | && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) | |
15902 | == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) | |
15903 | return 0; | |
15904 | } | |
15905 | return 1; | |
15906 | } | |
15907 | ||
15908 | static int | |
15909 | year_2050_test () | |
15910 | { | |
15911 | /* The correct answer for 2050-02-01 00:00:00 in Pacific time, | |
15912 | ignoring leap seconds. */ | |
15913 | unsigned long int answer = 2527315200UL; | |
15914 | ||
15915 | struct tm tm; | |
15916 | time_t t; | |
15917 | tm.tm_year = 2050 - 1900; | |
15918 | tm.tm_mon = 2 - 1; | |
15919 | tm.tm_mday = 1; | |
15920 | tm.tm_hour = tm.tm_min = tm.tm_sec = 0; | |
15921 | tm.tm_isdst = -1; | |
15922 | ||
15923 | /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" | |
15924 | instead of "TZ=America/Vancouver" in order to detect the bug even | |
15925 | on systems that don't support the Olson extension, or don't have the | |
15926 | full zoneinfo tables installed. */ | |
15927 | putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); | |
15928 | ||
15929 | t = mktime (&tm); | |
15930 | ||
15931 | /* Check that the result is either a failure, or close enough | |
15932 | to the correct answer that we can assume the discrepancy is | |
15933 | due to leap seconds. */ | |
15934 | return (t == (time_t) -1 | |
15935 | || (0 < t && answer - 120 <= t && t <= answer + 120)); | |
15936 | } | |
15937 | ||
15938 | int | |
15939 | main () | |
15940 | { | |
15941 | int result = 0; | |
15942 | time_t t, delta; | |
15943 | int i, j; | |
3de84ad9 PE |
15944 | int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1; |
15945 | int time_t_signed = ! ((time_t) 0 < (time_t) -1); | |
1fd182f0 PE |
15946 | |
15947 | /* This test makes some buggy mktime implementations loop. | |
15948 | Give up after 60 seconds; a mktime slower than that | |
15949 | isn't worth using anyway. */ | |
15950 | alarm (60); | |
15951 | ||
3de84ad9 PE |
15952 | time_t_max = (! time_t_signed |
15953 | ? (time_t) -1 | |
15954 | : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1) | |
15955 | * 2 + 1)); | |
15956 | time_t_min = (! time_t_signed | |
15957 | ? (time_t) 0 | |
15958 | : time_t_signed_magnitude | |
15959 | ? ~ (time_t) 0 | |
15960 | : ~ time_t_max); | |
1fd182f0 PE |
15961 | |
15962 | delta = time_t_max / 997; /* a suitable prime number */ | |
15963 | for (i = 0; i < N_STRINGS; i++) | |
15964 | { | |
15965 | if (tz_strings[i]) | |
15966 | putenv (tz_strings[i]); | |
15967 | ||
15968 | for (t = 0; t <= time_t_max - delta; t += delta) | |
15969 | if (! mktime_test (t)) | |
15970 | result |= 1; | |
15971 | if (! (mktime_test ((time_t) 1) | |
15972 | && mktime_test ((time_t) (60 * 60)) | |
15973 | && mktime_test ((time_t) (60 * 60 * 24)))) | |
15974 | result |= 2; | |
15975 | ||
15976 | for (j = 1; ; j <<= 1) | |
15977 | if (! bigtime_test (j)) | |
15978 | result |= 4; | |
15979 | else if (INT_MAX / 2 < j) | |
15980 | break; | |
15981 | if (! bigtime_test (INT_MAX)) | |
15982 | result |= 8; | |
15983 | } | |
15984 | if (! irix_6_4_bug ()) | |
15985 | result |= 16; | |
15986 | if (! spring_forward_gap ()) | |
15987 | result |= 32; | |
15988 | if (! year_2050_test ()) | |
15989 | result |= 64; | |
15990 | return result; | |
15991 | } | |
15992 | _ACEOF | |
15993 | if ac_fn_c_try_run "$LINENO"; then : | |
15994 | ac_cv_func_working_mktime=yes | |
15995 | else | |
15996 | ac_cv_func_working_mktime=no | |
15997 | fi | |
15998 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
15999 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
067d23c9 | 16000 | fi |
067d23c9 | 16001 | |
1fd182f0 PE |
16002 | fi |
16003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5 | |
16004 | $as_echo "$ac_cv_func_working_mktime" >&6; } | |
16005 | if test $ac_cv_func_working_mktime = no; then | |
067d23c9 | 16006 | |
067d23c9 | 16007 | |
067d23c9 KY |
16008 | |
16009 | ||
067d23c9 | 16010 | |
067d23c9 KY |
16011 | |
16012 | ||
16013 | ||
1fd182f0 | 16014 | gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext" |
067d23c9 | 16015 | |
1fd182f0 | 16016 | fi |
067d23c9 | 16017 | |
1fd182f0 PE |
16018 | if test $ac_cv_func_working_mktime = no; then |
16019 | REPLACE_MKTIME=1 | |
067d23c9 KY |
16020 | |
16021 | ||
16022 | ||
1fd182f0 PE |
16023 | else |
16024 | REPLACE_MKTIME=0 | |
16025 | fi | |
067d23c9 KY |
16026 | |
16027 | ||
16028 | ||
067d23c9 | 16029 | |
1fd182f0 | 16030 | GNULIB_MKTIME=1 |
067d23c9 KY |
16031 | |
16032 | ||
16033 | ||
1fd182f0 | 16034 | # Code from module multiarch: |
067d23c9 | 16035 | |
16c3e636 PE |
16036 | # Code from module stdbool: |
16037 | ||
16038 | ||
16039 | ||
16040 | # Define two additional variables used in the Makefile substitution. | |
16041 | ||
16042 | if test "$ac_cv_header_stdbool_h" = yes; then | |
16043 | STDBOOL_H='' | |
16044 | else | |
16045 | STDBOOL_H='stdbool.h' | |
16046 | fi | |
16047 | ||
16048 | ||
16049 | if test "$ac_cv_type__Bool" = yes; then | |
16050 | HAVE__BOOL=1 | |
16051 | else | |
16052 | HAVE__BOOL=0 | |
16053 | fi | |
16054 | ||
16055 | ||
1fd182f0 | 16056 | # Code from module stddef: |
067d23c9 | 16057 | |
067d23c9 | 16058 | |
067d23c9 | 16059 | |
1fd182f0 PE |
16060 | if test $gt_cv_c_wchar_t = no; then |
16061 | HAVE_WCHAR_T=0 | |
16062 | STDDEF_H=stddef.h | |
067d23c9 | 16063 | fi |
1fd182f0 PE |
16064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5 |
16065 | $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; } | |
d6974efa | 16066 | if ${gl_cv_decl_null_works+:} false; then : |
067d23c9 | 16067 | $as_echo_n "(cached) " >&6 |
067d23c9 KY |
16068 | else |
16069 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16070 | /* end confdefs.h. */ | |
1fd182f0 PE |
16071 | #include <stddef.h> |
16072 | int test[2 * (sizeof NULL == sizeof (void *)) -1]; | |
16073 | ||
067d23c9 KY |
16074 | int |
16075 | main () | |
16076 | { | |
16077 | ||
067d23c9 KY |
16078 | ; |
16079 | return 0; | |
16080 | } | |
16081 | _ACEOF | |
1fd182f0 PE |
16082 | if ac_fn_c_try_compile "$LINENO"; then : |
16083 | gl_cv_decl_null_works=yes | |
067d23c9 | 16084 | else |
1fd182f0 | 16085 | gl_cv_decl_null_works=no |
067d23c9 | 16086 | fi |
1fd182f0 | 16087 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
067d23c9 | 16088 | fi |
1fd182f0 PE |
16089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5 |
16090 | $as_echo "$gl_cv_decl_null_works" >&6; } | |
16091 | if test $gl_cv_decl_null_works = no; then | |
16092 | REPLACE_NULL=1 | |
16093 | STDDEF_H=stddef.h | |
16094 | fi | |
16095 | if test -n "$STDDEF_H"; then | |
16096 | ||
16097 | ||
16098 | ||
16099 | ||
16100 | ||
16101 | ||
b06b1098 PE |
16102 | |
16103 | ||
1fd182f0 PE |
16104 | if test $gl_cv_have_include_next = yes; then |
16105 | gl_cv_next_stddef_h='<'stddef.h'>' | |
16106 | else | |
16107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5 | |
16108 | $as_echo_n "checking absolute name of <stddef.h>... " >&6; } | |
d6974efa | 16109 | if ${gl_cv_next_stddef_h+:} false; then : |
1fd182f0 PE |
16110 | $as_echo_n "(cached) " >&6 |
16111 | else | |
16112 | ||
b06b1098 | 16113 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1fd182f0 PE |
16114 | /* end confdefs.h. */ |
16115 | #include <stddef.h> | |
16116 | ||
16117 | _ACEOF | |
b06b1098 PE |
16118 | case "$host_os" in |
16119 | aix*) gl_absname_cpp="$ac_cpp -C" ;; | |
16120 | *) gl_absname_cpp="$ac_cpp" ;; | |
16121 | esac | |
16122 | gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | | |
16123 | sed -n '\#/stddef.h#{ | |
16124 | s#.*"\(.*/stddef.h\)".*#\1# | |
16125 | s#^/[^/]#//&# | |
16126 | p | |
16127 | q | |
16128 | }'`'"' | |
16129 | ||
067d23c9 KY |
16130 | |
16131 | fi | |
1fd182f0 PE |
16132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5 |
16133 | $as_echo "$gl_cv_next_stddef_h" >&6; } | |
16134 | fi | |
16135 | NEXT_STDDEF_H=$gl_cv_next_stddef_h | |
16136 | ||
16137 | if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then | |
16138 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' | |
16139 | gl_next_as_first_directive='<'stddef.h'>' | |
16140 | else | |
16141 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' | |
16142 | gl_next_as_first_directive=$gl_cv_next_stddef_h | |
16143 | fi | |
16144 | NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive | |
16145 | ||
16146 | ||
16147 | ||
b06b1098 | 16148 | |
067d23c9 KY |
16149 | fi |
16150 | ||
5f90be1b PE |
16151 | # Code from module stdint: |
16152 | ||
16153 | ||
16154 | ||
16155 | if test $ac_cv_type_long_long_int = yes; then | |
16156 | HAVE_LONG_LONG_INT=1 | |
16157 | else | |
16158 | HAVE_LONG_LONG_INT=0 | |
16159 | fi | |
16160 | ||
16161 | ||
16162 | if test $ac_cv_type_unsigned_long_long_int = yes; then | |
16163 | HAVE_UNSIGNED_LONG_LONG_INT=1 | |
16164 | else | |
16165 | HAVE_UNSIGNED_LONG_LONG_INT=0 | |
16166 | fi | |
16167 | ||
16168 | ||
16169 | ||
16170 | if test $ac_cv_header_wchar_h = yes; then | |
16171 | HAVE_WCHAR_H=1 | |
16172 | else | |
16173 | HAVE_WCHAR_H=0 | |
16174 | fi | |
16175 | ||
16176 | ||
16177 | if test $ac_cv_header_inttypes_h = yes; then | |
16178 | HAVE_INTTYPES_H=1 | |
16179 | else | |
16180 | HAVE_INTTYPES_H=0 | |
16181 | fi | |
16182 | ||
16183 | ||
16184 | if test $ac_cv_header_sys_types_h = yes; then | |
16185 | HAVE_SYS_TYPES_H=1 | |
16186 | else | |
16187 | HAVE_SYS_TYPES_H=0 | |
16188 | fi | |
16189 | ||
16190 | ||
16191 | ||
16192 | ||
16193 | ||
16194 | ||
16195 | ||
16196 | ||
16197 | ||
16198 | ||
16199 | ||
16200 | if test $gl_cv_have_include_next = yes; then | |
16201 | gl_cv_next_stdint_h='<'stdint.h'>' | |
16202 | else | |
16203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5 | |
16204 | $as_echo_n "checking absolute name of <stdint.h>... " >&6; } | |
16205 | if ${gl_cv_next_stdint_h+:} false; then : | |
16206 | $as_echo_n "(cached) " >&6 | |
16207 | else | |
16208 | ||
16209 | if test $ac_cv_header_stdint_h = yes; then | |
16210 | ||
16211 | ||
16212 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16213 | /* end confdefs.h. */ | |
16214 | #include <stdint.h> | |
16215 | ||
16216 | _ACEOF | |
16217 | case "$host_os" in | |
16218 | aix*) gl_absname_cpp="$ac_cpp -C" ;; | |
16219 | *) gl_absname_cpp="$ac_cpp" ;; | |
16220 | esac | |
16221 | gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | | |
16222 | sed -n '\#/stdint.h#{ | |
16223 | s#.*"\(.*/stdint.h\)".*#\1# | |
16224 | s#^/[^/]#//&# | |
16225 | p | |
16226 | q | |
16227 | }'`'"' | |
16228 | else | |
16229 | gl_cv_next_stdint_h='<'stdint.h'>' | |
16230 | fi | |
16231 | ||
16232 | ||
16233 | fi | |
16234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5 | |
16235 | $as_echo "$gl_cv_next_stdint_h" >&6; } | |
16236 | fi | |
16237 | NEXT_STDINT_H=$gl_cv_next_stdint_h | |
16238 | ||
16239 | if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then | |
16240 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' | |
16241 | gl_next_as_first_directive='<'stdint.h'>' | |
16242 | else | |
16243 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' | |
16244 | gl_next_as_first_directive=$gl_cv_next_stdint_h | |
16245 | fi | |
16246 | NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive | |
16247 | ||
16248 | ||
16249 | ||
16250 | ||
16251 | if test $ac_cv_header_stdint_h = yes; then | |
16252 | HAVE_STDINT_H=1 | |
16253 | else | |
16254 | HAVE_STDINT_H=0 | |
16255 | fi | |
16256 | ||
16257 | ||
16258 | if test $ac_cv_header_stdint_h = yes; then | |
16259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5 | |
16260 | $as_echo_n "checking whether stdint.h conforms to C99... " >&6; } | |
16261 | if ${gl_cv_header_working_stdint_h+:} false; then : | |
16262 | $as_echo_n "(cached) " >&6 | |
16263 | else | |
16264 | gl_cv_header_working_stdint_h=no | |
16265 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16266 | /* end confdefs.h. */ | |
16267 | ||
16268 | ||
16269 | #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */ | |
16270 | #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */ | |
16271 | #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ | |
16272 | #include <stdint.h> | |
16273 | /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */ | |
16274 | #if !(defined WCHAR_MIN && defined WCHAR_MAX) | |
16275 | #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>" | |
16276 | #endif | |
16277 | ||
16278 | ||
16279 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | |
16280 | included before <wchar.h>. */ | |
16281 | #include <stddef.h> | |
16282 | #include <signal.h> | |
16283 | #if HAVE_WCHAR_H | |
16284 | # include <stdio.h> | |
16285 | # include <time.h> | |
16286 | # include <wchar.h> | |
16287 | #endif | |
16288 | ||
16289 | ||
16290 | #ifdef INT8_MAX | |
16291 | int8_t a1 = INT8_MAX; | |
16292 | int8_t a1min = INT8_MIN; | |
16293 | #endif | |
16294 | #ifdef INT16_MAX | |
16295 | int16_t a2 = INT16_MAX; | |
16296 | int16_t a2min = INT16_MIN; | |
16297 | #endif | |
16298 | #ifdef INT32_MAX | |
16299 | int32_t a3 = INT32_MAX; | |
16300 | int32_t a3min = INT32_MIN; | |
16301 | #endif | |
16302 | #ifdef INT64_MAX | |
16303 | int64_t a4 = INT64_MAX; | |
16304 | int64_t a4min = INT64_MIN; | |
16305 | #endif | |
16306 | #ifdef UINT8_MAX | |
16307 | uint8_t b1 = UINT8_MAX; | |
16308 | #else | |
16309 | typedef int b1[(unsigned char) -1 != 255 ? 1 : -1]; | |
16310 | #endif | |
16311 | #ifdef UINT16_MAX | |
16312 | uint16_t b2 = UINT16_MAX; | |
16313 | #endif | |
16314 | #ifdef UINT32_MAX | |
16315 | uint32_t b3 = UINT32_MAX; | |
16316 | #endif | |
16317 | #ifdef UINT64_MAX | |
16318 | uint64_t b4 = UINT64_MAX; | |
16319 | #endif | |
16320 | int_least8_t c1 = INT8_C (0x7f); | |
16321 | int_least8_t c1max = INT_LEAST8_MAX; | |
16322 | int_least8_t c1min = INT_LEAST8_MIN; | |
16323 | int_least16_t c2 = INT16_C (0x7fff); | |
16324 | int_least16_t c2max = INT_LEAST16_MAX; | |
16325 | int_least16_t c2min = INT_LEAST16_MIN; | |
16326 | int_least32_t c3 = INT32_C (0x7fffffff); | |
16327 | int_least32_t c3max = INT_LEAST32_MAX; | |
16328 | int_least32_t c3min = INT_LEAST32_MIN; | |
16329 | int_least64_t c4 = INT64_C (0x7fffffffffffffff); | |
16330 | int_least64_t c4max = INT_LEAST64_MAX; | |
16331 | int_least64_t c4min = INT_LEAST64_MIN; | |
16332 | uint_least8_t d1 = UINT8_C (0xff); | |
16333 | uint_least8_t d1max = UINT_LEAST8_MAX; | |
16334 | uint_least16_t d2 = UINT16_C (0xffff); | |
16335 | uint_least16_t d2max = UINT_LEAST16_MAX; | |
16336 | uint_least32_t d3 = UINT32_C (0xffffffff); | |
16337 | uint_least32_t d3max = UINT_LEAST32_MAX; | |
16338 | uint_least64_t d4 = UINT64_C (0xffffffffffffffff); | |
16339 | uint_least64_t d4max = UINT_LEAST64_MAX; | |
16340 | int_fast8_t e1 = INT_FAST8_MAX; | |
16341 | int_fast8_t e1min = INT_FAST8_MIN; | |
16342 | int_fast16_t e2 = INT_FAST16_MAX; | |
16343 | int_fast16_t e2min = INT_FAST16_MIN; | |
16344 | int_fast32_t e3 = INT_FAST32_MAX; | |
16345 | int_fast32_t e3min = INT_FAST32_MIN; | |
16346 | int_fast64_t e4 = INT_FAST64_MAX; | |
16347 | int_fast64_t e4min = INT_FAST64_MIN; | |
16348 | uint_fast8_t f1 = UINT_FAST8_MAX; | |
16349 | uint_fast16_t f2 = UINT_FAST16_MAX; | |
16350 | uint_fast32_t f3 = UINT_FAST32_MAX; | |
16351 | uint_fast64_t f4 = UINT_FAST64_MAX; | |
16352 | #ifdef INTPTR_MAX | |
16353 | intptr_t g = INTPTR_MAX; | |
16354 | intptr_t gmin = INTPTR_MIN; | |
16355 | #endif | |
16356 | #ifdef UINTPTR_MAX | |
16357 | uintptr_t h = UINTPTR_MAX; | |
16358 | #endif | |
16359 | intmax_t i = INTMAX_MAX; | |
16360 | uintmax_t j = UINTMAX_MAX; | |
16361 | ||
16362 | #include <limits.h> /* for CHAR_BIT */ | |
16363 | #define TYPE_MINIMUM(t) \ | |
16364 | ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t))) | |
16365 | #define TYPE_MAXIMUM(t) \ | |
16366 | ((t) ((t) 0 < (t) -1 \ | |
16367 | ? (t) -1 \ | |
16368 | : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1))) | |
16369 | struct s { | |
16370 | int check_PTRDIFF: | |
16371 | PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t) | |
16372 | && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t) | |
16373 | ? 1 : -1; | |
16374 | /* Detect bug in FreeBSD 6.0 / ia64. */ | |
16375 | int check_SIG_ATOMIC: | |
16376 | SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t) | |
16377 | && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t) | |
16378 | ? 1 : -1; | |
16379 | int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1; | |
16380 | int check_WCHAR: | |
16381 | WCHAR_MIN == TYPE_MINIMUM (wchar_t) | |
16382 | && WCHAR_MAX == TYPE_MAXIMUM (wchar_t) | |
16383 | ? 1 : -1; | |
16384 | /* Detect bug in mingw. */ | |
16385 | int check_WINT: | |
16386 | WINT_MIN == TYPE_MINIMUM (wint_t) | |
16387 | && WINT_MAX == TYPE_MAXIMUM (wint_t) | |
16388 | ? 1 : -1; | |
16389 | ||
16390 | /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */ | |
16391 | int check_UINT8_C: | |
16392 | (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1; | |
16393 | int check_UINT16_C: | |
16394 | (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1; | |
16395 | ||
16396 | /* Detect bugs in OpenBSD 3.9 stdint.h. */ | |
16397 | #ifdef UINT8_MAX | |
16398 | int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1; | |
16399 | #endif | |
16400 | #ifdef UINT16_MAX | |
16401 | int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1; | |
16402 | #endif | |
16403 | #ifdef UINT32_MAX | |
16404 | int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1; | |
16405 | #endif | |
16406 | #ifdef UINT64_MAX | |
16407 | int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1; | |
16408 | #endif | |
16409 | int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1; | |
16410 | int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1; | |
16411 | int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1; | |
16412 | int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1; | |
16413 | int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1; | |
16414 | int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1; | |
16415 | int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1; | |
16416 | int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1; | |
16417 | int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1; | |
16418 | int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1; | |
16419 | int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1; | |
16420 | }; | |
16421 | ||
16422 | int | |
16423 | main () | |
16424 | { | |
16425 | ||
16426 | ; | |
16427 | return 0; | |
16428 | } | |
16429 | _ACEOF | |
16430 | if ac_fn_c_try_compile "$LINENO"; then : | |
16431 | if test "$cross_compiling" = yes; then : | |
16432 | gl_cv_header_working_stdint_h=yes | |
16433 | ||
16434 | else | |
16435 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16436 | /* end confdefs.h. */ | |
16437 | ||
16438 | ||
16439 | #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */ | |
16440 | #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */ | |
16441 | #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ | |
16442 | #include <stdint.h> | |
16443 | ||
16444 | ||
16445 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | |
16446 | included before <wchar.h>. */ | |
16447 | #include <stddef.h> | |
16448 | #include <signal.h> | |
16449 | #if HAVE_WCHAR_H | |
16450 | # include <stdio.h> | |
16451 | # include <time.h> | |
16452 | # include <wchar.h> | |
16453 | #endif | |
16454 | ||
16455 | ||
16456 | #include <stdio.h> | |
16457 | #include <string.h> | |
16458 | #define MVAL(macro) MVAL1(macro) | |
16459 | #define MVAL1(expression) #expression | |
16460 | static const char *macro_values[] = | |
16461 | { | |
16462 | #ifdef INT8_MAX | |
16463 | MVAL (INT8_MAX), | |
16464 | #endif | |
16465 | #ifdef INT16_MAX | |
16466 | MVAL (INT16_MAX), | |
16467 | #endif | |
16468 | #ifdef INT32_MAX | |
16469 | MVAL (INT32_MAX), | |
16470 | #endif | |
16471 | #ifdef INT64_MAX | |
16472 | MVAL (INT64_MAX), | |
16473 | #endif | |
16474 | #ifdef UINT8_MAX | |
16475 | MVAL (UINT8_MAX), | |
16476 | #endif | |
16477 | #ifdef UINT16_MAX | |
16478 | MVAL (UINT16_MAX), | |
16479 | #endif | |
16480 | #ifdef UINT32_MAX | |
16481 | MVAL (UINT32_MAX), | |
16482 | #endif | |
16483 | #ifdef UINT64_MAX | |
16484 | MVAL (UINT64_MAX), | |
16485 | #endif | |
16486 | NULL | |
16487 | }; | |
16488 | ||
16489 | int | |
16490 | main () | |
16491 | { | |
16492 | ||
16493 | const char **mv; | |
16494 | for (mv = macro_values; *mv != NULL; mv++) | |
16495 | { | |
16496 | const char *value = *mv; | |
16497 | /* Test whether it looks like a cast expression. */ | |
16498 | if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0 | |
16499 | || strncmp (value, "((unsigned short)"/*)*/, 17) == 0 | |
16500 | || strncmp (value, "((unsigned char)"/*)*/, 16) == 0 | |
16501 | || strncmp (value, "((int)"/*)*/, 6) == 0 | |
16502 | || strncmp (value, "((signed short)"/*)*/, 15) == 0 | |
16503 | || strncmp (value, "((signed char)"/*)*/, 14) == 0) | |
16504 | return mv - macro_values + 1; | |
16505 | } | |
16506 | return 0; | |
16507 | ||
16508 | ; | |
16509 | return 0; | |
16510 | } | |
16511 | _ACEOF | |
16512 | if ac_fn_c_try_run "$LINENO"; then : | |
16513 | gl_cv_header_working_stdint_h=yes | |
16514 | fi | |
16515 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
16516 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
16517 | fi | |
16518 | ||
16519 | ||
16520 | fi | |
16521 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16522 | ||
16523 | fi | |
16524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5 | |
16525 | $as_echo "$gl_cv_header_working_stdint_h" >&6; } | |
16526 | fi | |
16527 | if test "$gl_cv_header_working_stdint_h" = yes; then | |
16528 | STDINT_H= | |
16529 | else | |
16530 | for ac_header in sys/inttypes.h sys/bitypes.h | |
16531 | do : | |
16532 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16533 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
16534 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
16535 | cat >>confdefs.h <<_ACEOF | |
16536 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16537 | _ACEOF | |
16538 | ||
16539 | fi | |
16540 | ||
16541 | done | |
16542 | ||
16543 | if test $ac_cv_header_sys_inttypes_h = yes; then | |
16544 | HAVE_SYS_INTTYPES_H=1 | |
16545 | else | |
16546 | HAVE_SYS_INTTYPES_H=0 | |
16547 | fi | |
16548 | ||
16549 | if test $ac_cv_header_sys_bitypes_h = yes; then | |
16550 | HAVE_SYS_BITYPES_H=1 | |
16551 | else | |
16552 | HAVE_SYS_BITYPES_H=0 | |
16553 | fi | |
16554 | ||
16555 | ||
16556 | ||
16557 | ||
16558 | if test $APPLE_UNIVERSAL_BUILD = 0; then | |
16559 | ||
16560 | ||
16561 | for gltype in ptrdiff_t size_t ; do | |
16562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5 | |
16563 | $as_echo_n "checking for bit size of $gltype... " >&6; } | |
16564 | if eval \${gl_cv_bitsizeof_${gltype}+:} false; then : | |
16565 | $as_echo_n "(cached) " >&6 | |
16566 | else | |
16567 | if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" " | |
16568 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | |
16569 | included before <wchar.h>. */ | |
16570 | #include <stddef.h> | |
16571 | #include <signal.h> | |
16572 | #if HAVE_WCHAR_H | |
16573 | # include <stdio.h> | |
16574 | # include <time.h> | |
16575 | # include <wchar.h> | |
16576 | #endif | |
16577 | ||
16578 | #include <limits.h>"; then : | |
16579 | ||
16580 | else | |
16581 | result=unknown | |
16582 | fi | |
16583 | ||
16584 | eval gl_cv_bitsizeof_${gltype}=\$result | |
16585 | ||
16586 | fi | |
16587 | eval ac_res=\$gl_cv_bitsizeof_${gltype} | |
16588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
16589 | $as_echo "$ac_res" >&6; } | |
16590 | eval result=\$gl_cv_bitsizeof_${gltype} | |
16591 | if test $result = unknown; then | |
16592 | result=0 | |
16593 | fi | |
16594 | GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` | |
16595 | cat >>confdefs.h <<_ACEOF | |
16596 | #define BITSIZEOF_${GLTYPE} $result | |
16597 | _ACEOF | |
16598 | ||
16599 | eval BITSIZEOF_${GLTYPE}=\$result | |
16600 | done | |
16601 | ||
16602 | ||
16603 | fi | |
16604 | ||
16605 | ||
16606 | for gltype in sig_atomic_t wchar_t wint_t ; do | |
16607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5 | |
16608 | $as_echo_n "checking for bit size of $gltype... " >&6; } | |
16609 | if eval \${gl_cv_bitsizeof_${gltype}+:} false; then : | |
16610 | $as_echo_n "(cached) " >&6 | |
16611 | else | |
16612 | if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" " | |
16613 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | |
16614 | included before <wchar.h>. */ | |
16615 | #include <stddef.h> | |
16616 | #include <signal.h> | |
16617 | #if HAVE_WCHAR_H | |
16618 | # include <stdio.h> | |
16619 | # include <time.h> | |
16620 | # include <wchar.h> | |
16621 | #endif | |
16622 | ||
16623 | #include <limits.h>"; then : | |
16624 | ||
16625 | else | |
16626 | result=unknown | |
16627 | fi | |
16628 | ||
16629 | eval gl_cv_bitsizeof_${gltype}=\$result | |
16630 | ||
16631 | fi | |
16632 | eval ac_res=\$gl_cv_bitsizeof_${gltype} | |
16633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
16634 | $as_echo "$ac_res" >&6; } | |
16635 | eval result=\$gl_cv_bitsizeof_${gltype} | |
16636 | if test $result = unknown; then | |
16637 | result=0 | |
16638 | fi | |
16639 | GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` | |
16640 | cat >>confdefs.h <<_ACEOF | |
16641 | #define BITSIZEOF_${GLTYPE} $result | |
16642 | _ACEOF | |
16643 | ||
16644 | eval BITSIZEOF_${GLTYPE}=\$result | |
16645 | done | |
16646 | ||
16647 | ||
16648 | ||
16649 | ||
16650 | for gltype in sig_atomic_t wchar_t wint_t ; do | |
16651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5 | |
16652 | $as_echo_n "checking whether $gltype is signed... " >&6; } | |
16653 | if eval \${gl_cv_type_${gltype}_signed+:} false; then : | |
16654 | $as_echo_n "(cached) " >&6 | |
16655 | else | |
16656 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16657 | /* end confdefs.h. */ | |
16658 | ||
16659 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | |
16660 | included before <wchar.h>. */ | |
16661 | #include <stddef.h> | |
16662 | #include <signal.h> | |
16663 | #if HAVE_WCHAR_H | |
16664 | # include <stdio.h> | |
16665 | # include <time.h> | |
16666 | # include <wchar.h> | |
16667 | #endif | |
16668 | ||
16669 | int verify[2 * (($gltype) -1 < ($gltype) 0) - 1]; | |
16670 | int | |
16671 | main () | |
16672 | { | |
16673 | ||
16674 | ; | |
16675 | return 0; | |
16676 | } | |
16677 | _ACEOF | |
16678 | if ac_fn_c_try_compile "$LINENO"; then : | |
16679 | result=yes | |
16680 | else | |
16681 | result=no | |
16682 | fi | |
16683 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16684 | eval gl_cv_type_${gltype}_signed=\$result | |
16685 | ||
16686 | fi | |
16687 | eval ac_res=\$gl_cv_type_${gltype}_signed | |
16688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
16689 | $as_echo "$ac_res" >&6; } | |
16690 | eval result=\$gl_cv_type_${gltype}_signed | |
16691 | GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` | |
16692 | if test "$result" = yes; then | |
16693 | cat >>confdefs.h <<_ACEOF | |
16694 | #define HAVE_SIGNED_${GLTYPE} 1 | |
16695 | _ACEOF | |
16696 | ||
16697 | eval HAVE_SIGNED_${GLTYPE}=1 | |
16698 | else | |
16699 | eval HAVE_SIGNED_${GLTYPE}=0 | |
16700 | fi | |
16701 | done | |
16702 | ||
16703 | ||
16704 | gl_cv_type_ptrdiff_t_signed=yes | |
16705 | gl_cv_type_size_t_signed=no | |
16706 | if test $APPLE_UNIVERSAL_BUILD = 0; then | |
16707 | ||
16708 | ||
16709 | for gltype in ptrdiff_t size_t ; do | |
16710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5 | |
16711 | $as_echo_n "checking for $gltype integer literal suffix... " >&6; } | |
16712 | if eval \${gl_cv_type_${gltype}_suffix+:} false; then : | |
16713 | $as_echo_n "(cached) " >&6 | |
16714 | else | |
16715 | eval gl_cv_type_${gltype}_suffix=no | |
16716 | eval result=\$gl_cv_type_${gltype}_signed | |
16717 | if test "$result" = yes; then | |
16718 | glsufu= | |
16719 | else | |
16720 | glsufu=u | |
16721 | fi | |
16722 | for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do | |
16723 | case $glsuf in | |
16724 | '') gltype1='int';; | |
16725 | l) gltype1='long int';; | |
16726 | ll) gltype1='long long int';; | |
16727 | i64) gltype1='__int64';; | |
16728 | u) gltype1='unsigned int';; | |
16729 | ul) gltype1='unsigned long int';; | |
16730 | ull) gltype1='unsigned long long int';; | |
16731 | ui64)gltype1='unsigned __int64';; | |
16732 | esac | |
16733 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16734 | /* end confdefs.h. */ | |
16735 | ||
16736 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | |
16737 | included before <wchar.h>. */ | |
16738 | #include <stddef.h> | |
16739 | #include <signal.h> | |
16740 | #if HAVE_WCHAR_H | |
16741 | # include <stdio.h> | |
16742 | # include <time.h> | |
16743 | # include <wchar.h> | |
16744 | #endif | |
16745 | ||
16746 | extern $gltype foo; | |
16747 | extern $gltype1 foo; | |
16748 | int | |
16749 | main () | |
16750 | { | |
16751 | ||
16752 | ; | |
16753 | return 0; | |
16754 | } | |
16755 | _ACEOF | |
16756 | if ac_fn_c_try_compile "$LINENO"; then : | |
16757 | eval gl_cv_type_${gltype}_suffix=\$glsuf | |
16758 | fi | |
16759 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16760 | eval result=\$gl_cv_type_${gltype}_suffix | |
16761 | test "$result" != no && break | |
16762 | done | |
16763 | fi | |
16764 | eval ac_res=\$gl_cv_type_${gltype}_suffix | |
16765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
16766 | $as_echo "$ac_res" >&6; } | |
16767 | GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` | |
16768 | eval result=\$gl_cv_type_${gltype}_suffix | |
16769 | test "$result" = no && result= | |
16770 | eval ${GLTYPE}_SUFFIX=\$result | |
16771 | cat >>confdefs.h <<_ACEOF | |
16772 | #define ${GLTYPE}_SUFFIX $result | |
16773 | _ACEOF | |
16774 | ||
16775 | done | |
16776 | ||
16777 | ||
16778 | fi | |
16779 | ||
16780 | ||
16781 | for gltype in sig_atomic_t wchar_t wint_t ; do | |
16782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5 | |
16783 | $as_echo_n "checking for $gltype integer literal suffix... " >&6; } | |
16784 | if eval \${gl_cv_type_${gltype}_suffix+:} false; then : | |
16785 | $as_echo_n "(cached) " >&6 | |
16786 | else | |
16787 | eval gl_cv_type_${gltype}_suffix=no | |
16788 | eval result=\$gl_cv_type_${gltype}_signed | |
16789 | if test "$result" = yes; then | |
16790 | glsufu= | |
16791 | else | |
16792 | glsufu=u | |
16793 | fi | |
16794 | for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do | |
16795 | case $glsuf in | |
16796 | '') gltype1='int';; | |
16797 | l) gltype1='long int';; | |
16798 | ll) gltype1='long long int';; | |
16799 | i64) gltype1='__int64';; | |
16800 | u) gltype1='unsigned int';; | |
16801 | ul) gltype1='unsigned long int';; | |
16802 | ull) gltype1='unsigned long long int';; | |
16803 | ui64)gltype1='unsigned __int64';; | |
16804 | esac | |
16805 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16806 | /* end confdefs.h. */ | |
16807 | ||
16808 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | |
16809 | included before <wchar.h>. */ | |
16810 | #include <stddef.h> | |
16811 | #include <signal.h> | |
16812 | #if HAVE_WCHAR_H | |
16813 | # include <stdio.h> | |
16814 | # include <time.h> | |
16815 | # include <wchar.h> | |
16816 | #endif | |
16817 | ||
16818 | extern $gltype foo; | |
16819 | extern $gltype1 foo; | |
16820 | int | |
16821 | main () | |
16822 | { | |
16823 | ||
16824 | ; | |
16825 | return 0; | |
16826 | } | |
16827 | _ACEOF | |
16828 | if ac_fn_c_try_compile "$LINENO"; then : | |
16829 | eval gl_cv_type_${gltype}_suffix=\$glsuf | |
16830 | fi | |
16831 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16832 | eval result=\$gl_cv_type_${gltype}_suffix | |
16833 | test "$result" != no && break | |
16834 | done | |
16835 | fi | |
16836 | eval ac_res=\$gl_cv_type_${gltype}_suffix | |
16837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
16838 | $as_echo "$ac_res" >&6; } | |
16839 | GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` | |
16840 | eval result=\$gl_cv_type_${gltype}_suffix | |
16841 | test "$result" = no && result= | |
16842 | eval ${GLTYPE}_SUFFIX=\$result | |
16843 | cat >>confdefs.h <<_ACEOF | |
16844 | #define ${GLTYPE}_SUFFIX $result | |
16845 | _ACEOF | |
16846 | ||
16847 | done | |
16848 | ||
16849 | ||
16850 | ||
16851 | STDINT_H=stdint.h | |
16852 | fi | |
16853 | ||
16854 | ||
1f5d53eb PE |
16855 | # Code from module stdlib: |
16856 | ||
16857 | ||
16858 | ||
16859 | ||
16860 | ||
16861 | ||
16862 | ||
16863 | ||
16864 | ||
16865 | ||
16866 | if test $gl_cv_have_include_next = yes; then | |
16867 | gl_cv_next_stdlib_h='<'stdlib.h'>' | |
16868 | else | |
16869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5 | |
16870 | $as_echo_n "checking absolute name of <stdlib.h>... " >&6; } | |
16871 | if ${gl_cv_next_stdlib_h+:} false; then : | |
16872 | $as_echo_n "(cached) " >&6 | |
16873 | else | |
16874 | ||
16875 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16876 | /* end confdefs.h. */ | |
16877 | #include <stdlib.h> | |
16878 | ||
16879 | _ACEOF | |
16880 | case "$host_os" in | |
16881 | aix*) gl_absname_cpp="$ac_cpp -C" ;; | |
16882 | *) gl_absname_cpp="$ac_cpp" ;; | |
16883 | esac | |
16884 | gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | | |
16885 | sed -n '\#/stdlib.h#{ | |
16886 | s#.*"\(.*/stdlib.h\)".*#\1# | |
16887 | s#^/[^/]#//&# | |
16888 | p | |
16889 | q | |
16890 | }'`'"' | |
16891 | ||
16892 | ||
16893 | fi | |
16894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5 | |
16895 | $as_echo "$gl_cv_next_stdlib_h" >&6; } | |
16896 | fi | |
16897 | NEXT_STDLIB_H=$gl_cv_next_stdlib_h | |
16898 | ||
16899 | if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then | |
16900 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' | |
16901 | gl_next_as_first_directive='<'stdlib.h'>' | |
16902 | else | |
16903 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' | |
16904 | gl_next_as_first_directive=$gl_cv_next_stdlib_h | |
16905 | fi | |
16906 | NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive | |
16907 | ||
16908 | ||
16909 | ||
16910 | ||
16911 | ||
16912 | ||
16913 | ||
16c3e636 PE |
16914 | # Code from module strftime: |
16915 | ||
16916 | ||
16917 | ||
16918 | ||
16919 | ||
16920 | ||
16921 | ||
16922 | ||
16923 | ||
16924 | ||
16925 | gl_LIBOBJS="$gl_LIBOBJS strftime.$ac_objext" | |
16926 | ||
16927 | ||
16928 | # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE. | |
16929 | ||
16930 | ||
16931 | ||
16932 | ||
16933 | ||
16934 | ||
16935 | ||
16936 | $as_echo "#define my_strftime nstrftime" >>confdefs.h | |
16937 | ||
16938 | ||
16939 | ||
5fa4ac76 PE |
16940 | # Code from module sys_stat: |
16941 | ||
16942 | ||
16943 | ||
16944 | ||
16945 | ||
16946 | ||
16947 | ||
16948 | ||
16949 | ||
16950 | ||
16951 | ||
16952 | ||
16953 | ||
16954 | ||
16955 | ||
16956 | ||
16957 | if test $gl_cv_have_include_next = yes; then | |
16958 | gl_cv_next_sys_stat_h='<'sys/stat.h'>' | |
16959 | else | |
16960 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5 | |
16961 | $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; } | |
16962 | if ${gl_cv_next_sys_stat_h+:} false; then : | |
16963 | $as_echo_n "(cached) " >&6 | |
16964 | else | |
16965 | ||
16966 | if test $ac_cv_header_sys_stat_h = yes; then | |
16967 | ||
16968 | ||
16969 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16970 | /* end confdefs.h. */ | |
16971 | #include <sys/stat.h> | |
16972 | ||
16973 | _ACEOF | |
16974 | case "$host_os" in | |
16975 | aix*) gl_absname_cpp="$ac_cpp -C" ;; | |
16976 | *) gl_absname_cpp="$ac_cpp" ;; | |
16977 | esac | |
16978 | gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | | |
16979 | sed -n '\#/sys/stat.h#{ | |
16980 | s#.*"\(.*/sys/stat.h\)".*#\1# | |
16981 | s#^/[^/]#//&# | |
16982 | p | |
16983 | q | |
16984 | }'`'"' | |
16985 | else | |
16986 | gl_cv_next_sys_stat_h='<'sys/stat.h'>' | |
16987 | fi | |
16988 | ||
16989 | ||
16990 | fi | |
16991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5 | |
16992 | $as_echo "$gl_cv_next_sys_stat_h" >&6; } | |
16993 | fi | |
16994 | NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h | |
16995 | ||
16996 | if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then | |
16997 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' | |
16998 | gl_next_as_first_directive='<'sys/stat.h'>' | |
16999 | else | |
17000 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' | |
17001 | gl_next_as_first_directive=$gl_cv_next_sys_stat_h | |
17002 | fi | |
17003 | NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive | |
17004 | ||
17005 | ||
17006 | ||
17007 | ||
17008 | ||
17009 | ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h> | |
17010 | #include <sys/stat.h> | |
17011 | " | |
17012 | if test "x$ac_cv_type_nlink_t" = xyes; then : | |
17013 | ||
17014 | else | |
17015 | ||
17016 | $as_echo "#define nlink_t int" >>confdefs.h | |
17017 | ||
17018 | fi | |
17019 | ||
17020 | ||
17021 | ||
17022 | ||
17023 | ||
1fd182f0 | 17024 | # Code from module time: |
067d23c9 KY |
17025 | |
17026 | ||
067d23c9 | 17027 | |
1fd182f0 | 17028 | # Code from module time_r: |
067d23c9 | 17029 | |
067d23c9 | 17030 | |
067d23c9 KY |
17031 | |
17032 | ||
17033 | ||
067d23c9 | 17034 | |
067d23c9 | 17035 | |
1fd182f0 PE |
17036 | if test $ac_cv_have_decl_localtime_r = no; then |
17037 | HAVE_DECL_LOCALTIME_R=0 | |
17038 | fi | |
067d23c9 KY |
17039 | |
17040 | ||
1fd182f0 PE |
17041 | if test $ac_cv_func_localtime_r = yes; then |
17042 | HAVE_LOCALTIME_R=1 | |
17043 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5 | |
17044 | $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; } | |
d6974efa | 17045 | if ${gl_cv_time_r_posix+:} false; then : |
067d23c9 KY |
17046 | $as_echo_n "(cached) " >&6 |
17047 | else | |
1fd182f0 | 17048 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
067d23c9 | 17049 | /* end confdefs.h. */ |
1fd182f0 | 17050 | #include <time.h> |
067d23c9 KY |
17051 | int |
17052 | main () | |
17053 | { | |
1fd182f0 PE |
17054 | /* We don't need to append 'restrict's to the argument types, |
17055 | even though the POSIX signature has the 'restrict's, | |
17056 | since C99 says they can't affect type compatibility. */ | |
17057 | struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r; | |
17058 | if (ptr) return 0; | |
17059 | /* Check the return type is a pointer. | |
17060 | On HP-UX 10 it is 'int'. */ | |
17061 | *localtime_r (0, 0); | |
067d23c9 KY |
17062 | ; |
17063 | return 0; | |
17064 | } | |
1fd182f0 | 17065 | |
067d23c9 KY |
17066 | _ACEOF |
17067 | if ac_fn_c_try_compile "$LINENO"; then : | |
1fd182f0 | 17068 | gl_cv_time_r_posix=yes |
067d23c9 | 17069 | else |
1fd182f0 | 17070 | gl_cv_time_r_posix=no |
067d23c9 KY |
17071 | fi |
17072 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17073 | ||
17074 | fi | |
1fd182f0 PE |
17075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5 |
17076 | $as_echo "$gl_cv_time_r_posix" >&6; } | |
17077 | if test $gl_cv_time_r_posix = yes; then | |
17078 | REPLACE_LOCALTIME_R=0 | |
17079 | else | |
17080 | REPLACE_LOCALTIME_R=1 | |
17081 | fi | |
17082 | else | |
17083 | HAVE_LOCALTIME_R=0 | |
17084 | fi | |
17085 | if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then | |
067d23c9 | 17086 | |
067d23c9 KY |
17087 | |
17088 | ||
743c80a7 | 17089 | |
a451f14b PE |
17090 | |
17091 | ||
17092 | ||
a451f14b | 17093 | |
1fd182f0 | 17094 | gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext" |
a451f14b | 17095 | |
a451f14b | 17096 | |
1fd182f0 | 17097 | : |
a451f14b PE |
17098 | |
17099 | fi | |
17100 | ||
17101 | ||
743c80a7 PE |
17102 | |
17103 | ||
1fd182f0 | 17104 | GNULIB_TIME_R=1 |
743c80a7 PE |
17105 | |
17106 | ||
17107 | ||
b06b1098 | 17108 | # Code from module unistd: |
a451f14b PE |
17109 | |
17110 | ||
17111 | ||
e275c824 PE |
17112 | |
17113 | ||
17114 | ||
17115 | ||
17116 | ||
17117 | ||
17118 | ||
17119 | ||
17120 | ||
17121 | ||
17122 | if test $gl_cv_have_include_next = yes; then | |
17123 | gl_cv_next_unistd_h='<'unistd.h'>' | |
17124 | else | |
17125 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5 | |
17126 | $as_echo_n "checking absolute name of <unistd.h>... " >&6; } | |
d6974efa | 17127 | if ${gl_cv_next_unistd_h+:} false; then : |
e275c824 PE |
17128 | $as_echo_n "(cached) " >&6 |
17129 | else | |
17130 | ||
b06b1098 PE |
17131 | if test $ac_cv_header_unistd_h = yes; then |
17132 | ||
17133 | ||
17134 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
e275c824 PE |
17135 | /* end confdefs.h. */ |
17136 | #include <unistd.h> | |
17137 | ||
17138 | _ACEOF | |
b06b1098 PE |
17139 | case "$host_os" in |
17140 | aix*) gl_absname_cpp="$ac_cpp -C" ;; | |
17141 | *) gl_absname_cpp="$ac_cpp" ;; | |
17142 | esac | |
17143 | gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | | |
17144 | sed -n '\#/unistd.h#{ | |
17145 | s#.*"\(.*/unistd.h\)".*#\1# | |
17146 | s#^/[^/]#//&# | |
17147 | p | |
17148 | q | |
17149 | }'`'"' | |
e275c824 | 17150 | else |
b06b1098 PE |
17151 | gl_cv_next_unistd_h='<'unistd.h'>' |
17152 | fi | |
17153 | ||
e275c824 PE |
17154 | |
17155 | fi | |
17156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5 | |
17157 | $as_echo "$gl_cv_next_unistd_h" >&6; } | |
17158 | fi | |
17159 | NEXT_UNISTD_H=$gl_cv_next_unistd_h | |
17160 | ||
17161 | if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then | |
17162 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' | |
17163 | gl_next_as_first_directive='<'unistd.h'>' | |
17164 | else | |
17165 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' | |
17166 | gl_next_as_first_directive=$gl_cv_next_unistd_h | |
17167 | fi | |
17168 | NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive | |
17169 | ||
17170 | ||
17171 | ||
17172 | ||
e275c824 PE |
17173 | if test $ac_cv_header_unistd_h = yes; then |
17174 | HAVE_UNISTD_H=1 | |
17175 | else | |
17176 | HAVE_UNISTD_H=0 | |
17177 | fi | |
17178 | ||
17179 | ||
17180 | ||
e275c824 | 17181 | |
1fd182f0 PE |
17182 | # Code from module warn-on-use: |
17183 | # End of code from modules | |
a451f14b | 17184 | |
a451f14b | 17185 | |
743c80a7 PE |
17186 | |
17187 | ||
17188 | ||
17189 | ||
17190 | ||
17191 | ||
17192 | ||
17193 | gltests_libdeps= | |
17194 | gltests_ltlibdeps= | |
17195 | ||
17196 | ||
17197 | ||
17198 | ||
17199 | ||
a451f14b PE |
17200 | |
17201 | ||
17202 | ||
17203 | ||
743c80a7 PE |
17204 | gl_source_base='tests' |
17205 | 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 | |
17206 | ||
17207 | gl_module_indicator_condition=$gltests_WITNESS | |
17208 | ||
17209 | ||
17210 | ||
17211 | ||
17212 | ||
17213 | ||
17214 | ||
17215 | ||
17216 | ||
17217 | LIBGNU_LIBDEPS="$gl_libdeps" | |
17218 | ||
17219 | LIBGNU_LTLIBDEPS="$gl_ltlibdeps" | |
17220 | ||
17221 | ||
17222 | ||
f68c809d PE |
17223 | # Emacs does not care about lstat's behavior on files whose names end in |
17224 | # trailing slashes, so it does not use the gnulib lstat module. | |
17225 | # However, Emacs does want the "#define lstat stat" in sys/stat.h | |
17226 | # when lstat does not exist, so it pretends to use the lstat module | |
17227 | # even though it implements only the lstat-checking part of that module. | |
17228 | ||
17229 | ||
17230 | ||
17231 | test $ac_cv_func_lstat = yes || HAVE_LSTAT=0 | |
17232 | ||
17233 | ||
17234 | ||
17235 | GNULIB_LSTAT=1 | |
17236 | ||
17237 | ||
17238 | ||
17239 | ||
067d23c9 KY |
17240 | # UNIX98 PTYs. |
17241 | for ac_func in grantpt | |
17242 | do : | |
17243 | ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt" | |
d6974efa | 17244 | if test "x$ac_cv_func_grantpt" = xyes; then : |
067d23c9 KY |
17245 | cat >>confdefs.h <<_ACEOF |
17246 | #define HAVE_GRANTPT 1 | |
17247 | _ACEOF | |
17248 | ||
17249 | fi | |
17250 | done | |
17251 | ||
17252 | ||
17253 | # PTY-related GNU extensions. | |
17254 | for ac_func in getpt | |
17255 | do : | |
17256 | ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt" | |
d6974efa | 17257 | if test "x$ac_cv_func_getpt" = xyes; then : |
067d23c9 KY |
17258 | cat >>confdefs.h <<_ACEOF |
17259 | #define HAVE_GETPT 1 | |
17260 | _ACEOF | |
17261 | ||
17262 | fi | |
17263 | done | |
17264 | ||
17265 | ||
17266 | # Check this now, so that we will NOT find the above functions in ncurses. | |
17267 | # That is because we have not set up to link ncurses in lib-src. | |
17268 | # It's better to believe a function is not available | |
17269 | # than to expect to find it in ncurses. | |
17270 | # Also we need tputs and friends to be able to build at all. | |
17271 | have_tputs_et_al=true | |
17272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5 | |
17273 | $as_echo_n "checking for library containing tputs... " >&6; } | |
d6974efa | 17274 | if ${ac_cv_search_tputs+:} false; then : |
067d23c9 KY |
17275 | $as_echo_n "(cached) " >&6 |
17276 | else | |
17277 | ac_func_search_save_LIBS=$LIBS | |
17278 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17279 | /* end confdefs.h. */ | |
17280 | ||
17281 | /* Override any GCC internal prototype to avoid an error. | |
17282 | Use char because int might match the return type of a GCC | |
17283 | builtin and then its argument prototype would still apply. */ | |
17284 | #ifdef __cplusplus | |
17285 | extern "C" | |
17286 | #endif | |
17287 | char tputs (); | |
17288 | int | |
17289 | main () | |
17290 | { | |
17291 | return tputs (); | |
17292 | ; | |
17293 | return 0; | |
17294 | } | |
17295 | _ACEOF | |
17296 | for ac_lib in '' ncurses terminfo termcap; do | |
17297 | if test -z "$ac_lib"; then | |
17298 | ac_res="none required" | |
17299 | else | |
17300 | ac_res=-l$ac_lib | |
17301 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
17302 | fi | |
17303 | if ac_fn_c_try_link "$LINENO"; then : | |
17304 | ac_cv_search_tputs=$ac_res | |
17305 | fi | |
17306 | rm -f core conftest.err conftest.$ac_objext \ | |
17307 | conftest$ac_exeext | |
d6974efa | 17308 | if ${ac_cv_search_tputs+:} false; then : |
067d23c9 KY |
17309 | break |
17310 | fi | |
17311 | done | |
d6974efa | 17312 | if ${ac_cv_search_tputs+:} false; then : |
067d23c9 KY |
17313 | |
17314 | else | |
17315 | ac_cv_search_tputs=no | |
17316 | fi | |
17317 | rm conftest.$ac_ext | |
17318 | LIBS=$ac_func_search_save_LIBS | |
17319 | fi | |
17320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5 | |
17321 | $as_echo "$ac_cv_search_tputs" >&6; } | |
17322 | ac_res=$ac_cv_search_tputs | |
17323 | if test "$ac_res" != no; then : | |
17324 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
17325 | ||
17326 | else | |
17327 | have_tputs_et_al=false | |
17328 | fi | |
17329 | ||
17330 | if test "$have_tputs_et_al" != true; then | |
2018939f | 17331 | as_fn_error $? "I couldn't find termcap functions (tputs and friends). |
067d23c9 KY |
17332 | Maybe some development libraries/packages are missing? Try installing |
17333 | libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5 | |
17334 | fi | |
17335 | # Must define this when any termcap library is found. | |
17336 | ||
17337 | $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h | |
17338 | ||
17339 | ## FIXME This was the cpp logic, but I am not sure it is right. | |
17340 | ## The above test has not necessarily found libncurses. | |
17341 | HAVE_LIBNCURSES=yes | |
17342 | ||
17343 | ## Use terminfo instead of termcap? | |
17344 | ## Note only system files NOT using terminfo are: | |
17345 | ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and | |
17346 | ## darwin|gnu without ncurses. | |
17347 | TERMINFO=no | |
17348 | LIBS_TERMCAP= | |
17349 | case "$opsys" in | |
17350 | ## cygwin: Fewer environment variables to go wrong, more terminal types. | |
17351 | ## hpux10-20: Use the system provided termcap(3) library. | |
17352 | ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this | |
17353 | ## is necessary. Otherwise Emacs dumps core when run -nw. | |
17354 | aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;; | |
17355 | ||
17356 | ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2. | |
17357 | ## The ncurses library has been moved out of the System framework in | |
17358 | ## Mac OS X 10.2. So if configure detects it, set the command-line | |
17359 | ## option to use it. | |
17360 | darwin|gnu*) | |
17361 | ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.) | |
17362 | if test "x$HAVE_LIBNCURSES" = "xyes"; then | |
17363 | TERMINFO=yes | |
17364 | LIBS_TERMCAP="-lncurses" | |
17365 | fi | |
17366 | ;; | |
17367 | ||
17368 | freebsd) | |
17369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5 | |
17370 | $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; } | |
d6974efa | 17371 | if ${emacs_cv_freebsd_terminfo+:} false; then : |
067d23c9 KY |
17372 | $as_echo_n "(cached) " >&6 |
17373 | else | |
17374 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17375 | /* end confdefs.h. */ | |
17376 | #include <osreldate.h> | |
17377 | int | |
17378 | main () | |
17379 | { | |
17380 | #if __FreeBSD_version < 400000 | |
17381 | fail; | |
17382 | #endif | |
17383 | ||
17384 | ; | |
17385 | return 0; | |
17386 | } | |
17387 | _ACEOF | |
17388 | if ac_fn_c_try_link "$LINENO"; then : | |
17389 | emacs_cv_freebsd_terminfo=yes | |
17390 | else | |
17391 | emacs_cv_freebsd_terminfo=no | |
17392 | fi | |
17393 | rm -f core conftest.err conftest.$ac_objext \ | |
17394 | conftest$ac_exeext conftest.$ac_ext | |
17395 | fi | |
17396 | ||
17397 | ||
17398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5 | |
17399 | $as_echo "$emacs_cv_freebsd_terminfo" >&6; } | |
17400 | ||
17401 | if test $emacs_cv_freebsd_terminfo = yes; then | |
17402 | TERMINFO=yes | |
17403 | LIBS_TERMCAP="-lncurses" | |
17404 | else | |
17405 | LIBS_TERMCAP="-ltermcap" | |
17406 | fi | |
17407 | ;; | |
17408 | ||
17409 | netbsd) | |
17410 | if test $ac_cv_search_tputs = -lterminfo; then | |
17411 | TERMINFO=yes | |
17412 | LIBS_TERMCAP="-lterminfo" | |
17413 | else | |
17414 | LIBS_TERMCAP="-ltermcap" | |
17415 | fi | |
17416 | ;; | |
17417 | ||
17418 | esac | |
17419 | ||
17420 | case "$opsys" in | |
17421 | ## hpux: Make sure we get select from libc rather than from libcurses | |
17422 | ## because libcurses on HPUX 10.10 has a broken version of select. | |
17423 | ## We used to use -lc -lcurses, but this may be cleaner. | |
17424 | hpux*) LIBS_TERMCAP="-ltermcap" ;; | |
17425 | ||
17426 | openbsd) LIBS_TERMCAP="-lncurses" ;; | |
17427 | ||
17428 | ## Must use system termcap, if we use any termcap. It does special things. | |
17429 | sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;; | |
17430 | esac | |
17431 | ||
17432 | TERMCAP_OBJ=tparam.o | |
17433 | if test $TERMINFO = yes; then | |
17434 | ||
17435 | $as_echo "#define TERMINFO 1" >>confdefs.h | |
17436 | ||
17437 | ||
17438 | ## Default used to be -ltermcap. Add a case above if need something else. | |
17439 | test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses" | |
17440 | ||
17441 | TERMCAP_OBJ=terminfo.o | |
17442 | fi | |
17443 | ||
17444 | ||
17445 | ||
17446 | ||
17447 | # Do we have res_init, for detecting changes in /etc/resolv.conf? | |
17448 | resolv=no | |
17449 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17450 | /* end confdefs.h. */ | |
17451 | #include <netinet/in.h> | |
17452 | #include <arpa/nameser.h> | |
17453 | #include <resolv.h> | |
17454 | int | |
17455 | main () | |
17456 | { | |
17457 | return res_init(); | |
17458 | ; | |
17459 | return 0; | |
17460 | } | |
17461 | _ACEOF | |
17462 | if ac_fn_c_try_link "$LINENO"; then : | |
17463 | have_res_init=yes | |
17464 | else | |
17465 | have_res_init=no | |
17466 | fi | |
17467 | rm -f core conftest.err conftest.$ac_objext \ | |
17468 | conftest$ac_exeext conftest.$ac_ext | |
17469 | if test "$have_res_init" = no; then | |
17470 | OLIBS="$LIBS" | |
17471 | LIBS="$LIBS -lresolv" | |
17472 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5 | |
17473 | $as_echo_n "checking for res_init with -lresolv... " >&6; } | |
17474 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17475 | /* end confdefs.h. */ | |
17476 | #include <netinet/in.h> | |
17477 | #include <arpa/nameser.h> | |
17478 | #include <resolv.h> | |
17479 | int | |
17480 | main () | |
17481 | { | |
17482 | return res_init(); | |
17483 | ; | |
17484 | return 0; | |
17485 | } | |
17486 | _ACEOF | |
17487 | if ac_fn_c_try_link "$LINENO"; then : | |
17488 | have_res_init=yes | |
17489 | else | |
17490 | have_res_init=no | |
17491 | fi | |
17492 | rm -f core conftest.err conftest.$ac_objext \ | |
17493 | conftest$ac_exeext conftest.$ac_ext | |
17494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5 | |
17495 | $as_echo "$have_res_init" >&6; } | |
17496 | if test "$have_res_init" = yes ; then | |
17497 | resolv=yes | |
17498 | fi | |
17499 | LIBS="$OLIBS" | |
17500 | fi | |
17501 | ||
17502 | if test "$have_res_init" = yes; then | |
17503 | ||
17504 | $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h | |
17505 | ||
17506 | fi | |
17507 | ||
17508 | # Do we need the Hesiod library to provide the support routines? | |
17509 | LIBHESIOD= | |
17510 | if test "$with_hesiod" != no ; then | |
17511 | # Don't set $LIBS here -- see comments above. FIXME which comments? | |
17512 | ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send" | |
d6974efa | 17513 | if test "x$ac_cv_func_res_send" = xyes; then : |
067d23c9 KY |
17514 | |
17515 | else | |
17516 | ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send" | |
d6974efa | 17517 | if test "x$ac_cv_func___res_send" = xyes; then : |
067d23c9 KY |
17518 | |
17519 | else | |
17520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5 | |
17521 | $as_echo_n "checking for res_send in -lresolv... " >&6; } | |
d6974efa | 17522 | if ${ac_cv_lib_resolv_res_send+:} false; then : |
067d23c9 KY |
17523 | $as_echo_n "(cached) " >&6 |
17524 | else | |
17525 | ac_check_lib_save_LIBS=$LIBS | |
17526 | LIBS="-lresolv $LIBS" | |
17527 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17528 | /* end confdefs.h. */ | |
17529 | ||
17530 | /* Override any GCC internal prototype to avoid an error. | |
17531 | Use char because int might match the return type of a GCC | |
17532 | builtin and then its argument prototype would still apply. */ | |
17533 | #ifdef __cplusplus | |
17534 | extern "C" | |
17535 | #endif | |
17536 | char res_send (); | |
17537 | int | |
17538 | main () | |
17539 | { | |
17540 | return res_send (); | |
17541 | ; | |
17542 | return 0; | |
17543 | } | |
17544 | _ACEOF | |
17545 | if ac_fn_c_try_link "$LINENO"; then : | |
17546 | ac_cv_lib_resolv_res_send=yes | |
17547 | else | |
17548 | ac_cv_lib_resolv_res_send=no | |
17549 | fi | |
17550 | rm -f core conftest.err conftest.$ac_objext \ | |
17551 | conftest$ac_exeext conftest.$ac_ext | |
17552 | LIBS=$ac_check_lib_save_LIBS | |
17553 | fi | |
17554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5 | |
17555 | $as_echo "$ac_cv_lib_resolv_res_send" >&6; } | |
d6974efa | 17556 | if test "x$ac_cv_lib_resolv_res_send" = xyes; then : |
067d23c9 KY |
17557 | resolv=yes |
17558 | else | |
17559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5 | |
17560 | $as_echo_n "checking for __res_send in -lresolv... " >&6; } | |
d6974efa | 17561 | if ${ac_cv_lib_resolv___res_send+:} false; then : |
067d23c9 KY |
17562 | $as_echo_n "(cached) " >&6 |
17563 | else | |
17564 | ac_check_lib_save_LIBS=$LIBS | |
17565 | LIBS="-lresolv $LIBS" | |
17566 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17567 | /* end confdefs.h. */ | |
17568 | ||
17569 | /* Override any GCC internal prototype to avoid an error. | |
17570 | Use char because int might match the return type of a GCC | |
17571 | builtin and then its argument prototype would still apply. */ | |
17572 | #ifdef __cplusplus | |
17573 | extern "C" | |
17574 | #endif | |
17575 | char __res_send (); | |
17576 | int | |
17577 | main () | |
17578 | { | |
17579 | return __res_send (); | |
17580 | ; | |
17581 | return 0; | |
17582 | } | |
17583 | _ACEOF | |
17584 | if ac_fn_c_try_link "$LINENO"; then : | |
17585 | ac_cv_lib_resolv___res_send=yes | |
17586 | else | |
17587 | ac_cv_lib_resolv___res_send=no | |
17588 | fi | |
17589 | rm -f core conftest.err conftest.$ac_objext \ | |
17590 | conftest$ac_exeext conftest.$ac_ext | |
17591 | LIBS=$ac_check_lib_save_LIBS | |
17592 | fi | |
17593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5 | |
17594 | $as_echo "$ac_cv_lib_resolv___res_send" >&6; } | |
d6974efa | 17595 | if test "x$ac_cv_lib_resolv___res_send" = xyes; then : |
067d23c9 KY |
17596 | resolv=yes |
17597 | fi | |
17598 | ||
17599 | fi | |
17600 | ||
17601 | fi | |
17602 | ||
17603 | fi | |
17604 | ||
17605 | if test "$resolv" = yes ; then | |
17606 | RESOLVLIB=-lresolv | |
17607 | else | |
17608 | RESOLVLIB= | |
17609 | fi | |
17610 | ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost" | |
d6974efa | 17611 | if test "x$ac_cv_func_hes_getmailhost" = xyes; then : |
067d23c9 KY |
17612 | |
17613 | else | |
17614 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5 | |
17615 | $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; } | |
d6974efa | 17616 | if ${ac_cv_lib_hesiod_hes_getmailhost+:} false; then : |
067d23c9 KY |
17617 | $as_echo_n "(cached) " >&6 |
17618 | else | |
17619 | ac_check_lib_save_LIBS=$LIBS | |
17620 | LIBS="-lhesiod $RESOLVLIB $LIBS" | |
17621 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17622 | /* end confdefs.h. */ | |
17623 | ||
17624 | /* Override any GCC internal prototype to avoid an error. | |
17625 | Use char because int might match the return type of a GCC | |
17626 | builtin and then its argument prototype would still apply. */ | |
17627 | #ifdef __cplusplus | |
17628 | extern "C" | |
17629 | #endif | |
17630 | char hes_getmailhost (); | |
17631 | int | |
17632 | main () | |
17633 | { | |
17634 | return hes_getmailhost (); | |
17635 | ; | |
17636 | return 0; | |
17637 | } | |
17638 | _ACEOF | |
17639 | if ac_fn_c_try_link "$LINENO"; then : | |
17640 | ac_cv_lib_hesiod_hes_getmailhost=yes | |
17641 | else | |
17642 | ac_cv_lib_hesiod_hes_getmailhost=no | |
17643 | fi | |
17644 | rm -f core conftest.err conftest.$ac_objext \ | |
17645 | conftest$ac_exeext conftest.$ac_ext | |
17646 | LIBS=$ac_check_lib_save_LIBS | |
17647 | fi | |
17648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5 | |
17649 | $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; } | |
d6974efa | 17650 | if test "x$ac_cv_lib_hesiod_hes_getmailhost" = xyes; then : |
067d23c9 KY |
17651 | hesiod=yes |
17652 | else | |
17653 | : | |
17654 | fi | |
17655 | ||
17656 | fi | |
17657 | ||
17658 | ||
17659 | if test x"$hesiod" = xyes; then | |
17660 | ||
17661 | $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h | |
17662 | ||
17663 | LIBHESIOD=-lhesiod | |
17664 | fi | |
17665 | fi | |
17666 | ||
17667 | ||
17668 | # Do we need libresolv (due to res_init or Hesiod)? | |
17669 | if test "$resolv" = yes ; then | |
17670 | ||
17671 | $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h | |
17672 | ||
17673 | LIBRESOLV=-lresolv | |
17674 | else | |
17675 | LIBRESOLV= | |
17676 | fi | |
17677 | ||
17678 | ||
17679 | # These tell us which Kerberos-related libraries to use. | |
17680 | COM_ERRLIB= | |
17681 | CRYPTOLIB= | |
17682 | KRB5LIB= | |
17683 | DESLIB= | |
17684 | KRB4LIB= | |
17685 | ||
17686 | if test "${with_kerberos}" != no; then | |
17687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5 | |
17688 | $as_echo_n "checking for com_err in -lcom_err... " >&6; } | |
d6974efa | 17689 | if ${ac_cv_lib_com_err_com_err+:} false; then : |
067d23c9 KY |
17690 | $as_echo_n "(cached) " >&6 |
17691 | else | |
17692 | ac_check_lib_save_LIBS=$LIBS | |
17693 | LIBS="-lcom_err $LIBS" | |
17694 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17695 | /* end confdefs.h. */ | |
17696 | ||
17697 | /* Override any GCC internal prototype to avoid an error. | |
17698 | Use char because int might match the return type of a GCC | |
17699 | builtin and then its argument prototype would still apply. */ | |
17700 | #ifdef __cplusplus | |
17701 | extern "C" | |
17702 | #endif | |
17703 | char com_err (); | |
17704 | int | |
17705 | main () | |
17706 | { | |
17707 | return com_err (); | |
17708 | ; | |
17709 | return 0; | |
17710 | } | |
17711 | _ACEOF | |
17712 | if ac_fn_c_try_link "$LINENO"; then : | |
17713 | ac_cv_lib_com_err_com_err=yes | |
17714 | else | |
17715 | ac_cv_lib_com_err_com_err=no | |
17716 | fi | |
17717 | rm -f core conftest.err conftest.$ac_objext \ | |
17718 | conftest$ac_exeext conftest.$ac_ext | |
17719 | LIBS=$ac_check_lib_save_LIBS | |
17720 | fi | |
17721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5 | |
17722 | $as_echo "$ac_cv_lib_com_err_com_err" >&6; } | |
d6974efa | 17723 | if test "x$ac_cv_lib_com_err_com_err" = xyes; then : |
067d23c9 KY |
17724 | have_com_err=yes |
17725 | else | |
17726 | have_com_err=no | |
17727 | fi | |
17728 | ||
17729 | if test $have_com_err = yes; then | |
17730 | COM_ERRLIB=-lcom_err | |
17731 | LIBS="$COM_ERRLIB $LIBS" | |
17732 | ||
17733 | $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h | |
17734 | ||
17735 | fi | |
17736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5 | |
17737 | $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; } | |
d6974efa | 17738 | if ${ac_cv_lib_crypto_mit_des_cbc_encrypt+:} false; then : |
067d23c9 KY |
17739 | $as_echo_n "(cached) " >&6 |
17740 | else | |
17741 | ac_check_lib_save_LIBS=$LIBS | |
17742 | LIBS="-lcrypto $LIBS" | |
17743 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17744 | /* end confdefs.h. */ | |
17745 | ||
17746 | /* Override any GCC internal prototype to avoid an error. | |
17747 | Use char because int might match the return type of a GCC | |
17748 | builtin and then its argument prototype would still apply. */ | |
17749 | #ifdef __cplusplus | |
17750 | extern "C" | |
17751 | #endif | |
17752 | char mit_des_cbc_encrypt (); | |
17753 | int | |
17754 | main () | |
17755 | { | |
17756 | return mit_des_cbc_encrypt (); | |
17757 | ; | |
17758 | return 0; | |
17759 | } | |
17760 | _ACEOF | |
17761 | if ac_fn_c_try_link "$LINENO"; then : | |
17762 | ac_cv_lib_crypto_mit_des_cbc_encrypt=yes | |
17763 | else | |
17764 | ac_cv_lib_crypto_mit_des_cbc_encrypt=no | |
17765 | fi | |
17766 | rm -f core conftest.err conftest.$ac_objext \ | |
17767 | conftest$ac_exeext conftest.$ac_ext | |
17768 | LIBS=$ac_check_lib_save_LIBS | |
17769 | fi | |
17770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5 | |
17771 | $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; } | |
d6974efa | 17772 | if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = xyes; then : |
067d23c9 KY |
17773 | have_crypto=yes |
17774 | else | |
17775 | have_crypto=no | |
17776 | fi | |
17777 | ||
17778 | if test $have_crypto = yes; then | |
17779 | CRYPTOLIB=-lcrypto | |
17780 | LIBS="$CRYPTOLIB $LIBS" | |
17781 | ||
17782 | $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h | |
17783 | ||
17784 | fi | |
17785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 | |
17786 | $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; } | |
d6974efa | 17787 | if ${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+:} false; then : |
067d23c9 KY |
17788 | $as_echo_n "(cached) " >&6 |
17789 | else | |
17790 | ac_check_lib_save_LIBS=$LIBS | |
17791 | LIBS="-lk5crypto $LIBS" | |
17792 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17793 | /* end confdefs.h. */ | |
17794 | ||
17795 | /* Override any GCC internal prototype to avoid an error. | |
17796 | Use char because int might match the return type of a GCC | |
17797 | builtin and then its argument prototype would still apply. */ | |
17798 | #ifdef __cplusplus | |
17799 | extern "C" | |
17800 | #endif | |
17801 | char mit_des_cbc_encrypt (); | |
17802 | int | |
17803 | main () | |
17804 | { | |
17805 | return mit_des_cbc_encrypt (); | |
17806 | ; | |
17807 | return 0; | |
17808 | } | |
17809 | _ACEOF | |
17810 | if ac_fn_c_try_link "$LINENO"; then : | |
17811 | ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes | |
17812 | else | |
17813 | ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no | |
17814 | fi | |
17815 | rm -f core conftest.err conftest.$ac_objext \ | |
17816 | conftest$ac_exeext conftest.$ac_ext | |
17817 | LIBS=$ac_check_lib_save_LIBS | |
17818 | fi | |
17819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5 | |
17820 | $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; } | |
d6974efa | 17821 | if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = xyes; then : |
067d23c9 KY |
17822 | have_k5crypto=yes |
17823 | else | |
17824 | have_k5crypto=no | |
17825 | fi | |
17826 | ||
17827 | if test $have_k5crypto = yes; then | |
17828 | CRYPTOLIB=-lk5crypto | |
17829 | LIBS="$CRYPTOLIB $LIBS" | |
17830 | ||
17831 | $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h | |
17832 | ||
17833 | fi | |
17834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5 | |
17835 | $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; } | |
d6974efa | 17836 | if ${ac_cv_lib_krb5_krb5_init_context+:} false; then : |
067d23c9 KY |
17837 | $as_echo_n "(cached) " >&6 |
17838 | else | |
17839 | ac_check_lib_save_LIBS=$LIBS | |
17840 | LIBS="-lkrb5 $LIBS" | |
17841 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17842 | /* end confdefs.h. */ | |
17843 | ||
17844 | /* Override any GCC internal prototype to avoid an error. | |
17845 | Use char because int might match the return type of a GCC | |
17846 | builtin and then its argument prototype would still apply. */ | |
17847 | #ifdef __cplusplus | |
17848 | extern "C" | |
17849 | #endif | |
17850 | char krb5_init_context (); | |
17851 | int | |
17852 | main () | |
17853 | { | |
17854 | return krb5_init_context (); | |
17855 | ; | |
17856 | return 0; | |
17857 | } | |
17858 | _ACEOF | |
17859 | if ac_fn_c_try_link "$LINENO"; then : | |
17860 | ac_cv_lib_krb5_krb5_init_context=yes | |
17861 | else | |
17862 | ac_cv_lib_krb5_krb5_init_context=no | |
17863 | fi | |
17864 | rm -f core conftest.err conftest.$ac_objext \ | |
17865 | conftest$ac_exeext conftest.$ac_ext | |
17866 | LIBS=$ac_check_lib_save_LIBS | |
17867 | fi | |
17868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5 | |
17869 | $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; } | |
d6974efa | 17870 | if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then : |
067d23c9 KY |
17871 | have_krb5=yes |
17872 | else | |
17873 | have_krb5=no | |
17874 | fi | |
17875 | ||
17876 | if test $have_krb5=yes; then | |
17877 | KRB5LIB=-lkrb5 | |
17878 | LIBS="$KRB5LIB $LIBS" | |
17879 | ||
17880 | $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h | |
17881 | ||
17882 | fi | |
17883 | if test "${with_kerberos5}" = no; then | |
17884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5 | |
17885 | $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; } | |
d6974efa | 17886 | if ${ac_cv_lib_des425_des_cbc_encrypt+:} false; then : |
067d23c9 KY |
17887 | $as_echo_n "(cached) " >&6 |
17888 | else | |
17889 | ac_check_lib_save_LIBS=$LIBS | |
17890 | LIBS="-ldes425 $LIBS" | |
17891 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17892 | /* end confdefs.h. */ | |
17893 | ||
17894 | /* Override any GCC internal prototype to avoid an error. | |
17895 | Use char because int might match the return type of a GCC | |
17896 | builtin and then its argument prototype would still apply. */ | |
17897 | #ifdef __cplusplus | |
17898 | extern "C" | |
17899 | #endif | |
17900 | char des_cbc_encrypt (); | |
17901 | int | |
17902 | main () | |
17903 | { | |
17904 | return des_cbc_encrypt (); | |
17905 | ; | |
17906 | return 0; | |
17907 | } | |
17908 | _ACEOF | |
17909 | if ac_fn_c_try_link "$LINENO"; then : | |
17910 | ac_cv_lib_des425_des_cbc_encrypt=yes | |
17911 | else | |
17912 | ac_cv_lib_des425_des_cbc_encrypt=no | |
17913 | fi | |
17914 | rm -f core conftest.err conftest.$ac_objext \ | |
17915 | conftest$ac_exeext conftest.$ac_ext | |
17916 | LIBS=$ac_check_lib_save_LIBS | |
17917 | fi | |
17918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5 | |
17919 | $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; } | |
d6974efa | 17920 | if test "x$ac_cv_lib_des425_des_cbc_encrypt" = xyes; then : |
067d23c9 KY |
17921 | have_des425=yes |
17922 | else | |
17923 | have_des425=no | |
17924 | fi | |
17925 | ||
17926 | if test $have_des425 = yes; then | |
17927 | DESLIB=-ldes425 | |
17928 | LIBS="$DESLIB $LIBS" | |
17929 | ||
17930 | $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h | |
17931 | ||
17932 | else | |
17933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5 | |
17934 | $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; } | |
d6974efa | 17935 | if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then : |
067d23c9 KY |
17936 | $as_echo_n "(cached) " >&6 |
17937 | else | |
17938 | ac_check_lib_save_LIBS=$LIBS | |
17939 | LIBS="-ldes $LIBS" | |
17940 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17941 | /* end confdefs.h. */ | |
17942 | ||
17943 | /* Override any GCC internal prototype to avoid an error. | |
17944 | Use char because int might match the return type of a GCC | |
17945 | builtin and then its argument prototype would still apply. */ | |
17946 | #ifdef __cplusplus | |
17947 | extern "C" | |
17948 | #endif | |
17949 | char des_cbc_encrypt (); | |
17950 | int | |
17951 | main () | |
17952 | { | |
17953 | return des_cbc_encrypt (); | |
17954 | ; | |
17955 | return 0; | |
17956 | } | |
17957 | _ACEOF | |
17958 | if ac_fn_c_try_link "$LINENO"; then : | |
17959 | ac_cv_lib_des_des_cbc_encrypt=yes | |
17960 | else | |
17961 | ac_cv_lib_des_des_cbc_encrypt=no | |
17962 | fi | |
17963 | rm -f core conftest.err conftest.$ac_objext \ | |
17964 | conftest$ac_exeext conftest.$ac_ext | |
17965 | LIBS=$ac_check_lib_save_LIBS | |
17966 | fi | |
17967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 | |
17968 | $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; } | |
d6974efa | 17969 | if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then : |
067d23c9 KY |
17970 | have_des=yes |
17971 | else | |
17972 | have_des=no | |
17973 | fi | |
17974 | ||
17975 | if test $have_des = yes; then | |
17976 | DESLIB=-ldes | |
17977 | LIBS="$DESLIB $LIBS" | |
17978 | ||
17979 | $as_echo "#define HAVE_LIBDES 1" >>confdefs.h | |
17980 | ||
17981 | fi | |
17982 | fi | |
17983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5 | |
17984 | $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; } | |
d6974efa | 17985 | if ${ac_cv_lib_krb4_krb_get_cred+:} false; then : |
067d23c9 KY |
17986 | $as_echo_n "(cached) " >&6 |
17987 | else | |
17988 | ac_check_lib_save_LIBS=$LIBS | |
17989 | LIBS="-lkrb4 $LIBS" | |
17990 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17991 | /* end confdefs.h. */ | |
17992 | ||
17993 | /* Override any GCC internal prototype to avoid an error. | |
17994 | Use char because int might match the return type of a GCC | |
17995 | builtin and then its argument prototype would still apply. */ | |
17996 | #ifdef __cplusplus | |
17997 | extern "C" | |
17998 | #endif | |
17999 | char krb_get_cred (); | |
18000 | int | |
18001 | main () | |
18002 | { | |
18003 | return krb_get_cred (); | |
18004 | ; | |
18005 | return 0; | |
18006 | } | |
18007 | _ACEOF | |
18008 | if ac_fn_c_try_link "$LINENO"; then : | |
18009 | ac_cv_lib_krb4_krb_get_cred=yes | |
18010 | else | |
18011 | ac_cv_lib_krb4_krb_get_cred=no | |
18012 | fi | |
18013 | rm -f core conftest.err conftest.$ac_objext \ | |
18014 | conftest$ac_exeext conftest.$ac_ext | |
18015 | LIBS=$ac_check_lib_save_LIBS | |
18016 | fi | |
18017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5 | |
18018 | $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; } | |
d6974efa | 18019 | if test "x$ac_cv_lib_krb4_krb_get_cred" = xyes; then : |
067d23c9 KY |
18020 | have_krb4=yes |
18021 | else | |
18022 | have_krb4=no | |
18023 | fi | |
18024 | ||
18025 | if test $have_krb4 = yes; then | |
18026 | KRB4LIB=-lkrb4 | |
18027 | LIBS="$KRB4LIB $LIBS" | |
18028 | ||
18029 | $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h | |
18030 | ||
18031 | else | |
18032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5 | |
18033 | $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; } | |
d6974efa | 18034 | if ${ac_cv_lib_krb_krb_get_cred+:} false; then : |
067d23c9 KY |
18035 | $as_echo_n "(cached) " >&6 |
18036 | else | |
18037 | ac_check_lib_save_LIBS=$LIBS | |
18038 | LIBS="-lkrb $LIBS" | |
18039 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18040 | /* end confdefs.h. */ | |
18041 | ||
18042 | /* Override any GCC internal prototype to avoid an error. | |
18043 | Use char because int might match the return type of a GCC | |
18044 | builtin and then its argument prototype would still apply. */ | |
18045 | #ifdef __cplusplus | |
18046 | extern "C" | |
18047 | #endif | |
18048 | char krb_get_cred (); | |
18049 | int | |
18050 | main () | |
18051 | { | |
18052 | return krb_get_cred (); | |
18053 | ; | |
18054 | return 0; | |
18055 | } | |
18056 | _ACEOF | |
18057 | if ac_fn_c_try_link "$LINENO"; then : | |
18058 | ac_cv_lib_krb_krb_get_cred=yes | |
18059 | else | |
18060 | ac_cv_lib_krb_krb_get_cred=no | |
18061 | fi | |
18062 | rm -f core conftest.err conftest.$ac_objext \ | |
18063 | conftest$ac_exeext conftest.$ac_ext | |
18064 | LIBS=$ac_check_lib_save_LIBS | |
18065 | fi | |
18066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5 | |
18067 | $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; } | |
d6974efa | 18068 | if test "x$ac_cv_lib_krb_krb_get_cred" = xyes; then : |
067d23c9 KY |
18069 | have_krb=yes |
18070 | else | |
18071 | have_krb=no | |
18072 | fi | |
18073 | ||
18074 | if test $have_krb = yes; then | |
18075 | KRB4LIB=-lkrb | |
18076 | LIBS="$KRB4LIB $LIBS" | |
18077 | ||
18078 | $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h | |
18079 | ||
18080 | fi | |
18081 | fi | |
18082 | fi | |
18083 | ||
18084 | if test "${with_kerberos5}" != no; then | |
18085 | for ac_header in krb5.h | |
18086 | do : | |
18087 | ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default" | |
d6974efa | 18088 | if test "x$ac_cv_header_krb5_h" = xyes; then : |
067d23c9 KY |
18089 | cat >>confdefs.h <<_ACEOF |
18090 | #define HAVE_KRB5_H 1 | |
18091 | _ACEOF | |
18092 | ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h> | |
18093 | " | |
d6974efa | 18094 | if test "x$ac_cv_member_krb5_error_text" = xyes; then : |
067d23c9 KY |
18095 | |
18096 | cat >>confdefs.h <<_ACEOF | |
18097 | #define HAVE_KRB5_ERROR_TEXT 1 | |
18098 | _ACEOF | |
18099 | ||
18100 | ||
18101 | fi | |
18102 | ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h> | |
18103 | " | |
d6974efa | 18104 | if test "x$ac_cv_member_krb5_error_e_text" = xyes; then : |
067d23c9 KY |
18105 | |
18106 | cat >>confdefs.h <<_ACEOF | |
18107 | #define HAVE_KRB5_ERROR_E_TEXT 1 | |
18108 | _ACEOF | |
18109 | ||
18110 | ||
18111 | fi | |
18112 | ||
18113 | fi | |
18114 | ||
18115 | done | |
18116 | ||
18117 | else | |
18118 | for ac_header in des.h | |
18119 | do : | |
18120 | ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default" | |
d6974efa | 18121 | if test "x$ac_cv_header_des_h" = xyes; then : |
067d23c9 KY |
18122 | cat >>confdefs.h <<_ACEOF |
18123 | #define HAVE_DES_H 1 | |
18124 | _ACEOF | |
18125 | ||
18126 | else | |
18127 | for ac_header in kerberosIV/des.h | |
18128 | do : | |
18129 | ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default" | |
d6974efa | 18130 | if test "x$ac_cv_header_kerberosIV_des_h" = xyes; then : |
067d23c9 KY |
18131 | cat >>confdefs.h <<_ACEOF |
18132 | #define HAVE_KERBEROSIV_DES_H 1 | |
18133 | _ACEOF | |
18134 | ||
18135 | else | |
18136 | for ac_header in kerberos/des.h | |
18137 | do : | |
18138 | ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default" | |
d6974efa | 18139 | if test "x$ac_cv_header_kerberos_des_h" = xyes; then : |
067d23c9 KY |
18140 | cat >>confdefs.h <<_ACEOF |
18141 | #define HAVE_KERBEROS_DES_H 1 | |
18142 | _ACEOF | |
18143 | ||
18144 | fi | |
18145 | ||
18146 | done | |
18147 | ||
18148 | fi | |
18149 | ||
18150 | done | |
18151 | ||
18152 | fi | |
18153 | ||
18154 | done | |
18155 | ||
18156 | for ac_header in krb.h | |
18157 | do : | |
18158 | ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default" | |
d6974efa | 18159 | if test "x$ac_cv_header_krb_h" = xyes; then : |
067d23c9 KY |
18160 | cat >>confdefs.h <<_ACEOF |
18161 | #define HAVE_KRB_H 1 | |
18162 | _ACEOF | |
18163 | ||
18164 | else | |
18165 | for ac_header in kerberosIV/krb.h | |
18166 | do : | |
18167 | ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default" | |
d6974efa | 18168 | if test "x$ac_cv_header_kerberosIV_krb_h" = xyes; then : |
067d23c9 KY |
18169 | cat >>confdefs.h <<_ACEOF |
18170 | #define HAVE_KERBEROSIV_KRB_H 1 | |
18171 | _ACEOF | |
18172 | ||
18173 | else | |
18174 | for ac_header in kerberos/krb.h | |
18175 | do : | |
18176 | ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default" | |
d6974efa | 18177 | if test "x$ac_cv_header_kerberos_krb_h" = xyes; then : |
067d23c9 KY |
18178 | cat >>confdefs.h <<_ACEOF |
18179 | #define HAVE_KERBEROS_KRB_H 1 | |
18180 | _ACEOF | |
18181 | ||
18182 | fi | |
18183 | ||
18184 | done | |
18185 | ||
18186 | fi | |
18187 | ||
18188 | done | |
18189 | ||
18190 | fi | |
18191 | ||
18192 | done | |
18193 | ||
18194 | fi | |
18195 | for ac_header in com_err.h | |
18196 | do : | |
18197 | ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default" | |
d6974efa | 18198 | if test "x$ac_cv_header_com_err_h" = xyes; then : |
067d23c9 KY |
18199 | cat >>confdefs.h <<_ACEOF |
18200 | #define HAVE_COM_ERR_H 1 | |
18201 | _ACEOF | |
18202 | ||
18203 | fi | |
18204 | ||
18205 | done | |
18206 | ||
18207 | fi | |
18208 | ||
18209 | ||
18210 | ||
18211 | ||
18212 | ||
18213 | ||
18214 | ||
18215 | # Solaris requires -lintl if you want strerror (which calls dgettext) | |
18216 | # to return localized messages. | |
18217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5 | |
18218 | $as_echo_n "checking for dgettext in -lintl... " >&6; } | |
d6974efa | 18219 | if ${ac_cv_lib_intl_dgettext+:} false; then : |
067d23c9 KY |
18220 | $as_echo_n "(cached) " >&6 |
18221 | else | |
18222 | ac_check_lib_save_LIBS=$LIBS | |
18223 | LIBS="-lintl $LIBS" | |
18224 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18225 | /* end confdefs.h. */ | |
18226 | ||
18227 | /* Override any GCC internal prototype to avoid an error. | |
18228 | Use char because int might match the return type of a GCC | |
18229 | builtin and then its argument prototype would still apply. */ | |
18230 | #ifdef __cplusplus | |
18231 | extern "C" | |
18232 | #endif | |
18233 | char dgettext (); | |
18234 | int | |
18235 | main () | |
18236 | { | |
18237 | return dgettext (); | |
18238 | ; | |
18239 | return 0; | |
18240 | } | |
18241 | _ACEOF | |
18242 | if ac_fn_c_try_link "$LINENO"; then : | |
18243 | ac_cv_lib_intl_dgettext=yes | |
18244 | else | |
18245 | ac_cv_lib_intl_dgettext=no | |
18246 | fi | |
18247 | rm -f core conftest.err conftest.$ac_objext \ | |
18248 | conftest$ac_exeext conftest.$ac_ext | |
18249 | LIBS=$ac_check_lib_save_LIBS | |
18250 | fi | |
18251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5 | |
18252 | $as_echo "$ac_cv_lib_intl_dgettext" >&6; } | |
d6974efa | 18253 | if test "x$ac_cv_lib_intl_dgettext" = xyes; then : |
067d23c9 KY |
18254 | cat >>confdefs.h <<_ACEOF |
18255 | #define HAVE_LIBINTL 1 | |
18256 | _ACEOF | |
18257 | ||
18258 | LIBS="-lintl $LIBS" | |
18259 | ||
18260 | fi | |
18261 | ||
18262 | ||
18263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5 | |
18264 | $as_echo_n "checking whether localtime caches TZ... " >&6; } | |
d6974efa | 18265 | if ${emacs_cv_localtime_cache+:} false; then : |
067d23c9 KY |
18266 | $as_echo_n "(cached) " >&6 |
18267 | else | |
18268 | if test x$ac_cv_func_tzset = xyes; then | |
18269 | if test "$cross_compiling" = yes; then : | |
18270 | # If we have tzset, assume the worst when cross-compiling. | |
18271 | emacs_cv_localtime_cache=yes | |
18272 | else | |
18273 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18274 | /* end confdefs.h. */ | |
18275 | #include <time.h> | |
18276 | char TZ_GMT0[] = "TZ=GMT0"; | |
18277 | char TZ_PST8[] = "TZ=PST8"; | |
18278 | main() | |
18279 | { | |
18280 | time_t now = time ((time_t *) 0); | |
18281 | int hour_GMT0, hour_unset; | |
18282 | if (putenv (TZ_GMT0) != 0) | |
18283 | exit (1); | |
18284 | hour_GMT0 = localtime (&now)->tm_hour; | |
18285 | unsetenv("TZ"); | |
18286 | hour_unset = localtime (&now)->tm_hour; | |
18287 | if (putenv (TZ_PST8) != 0) | |
18288 | exit (1); | |
18289 | if (localtime (&now)->tm_hour == hour_GMT0) | |
18290 | exit (1); | |
18291 | unsetenv("TZ"); | |
18292 | if (localtime (&now)->tm_hour != hour_unset) | |
18293 | exit (1); | |
18294 | exit (0); | |
18295 | } | |
18296 | _ACEOF | |
18297 | if ac_fn_c_try_run "$LINENO"; then : | |
18298 | emacs_cv_localtime_cache=no | |
18299 | else | |
18300 | emacs_cv_localtime_cache=yes | |
18301 | fi | |
18302 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
18303 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
18304 | fi | |
18305 | ||
18306 | else | |
18307 | # If we lack tzset, report that localtime does not cache TZ, | |
18308 | # since we can't invalidate the cache if we don't have tzset. | |
18309 | emacs_cv_localtime_cache=no | |
18310 | fi | |
18311 | fi | |
18312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5 | |
18313 | $as_echo "$emacs_cv_localtime_cache" >&6; } | |
18314 | if test $emacs_cv_localtime_cache = yes; then | |
18315 | ||
18316 | $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h | |
18317 | ||
18318 | fi | |
18319 | ||
18320 | if test "x$HAVE_TIMEVAL" = xyes; then | |
18321 | for ac_func in gettimeofday | |
18322 | do : | |
18323 | ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" | |
d6974efa | 18324 | if test "x$ac_cv_func_gettimeofday" = xyes; then : |
067d23c9 KY |
18325 | cat >>confdefs.h <<_ACEOF |
18326 | #define HAVE_GETTIMEOFDAY 1 | |
18327 | _ACEOF | |
18328 | ||
18329 | fi | |
18330 | done | |
18331 | ||
18332 | if test $ac_cv_func_gettimeofday = yes; then | |
18333 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5 | |
18334 | $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; } | |
d6974efa | 18335 | if ${emacs_cv_gettimeofday_two_arguments+:} false; then : |
067d23c9 KY |
18336 | $as_echo_n "(cached) " >&6 |
18337 | else | |
18338 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18339 | /* end confdefs.h. */ | |
18340 | ||
18341 | #ifdef TIME_WITH_SYS_TIME | |
18342 | #include <sys/time.h> | |
18343 | #include <time.h> | |
18344 | #else | |
18345 | #ifdef HAVE_SYS_TIME_H | |
18346 | #include <sys/time.h> | |
18347 | #else | |
18348 | #include <time.h> | |
18349 | #endif | |
18350 | #endif | |
18351 | int | |
18352 | main () | |
18353 | { | |
18354 | struct timeval time; | |
18355 | gettimeofday (&time, 0); | |
18356 | ; | |
18357 | return 0; | |
18358 | } | |
18359 | _ACEOF | |
18360 | if ac_fn_c_try_compile "$LINENO"; then : | |
18361 | emacs_cv_gettimeofday_two_arguments=yes | |
18362 | else | |
18363 | emacs_cv_gettimeofday_two_arguments=no | |
18364 | fi | |
18365 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18366 | fi | |
18367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5 | |
18368 | $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; } | |
18369 | if test $emacs_cv_gettimeofday_two_arguments = no; then | |
18370 | ||
18371 | $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h | |
18372 | ||
18373 | fi | |
18374 | fi | |
18375 | fi | |
18376 | ||
18377 | ok_so_far=yes | |
18378 | ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" | |
d6974efa | 18379 | if test "x$ac_cv_func_socket" = xyes; then : |
067d23c9 KY |
18380 | |
18381 | else | |
18382 | ok_so_far=no | |
18383 | fi | |
18384 | ||
18385 | if test $ok_so_far = yes; then | |
18386 | ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default" | |
d6974efa | 18387 | if test "x$ac_cv_header_netinet_in_h" = xyes; then : |
067d23c9 KY |
18388 | |
18389 | else | |
18390 | ok_so_far=no | |
18391 | fi | |
18392 | ||
18393 | ||
18394 | fi | |
18395 | if test $ok_so_far = yes; then | |
18396 | ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default" | |
d6974efa | 18397 | if test "x$ac_cv_header_arpa_inet_h" = xyes; then : |
067d23c9 KY |
18398 | |
18399 | else | |
18400 | ok_so_far=no | |
18401 | fi | |
18402 | ||
18403 | ||
18404 | fi | |
18405 | if test $ok_so_far = yes; then | |
18406 | ||
18407 | $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h | |
18408 | ||
18409 | fi | |
18410 | ||
18411 | if test -f /usr/lpp/X11/bin/smt.exp; then | |
18412 | ||
18413 | $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h | |
18414 | ||
18415 | fi | |
18416 | ||
18417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5 | |
18418 | $as_echo_n "checking whether system supports dynamic ptys... " >&6; } | |
18419 | if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then | |
18420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18421 | $as_echo "yes" >&6; } | |
18422 | ||
18423 | $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h | |
18424 | ||
18425 | else | |
18426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18427 | $as_echo "no" >&6; } | |
18428 | fi | |
18429 | ||
18430 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" | |
d6974efa | 18431 | if test "x$ac_cv_type_pid_t" = xyes; then : |
067d23c9 KY |
18432 | |
18433 | else | |
18434 | ||
18435 | cat >>confdefs.h <<_ACEOF | |
18436 | #define pid_t int | |
18437 | _ACEOF | |
18438 | ||
18439 | fi | |
18440 | ||
18441 | for ac_header in vfork.h | |
18442 | do : | |
18443 | ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" | |
d6974efa | 18444 | if test "x$ac_cv_header_vfork_h" = xyes; then : |
067d23c9 KY |
18445 | cat >>confdefs.h <<_ACEOF |
18446 | #define HAVE_VFORK_H 1 | |
18447 | _ACEOF | |
18448 | ||
18449 | fi | |
18450 | ||
18451 | done | |
18452 | ||
18453 | for ac_func in fork vfork | |
18454 | do : | |
18455 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
18456 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
2018939f | 18457 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
067d23c9 KY |
18458 | cat >>confdefs.h <<_ACEOF |
18459 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
18460 | _ACEOF | |
18461 | ||
18462 | fi | |
18463 | done | |
18464 | ||
18465 | if test "x$ac_cv_func_fork" = xyes; then | |
18466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 | |
18467 | $as_echo_n "checking for working fork... " >&6; } | |
d6974efa | 18468 | if ${ac_cv_func_fork_works+:} false; then : |
067d23c9 KY |
18469 | $as_echo_n "(cached) " >&6 |
18470 | else | |
18471 | if test "$cross_compiling" = yes; then : | |
18472 | ac_cv_func_fork_works=cross | |
18473 | else | |
18474 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18475 | /* end confdefs.h. */ | |
18476 | $ac_includes_default | |
18477 | int | |
18478 | main () | |
18479 | { | |
18480 | ||
18481 | /* By Ruediger Kuhlmann. */ | |
18482 | return fork () < 0; | |
18483 | ||
18484 | ; | |
18485 | return 0; | |
18486 | } | |
18487 | _ACEOF | |
18488 | if ac_fn_c_try_run "$LINENO"; then : | |
18489 | ac_cv_func_fork_works=yes | |
18490 | else | |
18491 | ac_cv_func_fork_works=no | |
18492 | fi | |
18493 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
18494 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
18495 | fi | |
18496 | ||
18497 | fi | |
18498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 | |
18499 | $as_echo "$ac_cv_func_fork_works" >&6; } | |
18500 | ||
18501 | else | |
18502 | ac_cv_func_fork_works=$ac_cv_func_fork | |
18503 | fi | |
18504 | if test "x$ac_cv_func_fork_works" = xcross; then | |
18505 | case $host in | |
18506 | *-*-amigaos* | *-*-msdosdjgpp*) | |
18507 | # Override, as these systems have only a dummy fork() stub | |
18508 | ac_cv_func_fork_works=no | |
18509 | ;; | |
18510 | *) | |
18511 | ac_cv_func_fork_works=yes | |
18512 | ;; | |
18513 | esac | |
18514 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 | |
18515 | $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
18516 | fi | |
18517 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
18518 | if test "x$ac_cv_func_vfork" = xyes; then | |
18519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 | |
18520 | $as_echo_n "checking for working vfork... " >&6; } | |
d6974efa | 18521 | if ${ac_cv_func_vfork_works+:} false; then : |
067d23c9 KY |
18522 | $as_echo_n "(cached) " >&6 |
18523 | else | |
18524 | if test "$cross_compiling" = yes; then : | |
18525 | ac_cv_func_vfork_works=cross | |
18526 | else | |
18527 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18528 | /* end confdefs.h. */ | |
18529 | /* Thanks to Paul Eggert for this test. */ | |
18530 | $ac_includes_default | |
18531 | #include <sys/wait.h> | |
18532 | #ifdef HAVE_VFORK_H | |
18533 | # include <vfork.h> | |
18534 | #endif | |
18535 | /* On some sparc systems, changes by the child to local and incoming | |
18536 | argument registers are propagated back to the parent. The compiler | |
18537 | is told about this with #include <vfork.h>, but some compilers | |
18538 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
18539 | static variable whose address is put into a register that is | |
18540 | clobbered by the vfork. */ | |
18541 | static void | |
18542 | #ifdef __cplusplus | |
18543 | sparc_address_test (int arg) | |
18544 | # else | |
18545 | sparc_address_test (arg) int arg; | |
18546 | #endif | |
18547 | { | |
18548 | static pid_t child; | |
18549 | if (!child) { | |
18550 | child = vfork (); | |
18551 | if (child < 0) { | |
18552 | perror ("vfork"); | |
18553 | _exit(2); | |
18554 | } | |
18555 | if (!child) { | |
18556 | arg = getpid(); | |
18557 | write(-1, "", 0); | |
18558 | _exit (arg); | |
18559 | } | |
18560 | } | |
18561 | } | |
18562 | ||
18563 | int | |
18564 | main () | |
18565 | { | |
18566 | pid_t parent = getpid (); | |
18567 | pid_t child; | |
18568 | ||
18569 | sparc_address_test (0); | |
18570 | ||
18571 | child = vfork (); | |
18572 | ||
18573 | if (child == 0) { | |
18574 | /* Here is another test for sparc vfork register problems. This | |
18575 | test uses lots of local variables, at least as many local | |
18576 | variables as main has allocated so far including compiler | |
18577 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
18578 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
18579 | reuse the register of parent for one of the local variables, | |
18580 | since it will think that parent can't possibly be used any more | |
18581 | in this routine. Assigning to the local variable will thus | |
18582 | munge parent in the parent process. */ | |
18583 | pid_t | |
18584 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
18585 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
18586 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
18587 | use the same hardware register for all 8 local variables. */ | |
18588 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
18589 | || p != p5 || p != p6 || p != p7) | |
18590 | _exit(1); | |
18591 | ||
18592 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | |
18593 | from child file descriptors. If the child closes a descriptor | |
18594 | before it execs or exits, this munges the parent's descriptor | |
18595 | as well. Test for this by closing stdout in the child. */ | |
18596 | _exit(close(fileno(stdout)) != 0); | |
18597 | } else { | |
18598 | int status; | |
18599 | struct stat st; | |
18600 | ||
18601 | while (wait(&status) != child) | |
18602 | ; | |
18603 | return ( | |
18604 | /* Was there some problem with vforking? */ | |
18605 | child < 0 | |
18606 | ||
18607 | /* Did the child fail? (This shouldn't happen.) */ | |
18608 | || status | |
18609 | ||
18610 | /* Did the vfork/compiler bug occur? */ | |
18611 | || parent != getpid() | |
18612 | ||
18613 | /* Did the file descriptor bug occur? */ | |
18614 | || fstat(fileno(stdout), &st) != 0 | |
18615 | ); | |
18616 | } | |
18617 | } | |
18618 | _ACEOF | |
18619 | if ac_fn_c_try_run "$LINENO"; then : | |
18620 | ac_cv_func_vfork_works=yes | |
18621 | else | |
18622 | ac_cv_func_vfork_works=no | |
18623 | fi | |
18624 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
18625 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
18626 | fi | |
18627 | ||
18628 | fi | |
18629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 | |
18630 | $as_echo "$ac_cv_func_vfork_works" >&6; } | |
18631 | ||
18632 | fi; | |
18633 | if test "x$ac_cv_func_fork_works" = xcross; then | |
18634 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
18635 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 | |
18636 | $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
18637 | fi | |
18638 | ||
18639 | if test "x$ac_cv_func_vfork_works" = xyes; then | |
18640 | ||
18641 | $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h | |
18642 | ||
18643 | else | |
18644 | ||
18645 | $as_echo "#define vfork fork" >>confdefs.h | |
18646 | ||
18647 | fi | |
18648 | if test "x$ac_cv_func_fork_works" = xyes; then | |
18649 | ||
18650 | $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h | |
18651 | ||
18652 | fi | |
18653 | ||
18654 | ||
18655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 | |
18656 | $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } | |
d6974efa | 18657 | if ${emacs_cv_langinfo_codeset+:} false; then : |
067d23c9 KY |
18658 | $as_echo_n "(cached) " >&6 |
18659 | else | |
18660 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18661 | /* end confdefs.h. */ | |
18662 | #include <langinfo.h> | |
18663 | int | |
18664 | main () | |
18665 | { | |
18666 | char* cs = nl_langinfo(CODESET); | |
18667 | ; | |
18668 | return 0; | |
18669 | } | |
18670 | _ACEOF | |
18671 | if ac_fn_c_try_link "$LINENO"; then : | |
18672 | emacs_cv_langinfo_codeset=yes | |
18673 | else | |
18674 | emacs_cv_langinfo_codeset=no | |
18675 | fi | |
18676 | rm -f core conftest.err conftest.$ac_objext \ | |
18677 | conftest$ac_exeext conftest.$ac_ext | |
18678 | ||
18679 | fi | |
18680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5 | |
18681 | $as_echo "$emacs_cv_langinfo_codeset" >&6; } | |
18682 | if test $emacs_cv_langinfo_codeset = yes; then | |
18683 | ||
18684 | $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h | |
18685 | ||
18686 | fi | |
18687 | ||
18688 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" | |
d6974efa | 18689 | if test "x$ac_cv_type_size_t" = xyes; then : |
067d23c9 KY |
18690 | |
18691 | cat >>confdefs.h <<_ACEOF | |
18692 | #define HAVE_SIZE_T 1 | |
18693 | _ACEOF | |
18694 | ||
18695 | ||
18696 | fi | |
18697 | ||
18698 | ||
18699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5 | |
18700 | $as_echo_n "checking for mbstate_t... " >&6; } | |
d6974efa | 18701 | if ${ac_cv_type_mbstate_t+:} false; then : |
067d23c9 KY |
18702 | $as_echo_n "(cached) " >&6 |
18703 | else | |
18704 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18705 | /* end confdefs.h. */ | |
18706 | $ac_includes_default | |
18707 | # include <wchar.h> | |
18708 | int | |
18709 | main () | |
18710 | { | |
18711 | mbstate_t x; return sizeof x; | |
18712 | ; | |
18713 | return 0; | |
18714 | } | |
18715 | _ACEOF | |
18716 | if ac_fn_c_try_compile "$LINENO"; then : | |
18717 | ac_cv_type_mbstate_t=yes | |
18718 | else | |
18719 | ac_cv_type_mbstate_t=no | |
18720 | fi | |
18721 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18722 | fi | |
18723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5 | |
18724 | $as_echo "$ac_cv_type_mbstate_t" >&6; } | |
18725 | if test $ac_cv_type_mbstate_t = yes; then | |
18726 | ||
18727 | $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h | |
18728 | ||
18729 | else | |
18730 | ||
18731 | $as_echo "#define mbstate_t int" >>confdefs.h | |
18732 | ||
18733 | fi | |
18734 | ||
067d23c9 KY |
18735 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5 |
18736 | $as_echo_n "checking for C restricted array declarations... " >&6; } | |
d6974efa | 18737 | if ${emacs_cv_c_restrict_arr+:} false; then : |
067d23c9 KY |
18738 | $as_echo_n "(cached) " >&6 |
18739 | else | |
18740 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18741 | /* end confdefs.h. */ | |
18742 | void fred (int x[__restrict]); | |
18743 | int | |
18744 | main () | |
18745 | { | |
18746 | ||
18747 | ; | |
18748 | return 0; | |
18749 | } | |
18750 | _ACEOF | |
18751 | if ac_fn_c_try_compile "$LINENO"; then : | |
18752 | emacs_cv_c_restrict_arr=yes | |
18753 | else | |
18754 | emacs_cv_c_restrict_arr=no | |
18755 | fi | |
18756 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18757 | fi | |
18758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5 | |
18759 | $as_echo "$emacs_cv_c_restrict_arr" >&6; } | |
18760 | if test "$emacs_cv_c_restrict_arr" = yes; then | |
18761 | ||
18762 | $as_echo "#define __restrict_arr __restrict" >>confdefs.h | |
18763 | ||
18764 | fi | |
18765 | ||
18766 | ||
18767 | ||
18768 | # Set up the CFLAGS for real compilation, so we can substitute it. | |
18769 | CFLAGS="$REAL_CFLAGS" | |
18770 | CPPFLAGS="$REAL_CPPFLAGS" | |
18771 | ||
18772 | ## Hack to detect a buggy GCC version. | |
18773 | if test "x$GCC" = xyes \ | |
18774 | && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \ | |
18775 | && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \ | |
18776 | && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then | |
2018939f | 18777 | as_fn_error $? "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5 |
067d23c9 KY |
18778 | fi |
18779 | ||
16fab143 | 18780 | version=$PACKAGE_VERSION |
067d23c9 KY |
18781 | |
18782 | ### Specify what sort of things we'll be editing into Makefile and config.h. | |
18783 | ### Use configuration here uncanonicalized to avoid exceeding size limits. | |
18784 | ||
18785 | ||
18786 | ## Unused? | |
18787 | ||
18788 | ||
18789 | ||
18790 | ||
18791 | ||
18792 | ||
18793 | ||
18794 | ||
18795 | ||
18796 | ||
18797 | ||
18798 | ||
18799 | ||
18800 | ||
18801 | ||
18802 | ||
18803 | ||
18804 | ||
18805 | ||
18806 | ||
18807 | ## FIXME? Nothing uses @LD_SWITCH_X_SITE@. | |
18808 | ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the | |
18809 | ## end of LIBX_BASE, but nothing ever set it. | |
18810 | ||
18811 | ||
18812 | ||
18813 | ||
18814 | ## Used in lwlib/Makefile.in. | |
18815 | ||
d6a003a8 AS |
18816 | if test -n "${machfile}"; then |
18817 | M_FILE="\$(srcdir)/${machfile}" | |
18818 | else | |
18819 | M_FILE= | |
18820 | fi | |
18821 | S_FILE="\$(srcdir)/${opsysfile}" | |
067d23c9 KY |
18822 | |
18823 | ||
18824 | ||
18825 | ||
18826 | ||
18827 | ||
18828 | ||
18829 | ||
18830 | ||
18831 | ||
067d23c9 KY |
18832 | cat >>confdefs.h <<_ACEOF |
18833 | #define EMACS_CONFIGURATION "${canonical}" | |
18834 | _ACEOF | |
18835 | ||
18836 | ||
18837 | cat >>confdefs.h <<_ACEOF | |
18838 | #define EMACS_CONFIG_OPTIONS "${ac_configure_args}" | |
18839 | _ACEOF | |
18840 | ||
d6a003a8 | 18841 | if test -n "$machfile"; then |
067d23c9 KY |
18842 | |
18843 | cat >>confdefs.h <<_ACEOF | |
18844 | #define config_machfile "${machfile}" | |
18845 | _ACEOF | |
18846 | ||
d6a003a8 | 18847 | fi |
067d23c9 KY |
18848 | |
18849 | cat >>confdefs.h <<_ACEOF | |
18850 | #define config_opsysfile "${opsysfile}" | |
18851 | _ACEOF | |
18852 | ||
18853 | ||
18854 | XMENU_OBJ= | |
18855 | XOBJ= | |
18856 | FONT_OBJ= | |
18857 | if test "${HAVE_X_WINDOWS}" = "yes" ; then | |
18858 | ||
18859 | $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h | |
18860 | ||
18861 | XMENU_OBJ=xmenu.o | |
18862 | XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o" | |
18863 | FONT_OBJ=xfont.o | |
18864 | if test "$HAVE_XFT" = "yes"; then | |
18865 | FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o" | |
18866 | elif test "$HAVE_FREETYPE" = "yes"; then | |
18867 | FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o" | |
18868 | fi | |
18869 | ||
18870 | fi | |
18871 | ||
18872 | ||
18873 | ||
18874 | ||
18875 | WIDGET_OBJ= | |
18876 | MOTIF_LIBW= | |
18877 | if test "${USE_X_TOOLKIT}" != "none" ; then | |
18878 | WIDGET_OBJ=widget.o | |
18879 | ||
18880 | $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h | |
18881 | ||
18882 | if test "${USE_X_TOOLKIT}" = "LUCID"; then | |
18883 | ||
18884 | $as_echo "#define USE_LUCID 1" >>confdefs.h | |
18885 | ||
18886 | elif test "${USE_X_TOOLKIT}" = "MOTIF"; then | |
18887 | ||
18888 | $as_echo "#define USE_MOTIF 1" >>confdefs.h | |
18889 | ||
18890 | MOTIF_LIBW=-lXm | |
18891 | case "$opsys" in | |
18892 | gnu-linux) | |
18893 | ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed. | |
18894 | MOTIF_LIBW="$MOTIF_LIBW -lXpm" | |
18895 | ;; | |
18896 | ||
18897 | unixware) | |
18898 | ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov> | |
18899 | ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2. | |
18900 | MOTIF_LIBW="MOTIF_LIBW -lXimp" | |
18901 | ;; | |
18902 | ||
18903 | aix4-2) | |
18904 | ## olson@mcs.anl.gov says -li18n is needed by -lXm. | |
18905 | MOTIF_LIBW="$MOTIF_LIBW -li18n" | |
18906 | ;; | |
18907 | esac | |
18908 | MOTIF_LIBW="$MOTIF_LIBW $LIBXP" | |
18909 | fi | |
18910 | fi | |
18911 | ||
18912 | ||
18913 | TOOLKIT_LIBW= | |
18914 | case "$USE_X_TOOLKIT" in | |
18915 | MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;; | |
18916 | LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;; | |
18917 | none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;; | |
18918 | esac | |
18919 | ||
18920 | ||
18921 | if test "$USE_X_TOOLKIT" = "none"; then | |
18922 | LIBXT_OTHER="\$(LIBXSM)" | |
18923 | OLDXMENU_TARGET="really-oldXMenu" | |
18924 | else | |
18925 | LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext" | |
18926 | OLDXMENU_TARGET="really-lwlib" | |
18927 | fi | |
18928 | ||
18929 | ||
18930 | ## The X Menu stuff is present in the X10 distribution, but missing | |
18931 | ## from X11. If we have X10, just use the installed library; | |
18932 | ## otherwise, use our own copy. | |
18933 | if test "${HAVE_X11}" = "yes" ; then | |
18934 | ||
18935 | $as_echo "#define HAVE_X11 1" >>confdefs.h | |
18936 | ||
18937 | ||
18938 | if test "$USE_X_TOOLKIT" = "none"; then | |
18939 | OLDXMENU="\${oldXMenudir}/libXMenu11.a" | |
18940 | else | |
18941 | OLDXMENU="\${lwlibdir}/liblw.a" | |
18942 | fi | |
18943 | LIBXMENU="\$(OLDXMENU)" | |
18944 | LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)" | |
18945 | OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}" | |
18946 | else | |
18947 | ## For a syntactically valid Makefile; not actually used for anything. | |
18948 | ## See comments in src/Makefile.in. | |
18949 | OLDXMENU=nothing | |
18950 | ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?). | |
18951 | if test "${HAVE_X_WINDOWS}" = "yes"; then | |
18952 | LIBXMENU="-lXMenu" | |
18953 | else | |
18954 | LIBXMENU= | |
18955 | fi | |
18956 | LIBX_OTHER= | |
18957 | OLDXMENU_DEPS= | |
18958 | fi | |
18959 | ||
18960 | if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then | |
18961 | OLDXMENU_TARGET= | |
18962 | OLDXMENU=nothing | |
18963 | LIBXMENU= | |
18964 | OLDXMENU_DEPS= | |
18965 | fi | |
18966 | ||
18967 | ||
18968 | ||
18969 | ||
18970 | ||
18971 | ||
18972 | ||
18973 | if test "${HAVE_MENUS}" = "yes" ; then | |
18974 | ||
18975 | $as_echo "#define HAVE_MENUS 1" >>confdefs.h | |
18976 | ||
18977 | fi | |
18978 | ||
18979 | if test "${GNU_MALLOC}" = "yes" ; then | |
18980 | ||
18981 | $as_echo "#define GNU_MALLOC 1" >>confdefs.h | |
18982 | ||
18983 | fi | |
18984 | ||
18985 | RALLOC_OBJ= | |
18986 | if test "${REL_ALLOC}" = "yes" ; then | |
18987 | ||
18988 | $as_echo "#define REL_ALLOC 1" >>confdefs.h | |
18989 | ||
18990 | ||
18991 | test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o | |
18992 | fi | |
18993 | ||
18994 | ||
18995 | if test "$opsys" = "cygwin"; then | |
18996 | CYGWIN_OBJ="sheap.o" | |
18997 | ## Cygwin differs because of its unexec(). | |
18998 | PRE_ALLOC_OBJ= | |
18999 | POST_ALLOC_OBJ=lastfile.o | |
19000 | else | |
19001 | CYGWIN_OBJ= | |
19002 | PRE_ALLOC_OBJ=lastfile.o | |
19003 | POST_ALLOC_OBJ= | |
19004 | fi | |
19005 | ||
19006 | ||
19007 | ||
19008 | ||
19009 | ||
19010 | case "$opsys" in | |
19011 | aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;; | |
19012 | ||
19013 | darwin) | |
19014 | ## The -headerpad option tells ld (see man page) to leave room at the | |
19015 | ## end of the header for adding load commands. Needed for dumping. | |
19016 | ## 0x690 is the total size of 30 segment load commands (at 56 | |
19017 | ## each); under Cocoa 31 commands are required. | |
19018 | if test "$HAVE_NS" = "yes"; then | |
19019 | libs_nsgui="-framework AppKit" | |
19020 | headerpad_extra=6C8 | |
19021 | else | |
19022 | libs_nsgui= | |
19023 | headerpad_extra=690 | |
19024 | fi | |
19025 | LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra" | |
19026 | ||
19027 | ## This is here because src/Makefile.in did some extra fiddling around | |
19028 | ## with LD_SWITCH_SYSTEM. The cpp logic was: | |
19029 | ## #ifndef LD_SWITCH_SYSTEM | |
19030 | ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF))) | |
19031 | ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to: | |
19032 | ## not using gcc, darwin system not on an alpha (ie darwin, since | |
19033 | ## darwin + alpha does not occur). | |
19034 | ## Because this was done in src/Makefile.in, the resulting part of | |
19035 | ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link). | |
19036 | ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS, | |
19037 | ## rather than LD_SWITCH_SYSTEM. | |
19038 | test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \ | |
19039 | LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS" | |
19040 | ;; | |
19041 | ||
19042 | ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time. | |
19043 | ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at | |
19044 | ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX | |
19045 | ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM | |
19046 | ## had different values in configure (in ac_link) and src/Makefile.in. | |
19047 | ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS. | |
19048 | gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;; | |
19049 | ||
19050 | *) LD_SWITCH_SYSTEM_TEMACS= ;; | |
19051 | esac | |
19052 | ||
19053 | if test "$NS_IMPL_GNUSTEP" = "yes"; then | |
19054 | LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread" | |
19055 | fi | |
19056 | ||
19057 | ||
19058 | ||
19059 | ||
19060 | LD_FIRSTFLAG= | |
19061 | ORDINARY_LINK= | |
19062 | case "$opsys" in | |
19063 | ## gnu: GNU needs its own crt0. | |
19064 | aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;; | |
19065 | ||
19066 | ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the | |
19067 | ## library search parth, i.e. it won't search /usr/lib for libc and | |
19068 | ## friends. Using -nostartfiles instead avoids this problem, and | |
19069 | ## will also work on earlier NetBSD releases. | |
19070 | netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;; | |
19071 | ||
19072 | ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says | |
19073 | ## MkLinux/LinuxPPC needs this. | |
19074 | ## ibms390x only supports opsys = gnu-linux so it can be added here. | |
19075 | gnu-*) | |
19076 | case "$machine" in | |
19077 | macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;; | |
19078 | esac | |
19079 | ;; | |
19080 | esac | |
19081 | ||
19082 | ||
19083 | if test "x$ORDINARY_LINK" = "xyes"; then | |
19084 | ||
19085 | LD_FIRSTFLAG="" | |
19086 | ||
19087 | $as_echo "#define ORDINARY_LINK 1" >>confdefs.h | |
19088 | ||
19089 | ||
19090 | ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are: | |
19091 | ## freebsd, gnu-* not on macppc|ibms390x. | |
19092 | elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then | |
19093 | ||
19094 | ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure | |
19095 | ## places that are difficult to figure out at make time. Fortunately, | |
19096 | ## these same versions allow you to pass arbitrary flags on to the | |
19097 | ## linker, so there is no reason not to use it as a linker. | |
19098 | ## | |
19099 | ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from | |
19100 | ## searching for libraries in its internal directories, so we have to | |
19101 | ## ask GCC explicitly where to find libgcc.a (LIB_GCC below). | |
19102 | LD_FIRSTFLAG="-nostdlib" | |
19103 | fi | |
19104 | ||
19105 | ## FIXME? What setting of EDIT_LDFLAGS should this have? | |
19106 | test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic" | |
19107 | ||
19108 | ||
19109 | ||
19110 | ||
19111 | ## FIXME? The logic here is not precisely the same as that above. | |
19112 | ## There is no check here for a pre-defined LD_FIRSTFLAG. | |
19113 | ## Should we only be setting LIB_GCC if LD ~ -nostdlib? | |
19114 | LIB_GCC= | |
19115 | if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then | |
19116 | ||
19117 | case "$opsys" in | |
19118 | freebsd|netbsd|openbsd) LIB_GCC= ;; | |
19119 | ||
19120 | gnu-*) | |
19121 | ## armin76@gentoo.org reported that the lgcc_s flag is necessary to | |
19122 | ## build on ARM EABI under GNU/Linux. (Bug#5518) | |
d6a003a8 AS |
19123 | case $host_cpu in |
19124 | arm*) | |
067d23c9 | 19125 | LIB_GCC="-lgcc_s" |
d6a003a8 AS |
19126 | ;; |
19127 | *) | |
067d23c9 KY |
19128 | ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then |
19129 | ## immediately undefine it again and redefine it to empty. | |
19130 | ## Was the C_SWITCH_X_SITE part really necessary? | |
19131 | ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name` | |
19132 | LIB_GCC= | |
d6a003a8 AS |
19133 | ;; |
19134 | esac | |
067d23c9 KY |
19135 | ;; |
19136 | ||
19137 | ## Ask GCC where to find libgcc.a. | |
19138 | *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;; | |
19139 | esac | |
19140 | fi | |
19141 | ||
19142 | ||
19143 | TOOLTIP_SUPPORT= | |
19144 | WINDOW_SUPPORT= | |
19145 | ## If we're using X11/GNUstep, define some consequences. | |
19146 | if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then | |
19147 | ||
19148 | $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h | |
19149 | ||
19150 | ||
19151 | $as_echo "#define HAVE_MOUSE 1" >>confdefs.h | |
19152 | ||
19153 | MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)" | |
19154 | TOOLTIP_SUPPORT="\${lispsource}/mouse.elc" | |
19155 | ||
19156 | WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)" | |
19157 | test "$HAVE_X_WINDOWS" = "yes" && \ | |
19158 | WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)" | |
19159 | ||
19160 | fi | |
19161 | ||
19162 | ||
19163 | ||
19164 | ||
19165 | ||
19166 | ||
19167 | ||
19168 | #### Report on what we decided to do. | |
19169 | #### Report GTK as a toolkit, even if it doesn't use Xt. | |
19170 | #### It makes printing result more understandable as using GTK sets | |
19171 | #### toolkit_scroll_bars to yes by default. | |
19172 | if test "${HAVE_GTK}" = "yes"; then | |
19173 | USE_X_TOOLKIT=GTK | |
19174 | fi | |
19175 | ||
2b7f50d8 AS |
19176 | and_machfile= |
19177 | if test -n "$machfile"; then | |
19178 | and_machfile=" and \`${machfile}'" | |
19179 | fi | |
19180 | ||
067d23c9 KY |
19181 | echo " |
19182 | Configured for \`${canonical}'. | |
19183 | ||
19184 | Where should the build process find the source code? ${srcdir} | |
19185 | What operating system and machine description files should Emacs use? | |
2b7f50d8 | 19186 | \`${opsysfile}'${and_machfile} |
067d23c9 KY |
19187 | What compiler should emacs be built with? ${CC} ${CFLAGS} |
19188 | Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason} | |
19189 | Should Emacs use a relocating allocator for buffers? ${REL_ALLOC} | |
19190 | Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers | |
19191 | What window system should Emacs use? ${window_system} | |
19192 | What toolkit should Emacs use? ${USE_X_TOOLKIT}" | |
19193 | ||
19194 | if test -n "${x_includes}"; then | |
19195 | echo " Where do we find X Windows header files? ${x_includes}" | |
19196 | else | |
19197 | echo " Where do we find X Windows header files? Standard dirs" | |
19198 | fi | |
19199 | if test -n "${x_libraries}"; then | |
19200 | echo " Where do we find X Windows libraries? ${x_libraries}" | |
19201 | else | |
19202 | echo " Where do we find X Windows libraries? Standard dirs" | |
19203 | fi | |
19204 | ||
19205 | echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}" | |
19206 | echo " Does Emacs use -lXpm? ${HAVE_XPM}" | |
19207 | echo " Does Emacs use -ljpeg? ${HAVE_JPEG}" | |
19208 | echo " Does Emacs use -ltiff? ${HAVE_TIFF}" | |
19209 | echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF" | |
19210 | echo " Does Emacs use -lpng? ${HAVE_PNG}" | |
19211 | echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}" | |
19212 | echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}" | |
19213 | ||
19214 | echo " Does Emacs use -lgpm? ${HAVE_GPM}" | |
19215 | echo " Does Emacs use -ldbus? ${HAVE_DBUS}" | |
19216 | echo " Does Emacs use -lgconf? ${HAVE_GCONF}" | |
19217 | echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}" | |
19218 | echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}" | |
19219 | echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}" | |
19220 | ||
19221 | echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}" | |
19222 | echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}" | |
19223 | echo " Does Emacs use -lotf? ${HAVE_LIBOTF}" | |
19224 | echo " Does Emacs use -lxft? ${HAVE_XFT}" | |
19225 | ||
19226 | echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}" | |
19227 | echo | |
19228 | ||
19229 | if test $USE_XASSERTS = yes; then | |
19230 | echo " Compiling with asserts turned on." | |
19231 | CPPFLAGS="$CPPFLAGS -DXASSERTS=1" | |
19232 | fi | |
19233 | ||
19234 | echo | |
19235 | ||
19236 | if test "$HAVE_NS" = "yes"; then | |
19237 | echo | |
19238 | echo "You must run \"make install\" in order to test the built application. | |
19239 | The installed application will go to nextstep/Emacs.app and can be | |
19240 | run or moved from there." | |
19241 | if test "$EN_NS_SELF_CONTAINED" = "yes"; then | |
19242 | echo "The application will be fully self-contained." | |
19243 | else | |
19244 | echo "The lisp resources for the application will be installed under ${prefix}. | |
19245 | You may need to run \"make install\" with sudo. The application will fail | |
19246 | to run if these resources are not installed." | |
19247 | fi | |
19248 | echo | |
19249 | fi | |
19250 | ||
19251 | ||
19252 | # Remove any trailing slashes in these variables. | |
19253 | test "${prefix}" != NONE && | |
19254 | prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'` | |
19255 | test "${exec_prefix}" != NONE && | |
19256 | exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'` | |
19257 | ||
193770ee | 19258 | 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 test/automated/Makefile" |
067d23c9 | 19259 | |
9411886d PE |
19260 | |
19261 | ac_config_commands="$ac_config_commands mkdirs" | |
19262 | ||
19263 | ||
19264 | ac_config_commands="$ac_config_commands epaths" | |
19265 | ||
19266 | ||
19267 | ac_config_commands="$ac_config_commands gdbinit" | |
19268 | ||
067d23c9 KY |
19269 | |
19270 | cat >confcache <<\_ACEOF | |
19271 | # This file is a shell script that caches the results of configure | |
19272 | # tests run on this system so they can be shared between configure | |
19273 | # scripts and configure runs, see configure's option --config-cache. | |
19274 | # It is not useful on other systems. If it contains results you don't | |
19275 | # want to keep, you may remove or edit it. | |
19276 | # | |
19277 | # config.status only pays attention to the cache file if you give it | |
19278 | # the --recheck option to rerun configure. | |
19279 | # | |
19280 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
19281 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
19282 | # following values. | |
19283 | ||
19284 | _ACEOF | |
19285 | ||
19286 | # The following way of writing the cache mishandles newlines in values, | |
19287 | # but we know of no workaround that is simple, portable, and efficient. | |
19288 | # So, we kill variables containing newlines. | |
19289 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
19290 | # and sets the high bit in the cache file unless we assign to the vars. | |
19291 | ( | |
19292 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
19293 | eval ac_val=\$$ac_var | |
19294 | case $ac_val in #( | |
19295 | *${as_nl}*) | |
19296 | case $ac_var in #( | |
19297 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
19298 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
19299 | esac | |
19300 | case $ac_var in #( | |
19301 | _ | IFS | as_nl) ;; #( | |
19302 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
19303 | *) { eval $ac_var=; unset $ac_var;} ;; | |
19304 | esac ;; | |
19305 | esac | |
19306 | done | |
19307 | ||
19308 | (set) 2>&1 | | |
19309 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
19310 | *${as_nl}ac_space=\ *) | |
19311 | # `set' does not quote correctly, so add quotes: double-quote | |
19312 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
19313 | sed -n \ | |
19314 | "s/'/'\\\\''/g; | |
19315 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
19316 | ;; #( | |
19317 | *) | |
19318 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
19319 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
19320 | ;; | |
19321 | esac | | |
19322 | sort | |
19323 | ) | | |
19324 | sed ' | |
19325 | /^ac_cv_env_/b end | |
19326 | t clear | |
19327 | :clear | |
19328 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
19329 | t end | |
19330 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
19331 | :end' >>confcache | |
19332 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
19333 | if test -w "$cache_file"; then | |
d6974efa | 19334 | if test "x$cache_file" != "x/dev/null"; then |
067d23c9 KY |
19335 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
19336 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
d6974efa PE |
19337 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
19338 | cat confcache >"$cache_file" | |
19339 | else | |
19340 | case $cache_file in #( | |
19341 | */* | ?:*) | |
19342 | mv -f confcache "$cache_file"$$ && | |
19343 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
19344 | *) | |
19345 | mv -f confcache "$cache_file" ;; | |
19346 | esac | |
19347 | fi | |
19348 | fi | |
067d23c9 KY |
19349 | else |
19350 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
19351 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
19352 | fi | |
19353 | fi | |
19354 | rm -f confcache | |
19355 | ||
19356 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
19357 | # Let make expand exec_prefix. | |
19358 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
19359 | ||
19360 | DEFS=-DHAVE_CONFIG_H | |
19361 | ||
19362 | ac_libobjs= | |
19363 | ac_ltlibobjs= | |
2018939f | 19364 | U= |
067d23c9 KY |
19365 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
19366 | # 1. Remove the extension, and $U if already installed. | |
19367 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
19368 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
19369 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
19370 | # will be set to the directory where LIBOBJS objects are built. | |
19371 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
19372 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
19373 | done | |
19374 | LIBOBJS=$ac_libobjs | |
19375 | ||
19376 | LTLIBOBJS=$ac_ltlibobjs | |
19377 | ||
19378 | ||
743c80a7 PE |
19379 | if test -n "$EXEEXT"; then |
19380 | am__EXEEXT_TRUE= | |
19381 | am__EXEEXT_FALSE='#' | |
19382 | else | |
19383 | am__EXEEXT_TRUE='#' | |
19384 | am__EXEEXT_FALSE= | |
19385 | fi | |
19386 | ||
19387 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
19388 | as_fn_error $? "conditional \"AMDEP\" was never defined. | |
19389 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
19390 | fi | |
19391 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
19392 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
19393 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
19394 | fi | |
19395 | ||
19396 | if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then | |
19397 | as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined. | |
19398 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
19399 | fi | |
19400 | ||
942f733f | 19401 | |
743c80a7 PE |
19402 | gl_libobjs= |
19403 | gl_ltlibobjs= | |
19404 | if test -n "$gl_LIBOBJS"; then | |
19405 | # Remove the extension. | |
19406 | sed_drop_objext='s/\.o$//;s/\.obj$//' | |
19407 | for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do | |
19408 | gl_libobjs="$gl_libobjs $i.$ac_objext" | |
19409 | gl_ltlibobjs="$gl_ltlibobjs $i.lo" | |
19410 | done | |
19411 | fi | |
19412 | gl_LIBOBJS=$gl_libobjs | |
19413 | ||
19414 | gl_LTLIBOBJS=$gl_ltlibobjs | |
19415 | ||
19416 | ||
19417 | ||
19418 | gltests_libobjs= | |
19419 | gltests_ltlibobjs= | |
19420 | if test -n "$gltests_LIBOBJS"; then | |
19421 | # Remove the extension. | |
19422 | sed_drop_objext='s/\.o$//;s/\.obj$//' | |
19423 | for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do | |
19424 | gltests_libobjs="$gltests_libobjs $i.$ac_objext" | |
19425 | gltests_ltlibobjs="$gltests_ltlibobjs $i.lo" | |
19426 | done | |
19427 | fi | |
19428 | gltests_LIBOBJS=$gltests_libobjs | |
19429 | ||
19430 | gltests_LTLIBOBJS=$gltests_ltlibobjs | |
19431 | ||
067d23c9 KY |
19432 | |
19433 | ||
d6974efa | 19434 | : "${CONFIG_STATUS=./config.status}" |
067d23c9 KY |
19435 | ac_write_fail=0 |
19436 | ac_clean_files_save=$ac_clean_files | |
19437 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
19438 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
19439 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
19440 | as_write_fail=0 | |
19441 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
19442 | #! $SHELL | |
19443 | # Generated by $as_me. | |
19444 | # Run this file to recreate the current configuration. | |
19445 | # Compiler output produced by configure, useful for debugging | |
19446 | # configure, is in config.log if it exists. | |
19447 | ||
19448 | debug=false | |
19449 | ac_cs_recheck=false | |
19450 | ac_cs_silent=false | |
19451 | ||
19452 | SHELL=\${CONFIG_SHELL-$SHELL} | |
19453 | export SHELL | |
19454 | _ASEOF | |
19455 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
19456 | ## -------------------- ## | |
19457 | ## M4sh Initialization. ## | |
19458 | ## -------------------- ## | |
19459 | ||
19460 | # Be more Bourne compatible | |
19461 | DUALCASE=1; export DUALCASE # for MKS sh | |
19462 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
19463 | emulate sh | |
19464 | NULLCMD=: | |
19465 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
19466 | # is contrary to our usage. Disable this feature. | |
19467 | alias -g '${1+"$@"}'='"$@"' | |
19468 | setopt NO_GLOB_SUBST | |
19469 | else | |
19470 | case `(set -o) 2>/dev/null` in #( | |
19471 | *posix*) : | |
19472 | set -o posix ;; #( | |
19473 | *) : | |
19474 | ;; | |
19475 | esac | |
19476 | fi | |
19477 | ||
19478 | ||
19479 | as_nl=' | |
19480 | ' | |
19481 | export as_nl | |
19482 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
19483 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
19484 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
19485 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
19486 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
19487 | # but without wasting forks for bash or zsh. | |
19488 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
19489 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
19490 | as_echo='print -r --' | |
19491 | as_echo_n='print -rn --' | |
19492 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
19493 | as_echo='printf %s\n' | |
19494 | as_echo_n='printf %s' | |
19495 | else | |
19496 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
19497 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
19498 | as_echo_n='/usr/ucb/echo -n' | |
19499 | else | |
19500 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
19501 | as_echo_n_body='eval | |
19502 | arg=$1; | |
19503 | case $arg in #( | |
19504 | *"$as_nl"*) | |
19505 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
19506 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
19507 | esac; | |
19508 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
19509 | ' | |
19510 | export as_echo_n_body | |
19511 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
19512 | fi | |
19513 | export as_echo_body | |
19514 | as_echo='sh -c $as_echo_body as_echo' | |
19515 | fi | |
19516 | ||
19517 | # The user is always right. | |
19518 | if test "${PATH_SEPARATOR+set}" != set; then | |
19519 | PATH_SEPARATOR=: | |
19520 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
19521 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
19522 | PATH_SEPARATOR=';' | |
19523 | } | |
19524 | fi | |
19525 | ||
19526 | ||
19527 | # IFS | |
19528 | # We need space, tab and new line, in precisely that order. Quoting is | |
19529 | # there to prevent editors from complaining about space-tab. | |
19530 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
19531 | # splitting by setting IFS to empty value.) | |
19532 | IFS=" "" $as_nl" | |
19533 | ||
19534 | # Find who we are. Look in the path if we contain no directory separator. | |
d6974efa | 19535 | as_myself= |
067d23c9 KY |
19536 | case $0 in #(( |
19537 | *[\\/]* ) as_myself=$0 ;; | |
19538 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
19539 | for as_dir in $PATH | |
19540 | do | |
19541 | IFS=$as_save_IFS | |
19542 | test -z "$as_dir" && as_dir=. | |
19543 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
19544 | done | |
19545 | IFS=$as_save_IFS | |
19546 | ||
19547 | ;; | |
19548 | esac | |
19549 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
19550 | # in which case we are not to be found in the path. | |
19551 | if test "x$as_myself" = x; then | |
19552 | as_myself=$0 | |
19553 | fi | |
19554 | if test ! -f "$as_myself"; then | |
19555 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
19556 | exit 1 | |
19557 | fi | |
19558 | ||
19559 | # Unset variables that we do not need and which cause bugs (e.g. in | |
19560 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
19561 | # suppresses any "Segmentation fault" message there. '((' could | |
19562 | # trigger a bug in pdksh 5.2.14. | |
19563 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
19564 | do eval test x\${$as_var+set} = xset \ | |
19565 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
19566 | done | |
19567 | PS1='$ ' | |
19568 | PS2='> ' | |
19569 | PS4='+ ' | |
19570 | ||
19571 | # NLS nuisances. | |
19572 | LC_ALL=C | |
19573 | export LC_ALL | |
19574 | LANGUAGE=C | |
19575 | export LANGUAGE | |
19576 | ||
19577 | # CDPATH. | |
19578 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
19579 | ||
19580 | ||
2018939f AS |
19581 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
19582 | # ---------------------------------------- | |
067d23c9 KY |
19583 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
19584 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
2018939f | 19585 | # script with STATUS, using 1 if that was 0. |
067d23c9 KY |
19586 | as_fn_error () |
19587 | { | |
2018939f AS |
19588 | as_status=$1; test $as_status -eq 0 && as_status=1 |
19589 | if test "$4"; then | |
19590 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
19591 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
067d23c9 | 19592 | fi |
2018939f | 19593 | $as_echo "$as_me: error: $2" >&2 |
067d23c9 KY |
19594 | as_fn_exit $as_status |
19595 | } # as_fn_error | |
19596 | ||
19597 | ||
19598 | # as_fn_set_status STATUS | |
19599 | # ----------------------- | |
19600 | # Set $? to STATUS, without forking. | |
19601 | as_fn_set_status () | |
19602 | { | |
19603 | return $1 | |
19604 | } # as_fn_set_status | |
19605 | ||
19606 | # as_fn_exit STATUS | |
19607 | # ----------------- | |
19608 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
19609 | as_fn_exit () | |
19610 | { | |
19611 | set +e | |
19612 | as_fn_set_status $1 | |
19613 | exit $1 | |
19614 | } # as_fn_exit | |
19615 | ||
19616 | # as_fn_unset VAR | |
19617 | # --------------- | |
19618 | # Portably unset VAR. | |
19619 | as_fn_unset () | |
19620 | { | |
19621 | { eval $1=; unset $1;} | |
19622 | } | |
19623 | as_unset=as_fn_unset | |
19624 | # as_fn_append VAR VALUE | |
19625 | # ---------------------- | |
19626 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
19627 | # advantage of any shell optimizations that allow amortized linear growth over | |
19628 | # repeated appends, instead of the typical quadratic growth present in naive | |
19629 | # implementations. | |
19630 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
19631 | eval 'as_fn_append () | |
19632 | { | |
19633 | eval $1+=\$2 | |
19634 | }' | |
19635 | else | |
19636 | as_fn_append () | |
19637 | { | |
19638 | eval $1=\$$1\$2 | |
19639 | } | |
19640 | fi # as_fn_append | |
19641 | ||
19642 | # as_fn_arith ARG... | |
19643 | # ------------------ | |
19644 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
19645 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
19646 | # must be portable across $(()) and expr. | |
19647 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
19648 | eval 'as_fn_arith () | |
19649 | { | |
19650 | as_val=$(( $* )) | |
19651 | }' | |
19652 | else | |
19653 | as_fn_arith () | |
19654 | { | |
19655 | as_val=`expr "$@" || test $? -eq 1` | |
19656 | } | |
19657 | fi # as_fn_arith | |
19658 | ||
19659 | ||
19660 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
19661 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
19662 | as_expr=expr | |
19663 | else | |
19664 | as_expr=false | |
19665 | fi | |
19666 | ||
19667 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
19668 | as_basename=basename | |
19669 | else | |
19670 | as_basename=false | |
19671 | fi | |
19672 | ||
19673 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
19674 | as_dirname=dirname | |
19675 | else | |
19676 | as_dirname=false | |
19677 | fi | |
19678 | ||
19679 | as_me=`$as_basename -- "$0" || | |
19680 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
19681 | X"$0" : 'X\(//\)$' \| \ | |
19682 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
19683 | $as_echo X/"$0" | | |
19684 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
19685 | s//\1/ | |
19686 | q | |
19687 | } | |
19688 | /^X\/\(\/\/\)$/{ | |
19689 | s//\1/ | |
19690 | q | |
19691 | } | |
19692 | /^X\/\(\/\).*/{ | |
19693 | s//\1/ | |
19694 | q | |
19695 | } | |
19696 | s/.*/./; q'` | |
19697 | ||
19698 | # Avoid depending upon Character Ranges. | |
19699 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
19700 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
19701 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
19702 | as_cr_digits='0123456789' | |
19703 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
19704 | ||
19705 | ECHO_C= ECHO_N= ECHO_T= | |
19706 | case `echo -n x` in #((((( | |
19707 | -n*) | |
19708 | case `echo 'xy\c'` in | |
19709 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
19710 | xy) ECHO_C='\c';; | |
19711 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
19712 | ECHO_T=' ';; | |
19713 | esac;; | |
19714 | *) | |
19715 | ECHO_N='-n';; | |
19716 | esac | |
19717 | ||
19718 | rm -f conf$$ conf$$.exe conf$$.file | |
19719 | if test -d conf$$.dir; then | |
19720 | rm -f conf$$.dir/conf$$.file | |
19721 | else | |
19722 | rm -f conf$$.dir | |
19723 | mkdir conf$$.dir 2>/dev/null | |
19724 | fi | |
19725 | if (echo >conf$$.file) 2>/dev/null; then | |
19726 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
19727 | as_ln_s='ln -s' | |
19728 | # ... but there are two gotchas: | |
19729 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
19730 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
19731 | # In both cases, we have to default to `cp -p'. | |
19732 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
19733 | as_ln_s='cp -p' | |
19734 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
19735 | as_ln_s=ln | |
19736 | else | |
19737 | as_ln_s='cp -p' | |
19738 | fi | |
19739 | else | |
19740 | as_ln_s='cp -p' | |
19741 | fi | |
19742 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
19743 | rmdir conf$$.dir 2>/dev/null | |
19744 | ||
19745 | ||
19746 | # as_fn_mkdir_p | |
19747 | # ------------- | |
19748 | # Create "$as_dir" as a directory, including parents if necessary. | |
19749 | as_fn_mkdir_p () | |
19750 | { | |
19751 | ||
19752 | case $as_dir in #( | |
19753 | -*) as_dir=./$as_dir;; | |
19754 | esac | |
19755 | test -d "$as_dir" || eval $as_mkdir_p || { | |
19756 | as_dirs= | |
19757 | while :; do | |
19758 | case $as_dir in #( | |
19759 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
19760 | *) as_qdir=$as_dir;; | |
19761 | esac | |
19762 | as_dirs="'$as_qdir' $as_dirs" | |
19763 | as_dir=`$as_dirname -- "$as_dir" || | |
19764 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
19765 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
19766 | X"$as_dir" : 'X\(//\)$' \| \ | |
19767 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
19768 | $as_echo X"$as_dir" | | |
19769 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19770 | s//\1/ | |
19771 | q | |
19772 | } | |
19773 | /^X\(\/\/\)[^/].*/{ | |
19774 | s//\1/ | |
19775 | q | |
19776 | } | |
19777 | /^X\(\/\/\)$/{ | |
19778 | s//\1/ | |
19779 | q | |
19780 | } | |
19781 | /^X\(\/\).*/{ | |
19782 | s//\1/ | |
19783 | q | |
19784 | } | |
19785 | s/.*/./; q'` | |
19786 | test -d "$as_dir" && break | |
19787 | done | |
19788 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
2018939f | 19789 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
067d23c9 KY |
19790 | |
19791 | ||
19792 | } # as_fn_mkdir_p | |
19793 | if mkdir -p . 2>/dev/null; then | |
19794 | as_mkdir_p='mkdir -p "$as_dir"' | |
19795 | else | |
19796 | test -d ./-p && rmdir ./-p | |
19797 | as_mkdir_p=false | |
19798 | fi | |
19799 | ||
19800 | if test -x / >/dev/null 2>&1; then | |
19801 | as_test_x='test -x' | |
19802 | else | |
19803 | if ls -dL / >/dev/null 2>&1; then | |
19804 | as_ls_L_option=L | |
19805 | else | |
19806 | as_ls_L_option= | |
19807 | fi | |
19808 | as_test_x=' | |
19809 | eval sh -c '\'' | |
19810 | if test -d "$1"; then | |
19811 | test -d "$1/."; | |
19812 | else | |
19813 | case $1 in #( | |
19814 | -*)set "./$1";; | |
19815 | esac; | |
19816 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
19817 | ???[sx]*):;;*)false;;esac;fi | |
19818 | '\'' sh | |
19819 | ' | |
19820 | fi | |
19821 | as_executable_p=$as_test_x | |
19822 | ||
19823 | # Sed expression to map a string onto a valid CPP name. | |
19824 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
19825 | ||
19826 | # Sed expression to map a string onto a valid variable name. | |
19827 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
19828 | ||
19829 | ||
19830 | exec 6>&1 | |
19831 | ## ----------------------------------- ## | |
19832 | ## Main body of $CONFIG_STATUS script. ## | |
19833 | ## ----------------------------------- ## | |
19834 | _ASEOF | |
19835 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
19836 | ||
19837 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19838 | # Save the log message, to keep $0 and so on meaningful, and to | |
19839 | # report actual input values of CONFIG_FILES etc. instead of their | |
19840 | # values after options handling. | |
19841 | ac_log=" | |
19842 | This file was extended by emacs $as_me 24.0.50, which was | |
d6974efa | 19843 | generated by GNU Autoconf 2.68. Invocation command line was |
067d23c9 KY |
19844 | |
19845 | CONFIG_FILES = $CONFIG_FILES | |
19846 | CONFIG_HEADERS = $CONFIG_HEADERS | |
19847 | CONFIG_LINKS = $CONFIG_LINKS | |
19848 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
19849 | $ $0 $@ | |
19850 | ||
19851 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
19852 | " | |
19853 | ||
19854 | _ACEOF | |
19855 | ||
19856 | case $ac_config_files in *" | |
19857 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
19858 | esac | |
19859 | ||
19860 | case $ac_config_headers in *" | |
19861 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
19862 | esac | |
19863 | ||
19864 | ||
19865 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19866 | # Files that config.status was made for. | |
19867 | config_files="$ac_config_files" | |
19868 | config_headers="$ac_config_headers" | |
19869 | config_commands="$ac_config_commands" | |
19870 | ||
19871 | _ACEOF | |
19872 | ||
19873 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19874 | ac_cs_usage="\ | |
19875 | \`$as_me' instantiates files and other configuration actions | |
19876 | from templates according to the current configuration. Unless the files | |
19877 | and actions are specified as TAGs, all are instantiated by default. | |
19878 | ||
19879 | Usage: $0 [OPTION]... [TAG]... | |
19880 | ||
19881 | -h, --help print this help, then exit | |
19882 | -V, --version print version number and configuration settings, then exit | |
19883 | --config print configuration, then exit | |
19884 | -q, --quiet, --silent | |
19885 | do not print progress messages | |
19886 | -d, --debug don't remove temporary files | |
19887 | --recheck update $as_me by reconfiguring in the same conditions | |
19888 | --file=FILE[:TEMPLATE] | |
19889 | instantiate the configuration file FILE | |
19890 | --header=FILE[:TEMPLATE] | |
19891 | instantiate the configuration header FILE | |
19892 | ||
19893 | Configuration files: | |
19894 | $config_files | |
19895 | ||
19896 | Configuration headers: | |
19897 | $config_headers | |
19898 | ||
19899 | Configuration commands: | |
19900 | $config_commands | |
19901 | ||
19902 | Report bugs to the package provider." | |
19903 | ||
19904 | _ACEOF | |
19905 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19906 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
19907 | ac_cs_version="\\ | |
19908 | emacs config.status 24.0.50 | |
d6974efa | 19909 | configured by $0, generated by GNU Autoconf 2.68, |
067d23c9 KY |
19910 | with options \\"\$ac_cs_config\\" |
19911 | ||
2018939f | 19912 | Copyright (C) 2010 Free Software Foundation, Inc. |
067d23c9 KY |
19913 | This config.status script is free software; the Free Software Foundation |
19914 | gives unlimited permission to copy, distribute and modify it." | |
19915 | ||
19916 | ac_pwd='$ac_pwd' | |
19917 | srcdir='$srcdir' | |
19918 | INSTALL='$INSTALL' | |
743c80a7 PE |
19919 | MKDIR_P='$MKDIR_P' |
19920 | AWK='$AWK' | |
067d23c9 KY |
19921 | test -n "\$AWK" || AWK=awk |
19922 | _ACEOF | |
19923 | ||
19924 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19925 | # The default lists apply if the user does not specify any file. | |
19926 | ac_need_defaults=: | |
19927 | while test $# != 0 | |
19928 | do | |
19929 | case $1 in | |
2018939f | 19930 | --*=?*) |
067d23c9 KY |
19931 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
19932 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
19933 | ac_shift=: | |
19934 | ;; | |
2018939f AS |
19935 | --*=) |
19936 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
19937 | ac_optarg= | |
19938 | ac_shift=: | |
19939 | ;; | |
067d23c9 KY |
19940 | *) |
19941 | ac_option=$1 | |
19942 | ac_optarg=$2 | |
19943 | ac_shift=shift | |
19944 | ;; | |
19945 | esac | |
19946 | ||
19947 | case $ac_option in | |
19948 | # Handling of the options. | |
19949 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
19950 | ac_cs_recheck=: ;; | |
19951 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
19952 | $as_echo "$ac_cs_version"; exit ;; | |
19953 | --config | --confi | --conf | --con | --co | --c ) | |
19954 | $as_echo "$ac_cs_config"; exit ;; | |
19955 | --debug | --debu | --deb | --de | --d | -d ) | |
19956 | debug=: ;; | |
19957 | --file | --fil | --fi | --f ) | |
19958 | $ac_shift | |
19959 | case $ac_optarg in | |
19960 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2018939f | 19961 | '') as_fn_error $? "missing file argument" ;; |
067d23c9 KY |
19962 | esac |
19963 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
19964 | ac_need_defaults=false;; | |
19965 | --header | --heade | --head | --hea ) | |
19966 | $ac_shift | |
19967 | case $ac_optarg in | |
19968 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
19969 | esac | |
19970 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
19971 | ac_need_defaults=false;; | |
19972 | --he | --h) | |
19973 | # Conflict between --help and --header | |
2018939f | 19974 | as_fn_error $? "ambiguous option: \`$1' |
067d23c9 KY |
19975 | Try \`$0 --help' for more information.";; |
19976 | --help | --hel | -h ) | |
19977 | $as_echo "$ac_cs_usage"; exit ;; | |
19978 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
19979 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
19980 | ac_cs_silent=: ;; | |
19981 | ||
19982 | # This is an error. | |
2018939f | 19983 | -*) as_fn_error $? "unrecognized option: \`$1' |
067d23c9 KY |
19984 | Try \`$0 --help' for more information." ;; |
19985 | ||
19986 | *) as_fn_append ac_config_targets " $1" | |
19987 | ac_need_defaults=false ;; | |
19988 | ||
19989 | esac | |
19990 | shift | |
19991 | done | |
19992 | ||
19993 | ac_configure_extra_args= | |
19994 | ||
19995 | if $ac_cs_silent; then | |
19996 | exec 6>/dev/null | |
19997 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
19998 | fi | |
19999 | ||
20000 | _ACEOF | |
20001 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
20002 | if \$ac_cs_recheck; then | |
20003 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
20004 | shift | |
20005 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
20006 | CONFIG_SHELL='$SHELL' | |
20007 | export CONFIG_SHELL | |
20008 | exec "\$@" | |
20009 | fi | |
20010 | ||
20011 | _ACEOF | |
20012 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
20013 | exec 5>>config.log | |
20014 | { | |
20015 | echo | |
20016 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
20017 | ## Running $as_me. ## | |
20018 | _ASBOX | |
20019 | $as_echo "$ac_log" | |
20020 | } >&5 | |
20021 | ||
20022 | _ACEOF | |
20023 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
20024 | # | |
20025 | # INIT-COMMANDS | |
20026 | # | |
743c80a7 | 20027 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
067d23c9 KY |
20028 | GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS" |
20029 | ||
20030 | _ACEOF | |
20031 | ||
20032 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
20033 | ||
20034 | # Handling of arguments. | |
20035 | for ac_config_target in $ac_config_targets | |
20036 | do | |
20037 | case $ac_config_target in | |
20038 | "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;; | |
743c80a7 | 20039 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
067d23c9 | 20040 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
743c80a7 | 20041 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; |
067d23c9 KY |
20042 | "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;; |
20043 | "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;; | |
20044 | "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;; | |
20045 | "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;; | |
20046 | "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;; | |
20047 | "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;; | |
20048 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; | |
20049 | "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;; | |
20050 | "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;; | |
20051 | "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;; | |
ea062854 | 20052 | "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;; |
9411886d PE |
20053 | "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;; |
20054 | "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;; | |
20055 | "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;; | |
067d23c9 | 20056 | |
d6974efa | 20057 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
067d23c9 KY |
20058 | esac |
20059 | done | |
20060 | ||
20061 | ||
20062 | # If the user did not use the arguments to specify the items to instantiate, | |
20063 | # then the envvar interface is used. Set only those that are not. | |
20064 | # We use the long form for the default assignment because of an extremely | |
20065 | # bizarre bug on SunOS 4.1.3. | |
20066 | if $ac_need_defaults; then | |
20067 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
20068 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
20069 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
20070 | fi | |
20071 | ||
20072 | # Have a temporary directory for convenience. Make it in the build tree | |
20073 | # simply because there is no reason against having it here, and in addition, | |
20074 | # creating and moving files from /tmp can sometimes cause problems. | |
20075 | # Hook for its removal unless debugging. | |
20076 | # Note that there is a small window in which the directory will not be cleaned: | |
20077 | # after its creation but before its name has been assigned to `$tmp'. | |
20078 | $debug || | |
20079 | { | |
d6974efa | 20080 | tmp= ac_tmp= |
067d23c9 | 20081 | trap 'exit_status=$? |
d6974efa PE |
20082 | : "${ac_tmp:=$tmp}" |
20083 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
067d23c9 KY |
20084 | ' 0 |
20085 | trap 'as_fn_exit 1' 1 2 13 15 | |
20086 | } | |
20087 | # Create a (secure) tmp directory for tmp files. | |
20088 | ||
20089 | { | |
20090 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
d6974efa | 20091 | test -d "$tmp" |
067d23c9 KY |
20092 | } || |
20093 | { | |
20094 | tmp=./conf$$-$RANDOM | |
20095 | (umask 077 && mkdir "$tmp") | |
2018939f | 20096 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
d6974efa | 20097 | ac_tmp=$tmp |
067d23c9 KY |
20098 | |
20099 | # Set up the scripts for CONFIG_FILES section. | |
20100 | # No need to generate them if there are no CONFIG_FILES. | |
20101 | # This happens for instance with `./config.status config.h'. | |
20102 | if test -n "$CONFIG_FILES"; then | |
20103 | ||
20104 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | |
20105 | ac_cs_awk_getline=: | |
20106 | ac_cs_awk_pipe_init= | |
20107 | ac_cs_awk_read_file=' | |
20108 | while ((getline aline < (F[key])) > 0) | |
20109 | print(aline) | |
20110 | close(F[key])' | |
20111 | ac_cs_awk_pipe_fini= | |
20112 | else | |
20113 | ac_cs_awk_getline=false | |
20114 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
20115 | ac_cs_awk_read_file=' | |
20116 | print "|#_!!_#|" | |
20117 | print "cat " F[key] " &&" | |
20118 | '$ac_cs_awk_pipe_init | |
20119 | # The final `:' finishes the AND list. | |
20120 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
20121 | fi | |
20122 | ac_cr=`echo X | tr X '\015'` | |
20123 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
20124 | # But we know of no other shell where ac_cr would be empty at this | |
20125 | # point, so we can use a bashism as a fallback. | |
20126 | if test "x$ac_cr" = x; then | |
20127 | eval ac_cr=\$\'\\r\' | |
20128 | fi | |
20129 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
20130 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
2018939f | 20131 | ac_cs_awk_cr='\\r' |
067d23c9 KY |
20132 | else |
20133 | ac_cs_awk_cr=$ac_cr | |
20134 | fi | |
20135 | ||
d6974efa | 20136 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
067d23c9 KY |
20137 | _ACEOF |
20138 | ||
20139 | # Create commands to substitute file output variables. | |
20140 | { | |
20141 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && | |
d6974efa | 20142 | echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && |
067d23c9 KY |
20143 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && |
20144 | echo "_ACAWK" && | |
20145 | echo "_ACEOF" | |
20146 | } >conf$$files.sh && | |
20147 | . ./conf$$files.sh || | |
2018939f | 20148 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
067d23c9 KY |
20149 | rm -f conf$$files.sh |
20150 | ||
20151 | { | |
20152 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
20153 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
20154 | echo "_ACEOF" | |
20155 | } >conf$$subs.sh || | |
2018939f AS |
20156 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
20157 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
067d23c9 KY |
20158 | ac_delim='%!_!# ' |
20159 | for ac_last_try in false false false false false :; do | |
20160 | . ./conf$$subs.sh || | |
2018939f | 20161 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
067d23c9 KY |
20162 | |
20163 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
20164 | if test $ac_delim_n = $ac_delim_num; then | |
20165 | break | |
20166 | elif $ac_last_try; then | |
2018939f | 20167 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
067d23c9 KY |
20168 | else |
20169 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
20170 | fi | |
20171 | done | |
20172 | rm -f conf$$subs.sh | |
20173 | ||
20174 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d6974efa | 20175 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
067d23c9 KY |
20176 | _ACEOF |
20177 | sed -n ' | |
20178 | h | |
20179 | s/^/S["/; s/!.*/"]=/ | |
20180 | p | |
20181 | g | |
20182 | s/^[^!]*!// | |
20183 | :repl | |
20184 | t repl | |
20185 | s/'"$ac_delim"'$// | |
20186 | t delim | |
20187 | :nl | |
20188 | h | |
20189 | s/\(.\{148\}\)..*/\1/ | |
20190 | t more1 | |
20191 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
20192 | p | |
20193 | n | |
20194 | b repl | |
20195 | :more1 | |
20196 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
20197 | p | |
20198 | g | |
20199 | s/.\{148\}// | |
20200 | t nl | |
20201 | :delim | |
20202 | h | |
20203 | s/\(.\{148\}\)..*/\1/ | |
20204 | t more2 | |
20205 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
20206 | p | |
20207 | b | |
20208 | :more2 | |
20209 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
20210 | p | |
20211 | g | |
20212 | s/.\{148\}// | |
20213 | t delim | |
20214 | ' <conf$$subs.awk | sed ' | |
20215 | /^[^""]/{ | |
20216 | N | |
20217 | s/\n// | |
20218 | } | |
20219 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
20220 | rm -f conf$$subs.awk | |
20221 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
20222 | _ACAWK | |
d6974efa | 20223 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
067d23c9 KY |
20224 | for (key in S) S_is_set[key] = 1 |
20225 | FS = "\a" | |
20226 | \$ac_cs_awk_pipe_init | |
20227 | } | |
20228 | { | |
20229 | line = $ 0 | |
20230 | nfields = split(line, field, "@") | |
20231 | substed = 0 | |
20232 | len = length(field[1]) | |
20233 | for (i = 2; i < nfields; i++) { | |
20234 | key = field[i] | |
20235 | keylen = length(key) | |
20236 | if (S_is_set[key]) { | |
20237 | value = S[key] | |
20238 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
20239 | len += length(value) + length(field[++i]) | |
20240 | substed = 1 | |
20241 | } else | |
20242 | len += 1 + keylen | |
20243 | } | |
20244 | if (nfields == 3 && !substed) { | |
20245 | key = field[2] | |
20246 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
20247 | \$ac_cs_awk_read_file | |
20248 | next | |
20249 | } | |
20250 | } | |
20251 | print line | |
20252 | } | |
20253 | \$ac_cs_awk_pipe_fini | |
20254 | _ACAWK | |
20255 | _ACEOF | |
20256 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
20257 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
20258 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
20259 | else | |
20260 | cat | |
d6974efa | 20261 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
2018939f | 20262 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
067d23c9 KY |
20263 | _ACEOF |
20264 | ||
2018939f AS |
20265 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
20266 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
067d23c9 KY |
20267 | # trailing colons and then remove the whole line if VPATH becomes empty |
20268 | # (actually we leave an empty line to preserve line numbers). | |
20269 | if test "x$srcdir" = x.; then | |
2018939f AS |
20270 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
20271 | h | |
20272 | s/// | |
20273 | s/^/:/ | |
20274 | s/[ ]*$/:/ | |
20275 | s/:\$(srcdir):/:/g | |
20276 | s/:\${srcdir}:/:/g | |
20277 | s/:@srcdir@:/:/g | |
20278 | s/^:*// | |
067d23c9 | 20279 | s/:*$// |
2018939f AS |
20280 | x |
20281 | s/\(=[ ]*\).*/\1/ | |
20282 | G | |
20283 | s/\n// | |
067d23c9 KY |
20284 | s/^[^=]*=[ ]*$// |
20285 | }' | |
20286 | fi | |
20287 | ||
20288 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
20289 | fi # test -n "$CONFIG_FILES" | |
20290 | ||
20291 | # Set up the scripts for CONFIG_HEADERS section. | |
20292 | # No need to generate them if there are no CONFIG_HEADERS. | |
20293 | # This happens for instance with `./config.status Makefile'. | |
20294 | if test -n "$CONFIG_HEADERS"; then | |
d6974efa | 20295 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
067d23c9 KY |
20296 | BEGIN { |
20297 | _ACEOF | |
20298 | ||
20299 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
20300 | # here-document in config.status, that substitutes the proper values into | |
20301 | # config.h.in to produce config.h. | |
20302 | ||
20303 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
20304 | # handling of long lines. | |
20305 | ac_delim='%!_!# ' | |
20306 | for ac_last_try in false false :; do | |
d6974efa PE |
20307 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
20308 | if test -z "$ac_tt"; then | |
067d23c9 KY |
20309 | break |
20310 | elif $ac_last_try; then | |
2018939f | 20311 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
067d23c9 KY |
20312 | else |
20313 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
20314 | fi | |
20315 | done | |
20316 | ||
20317 | # For the awk script, D is an array of macro values keyed by name, | |
20318 | # likewise P contains macro parameters if any. Preserve backslash | |
20319 | # newline sequences. | |
20320 | ||
20321 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
20322 | sed -n ' | |
20323 | s/.\{148\}/&'"$ac_delim"'/g | |
20324 | t rset | |
20325 | :rset | |
20326 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
20327 | t def | |
20328 | d | |
20329 | :def | |
20330 | s/\\$// | |
20331 | t bsnl | |
20332 | s/["\\]/\\&/g | |
20333 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
20334 | D["\1"]=" \3"/p | |
20335 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
20336 | d | |
20337 | :bsnl | |
20338 | s/["\\]/\\&/g | |
20339 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
20340 | D["\1"]=" \3\\\\\\n"\\/p | |
20341 | t cont | |
20342 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
20343 | t cont | |
20344 | d | |
20345 | :cont | |
20346 | n | |
20347 | s/.\{148\}/&'"$ac_delim"'/g | |
20348 | t clear | |
20349 | :clear | |
20350 | s/\\$// | |
20351 | t bsnlc | |
20352 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
20353 | d | |
20354 | :bsnlc | |
20355 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
20356 | b cont | |
20357 | ' <confdefs.h | sed ' | |
20358 | s/'"$ac_delim"'/"\\\ | |
20359 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
20360 | ||
20361 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
20362 | for (key in D) D_is_set[key] = 1 | |
20363 | FS = "\a" | |
20364 | } | |
20365 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
20366 | line = \$ 0 | |
20367 | split(line, arg, " ") | |
20368 | if (arg[1] == "#") { | |
20369 | defundef = arg[2] | |
20370 | mac1 = arg[3] | |
20371 | } else { | |
20372 | defundef = substr(arg[1], 2) | |
20373 | mac1 = arg[2] | |
20374 | } | |
20375 | split(mac1, mac2, "(") #) | |
20376 | macro = mac2[1] | |
20377 | prefix = substr(line, 1, index(line, defundef) - 1) | |
20378 | if (D_is_set[macro]) { | |
20379 | # Preserve the white space surrounding the "#". | |
20380 | print prefix "define", macro P[macro] D[macro] | |
20381 | next | |
20382 | } else { | |
20383 | # Replace #undef with comments. This is necessary, for example, | |
20384 | # in the case of _POSIX_SOURCE, which is predefined and required | |
20385 | # on some systems where configure will not decide to define it. | |
20386 | if (defundef == "undef") { | |
20387 | print "/*", prefix defundef, macro, "*/" | |
20388 | next | |
20389 | } | |
20390 | } | |
20391 | } | |
20392 | { print } | |
20393 | _ACAWK | |
20394 | _ACEOF | |
20395 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
2018939f | 20396 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
067d23c9 KY |
20397 | fi # test -n "$CONFIG_HEADERS" |
20398 | ||
20399 | ||
20400 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
20401 | shift | |
20402 | for ac_tag | |
20403 | do | |
20404 | case $ac_tag in | |
20405 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
20406 | esac | |
20407 | case $ac_mode$ac_tag in | |
20408 | :[FHL]*:*);; | |
d6974efa | 20409 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
067d23c9 KY |
20410 | :[FH]-) ac_tag=-:-;; |
20411 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
20412 | esac | |
20413 | ac_save_IFS=$IFS | |
20414 | IFS=: | |
20415 | set x $ac_tag | |
20416 | IFS=$ac_save_IFS | |
20417 | shift | |
20418 | ac_file=$1 | |
20419 | shift | |
20420 | ||
20421 | case $ac_mode in | |
20422 | :L) ac_source=$1;; | |
20423 | :[FH]) | |
20424 | ac_file_inputs= | |
20425 | for ac_f | |
20426 | do | |
20427 | case $ac_f in | |
d6974efa | 20428 | -) ac_f="$ac_tmp/stdin";; |
067d23c9 KY |
20429 | *) # Look for the file first in the build tree, then in the source tree |
20430 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
20431 | # because $ac_f cannot contain `:'. | |
20432 | test -f "$ac_f" || | |
20433 | case $ac_f in | |
20434 | [\\/$]*) false;; | |
20435 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
20436 | esac || | |
d6974efa | 20437 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
067d23c9 KY |
20438 | esac |
20439 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
20440 | as_fn_append ac_file_inputs " '$ac_f'" | |
20441 | done | |
20442 | ||
20443 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
20444 | # use $as_me), people would be surprised to read: | |
20445 | # /* config.h. Generated by config.status. */ | |
20446 | configure_input='Generated from '` | |
20447 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
20448 | `' by configure.' | |
20449 | if test x"$ac_file" != x-; then | |
20450 | configure_input="$ac_file. $configure_input" | |
20451 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
20452 | $as_echo "$as_me: creating $ac_file" >&6;} | |
20453 | fi | |
20454 | # Neutralize special characters interpreted by sed in replacement strings. | |
20455 | case $configure_input in #( | |
20456 | *\&* | *\|* | *\\* ) | |
20457 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
20458 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
20459 | *) ac_sed_conf_input=$configure_input;; | |
20460 | esac | |
20461 | ||
20462 | case $ac_tag in | |
d6974efa PE |
20463 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
20464 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
067d23c9 KY |
20465 | esac |
20466 | ;; | |
20467 | esac | |
20468 | ||
20469 | ac_dir=`$as_dirname -- "$ac_file" || | |
20470 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
20471 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
20472 | X"$ac_file" : 'X\(//\)$' \| \ | |
20473 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
20474 | $as_echo X"$ac_file" | | |
20475 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
20476 | s//\1/ | |
20477 | q | |
20478 | } | |
20479 | /^X\(\/\/\)[^/].*/{ | |
20480 | s//\1/ | |
20481 | q | |
20482 | } | |
20483 | /^X\(\/\/\)$/{ | |
20484 | s//\1/ | |
20485 | q | |
20486 | } | |
20487 | /^X\(\/\).*/{ | |
20488 | s//\1/ | |
20489 | q | |
20490 | } | |
20491 | s/.*/./; q'` | |
20492 | as_dir="$ac_dir"; as_fn_mkdir_p | |
20493 | ac_builddir=. | |
20494 | ||
20495 | case "$ac_dir" in | |
20496 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
20497 | *) | |
20498 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
20499 | # A ".." for each directory in $ac_dir_suffix. | |
20500 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
20501 | case $ac_top_builddir_sub in | |
20502 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
20503 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
20504 | esac ;; | |
20505 | esac | |
20506 | ac_abs_top_builddir=$ac_pwd | |
20507 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
20508 | # for backward compatibility: | |
20509 | ac_top_builddir=$ac_top_build_prefix | |
20510 | ||
20511 | case $srcdir in | |
20512 | .) # We are building in place. | |
20513 | ac_srcdir=. | |
20514 | ac_top_srcdir=$ac_top_builddir_sub | |
20515 | ac_abs_top_srcdir=$ac_pwd ;; | |
20516 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
20517 | ac_srcdir=$srcdir$ac_dir_suffix; | |
20518 | ac_top_srcdir=$srcdir | |
20519 | ac_abs_top_srcdir=$srcdir ;; | |
20520 | *) # Relative name. | |
20521 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
20522 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
20523 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
20524 | esac | |
20525 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
20526 | ||
20527 | ||
20528 | case $ac_mode in | |
20529 | :F) | |
20530 | # | |
20531 | # CONFIG_FILE | |
20532 | # | |
20533 | ||
20534 | case $INSTALL in | |
20535 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
20536 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
20537 | esac | |
743c80a7 PE |
20538 | ac_MKDIR_P=$MKDIR_P |
20539 | case $MKDIR_P in | |
20540 | [\\/$]* | ?:[\\/]* ) ;; | |
20541 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
20542 | esac | |
067d23c9 KY |
20543 | _ACEOF |
20544 | ||
20545 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
20546 | # If the template does not know about datarootdir, expand it. | |
20547 | # FIXME: This hack should be removed a few years after 2.60. | |
20548 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
20549 | ac_sed_dataroot=' | |
20550 | /datarootdir/ { | |
20551 | p | |
20552 | q | |
20553 | } | |
20554 | /@datadir@/p | |
20555 | /@docdir@/p | |
20556 | /@infodir@/p | |
20557 | /@localedir@/p | |
20558 | /@mandir@/p' | |
20559 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
20560 | *datarootdir*) ac_datarootdir_seen=yes;; | |
20561 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
20562 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
20563 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
20564 | _ACEOF | |
20565 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
20566 | ac_datarootdir_hack=' | |
20567 | s&@datadir@&$datadir&g | |
20568 | s&@docdir@&$docdir&g | |
20569 | s&@infodir@&$infodir&g | |
20570 | s&@localedir@&$localedir&g | |
20571 | s&@mandir@&$mandir&g | |
20572 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
20573 | esac | |
20574 | _ACEOF | |
20575 | ||
20576 | # Neutralize VPATH when `$srcdir' = `.'. | |
20577 | # Shell code in configure.ac might set extrasub. | |
20578 | # FIXME: do we really want to maintain this feature? | |
20579 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
20580 | ac_sed_extra="$ac_vpsub | |
20581 | $extrasub | |
20582 | _ACEOF | |
20583 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
20584 | :t | |
20585 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
20586 | s|@configure_input@|$ac_sed_conf_input|;t t | |
20587 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
20588 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
20589 | s&@srcdir@&$ac_srcdir&;t t | |
20590 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
20591 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
20592 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
20593 | s&@builddir@&$ac_builddir&;t t | |
20594 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
20595 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
20596 | s&@INSTALL@&$ac_INSTALL&;t t | |
743c80a7 | 20597 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
067d23c9 KY |
20598 | $ac_datarootdir_hack |
20599 | " | |
20600 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
20601 | if $ac_cs_awk_getline; then | |
d6974efa | 20602 | $AWK -f "$ac_tmp/subs.awk" |
067d23c9 | 20603 | else |
d6974efa PE |
20604 | $AWK -f "$ac_tmp/subs.awk" | $SHELL |
20605 | fi \ | |
20606 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
067d23c9 KY |
20607 | |
20608 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
d6974efa PE |
20609 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
20610 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
20611 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
067d23c9 | 20612 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
2018939f | 20613 | which seems to be undefined. Please make sure it is defined" >&5 |
067d23c9 | 20614 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
2018939f | 20615 | which seems to be undefined. Please make sure it is defined" >&2;} |
067d23c9 | 20616 | |
d6974efa | 20617 | rm -f "$ac_tmp/stdin" |
067d23c9 | 20618 | case $ac_file in |
d6974efa PE |
20619 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
20620 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
067d23c9 | 20621 | esac \ |
2018939f | 20622 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
067d23c9 KY |
20623 | ;; |
20624 | :H) | |
20625 | # | |
20626 | # CONFIG_HEADER | |
20627 | # | |
20628 | if test x"$ac_file" != x-; then | |
20629 | { | |
20630 | $as_echo "/* $configure_input */" \ | |
d6974efa PE |
20631 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
20632 | } >"$ac_tmp/config.h" \ | |
2018939f | 20633 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
d6974efa | 20634 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
067d23c9 KY |
20635 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
20636 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
20637 | else | |
20638 | rm -f "$ac_file" | |
d6974efa | 20639 | mv "$ac_tmp/config.h" "$ac_file" \ |
2018939f | 20640 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
067d23c9 KY |
20641 | fi |
20642 | else | |
20643 | $as_echo "/* $configure_input */" \ | |
d6974efa | 20644 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
2018939f | 20645 | || as_fn_error $? "could not create -" "$LINENO" 5 |
067d23c9 | 20646 | fi |
743c80a7 PE |
20647 | # Compute "$ac_file"'s index in $config_headers. |
20648 | _am_arg="$ac_file" | |
20649 | _am_stamp_count=1 | |
20650 | for _am_header in $config_headers :; do | |
20651 | case $_am_header in | |
20652 | $_am_arg | $_am_arg:* ) | |
20653 | break ;; | |
20654 | * ) | |
20655 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
20656 | esac | |
20657 | done | |
20658 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
20659 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
20660 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
20661 | X"$_am_arg" : 'X\(//\)$' \| \ | |
20662 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
20663 | $as_echo X"$_am_arg" | | |
20664 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
20665 | s//\1/ | |
20666 | q | |
20667 | } | |
20668 | /^X\(\/\/\)[^/].*/{ | |
20669 | s//\1/ | |
20670 | q | |
20671 | } | |
20672 | /^X\(\/\/\)$/{ | |
20673 | s//\1/ | |
20674 | q | |
20675 | } | |
20676 | /^X\(\/\).*/{ | |
20677 | s//\1/ | |
20678 | q | |
20679 | } | |
20680 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
067d23c9 KY |
20681 | ;; |
20682 | ||
20683 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | |
20684 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
20685 | ;; | |
20686 | esac | |
20687 | ||
20688 | ||
20689 | case $ac_file$ac_mode in | |
743c80a7 PE |
20690 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
20691 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
20692 | # are listed without --file. Let's play safe and only enable the eval | |
20693 | # if we detect the quoting. | |
20694 | case $CONFIG_FILES in | |
20695 | *\'*) eval set x "$CONFIG_FILES" ;; | |
20696 | *) set x $CONFIG_FILES ;; | |
20697 | esac | |
20698 | shift | |
20699 | for mf | |
20700 | do | |
20701 | # Strip MF so we end up with the name of the file. | |
20702 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
20703 | # Check whether this is an Automake generated Makefile or not. | |
20704 | # We used to match only the files named `Makefile.in', but | |
20705 | # some people rename them; so instead we look at the file content. | |
20706 | # Grep'ing the first line is not enough: some people post-process | |
20707 | # each Makefile.in and add a new line on top of each file to say so. | |
20708 | # Grep'ing the whole file is not good either: AIX grep has a line | |
20709 | # limit of 2048, but all sed's we know have understand at least 4000. | |
20710 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
20711 | dirpart=`$as_dirname -- "$mf" || | |
20712 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
20713 | X"$mf" : 'X\(//\)[^/]' \| \ | |
20714 | X"$mf" : 'X\(//\)$' \| \ | |
20715 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
20716 | $as_echo X"$mf" | | |
20717 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
20718 | s//\1/ | |
20719 | q | |
20720 | } | |
20721 | /^X\(\/\/\)[^/].*/{ | |
20722 | s//\1/ | |
20723 | q | |
20724 | } | |
20725 | /^X\(\/\/\)$/{ | |
20726 | s//\1/ | |
20727 | q | |
20728 | } | |
20729 | /^X\(\/\).*/{ | |
20730 | s//\1/ | |
20731 | q | |
20732 | } | |
20733 | s/.*/./; q'` | |
20734 | else | |
20735 | continue | |
20736 | fi | |
20737 | # Extract the definition of DEPDIR, am__include, and am__quote | |
20738 | # from the Makefile without running `make'. | |
20739 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
20740 | test -z "$DEPDIR" && continue | |
20741 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
20742 | test -z "am__include" && continue | |
20743 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
20744 | # When using ansi2knr, U may be empty or an underscore; expand it | |
20745 | U=`sed -n 's/^U = //p' < "$mf"` | |
20746 | # Find all dependency output files, they are included files with | |
20747 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
20748 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
20749 | # expansion. | |
20750 | for file in `sed -n " | |
20751 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
20752 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
20753 | # Make sure the directory exists. | |
20754 | test -f "$dirpart/$file" && continue | |
20755 | fdir=`$as_dirname -- "$file" || | |
20756 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
20757 | X"$file" : 'X\(//\)[^/]' \| \ | |
20758 | X"$file" : 'X\(//\)$' \| \ | |
20759 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
20760 | $as_echo X"$file" | | |
20761 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
20762 | s//\1/ | |
20763 | q | |
20764 | } | |
20765 | /^X\(\/\/\)[^/].*/{ | |
20766 | s//\1/ | |
20767 | q | |
20768 | } | |
20769 | /^X\(\/\/\)$/{ | |
20770 | s//\1/ | |
20771 | q | |
20772 | } | |
20773 | /^X\(\/\).*/{ | |
20774 | s//\1/ | |
20775 | q | |
20776 | } | |
20777 | s/.*/./; q'` | |
20778 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
20779 | # echo "creating $dirpart/$file" | |
20780 | echo '# dummy' > "$dirpart/$file" | |
20781 | done | |
20782 | done | |
20783 | } | |
20784 | ;; | |
9411886d | 20785 | "mkdirs":C) |
067d23c9 KY |
20786 | for dir in etc lisp ; do |
20787 | test -d ${dir} || mkdir ${dir} | |
20788 | done | |
9411886d PE |
20789 | ;; |
20790 | "epaths":C) | |
067d23c9 KY |
20791 | echo creating src/epaths.h |
20792 | ${MAKE-make} epaths-force | |
9411886d PE |
20793 | ;; |
20794 | "gdbinit":C) | |
067d23c9 KY |
20795 | if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then |
20796 | echo creating src/.gdbinit | |
20797 | echo source $srcdir/src/.gdbinit > src/.gdbinit | |
20798 | fi | |
067d23c9 KY |
20799 | ;; |
20800 | ||
20801 | esac | |
20802 | done # for ac_tag | |
20803 | ||
20804 | ||
20805 | as_fn_exit 0 | |
20806 | _ACEOF | |
20807 | ac_clean_files=$ac_clean_files_save | |
20808 | ||
20809 | test $ac_write_fail = 0 || | |
2018939f | 20810 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
067d23c9 KY |
20811 | |
20812 | ||
20813 | # configure is writing to config.log, and then calls config.status. | |
20814 | # config.status does its own redirection, appending to config.log. | |
20815 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
20816 | # by configure, so config.status won't be able to write to it; its | |
20817 | # output is simply discarded. So we exec the FD to /dev/null, | |
20818 | # effectively closing config.log, so it can be properly (re)opened and | |
20819 | # appended to by config.status. When coming back to configure, we | |
20820 | # need to make the FD available again. | |
20821 | if test "$no_create" != yes; then | |
20822 | ac_cs_success=: | |
20823 | ac_config_status_args= | |
20824 | test "$silent" = yes && | |
20825 | ac_config_status_args="$ac_config_status_args --quiet" | |
20826 | exec 5>/dev/null | |
20827 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
20828 | exec 5>>config.log | |
20829 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
20830 | # would make configure fail if this is the last instruction. | |
2018939f | 20831 | $ac_cs_success || as_fn_exit 1 |
067d23c9 KY |
20832 | fi |
20833 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
20834 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
20835 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
20836 | fi | |
20837 | ||
9411886d | 20838 |