Mercurial > emacs
comparison configure @ 108274:8416c8d075e3
Define LIB_STANDARD and START_FILES using autoconf.
* s/usg5-4.h (LIB_STANDARD):
* s/netbsd.h (START_FILES):
* s/irix6-5.h (LIB_STANDARD):
* s/hpux10-20.h (LIB_STANDARD, START_FILES):
* s/gnu-linux.h (START_FILES, LIB_STANDARD):
* s/freebsd.h (START_FILES):
* s/darwin.h (START_FILES):
* s/cygwin.h (START_FILES):
* s/aix4-2.h (LIB_STANDARD):
* m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
* Makefile.in (STARTFILES): Rename to START_FILES, define using
autoconf, not cpp.
Define START_FILES and LIB_STANDARD using autoconf.
* configure.in (START_FILES, LIB_STANDARD): New definitions, moved
here from src/s/*.h.
(HAVE_CRTIN): Remove, inline logic in the netbsd
START_FILES/LIB_STANDARD computation.
author | Dan Nicolaescu <dann@ics.uci.edu> |
---|---|
date | Thu, 06 May 2010 17:30:56 -0700 |
parents | 43dc83feb3b6 |
children | 2b6edf94b41c |
comparison
equal
deleted
inserted
replaced
108273:de8de918fbab | 108274:8416c8d075e3 |
---|---|
1 #! /bin/sh | 1 #! /bin/sh |
2 # Guess values for system-dependent variables and create Makefiles. | 2 # Guess values for system-dependent variables and create Makefiles. |
3 # Generated by GNU Autoconf 2.62 for emacs 24.0.50. | 3 # Generated by GNU Autoconf 2.65 for emacs 24.0.50. |
4 # | |
4 # | 5 # |
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | 6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. | 7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, |
8 # Inc. | |
9 # | |
10 # | |
7 # This configure script is free software; the Free Software Foundation | 11 # This configure script is free software; the Free Software Foundation |
8 # gives unlimited permission to copy, distribute and modify it. | 12 # gives unlimited permission to copy, distribute and modify it. |
9 ## --------------------- ## | 13 ## -------------------- ## |
10 ## M4sh Initialization. ## | 14 ## M4sh Initialization. ## |
11 ## --------------------- ## | 15 ## -------------------- ## |
12 | 16 |
13 # Be more Bourne compatible | 17 # Be more Bourne compatible |
14 DUALCASE=1; export DUALCASE # for MKS sh | 18 DUALCASE=1; export DUALCASE # for MKS sh |
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | 19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
16 emulate sh | 20 emulate sh |
17 NULLCMD=: | 21 NULLCMD=: |
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
19 # is contrary to our usage. Disable this feature. | 23 # is contrary to our usage. Disable this feature. |
20 alias -g '${1+"$@"}'='"$@"' | 24 alias -g '${1+"$@"}'='"$@"' |
21 setopt NO_GLOB_SUBST | 25 setopt NO_GLOB_SUBST |
22 else | 26 else |
23 case `(set -o) 2>/dev/null` in | 27 case `(set -o) 2>/dev/null` in #( |
24 *posix*) set -o posix ;; | 28 *posix*) : |
29 set -o posix ;; #( | |
30 *) : | |
31 ;; | |
25 esac | 32 esac |
26 | 33 fi |
27 fi | 34 |
28 | |
29 | |
30 | |
31 | |
32 # PATH needs CR | |
33 # Avoid depending upon Character Ranges. | |
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
37 as_cr_digits='0123456789' | |
38 as_cr_alnum=$as_cr_Letters$as_cr_digits | |
39 | 35 |
40 as_nl=' | 36 as_nl=' |
41 ' | 37 ' |
42 export as_nl | 38 export as_nl |
43 # Printing a long string crashes Solaris 7 /usr/bin/printf. | 39 # Printing a long string crashes Solaris 7 /usr/bin/printf. |
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | 40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | 41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
46 as_echo=$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 |
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | 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 | |
48 as_echo='printf %s\n' | 50 as_echo='printf %s\n' |
49 as_echo_n='printf %s' | 51 as_echo_n='printf %s' |
50 else | 52 else |
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
53 as_echo_n='/usr/ucb/echo -n' | 55 as_echo_n='/usr/ucb/echo -n' |
54 else | 56 else |
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
56 as_echo_n_body='eval | 58 as_echo_n_body='eval |
57 arg=$1; | 59 arg=$1; |
58 case $arg in | 60 case $arg in #( |
59 *"$as_nl"*) | 61 *"$as_nl"*) |
60 expr "X$arg" : "X\\(.*\\)$as_nl"; | 62 expr "X$arg" : "X\\(.*\\)$as_nl"; |
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
62 esac; | 64 esac; |
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
77 PATH_SEPARATOR=';' | 79 PATH_SEPARATOR=';' |
78 } | 80 } |
79 fi | 81 fi |
80 | 82 |
81 # Support unset when possible. | |
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
83 as_unset=unset | |
84 else | |
85 as_unset=false | |
86 fi | |
87 | |
88 | 83 |
89 # IFS | 84 # IFS |
90 # We need space, tab and new line, in precisely that order. Quoting is | 85 # We need space, tab and new line, in precisely that order. Quoting is |
91 # there to prevent editors from complaining about space-tab. | 86 # there to prevent editors from complaining about space-tab. |
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word | 87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
93 # splitting by setting IFS to empty value.) | 88 # splitting by setting IFS to empty value.) |
94 IFS=" "" $as_nl" | 89 IFS=" "" $as_nl" |
95 | 90 |
96 # Find who we are. Look in the path if we contain no directory separator. | 91 # Find who we are. Look in the path if we contain no directory separator. |
97 case $0 in | 92 case $0 in #(( |
98 *[\\/]* ) as_myself=$0 ;; | 93 *[\\/]* ) as_myself=$0 ;; |
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
100 for as_dir in $PATH | 95 for as_dir in $PATH |
101 do | 96 do |
102 IFS=$as_save_IFS | 97 IFS=$as_save_IFS |
103 test -z "$as_dir" && as_dir=. | 98 test -z "$as_dir" && as_dir=. |
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | 99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
105 done | 100 done |
106 IFS=$as_save_IFS | 101 IFS=$as_save_IFS |
107 | 102 |
108 ;; | 103 ;; |
109 esac | 104 esac |
110 # We did not find ourselves, most probably we were run as `sh COMMAND' | 105 # We did not find ourselves, most probably we were run as `sh COMMAND' |
112 if test "x$as_myself" = x; then | 107 if test "x$as_myself" = x; then |
113 as_myself=$0 | 108 as_myself=$0 |
114 fi | 109 fi |
115 if test ! -f "$as_myself"; then | 110 if test ! -f "$as_myself"; then |
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | 111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
117 { (exit 1); exit 1; } | 112 exit 1 |
118 fi | 113 fi |
119 | 114 |
120 # Work around bugs in pre-3.0 UWIN ksh. | 115 # Unset variables that we do not need and which cause bugs (e.g. in |
121 for as_var in ENV MAIL MAILPATH | 116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | 117 # suppresses any "Segmentation fault" message there. '((' could |
118 # trigger a bug in pdksh 5.2.14. | |
119 for as_var in BASH_ENV ENV MAIL MAILPATH | |
120 do eval test x\${$as_var+set} = xset \ | |
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
123 done | 122 done |
124 PS1='$ ' | 123 PS1='$ ' |
125 PS2='> ' | 124 PS2='> ' |
126 PS4='+ ' | 125 PS4='+ ' |
127 | 126 |
129 LC_ALL=C | 128 LC_ALL=C |
130 export LC_ALL | 129 export LC_ALL |
131 LANGUAGE=C | 130 LANGUAGE=C |
132 export LANGUAGE | 131 export LANGUAGE |
133 | 132 |
134 # Required to use basename. | 133 # CDPATH. |
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
135 | |
136 if test "x$CONFIG_SHELL" = x; then | |
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
138 emulate sh | |
139 NULLCMD=: | |
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
141 # is contrary to our usage. Disable this feature. | |
142 alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
143 setopt NO_GLOB_SUBST | |
144 else | |
145 case \`(set -o) 2>/dev/null\` in #( | |
146 *posix*) : | |
147 set -o posix ;; #( | |
148 *) : | |
149 ;; | |
150 esac | |
151 fi | |
152 " | |
153 as_required="as_fn_return () { (exit \$1); } | |
154 as_fn_success () { as_fn_return 0; } | |
155 as_fn_failure () { as_fn_return 1; } | |
156 as_fn_ret_success () { return 0; } | |
157 as_fn_ret_failure () { return 1; } | |
158 | |
159 exitcode=0 | |
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
165 | |
166 else | |
167 exitcode=1; echo positional parameters were not saved. | |
168 fi | |
169 test x\$exitcode = x0 || exit 1" | |
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
174 test \$(( 1 + 1 )) = 2 || exit 1" | |
175 if (eval "$as_required") 2>/dev/null; then : | |
176 as_have_required=yes | |
177 else | |
178 as_have_required=no | |
179 fi | |
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
181 | |
182 else | |
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
184 as_found=false | |
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
186 do | |
187 IFS=$as_save_IFS | |
188 test -z "$as_dir" && as_dir=. | |
189 as_found=: | |
190 case $as_dir in #( | |
191 /*) | |
192 for as_base in sh bash ksh sh5; do | |
193 # Try only shells that exist, to save several forks. | |
194 as_shell=$as_dir/$as_base | |
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
197 CONFIG_SHELL=$as_shell as_have_required=yes | |
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
199 break 2 | |
200 fi | |
201 fi | |
202 done;; | |
203 esac | |
204 as_found=false | |
205 done | |
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
208 CONFIG_SHELL=$SHELL as_have_required=yes | |
209 fi; } | |
210 IFS=$as_save_IFS | |
211 | |
212 | |
213 if test "x$CONFIG_SHELL" != x; then : | |
214 # We cannot yet assume a decent shell, so we have to provide a | |
215 # neutralization value for shells without unset; and this also | |
216 # works around shells that cannot unset nonexistent variables. | |
217 BASH_ENV=/dev/null | |
218 ENV=/dev/null | |
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
220 export CONFIG_SHELL | |
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
222 fi | |
223 | |
224 if test x$as_have_required = xno; then : | |
225 $as_echo "$0: This script requires a shell more modern than all" | |
226 $as_echo "$0: the shells that I found on your system." | |
227 if test x${ZSH_VERSION+set} = xset ; then | |
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
230 else | |
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, | |
232 $0: including any error possibly output before this | |
233 $0: message. Then install a modern shell, or manually run | |
234 $0: the script under such a shell if you do have one." | |
235 fi | |
236 exit 1 | |
237 fi | |
238 fi | |
239 fi | |
240 SHELL=${CONFIG_SHELL-/bin/sh} | |
241 export SHELL | |
242 # Unset more variables known to interfere with behavior of common tools. | |
243 CLICOLOR_FORCE= GREP_OPTIONS= | |
244 unset CLICOLOR_FORCE GREP_OPTIONS | |
245 | |
246 ## --------------------- ## | |
247 ## M4sh Shell Functions. ## | |
248 ## --------------------- ## | |
249 # as_fn_unset VAR | |
250 # --------------- | |
251 # Portably unset VAR. | |
252 as_fn_unset () | |
253 { | |
254 { eval $1=; unset $1;} | |
255 } | |
256 as_unset=as_fn_unset | |
257 | |
258 # as_fn_set_status STATUS | |
259 # ----------------------- | |
260 # Set $? to STATUS, without forking. | |
261 as_fn_set_status () | |
262 { | |
263 return $1 | |
264 } # as_fn_set_status | |
265 | |
266 # as_fn_exit STATUS | |
267 # ----------------- | |
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
269 as_fn_exit () | |
270 { | |
271 set +e | |
272 as_fn_set_status $1 | |
273 exit $1 | |
274 } # as_fn_exit | |
275 | |
276 # as_fn_mkdir_p | |
277 # ------------- | |
278 # Create "$as_dir" as a directory, including parents if necessary. | |
279 as_fn_mkdir_p () | |
280 { | |
281 | |
282 case $as_dir in #( | |
283 -*) as_dir=./$as_dir;; | |
284 esac | |
285 test -d "$as_dir" || eval $as_mkdir_p || { | |
286 as_dirs= | |
287 while :; do | |
288 case $as_dir in #( | |
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
290 *) as_qdir=$as_dir;; | |
291 esac | |
292 as_dirs="'$as_qdir' $as_dirs" | |
293 as_dir=`$as_dirname -- "$as_dir" || | |
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
295 X"$as_dir" : 'X\(//\)[^/]' \| \ | |
296 X"$as_dir" : 'X\(//\)$' \| \ | |
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
298 $as_echo X"$as_dir" | | |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
300 s//\1/ | |
301 q | |
302 } | |
303 /^X\(\/\/\)[^/].*/{ | |
304 s//\1/ | |
305 q | |
306 } | |
307 /^X\(\/\/\)$/{ | |
308 s//\1/ | |
309 q | |
310 } | |
311 /^X\(\/\).*/{ | |
312 s//\1/ | |
313 q | |
314 } | |
315 s/.*/./; q'` | |
316 test -d "$as_dir" && break | |
317 done | |
318 test -z "$as_dirs" || eval "mkdir $as_dirs" | |
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
320 | |
321 | |
322 } # as_fn_mkdir_p | |
323 # as_fn_append VAR VALUE | |
324 # ---------------------- | |
325 # Append the text in VALUE to the end of the definition contained in VAR. Take | |
326 # advantage of any shell optimizations that allow amortized linear growth over | |
327 # repeated appends, instead of the typical quadratic growth present in naive | |
328 # implementations. | |
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
330 eval 'as_fn_append () | |
331 { | |
332 eval $1+=\$2 | |
333 }' | |
334 else | |
335 as_fn_append () | |
336 { | |
337 eval $1=\$$1\$2 | |
338 } | |
339 fi # as_fn_append | |
340 | |
341 # as_fn_arith ARG... | |
342 # ------------------ | |
343 # Perform arithmetic evaluation on the ARGs, and store the result in the | |
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
345 # must be portable across $(()) and expr. | |
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
347 eval 'as_fn_arith () | |
348 { | |
349 as_val=$(( $* )) | |
350 }' | |
351 else | |
352 as_fn_arith () | |
353 { | |
354 as_val=`expr "$@" || test $? -eq 1` | |
355 } | |
356 fi # as_fn_arith | |
357 | |
358 | |
359 # as_fn_error ERROR [LINENO LOG_FD] | |
360 # --------------------------------- | |
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
363 # script with status $?, using 1 if that was 0. | |
364 as_fn_error () | |
365 { | |
366 as_status=$?; test $as_status -eq 0 && as_status=1 | |
367 if test "$3"; then | |
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
370 fi | |
371 $as_echo "$as_me: error: $1" >&2 | |
372 as_fn_exit $as_status | |
373 } # as_fn_error | |
374 | |
135 if expr a : '\(a\)' >/dev/null 2>&1 && | 375 if expr a : '\(a\)' >/dev/null 2>&1 && |
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then | 376 test "X`expr 00001 : '.*\(...\)'`" = X001; then |
137 as_expr=expr | 377 as_expr=expr |
138 else | 378 else |
139 as_expr=false | 379 as_expr=false |
143 as_basename=basename | 383 as_basename=basename |
144 else | 384 else |
145 as_basename=false | 385 as_basename=false |
146 fi | 386 fi |
147 | 387 |
148 | 388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
149 # Name of the executable. | 389 as_dirname=dirname |
390 else | |
391 as_dirname=false | |
392 fi | |
393 | |
150 as_me=`$as_basename -- "$0" || | 394 as_me=`$as_basename -- "$0" || |
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | 395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
152 X"$0" : 'X\(//\)$' \| \ | 396 X"$0" : 'X\(//\)$' \| \ |
153 X"$0" : 'X\(/\)' \| . 2>/dev/null || | 397 X"$0" : 'X\(/\)' \| . 2>/dev/null || |
154 $as_echo X/"$0" | | 398 $as_echo X/"$0" | |
164 s//\1/ | 408 s//\1/ |
165 q | 409 q |
166 } | 410 } |
167 s/.*/./; q'` | 411 s/.*/./; q'` |
168 | 412 |
169 # CDPATH. | 413 # Avoid depending upon Character Ranges. |
170 $as_unset CDPATH | 414 as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
171 | 415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
172 | 416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
173 if test "x$CONFIG_SHELL" = x; then | 417 as_cr_digits='0123456789' |
174 if (eval ":") 2>/dev/null; then | 418 as_cr_alnum=$as_cr_Letters$as_cr_digits |
175 as_have_required=yes | 419 |
176 else | 420 |
177 as_have_required=no | 421 as_lineno_1=$LINENO as_lineno_1a=$LINENO |
178 fi | 422 as_lineno_2=$LINENO as_lineno_2a=$LINENO |
179 | 423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
180 if test $as_have_required = yes && (eval ": | 424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
181 (as_func_return () { | 425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
182 (exit \$1) | |
183 } | |
184 as_func_success () { | |
185 as_func_return 0 | |
186 } | |
187 as_func_failure () { | |
188 as_func_return 1 | |
189 } | |
190 as_func_ret_success () { | |
191 return 0 | |
192 } | |
193 as_func_ret_failure () { | |
194 return 1 | |
195 } | |
196 | |
197 exitcode=0 | |
198 if as_func_success; then | |
199 : | |
200 else | |
201 exitcode=1 | |
202 echo as_func_success failed. | |
203 fi | |
204 | |
205 if as_func_failure; then | |
206 exitcode=1 | |
207 echo as_func_failure succeeded. | |
208 fi | |
209 | |
210 if as_func_ret_success; then | |
211 : | |
212 else | |
213 exitcode=1 | |
214 echo as_func_ret_success failed. | |
215 fi | |
216 | |
217 if as_func_ret_failure; then | |
218 exitcode=1 | |
219 echo as_func_ret_failure succeeded. | |
220 fi | |
221 | |
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
223 : | |
224 else | |
225 exitcode=1 | |
226 echo positional parameters were not saved. | |
227 fi | |
228 | |
229 test \$exitcode = 0) || { (exit 1); exit 1; } | |
230 | |
231 ( | |
232 as_lineno_1=\$LINENO | |
233 as_lineno_2=\$LINENO | |
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
236 ") 2> /dev/null; then | |
237 : | |
238 else | |
239 as_candidate_shells= | |
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
242 do | |
243 IFS=$as_save_IFS | |
244 test -z "$as_dir" && as_dir=. | |
245 case $as_dir in | |
246 /*) | |
247 for as_base in sh bash ksh sh5; do | |
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
249 done;; | |
250 esac | |
251 done | |
252 IFS=$as_save_IFS | |
253 | |
254 | |
255 for as_shell in $as_candidate_shells $SHELL; do | |
256 # Try only shells that exist, to save several forks. | |
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
258 { ("$as_shell") 2> /dev/null <<\_ASEOF | |
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
260 emulate sh | |
261 NULLCMD=: | |
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
263 # is contrary to our usage. Disable this feature. | |
264 alias -g '${1+"$@"}'='"$@"' | |
265 setopt NO_GLOB_SUBST | |
266 else | |
267 case `(set -o) 2>/dev/null` in | |
268 *posix*) set -o posix ;; | |
269 esac | |
270 | |
271 fi | |
272 | |
273 | |
274 : | |
275 _ASEOF | |
276 }; then | |
277 CONFIG_SHELL=$as_shell | |
278 as_have_required=yes | |
279 if { "$as_shell" 2> /dev/null <<\_ASEOF | |
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
281 emulate sh | |
282 NULLCMD=: | |
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
284 # is contrary to our usage. Disable this feature. | |
285 alias -g '${1+"$@"}'='"$@"' | |
286 setopt NO_GLOB_SUBST | |
287 else | |
288 case `(set -o) 2>/dev/null` in | |
289 *posix*) set -o posix ;; | |
290 esac | |
291 | |
292 fi | |
293 | |
294 | |
295 : | |
296 (as_func_return () { | |
297 (exit $1) | |
298 } | |
299 as_func_success () { | |
300 as_func_return 0 | |
301 } | |
302 as_func_failure () { | |
303 as_func_return 1 | |
304 } | |
305 as_func_ret_success () { | |
306 return 0 | |
307 } | |
308 as_func_ret_failure () { | |
309 return 1 | |
310 } | |
311 | |
312 exitcode=0 | |
313 if as_func_success; then | |
314 : | |
315 else | |
316 exitcode=1 | |
317 echo as_func_success failed. | |
318 fi | |
319 | |
320 if as_func_failure; then | |
321 exitcode=1 | |
322 echo as_func_failure succeeded. | |
323 fi | |
324 | |
325 if as_func_ret_success; then | |
326 : | |
327 else | |
328 exitcode=1 | |
329 echo as_func_ret_success failed. | |
330 fi | |
331 | |
332 if as_func_ret_failure; then | |
333 exitcode=1 | |
334 echo as_func_ret_failure succeeded. | |
335 fi | |
336 | |
337 if ( set x; as_func_ret_success y && test x = "$1" ); then | |
338 : | |
339 else | |
340 exitcode=1 | |
341 echo positional parameters were not saved. | |
342 fi | |
343 | |
344 test $exitcode = 0) || { (exit 1); exit 1; } | |
345 | |
346 ( | |
347 as_lineno_1=$LINENO | |
348 as_lineno_2=$LINENO | |
349 test "x$as_lineno_1" != "x$as_lineno_2" && | |
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } | |
351 | |
352 _ASEOF | |
353 }; then | |
354 break | |
355 fi | |
356 | |
357 fi | |
358 | |
359 done | |
360 | |
361 if test "x$CONFIG_SHELL" != x; then | |
362 for as_var in BASH_ENV ENV | |
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
364 done | |
365 export CONFIG_SHELL | |
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
367 fi | |
368 | |
369 | |
370 if test $as_have_required = no; then | |
371 echo This script requires a shell more modern than all the | |
372 echo shells that I found on your system. Please install a | |
373 echo modern shell, or manually run the script under such a | |
374 echo shell if you do have one. | |
375 { (exit 1); exit 1; } | |
376 fi | |
377 | |
378 | |
379 fi | |
380 | |
381 fi | |
382 | |
383 | |
384 | |
385 (eval "as_func_return () { | |
386 (exit \$1) | |
387 } | |
388 as_func_success () { | |
389 as_func_return 0 | |
390 } | |
391 as_func_failure () { | |
392 as_func_return 1 | |
393 } | |
394 as_func_ret_success () { | |
395 return 0 | |
396 } | |
397 as_func_ret_failure () { | |
398 return 1 | |
399 } | |
400 | |
401 exitcode=0 | |
402 if as_func_success; then | |
403 : | |
404 else | |
405 exitcode=1 | |
406 echo as_func_success failed. | |
407 fi | |
408 | |
409 if as_func_failure; then | |
410 exitcode=1 | |
411 echo as_func_failure succeeded. | |
412 fi | |
413 | |
414 if as_func_ret_success; then | |
415 : | |
416 else | |
417 exitcode=1 | |
418 echo as_func_ret_success failed. | |
419 fi | |
420 | |
421 if as_func_ret_failure; then | |
422 exitcode=1 | |
423 echo as_func_ret_failure succeeded. | |
424 fi | |
425 | |
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
427 : | |
428 else | |
429 exitcode=1 | |
430 echo positional parameters were not saved. | |
431 fi | |
432 | |
433 test \$exitcode = 0") || { | |
434 echo No shell found that supports shell functions. | |
435 echo Please tell bug-autoconf@gnu.org about your system, | |
436 echo including any error possibly output before this message. | |
437 echo This can help us improve future autoconf versions. | |
438 echo Configuration will now proceed without shell functions. | |
439 } | |
440 | |
441 | |
442 | |
443 as_lineno_1=$LINENO | |
444 as_lineno_2=$LINENO | |
445 test "x$as_lineno_1" != "x$as_lineno_2" && | |
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
447 | |
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
449 # uniformly replaced by the line number. The first 'sed' inserts a | |
450 # line-number line after each line using $LINENO; the second 'sed' | |
451 # does the real work. The second script uses 'N' to pair each | |
452 # line-number line with the line containing $LINENO, and appends | |
453 # trailing '-' during substitution so that $LINENO is not a special | |
454 # case at line end. | |
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
456 # scripts with optimization help from Paolo Bonzini. Blame Lee | |
457 # E. McMahon (1931-1989) for sed's syntax. :-) | |
458 sed -n ' | 426 sed -n ' |
459 p | 427 p |
460 /[$]LINENO/= | 428 /[$]LINENO/= |
461 ' <$as_myself | | 429 ' <$as_myself | |
462 sed ' | 430 sed ' |
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | 437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
470 t loop | 438 t loop |
471 s/-\n.*// | 439 s/-\n.*// |
472 ' >$as_me.lineno && | 440 ' >$as_me.lineno && |
473 chmod +x "$as_me.lineno" || | 441 chmod +x "$as_me.lineno" || |
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | 442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
475 { (exit 1); exit 1; }; } | |
476 | 443 |
477 # Don't try to exec as it changes $[0], causing all sort of problems | 444 # Don't try to exec as it changes $[0], causing all sort of problems |
478 # (the dirname of $[0] is not the place where we might find the | 445 # (the dirname of $[0] is not the place where we might find the |
479 # original and so on. Autoconf is especially sensitive to this). | 446 # original and so on. Autoconf is especially sensitive to this). |
480 . "./$as_me.lineno" | 447 . "./$as_me.lineno" |
481 # Exit status is that of the last command. | 448 # Exit status is that of the last command. |
482 exit | 449 exit |
483 } | 450 } |
484 | 451 |
485 | |
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
487 as_dirname=dirname | |
488 else | |
489 as_dirname=false | |
490 fi | |
491 | |
492 ECHO_C= ECHO_N= ECHO_T= | 452 ECHO_C= ECHO_N= ECHO_T= |
493 case `echo -n x` in | 453 case `echo -n x` in #((((( |
494 -n*) | 454 -n*) |
495 case `echo 'x\c'` in | 455 case `echo 'xy\c'` in |
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character. | 456 *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
497 *) ECHO_C='\c';; | 457 xy) ECHO_C='\c';; |
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
459 ECHO_T=' ';; | |
498 esac;; | 460 esac;; |
499 *) | 461 *) |
500 ECHO_N='-n';; | 462 ECHO_N='-n';; |
501 esac | 463 esac |
502 if expr a : '\(a\)' >/dev/null 2>&1 && | |
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
504 as_expr=expr | |
505 else | |
506 as_expr=false | |
507 fi | |
508 | 464 |
509 rm -f conf$$ conf$$.exe conf$$.file | 465 rm -f conf$$ conf$$.exe conf$$.file |
510 if test -d conf$$.dir; then | 466 if test -d conf$$.dir; then |
511 rm -f conf$$.dir/conf$$.file | 467 rm -f conf$$.dir/conf$$.file |
512 else | 468 else |
532 fi | 488 fi |
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | 489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
534 rmdir conf$$.dir 2>/dev/null | 490 rmdir conf$$.dir 2>/dev/null |
535 | 491 |
536 if mkdir -p . 2>/dev/null; then | 492 if mkdir -p . 2>/dev/null; then |
537 as_mkdir_p=: | 493 as_mkdir_p='mkdir -p "$as_dir"' |
538 else | 494 else |
539 test -d ./-p && rmdir ./-p | 495 test -d ./-p && rmdir ./-p |
540 as_mkdir_p=false | 496 as_mkdir_p=false |
541 fi | 497 fi |
542 | 498 |
551 as_test_x=' | 507 as_test_x=' |
552 eval sh -c '\'' | 508 eval sh -c '\'' |
553 if test -d "$1"; then | 509 if test -d "$1"; then |
554 test -d "$1/."; | 510 test -d "$1/."; |
555 else | 511 else |
556 case $1 in | 512 case $1 in #( |
557 -*)set "./$1";; | 513 -*)set "./$1";; |
558 esac; | 514 esac; |
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | 515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
560 ???[sx]*):;;*)false;;esac;fi | 516 ???[sx]*):;;*)false;;esac;fi |
561 '\'' sh | 517 '\'' sh |
562 ' | 518 ' |
563 fi | 519 fi |
564 as_executable_p=$as_test_x | 520 as_executable_p=$as_test_x |
568 | 524 |
569 # Sed expression to map a string onto a valid variable name. | 525 # Sed expression to map a string onto a valid variable name. |
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | 526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
571 | 527 |
572 | 528 |
573 | 529 test -n "$DJDIR" || exec 7<&0 </dev/null |
574 exec 7<&0 </dev/null 6>&1 | 530 exec 6>&1 |
575 | 531 |
576 # Name of the host. | 532 # Name of the host. |
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | 533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
578 # so uname gets run too. | 534 # so uname gets run too. |
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | 535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
587 LIBOBJS= | 543 LIBOBJS= |
588 cross_compiling=no | 544 cross_compiling=no |
589 subdirs= | 545 subdirs= |
590 MFLAGS= | 546 MFLAGS= |
591 MAKEFLAGS= | 547 MAKEFLAGS= |
592 SHELL=${CONFIG_SHELL-/bin/sh} | |
593 | 548 |
594 # Identity of this package. | 549 # Identity of this package. |
595 PACKAGE_NAME='emacs' | 550 PACKAGE_NAME='emacs' |
596 PACKAGE_TARNAME='emacs' | 551 PACKAGE_TARNAME='emacs' |
597 PACKAGE_VERSION='24.0.50' | 552 PACKAGE_VERSION='24.0.50' |
598 PACKAGE_STRING='emacs 24.0.50' | 553 PACKAGE_STRING='emacs 24.0.50' |
599 PACKAGE_BUGREPORT='' | 554 PACKAGE_BUGREPORT='' |
555 PACKAGE_URL='' | |
600 | 556 |
601 ac_unique_file="src/lisp.h" | 557 ac_unique_file="src/lisp.h" |
602 # Factoring default headers for most tests. | 558 # Factoring default headers for most tests. |
603 ac_includes_default="\ | 559 ac_includes_default="\ |
604 #include <stdio.h> | 560 #include <stdio.h> |
636 #endif" | 592 #endif" |
637 | 593 |
638 ac_config_libobj_dir=src | 594 ac_config_libobj_dir=src |
639 ac_header_list= | 595 ac_header_list= |
640 ac_func_list= | 596 ac_func_list= |
641 ac_subst_vars='SHELL | 597 ac_subst_vars='LTLIBOBJS |
598 LD_SWITCH_SYSTEM_TEMACS | |
599 POST_ALLOC_OBJ | |
600 PRE_ALLOC_OBJ | |
601 CYGWIN_OBJ | |
602 LIBX_OTHER | |
603 LIBXMENU | |
604 OLDXMENU | |
605 LIBXT_OTHER | |
606 TOOLKIT_LIBW | |
607 WIDGET_OBJ | |
608 XOBJ | |
609 XMENU_OBJ | |
610 OTHER_FILES | |
611 LIB_SRC_EXTRA_INSTALLABLES | |
612 GNU_OBJC_CFLAGS | |
613 GNUSTEP_SYSTEM_LIBRARIES | |
614 GNUSTEP_SYSTEM_HEADERS | |
615 GNUSTEP_MAKEFILES | |
616 ns_appsrc | |
617 ns_appresdir | |
618 ns_appbindir | |
619 ns_appdir | |
620 opsysfile | |
621 machfile | |
622 X_TOOLKIT_TYPE | |
623 C_SWITCH_X_SYSTEM | |
624 C_SWITCH_X_SITE | |
625 LD_SWITCH_X_SITE | |
626 unexec | |
627 gameuser | |
628 gamedir | |
629 bitmapdir | |
630 archlibdir | |
631 etcdir | |
632 x_default_search_path | |
633 lisppath | |
634 locallisppath | |
635 lispdir | |
636 srcdir | |
637 canonical | |
638 configuration | |
639 version | |
640 KRB4LIB | |
641 DESLIB | |
642 KRB5LIB | |
643 CRYPTOLIB | |
644 COM_ERRLIB | |
645 LIBRESOLV | |
646 LIBHESIOD | |
647 GETOPTOBJS | |
648 GETOPT_H | |
649 GETLOADAVG_LIBS | |
650 KMEM_GROUP | |
651 NEED_SETGID | |
652 LIBOBJS | |
653 LIBS_MAIL | |
654 liblockfile | |
655 ALLOCA | |
656 LIBXSM | |
657 GPM_MOUSE_SUPPORT | |
658 LIBGPM | |
659 LIBGIF | |
660 LIBTIFF | |
661 LIBPNG | |
662 LIBJPEG | |
663 LIBXPM | |
664 FREETYPE_LIBS | |
665 FREETYPE_CFLAGS | |
666 FONT_OBJ | |
667 M17N_FLT_LIBS | |
668 M17N_FLT_CFLAGS | |
669 LIBOTF_LIBS | |
670 LIBOTF_CFLAGS | |
671 XFT_LIBS | |
672 XFT_CFLAGS | |
673 FONTCONFIG_LIBS | |
674 FONTCONFIG_CFLAGS | |
675 LIBXMU | |
676 LIBXTR6 | |
677 LIBSELINUX_LIBS | |
678 GCONF_LIBS | |
679 GCONF_CFLAGS | |
680 DBUS_OBJ | |
681 DBUS_LIBS | |
682 DBUS_CFLAGS | |
683 GTK_OBJ | |
684 GTK_LIBS | |
685 GTK_CFLAGS | |
686 RSVG_LIBS | |
687 RSVG_CFLAGS | |
688 HAVE_XSERVER | |
689 LIB_STANDARD | |
690 NS_SUPPORT | |
691 NS_OBJ | |
692 LD_SWITCH_X_SITE_AUX_RPATH | |
693 LD_SWITCH_X_SITE_AUX | |
694 XMKMF | |
695 SET_MAKE | |
696 CFLAGS_SOUND | |
697 ALSA_LIBS | |
698 ALSA_CFLAGS | |
699 PKG_CONFIG | |
700 LIBSOUND | |
701 START_FILES | |
702 LIB_MATH | |
703 CRT_DIR | |
704 C_SWITCH_SYSTEM | |
705 C_SWITCH_MACHINE | |
706 MAKEINFO | |
707 GZIP_PROG | |
708 INSTALL_INFO | |
709 RANLIB | |
710 INSTALL_DATA | |
711 INSTALL_SCRIPT | |
712 INSTALL_PROGRAM | |
713 EGREP | |
714 GREP | |
715 CPP | |
716 OBJEXT | |
717 EXEEXT | |
718 ac_ct_CC | |
719 CPPFLAGS | |
720 LDFLAGS | |
721 CFLAGS | |
722 CC | |
723 host_os | |
724 host_vendor | |
725 host_cpu | |
726 host | |
727 build_os | |
728 build_vendor | |
729 build_cpu | |
730 build | |
731 MAINT | |
732 target_alias | |
733 host_alias | |
734 build_alias | |
735 LIBS | |
736 ECHO_T | |
737 ECHO_N | |
738 ECHO_C | |
739 DEFS | |
740 mandir | |
741 localedir | |
742 libdir | |
743 psdir | |
744 pdfdir | |
745 dvidir | |
746 htmldir | |
747 infodir | |
748 docdir | |
749 oldincludedir | |
750 includedir | |
751 localstatedir | |
752 sharedstatedir | |
753 sysconfdir | |
754 datadir | |
755 datarootdir | |
756 libexecdir | |
757 sbindir | |
758 bindir | |
759 program_transform_name | |
760 prefix | |
761 exec_prefix | |
762 PACKAGE_URL | |
763 PACKAGE_BUGREPORT | |
764 PACKAGE_STRING | |
765 PACKAGE_VERSION | |
766 PACKAGE_TARNAME | |
767 PACKAGE_NAME | |
642 PATH_SEPARATOR | 768 PATH_SEPARATOR |
643 PACKAGE_NAME | 769 SHELL' |
644 PACKAGE_TARNAME | |
645 PACKAGE_VERSION | |
646 PACKAGE_STRING | |
647 PACKAGE_BUGREPORT | |
648 exec_prefix | |
649 prefix | |
650 program_transform_name | |
651 bindir | |
652 sbindir | |
653 libexecdir | |
654 datarootdir | |
655 datadir | |
656 sysconfdir | |
657 sharedstatedir | |
658 localstatedir | |
659 includedir | |
660 oldincludedir | |
661 docdir | |
662 infodir | |
663 htmldir | |
664 dvidir | |
665 pdfdir | |
666 psdir | |
667 libdir | |
668 localedir | |
669 mandir | |
670 DEFS | |
671 ECHO_C | |
672 ECHO_N | |
673 ECHO_T | |
674 LIBS | |
675 build_alias | |
676 host_alias | |
677 target_alias | |
678 MAINT | |
679 build | |
680 build_cpu | |
681 build_vendor | |
682 build_os | |
683 host | |
684 host_cpu | |
685 host_vendor | |
686 host_os | |
687 CC | |
688 CFLAGS | |
689 LDFLAGS | |
690 CPPFLAGS | |
691 ac_ct_CC | |
692 EXEEXT | |
693 OBJEXT | |
694 CPP | |
695 GREP | |
696 EGREP | |
697 INSTALL_PROGRAM | |
698 INSTALL_SCRIPT | |
699 INSTALL_DATA | |
700 RANLIB | |
701 INSTALL_INFO | |
702 GZIP_PROG | |
703 MAKEINFO | |
704 LIB_MATH | |
705 C_SWITCH_MACHINE | |
706 C_SWITCH_SYSTEM | |
707 CRT_DIR | |
708 LIBSOUND | |
709 PKG_CONFIG | |
710 ALSA_CFLAGS | |
711 ALSA_LIBS | |
712 CFLAGS_SOUND | |
713 SET_MAKE | |
714 XMKMF | |
715 LD_SWITCH_X_SITE_AUX | |
716 LD_SWITCH_X_SITE_AUX_RPATH | |
717 NS_OBJ | |
718 NS_SUPPORT | |
719 HAVE_XSERVER | |
720 RSVG_CFLAGS | |
721 RSVG_LIBS | |
722 GTK_CFLAGS | |
723 GTK_LIBS | |
724 GTK_OBJ | |
725 DBUS_CFLAGS | |
726 DBUS_LIBS | |
727 DBUS_OBJ | |
728 GCONF_CFLAGS | |
729 GCONF_LIBS | |
730 LIBSELINUX_LIBS | |
731 LIBXTR6 | |
732 LIBXMU | |
733 FONTCONFIG_CFLAGS | |
734 FONTCONFIG_LIBS | |
735 XFT_CFLAGS | |
736 XFT_LIBS | |
737 LIBOTF_CFLAGS | |
738 LIBOTF_LIBS | |
739 M17N_FLT_CFLAGS | |
740 M17N_FLT_LIBS | |
741 FONT_OBJ | |
742 FREETYPE_CFLAGS | |
743 FREETYPE_LIBS | |
744 LIBXPM | |
745 LIBJPEG | |
746 LIBPNG | |
747 LIBTIFF | |
748 LIBGIF | |
749 LIBGPM | |
750 GPM_MOUSE_SUPPORT | |
751 LIBXSM | |
752 ALLOCA | |
753 liblockfile | |
754 LIBS_MAIL | |
755 LIBOBJS | |
756 NEED_SETGID | |
757 KMEM_GROUP | |
758 GETLOADAVG_LIBS | |
759 GETOPT_H | |
760 GETOPTOBJS | |
761 LIBHESIOD | |
762 LIBRESOLV | |
763 COM_ERRLIB | |
764 CRYPTOLIB | |
765 KRB5LIB | |
766 DESLIB | |
767 KRB4LIB | |
768 version | |
769 configuration | |
770 canonical | |
771 srcdir | |
772 lispdir | |
773 locallisppath | |
774 lisppath | |
775 x_default_search_path | |
776 etcdir | |
777 archlibdir | |
778 bitmapdir | |
779 gamedir | |
780 gameuser | |
781 unexec | |
782 LD_SWITCH_X_SITE | |
783 C_SWITCH_X_SITE | |
784 C_SWITCH_X_SYSTEM | |
785 X_TOOLKIT_TYPE | |
786 machfile | |
787 opsysfile | |
788 ns_appdir | |
789 ns_appbindir | |
790 ns_appresdir | |
791 ns_appsrc | |
792 GNUSTEP_MAKEFILES | |
793 GNUSTEP_SYSTEM_HEADERS | |
794 GNUSTEP_SYSTEM_LIBRARIES | |
795 GNU_OBJC_CFLAGS | |
796 LIB_SRC_EXTRA_INSTALLABLES | |
797 OTHER_FILES | |
798 XMENU_OBJ | |
799 XOBJ | |
800 WIDGET_OBJ | |
801 TOOLKIT_LIBW | |
802 LIBXT_OTHER | |
803 OLDXMENU | |
804 LIBXMENU | |
805 LIBX_OTHER | |
806 CYGWIN_OBJ | |
807 PRE_ALLOC_OBJ | |
808 POST_ALLOC_OBJ | |
809 LD_SWITCH_SYSTEM_TEMACS | |
810 LTLIBOBJS' | |
811 ac_subst_files='' | 770 ac_subst_files='' |
812 ac_user_opts=' | 771 ac_user_opts=' |
813 enable_option_checking | 772 enable_option_checking |
814 with_pop | 773 with_pop |
815 with_kerberos | 774 with_kerberos |
970 | 929 |
971 -disable-* | --disable-*) | 930 -disable-* | --disable-*) |
972 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | 931 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
973 # Reject names that are not valid shell variable names. | 932 # Reject names that are not valid shell variable names. |
974 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 933 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
975 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | 934 as_fn_error "invalid feature name: $ac_useropt" |
976 { (exit 1); exit 1; }; } | |
977 ac_useropt_orig=$ac_useropt | 935 ac_useropt_orig=$ac_useropt |
978 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 936 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
979 case $ac_user_opts in | 937 case $ac_user_opts in |
980 *" | 938 *" |
981 "enable_$ac_useropt" | 939 "enable_$ac_useropt" |
997 | 955 |
998 -enable-* | --enable-*) | 956 -enable-* | --enable-*) |
999 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | 957 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
1000 # Reject names that are not valid shell variable names. | 958 # Reject names that are not valid shell variable names. |
1001 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 959 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1002 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | 960 as_fn_error "invalid feature name: $ac_useropt" |
1003 { (exit 1); exit 1; }; } | |
1004 ac_useropt_orig=$ac_useropt | 961 ac_useropt_orig=$ac_useropt |
1005 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 962 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
1006 case $ac_user_opts in | 963 case $ac_user_opts in |
1007 *" | 964 *" |
1008 "enable_$ac_useropt" | 965 "enable_$ac_useropt" |
1202 | 1159 |
1203 -with-* | --with-*) | 1160 -with-* | --with-*) |
1204 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | 1161 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
1205 # Reject names that are not valid shell variable names. | 1162 # Reject names that are not valid shell variable names. |
1206 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 1163 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1207 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | 1164 as_fn_error "invalid package name: $ac_useropt" |
1208 { (exit 1); exit 1; }; } | |
1209 ac_useropt_orig=$ac_useropt | 1165 ac_useropt_orig=$ac_useropt |
1210 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 1166 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
1211 case $ac_user_opts in | 1167 case $ac_user_opts in |
1212 *" | 1168 *" |
1213 "with_$ac_useropt" | 1169 "with_$ac_useropt" |
1219 | 1175 |
1220 -without-* | --without-*) | 1176 -without-* | --without-*) |
1221 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | 1177 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
1222 # Reject names that are not valid shell variable names. | 1178 # Reject names that are not valid shell variable names. |
1223 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 1179 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1224 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | 1180 as_fn_error "invalid package name: $ac_useropt" |
1225 { (exit 1); exit 1; }; } | |
1226 ac_useropt_orig=$ac_useropt | 1181 ac_useropt_orig=$ac_useropt |
1227 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 1182 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
1228 case $ac_user_opts in | 1183 case $ac_user_opts in |
1229 *" | 1184 *" |
1230 "with_$ac_useropt" | 1185 "with_$ac_useropt" |
1250 ac_prev=x_libraries ;; | 1205 ac_prev=x_libraries ;; |
1251 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | 1206 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
1252 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | 1207 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
1253 x_libraries=$ac_optarg ;; | 1208 x_libraries=$ac_optarg ;; |
1254 | 1209 |
1255 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option | 1210 -*) as_fn_error "unrecognized option: \`$ac_option' |
1256 Try \`$0 --help' for more information." >&2 | 1211 Try \`$0 --help' for more information." |
1257 { (exit 1); exit 1; }; } | |
1258 ;; | 1212 ;; |
1259 | 1213 |
1260 *=*) | 1214 *=*) |
1261 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | 1215 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
1262 # Reject names that are not valid shell variable names. | 1216 # Reject names that are not valid shell variable names. |
1263 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | 1217 case $ac_envvar in #( |
1264 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | 1218 '' | [0-9]* | *[!_$as_cr_alnum]* ) |
1265 { (exit 1); exit 1; }; } | 1219 as_fn_error "invalid variable name: \`$ac_envvar'" ;; |
1220 esac | |
1266 eval $ac_envvar=\$ac_optarg | 1221 eval $ac_envvar=\$ac_optarg |
1267 export $ac_envvar ;; | 1222 export $ac_envvar ;; |
1268 | 1223 |
1269 *) | 1224 *) |
1270 # FIXME: should be removed in autoconf 3.0. | 1225 # FIXME: should be removed in autoconf 3.0. |
1277 esac | 1232 esac |
1278 done | 1233 done |
1279 | 1234 |
1280 if test -n "$ac_prev"; then | 1235 if test -n "$ac_prev"; then |
1281 ac_option=--`echo $ac_prev | sed 's/_/-/g'` | 1236 ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1282 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 | 1237 as_fn_error "missing argument to $ac_option" |
1283 { (exit 1); exit 1; }; } | |
1284 fi | 1238 fi |
1285 | 1239 |
1286 if test -n "$ac_unrecognized_opts"; then | 1240 if test -n "$ac_unrecognized_opts"; then |
1287 case $enable_option_checking in | 1241 case $enable_option_checking in |
1288 no) ;; | 1242 no) ;; |
1289 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2 | 1243 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; |
1290 { (exit 1); exit 1; }; } ;; | 1244 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1291 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1292 esac | 1245 esac |
1293 fi | 1246 fi |
1294 | 1247 |
1295 # Check all directory arguments for consistency. | 1248 # Check all directory arguments for consistency. |
1296 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | 1249 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1308 # Be sure to have absolute directory names. | 1261 # Be sure to have absolute directory names. |
1309 case $ac_val in | 1262 case $ac_val in |
1310 [\\/$]* | ?:[\\/]* ) continue;; | 1263 [\\/$]* | ?:[\\/]* ) continue;; |
1311 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | 1264 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
1312 esac | 1265 esac |
1313 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | 1266 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
1314 { (exit 1); exit 1; }; } | |
1315 done | 1267 done |
1316 | 1268 |
1317 # There might be people who depend on the old broken behavior: `$host' | 1269 # There might be people who depend on the old broken behavior: `$host' |
1318 # used to hold the argument of --host etc. | 1270 # used to hold the argument of --host etc. |
1319 # FIXME: To remove some day. | 1271 # FIXME: To remove some day. |
1339 | 1291 |
1340 | 1292 |
1341 ac_pwd=`pwd` && test -n "$ac_pwd" && | 1293 ac_pwd=`pwd` && test -n "$ac_pwd" && |
1342 ac_ls_di=`ls -di .` && | 1294 ac_ls_di=`ls -di .` && |
1343 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | 1295 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
1344 { $as_echo "$as_me: error: Working directory cannot be determined" >&2 | 1296 as_fn_error "working directory cannot be determined" |
1345 { (exit 1); exit 1; }; } | |
1346 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | 1297 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
1347 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 | 1298 as_fn_error "pwd does not report name of working directory" |
1348 { (exit 1); exit 1; }; } | |
1349 | 1299 |
1350 | 1300 |
1351 # Find the source files, if location was not specified. | 1301 # Find the source files, if location was not specified. |
1352 if test -z "$srcdir"; then | 1302 if test -z "$srcdir"; then |
1353 ac_srcdir_defaulted=yes | 1303 ac_srcdir_defaulted=yes |
1382 else | 1332 else |
1383 ac_srcdir_defaulted=no | 1333 ac_srcdir_defaulted=no |
1384 fi | 1334 fi |
1385 if test ! -r "$srcdir/$ac_unique_file"; then | 1335 if test ! -r "$srcdir/$ac_unique_file"; then |
1386 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | 1336 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
1387 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | 1337 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" |
1388 { (exit 1); exit 1; }; } | |
1389 fi | 1338 fi |
1390 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | 1339 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1391 ac_abs_confdir=`( | 1340 ac_abs_confdir=`( |
1392 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 | 1341 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" |
1393 { (exit 1); exit 1; }; } | |
1394 pwd)` | 1342 pwd)` |
1395 # When building in place, set srcdir=. | 1343 # When building in place, set srcdir=. |
1396 if test "$ac_abs_confdir" = "$ac_pwd"; then | 1344 if test "$ac_abs_confdir" = "$ac_pwd"; then |
1397 srcdir=. | 1345 srcdir=. |
1398 fi | 1346 fi |
1568 CC C compiler command | 1516 CC C compiler command |
1569 CFLAGS C compiler flags | 1517 CFLAGS C compiler flags |
1570 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | 1518 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1571 nonstandard directory <lib dir> | 1519 nonstandard directory <lib dir> |
1572 LIBS libraries to pass to the linker, e.g. -l<library> | 1520 LIBS libraries to pass to the linker, e.g. -l<library> |
1573 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | 1521 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
1574 you have headers in a nonstandard directory <include dir> | 1522 you have headers in a nonstandard directory <include dir> |
1575 CPP C preprocessor | 1523 CPP C preprocessor |
1576 XMKMF Path to xmkmf, Makefile generator for X Window System | 1524 XMKMF Path to xmkmf, Makefile generator for X Window System |
1577 | 1525 |
1578 Use these variables to override the choices made by `configure' or to help | 1526 Use these variables to override the choices made by `configure' or to help |
1579 it to find libraries and programs with nonstandard names/locations. | 1527 it to find libraries and programs with nonstandard names/locations. |
1580 | 1528 |
1529 Report bugs to the package provider. | |
1581 _ACEOF | 1530 _ACEOF |
1582 ac_status=$? | 1531 ac_status=$? |
1583 fi | 1532 fi |
1584 | 1533 |
1585 if test "$ac_init_help" = "recursive"; then | 1534 if test "$ac_init_help" = "recursive"; then |
1639 | 1588 |
1640 test -n "$ac_init_help" && exit $ac_status | 1589 test -n "$ac_init_help" && exit $ac_status |
1641 if $ac_init_version; then | 1590 if $ac_init_version; then |
1642 cat <<\_ACEOF | 1591 cat <<\_ACEOF |
1643 emacs configure 24.0.50 | 1592 emacs configure 24.0.50 |
1644 generated by GNU Autoconf 2.62 | 1593 generated by GNU Autoconf 2.65 |
1645 | 1594 |
1646 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | 1595 Copyright (C) 2009 Free Software Foundation, Inc. |
1647 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. | |
1648 This configure script is free software; the Free Software Foundation | 1596 This configure script is free software; the Free Software Foundation |
1649 gives unlimited permission to copy, distribute and modify it. | 1597 gives unlimited permission to copy, distribute and modify it. |
1650 _ACEOF | 1598 _ACEOF |
1651 exit | 1599 exit |
1652 fi | 1600 fi |
1601 | |
1602 ## ------------------------ ## | |
1603 ## Autoconf initialization. ## | |
1604 ## ------------------------ ## | |
1605 | |
1606 # ac_fn_c_try_compile LINENO | |
1607 # -------------------------- | |
1608 # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1609 ac_fn_c_try_compile () | |
1610 { | |
1611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1612 rm -f conftest.$ac_objext | |
1613 if { { ac_try="$ac_compile" | |
1614 case "(($ac_try" in | |
1615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1616 *) ac_try_echo=$ac_try;; | |
1617 esac | |
1618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1619 $as_echo "$ac_try_echo"; } >&5 | |
1620 (eval "$ac_compile") 2>conftest.err | |
1621 ac_status=$? | |
1622 if test -s conftest.err; then | |
1623 grep -v '^ *+' conftest.err >conftest.er1 | |
1624 cat conftest.er1 >&5 | |
1625 mv -f conftest.er1 conftest.err | |
1626 fi | |
1627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1628 test $ac_status = 0; } && { | |
1629 test -z "$ac_c_werror_flag" || | |
1630 test ! -s conftest.err | |
1631 } && test -s conftest.$ac_objext; then : | |
1632 ac_retval=0 | |
1633 else | |
1634 $as_echo "$as_me: failed program was:" >&5 | |
1635 sed 's/^/| /' conftest.$ac_ext >&5 | |
1636 | |
1637 ac_retval=1 | |
1638 fi | |
1639 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1640 as_fn_set_status $ac_retval | |
1641 | |
1642 } # ac_fn_c_try_compile | |
1643 | |
1644 # ac_fn_c_try_link LINENO | |
1645 # ----------------------- | |
1646 # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1647 ac_fn_c_try_link () | |
1648 { | |
1649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1650 rm -f conftest.$ac_objext conftest$ac_exeext | |
1651 if { { ac_try="$ac_link" | |
1652 case "(($ac_try" in | |
1653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1654 *) ac_try_echo=$ac_try;; | |
1655 esac | |
1656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1657 $as_echo "$ac_try_echo"; } >&5 | |
1658 (eval "$ac_link") 2>conftest.err | |
1659 ac_status=$? | |
1660 if test -s conftest.err; then | |
1661 grep -v '^ *+' conftest.err >conftest.er1 | |
1662 cat conftest.er1 >&5 | |
1663 mv -f conftest.er1 conftest.err | |
1664 fi | |
1665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1666 test $ac_status = 0; } && { | |
1667 test -z "$ac_c_werror_flag" || | |
1668 test ! -s conftest.err | |
1669 } && test -s conftest$ac_exeext && { | |
1670 test "$cross_compiling" = yes || | |
1671 $as_test_x conftest$ac_exeext | |
1672 }; then : | |
1673 ac_retval=0 | |
1674 else | |
1675 $as_echo "$as_me: failed program was:" >&5 | |
1676 sed 's/^/| /' conftest.$ac_ext >&5 | |
1677 | |
1678 ac_retval=1 | |
1679 fi | |
1680 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1681 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1682 # interfere with the next link command; also delete a directory that is | |
1683 # left behind by Apple's compiler. We do this before executing the actions. | |
1684 rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1685 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1686 as_fn_set_status $ac_retval | |
1687 | |
1688 } # ac_fn_c_try_link | |
1689 | |
1690 # ac_fn_c_try_cpp LINENO | |
1691 # ---------------------- | |
1692 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1693 ac_fn_c_try_cpp () | |
1694 { | |
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1696 if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1697 case "(($ac_try" in | |
1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1699 *) ac_try_echo=$ac_try;; | |
1700 esac | |
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1702 $as_echo "$ac_try_echo"; } >&5 | |
1703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1704 ac_status=$? | |
1705 if test -s conftest.err; then | |
1706 grep -v '^ *+' conftest.err >conftest.er1 | |
1707 cat conftest.er1 >&5 | |
1708 mv -f conftest.er1 conftest.err | |
1709 fi | |
1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1711 test $ac_status = 0; } >/dev/null && { | |
1712 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1713 test ! -s conftest.err | |
1714 }; then : | |
1715 ac_retval=0 | |
1716 else | |
1717 $as_echo "$as_me: failed program was:" >&5 | |
1718 sed 's/^/| /' conftest.$ac_ext >&5 | |
1719 | |
1720 ac_retval=1 | |
1721 fi | |
1722 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1723 as_fn_set_status $ac_retval | |
1724 | |
1725 } # ac_fn_c_try_cpp | |
1726 | |
1727 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1728 # ------------------------------------------------------- | |
1729 # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1730 # the include files in INCLUDES and setting the cache variable VAR | |
1731 # accordingly. | |
1732 ac_fn_c_check_header_mongrel () | |
1733 { | |
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1735 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1737 $as_echo_n "checking for $2... " >&6; } | |
1738 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1739 $as_echo_n "(cached) " >&6 | |
1740 fi | |
1741 eval ac_res=\$$3 | |
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1743 $as_echo "$ac_res" >&6; } | |
1744 else | |
1745 # Is the header compilable? | |
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1747 $as_echo_n "checking $2 usability... " >&6; } | |
1748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1749 /* end confdefs.h. */ | |
1750 $4 | |
1751 #include <$2> | |
1752 _ACEOF | |
1753 if ac_fn_c_try_compile "$LINENO"; then : | |
1754 ac_header_compiler=yes | |
1755 else | |
1756 ac_header_compiler=no | |
1757 fi | |
1758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1760 $as_echo "$ac_header_compiler" >&6; } | |
1761 | |
1762 # Is the header present? | |
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1764 $as_echo_n "checking $2 presence... " >&6; } | |
1765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1766 /* end confdefs.h. */ | |
1767 #include <$2> | |
1768 _ACEOF | |
1769 if ac_fn_c_try_cpp "$LINENO"; then : | |
1770 ac_header_preproc=yes | |
1771 else | |
1772 ac_header_preproc=no | |
1773 fi | |
1774 rm -f conftest.err conftest.$ac_ext | |
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1776 $as_echo "$ac_header_preproc" >&6; } | |
1777 | |
1778 # So? What about this header? | |
1779 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1780 yes:no: ) | |
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1782 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1784 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1785 ;; | |
1786 no:yes:* ) | |
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1788 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1790 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1792 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1794 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1796 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1797 ;; | |
1798 esac | |
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1800 $as_echo_n "checking for $2... " >&6; } | |
1801 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1802 $as_echo_n "(cached) " >&6 | |
1803 else | |
1804 eval "$3=\$ac_header_compiler" | |
1805 fi | |
1806 eval ac_res=\$$3 | |
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1808 $as_echo "$ac_res" >&6; } | |
1809 fi | |
1810 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1811 | |
1812 } # ac_fn_c_check_header_mongrel | |
1813 | |
1814 # ac_fn_c_try_run LINENO | |
1815 # ---------------------- | |
1816 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1817 # that executables *can* be run. | |
1818 ac_fn_c_try_run () | |
1819 { | |
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1821 if { { ac_try="$ac_link" | |
1822 case "(($ac_try" in | |
1823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1824 *) ac_try_echo=$ac_try;; | |
1825 esac | |
1826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1827 $as_echo "$ac_try_echo"; } >&5 | |
1828 (eval "$ac_link") 2>&5 | |
1829 ac_status=$? | |
1830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1831 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1832 { { case "(($ac_try" in | |
1833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1834 *) ac_try_echo=$ac_try;; | |
1835 esac | |
1836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1837 $as_echo "$ac_try_echo"; } >&5 | |
1838 (eval "$ac_try") 2>&5 | |
1839 ac_status=$? | |
1840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1841 test $ac_status = 0; }; }; then : | |
1842 ac_retval=0 | |
1843 else | |
1844 $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1845 $as_echo "$as_me: failed program was:" >&5 | |
1846 sed 's/^/| /' conftest.$ac_ext >&5 | |
1847 | |
1848 ac_retval=$ac_status | |
1849 fi | |
1850 rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1851 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1852 as_fn_set_status $ac_retval | |
1853 | |
1854 } # ac_fn_c_try_run | |
1855 | |
1856 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1857 # ------------------------------------------------------- | |
1858 # Tests whether HEADER exists and can be compiled using the include files in | |
1859 # INCLUDES, setting the cache variable VAR accordingly. | |
1860 ac_fn_c_check_header_compile () | |
1861 { | |
1862 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1864 $as_echo_n "checking for $2... " >&6; } | |
1865 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1866 $as_echo_n "(cached) " >&6 | |
1867 else | |
1868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1869 /* end confdefs.h. */ | |
1870 $4 | |
1871 #include <$2> | |
1872 _ACEOF | |
1873 if ac_fn_c_try_compile "$LINENO"; then : | |
1874 eval "$3=yes" | |
1875 else | |
1876 eval "$3=no" | |
1877 fi | |
1878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1879 fi | |
1880 eval ac_res=\$$3 | |
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1882 $as_echo "$ac_res" >&6; } | |
1883 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1884 | |
1885 } # ac_fn_c_check_header_compile | |
1886 | |
1887 # ac_fn_c_check_decl LINENO SYMBOL VAR | |
1888 # ------------------------------------ | |
1889 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. | |
1890 ac_fn_c_check_decl () | |
1891 { | |
1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5 | |
1894 $as_echo_n "checking whether $2 is declared... " >&6; } | |
1895 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1896 $as_echo_n "(cached) " >&6 | |
1897 else | |
1898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1899 /* end confdefs.h. */ | |
1900 $4 | |
1901 int | |
1902 main () | |
1903 { | |
1904 #ifndef $2 | |
1905 (void) $2; | |
1906 #endif | |
1907 | |
1908 ; | |
1909 return 0; | |
1910 } | |
1911 _ACEOF | |
1912 if ac_fn_c_try_compile "$LINENO"; then : | |
1913 eval "$3=yes" | |
1914 else | |
1915 eval "$3=no" | |
1916 fi | |
1917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1918 fi | |
1919 eval ac_res=\$$3 | |
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1921 $as_echo "$ac_res" >&6; } | |
1922 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1923 | |
1924 } # ac_fn_c_check_decl | |
1925 | |
1926 # ac_fn_c_check_header_preproc LINENO HEADER VAR | |
1927 # ---------------------------------------------- | |
1928 # Tests whether HEADER is present, setting the cache variable VAR accordingly. | |
1929 ac_fn_c_check_header_preproc () | |
1930 { | |
1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1933 $as_echo_n "checking for $2... " >&6; } | |
1934 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1935 $as_echo_n "(cached) " >&6 | |
1936 else | |
1937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1938 /* end confdefs.h. */ | |
1939 #include <$2> | |
1940 _ACEOF | |
1941 if ac_fn_c_try_cpp "$LINENO"; then : | |
1942 eval "$3=yes" | |
1943 else | |
1944 eval "$3=no" | |
1945 fi | |
1946 rm -f conftest.err conftest.$ac_ext | |
1947 fi | |
1948 eval ac_res=\$$3 | |
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1950 $as_echo "$ac_res" >&6; } | |
1951 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1952 | |
1953 } # ac_fn_c_check_header_preproc | |
1954 | |
1955 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES | |
1956 # ---------------------------------------------------- | |
1957 # Tries to find if the field MEMBER exists in type AGGR, after including | |
1958 # INCLUDES, setting cache variable VAR accordingly. | |
1959 ac_fn_c_check_member () | |
1960 { | |
1961 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | |
1963 $as_echo_n "checking for $2.$3... " >&6; } | |
1964 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1965 $as_echo_n "(cached) " >&6 | |
1966 else | |
1967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1968 /* end confdefs.h. */ | |
1969 $5 | |
1970 int | |
1971 main () | |
1972 { | |
1973 static $2 ac_aggr; | |
1974 if (ac_aggr.$3) | |
1975 return 0; | |
1976 ; | |
1977 return 0; | |
1978 } | |
1979 _ACEOF | |
1980 if ac_fn_c_try_compile "$LINENO"; then : | |
1981 eval "$4=yes" | |
1982 else | |
1983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1984 /* end confdefs.h. */ | |
1985 $5 | |
1986 int | |
1987 main () | |
1988 { | |
1989 static $2 ac_aggr; | |
1990 if (sizeof ac_aggr.$3) | |
1991 return 0; | |
1992 ; | |
1993 return 0; | |
1994 } | |
1995 _ACEOF | |
1996 if ac_fn_c_try_compile "$LINENO"; then : | |
1997 eval "$4=yes" | |
1998 else | |
1999 eval "$4=no" | |
2000 fi | |
2001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2002 fi | |
2003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2004 fi | |
2005 eval ac_res=\$$4 | |
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2007 $as_echo "$ac_res" >&6; } | |
2008 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2009 | |
2010 } # ac_fn_c_check_member | |
2011 | |
2012 # ac_fn_c_check_func LINENO FUNC VAR | |
2013 # ---------------------------------- | |
2014 # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
2015 ac_fn_c_check_func () | |
2016 { | |
2017 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2019 $as_echo_n "checking for $2... " >&6; } | |
2020 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2021 $as_echo_n "(cached) " >&6 | |
2022 else | |
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2024 /* end confdefs.h. */ | |
2025 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
2026 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2027 #define $2 innocuous_$2 | |
2028 | |
2029 /* System header to define __stub macros and hopefully few prototypes, | |
2030 which can conflict with char $2 (); below. | |
2031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2032 <limits.h> exists even on freestanding compilers. */ | |
2033 | |
2034 #ifdef __STDC__ | |
2035 # include <limits.h> | |
2036 #else | |
2037 # include <assert.h> | |
2038 #endif | |
2039 | |
2040 #undef $2 | |
2041 | |
2042 /* Override any GCC internal prototype to avoid an error. | |
2043 Use char because int might match the return type of a GCC | |
2044 builtin and then its argument prototype would still apply. */ | |
2045 #ifdef __cplusplus | |
2046 extern "C" | |
2047 #endif | |
2048 char $2 (); | |
2049 /* The GNU C library defines this for functions which it implements | |
2050 to always fail with ENOSYS. Some functions are actually named | |
2051 something starting with __ and the normal name is an alias. */ | |
2052 #if defined __stub_$2 || defined __stub___$2 | |
2053 choke me | |
2054 #endif | |
2055 | |
2056 int | |
2057 main () | |
2058 { | |
2059 return $2 (); | |
2060 ; | |
2061 return 0; | |
2062 } | |
2063 _ACEOF | |
2064 if ac_fn_c_try_link "$LINENO"; then : | |
2065 eval "$3=yes" | |
2066 else | |
2067 eval "$3=no" | |
2068 fi | |
2069 rm -f core conftest.err conftest.$ac_objext \ | |
2070 conftest$ac_exeext conftest.$ac_ext | |
2071 fi | |
2072 eval ac_res=\$$3 | |
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2074 $as_echo "$ac_res" >&6; } | |
2075 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2076 | |
2077 } # ac_fn_c_check_func | |
2078 | |
2079 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | |
2080 # ------------------------------------------- | |
2081 # Tests whether TYPE exists after having included INCLUDES, setting cache | |
2082 # variable VAR accordingly. | |
2083 ac_fn_c_check_type () | |
2084 { | |
2085 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2087 $as_echo_n "checking for $2... " >&6; } | |
2088 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2089 $as_echo_n "(cached) " >&6 | |
2090 else | |
2091 eval "$3=no" | |
2092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2093 /* end confdefs.h. */ | |
2094 $4 | |
2095 int | |
2096 main () | |
2097 { | |
2098 if (sizeof ($2)) | |
2099 return 0; | |
2100 ; | |
2101 return 0; | |
2102 } | |
2103 _ACEOF | |
2104 if ac_fn_c_try_compile "$LINENO"; then : | |
2105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2106 /* end confdefs.h. */ | |
2107 $4 | |
2108 int | |
2109 main () | |
2110 { | |
2111 if (sizeof (($2))) | |
2112 return 0; | |
2113 ; | |
2114 return 0; | |
2115 } | |
2116 _ACEOF | |
2117 if ac_fn_c_try_compile "$LINENO"; then : | |
2118 | |
2119 else | |
2120 eval "$3=yes" | |
2121 fi | |
2122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2123 fi | |
2124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2125 fi | |
2126 eval ac_res=\$$3 | |
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2128 $as_echo "$ac_res" >&6; } | |
2129 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2130 | |
2131 } # ac_fn_c_check_type | |
1653 cat >config.log <<_ACEOF | 2132 cat >config.log <<_ACEOF |
1654 This file contains any messages produced by compilers while | 2133 This file contains any messages produced by compilers while |
1655 running configure, to aid debugging if configure makes a mistake. | 2134 running configure, to aid debugging if configure makes a mistake. |
1656 | 2135 |
1657 It was created by emacs $as_me 24.0.50, which was | 2136 It was created by emacs $as_me 24.0.50, which was |
1658 generated by GNU Autoconf 2.62. Invocation command line was | 2137 generated by GNU Autoconf 2.65. Invocation command line was |
1659 | 2138 |
1660 $ $0 $@ | 2139 $ $0 $@ |
1661 | 2140 |
1662 _ACEOF | 2141 _ACEOF |
1663 exec 5>>config.log | 2142 exec 5>>config.log |
1689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 2168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1690 for as_dir in $PATH | 2169 for as_dir in $PATH |
1691 do | 2170 do |
1692 IFS=$as_save_IFS | 2171 IFS=$as_save_IFS |
1693 test -z "$as_dir" && as_dir=. | 2172 test -z "$as_dir" && as_dir=. |
1694 $as_echo "PATH: $as_dir" | 2173 $as_echo "PATH: $as_dir" |
1695 done | 2174 done |
1696 IFS=$as_save_IFS | 2175 IFS=$as_save_IFS |
1697 | 2176 |
1698 } >&5 | 2177 } >&5 |
1699 | 2178 |
1700 cat >&5 <<_ACEOF | 2179 cat >&5 <<_ACEOF |
1727 continue ;; | 2206 continue ;; |
1728 *\'*) | 2207 *\'*) |
1729 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | 2208 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1730 esac | 2209 esac |
1731 case $ac_pass in | 2210 case $ac_pass in |
1732 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | 2211 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
1733 2) | 2212 2) |
1734 ac_configure_args1="$ac_configure_args1 '$ac_arg'" | 2213 as_fn_append ac_configure_args1 " '$ac_arg'" |
1735 if test $ac_must_keep_next = true; then | 2214 if test $ac_must_keep_next = true; then |
1736 ac_must_keep_next=false # Got value, back to normal. | 2215 ac_must_keep_next=false # Got value, back to normal. |
1737 else | 2216 else |
1738 case $ac_arg in | 2217 case $ac_arg in |
1739 *=* | --config-cache | -C | -disable-* | --disable-* \ | 2218 *=* | --config-cache | -C | -disable-* | --disable-* \ |
1745 esac | 2224 esac |
1746 ;; | 2225 ;; |
1747 -* ) ac_must_keep_next=true ;; | 2226 -* ) ac_must_keep_next=true ;; |
1748 esac | 2227 esac |
1749 fi | 2228 fi |
1750 ac_configure_args="$ac_configure_args '$ac_arg'" | 2229 as_fn_append ac_configure_args " '$ac_arg'" |
1751 ;; | 2230 ;; |
1752 esac | 2231 esac |
1753 done | 2232 done |
1754 done | 2233 done |
1755 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | 2234 { ac_configure_args0=; unset ac_configure_args0;} |
1756 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | 2235 { ac_configure_args1=; unset ac_configure_args1;} |
1757 | 2236 |
1758 # When interrupted or exit'd, cleanup temporary files, and complete | 2237 # When interrupted or exit'd, cleanup temporary files, and complete |
1759 # config.log. We remove comments because anyway the quotes in there | 2238 # config.log. We remove comments because anyway the quotes in there |
1760 # would cause problems or look ugly. | 2239 # would cause problems or look ugly. |
1761 # WARNING: Use '\'' to represent an apostrophe within the trap. | 2240 # WARNING: Use '\'' to represent an apostrophe within the trap. |
1776 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | 2255 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
1777 eval ac_val=\$$ac_var | 2256 eval ac_val=\$$ac_var |
1778 case $ac_val in #( | 2257 case $ac_val in #( |
1779 *${as_nl}*) | 2258 *${as_nl}*) |
1780 case $ac_var in #( | 2259 case $ac_var in #( |
1781 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | 2260 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
1782 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | 2261 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
1783 esac | 2262 esac |
1784 case $ac_var in #( | 2263 case $ac_var in #( |
1785 _ | IFS | as_nl) ;; #( | 2264 _ | IFS | as_nl) ;; #( |
1786 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | 2265 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
1787 *) $as_unset $ac_var ;; | 2266 *) { eval $ac_var=; unset $ac_var;} ;; |
1788 esac ;; | 2267 esac ;; |
1789 esac | 2268 esac |
1790 done | 2269 done |
1791 (set) 2>&1 | | 2270 (set) 2>&1 | |
1792 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | 2271 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1854 rm -f core *.core core.conftest.* && | 2333 rm -f core *.core core.conftest.* && |
1855 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | 2334 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
1856 exit $exit_status | 2335 exit $exit_status |
1857 ' 0 | 2336 ' 0 |
1858 for ac_signal in 1 2 13 15; do | 2337 for ac_signal in 1 2 13 15; do |
1859 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | 2338 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
1860 done | 2339 done |
1861 ac_signal=0 | 2340 ac_signal=0 |
1862 | 2341 |
1863 # confdefs.h avoids OS command line length limits that DEFS can exceed. | 2342 # confdefs.h avoids OS command line length limits that DEFS can exceed. |
1864 rm -f -r conftest* confdefs.h | 2343 rm -f -r conftest* confdefs.h |
1865 | 2344 |
2345 $as_echo "/* confdefs.h */" > confdefs.h | |
2346 | |
1866 # Predefined preprocessor variables. | 2347 # Predefined preprocessor variables. |
1867 | 2348 |
1868 cat >>confdefs.h <<_ACEOF | 2349 cat >>confdefs.h <<_ACEOF |
1869 #define PACKAGE_NAME "$PACKAGE_NAME" | 2350 #define PACKAGE_NAME "$PACKAGE_NAME" |
1870 _ACEOF | 2351 _ACEOF |
1871 | 2352 |
1872 | |
1873 cat >>confdefs.h <<_ACEOF | 2353 cat >>confdefs.h <<_ACEOF |
1874 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | 2354 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
1875 _ACEOF | 2355 _ACEOF |
1876 | 2356 |
1877 | |
1878 cat >>confdefs.h <<_ACEOF | 2357 cat >>confdefs.h <<_ACEOF |
1879 #define PACKAGE_VERSION "$PACKAGE_VERSION" | 2358 #define PACKAGE_VERSION "$PACKAGE_VERSION" |
1880 _ACEOF | 2359 _ACEOF |
1881 | 2360 |
1882 | |
1883 cat >>confdefs.h <<_ACEOF | 2361 cat >>confdefs.h <<_ACEOF |
1884 #define PACKAGE_STRING "$PACKAGE_STRING" | 2362 #define PACKAGE_STRING "$PACKAGE_STRING" |
1885 _ACEOF | 2363 _ACEOF |
1886 | 2364 |
1887 | |
1888 cat >>confdefs.h <<_ACEOF | 2365 cat >>confdefs.h <<_ACEOF |
1889 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | 2366 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
2367 _ACEOF | |
2368 | |
2369 cat >>confdefs.h <<_ACEOF | |
2370 #define PACKAGE_URL "$PACKAGE_URL" | |
1890 _ACEOF | 2371 _ACEOF |
1891 | 2372 |
1892 | 2373 |
1893 # Let the site file select an alternate cache file if it wants to. | 2374 # Let the site file select an alternate cache file if it wants to. |
1894 # Prefer an explicitly selected file to automatically selected ones. | 2375 # Prefer an explicitly selected file to automatically selected ones. |
1904 ac_site_file2=$ac_default_prefix/etc/config.site | 2385 ac_site_file2=$ac_default_prefix/etc/config.site |
1905 fi | 2386 fi |
1906 for ac_site_file in "$ac_site_file1" "$ac_site_file2" | 2387 for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
1907 do | 2388 do |
1908 test "x$ac_site_file" = xNONE && continue | 2389 test "x$ac_site_file" = xNONE && continue |
1909 if test -r "$ac_site_file"; then | 2390 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
1910 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | 2391 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
1911 $as_echo "$as_me: loading site script $ac_site_file" >&6;} | 2392 $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
1912 sed 's/^/| /' "$ac_site_file" >&5 | 2393 sed 's/^/| /' "$ac_site_file" >&5 |
1913 . "$ac_site_file" | 2394 . "$ac_site_file" |
1914 fi | 2395 fi |
1915 done | 2396 done |
1916 | 2397 |
1917 if test -r "$cache_file"; then | 2398 if test -r "$cache_file"; then |
1918 # Some versions of bash will fail to source /dev/null (special | 2399 # Some versions of bash will fail to source /dev/null (special files |
1919 # files actually), so we avoid doing that. | 2400 # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
1920 if test -f "$cache_file"; then | 2401 if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
1921 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 | 2402 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
1922 $as_echo "$as_me: loading cache $cache_file" >&6;} | 2403 $as_echo "$as_me: loading cache $cache_file" >&6;} |
1923 case $cache_file in | 2404 case $cache_file in |
1924 [\\/]* | ?:[\\/]* ) . "$cache_file";; | 2405 [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1925 *) . "./$cache_file";; | 2406 *) . "./$cache_file";; |
1926 esac | 2407 esac |
1927 fi | 2408 fi |
1928 else | 2409 else |
1929 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 | 2410 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
1930 $as_echo "$as_me: creating cache $cache_file" >&6;} | 2411 $as_echo "$as_me: creating cache $cache_file" >&6;} |
1931 >$cache_file | 2412 >$cache_file |
1932 fi | 2413 fi |
1933 | 2414 |
1934 ac_header_list="$ac_header_list sys/time.h" | 2415 as_fn_append ac_header_list " stdlib.h" |
1935 ac_header_list="$ac_header_list unistd.h" | 2416 as_fn_append ac_header_list " unistd.h" |
1936 ac_func_list="$ac_func_list alarm" | 2417 as_fn_append ac_header_list " sys/param.h" |
2418 as_fn_append ac_header_list " sys/time.h" | |
2419 as_fn_append ac_func_list " alarm" | |
1937 # Check that the precious variables saved in the cache have kept the same | 2420 # Check that the precious variables saved in the cache have kept the same |
1938 # value. | 2421 # value. |
1939 ac_cache_corrupted=false | 2422 ac_cache_corrupted=false |
1940 for ac_var in $ac_precious_vars; do | 2423 for ac_var in $ac_precious_vars; do |
1941 eval ac_old_set=\$ac_cv_env_${ac_var}_set | 2424 eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1942 eval ac_new_set=\$ac_env_${ac_var}_set | 2425 eval ac_new_set=\$ac_env_${ac_var}_set |
1943 eval ac_old_val=\$ac_cv_env_${ac_var}_value | 2426 eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1944 eval ac_new_val=\$ac_env_${ac_var}_value | 2427 eval ac_new_val=\$ac_env_${ac_var}_value |
1945 case $ac_old_set,$ac_new_set in | 2428 case $ac_old_set,$ac_new_set in |
1946 set,) | 2429 set,) |
1947 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | 2430 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1948 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | 2431 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1949 ac_cache_corrupted=: ;; | 2432 ac_cache_corrupted=: ;; |
1950 ,set) | 2433 ,set) |
1951 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | 2434 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
1952 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | 2435 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1953 ac_cache_corrupted=: ;; | 2436 ac_cache_corrupted=: ;; |
1954 ,);; | 2437 ,);; |
1955 *) | 2438 *) |
1956 if test "x$ac_old_val" != "x$ac_new_val"; then | 2439 if test "x$ac_old_val" != "x$ac_new_val"; then |
1957 # differences in whitespace do not lead to failure. | 2440 # differences in whitespace do not lead to failure. |
1958 ac_old_val_w=`echo x $ac_old_val` | 2441 ac_old_val_w=`echo x $ac_old_val` |
1959 ac_new_val_w=`echo x $ac_new_val` | 2442 ac_new_val_w=`echo x $ac_new_val` |
1960 if test "$ac_old_val_w" != "$ac_new_val_w"; then | 2443 if test "$ac_old_val_w" != "$ac_new_val_w"; then |
1961 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | 2444 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
1962 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | 2445 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
1963 ac_cache_corrupted=: | 2446 ac_cache_corrupted=: |
1964 else | 2447 else |
1965 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | 2448 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
1966 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | 2449 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
1967 eval $ac_var=\$ac_old_val | 2450 eval $ac_var=\$ac_old_val |
1968 fi | 2451 fi |
1969 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | 2452 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
1970 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | 2453 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
1971 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | 2454 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
1972 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | 2455 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
1973 fi;; | 2456 fi;; |
1974 esac | 2457 esac |
1975 # Pass precious variables to config.status. | 2458 # Pass precious variables to config.status. |
1976 if test "$ac_new_set" = set; then | 2459 if test "$ac_new_set" = set; then |
1978 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | 2461 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1979 *) ac_arg=$ac_var=$ac_new_val ;; | 2462 *) ac_arg=$ac_var=$ac_new_val ;; |
1980 esac | 2463 esac |
1981 case " $ac_configure_args " in | 2464 case " $ac_configure_args " in |
1982 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | 2465 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
1983 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | 2466 *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
1984 esac | 2467 esac |
1985 fi | 2468 fi |
1986 done | 2469 done |
1987 if $ac_cache_corrupted; then | 2470 if $ac_cache_corrupted; then |
1988 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | 2471 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
1989 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | 2474 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
1990 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | 2475 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
1991 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | 2476 fi |
1992 { (exit 1); exit 1; }; } | 2477 ## -------------------- ## |
1993 fi | 2478 ## Main body of script. ## |
1994 | 2479 ## -------------------- ## |
1995 | |
1996 | |
1997 | |
1998 | |
1999 | |
2000 | |
2001 | |
2002 | |
2003 | |
2004 | |
2005 | |
2006 | |
2007 | |
2008 | |
2009 | |
2010 | |
2011 | |
2012 | |
2013 | |
2014 | |
2015 | |
2016 | |
2017 | |
2018 | 2480 |
2019 ac_ext=c | 2481 ac_ext=c |
2020 ac_cpp='$CPP $CPPFLAGS' | 2482 ac_cpp='$CPP $CPPFLAGS' |
2021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 2483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 2484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2051 | 2513 |
2052 | 2514 |
2053 | 2515 |
2054 | 2516 |
2055 # Check whether --with-pop was given. | 2517 # Check whether --with-pop was given. |
2056 if test "${with_pop+set}" = set; then | 2518 if test "${with_pop+set}" = set; then : |
2057 withval=$with_pop; | 2519 withval=$with_pop; |
2058 else | 2520 else |
2059 with_pop=yes | 2521 with_pop=yes |
2060 fi | 2522 fi |
2061 | 2523 |
2062 if test "$with_pop" = yes; then | 2524 if test "$with_pop" = yes; then |
2063 cat >>confdefs.h <<\_ACEOF | 2525 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h |
2064 #define MAIL_USE_POP 1 | 2526 |
2065 _ACEOF | 2527 fi |
2066 | |
2067 fi | |
2068 | |
2069 | 2528 |
2070 | 2529 |
2071 # Check whether --with-kerberos was given. | 2530 # Check whether --with-kerberos was given. |
2072 if test "${with_kerberos+set}" = set; then | 2531 if test "${with_kerberos+set}" = set; then : |
2073 withval=$with_kerberos; | 2532 withval=$with_kerberos; |
2074 else | 2533 else |
2075 with_kerberos=no | 2534 with_kerberos=no |
2076 fi | 2535 fi |
2077 | 2536 |
2078 if test "$with_kerberos" != no; then | 2537 if test "$with_kerberos" != no; then |
2079 cat >>confdefs.h <<\_ACEOF | 2538 $as_echo "#define KERBEROS 1" >>confdefs.h |
2080 #define KERBEROS 1 | 2539 |
2081 _ACEOF | 2540 fi |
2082 | |
2083 fi | |
2084 | |
2085 | 2541 |
2086 | 2542 |
2087 # Check whether --with-kerberos5 was given. | 2543 # Check whether --with-kerberos5 was given. |
2088 if test "${with_kerberos5+set}" = set; then | 2544 if test "${with_kerberos5+set}" = set; then : |
2089 withval=$with_kerberos5; | 2545 withval=$with_kerberos5; |
2090 else | 2546 else |
2091 with_kerberos5=no | 2547 with_kerberos5=no |
2092 fi | 2548 fi |
2093 | 2549 |
2094 if test "${with_kerberos5}" != no; then | 2550 if test "${with_kerberos5}" != no; then |
2095 if test "${with_kerberos}" = no; then | 2551 if test "${with_kerberos}" = no; then |
2096 with_kerberos=yes | 2552 with_kerberos=yes |
2097 cat >>confdefs.h <<\_ACEOF | 2553 $as_echo "#define KERBEROS 1" >>confdefs.h |
2098 #define KERBEROS 1 | 2554 |
2099 _ACEOF | 2555 fi |
2100 | 2556 |
2101 fi | 2557 $as_echo "#define KERBEROS5 1" >>confdefs.h |
2102 | |
2103 cat >>confdefs.h <<\_ACEOF | |
2104 #define KERBEROS5 1 | |
2105 _ACEOF | |
2106 | 2558 |
2107 fi | 2559 fi |
2108 | 2560 |
2109 | 2561 |
2110 # Check whether --with-hesiod was given. | 2562 # Check whether --with-hesiod was given. |
2111 if test "${with_hesiod+set}" = set; then | 2563 if test "${with_hesiod+set}" = set; then : |
2112 withval=$with_hesiod; | 2564 withval=$with_hesiod; |
2113 else | 2565 else |
2114 with_hesiod=no | 2566 with_hesiod=no |
2115 fi | 2567 fi |
2116 | 2568 |
2117 if test "$with_hesiod" != no; then | 2569 if test "$with_hesiod" != no; then |
2118 | 2570 |
2119 cat >>confdefs.h <<\_ACEOF | 2571 $as_echo "#define HESIOD 1" >>confdefs.h |
2120 #define HESIOD 1 | |
2121 _ACEOF | |
2122 | 2572 |
2123 fi | 2573 fi |
2124 | 2574 |
2125 | 2575 |
2126 # Check whether --with-mmdf was given. | 2576 # Check whether --with-mmdf was given. |
2127 if test "${with_mmdf+set}" = set; then | 2577 if test "${with_mmdf+set}" = set; then : |
2128 withval=$with_mmdf; | 2578 withval=$with_mmdf; |
2129 else | 2579 else |
2130 with_mmdf=no | 2580 with_mmdf=no |
2131 fi | 2581 fi |
2132 | 2582 |
2133 if test "$with_mmdf" != no; then | 2583 if test "$with_mmdf" != no; then |
2134 | 2584 |
2135 cat >>confdefs.h <<\_ACEOF | 2585 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h |
2136 #define MAIL_USE_MMDF 1 | |
2137 _ACEOF | |
2138 | 2586 |
2139 fi | 2587 fi |
2140 | 2588 |
2141 | 2589 |
2142 # Check whether --with-mail-unlink was given. | 2590 # Check whether --with-mail-unlink was given. |
2143 if test "${with_mail_unlink+set}" = set; then | 2591 if test "${with_mail_unlink+set}" = set; then : |
2144 withval=$with_mail_unlink; | 2592 withval=$with_mail_unlink; |
2145 else | 2593 else |
2146 with_mail_unlink=no | 2594 with_mail_unlink=no |
2147 fi | 2595 fi |
2148 | 2596 |
2149 if test "$with_mail_unlink" != no; then | 2597 if test "$with_mail_unlink" != no; then |
2150 | 2598 |
2151 cat >>confdefs.h <<\_ACEOF | 2599 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h |
2152 #define MAIL_UNLINK_SPOOL 1 | |
2153 _ACEOF | |
2154 | 2600 |
2155 fi | 2601 fi |
2156 | 2602 |
2157 | 2603 |
2158 # Check whether --with-mailhost was given. | 2604 # Check whether --with-mailhost was given. |
2159 if test "${with_mailhost+set}" = set; then | 2605 if test "${with_mailhost+set}" = set; then : |
2160 withval=$with_mailhost; | 2606 withval=$with_mailhost; |
2161 cat >>confdefs.h <<_ACEOF | 2607 cat >>confdefs.h <<_ACEOF |
2162 #define MAILHOST "$withval" | 2608 #define MAILHOST "$withval" |
2163 _ACEOF | 2609 _ACEOF |
2164 | 2610 |
2165 fi | 2611 fi |
2166 | 2612 |
2167 | 2613 |
2168 | 2614 |
2169 # Check whether --with-sound was given. | 2615 # Check whether --with-sound was given. |
2170 if test "${with_sound+set}" = set; then | 2616 if test "${with_sound+set}" = set; then : |
2171 withval=$with_sound; | 2617 withval=$with_sound; |
2172 else | 2618 else |
2173 with_sound=yes | 2619 with_sound=yes |
2174 fi | 2620 fi |
2175 | 2621 |
2176 | 2622 |
2177 | 2623 |
2178 # Check whether --with-sync-input was given. | 2624 # Check whether --with-sync-input was given. |
2179 if test "${with_sync_input+set}" = set; then | 2625 if test "${with_sync_input+set}" = set; then : |
2180 withval=$with_sync_input; | 2626 withval=$with_sync_input; |
2181 else | 2627 else |
2182 with_sync_input=yes | 2628 with_sync_input=yes |
2183 fi | 2629 fi |
2184 | 2630 |
2185 if test "$with_sync_input" = yes; then | 2631 if test "$with_sync_input" = yes; then |
2186 | 2632 |
2187 cat >>confdefs.h <<\_ACEOF | 2633 $as_echo "#define SYNC_INPUT 1" >>confdefs.h |
2188 #define SYNC_INPUT 1 | |
2189 _ACEOF | |
2190 | 2634 |
2191 fi | 2635 fi |
2192 | 2636 |
2193 | 2637 |
2194 # Check whether --with-x-toolkit was given. | 2638 # Check whether --with-x-toolkit was given. |
2195 if test "${with_x_toolkit+set}" = set; then | 2639 if test "${with_x_toolkit+set}" = set; then : |
2196 withval=$with_x_toolkit; case "${withval}" in | 2640 withval=$with_x_toolkit; case "${withval}" in |
2197 y | ye | yes ) val=gtk ;; | 2641 y | ye | yes ) val=gtk ;; |
2198 n | no ) val=no ;; | 2642 n | no ) val=no ;; |
2199 l | lu | luc | luci | lucid ) val=lucid ;; | 2643 l | lu | luc | luci | lucid ) val=lucid ;; |
2200 a | at | ath | athe | athen | athena ) val=athena ;; | 2644 a | at | ath | athe | athen | athena ) val=athena ;; |
2201 m | mo | mot | moti | motif ) val=motif ;; | 2645 m | mo | mot | moti | motif ) val=motif ;; |
2202 g | gt | gtk ) val=gtk ;; | 2646 g | gt | gtk ) val=gtk ;; |
2203 * ) | 2647 * ) |
2204 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid; | 2648 as_fn_error "\`--with-x-toolkit=$withval' is invalid; |
2205 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'. | 2649 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'. |
2206 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5 | 2650 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5 |
2207 $as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid; | |
2208 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'. | |
2209 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;} | |
2210 { (exit 1); exit 1; }; } | |
2211 ;; | 2651 ;; |
2212 esac | 2652 esac |
2213 with_x_toolkit=$val | 2653 with_x_toolkit=$val |
2214 | 2654 |
2215 fi | 2655 fi |
2216 | 2656 |
2217 | 2657 |
2218 | 2658 |
2219 # Check whether --with-xpm was given. | 2659 # Check whether --with-xpm was given. |
2220 if test "${with_xpm+set}" = set; then | 2660 if test "${with_xpm+set}" = set; then : |
2221 withval=$with_xpm; | 2661 withval=$with_xpm; |
2222 else | 2662 else |
2223 with_xpm=yes | 2663 with_xpm=yes |
2224 fi | 2664 fi |
2225 | 2665 |
2226 | 2666 |
2227 # Check whether --with-jpeg was given. | 2667 # Check whether --with-jpeg was given. |
2228 if test "${with_jpeg+set}" = set; then | 2668 if test "${with_jpeg+set}" = set; then : |
2229 withval=$with_jpeg; | 2669 withval=$with_jpeg; |
2230 else | 2670 else |
2231 with_jpeg=yes | 2671 with_jpeg=yes |
2232 fi | 2672 fi |
2233 | 2673 |
2234 | 2674 |
2235 # Check whether --with-tiff was given. | 2675 # Check whether --with-tiff was given. |
2236 if test "${with_tiff+set}" = set; then | 2676 if test "${with_tiff+set}" = set; then : |
2237 withval=$with_tiff; | 2677 withval=$with_tiff; |
2238 else | 2678 else |
2239 with_tiff=yes | 2679 with_tiff=yes |
2240 fi | 2680 fi |
2241 | 2681 |
2242 | 2682 |
2243 # Check whether --with-gif was given. | 2683 # Check whether --with-gif was given. |
2244 if test "${with_gif+set}" = set; then | 2684 if test "${with_gif+set}" = set; then : |
2245 withval=$with_gif; | 2685 withval=$with_gif; |
2246 else | 2686 else |
2247 with_gif=yes | 2687 with_gif=yes |
2248 fi | 2688 fi |
2249 | 2689 |
2250 | 2690 |
2251 # Check whether --with-png was given. | 2691 # Check whether --with-png was given. |
2252 if test "${with_png+set}" = set; then | 2692 if test "${with_png+set}" = set; then : |
2253 withval=$with_png; | 2693 withval=$with_png; |
2254 else | 2694 else |
2255 with_png=yes | 2695 with_png=yes |
2256 fi | 2696 fi |
2257 | 2697 |
2258 | 2698 |
2259 # Check whether --with-rsvg was given. | 2699 # Check whether --with-rsvg was given. |
2260 if test "${with_rsvg+set}" = set; then | 2700 if test "${with_rsvg+set}" = set; then : |
2261 withval=$with_rsvg; | 2701 withval=$with_rsvg; |
2262 else | 2702 else |
2263 with_rsvg=yes | 2703 with_rsvg=yes |
2264 fi | 2704 fi |
2265 | 2705 |
2266 | 2706 |
2267 | 2707 |
2268 # Check whether --with-xft was given. | 2708 # Check whether --with-xft was given. |
2269 if test "${with_xft+set}" = set; then | 2709 if test "${with_xft+set}" = set; then : |
2270 withval=$with_xft; | 2710 withval=$with_xft; |
2271 else | 2711 else |
2272 with_xft=yes | 2712 with_xft=yes |
2273 fi | 2713 fi |
2274 | 2714 |
2275 | 2715 |
2276 # Check whether --with-libotf was given. | 2716 # Check whether --with-libotf was given. |
2277 if test "${with_libotf+set}" = set; then | 2717 if test "${with_libotf+set}" = set; then : |
2278 withval=$with_libotf; | 2718 withval=$with_libotf; |
2279 else | 2719 else |
2280 with_libotf=yes | 2720 with_libotf=yes |
2281 fi | 2721 fi |
2282 | 2722 |
2283 | 2723 |
2284 # Check whether --with-m17n-flt was given. | 2724 # Check whether --with-m17n-flt was given. |
2285 if test "${with_m17n_flt+set}" = set; then | 2725 if test "${with_m17n_flt+set}" = set; then : |
2286 withval=$with_m17n_flt; | 2726 withval=$with_m17n_flt; |
2287 else | 2727 else |
2288 with_m17n_flt=yes | 2728 with_m17n_flt=yes |
2289 fi | 2729 fi |
2290 | 2730 |
2291 | 2731 |
2292 | 2732 |
2293 # Check whether --with-toolkit-scroll-bars was given. | 2733 # Check whether --with-toolkit-scroll-bars was given. |
2294 if test "${with_toolkit_scroll_bars+set}" = set; then | 2734 if test "${with_toolkit_scroll_bars+set}" = set; then : |
2295 withval=$with_toolkit_scroll_bars; | 2735 withval=$with_toolkit_scroll_bars; |
2296 else | 2736 else |
2297 with_toolkit_scroll_bars=yes | 2737 with_toolkit_scroll_bars=yes |
2298 fi | 2738 fi |
2299 | 2739 |
2300 | 2740 |
2301 # Check whether --with-xaw3d was given. | 2741 # Check whether --with-xaw3d was given. |
2302 if test "${with_xaw3d+set}" = set; then | 2742 if test "${with_xaw3d+set}" = set; then : |
2303 withval=$with_xaw3d; | 2743 withval=$with_xaw3d; |
2304 else | 2744 else |
2305 with_xaw3d=yes | 2745 with_xaw3d=yes |
2306 fi | 2746 fi |
2307 | 2747 |
2308 | 2748 |
2309 # Check whether --with-xim was given. | 2749 # Check whether --with-xim was given. |
2310 if test "${with_xim+set}" = set; then | 2750 if test "${with_xim+set}" = set; then : |
2311 withval=$with_xim; | 2751 withval=$with_xim; |
2312 else | 2752 else |
2313 with_xim=yes | 2753 with_xim=yes |
2314 fi | 2754 fi |
2315 | 2755 |
2316 | 2756 |
2317 # Check whether --with-ns was given. | 2757 # Check whether --with-ns was given. |
2318 if test "${with_ns+set}" = set; then | 2758 if test "${with_ns+set}" = set; then : |
2319 withval=$with_ns; | 2759 withval=$with_ns; |
2320 else | 2760 else |
2321 with_ns=no | 2761 with_ns=no |
2322 fi | 2762 fi |
2323 | 2763 |
2324 | 2764 |
2325 | 2765 |
2326 # Check whether --with-gpm was given. | 2766 # Check whether --with-gpm was given. |
2327 if test "${with_gpm+set}" = set; then | 2767 if test "${with_gpm+set}" = set; then : |
2328 withval=$with_gpm; | 2768 withval=$with_gpm; |
2329 else | 2769 else |
2330 with_gpm=yes | 2770 with_gpm=yes |
2331 fi | 2771 fi |
2332 | 2772 |
2333 | 2773 |
2334 # Check whether --with-dbus was given. | 2774 # Check whether --with-dbus was given. |
2335 if test "${with_dbus+set}" = set; then | 2775 if test "${with_dbus+set}" = set; then : |
2336 withval=$with_dbus; | 2776 withval=$with_dbus; |
2337 else | 2777 else |
2338 with_dbus=yes | 2778 with_dbus=yes |
2339 fi | 2779 fi |
2340 | 2780 |
2341 | 2781 |
2342 # Check whether --with-gconf was given. | 2782 # Check whether --with-gconf was given. |
2343 if test "${with_gconf+set}" = set; then | 2783 if test "${with_gconf+set}" = set; then : |
2344 withval=$with_gconf; | 2784 withval=$with_gconf; |
2345 else | 2785 else |
2346 with_gconf=yes | 2786 with_gconf=yes |
2347 fi | 2787 fi |
2348 | 2788 |
2349 | 2789 |
2350 # Check whether --with-selinux was given. | 2790 # Check whether --with-selinux was given. |
2351 if test "${with_selinux+set}" = set; then | 2791 if test "${with_selinux+set}" = set; then : |
2352 withval=$with_selinux; | 2792 withval=$with_selinux; |
2353 else | 2793 else |
2354 with_selinux=yes | 2794 with_selinux=yes |
2355 fi | 2795 fi |
2356 | 2796 |
2357 | 2797 |
2358 ## For the times when you want to build Emacs but don't have | 2798 ## For the times when you want to build Emacs but don't have |
2359 ## a suitable makeinfo, and can live without the manuals. | 2799 ## a suitable makeinfo, and can live without the manuals. |
2360 | 2800 |
2361 # Check whether --with-makeinfo was given. | 2801 # Check whether --with-makeinfo was given. |
2362 if test "${with_makeinfo+set}" = set; then | 2802 if test "${with_makeinfo+set}" = set; then : |
2363 withval=$with_makeinfo; | 2803 withval=$with_makeinfo; |
2364 else | 2804 else |
2365 with_makeinfo=yes | 2805 with_makeinfo=yes |
2366 fi | 2806 fi |
2367 | 2807 |
2368 | 2808 |
2369 | 2809 |
2370 # Check whether --with-gtk was given. | 2810 # Check whether --with-gtk was given. |
2371 if test "${with_gtk+set}" = set; then | 2811 if test "${with_gtk+set}" = set; then : |
2372 withval=$with_gtk; { { $as_echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to | 2812 withval=$with_gtk; as_fn_error "--with-gtk has been removed. Use --with-x-toolkit to |
2373 specify a toolkit." >&5 | 2813 specify a toolkit." "$LINENO" 5 |
2374 $as_echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to | |
2375 specify a toolkit." >&2;} | |
2376 { (exit 1); exit 1; }; } | |
2377 fi | 2814 fi |
2378 | 2815 |
2379 | 2816 |
2380 | 2817 |
2381 # Check whether --with-gcc was given. | 2818 # Check whether --with-gcc was given. |
2382 if test "${with_gcc+set}" = set; then | 2819 if test "${with_gcc+set}" = set; then : |
2383 withval=$with_gcc; { { $as_echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment | 2820 withval=$with_gcc; as_fn_error "--with-gcc has been removed. Set the \`CC' environment |
2384 variable to specify a compiler." >&5 | 2821 variable to specify a compiler." "$LINENO" 5 |
2385 $as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment | |
2386 variable to specify a compiler." >&2;} | |
2387 { (exit 1); exit 1; }; } | |
2388 fi | 2822 fi |
2389 | 2823 |
2390 | 2824 |
2391 | 2825 |
2392 # Check whether --with-pkg-config-prog was given. | 2826 # Check whether --with-pkg-config-prog was given. |
2393 if test "${with_pkg_config_prog+set}" = set; then | 2827 if test "${with_pkg_config_prog+set}" = set; then : |
2394 withval=$with_pkg_config_prog; | 2828 withval=$with_pkg_config_prog; |
2395 fi | 2829 fi |
2396 | 2830 |
2397 if test "X${with_pkg_config_prog}" != X; then | 2831 if test "X${with_pkg_config_prog}" != X; then |
2398 if test "${with_pkg_config_prog}" != yes; then | 2832 if test "${with_pkg_config_prog}" != yes; then |
2401 fi | 2835 fi |
2402 | 2836 |
2403 CRT_DIR= | 2837 CRT_DIR= |
2404 | 2838 |
2405 # Check whether --with-crt-dir was given. | 2839 # Check whether --with-crt-dir was given. |
2406 if test "${with_crt_dir+set}" = set; then | 2840 if test "${with_crt_dir+set}" = set; then : |
2407 withval=$with_crt_dir; | 2841 withval=$with_crt_dir; |
2408 fi | 2842 fi |
2409 | 2843 |
2410 CRT_DIR="${with_crt_dir}" | 2844 CRT_DIR="${with_crt_dir}" |
2411 | 2845 |
2412 | 2846 |
2413 # Check whether --with-gnustep-conf was given. | 2847 # Check whether --with-gnustep-conf was given. |
2414 if test "${with_gnustep_conf+set}" = set; then | 2848 if test "${with_gnustep_conf+set}" = set; then : |
2415 withval=$with_gnustep_conf; | 2849 withval=$with_gnustep_conf; |
2416 fi | 2850 fi |
2417 | 2851 |
2418 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \ | 2852 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \ |
2419 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}" | 2853 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}" |
2420 test "X$GNUSTEP_CONFIG_FILE" = "X" && \ | 2854 test "X$GNUSTEP_CONFIG_FILE" = "X" && \ |
2421 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf | 2855 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf |
2422 | 2856 |
2423 # Check whether --enable-ns-self-contained was given. | 2857 # Check whether --enable-ns-self-contained was given. |
2424 if test "${enable_ns_self_contained+set}" = set; then | 2858 if test "${enable_ns_self_contained+set}" = set; then : |
2425 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval | 2859 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval |
2426 else | 2860 else |
2427 EN_NS_SELF_CONTAINED=yes | 2861 EN_NS_SELF_CONTAINED=yes |
2428 fi | 2862 fi |
2429 | 2863 |
2430 | 2864 |
2431 # Check whether --enable-asserts was given. | 2865 # Check whether --enable-asserts was given. |
2432 if test "${enable_asserts+set}" = set; then | 2866 if test "${enable_asserts+set}" = set; then : |
2433 enableval=$enable_asserts; USE_XASSERTS=$enableval | 2867 enableval=$enable_asserts; USE_XASSERTS=$enableval |
2434 else | 2868 else |
2435 USE_XASSERTS=no | 2869 USE_XASSERTS=no |
2436 fi | 2870 fi |
2437 | 2871 |
2438 | 2872 |
2439 # Check whether --enable-maintainer-mode was given. | 2873 # Check whether --enable-maintainer-mode was given. |
2440 if test "${enable_maintainer_mode+set}" = set; then | 2874 if test "${enable_maintainer_mode+set}" = set; then : |
2441 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | 2875 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
2442 else | 2876 else |
2443 USE_MAINTAINER_MODE=no | 2877 USE_MAINTAINER_MODE=no |
2444 fi | 2878 fi |
2445 | 2879 |
2449 MAINT=# | 2883 MAINT=# |
2450 fi | 2884 fi |
2451 | 2885 |
2452 | 2886 |
2453 # Check whether --enable-locallisppath was given. | 2887 # Check whether --enable-locallisppath was given. |
2454 if test "${enable_locallisppath+set}" = set; then | 2888 if test "${enable_locallisppath+set}" = set; then : |
2455 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then | 2889 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then |
2456 locallisppath= | 2890 locallisppath= |
2457 elif test "${enableval}" != "yes"; then | 2891 elif test "${enableval}" != "yes"; then |
2458 locallisppath=${enableval} | 2892 locallisppath=${enableval} |
2459 fi | 2893 fi |
2460 fi | 2894 fi |
2461 | 2895 |
2462 | 2896 |
2463 # Check whether --enable-checking was given. | 2897 # Check whether --enable-checking was given. |
2464 if test "${enable_checking+set}" = set; then | 2898 if test "${enable_checking+set}" = set; then : |
2465 enableval=$enable_checking; ac_checking_flags="${enableval}" | 2899 enableval=$enable_checking; ac_checking_flags="${enableval}" |
2466 fi | 2900 fi |
2467 | 2901 |
2468 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS," | 2902 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS," |
2469 for check in $ac_checking_flags | 2903 for check in $ac_checking_flags |
2487 stringbytes) ac_gc_check_stringbytes=1 ;; | 2921 stringbytes) ac_gc_check_stringbytes=1 ;; |
2488 stringoverrun) ac_gc_check_string_overrun=1 ;; | 2922 stringoverrun) ac_gc_check_string_overrun=1 ;; |
2489 stringfreelist) ac_gc_check_string_free_list=1 ;; | 2923 stringfreelist) ac_gc_check_string_free_list=1 ;; |
2490 xmallocoverrun) ac_xmalloc_overrun=1 ;; | 2924 xmallocoverrun) ac_xmalloc_overrun=1 ;; |
2491 conslist) ac_gc_check_cons_list=1 ;; | 2925 conslist) ac_gc_check_cons_list=1 ;; |
2492 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5 | 2926 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;; |
2493 $as_echo "$as_me: error: unknown check category $check" >&2;} | |
2494 { (exit 1); exit 1; }; } ;; | |
2495 esac | 2927 esac |
2496 done | 2928 done |
2497 IFS="$ac_save_IFS" | 2929 IFS="$ac_save_IFS" |
2498 | 2930 |
2499 if test x$ac_enable_checking != x ; then | 2931 if test x$ac_enable_checking != x ; then |
2500 | 2932 |
2501 cat >>confdefs.h <<\_ACEOF | 2933 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h |
2502 #define ENABLE_CHECKING 1 | |
2503 _ACEOF | |
2504 | 2934 |
2505 fi | 2935 fi |
2506 if test x$ac_gc_check_stringbytes != x ; then | 2936 if test x$ac_gc_check_stringbytes != x ; then |
2507 | 2937 |
2508 cat >>confdefs.h <<\_ACEOF | 2938 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h |
2509 #define GC_CHECK_STRING_BYTES 1 | |
2510 _ACEOF | |
2511 | 2939 |
2512 fi | 2940 fi |
2513 if test x$ac_gc_check_stringoverrun != x ; then | 2941 if test x$ac_gc_check_stringoverrun != x ; then |
2514 | 2942 |
2515 cat >>confdefs.h <<\_ACEOF | 2943 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h |
2516 #define GC_CHECK_STRING_OVERRUN 1 | |
2517 _ACEOF | |
2518 | 2944 |
2519 fi | 2945 fi |
2520 if test x$ac_gc_check_string_free_list != x ; then | 2946 if test x$ac_gc_check_string_free_list != x ; then |
2521 | 2947 |
2522 cat >>confdefs.h <<\_ACEOF | 2948 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h |
2523 #define GC_CHECK_STRING_FREE_LIST 1 | |
2524 _ACEOF | |
2525 | 2949 |
2526 fi | 2950 fi |
2527 if test x$ac_xmalloc_overrun != x ; then | 2951 if test x$ac_xmalloc_overrun != x ; then |
2528 | 2952 |
2529 cat >>confdefs.h <<\_ACEOF | 2953 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h |
2530 #define XMALLOC_OVERRUN_CHECK 1 | |
2531 _ACEOF | |
2532 | 2954 |
2533 fi | 2955 fi |
2534 if test x$ac_gc_check_cons_list != x ; then | 2956 if test x$ac_gc_check_cons_list != x ; then |
2535 | 2957 |
2536 cat >>confdefs.h <<\_ACEOF | 2958 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h |
2537 #define GC_CHECK_CONS_LIST 1 | |
2538 _ACEOF | |
2539 | 2959 |
2540 fi | 2960 fi |
2541 | 2961 |
2542 # Check whether --enable-profiling was given. | 2962 # Check whether --enable-profiling was given. |
2543 if test "${enable_profiling+set}" = set; then | 2963 if test "${enable_profiling+set}" = set; then : |
2544 enableval=$enable_profiling; ac_enable_profiling="${enableval}" | 2964 enableval=$enable_profiling; ac_enable_profiling="${enableval}" |
2545 fi | 2965 fi |
2546 | 2966 |
2547 if test x$ac_enable_profiling != x ; then | 2967 if test x$ac_enable_profiling != x ; then |
2548 PROFILING_CFLAGS="-DPROFILING=1 -pg" | 2968 PROFILING_CFLAGS="-DPROFILING=1 -pg" |
2551 PROFILING_CFLAGS= | 2971 PROFILING_CFLAGS= |
2552 PROFILING_LDFLAGS= | 2972 PROFILING_LDFLAGS= |
2553 fi | 2973 fi |
2554 | 2974 |
2555 # Check whether --enable-autodepend was given. | 2975 # Check whether --enable-autodepend was given. |
2556 if test "${enable_autodepend+set}" = set; then | 2976 if test "${enable_autodepend+set}" = set; then : |
2557 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}" | 2977 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}" |
2558 else | 2978 else |
2559 ac_enable_autodepend=yes | 2979 ac_enable_autodepend=yes |
2560 fi | 2980 fi |
2561 | 2981 |
2585 esac | 3005 esac |
2586 | 3006 |
2587 #### Check if the source directory already has a configured system in it. | 3007 #### Check if the source directory already has a configured system in it. |
2588 if test `pwd` != `(cd ${srcdir} && pwd)` \ | 3008 if test `pwd` != `(cd ${srcdir} && pwd)` \ |
2589 && test -f "${srcdir}/src/config.h" ; then | 3009 && test -f "${srcdir}/src/config.h" ; then |
2590 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used | 3010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used |
2591 as a build directory right now; it has been configured in its own | 3011 as a build directory right now; it has been configured in its own |
2592 right. To configure in another directory as well, you MUST | 3012 right. To configure in another directory as well, you MUST |
2593 use GNU make. If you do not have GNU make, then you must | 3013 use GNU make. If you do not have GNU make, then you must |
2594 now do \`make distclean' in ${srcdir}, | 3014 now do \`make distclean' in ${srcdir}, |
2595 and then run $0 again." >&5 | 3015 and then run $0 again." >&5 |
2606 | 3026 |
2607 ### Canonicalize the configuration name. | 3027 ### Canonicalize the configuration name. |
2608 | 3028 |
2609 ac_aux_dir= | 3029 ac_aux_dir= |
2610 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | 3030 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2611 if test -f "$ac_dir/install-sh"; then | 3031 for ac_t in install-sh install.sh shtool; do |
2612 ac_aux_dir=$ac_dir | 3032 if test -f "$ac_dir/$ac_t"; then |
2613 ac_install_sh="$ac_aux_dir/install-sh -c" | 3033 ac_aux_dir=$ac_dir |
2614 break | 3034 ac_install_sh="$ac_aux_dir/$ac_t -c" |
2615 elif test -f "$ac_dir/install.sh"; then | 3035 break 2 |
2616 ac_aux_dir=$ac_dir | 3036 fi |
2617 ac_install_sh="$ac_aux_dir/install.sh -c" | 3037 done |
2618 break | |
2619 elif test -f "$ac_dir/shtool"; then | |
2620 ac_aux_dir=$ac_dir | |
2621 ac_install_sh="$ac_aux_dir/shtool install -c" | |
2622 break | |
2623 fi | |
2624 done | 3038 done |
2625 if test -z "$ac_aux_dir"; then | 3039 if test -z "$ac_aux_dir"; then |
2626 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 | 3040 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
2627 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | |
2628 { (exit 1); exit 1; }; } | |
2629 fi | 3041 fi |
2630 | 3042 |
2631 # These three variables are undocumented and unsupported, | 3043 # These three variables are undocumented and unsupported, |
2632 # and are intended to be withdrawn in a future Autoconf release. | 3044 # and are intended to be withdrawn in a future Autoconf release. |
2633 # They can cause serious problems if a builder's source tree is in a directory | 3045 # They can cause serious problems if a builder's source tree is in a directory |
2637 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | 3049 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
2638 | 3050 |
2639 | 3051 |
2640 # Make sure we can run config.sub. | 3052 # Make sure we can run config.sub. |
2641 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | 3053 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
2642 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 | 3054 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
2643 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | 3055 |
2644 { (exit 1); exit 1; }; } | 3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
2645 | |
2646 { $as_echo "$as_me:$LINENO: checking build system type" >&5 | |
2647 $as_echo_n "checking build system type... " >&6; } | 3057 $as_echo_n "checking build system type... " >&6; } |
2648 if test "${ac_cv_build+set}" = set; then | 3058 if test "${ac_cv_build+set}" = set; then : |
2649 $as_echo_n "(cached) " >&6 | 3059 $as_echo_n "(cached) " >&6 |
2650 else | 3060 else |
2651 ac_build_alias=$build_alias | 3061 ac_build_alias=$build_alias |
2652 test "x$ac_build_alias" = x && | 3062 test "x$ac_build_alias" = x && |
2653 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | 3063 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
2654 test "x$ac_build_alias" = x && | 3064 test "x$ac_build_alias" = x && |
2655 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | 3065 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 |
2656 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
2657 { (exit 1); exit 1; }; } | |
2658 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | 3066 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
2659 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 | 3067 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
2660 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | 3068 |
2661 { (exit 1); exit 1; }; } | 3069 fi |
2662 | 3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
2663 fi | |
2664 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
2665 $as_echo "$ac_cv_build" >&6; } | 3071 $as_echo "$ac_cv_build" >&6; } |
2666 case $ac_cv_build in | 3072 case $ac_cv_build in |
2667 *-*-*) ;; | 3073 *-*-*) ;; |
2668 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 | 3074 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; |
2669 $as_echo "$as_me: error: invalid value of canonical build" >&2;} | |
2670 { (exit 1); exit 1; }; };; | |
2671 esac | 3075 esac |
2672 build=$ac_cv_build | 3076 build=$ac_cv_build |
2673 ac_save_IFS=$IFS; IFS='-' | 3077 ac_save_IFS=$IFS; IFS='-' |
2674 set x $ac_cv_build | 3078 set x $ac_cv_build |
2675 shift | 3079 shift |
2681 build_os=$* | 3085 build_os=$* |
2682 IFS=$ac_save_IFS | 3086 IFS=$ac_save_IFS |
2683 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | 3087 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
2684 | 3088 |
2685 | 3089 |
2686 { $as_echo "$as_me:$LINENO: checking host system type" >&5 | 3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2687 $as_echo_n "checking host system type... " >&6; } | 3091 $as_echo_n "checking host system type... " >&6; } |
2688 if test "${ac_cv_host+set}" = set; then | 3092 if test "${ac_cv_host+set}" = set; then : |
2689 $as_echo_n "(cached) " >&6 | 3093 $as_echo_n "(cached) " >&6 |
2690 else | 3094 else |
2691 if test "x$host_alias" = x; then | 3095 if test "x$host_alias" = x; then |
2692 ac_cv_host=$ac_cv_build | 3096 ac_cv_host=$ac_cv_build |
2693 else | 3097 else |
2694 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | 3098 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
2695 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 | 3099 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
2696 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | 3100 fi |
2697 { (exit 1); exit 1; }; } | 3101 |
2698 fi | 3102 fi |
2699 | 3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2700 fi | |
2701 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
2702 $as_echo "$ac_cv_host" >&6; } | 3104 $as_echo "$ac_cv_host" >&6; } |
2703 case $ac_cv_host in | 3105 case $ac_cv_host in |
2704 *-*-*) ;; | 3106 *-*-*) ;; |
2705 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 | 3107 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; |
2706 $as_echo "$as_me: error: invalid value of canonical host" >&2;} | |
2707 { (exit 1); exit 1; }; };; | |
2708 esac | 3108 esac |
2709 host=$ac_cv_host | 3109 host=$ac_cv_host |
2710 ac_save_IFS=$IFS; IFS='-' | 3110 ac_save_IFS=$IFS; IFS='-' |
2711 set x $ac_cv_host | 3111 set x $ac_cv_host |
2712 shift | 3112 shift |
2780 ;; | 3180 ;; |
2781 | 3181 |
2782 ## NetBSD ports | 3182 ## NetBSD ports |
2783 *-*-netbsd* ) | 3183 *-*-netbsd* ) |
2784 opsys=netbsd | 3184 opsys=netbsd |
2785 if test -f /usr/lib/crti.o; then | |
2786 | |
2787 cat >>confdefs.h <<\_ACEOF | |
2788 #define HAVE_CRTIN /**/ | |
2789 _ACEOF | |
2790 | |
2791 fi | |
2792 | |
2793 case "${canonical}" in | 3185 case "${canonical}" in |
2794 alpha*-*-netbsd*) machine=alpha ;; | 3186 alpha*-*-netbsd*) machine=alpha ;; |
2795 i[3456]86-*-netbsd*) machine=intel386 ;; | 3187 i[3456]86-*-netbsd*) machine=intel386 ;; |
2796 mips-*-netbsd*) machine=mips ;; | 3188 mips-*-netbsd*) machine=mips ;; |
2797 mipsel-*-netbsd*) machine=mips ;; | 3189 mipsel-*-netbsd*) machine=mips ;; |
3009 fi | 3401 fi |
3010 | 3402 |
3011 | 3403 |
3012 | 3404 |
3013 if test $unported = yes; then | 3405 if test $unported = yes; then |
3014 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems. | 3406 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems. |
3015 Check \`etc/MACHINES' for recognized configuration names." >&5 | 3407 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5 |
3016 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems. | |
3017 Check \`etc/MACHINES' for recognized configuration names." >&2;} | |
3018 { (exit 1); exit 1; }; } | |
3019 fi | 3408 fi |
3020 | 3409 |
3021 machfile="m/${machine}.h" | 3410 machfile="m/${machine}.h" |
3022 opsysfile="s/${opsys}.h" | 3411 opsysfile="s/${opsys}.h" |
3023 | 3412 |
3034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 3423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3035 ac_compiler_gnu=$ac_cv_c_compiler_gnu | 3424 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3036 if test -n "$ac_tool_prefix"; then | 3425 if test -n "$ac_tool_prefix"; then |
3037 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | 3426 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
3038 set dummy ${ac_tool_prefix}gcc; ac_word=$2 | 3427 set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
3039 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | 3428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3040 $as_echo_n "checking for $ac_word... " >&6; } | 3429 $as_echo_n "checking for $ac_word... " >&6; } |
3041 if test "${ac_cv_prog_CC+set}" = set; then | 3430 if test "${ac_cv_prog_CC+set}" = set; then : |
3042 $as_echo_n "(cached) " >&6 | 3431 $as_echo_n "(cached) " >&6 |
3043 else | 3432 else |
3044 if test -n "$CC"; then | 3433 if test -n "$CC"; then |
3045 ac_cv_prog_CC="$CC" # Let the user override the test. | 3434 ac_cv_prog_CC="$CC" # Let the user override the test. |
3046 else | 3435 else |
3047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 3436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3048 for as_dir in $PATH | 3437 for as_dir in $PATH |
3049 do | 3438 do |
3050 IFS=$as_save_IFS | 3439 IFS=$as_save_IFS |
3051 test -z "$as_dir" && as_dir=. | 3440 test -z "$as_dir" && as_dir=. |
3052 for ac_exec_ext in '' $ac_executable_extensions; do | 3441 for ac_exec_ext in '' $ac_executable_extensions; do |
3053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 3442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3054 ac_cv_prog_CC="${ac_tool_prefix}gcc" | 3443 ac_cv_prog_CC="${ac_tool_prefix}gcc" |
3055 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 3444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3056 break 2 | 3445 break 2 |
3057 fi | 3446 fi |
3058 done | 3447 done |
3059 done | 3448 done |
3060 IFS=$as_save_IFS | 3449 IFS=$as_save_IFS |
3061 | 3450 |
3062 fi | 3451 fi |
3063 fi | 3452 fi |
3064 CC=$ac_cv_prog_CC | 3453 CC=$ac_cv_prog_CC |
3065 if test -n "$CC"; then | 3454 if test -n "$CC"; then |
3066 { $as_echo "$as_me:$LINENO: result: $CC" >&5 | 3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3067 $as_echo "$CC" >&6; } | 3456 $as_echo "$CC" >&6; } |
3068 else | 3457 else |
3069 { $as_echo "$as_me:$LINENO: result: no" >&5 | 3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3070 $as_echo "no" >&6; } | 3459 $as_echo "no" >&6; } |
3071 fi | 3460 fi |
3072 | 3461 |
3073 | 3462 |
3074 fi | 3463 fi |
3075 if test -z "$ac_cv_prog_CC"; then | 3464 if test -z "$ac_cv_prog_CC"; then |
3076 ac_ct_CC=$CC | 3465 ac_ct_CC=$CC |
3077 # Extract the first word of "gcc", so it can be a program name with args. | 3466 # Extract the first word of "gcc", so it can be a program name with args. |
3078 set dummy gcc; ac_word=$2 | 3467 set dummy gcc; ac_word=$2 |
3079 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | 3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3080 $as_echo_n "checking for $ac_word... " >&6; } | 3469 $as_echo_n "checking for $ac_word... " >&6; } |
3081 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | 3470 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
3082 $as_echo_n "(cached) " >&6 | 3471 $as_echo_n "(cached) " >&6 |
3083 else | 3472 else |
3084 if test -n "$ac_ct_CC"; then | 3473 if test -n "$ac_ct_CC"; then |
3085 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 3474 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
3086 else | 3475 else |
3087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 3476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3088 for as_dir in $PATH | 3477 for as_dir in $PATH |
3089 do | 3478 do |
3090 IFS=$as_save_IFS | 3479 IFS=$as_save_IFS |
3091 test -z "$as_dir" && as_dir=. | 3480 test -z "$as_dir" && as_dir=. |
3092 for ac_exec_ext in '' $ac_executable_extensions; do | 3481 for ac_exec_ext in '' $ac_executable_extensions; do |
3093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 3482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3094 ac_cv_prog_ac_ct_CC="gcc" | 3483 ac_cv_prog_ac_ct_CC="gcc" |
3095 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 3484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3096 break 2 | 3485 break 2 |
3097 fi | 3486 fi |
3098 done | 3487 done |
3099 done | 3488 done |
3100 IFS=$as_save_IFS | 3489 IFS=$as_save_IFS |
3101 | 3490 |
3102 fi | 3491 fi |
3103 fi | 3492 fi |
3104 ac_ct_CC=$ac_cv_prog_ac_ct_CC | 3493 ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3105 if test -n "$ac_ct_CC"; then | 3494 if test -n "$ac_ct_CC"; then |
3106 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | 3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3107 $as_echo "$ac_ct_CC" >&6; } | 3496 $as_echo "$ac_ct_CC" >&6; } |
3108 else | 3497 else |
3109 { $as_echo "$as_me:$LINENO: result: no" >&5 | 3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3110 $as_echo "no" >&6; } | 3499 $as_echo "no" >&6; } |
3111 fi | 3500 fi |
3112 | 3501 |
3113 if test "x$ac_ct_CC" = x; then | 3502 if test "x$ac_ct_CC" = x; then |
3114 CC="" | 3503 CC="" |
3115 else | 3504 else |
3116 case $cross_compiling:$ac_tool_warned in | 3505 case $cross_compiling:$ac_tool_warned in |
3117 yes:) | 3506 yes:) |
3118 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | 3507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3119 whose name does not start with the host triplet. If you think this | 3508 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
3120 configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
3121 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
3122 whose name does not start with the host triplet. If you think this | |
3123 configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
3124 ac_tool_warned=yes ;; | 3509 ac_tool_warned=yes ;; |
3125 esac | 3510 esac |
3126 CC=$ac_ct_CC | 3511 CC=$ac_ct_CC |
3127 fi | 3512 fi |
3128 else | 3513 else |
3131 | 3516 |
3132 if test -z "$CC"; then | 3517 if test -z "$CC"; then |
3133 if test -n "$ac_tool_prefix"; then | 3518 if test -n "$ac_tool_prefix"; then |
3134 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | 3519 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
3135 set dummy ${ac_tool_prefix}cc; ac_word=$2 | 3520 set dummy ${ac_tool_prefix}cc; ac_word=$2 |
3136 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | 3521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3137 $as_echo_n "checking for $ac_word... " >&6; } | 3522 $as_echo_n "checking for $ac_word... " >&6; } |
3138 if test "${ac_cv_prog_CC+set}" = set; then | 3523 if test "${ac_cv_prog_CC+set}" = set; then : |
3139 $as_echo_n "(cached) " >&6 | 3524 $as_echo_n "(cached) " >&6 |
3140 else | 3525 else |
3141 if test -n "$CC"; then | 3526 if test -n "$CC"; then |
3142 ac_cv_prog_CC="$CC" # Let the user override the test. | 3527 ac_cv_prog_CC="$CC" # Let the user override the test. |
3143 else | 3528 else |
3144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 3529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3145 for as_dir in $PATH | 3530 for as_dir in $PATH |
3146 do | 3531 do |
3147 IFS=$as_save_IFS | 3532 IFS=$as_save_IFS |
3148 test -z "$as_dir" && as_dir=. | 3533 test -z "$as_dir" && as_dir=. |
3149 for ac_exec_ext in '' $ac_executable_extensions; do | 3534 for ac_exec_ext in '' $ac_executable_extensions; do |
3150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 3535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3151 ac_cv_prog_CC="${ac_tool_prefix}cc" | 3536 ac_cv_prog_CC="${ac_tool_prefix}cc" |
3152 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 3537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3153 break 2 | 3538 break 2 |
3154 fi | 3539 fi |
3155 done | 3540 done |
3156 done | 3541 done |
3157 IFS=$as_save_IFS | 3542 IFS=$as_save_IFS |
3158 | 3543 |
3159 fi | 3544 fi |
3160 fi | 3545 fi |
3161 CC=$ac_cv_prog_CC | 3546 CC=$ac_cv_prog_CC |
3162 if test -n "$CC"; then | 3547 if test -n "$CC"; then |
3163 { $as_echo "$as_me:$LINENO: result: $CC" >&5 | 3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3164 $as_echo "$CC" >&6; } | 3549 $as_echo "$CC" >&6; } |
3165 else | 3550 else |
3166 { $as_echo "$as_me:$LINENO: result: no" >&5 | 3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3167 $as_echo "no" >&6; } | 3552 $as_echo "no" >&6; } |
3168 fi | 3553 fi |
3169 | 3554 |
3170 | 3555 |
3171 fi | 3556 fi |
3172 fi | 3557 fi |
3173 if test -z "$CC"; then | 3558 if test -z "$CC"; then |
3174 # Extract the first word of "cc", so it can be a program name with args. | 3559 # Extract the first word of "cc", so it can be a program name with args. |
3175 set dummy cc; ac_word=$2 | 3560 set dummy cc; ac_word=$2 |
3176 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | 3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3177 $as_echo_n "checking for $ac_word... " >&6; } | 3562 $as_echo_n "checking for $ac_word... " >&6; } |
3178 if test "${ac_cv_prog_CC+set}" = set; then | 3563 if test "${ac_cv_prog_CC+set}" = set; then : |
3179 $as_echo_n "(cached) " >&6 | 3564 $as_echo_n "(cached) " >&6 |
3180 else | 3565 else |
3181 if test -n "$CC"; then | 3566 if test -n "$CC"; then |
3182 ac_cv_prog_CC="$CC" # Let the user override the test. | 3567 ac_cv_prog_CC="$CC" # Let the user override the test. |
3183 else | 3568 else |
3185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 3570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3186 for as_dir in $PATH | 3571 for as_dir in $PATH |
3187 do | 3572 do |
3188 IFS=$as_save_IFS | 3573 IFS=$as_save_IFS |
3189 test -z "$as_dir" && as_dir=. | 3574 test -z "$as_dir" && as_dir=. |
3190 for ac_exec_ext in '' $ac_executable_extensions; do | 3575 for ac_exec_ext in '' $ac_executable_extensions; do |
3191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 3576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3192 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | 3577 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3193 ac_prog_rejected=yes | 3578 ac_prog_rejected=yes |
3194 continue | 3579 continue |
3195 fi | 3580 fi |
3196 ac_cv_prog_CC="cc" | 3581 ac_cv_prog_CC="cc" |
3197 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 3582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3198 break 2 | 3583 break 2 |
3199 fi | 3584 fi |
3200 done | 3585 done |
3201 done | 3586 done |
3202 IFS=$as_save_IFS | 3587 IFS=$as_save_IFS |
3203 | 3588 |
3204 if test $ac_prog_rejected = yes; then | 3589 if test $ac_prog_rejected = yes; then |
3205 # We found a bogon in the path, so make sure we never use it. | 3590 # We found a bogon in the path, so make sure we never use it. |
3206 set dummy $ac_cv_prog_CC | 3591 set dummy $ac_cv_prog_CC |
3215 fi | 3600 fi |
3216 fi | 3601 fi |
3217 fi | 3602 fi |
3218 CC=$ac_cv_prog_CC | 3603 CC=$ac_cv_prog_CC |
3219 if test -n "$CC"; then | 3604 if test -n "$CC"; then |
3220 { $as_echo "$as_me:$LINENO: result: $CC" >&5 | 3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3221 $as_echo "$CC" >&6; } | 3606 $as_echo "$CC" >&6; } |
3222 else | 3607 else |
3223 { $as_echo "$as_me:$LINENO: result: no" >&5 | 3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3224 $as_echo "no" >&6; } | 3609 $as_echo "no" >&6; } |
3225 fi | 3610 fi |
3226 | 3611 |
3227 | 3612 |
3228 fi | 3613 fi |
3230 if test -n "$ac_tool_prefix"; then | 3615 if test -n "$ac_tool_prefix"; then |
3231 for ac_prog in cl.exe | 3616 for ac_prog in cl.exe |
3232 do | 3617 do |
3233 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 3618 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
3234 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 3619 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
3235 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | 3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3236 $as_echo_n "checking for $ac_word... " >&6; } | 3621 $as_echo_n "checking for $ac_word... " >&6; } |
3237 if test "${ac_cv_prog_CC+set}" = set; then | 3622 if test "${ac_cv_prog_CC+set}" = set; then : |
3238 $as_echo_n "(cached) " >&6 | 3623 $as_echo_n "(cached) " >&6 |
3239 else | 3624 else |
3240 if test -n "$CC"; then | 3625 if test -n "$CC"; then |
3241 ac_cv_prog_CC="$CC" # Let the user override the test. | 3626 ac_cv_prog_CC="$CC" # Let the user override the test. |
3242 else | 3627 else |
3243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 3628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3244 for as_dir in $PATH | 3629 for as_dir in $PATH |
3245 do | 3630 do |
3246 IFS=$as_save_IFS | 3631 IFS=$as_save_IFS |
3247 test -z "$as_dir" && as_dir=. | 3632 test -z "$as_dir" && as_dir=. |
3248 for ac_exec_ext in '' $ac_executable_extensions; do | 3633 for ac_exec_ext in '' $ac_executable_extensions; do |
3249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 3634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3250 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | 3635 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
3251 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 3636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3252 break 2 | 3637 break 2 |
3253 fi | 3638 fi |
3254 done | 3639 done |
3255 done | 3640 done |
3256 IFS=$as_save_IFS | 3641 IFS=$as_save_IFS |
3257 | 3642 |
3258 fi | 3643 fi |
3259 fi | 3644 fi |
3260 CC=$ac_cv_prog_CC | 3645 CC=$ac_cv_prog_CC |
3261 if test -n "$CC"; then | 3646 if test -n "$CC"; then |
3262 { $as_echo "$as_me:$LINENO: result: $CC" >&5 | 3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3263 $as_echo "$CC" >&6; } | 3648 $as_echo "$CC" >&6; } |
3264 else | 3649 else |
3265 { $as_echo "$as_me:$LINENO: result: no" >&5 | 3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3266 $as_echo "no" >&6; } | 3651 $as_echo "no" >&6; } |
3267 fi | 3652 fi |
3268 | 3653 |
3269 | 3654 |
3270 test -n "$CC" && break | 3655 test -n "$CC" && break |
3274 ac_ct_CC=$CC | 3659 ac_ct_CC=$CC |
3275 for ac_prog in cl.exe | 3660 for ac_prog in cl.exe |
3276 do | 3661 do |
3277 # Extract the first word of "$ac_prog", so it can be a program name with args. | 3662 # Extract the first word of "$ac_prog", so it can be a program name with args. |
3278 set dummy $ac_prog; ac_word=$2 | 3663 set dummy $ac_prog; ac_word=$2 |
3279 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | 3664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3280 $as_echo_n "checking for $ac_word... " >&6; } | 3665 $as_echo_n "checking for $ac_word... " >&6; } |
3281 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | 3666 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
3282 $as_echo_n "(cached) " >&6 | 3667 $as_echo_n "(cached) " >&6 |
3283 else | 3668 else |
3284 if test -n "$ac_ct_CC"; then | 3669 if test -n "$ac_ct_CC"; then |
3285 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 3670 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
3286 else | 3671 else |
3287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 3672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3288 for as_dir in $PATH | 3673 for as_dir in $PATH |
3289 do | 3674 do |
3290 IFS=$as_save_IFS | 3675 IFS=$as_save_IFS |
3291 test -z "$as_dir" && as_dir=. | 3676 test -z "$as_dir" && as_dir=. |
3292 for ac_exec_ext in '' $ac_executable_extensions; do | 3677 for ac_exec_ext in '' $ac_executable_extensions; do |
3293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 3678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3294 ac_cv_prog_ac_ct_CC="$ac_prog" | 3679 ac_cv_prog_ac_ct_CC="$ac_prog" |
3295 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 3680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3296 break 2 | 3681 break 2 |
3297 fi | 3682 fi |
3298 done | 3683 done |
3299 done | 3684 done |
3300 IFS=$as_save_IFS | 3685 IFS=$as_save_IFS |
3301 | 3686 |
3302 fi | 3687 fi |
3303 fi | 3688 fi |
3304 ac_ct_CC=$ac_cv_prog_ac_ct_CC | 3689 ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3305 if test -n "$ac_ct_CC"; then | 3690 if test -n "$ac_ct_CC"; then |
3306 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | 3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3307 $as_echo "$ac_ct_CC" >&6; } | 3692 $as_echo "$ac_ct_CC" >&6; } |
3308 else | 3693 else |
3309 { $as_echo "$as_me:$LINENO: result: no" >&5 | 3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3310 $as_echo "no" >&6; } | 3695 $as_echo "no" >&6; } |
3311 fi | 3696 fi |
3312 | 3697 |
3313 | 3698 |
3314 test -n "$ac_ct_CC" && break | 3699 test -n "$ac_ct_CC" && break |
3317 if test "x$ac_ct_CC" = x; then | 3702 if test "x$ac_ct_CC" = x; then |
3318 CC="" | 3703 CC="" |
3319 else | 3704 else |
3320 case $cross_compiling:$ac_tool_warned in | 3705 case $cross_compiling:$ac_tool_warned in |
3321 yes:) | 3706 yes:) |
3322 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | 3707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3323 whose name does not start with the host triplet. If you think this | 3708 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
3324 configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
3325 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
3326 whose name does not start with the host triplet. If you think this | |
3327 configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
3328 ac_tool_warned=yes ;; | 3709 ac_tool_warned=yes ;; |
3329 esac | 3710 esac |
3330 CC=$ac_ct_CC | 3711 CC=$ac_ct_CC |
3331 fi | 3712 fi |
3332 fi | 3713 fi |
3333 | 3714 |
3334 fi | 3715 fi |
3335 | 3716 |
3336 | 3717 |
3337 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | 3718 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3338 See \`config.log' for more details." >&5 | 3719 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3339 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH | 3720 as_fn_error "no acceptable C compiler found in \$PATH |
3340 See \`config.log' for more details." >&2;} | 3721 See \`config.log' for more details." "$LINENO" 5; } |
3341 { (exit 1); exit 1; }; } | |
3342 | 3722 |
3343 # Provide some information about the compiler. | 3723 # Provide some information about the compiler. |
3344 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 | 3724 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
3345 set X $ac_compile | 3725 set X $ac_compile |
3346 ac_compiler=$2 | 3726 ac_compiler=$2 |
3347 { (ac_try="$ac_compiler --version >&5" | 3727 for ac_option in --version -v -V -qversion; do |
3728 { { ac_try="$ac_compiler $ac_option >&5" | |
3348 case "(($ac_try" in | 3729 case "(($ac_try" in |
3349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 3730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3350 *) ac_try_echo=$ac_try;; | 3731 *) ac_try_echo=$ac_try;; |
3351 esac | 3732 esac |
3352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | 3733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3353 $as_echo "$ac_try_echo") >&5 | 3734 $as_echo "$ac_try_echo"; } >&5 |
3354 (eval "$ac_compiler --version >&5") 2>&5 | 3735 (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
3355 ac_status=$? | 3736 ac_status=$? |
3356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 3737 if test -s conftest.err; then |
3357 (exit $ac_status); } | 3738 sed '10a\ |
3358 { (ac_try="$ac_compiler -v >&5" | 3739 ... rest of stderr output deleted ... |
3359 case "(($ac_try" in | 3740 10q' conftest.err >conftest.er1 |
3360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 3741 cat conftest.er1 >&5 |
3361 *) ac_try_echo=$ac_try;; | 3742 fi |
3362 esac | 3743 rm -f conftest.er1 conftest.err |
3363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | 3744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3364 $as_echo "$ac_try_echo") >&5 | 3745 test $ac_status = 0; } |
3365 (eval "$ac_compiler -v >&5") 2>&5 | 3746 done |
3366 ac_status=$? | 3747 |
3367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 3748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3368 (exit $ac_status); } | |
3369 { (ac_try="$ac_compiler -V >&5" | |
3370 case "(($ac_try" in | |
3371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3372 *) ac_try_echo=$ac_try;; | |
3373 esac | |
3374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3375 $as_echo "$ac_try_echo") >&5 | |
3376 (eval "$ac_compiler -V >&5") 2>&5 | |
3377 ac_status=$? | |
3378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3379 (exit $ac_status); } | |
3380 | |
3381 cat >conftest.$ac_ext <<_ACEOF | |
3382 /* confdefs.h. */ | |
3383 _ACEOF | |
3384 cat confdefs.h >>conftest.$ac_ext | |
3385 cat >>conftest.$ac_ext <<_ACEOF | |
3386 /* end confdefs.h. */ | 3749 /* end confdefs.h. */ |
3387 | 3750 |
3388 int | 3751 int |
3389 main () | 3752 main () |
3390 { | 3753 { |
3396 ac_clean_files_save=$ac_clean_files | 3759 ac_clean_files_save=$ac_clean_files |
3397 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | 3760 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
3398 # Try to create an executable without -o first, disregard a.out. | 3761 # Try to create an executable without -o first, disregard a.out. |
3399 # It will help us diagnose broken compilers, and finding out an intuition | 3762 # It will help us diagnose broken compilers, and finding out an intuition |
3400 # of exeext. | 3763 # of exeext. |
3401 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | 3764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3402 $as_echo_n "checking for C compiler default output file name... " >&6; } | 3765 $as_echo_n "checking whether the C compiler works... " >&6; } |
3403 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | 3766 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3404 | 3767 |
3405 # The possible output files: | 3768 # The possible output files: |
3406 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | 3769 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
3407 | 3770 |
3413 * ) ac_rmfiles="$ac_rmfiles $ac_file";; | 3776 * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
3414 esac | 3777 esac |
3415 done | 3778 done |
3416 rm -f $ac_rmfiles | 3779 rm -f $ac_rmfiles |
3417 | 3780 |
3418 if { (ac_try="$ac_link_default" | 3781 if { { ac_try="$ac_link_default" |
3419 case "(($ac_try" in | 3782 case "(($ac_try" in |
3420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 3783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3421 *) ac_try_echo=$ac_try;; | 3784 *) ac_try_echo=$ac_try;; |
3422 esac | 3785 esac |
3423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | 3786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3424 $as_echo "$ac_try_echo") >&5 | 3787 $as_echo "$ac_try_echo"; } >&5 |
3425 (eval "$ac_link_default") 2>&5 | 3788 (eval "$ac_link_default") 2>&5 |
3426 ac_status=$? | 3789 ac_status=$? |
3427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 3790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3428 (exit $ac_status); }; then | 3791 test $ac_status = 0; }; then : |
3429 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | 3792 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3430 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | 3793 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
3431 # in a Makefile. We should not override ac_cv_exeext if it was cached, | 3794 # in a Makefile. We should not override ac_cv_exeext if it was cached, |
3432 # so that the user can short-circuit this test for compilers unknown to | 3795 # so that the user can short-circuit this test for compilers unknown to |
3433 # Autoconf. | 3796 # Autoconf. |
3440 [ab].out ) | 3803 [ab].out ) |
3441 # We found the default executable, but exeext='' is most | 3804 # We found the default executable, but exeext='' is most |
3442 # certainly right. | 3805 # certainly right. |
3443 break;; | 3806 break;; |
3444 *.* ) | 3807 *.* ) |
3445 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | 3808 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
3446 then :; else | 3809 then :; else |
3447 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 3810 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
3448 fi | 3811 fi |
3449 # We set ac_cv_exeext here because the later test for it is not | 3812 # We set ac_cv_exeext here because the later test for it is not |
3450 # safe: cross compilers may not add the suffix if given an `-o' | 3813 # safe: cross compilers may not add the suffix if given an `-o' |
3459 test "$ac_cv_exeext" = no && ac_cv_exeext= | 3822 test "$ac_cv_exeext" = no && ac_cv_exeext= |
3460 | 3823 |
3461 else | 3824 else |
3462 ac_file='' | 3825 ac_file='' |
3463 fi | 3826 fi |
3464 | 3827 if test -z "$ac_file"; then : |
3465 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 | 3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3829 $as_echo "no" >&6; } | |
3830 $as_echo "$as_me: failed program was:" >&5 | |
3831 sed 's/^/| /' conftest.$ac_ext >&5 | |
3832 | |
3833 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3835 { as_fn_set_status 77 | |
3836 as_fn_error "C compiler cannot create executables | |
3837 See \`config.log' for more details." "$LINENO" 5; }; } | |
3838 else | |
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3840 $as_echo "yes" >&6; } | |
3841 fi | |
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
3843 $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3466 $as_echo "$ac_file" >&6; } | 3845 $as_echo "$ac_file" >&6; } |
3467 if test -z "$ac_file"; then | |
3468 $as_echo "$as_me: failed program was:" >&5 | |
3469 sed 's/^/| /' conftest.$ac_ext >&5 | |
3470 | |
3471 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables | |
3472 See \`config.log' for more details." >&5 | |
3473 $as_echo "$as_me: error: C compiler cannot create executables | |
3474 See \`config.log' for more details." >&2;} | |
3475 { (exit 77); exit 77; }; } | |
3476 fi | |
3477 | |
3478 ac_exeext=$ac_cv_exeext | 3846 ac_exeext=$ac_cv_exeext |
3479 | |
3480 # Check that the compiler produces executables we can run. If not, either | |
3481 # the compiler is broken, or we cross compile. | |
3482 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
3483 $as_echo_n "checking whether the C compiler works... " >&6; } | |
3484 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
3485 # If not cross compiling, check that we can run a simple program. | |
3486 if test "$cross_compiling" != yes; then | |
3487 if { ac_try='./$ac_file' | |
3488 { (case "(($ac_try" in | |
3489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3490 *) ac_try_echo=$ac_try;; | |
3491 esac | |
3492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3493 $as_echo "$ac_try_echo") >&5 | |
3494 (eval "$ac_try") 2>&5 | |
3495 ac_status=$? | |
3496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3497 (exit $ac_status); }; }; then | |
3498 cross_compiling=no | |
3499 else | |
3500 if test "$cross_compiling" = maybe; then | |
3501 cross_compiling=yes | |
3502 else | |
3503 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
3504 If you meant to cross compile, use \`--host'. | |
3505 See \`config.log' for more details." >&5 | |
3506 $as_echo "$as_me: error: cannot run C compiled programs. | |
3507 If you meant to cross compile, use \`--host'. | |
3508 See \`config.log' for more details." >&2;} | |
3509 { (exit 1); exit 1; }; } | |
3510 fi | |
3511 fi | |
3512 fi | |
3513 { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
3514 $as_echo "yes" >&6; } | |
3515 | 3847 |
3516 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | 3848 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
3517 ac_clean_files=$ac_clean_files_save | 3849 ac_clean_files=$ac_clean_files_save |
3518 # Check that the compiler produces executables we can run. If not, either | 3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
3519 # the compiler is broken, or we cross compile. | |
3520 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
3521 $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3522 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
3523 $as_echo "$cross_compiling" >&6; } | |
3524 | |
3525 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
3526 $as_echo_n "checking for suffix of executables... " >&6; } | 3851 $as_echo_n "checking for suffix of executables... " >&6; } |
3527 if { (ac_try="$ac_link" | 3852 if { { ac_try="$ac_link" |
3528 case "(($ac_try" in | 3853 case "(($ac_try" in |
3529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 3854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3530 *) ac_try_echo=$ac_try;; | 3855 *) ac_try_echo=$ac_try;; |
3531 esac | 3856 esac |
3532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | 3857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3533 $as_echo "$ac_try_echo") >&5 | 3858 $as_echo "$ac_try_echo"; } >&5 |
3534 (eval "$ac_link") 2>&5 | 3859 (eval "$ac_link") 2>&5 |
3535 ac_status=$? | 3860 ac_status=$? |
3536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 3861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3537 (exit $ac_status); }; then | 3862 test $ac_status = 0; }; then : |
3538 # If both `conftest.exe' and `conftest' are `present' (well, observable) | 3863 # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3539 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | 3864 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
3540 # work properly (i.e., refer to `conftest.exe'), while it won't with | 3865 # work properly (i.e., refer to `conftest.exe'), while it won't with |
3541 # `rm'. | 3866 # `rm'. |
3542 for ac_file in conftest.exe conftest conftest.*; do | 3867 for ac_file in conftest.exe conftest conftest.*; do |
3547 break;; | 3872 break;; |
3548 * ) break;; | 3873 * ) break;; |
3549 esac | 3874 esac |
3550 done | 3875 done |
3551 else | 3876 else |
3552 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | 3877 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3553 See \`config.log' for more details." >&5 | 3878 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3554 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | 3879 as_fn_error "cannot compute suffix of executables: cannot compile and link |
3555 See \`config.log' for more details." >&2;} | 3880 See \`config.log' for more details." "$LINENO" 5; } |
3556 { (exit 1); exit 1; }; } | 3881 fi |
3557 fi | 3882 rm -f conftest conftest$ac_cv_exeext |
3558 | 3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3559 rm -f conftest$ac_cv_exeext | |
3560 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
3561 $as_echo "$ac_cv_exeext" >&6; } | 3884 $as_echo "$ac_cv_exeext" >&6; } |
3562 | 3885 |
3563 rm -f conftest.$ac_ext | 3886 rm -f conftest.$ac_ext |
3564 EXEEXT=$ac_cv_exeext | 3887 EXEEXT=$ac_cv_exeext |
3565 ac_exeext=$EXEEXT | 3888 ac_exeext=$EXEEXT |
3566 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 | 3889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3567 $as_echo_n "checking for suffix of object files... " >&6; } | |
3568 if test "${ac_cv_objext+set}" = set; then | |
3569 $as_echo_n "(cached) " >&6 | |
3570 else | |
3571 cat >conftest.$ac_ext <<_ACEOF | |
3572 /* confdefs.h. */ | |
3573 _ACEOF | |
3574 cat confdefs.h >>conftest.$ac_ext | |
3575 cat >>conftest.$ac_ext <<_ACEOF | |
3576 /* end confdefs.h. */ | 3890 /* end confdefs.h. */ |
3577 | 3891 #include <stdio.h> |
3578 int | 3892 int |
3579 main () | 3893 main () |
3580 { | 3894 { |
3895 FILE *f = fopen ("conftest.out", "w"); | |
3896 return ferror (f) || fclose (f) != 0; | |
3581 | 3897 |
3582 ; | 3898 ; |
3583 return 0; | 3899 return 0; |
3584 } | 3900 } |
3585 _ACEOF | 3901 _ACEOF |
3586 rm -f conftest.o conftest.obj | 3902 ac_clean_files="$ac_clean_files conftest.out" |
3587 if { (ac_try="$ac_compile" | 3903 # Check that the compiler produces executables we can run. If not, either |
3904 # the compiler is broken, or we cross compile. | |
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3906 $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3907 if test "$cross_compiling" != yes; then | |
3908 { { ac_try="$ac_link" | |
3588 case "(($ac_try" in | 3909 case "(($ac_try" in |
3589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 3910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3590 *) ac_try_echo=$ac_try;; | 3911 *) ac_try_echo=$ac_try;; |
3591 esac | 3912 esac |
3592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | 3913 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3593 $as_echo "$ac_try_echo") >&5 | 3914 $as_echo "$ac_try_echo"; } >&5 |
3915 (eval "$ac_link") 2>&5 | |
3916 ac_status=$? | |
3917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3918 test $ac_status = 0; } | |
3919 if { ac_try='./conftest$ac_cv_exeext' | |
3920 { { case "(($ac_try" in | |
3921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3922 *) ac_try_echo=$ac_try;; | |
3923 esac | |
3924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3925 $as_echo "$ac_try_echo"; } >&5 | |
3926 (eval "$ac_try") 2>&5 | |
3927 ac_status=$? | |
3928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3929 test $ac_status = 0; }; }; then | |
3930 cross_compiling=no | |
3931 else | |
3932 if test "$cross_compiling" = maybe; then | |
3933 cross_compiling=yes | |
3934 else | |
3935 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3937 as_fn_error "cannot run C compiled programs. | |
3938 If you meant to cross compile, use \`--host'. | |
3939 See \`config.log' for more details." "$LINENO" 5; } | |
3940 fi | |
3941 fi | |
3942 fi | |
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3944 $as_echo "$cross_compiling" >&6; } | |
3945 | |
3946 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3947 ac_clean_files=$ac_clean_files_save | |
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
3949 $as_echo_n "checking for suffix of object files... " >&6; } | |
3950 if test "${ac_cv_objext+set}" = set; then : | |
3951 $as_echo_n "(cached) " >&6 | |
3952 else | |
3953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3954 /* end confdefs.h. */ | |
3955 | |
3956 int | |
3957 main () | |
3958 { | |
3959 | |
3960 ; | |
3961 return 0; | |
3962 } | |
3963 _ACEOF | |
3964 rm -f conftest.o conftest.obj | |
3965 if { { ac_try="$ac_compile" | |
3966 case "(($ac_try" in | |
3967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3968 *) ac_try_echo=$ac_try;; | |
3969 esac | |
3970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3971 $as_echo "$ac_try_echo"; } >&5 | |
3594 (eval "$ac_compile") 2>&5 | 3972 (eval "$ac_compile") 2>&5 |
3595 ac_status=$? | 3973 ac_status=$? |
3596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 3974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3597 (exit $ac_status); }; then | 3975 test $ac_status = 0; }; then : |
3598 for ac_file in conftest.o conftest.obj conftest.*; do | 3976 for ac_file in conftest.o conftest.obj conftest.*; do |
3599 test -f "$ac_file" || continue; | 3977 test -f "$ac_file" || continue; |
3600 case $ac_file in | 3978 case $ac_file in |
3601 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | 3979 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
3602 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | 3980 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3605 done | 3983 done |
3606 else | 3984 else |
3607 $as_echo "$as_me: failed program was:" >&5 | 3985 $as_echo "$as_me: failed program was:" >&5 |
3608 sed 's/^/| /' conftest.$ac_ext >&5 | 3986 sed 's/^/| /' conftest.$ac_ext >&5 |
3609 | 3987 |
3610 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | 3988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3611 See \`config.log' for more details." >&5 | 3989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3612 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile | 3990 as_fn_error "cannot compute suffix of object files: cannot compile |
3613 See \`config.log' for more details." >&2;} | 3991 See \`config.log' for more details." "$LINENO" 5; } |
3614 { (exit 1); exit 1; }; } | 3992 fi |
3615 fi | |
3616 | |
3617 rm -f conftest.$ac_cv_objext conftest.$ac_ext | 3993 rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3618 fi | 3994 fi |
3619 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | 3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3620 $as_echo "$ac_cv_objext" >&6; } | 3996 $as_echo "$ac_cv_objext" >&6; } |
3621 OBJEXT=$ac_cv_objext | 3997 OBJEXT=$ac_cv_objext |
3622 ac_objext=$OBJEXT | 3998 ac_objext=$OBJEXT |
3623 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | 3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
3624 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | 4000 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
3625 if test "${ac_cv_c_compiler_gnu+set}" = set; then | 4001 if test "${ac_cv_c_compiler_gnu+set}" = set; then : |
3626 $as_echo_n "(cached) " >&6 | 4002 $as_echo_n "(cached) " >&6 |
3627 else | 4003 else |
3628 cat >conftest.$ac_ext <<_ACEOF | 4004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3629 /* confdefs.h. */ | |
3630 _ACEOF | |
3631 cat confdefs.h >>conftest.$ac_ext | |
3632 cat >>conftest.$ac_ext <<_ACEOF | |
3633 /* end confdefs.h. */ | 4005 /* end confdefs.h. */ |
3634 | 4006 |
3635 int | 4007 int |
3636 main () | 4008 main () |
3637 { | 4009 { |
3641 | 4013 |
3642 ; | 4014 ; |
3643 return 0; | 4015 return 0; |
3644 } | 4016 } |
3645 _ACEOF | 4017 _ACEOF |
3646 rm -f conftest.$ac_objext | 4018 if ac_fn_c_try_compile "$LINENO"; then : |
3647 if { (ac_try="$ac_compile" | |
3648 case "(($ac_try" in | |
3649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3650 *) ac_try_echo=$ac_try;; | |
3651 esac | |
3652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3653 $as_echo "$ac_try_echo") >&5 | |
3654 (eval "$ac_compile") 2>conftest.er1 | |
3655 ac_status=$? | |
3656 grep -v '^ *+' conftest.er1 >conftest.err | |
3657 rm -f conftest.er1 | |
3658 cat conftest.err >&5 | |
3659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3660 (exit $ac_status); } && { | |
3661 test -z "$ac_c_werror_flag" || | |
3662 test ! -s conftest.err | |
3663 } && test -s conftest.$ac_objext; then | |
3664 ac_compiler_gnu=yes | 4019 ac_compiler_gnu=yes |
3665 else | 4020 else |
3666 $as_echo "$as_me: failed program was:" >&5 | 4021 ac_compiler_gnu=no |
3667 sed 's/^/| /' conftest.$ac_ext >&5 | 4022 fi |
3668 | |
3669 ac_compiler_gnu=no | |
3670 fi | |
3671 | |
3672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 4023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3673 ac_cv_c_compiler_gnu=$ac_compiler_gnu | 4024 ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3674 | 4025 |
3675 fi | 4026 fi |
3676 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | 4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3677 $as_echo "$ac_cv_c_compiler_gnu" >&6; } | 4028 $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
3678 if test $ac_compiler_gnu = yes; then | 4029 if test $ac_compiler_gnu = yes; then |
3679 GCC=yes | 4030 GCC=yes |
3680 else | 4031 else |
3681 GCC= | 4032 GCC= |
3682 fi | 4033 fi |
3683 ac_test_CFLAGS=${CFLAGS+set} | 4034 ac_test_CFLAGS=${CFLAGS+set} |
3684 ac_save_CFLAGS=$CFLAGS | 4035 ac_save_CFLAGS=$CFLAGS |
3685 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | 4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
3686 $as_echo_n "checking whether $CC accepts -g... " >&6; } | 4037 $as_echo_n "checking whether $CC accepts -g... " >&6; } |
3687 if test "${ac_cv_prog_cc_g+set}" = set; then | 4038 if test "${ac_cv_prog_cc_g+set}" = set; then : |
3688 $as_echo_n "(cached) " >&6 | 4039 $as_echo_n "(cached) " >&6 |
3689 else | 4040 else |
3690 ac_save_c_werror_flag=$ac_c_werror_flag | 4041 ac_save_c_werror_flag=$ac_c_werror_flag |
3691 ac_c_werror_flag=yes | 4042 ac_c_werror_flag=yes |
3692 ac_cv_prog_cc_g=no | 4043 ac_cv_prog_cc_g=no |
3693 CFLAGS="-g" | 4044 CFLAGS="-g" |
3694 cat >conftest.$ac_ext <<_ACEOF | 4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3695 /* confdefs.h. */ | |
3696 _ACEOF | |
3697 cat confdefs.h >>conftest.$ac_ext | |
3698 cat >>conftest.$ac_ext <<_ACEOF | |
3699 /* end confdefs.h. */ | 4046 /* end confdefs.h. */ |
3700 | 4047 |
3701 int | 4048 int |
3702 main () | 4049 main () |
3703 { | 4050 { |
3704 | 4051 |
3705 ; | 4052 ; |
3706 return 0; | 4053 return 0; |
3707 } | 4054 } |
3708 _ACEOF | 4055 _ACEOF |
3709 rm -f conftest.$ac_objext | 4056 if ac_fn_c_try_compile "$LINENO"; then : |
3710 if { (ac_try="$ac_compile" | |
3711 case "(($ac_try" in | |
3712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3713 *) ac_try_echo=$ac_try;; | |
3714 esac | |
3715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3716 $as_echo "$ac_try_echo") >&5 | |
3717 (eval "$ac_compile") 2>conftest.er1 | |
3718 ac_status=$? | |
3719 grep -v '^ *+' conftest.er1 >conftest.err | |
3720 rm -f conftest.er1 | |
3721 cat conftest.err >&5 | |
3722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3723 (exit $ac_status); } && { | |
3724 test -z "$ac_c_werror_flag" || | |
3725 test ! -s conftest.err | |
3726 } && test -s conftest.$ac_objext; then | |
3727 ac_cv_prog_cc_g=yes | 4057 ac_cv_prog_cc_g=yes |
3728 else | 4058 else |
3729 $as_echo "$as_me: failed program was:" >&5 | 4059 CFLAGS="" |
3730 sed 's/^/| /' conftest.$ac_ext >&5 | 4060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3731 | |
3732 CFLAGS="" | |
3733 cat >conftest.$ac_ext <<_ACEOF | |
3734 /* confdefs.h. */ | |
3735 _ACEOF | |
3736 cat confdefs.h >>conftest.$ac_ext | |
3737 cat >>conftest.$ac_ext <<_ACEOF | |
3738 /* end confdefs.h. */ | 4061 /* end confdefs.h. */ |
3739 | 4062 |
3740 int | 4063 int |
3741 main () | 4064 main () |
3742 { | 4065 { |
3743 | 4066 |
3744 ; | 4067 ; |
3745 return 0; | 4068 return 0; |
3746 } | 4069 } |
3747 _ACEOF | 4070 _ACEOF |
3748 rm -f conftest.$ac_objext | 4071 if ac_fn_c_try_compile "$LINENO"; then : |
3749 if { (ac_try="$ac_compile" | 4072 |
3750 case "(($ac_try" in | 4073 else |
3751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 4074 ac_c_werror_flag=$ac_save_c_werror_flag |
3752 *) ac_try_echo=$ac_try;; | |
3753 esac | |
3754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3755 $as_echo "$ac_try_echo") >&5 | |
3756 (eval "$ac_compile") 2>conftest.er1 | |
3757 ac_status=$? | |
3758 grep -v '^ *+' conftest.er1 >conftest.err | |
3759 rm -f conftest.er1 | |
3760 cat conftest.err >&5 | |
3761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3762 (exit $ac_status); } && { | |
3763 test -z "$ac_c_werror_flag" || | |
3764 test ! -s conftest.err | |
3765 } && test -s conftest.$ac_objext; then | |
3766 : | |
3767 else | |
3768 $as_echo "$as_me: failed program was:" >&5 | |
3769 sed 's/^/| /' conftest.$ac_ext >&5 | |
3770 | |
3771 ac_c_werror_flag=$ac_save_c_werror_flag | |
3772 CFLAGS="-g" | 4075 CFLAGS="-g" |
3773 cat >conftest.$ac_ext <<_ACEOF | 4076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3774 /* confdefs.h. */ | |
3775 _ACEOF | |
3776 cat confdefs.h >>conftest.$ac_ext | |
3777 cat >>conftest.$ac_ext <<_ACEOF | |
3778 /* end confdefs.h. */ | 4077 /* end confdefs.h. */ |
3779 | 4078 |
3780 int | 4079 int |
3781 main () | 4080 main () |
3782 { | 4081 { |
3783 | 4082 |
3784 ; | 4083 ; |
3785 return 0; | 4084 return 0; |
3786 } | 4085 } |
3787 _ACEOF | 4086 _ACEOF |
3788 rm -f conftest.$ac_objext | 4087 if ac_fn_c_try_compile "$LINENO"; then : |
3789 if { (ac_try="$ac_compile" | |
3790 case "(($ac_try" in | |
3791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3792 *) ac_try_echo=$ac_try;; | |
3793 esac | |
3794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3795 $as_echo "$ac_try_echo") >&5 | |
3796 (eval "$ac_compile") 2>conftest.er1 | |
3797 ac_status=$? | |
3798 grep -v '^ *+' conftest.er1 >conftest.err | |
3799 rm -f conftest.er1 | |
3800 cat conftest.err >&5 | |
3801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3802 (exit $ac_status); } && { | |
3803 test -z "$ac_c_werror_flag" || | |
3804 test ! -s conftest.err | |
3805 } && test -s conftest.$ac_objext; then | |
3806 ac_cv_prog_cc_g=yes | 4088 ac_cv_prog_cc_g=yes |
3807 else | 4089 fi |
3808 $as_echo "$as_me: failed program was:" >&5 | |
3809 sed 's/^/| /' conftest.$ac_ext >&5 | |
3810 | |
3811 | |
3812 fi | |
3813 | |
3814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 4090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3815 fi | 4091 fi |
3816 | |
3817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 4092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3818 fi | 4093 fi |
3819 | |
3820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 4094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3821 ac_c_werror_flag=$ac_save_c_werror_flag | 4095 ac_c_werror_flag=$ac_save_c_werror_flag |
3822 fi | 4096 fi |
3823 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | 4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
3824 $as_echo "$ac_cv_prog_cc_g" >&6; } | 4098 $as_echo "$ac_cv_prog_cc_g" >&6; } |
3825 if test "$ac_test_CFLAGS" = set; then | 4099 if test "$ac_test_CFLAGS" = set; then |
3826 CFLAGS=$ac_save_CFLAGS | 4100 CFLAGS=$ac_save_CFLAGS |
3827 elif test $ac_cv_prog_cc_g = yes; then | 4101 elif test $ac_cv_prog_cc_g = yes; then |
3828 if test "$GCC" = yes; then | 4102 if test "$GCC" = yes; then |
3835 CFLAGS="-O2" | 4109 CFLAGS="-O2" |
3836 else | 4110 else |
3837 CFLAGS= | 4111 CFLAGS= |
3838 fi | 4112 fi |
3839 fi | 4113 fi |
3840 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 | 4114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3841 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | 4115 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
3842 if test "${ac_cv_prog_cc_c89+set}" = set; then | 4116 if test "${ac_cv_prog_cc_c89+set}" = set; then : |
3843 $as_echo_n "(cached) " >&6 | 4117 $as_echo_n "(cached) " >&6 |
3844 else | 4118 else |
3845 ac_cv_prog_cc_c89=no | 4119 ac_cv_prog_cc_c89=no |
3846 ac_save_CC=$CC | 4120 ac_save_CC=$CC |
3847 cat >conftest.$ac_ext <<_ACEOF | 4121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3848 /* confdefs.h. */ | |
3849 _ACEOF | |
3850 cat confdefs.h >>conftest.$ac_ext | |
3851 cat >>conftest.$ac_ext <<_ACEOF | |
3852 /* end confdefs.h. */ | 4122 /* end confdefs.h. */ |
3853 #include <stdarg.h> | 4123 #include <stdarg.h> |
3854 #include <stdio.h> | 4124 #include <stdio.h> |
3855 #include <sys/types.h> | 4125 #include <sys/types.h> |
3856 #include <sys/stat.h> | 4126 #include <sys/stat.h> |
3903 _ACEOF | 4173 _ACEOF |
3904 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | 4174 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3905 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | 4175 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
3906 do | 4176 do |
3907 CC="$ac_save_CC $ac_arg" | 4177 CC="$ac_save_CC $ac_arg" |
3908 rm -f conftest.$ac_objext | 4178 if ac_fn_c_try_compile "$LINENO"; then : |
3909 if { (ac_try="$ac_compile" | |
3910 case "(($ac_try" in | |
3911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3912 *) ac_try_echo=$ac_try;; | |
3913 esac | |
3914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3915 $as_echo "$ac_try_echo") >&5 | |
3916 (eval "$ac_compile") 2>conftest.er1 | |
3917 ac_status=$? | |
3918 grep -v '^ *+' conftest.er1 >conftest.err | |
3919 rm -f conftest.er1 | |
3920 cat conftest.err >&5 | |
3921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3922 (exit $ac_status); } && { | |
3923 test -z "$ac_c_werror_flag" || | |
3924 test ! -s conftest.err | |
3925 } && test -s conftest.$ac_objext; then | |
3926 ac_cv_prog_cc_c89=$ac_arg | 4179 ac_cv_prog_cc_c89=$ac_arg |
3927 else | 4180 fi |
3928 $as_echo "$as_me: failed program was:" >&5 | |
3929 sed 's/^/| /' conftest.$ac_ext >&5 | |
3930 | |
3931 | |
3932 fi | |
3933 | |
3934 rm -f core conftest.err conftest.$ac_objext | 4181 rm -f core conftest.err conftest.$ac_objext |
3935 test "x$ac_cv_prog_cc_c89" != "xno" && break | 4182 test "x$ac_cv_prog_cc_c89" != "xno" && break |
3936 done | 4183 done |
3937 rm -f conftest.$ac_ext | 4184 rm -f conftest.$ac_ext |
3938 CC=$ac_save_CC | 4185 CC=$ac_save_CC |
3939 | 4186 |
3940 fi | 4187 fi |
3941 # AC_CACHE_VAL | 4188 # AC_CACHE_VAL |
3942 case "x$ac_cv_prog_cc_c89" in | 4189 case "x$ac_cv_prog_cc_c89" in |
3943 x) | 4190 x) |
3944 { $as_echo "$as_me:$LINENO: result: none needed" >&5 | 4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
3945 $as_echo "none needed" >&6; } ;; | 4192 $as_echo "none needed" >&6; } ;; |
3946 xno) | 4193 xno) |
3947 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 | 4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
3948 $as_echo "unsupported" >&6; } ;; | 4195 $as_echo "unsupported" >&6; } ;; |
3949 *) | 4196 *) |
3950 CC="$CC $ac_cv_prog_cc_c89" | 4197 CC="$CC $ac_cv_prog_cc_c89" |
3951 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | 4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
3952 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | 4199 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
3953 esac | 4200 esac |
3954 | 4201 if test "x$ac_cv_prog_cc_c89" != xno; then : |
4202 | |
4203 fi | |
3955 | 4204 |
3956 ac_ext=c | 4205 ac_ext=c |
3957 ac_cpp='$CPP $CPPFLAGS' | 4206 ac_cpp='$CPP $CPPFLAGS' |
3958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 4207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 4208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3967 | 4216 |
3968 ## If not using gcc, and on Solaris, and no CPP specified, see if | 4217 ## If not using gcc, and on Solaris, and no CPP specified, see if |
3969 ## using a Sun compiler, which needs -Xs to prevent whitespace. | 4218 ## using a Sun compiler, which needs -Xs to prevent whitespace. |
3970 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \ | 4219 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \ |
3971 test x"$CPP" = x; then | 4220 test x"$CPP" = x; then |
3972 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5 | 4221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5 |
3973 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; } | 4222 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; } |
3974 | 4223 |
3975 if test "${emacs_cv_sunpro_c+set}" = set; then | 4224 if test "${emacs_cv_sunpro_c+set}" = set; then : |
3976 $as_echo_n "(cached) " >&6 | 4225 $as_echo_n "(cached) " >&6 |
3977 else | 4226 else |
3978 cat >conftest.$ac_ext <<_ACEOF | 4227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3979 /* confdefs.h. */ | |
3980 _ACEOF | |
3981 cat confdefs.h >>conftest.$ac_ext | |
3982 cat >>conftest.$ac_ext <<_ACEOF | |
3983 /* end confdefs.h. */ | 4228 /* end confdefs.h. */ |
3984 | 4229 |
3985 int | 4230 int |
3986 main () | 4231 main () |
3987 { | 4232 { |
3991 | 4236 |
3992 ; | 4237 ; |
3993 return 0; | 4238 return 0; |
3994 } | 4239 } |
3995 _ACEOF | 4240 _ACEOF |
3996 rm -f conftest.$ac_objext conftest$ac_exeext | 4241 if ac_fn_c_try_link "$LINENO"; then : |
3997 if { (ac_try="$ac_link" | |
3998 case "(($ac_try" in | |
3999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4000 *) ac_try_echo=$ac_try;; | |
4001 esac | |
4002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4003 $as_echo "$ac_try_echo") >&5 | |
4004 (eval "$ac_link") 2>conftest.er1 | |
4005 ac_status=$? | |
4006 grep -v '^ *+' conftest.er1 >conftest.err | |
4007 rm -f conftest.er1 | |
4008 cat conftest.err >&5 | |
4009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4010 (exit $ac_status); } && { | |
4011 test -z "$ac_c_werror_flag" || | |
4012 test ! -s conftest.err | |
4013 } && test -s conftest$ac_exeext && { | |
4014 test "$cross_compiling" = yes || | |
4015 $as_test_x conftest$ac_exeext | |
4016 }; then | |
4017 emacs_cv_sunpro_c=yes | 4242 emacs_cv_sunpro_c=yes |
4018 else | 4243 else |
4019 $as_echo "$as_me: failed program was:" >&5 | 4244 emacs_cv_sunpro_c=no |
4020 sed 's/^/| /' conftest.$ac_ext >&5 | 4245 fi |
4021 | 4246 rm -f core conftest.err conftest.$ac_objext \ |
4022 emacs_cv_sunpro_c=no | 4247 conftest$ac_exeext conftest.$ac_ext |
4023 fi | 4248 fi |
4024 | 4249 |
4025 rm -rf conftest.dSYM | 4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5 |
4026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
4027 conftest$ac_exeext conftest.$ac_ext | |
4028 fi | |
4029 | |
4030 { $as_echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5 | |
4031 $as_echo "$emacs_cv_sunpro_c" >&6; } | 4251 $as_echo "$emacs_cv_sunpro_c" >&6; } |
4032 | 4252 |
4033 if test x"$emacs_cv_sunpro_c" = xyes; then | 4253 if test x"$emacs_cv_sunpro_c" = xyes; then |
4034 NON_GNU_CPP="$CC -E -Xs" | 4254 NON_GNU_CPP="$CC -E -Xs" |
4035 fi | 4255 fi |
4065 ac_ext=c | 4285 ac_ext=c |
4066 ac_cpp='$CPP $CPPFLAGS' | 4286 ac_cpp='$CPP $CPPFLAGS' |
4067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 4287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 4288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4069 ac_compiler_gnu=$ac_cv_c_compiler_gnu | 4289 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4070 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | 4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
4071 $as_echo_n "checking how to run the C preprocessor... " >&6; } | 4291 $as_echo_n "checking how to run the C preprocessor... " >&6; } |
4072 # On Suns, sometimes $CPP names a directory. | 4292 # On Suns, sometimes $CPP names a directory. |
4073 if test -n "$CPP" && test -d "$CPP"; then | 4293 if test -n "$CPP" && test -d "$CPP"; then |
4074 CPP= | 4294 CPP= |
4075 fi | 4295 fi |
4076 if test -z "$CPP"; then | 4296 if test -z "$CPP"; then |
4077 if test "${ac_cv_prog_CPP+set}" = set; then | 4297 if test "${ac_cv_prog_CPP+set}" = set; then : |
4078 $as_echo_n "(cached) " >&6 | 4298 $as_echo_n "(cached) " >&6 |
4079 else | 4299 else |
4080 # Double quotes because CPP needs to be expanded | 4300 # Double quotes because CPP needs to be expanded |
4081 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | 4301 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
4082 do | 4302 do |
4087 # with a fresh cross-compiler works. | 4307 # with a fresh cross-compiler works. |
4088 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 4308 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4089 # <limits.h> exists even on freestanding compilers. | 4309 # <limits.h> exists even on freestanding compilers. |
4090 # On the NeXT, cc -E runs the code through the compiler's parser, | 4310 # On the NeXT, cc -E runs the code through the compiler's parser, |
4091 # not just through cpp. "Syntax error" is here to catch this case. | 4311 # not just through cpp. "Syntax error" is here to catch this case. |
4092 cat >conftest.$ac_ext <<_ACEOF | 4312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4093 /* confdefs.h. */ | |
4094 _ACEOF | |
4095 cat confdefs.h >>conftest.$ac_ext | |
4096 cat >>conftest.$ac_ext <<_ACEOF | |
4097 /* end confdefs.h. */ | 4313 /* end confdefs.h. */ |
4098 #ifdef __STDC__ | 4314 #ifdef __STDC__ |
4099 # include <limits.h> | 4315 # include <limits.h> |
4100 #else | 4316 #else |
4101 # include <assert.h> | 4317 # include <assert.h> |
4102 #endif | 4318 #endif |
4103 Syntax error | 4319 Syntax error |
4104 _ACEOF | 4320 _ACEOF |
4105 if { (ac_try="$ac_cpp conftest.$ac_ext" | 4321 if ac_fn_c_try_cpp "$LINENO"; then : |
4106 case "(($ac_try" in | 4322 |
4107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 4323 else |
4108 *) ac_try_echo=$ac_try;; | |
4109 esac | |
4110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4111 $as_echo "$ac_try_echo") >&5 | |
4112 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
4113 ac_status=$? | |
4114 grep -v '^ *+' conftest.er1 >conftest.err | |
4115 rm -f conftest.er1 | |
4116 cat conftest.err >&5 | |
4117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4118 (exit $ac_status); } >/dev/null && { | |
4119 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4120 test ! -s conftest.err | |
4121 }; then | |
4122 : | |
4123 else | |
4124 $as_echo "$as_me: failed program was:" >&5 | |
4125 sed 's/^/| /' conftest.$ac_ext >&5 | |
4126 | |
4127 # Broken: fails on valid input. | 4324 # Broken: fails on valid input. |
4128 continue | 4325 continue |
4129 fi | 4326 fi |
4130 | |
4131 rm -f conftest.err conftest.$ac_ext | 4327 rm -f conftest.err conftest.$ac_ext |
4132 | 4328 |
4133 # OK, works on sane cases. Now check whether nonexistent headers | 4329 # OK, works on sane cases. Now check whether nonexistent headers |
4134 # can be detected and how. | 4330 # can be detected and how. |
4135 cat >conftest.$ac_ext <<_ACEOF | 4331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4136 /* confdefs.h. */ | |
4137 _ACEOF | |
4138 cat confdefs.h >>conftest.$ac_ext | |
4139 cat >>conftest.$ac_ext <<_ACEOF | |
4140 /* end confdefs.h. */ | 4332 /* end confdefs.h. */ |
4141 #include <ac_nonexistent.h> | 4333 #include <ac_nonexistent.h> |
4142 _ACEOF | 4334 _ACEOF |
4143 if { (ac_try="$ac_cpp conftest.$ac_ext" | 4335 if ac_fn_c_try_cpp "$LINENO"; then : |
4144 case "(($ac_try" in | |
4145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4146 *) ac_try_echo=$ac_try;; | |
4147 esac | |
4148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4149 $as_echo "$ac_try_echo") >&5 | |
4150 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
4151 ac_status=$? | |
4152 grep -v '^ *+' conftest.er1 >conftest.err | |
4153 rm -f conftest.er1 | |
4154 cat conftest.err >&5 | |
4155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4156 (exit $ac_status); } >/dev/null && { | |
4157 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4158 test ! -s conftest.err | |
4159 }; then | |
4160 # Broken: success on invalid input. | 4336 # Broken: success on invalid input. |
4161 continue | 4337 continue |
4162 else | 4338 else |
4163 $as_echo "$as_me: failed program was:" >&5 | |
4164 sed 's/^/| /' conftest.$ac_ext >&5 | |
4165 | |
4166 # Passes both tests. | 4339 # Passes both tests. |
4167 ac_preproc_ok=: | 4340 ac_preproc_ok=: |
4168 break | 4341 break |
4169 fi | 4342 fi |
4170 | |
4171 rm -f conftest.err conftest.$ac_ext | 4343 rm -f conftest.err conftest.$ac_ext |
4172 | 4344 |
4173 done | 4345 done |
4174 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 4346 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4175 rm -f conftest.err conftest.$ac_ext | 4347 rm -f conftest.err conftest.$ac_ext |
4176 if $ac_preproc_ok; then | 4348 if $ac_preproc_ok; then : |
4177 break | 4349 break |
4178 fi | 4350 fi |
4179 | 4351 |
4180 done | 4352 done |
4181 ac_cv_prog_CPP=$CPP | 4353 ac_cv_prog_CPP=$CPP |
4183 fi | 4355 fi |
4184 CPP=$ac_cv_prog_CPP | 4356 CPP=$ac_cv_prog_CPP |
4185 else | 4357 else |
4186 ac_cv_prog_CPP=$CPP | 4358 ac_cv_prog_CPP=$CPP |
4187 fi | 4359 fi |
4188 { $as_echo "$as_me:$LINENO: result: $CPP" >&5 | 4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
4189 $as_echo "$CPP" >&6; } | 4361 $as_echo "$CPP" >&6; } |
4190 ac_preproc_ok=false | 4362 ac_preproc_ok=false |
4191 for ac_c_preproc_warn_flag in '' yes | 4363 for ac_c_preproc_warn_flag in '' yes |
4192 do | 4364 do |
4193 # Use a header file that comes with gcc, so configuring glibc | 4365 # Use a header file that comes with gcc, so configuring glibc |
4194 # with a fresh cross-compiler works. | 4366 # with a fresh cross-compiler works. |
4195 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 4367 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4196 # <limits.h> exists even on freestanding compilers. | 4368 # <limits.h> exists even on freestanding compilers. |
4197 # On the NeXT, cc -E runs the code through the compiler's parser, | 4369 # On the NeXT, cc -E runs the code through the compiler's parser, |
4198 # not just through cpp. "Syntax error" is here to catch this case. | 4370 # not just through cpp. "Syntax error" is here to catch this case. |
4199 cat >conftest.$ac_ext <<_ACEOF | 4371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4200 /* confdefs.h. */ | |
4201 _ACEOF | |
4202 cat confdefs.h >>conftest.$ac_ext | |
4203 cat >>conftest.$ac_ext <<_ACEOF | |
4204 /* end confdefs.h. */ | 4372 /* end confdefs.h. */ |
4205 #ifdef __STDC__ | 4373 #ifdef __STDC__ |
4206 # include <limits.h> | 4374 # include <limits.h> |
4207 #else | 4375 #else |
4208 # include <assert.h> | 4376 # include <assert.h> |
4209 #endif | 4377 #endif |
4210 Syntax error | 4378 Syntax error |
4211 _ACEOF | 4379 _ACEOF |
4212 if { (ac_try="$ac_cpp conftest.$ac_ext" | 4380 if ac_fn_c_try_cpp "$LINENO"; then : |
4213 case "(($ac_try" in | 4381 |
4214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 4382 else |
4215 *) ac_try_echo=$ac_try;; | |
4216 esac | |
4217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4218 $as_echo "$ac_try_echo") >&5 | |
4219 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
4220 ac_status=$? | |
4221 grep -v '^ *+' conftest.er1 >conftest.err | |
4222 rm -f conftest.er1 | |
4223 cat conftest.err >&5 | |
4224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4225 (exit $ac_status); } >/dev/null && { | |
4226 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4227 test ! -s conftest.err | |
4228 }; then | |
4229 : | |
4230 else | |
4231 $as_echo "$as_me: failed program was:" >&5 | |
4232 sed 's/^/| /' conftest.$ac_ext >&5 | |
4233 | |
4234 # Broken: fails on valid input. | 4383 # Broken: fails on valid input. |
4235 continue | 4384 continue |
4236 fi | 4385 fi |
4237 | |
4238 rm -f conftest.err conftest.$ac_ext | 4386 rm -f conftest.err conftest.$ac_ext |
4239 | 4387 |
4240 # OK, works on sane cases. Now check whether nonexistent headers | 4388 # OK, works on sane cases. Now check whether nonexistent headers |
4241 # can be detected and how. | 4389 # can be detected and how. |
4242 cat >conftest.$ac_ext <<_ACEOF | 4390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4243 /* confdefs.h. */ | |
4244 _ACEOF | |
4245 cat confdefs.h >>conftest.$ac_ext | |
4246 cat >>conftest.$ac_ext <<_ACEOF | |
4247 /* end confdefs.h. */ | 4391 /* end confdefs.h. */ |
4248 #include <ac_nonexistent.h> | 4392 #include <ac_nonexistent.h> |
4249 _ACEOF | 4393 _ACEOF |
4250 if { (ac_try="$ac_cpp conftest.$ac_ext" | 4394 if ac_fn_c_try_cpp "$LINENO"; then : |
4251 case "(($ac_try" in | |
4252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4253 *) ac_try_echo=$ac_try;; | |
4254 esac | |
4255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4256 $as_echo "$ac_try_echo") >&5 | |
4257 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
4258 ac_status=$? | |
4259 grep -v '^ *+' conftest.er1 >conftest.err | |
4260 rm -f conftest.er1 | |
4261 cat conftest.err >&5 | |
4262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4263 (exit $ac_status); } >/dev/null && { | |
4264 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4265 test ! -s conftest.err | |
4266 }; then | |
4267 # Broken: success on invalid input. | 4395 # Broken: success on invalid input. |
4268 continue | 4396 continue |
4269 else | 4397 else |
4270 $as_echo "$as_me: failed program was:" >&5 | |
4271 sed 's/^/| /' conftest.$ac_ext >&5 | |
4272 | |
4273 # Passes both tests. | 4398 # Passes both tests. |
4274 ac_preproc_ok=: | 4399 ac_preproc_ok=: |
4275 break | 4400 break |
4276 fi | 4401 fi |
4277 | |
4278 rm -f conftest.err conftest.$ac_ext | 4402 rm -f conftest.err conftest.$ac_ext |
4279 | 4403 |
4280 done | 4404 done |
4281 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 4405 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4282 rm -f conftest.err conftest.$ac_ext | 4406 rm -f conftest.err conftest.$ac_ext |
4283 if $ac_preproc_ok; then | 4407 if $ac_preproc_ok; then : |
4284 : | 4408 |
4285 else | 4409 else |
4286 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | 4410 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4287 See \`config.log' for more details." >&5 | 4411 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
4288 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | 4412 as_fn_error "C preprocessor \"$CPP\" fails sanity check |
4289 See \`config.log' for more details." >&2;} | 4413 See \`config.log' for more details." "$LINENO" 5; } |
4290 { (exit 1); exit 1; }; } | |
4291 fi | 4414 fi |
4292 | 4415 |
4293 ac_ext=c | 4416 ac_ext=c |
4294 ac_cpp='$CPP $CPPFLAGS' | 4417 ac_cpp='$CPP $CPPFLAGS' |
4295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 4418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 4419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4297 ac_compiler_gnu=$ac_cv_c_compiler_gnu | 4420 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4298 | 4421 |
4299 | 4422 |
4300 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 | 4423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
4301 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | 4424 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
4302 if test "${ac_cv_path_GREP+set}" = set; then | 4425 if test "${ac_cv_path_GREP+set}" = set; then : |
4303 $as_echo_n "(cached) " >&6 | 4426 $as_echo_n "(cached) " >&6 |
4304 else | 4427 else |
4305 if test -z "$GREP"; then | 4428 if test -z "$GREP"; then |
4306 ac_path_GREP_found=false | 4429 ac_path_GREP_found=false |
4307 # Loop through the user's path and test for each of PROGNAME-LIST | 4430 # Loop through the user's path and test for each of PROGNAME-LIST |
4308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 4431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4309 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | 4432 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4310 do | 4433 do |
4311 IFS=$as_save_IFS | 4434 IFS=$as_save_IFS |
4312 test -z "$as_dir" && as_dir=. | 4435 test -z "$as_dir" && as_dir=. |
4313 for ac_prog in grep ggrep; do | 4436 for ac_prog in grep ggrep; do |
4314 for ac_exec_ext in '' $ac_executable_extensions; do | 4437 for ac_exec_ext in '' $ac_executable_extensions; do |
4315 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | 4438 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
4316 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | 4439 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
4317 # Check for GNU ac_path_GREP and select it if it is found. | 4440 # Check for GNU ac_path_GREP and select it if it is found. |
4318 # Check for GNU $ac_path_GREP | 4441 # Check for GNU $ac_path_GREP |
4328 mv "conftest.tmp" "conftest.in" | 4451 mv "conftest.tmp" "conftest.in" |
4329 cp "conftest.in" "conftest.nl" | 4452 cp "conftest.in" "conftest.nl" |
4330 $as_echo 'GREP' >> "conftest.nl" | 4453 $as_echo 'GREP' >> "conftest.nl" |
4331 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | 4454 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4332 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 4455 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
4333 ac_count=`expr $ac_count + 1` | 4456 as_fn_arith $ac_count + 1 && ac_count=$as_val |
4334 if test $ac_count -gt ${ac_path_GREP_max-0}; then | 4457 if test $ac_count -gt ${ac_path_GREP_max-0}; then |
4335 # Best one so far, save it but keep looking for a better one | 4458 # Best one so far, save it but keep looking for a better one |
4336 ac_cv_path_GREP="$ac_path_GREP" | 4459 ac_cv_path_GREP="$ac_path_GREP" |
4337 ac_path_GREP_max=$ac_count | 4460 ac_path_GREP_max=$ac_count |
4338 fi | 4461 fi |
4343 esac | 4466 esac |
4344 | 4467 |
4345 $ac_path_GREP_found && break 3 | 4468 $ac_path_GREP_found && break 3 |
4346 done | 4469 done |
4347 done | 4470 done |
4348 done | 4471 done |
4349 IFS=$as_save_IFS | 4472 IFS=$as_save_IFS |
4350 if test -z "$ac_cv_path_GREP"; then | 4473 if test -z "$ac_cv_path_GREP"; then |
4351 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | 4474 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
4352 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
4353 { (exit 1); exit 1; }; } | |
4354 fi | 4475 fi |
4355 else | 4476 else |
4356 ac_cv_path_GREP=$GREP | 4477 ac_cv_path_GREP=$GREP |
4357 fi | 4478 fi |
4358 | 4479 |
4359 fi | 4480 fi |
4360 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | 4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
4361 $as_echo "$ac_cv_path_GREP" >&6; } | 4482 $as_echo "$ac_cv_path_GREP" >&6; } |
4362 GREP="$ac_cv_path_GREP" | 4483 GREP="$ac_cv_path_GREP" |
4363 | 4484 |
4364 | 4485 |
4365 { $as_echo "$as_me:$LINENO: checking for egrep" >&5 | 4486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
4366 $as_echo_n "checking for egrep... " >&6; } | 4487 $as_echo_n "checking for egrep... " >&6; } |
4367 if test "${ac_cv_path_EGREP+set}" = set; then | 4488 if test "${ac_cv_path_EGREP+set}" = set; then : |
4368 $as_echo_n "(cached) " >&6 | 4489 $as_echo_n "(cached) " >&6 |
4369 else | 4490 else |
4370 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | 4491 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
4371 then ac_cv_path_EGREP="$GREP -E" | 4492 then ac_cv_path_EGREP="$GREP -E" |
4372 else | 4493 else |
4376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 4497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4377 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | 4498 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4378 do | 4499 do |
4379 IFS=$as_save_IFS | 4500 IFS=$as_save_IFS |
4380 test -z "$as_dir" && as_dir=. | 4501 test -z "$as_dir" && as_dir=. |
4381 for ac_prog in egrep; do | 4502 for ac_prog in egrep; do |
4382 for ac_exec_ext in '' $ac_executable_extensions; do | 4503 for ac_exec_ext in '' $ac_executable_extensions; do |
4383 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | 4504 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
4384 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | 4505 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
4385 # Check for GNU ac_path_EGREP and select it if it is found. | 4506 # Check for GNU ac_path_EGREP and select it if it is found. |
4386 # Check for GNU $ac_path_EGREP | 4507 # Check for GNU $ac_path_EGREP |
4396 mv "conftest.tmp" "conftest.in" | 4517 mv "conftest.tmp" "conftest.in" |
4397 cp "conftest.in" "conftest.nl" | 4518 cp "conftest.in" "conftest.nl" |
4398 $as_echo 'EGREP' >> "conftest.nl" | 4519 $as_echo 'EGREP' >> "conftest.nl" |
4399 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | 4520 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4400 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 4521 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
4401 ac_count=`expr $ac_count + 1` | 4522 as_fn_arith $ac_count + 1 && ac_count=$as_val |
4402 if test $ac_count -gt ${ac_path_EGREP_max-0}; then | 4523 if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
4403 # Best one so far, save it but keep looking for a better one | 4524 # Best one so far, save it but keep looking for a better one |
4404 ac_cv_path_EGREP="$ac_path_EGREP" | 4525 ac_cv_path_EGREP="$ac_path_EGREP" |
4405 ac_path_EGREP_max=$ac_count | 4526 ac_path_EGREP_max=$ac_count |
4406 fi | 4527 fi |
4411 esac | 4532 esac |
4412 | 4533 |
4413 $ac_path_EGREP_found && break 3 | 4534 $ac_path_EGREP_found && break 3 |
4414 done | 4535 done |
4415 done | 4536 done |
4416 done | 4537 done |
4417 IFS=$as_save_IFS | 4538 IFS=$as_save_IFS |
4418 if test -z "$ac_cv_path_EGREP"; then | 4539 if test -z "$ac_cv_path_EGREP"; then |
4419 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | 4540 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
4420 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
4421 { (exit 1); exit 1; }; } | |
4422 fi | 4541 fi |
4423 else | 4542 else |
4424 ac_cv_path_EGREP=$EGREP | 4543 ac_cv_path_EGREP=$EGREP |
4425 fi | 4544 fi |
4426 | 4545 |
4427 fi | 4546 fi |
4428 fi | 4547 fi |
4429 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | 4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
4430 $as_echo "$ac_cv_path_EGREP" >&6; } | 4549 $as_echo "$ac_cv_path_EGREP" >&6; } |
4431 EGREP="$ac_cv_path_EGREP" | 4550 EGREP="$ac_cv_path_EGREP" |
4432 | 4551 |
4433 | 4552 |
4434 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | 4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
4435 $as_echo_n "checking for ANSI C header files... " >&6; } | 4554 $as_echo_n "checking for ANSI C header files... " >&6; } |
4436 if test "${ac_cv_header_stdc+set}" = set; then | 4555 if test "${ac_cv_header_stdc+set}" = set; then : |
4437 $as_echo_n "(cached) " >&6 | 4556 $as_echo_n "(cached) " >&6 |
4438 else | 4557 else |
4439 cat >conftest.$ac_ext <<_ACEOF | 4558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4440 /* confdefs.h. */ | |
4441 _ACEOF | |
4442 cat confdefs.h >>conftest.$ac_ext | |
4443 cat >>conftest.$ac_ext <<_ACEOF | |
4444 /* end confdefs.h. */ | 4559 /* end confdefs.h. */ |
4445 #include <stdlib.h> | 4560 #include <stdlib.h> |
4446 #include <stdarg.h> | 4561 #include <stdarg.h> |
4447 #include <string.h> | 4562 #include <string.h> |
4448 #include <float.h> | 4563 #include <float.h> |
4453 | 4568 |
4454 ; | 4569 ; |
4455 return 0; | 4570 return 0; |
4456 } | 4571 } |
4457 _ACEOF | 4572 _ACEOF |
4458 rm -f conftest.$ac_objext | 4573 if ac_fn_c_try_compile "$LINENO"; then : |
4459 if { (ac_try="$ac_compile" | |
4460 case "(($ac_try" in | |
4461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4462 *) ac_try_echo=$ac_try;; | |
4463 esac | |
4464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4465 $as_echo "$ac_try_echo") >&5 | |
4466 (eval "$ac_compile") 2>conftest.er1 | |
4467 ac_status=$? | |
4468 grep -v '^ *+' conftest.er1 >conftest.err | |
4469 rm -f conftest.er1 | |
4470 cat conftest.err >&5 | |
4471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4472 (exit $ac_status); } && { | |
4473 test -z "$ac_c_werror_flag" || | |
4474 test ! -s conftest.err | |
4475 } && test -s conftest.$ac_objext; then | |
4476 ac_cv_header_stdc=yes | 4574 ac_cv_header_stdc=yes |
4477 else | 4575 else |
4478 $as_echo "$as_me: failed program was:" >&5 | 4576 ac_cv_header_stdc=no |
4479 sed 's/^/| /' conftest.$ac_ext >&5 | 4577 fi |
4480 | |
4481 ac_cv_header_stdc=no | |
4482 fi | |
4483 | |
4484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 4578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4485 | 4579 |
4486 if test $ac_cv_header_stdc = yes; then | 4580 if test $ac_cv_header_stdc = yes; then |
4487 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 4581 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
4488 cat >conftest.$ac_ext <<_ACEOF | 4582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4489 /* confdefs.h. */ | |
4490 _ACEOF | |
4491 cat confdefs.h >>conftest.$ac_ext | |
4492 cat >>conftest.$ac_ext <<_ACEOF | |
4493 /* end confdefs.h. */ | 4583 /* end confdefs.h. */ |
4494 #include <string.h> | 4584 #include <string.h> |
4495 | 4585 |
4496 _ACEOF | 4586 _ACEOF |
4497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 4587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4498 $EGREP "memchr" >/dev/null 2>&1; then | 4588 $EGREP "memchr" >/dev/null 2>&1; then : |
4499 : | 4589 |
4500 else | 4590 else |
4501 ac_cv_header_stdc=no | 4591 ac_cv_header_stdc=no |
4502 fi | 4592 fi |
4503 rm -f conftest* | 4593 rm -f conftest* |
4504 | 4594 |
4505 fi | 4595 fi |
4506 | 4596 |
4507 if test $ac_cv_header_stdc = yes; then | 4597 if test $ac_cv_header_stdc = yes; then |
4508 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 4598 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
4509 cat >conftest.$ac_ext <<_ACEOF | 4599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4510 /* confdefs.h. */ | |
4511 _ACEOF | |
4512 cat confdefs.h >>conftest.$ac_ext | |
4513 cat >>conftest.$ac_ext <<_ACEOF | |
4514 /* end confdefs.h. */ | 4600 /* end confdefs.h. */ |
4515 #include <stdlib.h> | 4601 #include <stdlib.h> |
4516 | 4602 |
4517 _ACEOF | 4603 _ACEOF |
4518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 4604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4519 $EGREP "free" >/dev/null 2>&1; then | 4605 $EGREP "free" >/dev/null 2>&1; then : |
4520 : | 4606 |
4521 else | 4607 else |
4522 ac_cv_header_stdc=no | 4608 ac_cv_header_stdc=no |
4523 fi | 4609 fi |
4524 rm -f conftest* | 4610 rm -f conftest* |
4525 | 4611 |
4526 fi | 4612 fi |
4527 | 4613 |
4528 if test $ac_cv_header_stdc = yes; then | 4614 if test $ac_cv_header_stdc = yes; then |
4529 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 4615 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
4530 if test "$cross_compiling" = yes; then | 4616 if test "$cross_compiling" = yes; then : |
4531 : | 4617 : |
4532 else | 4618 else |
4533 cat >conftest.$ac_ext <<_ACEOF | 4619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4534 /* confdefs.h. */ | |
4535 _ACEOF | |
4536 cat confdefs.h >>conftest.$ac_ext | |
4537 cat >>conftest.$ac_ext <<_ACEOF | |
4538 /* end confdefs.h. */ | 4620 /* end confdefs.h. */ |
4539 #include <ctype.h> | 4621 #include <ctype.h> |
4540 #include <stdlib.h> | 4622 #include <stdlib.h> |
4541 #if ((' ' & 0x0FF) == 0x020) | 4623 #if ((' ' & 0x0FF) == 0x020) |
4542 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 4624 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
4559 || toupper (i) != TOUPPER (i)) | 4641 || toupper (i) != TOUPPER (i)) |
4560 return 2; | 4642 return 2; |
4561 return 0; | 4643 return 0; |
4562 } | 4644 } |
4563 _ACEOF | 4645 _ACEOF |
4564 rm -f conftest$ac_exeext | 4646 if ac_fn_c_try_run "$LINENO"; then : |
4565 if { (ac_try="$ac_link" | 4647 |
4566 case "(($ac_try" in | 4648 else |
4567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 4649 ac_cv_header_stdc=no |
4568 *) ac_try_echo=$ac_try;; | 4650 fi |
4569 esac | 4651 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | 4652 conftest.$ac_objext conftest.beam conftest.$ac_ext |
4571 $as_echo "$ac_try_echo") >&5 | 4653 fi |
4572 (eval "$ac_link") 2>&5 | 4654 |
4573 ac_status=$? | 4655 fi |
4574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 4656 fi |
4575 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
4576 { (case "(($ac_try" in | |
4577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4578 *) ac_try_echo=$ac_try;; | |
4579 esac | |
4580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4581 $as_echo "$ac_try_echo") >&5 | |
4582 (eval "$ac_try") 2>&5 | |
4583 ac_status=$? | |
4584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4585 (exit $ac_status); }; }; then | |
4586 : | |
4587 else | |
4588 $as_echo "$as_me: program exited with status $ac_status" >&5 | |
4589 $as_echo "$as_me: failed program was:" >&5 | |
4590 sed 's/^/| /' conftest.$ac_ext >&5 | |
4591 | |
4592 ( exit $ac_status ) | |
4593 ac_cv_header_stdc=no | |
4594 fi | |
4595 rm -rf conftest.dSYM | |
4596 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4597 fi | |
4598 | |
4599 | |
4600 fi | |
4601 fi | |
4602 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
4603 $as_echo "$ac_cv_header_stdc" >&6; } | 4658 $as_echo "$ac_cv_header_stdc" >&6; } |
4604 if test $ac_cv_header_stdc = yes; then | 4659 if test $ac_cv_header_stdc = yes; then |
4605 | 4660 |
4606 cat >>confdefs.h <<\_ACEOF | 4661 $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
4607 #define STDC_HEADERS 1 | |
4608 _ACEOF | |
4609 | 4662 |
4610 fi | 4663 fi |
4611 | 4664 |
4612 # On IRIX 5.3, sys/types and inttypes.h are conflicting. | 4665 # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
4613 | |
4614 | |
4615 | |
4616 | |
4617 | |
4618 | |
4619 | |
4620 | |
4621 | |
4622 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | 4666 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
4623 inttypes.h stdint.h unistd.h | 4667 inttypes.h stdint.h unistd.h |
4624 do | 4668 do : |
4625 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 4669 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4626 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | 4670 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
4627 $as_echo_n "checking for $ac_header... " >&6; } | 4671 " |
4628 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 4672 eval as_val=\$$as_ac_Header |
4629 $as_echo_n "(cached) " >&6 | 4673 if test "x$as_val" = x""yes; then : |
4630 else | |
4631 cat >conftest.$ac_ext <<_ACEOF | |
4632 /* confdefs.h. */ | |
4633 _ACEOF | |
4634 cat confdefs.h >>conftest.$ac_ext | |
4635 cat >>conftest.$ac_ext <<_ACEOF | |
4636 /* end confdefs.h. */ | |
4637 $ac_includes_default | |
4638 | |
4639 #include <$ac_header> | |
4640 _ACEOF | |
4641 rm -f conftest.$ac_objext | |
4642 if { (ac_try="$ac_compile" | |
4643 case "(($ac_try" in | |
4644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4645 *) ac_try_echo=$ac_try;; | |
4646 esac | |
4647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4648 $as_echo "$ac_try_echo") >&5 | |
4649 (eval "$ac_compile") 2>conftest.er1 | |
4650 ac_status=$? | |
4651 grep -v '^ *+' conftest.er1 >conftest.err | |
4652 rm -f conftest.er1 | |
4653 cat conftest.err >&5 | |
4654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4655 (exit $ac_status); } && { | |
4656 test -z "$ac_c_werror_flag" || | |
4657 test ! -s conftest.err | |
4658 } && test -s conftest.$ac_objext; then | |
4659 eval "$as_ac_Header=yes" | |
4660 else | |
4661 $as_echo "$as_me: failed program was:" >&5 | |
4662 sed 's/^/| /' conftest.$ac_ext >&5 | |
4663 | |
4664 eval "$as_ac_Header=no" | |
4665 fi | |
4666 | |
4667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4668 fi | |
4669 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
4670 $as_echo "$as_val"'` | |
4671 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4672 $as_echo "$ac_res" >&6; } | |
4673 if test `eval 'as_val=${'$as_ac_Header'} | |
4674 $as_echo "$as_val"'` = yes; then | |
4675 cat >>confdefs.h <<_ACEOF | 4674 cat >>confdefs.h <<_ACEOF |
4676 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 4675 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
4677 _ACEOF | 4676 _ACEOF |
4678 | 4677 |
4679 fi | 4678 fi |
4680 | 4679 |
4681 done | 4680 done |
4682 | 4681 |
4683 | 4682 |
4684 | 4683 |
4685 if test "${ac_cv_header_minix_config_h+set}" = set; then | 4684 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
4686 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5 | 4685 if test "x$ac_cv_header_minix_config_h" = x""yes; then : |
4687 $as_echo_n "checking for minix/config.h... " >&6; } | 4686 MINIX=yes |
4688 if test "${ac_cv_header_minix_config_h+set}" = set; then | 4687 else |
4688 MINIX= | |
4689 fi | |
4690 | |
4691 | |
4692 if test "$MINIX" = yes; then | |
4693 | |
4694 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
4695 | |
4696 | |
4697 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | |
4698 | |
4699 | |
4700 $as_echo "#define _MINIX 1" >>confdefs.h | |
4701 | |
4702 fi | |
4703 | |
4704 | |
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | |
4706 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
4707 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : | |
4689 $as_echo_n "(cached) " >&6 | 4708 $as_echo_n "(cached) " >&6 |
4690 fi | 4709 else |
4691 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 | 4710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4692 $as_echo "$ac_cv_header_minix_config_h" >&6; } | |
4693 else | |
4694 # Is the header compilable? | |
4695 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5 | |
4696 $as_echo_n "checking minix/config.h usability... " >&6; } | |
4697 cat >conftest.$ac_ext <<_ACEOF | |
4698 /* confdefs.h. */ | |
4699 _ACEOF | |
4700 cat confdefs.h >>conftest.$ac_ext | |
4701 cat >>conftest.$ac_ext <<_ACEOF | |
4702 /* end confdefs.h. */ | |
4703 $ac_includes_default | |
4704 #include <minix/config.h> | |
4705 _ACEOF | |
4706 rm -f conftest.$ac_objext | |
4707 if { (ac_try="$ac_compile" | |
4708 case "(($ac_try" in | |
4709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4710 *) ac_try_echo=$ac_try;; | |
4711 esac | |
4712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4713 $as_echo "$ac_try_echo") >&5 | |
4714 (eval "$ac_compile") 2>conftest.er1 | |
4715 ac_status=$? | |
4716 grep -v '^ *+' conftest.er1 >conftest.err | |
4717 rm -f conftest.er1 | |
4718 cat conftest.err >&5 | |
4719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4720 (exit $ac_status); } && { | |
4721 test -z "$ac_c_werror_flag" || | |
4722 test ! -s conftest.err | |
4723 } && test -s conftest.$ac_objext; then | |
4724 ac_header_compiler=yes | |
4725 else | |
4726 $as_echo "$as_me: failed program was:" >&5 | |
4727 sed 's/^/| /' conftest.$ac_ext >&5 | |
4728 | |
4729 ac_header_compiler=no | |
4730 fi | |
4731 | |
4732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4733 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4734 $as_echo "$ac_header_compiler" >&6; } | |
4735 | |
4736 # Is the header present? | |
4737 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5 | |
4738 $as_echo_n "checking minix/config.h presence... " >&6; } | |
4739 cat >conftest.$ac_ext <<_ACEOF | |
4740 /* confdefs.h. */ | |
4741 _ACEOF | |
4742 cat confdefs.h >>conftest.$ac_ext | |
4743 cat >>conftest.$ac_ext <<_ACEOF | |
4744 /* end confdefs.h. */ | |
4745 #include <minix/config.h> | |
4746 _ACEOF | |
4747 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4748 case "(($ac_try" in | |
4749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4750 *) ac_try_echo=$ac_try;; | |
4751 esac | |
4752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4753 $as_echo "$ac_try_echo") >&5 | |
4754 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
4755 ac_status=$? | |
4756 grep -v '^ *+' conftest.er1 >conftest.err | |
4757 rm -f conftest.er1 | |
4758 cat conftest.err >&5 | |
4759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4760 (exit $ac_status); } >/dev/null && { | |
4761 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4762 test ! -s conftest.err | |
4763 }; then | |
4764 ac_header_preproc=yes | |
4765 else | |
4766 $as_echo "$as_me: failed program was:" >&5 | |
4767 sed 's/^/| /' conftest.$ac_ext >&5 | |
4768 | |
4769 ac_header_preproc=no | |
4770 fi | |
4771 | |
4772 rm -f conftest.err conftest.$ac_ext | |
4773 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4774 $as_echo "$ac_header_preproc" >&6; } | |
4775 | |
4776 # So? What about this header? | |
4777 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4778 yes:no: ) | |
4779 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4780 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4781 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5 | |
4782 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;} | |
4783 ac_header_preproc=yes | |
4784 ;; | |
4785 no:yes:* ) | |
4786 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 | |
4787 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} | |
4788 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 | |
4789 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} | |
4790 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5 | |
4791 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;} | |
4792 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4793 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
4794 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 | |
4795 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} | |
4796 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5 | |
4797 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;} | |
4798 | |
4799 ;; | |
4800 esac | |
4801 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5 | |
4802 $as_echo_n "checking for minix/config.h... " >&6; } | |
4803 if test "${ac_cv_header_minix_config_h+set}" = set; then | |
4804 $as_echo_n "(cached) " >&6 | |
4805 else | |
4806 ac_cv_header_minix_config_h=$ac_header_preproc | |
4807 fi | |
4808 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 | |
4809 $as_echo "$ac_cv_header_minix_config_h" >&6; } | |
4810 | |
4811 fi | |
4812 if test $ac_cv_header_minix_config_h = yes; then | |
4813 MINIX=yes | |
4814 else | |
4815 MINIX= | |
4816 fi | |
4817 | |
4818 | |
4819 if test "$MINIX" = yes; then | |
4820 | |
4821 cat >>confdefs.h <<\_ACEOF | |
4822 #define _POSIX_SOURCE 1 | |
4823 _ACEOF | |
4824 | |
4825 | |
4826 cat >>confdefs.h <<\_ACEOF | |
4827 #define _POSIX_1_SOURCE 2 | |
4828 _ACEOF | |
4829 | |
4830 | |
4831 cat >>confdefs.h <<\_ACEOF | |
4832 #define _MINIX 1 | |
4833 _ACEOF | |
4834 | |
4835 fi | |
4836 | |
4837 | |
4838 | |
4839 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5 | |
4840 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
4841 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then | |
4842 $as_echo_n "(cached) " >&6 | |
4843 else | |
4844 cat >conftest.$ac_ext <<_ACEOF | |
4845 /* confdefs.h. */ | |
4846 _ACEOF | |
4847 cat confdefs.h >>conftest.$ac_ext | |
4848 cat >>conftest.$ac_ext <<_ACEOF | |
4849 /* end confdefs.h. */ | 4711 /* end confdefs.h. */ |
4850 | 4712 |
4851 # define __EXTENSIONS__ 1 | 4713 # define __EXTENSIONS__ 1 |
4852 $ac_includes_default | 4714 $ac_includes_default |
4853 int | 4715 int |
4856 | 4718 |
4857 ; | 4719 ; |
4858 return 0; | 4720 return 0; |
4859 } | 4721 } |
4860 _ACEOF | 4722 _ACEOF |
4861 rm -f conftest.$ac_objext | 4723 if ac_fn_c_try_compile "$LINENO"; then : |
4862 if { (ac_try="$ac_compile" | |
4863 case "(($ac_try" in | |
4864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4865 *) ac_try_echo=$ac_try;; | |
4866 esac | |
4867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4868 $as_echo "$ac_try_echo") >&5 | |
4869 (eval "$ac_compile") 2>conftest.er1 | |
4870 ac_status=$? | |
4871 grep -v '^ *+' conftest.er1 >conftest.err | |
4872 rm -f conftest.er1 | |
4873 cat conftest.err >&5 | |
4874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4875 (exit $ac_status); } && { | |
4876 test -z "$ac_c_werror_flag" || | |
4877 test ! -s conftest.err | |
4878 } && test -s conftest.$ac_objext; then | |
4879 ac_cv_safe_to_define___extensions__=yes | 4724 ac_cv_safe_to_define___extensions__=yes |
4880 else | 4725 else |
4881 $as_echo "$as_me: failed program was:" >&5 | 4726 ac_cv_safe_to_define___extensions__=no |
4882 sed 's/^/| /' conftest.$ac_ext >&5 | 4727 fi |
4883 | |
4884 ac_cv_safe_to_define___extensions__=no | |
4885 fi | |
4886 | |
4887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 4728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4888 fi | 4729 fi |
4889 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5 | 4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
4890 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | 4731 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } |
4891 test $ac_cv_safe_to_define___extensions__ = yes && | 4732 test $ac_cv_safe_to_define___extensions__ = yes && |
4892 cat >>confdefs.h <<\_ACEOF | 4733 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
4893 #define __EXTENSIONS__ 1 | 4734 |
4894 _ACEOF | 4735 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
4895 | 4736 |
4896 cat >>confdefs.h <<\_ACEOF | 4737 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
4897 #define _ALL_SOURCE 1 | 4738 |
4898 _ACEOF | 4739 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
4899 | 4740 |
4900 cat >>confdefs.h <<\_ACEOF | 4741 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
4901 #define _GNU_SOURCE 1 | |
4902 _ACEOF | |
4903 | |
4904 cat >>confdefs.h <<\_ACEOF | |
4905 #define _POSIX_PTHREAD_SEMANTICS 1 | |
4906 _ACEOF | |
4907 | |
4908 cat >>confdefs.h <<\_ACEOF | |
4909 #define _TANDEM_SOURCE 1 | |
4910 _ACEOF | |
4911 | 4742 |
4912 | 4743 |
4913 | 4744 |
4914 ### Use -Wno-pointer-sign if the compiler supports it | 4745 ### Use -Wno-pointer-sign if the compiler supports it |
4915 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5 | 4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5 |
4916 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; } | 4747 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; } |
4917 SAVE_CFLAGS="$CFLAGS" | 4748 SAVE_CFLAGS="$CFLAGS" |
4918 CFLAGS="$CFLAGS -Wno-pointer-sign" | 4749 CFLAGS="$CFLAGS -Wno-pointer-sign" |
4919 cat >conftest.$ac_ext <<_ACEOF | 4750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4920 /* confdefs.h. */ | |
4921 _ACEOF | |
4922 cat confdefs.h >>conftest.$ac_ext | |
4923 cat >>conftest.$ac_ext <<_ACEOF | |
4924 /* end confdefs.h. */ | 4751 /* end confdefs.h. */ |
4925 | 4752 |
4926 int | 4753 int |
4927 main () | 4754 main () |
4928 { | 4755 { |
4929 | 4756 |
4930 ; | 4757 ; |
4931 return 0; | 4758 return 0; |
4932 } | 4759 } |
4933 _ACEOF | 4760 _ACEOF |
4934 rm -f conftest.$ac_objext | 4761 if ac_fn_c_try_compile "$LINENO"; then : |
4935 if { (ac_try="$ac_compile" | |
4936 case "(($ac_try" in | |
4937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4938 *) ac_try_echo=$ac_try;; | |
4939 esac | |
4940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4941 $as_echo "$ac_try_echo") >&5 | |
4942 (eval "$ac_compile") 2>conftest.er1 | |
4943 ac_status=$? | |
4944 grep -v '^ *+' conftest.er1 >conftest.err | |
4945 rm -f conftest.er1 | |
4946 cat conftest.err >&5 | |
4947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4948 (exit $ac_status); } && { | |
4949 test -z "$ac_c_werror_flag" || | |
4950 test ! -s conftest.err | |
4951 } && test -s conftest.$ac_objext; then | |
4952 has_option=yes | 4762 has_option=yes |
4953 else | 4763 else |
4954 $as_echo "$as_me: failed program was:" >&5 | 4764 has_option=no |
4955 sed 's/^/| /' conftest.$ac_ext >&5 | 4765 fi |
4956 | |
4957 has_option=no | |
4958 fi | |
4959 | |
4960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 4766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4961 if test $has_option = yes; then | 4767 if test $has_option = yes; then |
4962 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH" | 4768 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH" |
4963 fi | 4769 fi |
4964 { $as_echo "$as_me:$LINENO: result: $has_option" >&5 | 4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5 |
4965 $as_echo "$has_option" >&6; } | 4771 $as_echo "$has_option" >&6; } |
4966 CFLAGS="$SAVE_CFLAGS" | 4772 CFLAGS="$SAVE_CFLAGS" |
4967 unset has_option | 4773 unset has_option |
4968 unset SAVE_CFLAGS | 4774 unset SAVE_CFLAGS |
4969 | 4775 |
4970 ### Use -Wdeclaration-after-statement if the compiler supports it | 4776 ### Use -Wdeclaration-after-statement if the compiler supports it |
4971 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wdeclaration-after-statement" >&5 | 4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5 |
4972 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; } | 4778 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; } |
4973 SAVE_CFLAGS="$CFLAGS" | 4779 SAVE_CFLAGS="$CFLAGS" |
4974 CFLAGS="$CFLAGS -Wdeclaration-after-statement" | 4780 CFLAGS="$CFLAGS -Wdeclaration-after-statement" |
4975 cat >conftest.$ac_ext <<_ACEOF | 4781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4976 /* confdefs.h. */ | |
4977 _ACEOF | |
4978 cat confdefs.h >>conftest.$ac_ext | |
4979 cat >>conftest.$ac_ext <<_ACEOF | |
4980 /* end confdefs.h. */ | 4782 /* end confdefs.h. */ |
4981 | 4783 |
4982 int | 4784 int |
4983 main () | 4785 main () |
4984 { | 4786 { |
4985 | 4787 |
4986 ; | 4788 ; |
4987 return 0; | 4789 return 0; |
4988 } | 4790 } |
4989 _ACEOF | 4791 _ACEOF |
4990 rm -f conftest.$ac_objext | 4792 if ac_fn_c_try_compile "$LINENO"; then : |
4991 if { (ac_try="$ac_compile" | |
4992 case "(($ac_try" in | |
4993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4994 *) ac_try_echo=$ac_try;; | |
4995 esac | |
4996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
4997 $as_echo "$ac_try_echo") >&5 | |
4998 (eval "$ac_compile") 2>conftest.er1 | |
4999 ac_status=$? | |
5000 grep -v '^ *+' conftest.er1 >conftest.err | |
5001 rm -f conftest.er1 | |
5002 cat conftest.err >&5 | |
5003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5004 (exit $ac_status); } && { | |
5005 test -z "$ac_c_werror_flag" || | |
5006 test ! -s conftest.err | |
5007 } && test -s conftest.$ac_objext; then | |
5008 has_option=yes | 4793 has_option=yes |
5009 else | 4794 else |
5010 $as_echo "$as_me: failed program was:" >&5 | 4795 has_option=no |
5011 sed 's/^/| /' conftest.$ac_ext >&5 | 4796 fi |
5012 | |
5013 has_option=no | |
5014 fi | |
5015 | |
5016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 4797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5017 if test $has_option = yes; then | 4798 if test $has_option = yes; then |
5018 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH" | 4799 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH" |
5019 fi | 4800 fi |
5020 { $as_echo "$as_me:$LINENO: result: $has_option" >&5 | 4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5 |
5021 $as_echo "$has_option" >&6; } | 4802 $as_echo "$has_option" >&6; } |
5022 CFLAGS="$SAVE_CFLAGS" | 4803 CFLAGS="$SAVE_CFLAGS" |
5023 unset has_option | 4804 unset has_option |
5024 unset SAVE_CFLAGS | 4805 unset SAVE_CFLAGS |
5025 | 4806 |
5028 ac_ext=c | 4809 ac_ext=c |
5029 ac_cpp='$CPP $CPPFLAGS' | 4810 ac_cpp='$CPP $CPPFLAGS' |
5030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 4811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 4812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5032 ac_compiler_gnu=$ac_cv_c_compiler_gnu | 4813 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
5033 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | 4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
5034 $as_echo_n "checking how to run the C preprocessor... " >&6; } | 4815 $as_echo_n "checking how to run the C preprocessor... " >&6; } |
5035 # On Suns, sometimes $CPP names a directory. | 4816 # On Suns, sometimes $CPP names a directory. |
5036 if test -n "$CPP" && test -d "$CPP"; then | 4817 if test -n "$CPP" && test -d "$CPP"; then |
5037 CPP= | 4818 CPP= |
5038 fi | 4819 fi |
5039 if test -z "$CPP"; then | 4820 if test -z "$CPP"; then |
5040 if test "${ac_cv_prog_CPP+set}" = set; then | 4821 if test "${ac_cv_prog_CPP+set}" = set; then : |
5041 $as_echo_n "(cached) " >&6 | 4822 $as_echo_n "(cached) " >&6 |
5042 else | 4823 else |
5043 # Double quotes because CPP needs to be expanded | 4824 # Double quotes because CPP needs to be expanded |
5044 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | 4825 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
5045 do | 4826 do |
5050 # with a fresh cross-compiler works. | 4831 # with a fresh cross-compiler works. |
5051 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 4832 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5052 # <limits.h> exists even on freestanding compilers. | 4833 # <limits.h> exists even on freestanding compilers. |
5053 # On the NeXT, cc -E runs the code through the compiler's parser, | 4834 # On the NeXT, cc -E runs the code through the compiler's parser, |
5054 # not just through cpp. "Syntax error" is here to catch this case. | 4835 # not just through cpp. "Syntax error" is here to catch this case. |
5055 cat >conftest.$ac_ext <<_ACEOF | 4836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5056 /* confdefs.h. */ | |
5057 _ACEOF | |
5058 cat confdefs.h >>conftest.$ac_ext | |
5059 cat >>conftest.$ac_ext <<_ACEOF | |
5060 /* end confdefs.h. */ | 4837 /* end confdefs.h. */ |
5061 #ifdef __STDC__ | 4838 #ifdef __STDC__ |
5062 # include <limits.h> | 4839 # include <limits.h> |
5063 #else | 4840 #else |
5064 # include <assert.h> | 4841 # include <assert.h> |
5065 #endif | 4842 #endif |
5066 Syntax error | 4843 Syntax error |
5067 _ACEOF | 4844 _ACEOF |
5068 if { (ac_try="$ac_cpp conftest.$ac_ext" | 4845 if ac_fn_c_try_cpp "$LINENO"; then : |
5069 case "(($ac_try" in | 4846 |
5070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 4847 else |
5071 *) ac_try_echo=$ac_try;; | |
5072 esac | |
5073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5074 $as_echo "$ac_try_echo") >&5 | |
5075 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5076 ac_status=$? | |
5077 grep -v '^ *+' conftest.er1 >conftest.err | |
5078 rm -f conftest.er1 | |
5079 cat conftest.err >&5 | |
5080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5081 (exit $ac_status); } >/dev/null && { | |
5082 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5083 test ! -s conftest.err | |
5084 }; then | |
5085 : | |
5086 else | |
5087 $as_echo "$as_me: failed program was:" >&5 | |
5088 sed 's/^/| /' conftest.$ac_ext >&5 | |
5089 | |
5090 # Broken: fails on valid input. | 4848 # Broken: fails on valid input. |
5091 continue | 4849 continue |
5092 fi | 4850 fi |
5093 | |
5094 rm -f conftest.err conftest.$ac_ext | 4851 rm -f conftest.err conftest.$ac_ext |
5095 | 4852 |
5096 # OK, works on sane cases. Now check whether nonexistent headers | 4853 # OK, works on sane cases. Now check whether nonexistent headers |
5097 # can be detected and how. | 4854 # can be detected and how. |
5098 cat >conftest.$ac_ext <<_ACEOF | 4855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5099 /* confdefs.h. */ | |
5100 _ACEOF | |
5101 cat confdefs.h >>conftest.$ac_ext | |
5102 cat >>conftest.$ac_ext <<_ACEOF | |
5103 /* end confdefs.h. */ | 4856 /* end confdefs.h. */ |
5104 #include <ac_nonexistent.h> | 4857 #include <ac_nonexistent.h> |
5105 _ACEOF | 4858 _ACEOF |
5106 if { (ac_try="$ac_cpp conftest.$ac_ext" | 4859 if ac_fn_c_try_cpp "$LINENO"; then : |
5107 case "(($ac_try" in | |
5108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5109 *) ac_try_echo=$ac_try;; | |
5110 esac | |
5111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5112 $as_echo "$ac_try_echo") >&5 | |
5113 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5114 ac_status=$? | |
5115 grep -v '^ *+' conftest.er1 >conftest.err | |
5116 rm -f conftest.er1 | |
5117 cat conftest.err >&5 | |
5118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5119 (exit $ac_status); } >/dev/null && { | |
5120 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5121 test ! -s conftest.err | |
5122 }; then | |
5123 # Broken: success on invalid input. | 4860 # Broken: success on invalid input. |
5124 continue | 4861 continue |
5125 else | 4862 else |
5126 $as_echo "$as_me: failed program was:" >&5 | |
5127 sed 's/^/| /' conftest.$ac_ext >&5 | |
5128 | |
5129 # Passes both tests. | 4863 # Passes both tests. |
5130 ac_preproc_ok=: | 4864 ac_preproc_ok=: |
5131 break | 4865 break |
5132 fi | 4866 fi |
5133 | |
5134 rm -f conftest.err conftest.$ac_ext | 4867 rm -f conftest.err conftest.$ac_ext |
5135 | 4868 |
5136 done | 4869 done |
5137 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 4870 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5138 rm -f conftest.err conftest.$ac_ext | 4871 rm -f conftest.err conftest.$ac_ext |
5139 if $ac_preproc_ok; then | 4872 if $ac_preproc_ok; then : |
5140 break | 4873 break |
5141 fi | 4874 fi |
5142 | 4875 |
5143 done | 4876 done |
5144 ac_cv_prog_CPP=$CPP | 4877 ac_cv_prog_CPP=$CPP |
5146 fi | 4879 fi |
5147 CPP=$ac_cv_prog_CPP | 4880 CPP=$ac_cv_prog_CPP |
5148 else | 4881 else |
5149 ac_cv_prog_CPP=$CPP | 4882 ac_cv_prog_CPP=$CPP |
5150 fi | 4883 fi |
5151 { $as_echo "$as_me:$LINENO: result: $CPP" >&5 | 4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
5152 $as_echo "$CPP" >&6; } | 4885 $as_echo "$CPP" >&6; } |
5153 ac_preproc_ok=false | 4886 ac_preproc_ok=false |
5154 for ac_c_preproc_warn_flag in '' yes | 4887 for ac_c_preproc_warn_flag in '' yes |
5155 do | 4888 do |
5156 # Use a header file that comes with gcc, so configuring glibc | 4889 # Use a header file that comes with gcc, so configuring glibc |
5157 # with a fresh cross-compiler works. | 4890 # with a fresh cross-compiler works. |
5158 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 4891 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5159 # <limits.h> exists even on freestanding compilers. | 4892 # <limits.h> exists even on freestanding compilers. |
5160 # On the NeXT, cc -E runs the code through the compiler's parser, | 4893 # On the NeXT, cc -E runs the code through the compiler's parser, |
5161 # not just through cpp. "Syntax error" is here to catch this case. | 4894 # not just through cpp. "Syntax error" is here to catch this case. |
5162 cat >conftest.$ac_ext <<_ACEOF | 4895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5163 /* confdefs.h. */ | |
5164 _ACEOF | |
5165 cat confdefs.h >>conftest.$ac_ext | |
5166 cat >>conftest.$ac_ext <<_ACEOF | |
5167 /* end confdefs.h. */ | 4896 /* end confdefs.h. */ |
5168 #ifdef __STDC__ | 4897 #ifdef __STDC__ |
5169 # include <limits.h> | 4898 # include <limits.h> |
5170 #else | 4899 #else |
5171 # include <assert.h> | 4900 # include <assert.h> |
5172 #endif | 4901 #endif |
5173 Syntax error | 4902 Syntax error |
5174 _ACEOF | 4903 _ACEOF |
5175 if { (ac_try="$ac_cpp conftest.$ac_ext" | 4904 if ac_fn_c_try_cpp "$LINENO"; then : |
5176 case "(($ac_try" in | 4905 |
5177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 4906 else |
5178 *) ac_try_echo=$ac_try;; | |
5179 esac | |
5180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5181 $as_echo "$ac_try_echo") >&5 | |
5182 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5183 ac_status=$? | |
5184 grep -v '^ *+' conftest.er1 >conftest.err | |
5185 rm -f conftest.er1 | |
5186 cat conftest.err >&5 | |
5187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5188 (exit $ac_status); } >/dev/null && { | |
5189 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5190 test ! -s conftest.err | |
5191 }; then | |
5192 : | |
5193 else | |
5194 $as_echo "$as_me: failed program was:" >&5 | |
5195 sed 's/^/| /' conftest.$ac_ext >&5 | |
5196 | |
5197 # Broken: fails on valid input. | 4907 # Broken: fails on valid input. |
5198 continue | 4908 continue |
5199 fi | 4909 fi |
5200 | |
5201 rm -f conftest.err conftest.$ac_ext | 4910 rm -f conftest.err conftest.$ac_ext |
5202 | 4911 |
5203 # OK, works on sane cases. Now check whether nonexistent headers | 4912 # OK, works on sane cases. Now check whether nonexistent headers |
5204 # can be detected and how. | 4913 # can be detected and how. |
5205 cat >conftest.$ac_ext <<_ACEOF | 4914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5206 /* confdefs.h. */ | |
5207 _ACEOF | |
5208 cat confdefs.h >>conftest.$ac_ext | |
5209 cat >>conftest.$ac_ext <<_ACEOF | |
5210 /* end confdefs.h. */ | 4915 /* end confdefs.h. */ |
5211 #include <ac_nonexistent.h> | 4916 #include <ac_nonexistent.h> |
5212 _ACEOF | 4917 _ACEOF |
5213 if { (ac_try="$ac_cpp conftest.$ac_ext" | 4918 if ac_fn_c_try_cpp "$LINENO"; then : |
5214 case "(($ac_try" in | |
5215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5216 *) ac_try_echo=$ac_try;; | |
5217 esac | |
5218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5219 $as_echo "$ac_try_echo") >&5 | |
5220 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5221 ac_status=$? | |
5222 grep -v '^ *+' conftest.er1 >conftest.err | |
5223 rm -f conftest.er1 | |
5224 cat conftest.err >&5 | |
5225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5226 (exit $ac_status); } >/dev/null && { | |
5227 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5228 test ! -s conftest.err | |
5229 }; then | |
5230 # Broken: success on invalid input. | 4919 # Broken: success on invalid input. |
5231 continue | 4920 continue |
5232 else | 4921 else |
5233 $as_echo "$as_me: failed program was:" >&5 | |
5234 sed 's/^/| /' conftest.$ac_ext >&5 | |
5235 | |
5236 # Passes both tests. | 4922 # Passes both tests. |
5237 ac_preproc_ok=: | 4923 ac_preproc_ok=: |
5238 break | 4924 break |
5239 fi | 4925 fi |
5240 | |
5241 rm -f conftest.err conftest.$ac_ext | 4926 rm -f conftest.err conftest.$ac_ext |
5242 | 4927 |
5243 done | 4928 done |
5244 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 4929 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5245 rm -f conftest.err conftest.$ac_ext | 4930 rm -f conftest.err conftest.$ac_ext |
5246 if $ac_preproc_ok; then | 4931 if $ac_preproc_ok; then : |
5247 : | 4932 |
5248 else | 4933 else |
5249 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | 4934 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
5250 See \`config.log' for more details." >&5 | 4935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
5251 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | 4936 as_fn_error "C preprocessor \"$CPP\" fails sanity check |
5252 See \`config.log' for more details." >&2;} | 4937 See \`config.log' for more details." "$LINENO" 5; } |
5253 { (exit 1); exit 1; }; } | |
5254 fi | 4938 fi |
5255 | 4939 |
5256 ac_ext=c | 4940 ac_ext=c |
5257 ac_cpp='$CPP $CPPFLAGS' | 4941 ac_cpp='$CPP $CPPFLAGS' |
5258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 4942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5271 # AFS /usr/afsws/bin/install, which mishandles nonexistent args | 4955 # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
5272 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | 4956 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
5273 # OS/2's system install, which has a completely different semantic | 4957 # OS/2's system install, which has a completely different semantic |
5274 # ./install, which can be erroneously created by make from ./install.sh. | 4958 # ./install, which can be erroneously created by make from ./install.sh. |
5275 # Reject install programs that cannot install multiple files. | 4959 # Reject install programs that cannot install multiple files. |
5276 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | 4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
5277 $as_echo_n "checking for a BSD-compatible install... " >&6; } | 4961 $as_echo_n "checking for a BSD-compatible install... " >&6; } |
5278 if test -z "$INSTALL"; then | 4962 if test -z "$INSTALL"; then |
5279 if test "${ac_cv_path_install+set}" = set; then | 4963 if test "${ac_cv_path_install+set}" = set; then : |
5280 $as_echo_n "(cached) " >&6 | 4964 $as_echo_n "(cached) " >&6 |
5281 else | 4965 else |
5282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 4966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5283 for as_dir in $PATH | 4967 for as_dir in $PATH |
5284 do | 4968 do |
5285 IFS=$as_save_IFS | 4969 IFS=$as_save_IFS |
5286 test -z "$as_dir" && as_dir=. | 4970 test -z "$as_dir" && as_dir=. |
5287 # Account for people who put trailing slashes in PATH elements. | 4971 # Account for people who put trailing slashes in PATH elements. |
5288 case $as_dir/ in | 4972 case $as_dir/ in #(( |
5289 ./ | .// | /cC/* | \ | 4973 ./ | .// | /[cC]/* | \ |
5290 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | 4974 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
5291 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | 4975 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
5292 /usr/ucb/* ) ;; | 4976 /usr/ucb/* ) ;; |
5293 *) | 4977 *) |
5294 # OSF1 and SCO ODT 3.0 have their own names for install. | 4978 # OSF1 and SCO ODT 3.0 have their own names for install. |
5295 # Don't use installbsd from OSF since it installs stuff as root | 4979 # Don't use installbsd from OSF since it installs stuff as root |
5296 # by default. | 4980 # by default. |
5323 done | 5007 done |
5324 done | 5008 done |
5325 ;; | 5009 ;; |
5326 esac | 5010 esac |
5327 | 5011 |
5328 done | 5012 done |
5329 IFS=$as_save_IFS | 5013 IFS=$as_save_IFS |
5330 | 5014 |
5331 rm -rf conftest.one conftest.two conftest.dir | 5015 rm -rf conftest.one conftest.two conftest.dir |
5332 | 5016 |
5333 fi | 5017 fi |
5339 # break other packages using the cache if that directory is | 5023 # break other packages using the cache if that directory is |
5340 # removed, or if the value is a relative name. | 5024 # removed, or if the value is a relative name. |
5341 INSTALL=$ac_install_sh | 5025 INSTALL=$ac_install_sh |
5342 fi | 5026 fi |
5343 fi | 5027 fi |
5344 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 | 5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
5345 $as_echo "$INSTALL" >&6; } | 5029 $as_echo "$INSTALL" >&6; } |
5346 | 5030 |
5347 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | 5031 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
5348 # It thinks the first close brace ends the variable substitution. | 5032 # It thinks the first close brace ends the variable substitution. |
5349 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | 5033 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
5354 | 5038 |
5355 if test "x$RANLIB" = x; then | 5039 if test "x$RANLIB" = x; then |
5356 if test -n "$ac_tool_prefix"; then | 5040 if test -n "$ac_tool_prefix"; then |
5357 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | 5041 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
5358 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | 5042 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
5359 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | 5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5360 $as_echo_n "checking for $ac_word... " >&6; } | 5044 $as_echo_n "checking for $ac_word... " >&6; } |
5361 if test "${ac_cv_prog_RANLIB+set}" = set; then | 5045 if test "${ac_cv_prog_RANLIB+set}" = set; then : |
5362 $as_echo_n "(cached) " >&6 | 5046 $as_echo_n "(cached) " >&6 |
5363 else | 5047 else |
5364 if test -n "$RANLIB"; then | 5048 if test -n "$RANLIB"; then |
5365 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 5049 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
5366 else | 5050 else |
5367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 5051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5368 for as_dir in $PATH | 5052 for as_dir in $PATH |
5369 do | 5053 do |
5370 IFS=$as_save_IFS | 5054 IFS=$as_save_IFS |
5371 test -z "$as_dir" && as_dir=. | 5055 test -z "$as_dir" && as_dir=. |
5372 for ac_exec_ext in '' $ac_executable_extensions; do | 5056 for ac_exec_ext in '' $ac_executable_extensions; do |
5373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 5057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5374 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | 5058 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
5375 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5376 break 2 | 5060 break 2 |
5377 fi | 5061 fi |
5378 done | 5062 done |
5379 done | 5063 done |
5380 IFS=$as_save_IFS | 5064 IFS=$as_save_IFS |
5381 | 5065 |
5382 fi | 5066 fi |
5383 fi | 5067 fi |
5384 RANLIB=$ac_cv_prog_RANLIB | 5068 RANLIB=$ac_cv_prog_RANLIB |
5385 if test -n "$RANLIB"; then | 5069 if test -n "$RANLIB"; then |
5386 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 | 5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
5387 $as_echo "$RANLIB" >&6; } | 5071 $as_echo "$RANLIB" >&6; } |
5388 else | 5072 else |
5389 { $as_echo "$as_me:$LINENO: result: no" >&5 | 5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5390 $as_echo "no" >&6; } | 5074 $as_echo "no" >&6; } |
5391 fi | 5075 fi |
5392 | 5076 |
5393 | 5077 |
5394 fi | 5078 fi |
5395 if test -z "$ac_cv_prog_RANLIB"; then | 5079 if test -z "$ac_cv_prog_RANLIB"; then |
5396 ac_ct_RANLIB=$RANLIB | 5080 ac_ct_RANLIB=$RANLIB |
5397 # Extract the first word of "ranlib", so it can be a program name with args. | 5081 # Extract the first word of "ranlib", so it can be a program name with args. |
5398 set dummy ranlib; ac_word=$2 | 5082 set dummy ranlib; ac_word=$2 |
5399 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | 5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5400 $as_echo_n "checking for $ac_word... " >&6; } | 5084 $as_echo_n "checking for $ac_word... " >&6; } |
5401 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | 5085 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : |
5402 $as_echo_n "(cached) " >&6 | 5086 $as_echo_n "(cached) " >&6 |
5403 else | 5087 else |
5404 if test -n "$ac_ct_RANLIB"; then | 5088 if test -n "$ac_ct_RANLIB"; then |
5405 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | 5089 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
5406 else | 5090 else |
5407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 5091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5408 for as_dir in $PATH | 5092 for as_dir in $PATH |
5409 do | 5093 do |
5410 IFS=$as_save_IFS | 5094 IFS=$as_save_IFS |
5411 test -z "$as_dir" && as_dir=. | 5095 test -z "$as_dir" && as_dir=. |
5412 for ac_exec_ext in '' $ac_executable_extensions; do | 5096 for ac_exec_ext in '' $ac_executable_extensions; do |
5413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 5097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5414 ac_cv_prog_ac_ct_RANLIB="ranlib" | 5098 ac_cv_prog_ac_ct_RANLIB="ranlib" |
5415 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 5099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5416 break 2 | 5100 break 2 |
5417 fi | 5101 fi |
5418 done | 5102 done |
5419 done | 5103 done |
5420 IFS=$as_save_IFS | 5104 IFS=$as_save_IFS |
5421 | 5105 |
5422 fi | 5106 fi |
5423 fi | 5107 fi |
5424 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | 5108 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
5425 if test -n "$ac_ct_RANLIB"; then | 5109 if test -n "$ac_ct_RANLIB"; then |
5426 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | 5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
5427 $as_echo "$ac_ct_RANLIB" >&6; } | 5111 $as_echo "$ac_ct_RANLIB" >&6; } |
5428 else | 5112 else |
5429 { $as_echo "$as_me:$LINENO: result: no" >&5 | 5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5430 $as_echo "no" >&6; } | 5114 $as_echo "no" >&6; } |
5431 fi | 5115 fi |
5432 | 5116 |
5433 if test "x$ac_ct_RANLIB" = x; then | 5117 if test "x$ac_ct_RANLIB" = x; then |
5434 RANLIB=":" | 5118 RANLIB=":" |
5435 else | 5119 else |
5436 case $cross_compiling:$ac_tool_warned in | 5120 case $cross_compiling:$ac_tool_warned in |
5437 yes:) | 5121 yes:) |
5438 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | 5122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
5439 whose name does not start with the host triplet. If you think this | 5123 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5440 configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
5441 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
5442 whose name does not start with the host triplet. If you think this | |
5443 configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
5444 ac_tool_warned=yes ;; | 5124 ac_tool_warned=yes ;; |
5445 esac | 5125 esac |
5446 RANLIB=$ac_ct_RANLIB | 5126 RANLIB=$ac_ct_RANLIB |
5447 fi | 5127 fi |
5448 else | 5128 else |
5454 ## Although we're running on an amd64 kernel, we're actually compiling for | 5134 ## Although we're running on an amd64 kernel, we're actually compiling for |
5455 ## the x86 architecture. The user should probably have provided an | 5135 ## the x86 architecture. The user should probably have provided an |
5456 ## explicit --build to `configure', but if everything else than the kernel | 5136 ## explicit --build to `configure', but if everything else than the kernel |
5457 ## is running in i386 mode, we can help them out. | 5137 ## is running in i386 mode, we can help them out. |
5458 if test "$machine" = "amdx86-64"; then | 5138 if test "$machine" = "amdx86-64"; then |
5459 { $as_echo "$as_me:$LINENO: checking whether i386 is declared" >&5 | 5139 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default" |
5460 $as_echo_n "checking whether i386 is declared... " >&6; } | 5140 if test "x$ac_cv_have_decl_i386" = x""yes; then : |
5461 if test "${ac_cv_have_decl_i386+set}" = set; then | 5141 |
5462 $as_echo_n "(cached) " >&6 | 5142 fi |
5463 else | |
5464 cat >conftest.$ac_ext <<_ACEOF | |
5465 /* confdefs.h. */ | |
5466 _ACEOF | |
5467 cat confdefs.h >>conftest.$ac_ext | |
5468 cat >>conftest.$ac_ext <<_ACEOF | |
5469 /* end confdefs.h. */ | |
5470 $ac_includes_default | |
5471 int | |
5472 main () | |
5473 { | |
5474 #ifndef i386 | |
5475 (void) i386; | |
5476 #endif | |
5477 | |
5478 ; | |
5479 return 0; | |
5480 } | |
5481 _ACEOF | |
5482 rm -f conftest.$ac_objext | |
5483 if { (ac_try="$ac_compile" | |
5484 case "(($ac_try" in | |
5485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5486 *) ac_try_echo=$ac_try;; | |
5487 esac | |
5488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5489 $as_echo "$ac_try_echo") >&5 | |
5490 (eval "$ac_compile") 2>conftest.er1 | |
5491 ac_status=$? | |
5492 grep -v '^ *+' conftest.er1 >conftest.err | |
5493 rm -f conftest.er1 | |
5494 cat conftest.err >&5 | |
5495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5496 (exit $ac_status); } && { | |
5497 test -z "$ac_c_werror_flag" || | |
5498 test ! -s conftest.err | |
5499 } && test -s conftest.$ac_objext; then | |
5500 ac_cv_have_decl_i386=yes | |
5501 else | |
5502 $as_echo "$as_me: failed program was:" >&5 | |
5503 sed 's/^/| /' conftest.$ac_ext >&5 | |
5504 | |
5505 ac_cv_have_decl_i386=no | |
5506 fi | |
5507 | |
5508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5509 fi | |
5510 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_i386" >&5 | |
5511 $as_echo "$ac_cv_have_decl_i386" >&6; } | |
5512 | 5143 |
5513 if test "$ac_cv_have_decl_i386" = "yes"; then | 5144 if test "$ac_cv_have_decl_i386" = "yes"; then |
5514 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'` | 5145 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'` |
5515 machine=intel386 | 5146 machine=intel386 |
5516 machfile="m/${machine}.h" | 5147 machfile="m/${machine}.h" |
5517 fi | 5148 fi |
5518 fi | 5149 fi |
5519 | 5150 |
5520 # Extract the first word of "install-info", so it can be a program name with args. | 5151 # Extract the first word of "install-info", so it can be a program name with args. |
5521 set dummy install-info; ac_word=$2 | 5152 set dummy install-info; ac_word=$2 |
5522 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | 5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5523 $as_echo_n "checking for $ac_word... " >&6; } | 5154 $as_echo_n "checking for $ac_word... " >&6; } |
5524 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then | 5155 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then : |
5525 $as_echo_n "(cached) " >&6 | 5156 $as_echo_n "(cached) " >&6 |
5526 else | 5157 else |
5527 case $INSTALL_INFO in | 5158 case $INSTALL_INFO in |
5528 [\\/]* | ?:[\\/]*) | 5159 [\\/]* | ?:[\\/]*) |
5529 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. | 5160 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. |
5532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 5163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5533 for as_dir in $PATH | 5164 for as_dir in $PATH |
5534 do | 5165 do |
5535 IFS=$as_save_IFS | 5166 IFS=$as_save_IFS |
5536 test -z "$as_dir" && as_dir=. | 5167 test -z "$as_dir" && as_dir=. |
5537 for ac_exec_ext in '' $ac_executable_extensions; do | 5168 for ac_exec_ext in '' $ac_executable_extensions; do |
5538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 5169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5539 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" | 5170 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" |
5540 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 5171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5541 break 2 | 5172 break 2 |
5542 fi | 5173 fi |
5543 done | 5174 done |
5544 done | 5175 done |
5545 IFS=$as_save_IFS | 5176 IFS=$as_save_IFS |
5546 | 5177 |
5547 ;; | 5178 ;; |
5548 esac | 5179 esac |
5549 fi | 5180 fi |
5550 INSTALL_INFO=$ac_cv_path_INSTALL_INFO | 5181 INSTALL_INFO=$ac_cv_path_INSTALL_INFO |
5551 if test -n "$INSTALL_INFO"; then | 5182 if test -n "$INSTALL_INFO"; then |
5552 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5 | 5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5 |
5553 $as_echo "$INSTALL_INFO" >&6; } | 5184 $as_echo "$INSTALL_INFO" >&6; } |
5554 else | 5185 else |
5555 { $as_echo "$as_me:$LINENO: result: no" >&5 | 5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5556 $as_echo "no" >&6; } | 5187 $as_echo "no" >&6; } |
5557 fi | 5188 fi |
5558 | 5189 |
5559 | 5190 |
5560 # Extract the first word of "install-info", so it can be a program name with args. | 5191 # Extract the first word of "install-info", so it can be a program name with args. |
5561 set dummy install-info; ac_word=$2 | 5192 set dummy install-info; ac_word=$2 |
5562 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | 5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5563 $as_echo_n "checking for $ac_word... " >&6; } | 5194 $as_echo_n "checking for $ac_word... " >&6; } |
5564 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then | 5195 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then : |
5565 $as_echo_n "(cached) " >&6 | 5196 $as_echo_n "(cached) " >&6 |
5566 else | 5197 else |
5567 case $INSTALL_INFO in | 5198 case $INSTALL_INFO in |
5568 [\\/]* | ?:[\\/]*) | 5199 [\\/]* | ?:[\\/]*) |
5569 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. | 5200 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. |
5572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 5203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5573 for as_dir in /usr/sbin | 5204 for as_dir in /usr/sbin |
5574 do | 5205 do |
5575 IFS=$as_save_IFS | 5206 IFS=$as_save_IFS |
5576 test -z "$as_dir" && as_dir=. | 5207 test -z "$as_dir" && as_dir=. |
5577 for ac_exec_ext in '' $ac_executable_extensions; do | 5208 for ac_exec_ext in '' $ac_executable_extensions; do |
5578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 5209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5579 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" | 5210 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" |
5580 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 5211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5581 break 2 | 5212 break 2 |
5582 fi | 5213 fi |
5583 done | 5214 done |
5584 done | 5215 done |
5585 IFS=$as_save_IFS | 5216 IFS=$as_save_IFS |
5586 | 5217 |
5587 ;; | 5218 ;; |
5588 esac | 5219 esac |
5589 fi | 5220 fi |
5590 INSTALL_INFO=$ac_cv_path_INSTALL_INFO | 5221 INSTALL_INFO=$ac_cv_path_INSTALL_INFO |
5591 if test -n "$INSTALL_INFO"; then | 5222 if test -n "$INSTALL_INFO"; then |
5592 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5 | 5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5 |
5593 $as_echo "$INSTALL_INFO" >&6; } | 5224 $as_echo "$INSTALL_INFO" >&6; } |
5594 else | 5225 else |
5595 { $as_echo "$as_me:$LINENO: result: no" >&5 | 5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5596 $as_echo "no" >&6; } | 5227 $as_echo "no" >&6; } |
5597 fi | 5228 fi |
5598 | 5229 |
5599 | 5230 |
5600 # Extract the first word of "install-info", so it can be a program name with args. | 5231 # Extract the first word of "install-info", so it can be a program name with args. |
5601 set dummy install-info; ac_word=$2 | 5232 set dummy install-info; ac_word=$2 |
5602 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | 5233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5603 $as_echo_n "checking for $ac_word... " >&6; } | 5234 $as_echo_n "checking for $ac_word... " >&6; } |
5604 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then | 5235 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then : |
5605 $as_echo_n "(cached) " >&6 | 5236 $as_echo_n "(cached) " >&6 |
5606 else | 5237 else |
5607 case $INSTALL_INFO in | 5238 case $INSTALL_INFO in |
5608 [\\/]* | ?:[\\/]*) | 5239 [\\/]* | ?:[\\/]*) |
5609 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. | 5240 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. |
5612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 5243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5613 for as_dir in /sbin | 5244 for as_dir in /sbin |
5614 do | 5245 do |
5615 IFS=$as_save_IFS | 5246 IFS=$as_save_IFS |
5616 test -z "$as_dir" && as_dir=. | 5247 test -z "$as_dir" && as_dir=. |
5617 for ac_exec_ext in '' $ac_executable_extensions; do | 5248 for ac_exec_ext in '' $ac_executable_extensions; do |
5618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 5249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5619 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" | 5250 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" |
5620 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 5251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5621 break 2 | 5252 break 2 |
5622 fi | 5253 fi |
5623 done | 5254 done |
5624 done | 5255 done |
5625 IFS=$as_save_IFS | 5256 IFS=$as_save_IFS |
5626 | 5257 |
5627 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":" | 5258 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":" |
5628 ;; | 5259 ;; |
5629 esac | 5260 esac |
5630 fi | 5261 fi |
5631 INSTALL_INFO=$ac_cv_path_INSTALL_INFO | 5262 INSTALL_INFO=$ac_cv_path_INSTALL_INFO |
5632 if test -n "$INSTALL_INFO"; then | 5263 if test -n "$INSTALL_INFO"; then |
5633 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5 | 5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5 |
5634 $as_echo "$INSTALL_INFO" >&6; } | 5265 $as_echo "$INSTALL_INFO" >&6; } |
5635 else | 5266 else |
5636 { $as_echo "$as_me:$LINENO: result: no" >&5 | 5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5637 $as_echo "no" >&6; } | 5268 $as_echo "no" >&6; } |
5638 fi | 5269 fi |
5639 | 5270 |
5640 | 5271 |
5641 # Extract the first word of "gzip", so it can be a program name with args. | 5272 # Extract the first word of "gzip", so it can be a program name with args. |
5642 set dummy gzip; ac_word=$2 | 5273 set dummy gzip; ac_word=$2 |
5643 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | 5274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5644 $as_echo_n "checking for $ac_word... " >&6; } | 5275 $as_echo_n "checking for $ac_word... " >&6; } |
5645 if test "${ac_cv_path_GZIP_PROG+set}" = set; then | 5276 if test "${ac_cv_path_GZIP_PROG+set}" = set; then : |
5646 $as_echo_n "(cached) " >&6 | 5277 $as_echo_n "(cached) " >&6 |
5647 else | 5278 else |
5648 case $GZIP_PROG in | 5279 case $GZIP_PROG in |
5649 [\\/]* | ?:[\\/]*) | 5280 [\\/]* | ?:[\\/]*) |
5650 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path. | 5281 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path. |
5653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 5284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5654 for as_dir in $PATH | 5285 for as_dir in $PATH |
5655 do | 5286 do |
5656 IFS=$as_save_IFS | 5287 IFS=$as_save_IFS |
5657 test -z "$as_dir" && as_dir=. | 5288 test -z "$as_dir" && as_dir=. |
5658 for ac_exec_ext in '' $ac_executable_extensions; do | 5289 for ac_exec_ext in '' $ac_executable_extensions; do |
5659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 5290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5660 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext" | 5291 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext" |
5661 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 5292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5662 break 2 | 5293 break 2 |
5663 fi | 5294 fi |
5664 done | 5295 done |
5665 done | 5296 done |
5666 IFS=$as_save_IFS | 5297 IFS=$as_save_IFS |
5667 | 5298 |
5668 ;; | 5299 ;; |
5669 esac | 5300 esac |
5670 fi | 5301 fi |
5671 GZIP_PROG=$ac_cv_path_GZIP_PROG | 5302 GZIP_PROG=$ac_cv_path_GZIP_PROG |
5672 if test -n "$GZIP_PROG"; then | 5303 if test -n "$GZIP_PROG"; then |
5673 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5 | 5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5 |
5674 $as_echo "$GZIP_PROG" >&6; } | 5305 $as_echo "$GZIP_PROG" >&6; } |
5675 else | 5306 else |
5676 { $as_echo "$as_me:$LINENO: result: no" >&5 | 5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5677 $as_echo "no" >&6; } | 5308 $as_echo "no" >&6; } |
5678 fi | 5309 fi |
5679 | 5310 |
5680 | 5311 |
5681 | 5312 |
5682 | 5313 |
5683 ## Need makeinfo >= 4.6 (?) to build the manuals. | 5314 ## Need makeinfo >= 4.6 (?) to build the manuals. |
5684 # Extract the first word of "makeinfo", so it can be a program name with args. | 5315 # Extract the first word of "makeinfo", so it can be a program name with args. |
5685 set dummy makeinfo; ac_word=$2 | 5316 set dummy makeinfo; ac_word=$2 |
5686 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | 5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5687 $as_echo_n "checking for $ac_word... " >&6; } | 5318 $as_echo_n "checking for $ac_word... " >&6; } |
5688 if test "${ac_cv_path_MAKEINFO+set}" = set; then | 5319 if test "${ac_cv_path_MAKEINFO+set}" = set; then : |
5689 $as_echo_n "(cached) " >&6 | 5320 $as_echo_n "(cached) " >&6 |
5690 else | 5321 else |
5691 case $MAKEINFO in | 5322 case $MAKEINFO in |
5692 [\\/]* | ?:[\\/]*) | 5323 [\\/]* | ?:[\\/]*) |
5693 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path. | 5324 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path. |
5696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 5327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5697 for as_dir in $PATH | 5328 for as_dir in $PATH |
5698 do | 5329 do |
5699 IFS=$as_save_IFS | 5330 IFS=$as_save_IFS |
5700 test -z "$as_dir" && as_dir=. | 5331 test -z "$as_dir" && as_dir=. |
5701 for ac_exec_ext in '' $ac_executable_extensions; do | 5332 for ac_exec_ext in '' $ac_executable_extensions; do |
5702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 5333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5703 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext" | 5334 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext" |
5704 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 5335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5705 break 2 | 5336 break 2 |
5706 fi | 5337 fi |
5707 done | 5338 done |
5708 done | 5339 done |
5709 IFS=$as_save_IFS | 5340 IFS=$as_save_IFS |
5710 | 5341 |
5711 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no" | 5342 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no" |
5712 ;; | 5343 ;; |
5713 esac | 5344 esac |
5714 fi | 5345 fi |
5715 MAKEINFO=$ac_cv_path_MAKEINFO | 5346 MAKEINFO=$ac_cv_path_MAKEINFO |
5716 if test -n "$MAKEINFO"; then | 5347 if test -n "$MAKEINFO"; then |
5717 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5 | 5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
5718 $as_echo "$MAKEINFO" >&6; } | 5349 $as_echo "$MAKEINFO" >&6; } |
5719 else | 5350 else |
5720 { $as_echo "$as_me:$LINENO: result: no" >&5 | 5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5721 $as_echo "no" >&6; } | 5352 $as_echo "no" >&6; } |
5722 fi | 5353 fi |
5723 | 5354 |
5724 | 5355 |
5725 if test "$MAKEINFO" != "no" && \ | 5356 if test "$MAKEINFO" != "no" && \ |
5738 ## with pre-built manuals, from a Bazaar checkout. | 5369 ## with pre-built manuals, from a Bazaar checkout. |
5739 if test "$MAKEINFO" = "no"; then | 5370 if test "$MAKEINFO" = "no"; then |
5740 if test "x${with_makeinfo}" = "xno"; then | 5371 if test "x${with_makeinfo}" = "xno"; then |
5741 MAKEINFO=off | 5372 MAKEINFO=off |
5742 elif test ! -e $srcdir/info/emacs; then | 5373 elif test ! -e $srcdir/info/emacs; then |
5743 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your | 5374 as_fn_error "You do not seem to have makeinfo >= 4.6, and your |
5744 source tree does not seem to have pre-built manuals in the \`info' directory. | 5375 source tree does not seem to have pre-built manuals in the \`info' directory. |
5745 Either install a suitable version of makeinfo, or re-run configure | 5376 Either install a suitable version of makeinfo, or re-run configure |
5746 with the \`--without-makeinfo' option to build without the manuals. " >&5 | 5377 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5 |
5747 $as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your | |
5748 source tree does not seem to have pre-built manuals in the \`info' directory. | |
5749 Either install a suitable version of makeinfo, or re-run configure | |
5750 with the \`--without-makeinfo' option to build without the manuals. " >&2;} | |
5751 { (exit 1); exit 1; }; } | |
5752 fi | 5378 fi |
5753 fi | 5379 fi |
5754 | 5380 |
5755 | 5381 |
5756 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x | 5382 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x |
5769 LDFLAGS="$LDFLAGS -Wl,-znocombreloc" | 5395 LDFLAGS="$LDFLAGS -Wl,-znocombreloc" |
5770 else | 5396 else |
5771 LDFLAGS="$LDFLAGS -znocombreloc" | 5397 LDFLAGS="$LDFLAGS -znocombreloc" |
5772 fi | 5398 fi |
5773 | 5399 |
5774 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5 | 5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5 |
5775 $as_echo_n "checking for -znocombreloc... " >&6; } | 5401 $as_echo_n "checking for -znocombreloc... " >&6; } |
5776 cat >conftest.$ac_ext <<_ACEOF | 5402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5403 /* end confdefs.h. */ | |
5777 main(){return 0;} | 5404 main(){return 0;} |
5778 _ACEOF | 5405 _ACEOF |
5779 rm -f conftest.$ac_objext conftest$ac_exeext | 5406 if ac_fn_c_try_link "$LINENO"; then : |
5780 if { (ac_try="$ac_link" | 5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
5781 case "(($ac_try" in | |
5782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5783 *) ac_try_echo=$ac_try;; | |
5784 esac | |
5785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5786 $as_echo "$ac_try_echo") >&5 | |
5787 (eval "$ac_link") 2>conftest.er1 | |
5788 ac_status=$? | |
5789 grep -v '^ *+' conftest.er1 >conftest.err | |
5790 rm -f conftest.er1 | |
5791 cat conftest.err >&5 | |
5792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5793 (exit $ac_status); } && { | |
5794 test -z "$ac_c_werror_flag" || | |
5795 test ! -s conftest.err | |
5796 } && test -s conftest$ac_exeext && { | |
5797 test "$cross_compiling" = yes || | |
5798 $as_test_x conftest$ac_exeext | |
5799 }; then | |
5800 { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
5801 $as_echo "yes" >&6; } | 5408 $as_echo "yes" >&6; } |
5802 else | 5409 else |
5803 $as_echo "$as_me: failed program was:" >&5 | 5410 LDFLAGS=$late_LDFLAGS |
5804 sed 's/^/| /' conftest.$ac_ext >&5 | 5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5805 | |
5806 LDFLAGS=$late_LDFLAGS | |
5807 { $as_echo "$as_me:$LINENO: result: no" >&5 | |
5808 $as_echo "no" >&6; } | 5412 $as_echo "no" >&6; } |
5809 fi | 5413 fi |
5810 | 5414 rm -f core conftest.err conftest.$ac_objext \ |
5811 rm -rf conftest.dSYM | 5415 conftest$ac_exeext conftest.$ac_ext |
5812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
5813 conftest$ac_exeext conftest.$ac_ext | |
5814 | |
5815 LIB_MATH=-lm | |
5816 | |
5817 case $opsys in | |
5818 cygwin ) | |
5819 LIB_MATH= | |
5820 ;; | |
5821 darwin ) | |
5822 ## Adding -lm confuses the dynamic linker, so omit it. | |
5823 LIB_MATH= | |
5824 ;; | |
5825 esac | |
5826 | |
5827 | |
5828 | 5416 |
5829 #### Extract some information from the operating system and machine files. | 5417 #### Extract some information from the operating system and machine files. |
5830 | 5418 |
5831 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out | 5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the machine- and system-dependent files to find out |
5832 - which libraries the lib-src programs will want, and | 5420 - which libraries the lib-src programs will want, and |
5833 - whether the GNU malloc routines are usable..." >&5 | 5421 - whether the GNU malloc routines are usable..." >&5 |
5834 $as_echo "$as_me: checking the machine- and system-dependent files to find out | 5422 $as_echo "$as_me: checking the machine- and system-dependent files to find out |
5835 - which libraries the lib-src programs will want, and | 5423 - which libraries the lib-src programs will want, and |
5836 - whether the GNU malloc routines are usable..." >&6;} | 5424 - whether the GNU malloc routines are usable..." >&6;} |
5931 ac_link="$ac_link $ld_switch_system" | 5519 ac_link="$ac_link $ld_switch_system" |
5932 | 5520 |
5933 | 5521 |
5934 C_SWITCH_MACHINE= | 5522 C_SWITCH_MACHINE= |
5935 if test "$machine" = "alpha"; then | 5523 if test "$machine" = "alpha"; then |
5936 { $as_echo "$as_me:$LINENO: checking whether __ELF__ is declared" >&5 | 5524 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default" |
5937 $as_echo_n "checking whether __ELF__ is declared... " >&6; } | 5525 if test "x$ac_cv_have_decl___ELF__" = x""yes; then : |
5938 if test "${ac_cv_have_decl___ELF__+set}" = set; then | 5526 |
5939 $as_echo_n "(cached) " >&6 | 5527 fi |
5940 else | |
5941 cat >conftest.$ac_ext <<_ACEOF | |
5942 /* confdefs.h. */ | |
5943 _ACEOF | |
5944 cat confdefs.h >>conftest.$ac_ext | |
5945 cat >>conftest.$ac_ext <<_ACEOF | |
5946 /* end confdefs.h. */ | |
5947 $ac_includes_default | |
5948 int | |
5949 main () | |
5950 { | |
5951 #ifndef __ELF__ | |
5952 (void) __ELF__; | |
5953 #endif | |
5954 | |
5955 ; | |
5956 return 0; | |
5957 } | |
5958 _ACEOF | |
5959 rm -f conftest.$ac_objext | |
5960 if { (ac_try="$ac_compile" | |
5961 case "(($ac_try" in | |
5962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5963 *) ac_try_echo=$ac_try;; | |
5964 esac | |
5965 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5966 $as_echo "$ac_try_echo") >&5 | |
5967 (eval "$ac_compile") 2>conftest.er1 | |
5968 ac_status=$? | |
5969 grep -v '^ *+' conftest.er1 >conftest.err | |
5970 rm -f conftest.er1 | |
5971 cat conftest.err >&5 | |
5972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5973 (exit $ac_status); } && { | |
5974 test -z "$ac_c_werror_flag" || | |
5975 test ! -s conftest.err | |
5976 } && test -s conftest.$ac_objext; then | |
5977 ac_cv_have_decl___ELF__=yes | |
5978 else | |
5979 $as_echo "$as_me: failed program was:" >&5 | |
5980 sed 's/^/| /' conftest.$ac_ext >&5 | |
5981 | |
5982 ac_cv_have_decl___ELF__=no | |
5983 fi | |
5984 | |
5985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5986 fi | |
5987 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___ELF__" >&5 | |
5988 $as_echo "$ac_cv_have_decl___ELF__" >&6; } | |
5989 | 5528 |
5990 if test "$ac_cv_have_decl___ELF__" = "yes"; then | 5529 if test "$ac_cv_have_decl___ELF__" = "yes"; then |
5991 ## With ELF, make sure that all common symbols get allocated to in the | 5530 ## With ELF, make sure that all common symbols get allocated to in the |
5992 ## data section. Otherwise, the dump of temacs may miss variables in | 5531 ## data section. Otherwise, the dump of temacs may miss variables in |
5993 ## the shared library that have been initialized. For example, with | 5532 ## the shared library that have been initialized. For example, with |
5994 ## GNU libc, __malloc_initialized would normally be resolved to the | 5533 ## GNU libc, __malloc_initialized would normally be resolved to the |
5995 ## shared library's .bss section, which is fatal. | 5534 ## shared library's .bss section, which is fatal. |
5996 if test "x$GCC" = "xyes"; then | 5535 if test "x$GCC" = "xyes"; then |
5997 C_SWITCH_MACHINE="-fno-common" | 5536 C_SWITCH_MACHINE="-fno-common" |
5998 else | 5537 else |
5999 { { $as_echo "$as_me:$LINENO: error: What gives? Fix me if DEC Unix supports ELF now." >&5 | 5538 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5 |
6000 $as_echo "$as_me: error: What gives? Fix me if DEC Unix supports ELF now." >&2;} | |
6001 { (exit 1); exit 1; }; } | |
6002 fi | 5539 fi |
6003 fi | 5540 fi |
6004 fi | 5541 fi |
6005 | 5542 |
6006 | 5543 |
6025 fi | 5562 fi |
6026 | 5563 |
6027 | 5564 |
6028 | 5565 |
6029 # Check whether --enable-largefile was given. | 5566 # Check whether --enable-largefile was given. |
6030 if test "${enable_largefile+set}" = set; then | 5567 if test "${enable_largefile+set}" = set; then : |
6031 enableval=$enable_largefile; | 5568 enableval=$enable_largefile; |
6032 fi | 5569 fi |
6033 | 5570 |
6034 if test "$enable_largefile" != no; then | 5571 if test "$enable_largefile" != no; then |
6035 | 5572 |
6036 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 | 5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 |
6037 $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | 5574 $as_echo_n "checking for special C compiler options needed for large files... " >&6; } |
6038 if test "${ac_cv_sys_largefile_CC+set}" = set; then | 5575 if test "${ac_cv_sys_largefile_CC+set}" = set; then : |
6039 $as_echo_n "(cached) " >&6 | 5576 $as_echo_n "(cached) " >&6 |
6040 else | 5577 else |
6041 ac_cv_sys_largefile_CC=no | 5578 ac_cv_sys_largefile_CC=no |
6042 if test "$GCC" != yes; then | 5579 if test "$GCC" != yes; then |
6043 ac_save_CC=$CC | 5580 ac_save_CC=$CC |
6044 while :; do | 5581 while :; do |
6045 # IRIX 6.2 and later do not support large files by default, | 5582 # IRIX 6.2 and later do not support large files by default, |
6046 # so use the C compiler's -n32 option if that helps. | 5583 # so use the C compiler's -n32 option if that helps. |
6047 cat >conftest.$ac_ext <<_ACEOF | 5584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6048 /* confdefs.h. */ | |
6049 _ACEOF | |
6050 cat confdefs.h >>conftest.$ac_ext | |
6051 cat >>conftest.$ac_ext <<_ACEOF | |
6052 /* end confdefs.h. */ | 5585 /* end confdefs.h. */ |
6053 #include <sys/types.h> | 5586 #include <sys/types.h> |
6054 /* Check that off_t can represent 2**63 - 1 correctly. | 5587 /* Check that off_t can represent 2**63 - 1 correctly. |
6055 We can't simply define LARGE_OFF_T to be 9223372036854775807, | 5588 We can't simply define LARGE_OFF_T to be 9223372036854775807, |
6056 since some C++ compilers masquerading as C compilers | 5589 since some C++ compilers masquerading as C compilers |
6065 | 5598 |
6066 ; | 5599 ; |
6067 return 0; | 5600 return 0; |
6068 } | 5601 } |
6069 _ACEOF | 5602 _ACEOF |
6070 rm -f conftest.$ac_objext | 5603 if ac_fn_c_try_compile "$LINENO"; then : |
6071 if { (ac_try="$ac_compile" | |
6072 case "(($ac_try" in | |
6073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6074 *) ac_try_echo=$ac_try;; | |
6075 esac | |
6076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6077 $as_echo "$ac_try_echo") >&5 | |
6078 (eval "$ac_compile") 2>conftest.er1 | |
6079 ac_status=$? | |
6080 grep -v '^ *+' conftest.er1 >conftest.err | |
6081 rm -f conftest.er1 | |
6082 cat conftest.err >&5 | |
6083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6084 (exit $ac_status); } && { | |
6085 test -z "$ac_c_werror_flag" || | |
6086 test ! -s conftest.err | |
6087 } && test -s conftest.$ac_objext; then | |
6088 break | 5604 break |
6089 else | 5605 fi |
6090 $as_echo "$as_me: failed program was:" >&5 | |
6091 sed 's/^/| /' conftest.$ac_ext >&5 | |
6092 | |
6093 | |
6094 fi | |
6095 | |
6096 rm -f core conftest.err conftest.$ac_objext | 5606 rm -f core conftest.err conftest.$ac_objext |
6097 CC="$CC -n32" | 5607 CC="$CC -n32" |
6098 rm -f conftest.$ac_objext | 5608 if ac_fn_c_try_compile "$LINENO"; then : |
6099 if { (ac_try="$ac_compile" | |
6100 case "(($ac_try" in | |
6101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6102 *) ac_try_echo=$ac_try;; | |
6103 esac | |
6104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6105 $as_echo "$ac_try_echo") >&5 | |
6106 (eval "$ac_compile") 2>conftest.er1 | |
6107 ac_status=$? | |
6108 grep -v '^ *+' conftest.er1 >conftest.err | |
6109 rm -f conftest.er1 | |
6110 cat conftest.err >&5 | |
6111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6112 (exit $ac_status); } && { | |
6113 test -z "$ac_c_werror_flag" || | |
6114 test ! -s conftest.err | |
6115 } && test -s conftest.$ac_objext; then | |
6116 ac_cv_sys_largefile_CC=' -n32'; break | 5609 ac_cv_sys_largefile_CC=' -n32'; break |
6117 else | 5610 fi |
6118 $as_echo "$as_me: failed program was:" >&5 | |
6119 sed 's/^/| /' conftest.$ac_ext >&5 | |
6120 | |
6121 | |
6122 fi | |
6123 | |
6124 rm -f core conftest.err conftest.$ac_objext | 5611 rm -f core conftest.err conftest.$ac_objext |
6125 break | 5612 break |
6126 done | 5613 done |
6127 CC=$ac_save_CC | 5614 CC=$ac_save_CC |
6128 rm -f conftest.$ac_ext | 5615 rm -f conftest.$ac_ext |
6129 fi | 5616 fi |
6130 fi | 5617 fi |
6131 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 | 5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 |
6132 $as_echo "$ac_cv_sys_largefile_CC" >&6; } | 5619 $as_echo "$ac_cv_sys_largefile_CC" >&6; } |
6133 if test "$ac_cv_sys_largefile_CC" != no; then | 5620 if test "$ac_cv_sys_largefile_CC" != no; then |
6134 CC=$CC$ac_cv_sys_largefile_CC | 5621 CC=$CC$ac_cv_sys_largefile_CC |
6135 fi | 5622 fi |
6136 | 5623 |
6137 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | 5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
6138 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | 5625 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } |
6139 if test "${ac_cv_sys_file_offset_bits+set}" = set; then | 5626 if test "${ac_cv_sys_file_offset_bits+set}" = set; then : |
6140 $as_echo_n "(cached) " >&6 | 5627 $as_echo_n "(cached) " >&6 |
6141 else | 5628 else |
6142 while :; do | 5629 while :; do |
6143 cat >conftest.$ac_ext <<_ACEOF | 5630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6144 /* confdefs.h. */ | |
6145 _ACEOF | |
6146 cat confdefs.h >>conftest.$ac_ext | |
6147 cat >>conftest.$ac_ext <<_ACEOF | |
6148 /* end confdefs.h. */ | 5631 /* end confdefs.h. */ |
6149 #include <sys/types.h> | 5632 #include <sys/types.h> |
6150 /* Check that off_t can represent 2**63 - 1 correctly. | 5633 /* Check that off_t can represent 2**63 - 1 correctly. |
6151 We can't simply define LARGE_OFF_T to be 9223372036854775807, | 5634 We can't simply define LARGE_OFF_T to be 9223372036854775807, |
6152 since some C++ compilers masquerading as C compilers | 5635 since some C++ compilers masquerading as C compilers |
6161 | 5644 |
6162 ; | 5645 ; |
6163 return 0; | 5646 return 0; |
6164 } | 5647 } |
6165 _ACEOF | 5648 _ACEOF |
6166 rm -f conftest.$ac_objext | 5649 if ac_fn_c_try_compile "$LINENO"; then : |
6167 if { (ac_try="$ac_compile" | |
6168 case "(($ac_try" in | |
6169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6170 *) ac_try_echo=$ac_try;; | |
6171 esac | |
6172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6173 $as_echo "$ac_try_echo") >&5 | |
6174 (eval "$ac_compile") 2>conftest.er1 | |
6175 ac_status=$? | |
6176 grep -v '^ *+' conftest.er1 >conftest.err | |
6177 rm -f conftest.er1 | |
6178 cat conftest.err >&5 | |
6179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6180 (exit $ac_status); } && { | |
6181 test -z "$ac_c_werror_flag" || | |
6182 test ! -s conftest.err | |
6183 } && test -s conftest.$ac_objext; then | |
6184 ac_cv_sys_file_offset_bits=no; break | 5650 ac_cv_sys_file_offset_bits=no; break |
6185 else | 5651 fi |
6186 $as_echo "$as_me: failed program was:" >&5 | |
6187 sed 's/^/| /' conftest.$ac_ext >&5 | |
6188 | |
6189 | |
6190 fi | |
6191 | |
6192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 5652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6193 cat >conftest.$ac_ext <<_ACEOF | 5653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6194 /* confdefs.h. */ | |
6195 _ACEOF | |
6196 cat confdefs.h >>conftest.$ac_ext | |
6197 cat >>conftest.$ac_ext <<_ACEOF | |
6198 /* end confdefs.h. */ | 5654 /* end confdefs.h. */ |
6199 #define _FILE_OFFSET_BITS 64 | 5655 #define _FILE_OFFSET_BITS 64 |
6200 #include <sys/types.h> | 5656 #include <sys/types.h> |
6201 /* Check that off_t can represent 2**63 - 1 correctly. | 5657 /* Check that off_t can represent 2**63 - 1 correctly. |
6202 We can't simply define LARGE_OFF_T to be 9223372036854775807, | 5658 We can't simply define LARGE_OFF_T to be 9223372036854775807, |
6212 | 5668 |
6213 ; | 5669 ; |
6214 return 0; | 5670 return 0; |
6215 } | 5671 } |
6216 _ACEOF | 5672 _ACEOF |
6217 rm -f conftest.$ac_objext | 5673 if ac_fn_c_try_compile "$LINENO"; then : |
6218 if { (ac_try="$ac_compile" | |
6219 case "(($ac_try" in | |
6220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6221 *) ac_try_echo=$ac_try;; | |
6222 esac | |
6223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6224 $as_echo "$ac_try_echo") >&5 | |
6225 (eval "$ac_compile") 2>conftest.er1 | |
6226 ac_status=$? | |
6227 grep -v '^ *+' conftest.er1 >conftest.err | |
6228 rm -f conftest.er1 | |
6229 cat conftest.err >&5 | |
6230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6231 (exit $ac_status); } && { | |
6232 test -z "$ac_c_werror_flag" || | |
6233 test ! -s conftest.err | |
6234 } && test -s conftest.$ac_objext; then | |
6235 ac_cv_sys_file_offset_bits=64; break | 5674 ac_cv_sys_file_offset_bits=64; break |
6236 else | 5675 fi |
6237 $as_echo "$as_me: failed program was:" >&5 | |
6238 sed 's/^/| /' conftest.$ac_ext >&5 | |
6239 | |
6240 | |
6241 fi | |
6242 | |
6243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 5676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6244 ac_cv_sys_file_offset_bits=unknown | 5677 ac_cv_sys_file_offset_bits=unknown |
6245 break | 5678 break |
6246 done | 5679 done |
6247 fi | 5680 fi |
6248 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | 5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 |
6249 $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | 5682 $as_echo "$ac_cv_sys_file_offset_bits" >&6; } |
6250 case $ac_cv_sys_file_offset_bits in #( | 5683 case $ac_cv_sys_file_offset_bits in #( |
6251 no | unknown) ;; | 5684 no | unknown) ;; |
6252 *) | 5685 *) |
6253 cat >>confdefs.h <<_ACEOF | 5686 cat >>confdefs.h <<_ACEOF |
6255 _ACEOF | 5688 _ACEOF |
6256 ;; | 5689 ;; |
6257 esac | 5690 esac |
6258 rm -rf conftest* | 5691 rm -rf conftest* |
6259 if test $ac_cv_sys_file_offset_bits = unknown; then | 5692 if test $ac_cv_sys_file_offset_bits = unknown; then |
6260 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | 5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 |
6261 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | 5694 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } |
6262 if test "${ac_cv_sys_large_files+set}" = set; then | 5695 if test "${ac_cv_sys_large_files+set}" = set; then : |
6263 $as_echo_n "(cached) " >&6 | 5696 $as_echo_n "(cached) " >&6 |
6264 else | 5697 else |
6265 while :; do | 5698 while :; do |
6266 cat >conftest.$ac_ext <<_ACEOF | 5699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6267 /* confdefs.h. */ | |
6268 _ACEOF | |
6269 cat confdefs.h >>conftest.$ac_ext | |
6270 cat >>conftest.$ac_ext <<_ACEOF | |
6271 /* end confdefs.h. */ | 5700 /* end confdefs.h. */ |
6272 #include <sys/types.h> | 5701 #include <sys/types.h> |
6273 /* Check that off_t can represent 2**63 - 1 correctly. | 5702 /* Check that off_t can represent 2**63 - 1 correctly. |
6274 We can't simply define LARGE_OFF_T to be 9223372036854775807, | 5703 We can't simply define LARGE_OFF_T to be 9223372036854775807, |
6275 since some C++ compilers masquerading as C compilers | 5704 since some C++ compilers masquerading as C compilers |
6284 | 5713 |
6285 ; | 5714 ; |
6286 return 0; | 5715 return 0; |
6287 } | 5716 } |
6288 _ACEOF | 5717 _ACEOF |
6289 rm -f conftest.$ac_objext | 5718 if ac_fn_c_try_compile "$LINENO"; then : |
6290 if { (ac_try="$ac_compile" | |
6291 case "(($ac_try" in | |
6292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6293 *) ac_try_echo=$ac_try;; | |
6294 esac | |
6295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6296 $as_echo "$ac_try_echo") >&5 | |
6297 (eval "$ac_compile") 2>conftest.er1 | |
6298 ac_status=$? | |
6299 grep -v '^ *+' conftest.er1 >conftest.err | |
6300 rm -f conftest.er1 | |
6301 cat conftest.err >&5 | |
6302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6303 (exit $ac_status); } && { | |
6304 test -z "$ac_c_werror_flag" || | |
6305 test ! -s conftest.err | |
6306 } && test -s conftest.$ac_objext; then | |
6307 ac_cv_sys_large_files=no; break | 5719 ac_cv_sys_large_files=no; break |
6308 else | 5720 fi |
6309 $as_echo "$as_me: failed program was:" >&5 | |
6310 sed 's/^/| /' conftest.$ac_ext >&5 | |
6311 | |
6312 | |
6313 fi | |
6314 | |
6315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 5721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6316 cat >conftest.$ac_ext <<_ACEOF | 5722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6317 /* confdefs.h. */ | |
6318 _ACEOF | |
6319 cat confdefs.h >>conftest.$ac_ext | |
6320 cat >>conftest.$ac_ext <<_ACEOF | |
6321 /* end confdefs.h. */ | 5723 /* end confdefs.h. */ |
6322 #define _LARGE_FILES 1 | 5724 #define _LARGE_FILES 1 |
6323 #include <sys/types.h> | 5725 #include <sys/types.h> |
6324 /* Check that off_t can represent 2**63 - 1 correctly. | 5726 /* Check that off_t can represent 2**63 - 1 correctly. |
6325 We can't simply define LARGE_OFF_T to be 9223372036854775807, | 5727 We can't simply define LARGE_OFF_T to be 9223372036854775807, |
6335 | 5737 |
6336 ; | 5738 ; |
6337 return 0; | 5739 return 0; |
6338 } | 5740 } |
6339 _ACEOF | 5741 _ACEOF |
6340 rm -f conftest.$ac_objext | 5742 if ac_fn_c_try_compile "$LINENO"; then : |
6341 if { (ac_try="$ac_compile" | |
6342 case "(($ac_try" in | |
6343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6344 *) ac_try_echo=$ac_try;; | |
6345 esac | |
6346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6347 $as_echo "$ac_try_echo") >&5 | |
6348 (eval "$ac_compile") 2>conftest.er1 | |
6349 ac_status=$? | |
6350 grep -v '^ *+' conftest.er1 >conftest.err | |
6351 rm -f conftest.er1 | |
6352 cat conftest.err >&5 | |
6353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6354 (exit $ac_status); } && { | |
6355 test -z "$ac_c_werror_flag" || | |
6356 test ! -s conftest.err | |
6357 } && test -s conftest.$ac_objext; then | |
6358 ac_cv_sys_large_files=1; break | 5743 ac_cv_sys_large_files=1; break |
6359 else | 5744 fi |
6360 $as_echo "$as_me: failed program was:" >&5 | |
6361 sed 's/^/| /' conftest.$ac_ext >&5 | |
6362 | |
6363 | |
6364 fi | |
6365 | |
6366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 5745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6367 ac_cv_sys_large_files=unknown | 5746 ac_cv_sys_large_files=unknown |
6368 break | 5747 break |
6369 done | 5748 done |
6370 fi | 5749 fi |
6371 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | 5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 |
6372 $as_echo "$ac_cv_sys_large_files" >&6; } | 5751 $as_echo "$ac_cv_sys_large_files" >&6; } |
6373 case $ac_cv_sys_large_files in #( | 5752 case $ac_cv_sys_large_files in #( |
6374 no | unknown) ;; | 5753 no | unknown) ;; |
6375 *) | 5754 *) |
6376 cat >>confdefs.h <<_ACEOF | 5755 cat >>confdefs.h <<_ACEOF |
6412 else | 5791 else |
6413 | 5792 |
6414 ## Some platforms don't use any of these files, so it is not | 5793 ## Some platforms don't use any of these files, so it is not |
6415 ## appropriate to put this test outside the if block. | 5794 ## appropriate to put this test outside the if block. |
6416 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \ | 5795 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \ |
6417 { { $as_echo "$as_me:$LINENO: error: crt*.o not found in specified location." >&5 | 5796 as_fn_error "crt*.o not found in specified location." "$LINENO" 5 |
6418 $as_echo "$as_me: error: crt*.o not found in specified location." >&2;} | 5797 |
6419 { (exit 1); exit 1; }; } | 5798 fi |
6420 | 5799 |
6421 fi | 5800 |
5801 | |
5802 LIB_MATH=-lm | |
5803 LIB_STANDARD= | |
5804 START_FILES= | |
5805 | |
5806 case $opsys in | |
5807 cygwin ) | |
5808 LIB_MATH= | |
5809 START_FILES='ecrt0.o' | |
5810 ;; | |
5811 darwin ) | |
5812 ## Adding -lm confuses the dynamic linker, so omit it. | |
5813 LIB_MATH= | |
5814 START_FILES='pre-crt0.o' | |
5815 ;; | |
5816 freebsd ) | |
5817 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o' | |
5818 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o' | |
5819 ;; | |
5820 gnu-linux | gnu-kfreebsd ) | |
5821 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o' | |
5822 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o' | |
5823 ;; | |
5824 hpux10-20 | hpux11 ) | |
5825 LIB_STANDARD=-lc | |
5826 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o' | |
5827 ;; | |
5828 netbsd | openbsd ) | |
5829 if test -f $(CRT_DIR)/crti.o; then | |
5830 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o' | |
5831 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o' | |
5832 else | |
5833 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o' | |
5834 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o' | |
5835 fi | |
5836 ;; | |
5837 esac | |
6422 | 5838 |
6423 | 5839 |
6424 | 5840 |
6425 | 5841 |
6426 | 5842 |
6427 | 5843 |
6428 | 5844 |
6429 if test "${with_sound}" != "no"; then | 5845 if test "${with_sound}" != "no"; then |
6430 # Sound support for GNU/Linux and the free BSDs. | 5846 # Sound support for GNU/Linux and the free BSDs. |
6431 | 5847 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h |
6432 | 5848 do : |
6433 | 5849 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6434 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h | 5850 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
6435 do | 5851 eval as_val=\$$as_ac_Header |
6436 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 5852 if test "x$as_val" = x""yes; then : |
6437 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
6438 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6439 $as_echo_n "checking for $ac_header... " >&6; } | |
6440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
6441 $as_echo_n "(cached) " >&6 | |
6442 fi | |
6443 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
6444 $as_echo "$as_val"'` | |
6445 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6446 $as_echo "$ac_res" >&6; } | |
6447 else | |
6448 # Is the header compilable? | |
6449 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6450 $as_echo_n "checking $ac_header usability... " >&6; } | |
6451 cat >conftest.$ac_ext <<_ACEOF | |
6452 /* confdefs.h. */ | |
6453 _ACEOF | |
6454 cat confdefs.h >>conftest.$ac_ext | |
6455 cat >>conftest.$ac_ext <<_ACEOF | |
6456 /* end confdefs.h. */ | |
6457 $ac_includes_default | |
6458 #include <$ac_header> | |
6459 _ACEOF | |
6460 rm -f conftest.$ac_objext | |
6461 if { (ac_try="$ac_compile" | |
6462 case "(($ac_try" in | |
6463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6464 *) ac_try_echo=$ac_try;; | |
6465 esac | |
6466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6467 $as_echo "$ac_try_echo") >&5 | |
6468 (eval "$ac_compile") 2>conftest.er1 | |
6469 ac_status=$? | |
6470 grep -v '^ *+' conftest.er1 >conftest.err | |
6471 rm -f conftest.er1 | |
6472 cat conftest.err >&5 | |
6473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6474 (exit $ac_status); } && { | |
6475 test -z "$ac_c_werror_flag" || | |
6476 test ! -s conftest.err | |
6477 } && test -s conftest.$ac_objext; then | |
6478 ac_header_compiler=yes | |
6479 else | |
6480 $as_echo "$as_me: failed program was:" >&5 | |
6481 sed 's/^/| /' conftest.$ac_ext >&5 | |
6482 | |
6483 ac_header_compiler=no | |
6484 fi | |
6485 | |
6486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6487 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6488 $as_echo "$ac_header_compiler" >&6; } | |
6489 | |
6490 # Is the header present? | |
6491 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6492 $as_echo_n "checking $ac_header presence... " >&6; } | |
6493 cat >conftest.$ac_ext <<_ACEOF | |
6494 /* confdefs.h. */ | |
6495 _ACEOF | |
6496 cat confdefs.h >>conftest.$ac_ext | |
6497 cat >>conftest.$ac_ext <<_ACEOF | |
6498 /* end confdefs.h. */ | |
6499 #include <$ac_header> | |
6500 _ACEOF | |
6501 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
6502 case "(($ac_try" in | |
6503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6504 *) ac_try_echo=$ac_try;; | |
6505 esac | |
6506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6507 $as_echo "$ac_try_echo") >&5 | |
6508 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
6509 ac_status=$? | |
6510 grep -v '^ *+' conftest.er1 >conftest.err | |
6511 rm -f conftest.er1 | |
6512 cat conftest.err >&5 | |
6513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6514 (exit $ac_status); } >/dev/null && { | |
6515 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6516 test ! -s conftest.err | |
6517 }; then | |
6518 ac_header_preproc=yes | |
6519 else | |
6520 $as_echo "$as_me: failed program was:" >&5 | |
6521 sed 's/^/| /' conftest.$ac_ext >&5 | |
6522 | |
6523 ac_header_preproc=no | |
6524 fi | |
6525 | |
6526 rm -f conftest.err conftest.$ac_ext | |
6527 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6528 $as_echo "$ac_header_preproc" >&6; } | |
6529 | |
6530 # So? What about this header? | |
6531 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6532 yes:no: ) | |
6533 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6534 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6535 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6536 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6537 ac_header_preproc=yes | |
6538 ;; | |
6539 no:yes:* ) | |
6540 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6541 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6542 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6543 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6544 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6545 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6546 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6547 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6548 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6549 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6550 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6551 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6552 | |
6553 ;; | |
6554 esac | |
6555 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6556 $as_echo_n "checking for $ac_header... " >&6; } | |
6557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
6558 $as_echo_n "(cached) " >&6 | |
6559 else | |
6560 eval "$as_ac_Header=\$ac_header_preproc" | |
6561 fi | |
6562 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
6563 $as_echo "$as_val"'` | |
6564 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6565 $as_echo "$ac_res" >&6; } | |
6566 | |
6567 fi | |
6568 if test `eval 'as_val=${'$as_ac_Header'} | |
6569 $as_echo "$as_val"'` = yes; then | |
6570 cat >>confdefs.h <<_ACEOF | 5853 cat >>confdefs.h <<_ACEOF |
6571 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 5854 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
6572 _ACEOF | 5855 _ACEOF |
6573 | 5856 |
6574 fi | 5857 fi |
6575 | 5858 |
6576 done | 5859 done |
6577 | 5860 |
6578 # Emulation library used on NetBSD. | 5861 # Emulation library used on NetBSD. |
6579 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5 | 5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5 |
6580 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; } | 5863 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; } |
6581 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then | 5864 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then : |
6582 $as_echo_n "(cached) " >&6 | 5865 $as_echo_n "(cached) " >&6 |
6583 else | 5866 else |
6584 ac_check_lib_save_LIBS=$LIBS | 5867 ac_check_lib_save_LIBS=$LIBS |
6585 LIBS="-lossaudio $LIBS" | 5868 LIBS="-lossaudio $LIBS" |
6586 cat >conftest.$ac_ext <<_ACEOF | 5869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6587 /* confdefs.h. */ | |
6588 _ACEOF | |
6589 cat confdefs.h >>conftest.$ac_ext | |
6590 cat >>conftest.$ac_ext <<_ACEOF | |
6591 /* end confdefs.h. */ | 5870 /* end confdefs.h. */ |
6592 | 5871 |
6593 /* Override any GCC internal prototype to avoid an error. | 5872 /* Override any GCC internal prototype to avoid an error. |
6594 Use char because int might match the return type of a GCC | 5873 Use char because int might match the return type of a GCC |
6595 builtin and then its argument prototype would still apply. */ | 5874 builtin and then its argument prototype would still apply. */ |
6603 return _oss_ioctl (); | 5882 return _oss_ioctl (); |
6604 ; | 5883 ; |
6605 return 0; | 5884 return 0; |
6606 } | 5885 } |
6607 _ACEOF | 5886 _ACEOF |
6608 rm -f conftest.$ac_objext conftest$ac_exeext | 5887 if ac_fn_c_try_link "$LINENO"; then : |
6609 if { (ac_try="$ac_link" | |
6610 case "(($ac_try" in | |
6611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6612 *) ac_try_echo=$ac_try;; | |
6613 esac | |
6614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6615 $as_echo "$ac_try_echo") >&5 | |
6616 (eval "$ac_link") 2>conftest.er1 | |
6617 ac_status=$? | |
6618 grep -v '^ *+' conftest.er1 >conftest.err | |
6619 rm -f conftest.er1 | |
6620 cat conftest.err >&5 | |
6621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6622 (exit $ac_status); } && { | |
6623 test -z "$ac_c_werror_flag" || | |
6624 test ! -s conftest.err | |
6625 } && test -s conftest$ac_exeext && { | |
6626 test "$cross_compiling" = yes || | |
6627 $as_test_x conftest$ac_exeext | |
6628 }; then | |
6629 ac_cv_lib_ossaudio__oss_ioctl=yes | 5888 ac_cv_lib_ossaudio__oss_ioctl=yes |
6630 else | 5889 else |
6631 $as_echo "$as_me: failed program was:" >&5 | 5890 ac_cv_lib_ossaudio__oss_ioctl=no |
6632 sed 's/^/| /' conftest.$ac_ext >&5 | 5891 fi |
6633 | 5892 rm -f core conftest.err conftest.$ac_objext \ |
6634 ac_cv_lib_ossaudio__oss_ioctl=no | 5893 conftest$ac_exeext conftest.$ac_ext |
6635 fi | |
6636 | |
6637 rm -rf conftest.dSYM | |
6638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
6639 conftest$ac_exeext conftest.$ac_ext | |
6640 LIBS=$ac_check_lib_save_LIBS | 5894 LIBS=$ac_check_lib_save_LIBS |
6641 fi | 5895 fi |
6642 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 | 5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 |
6643 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; } | 5897 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; } |
6644 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then | 5898 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then : |
6645 LIBSOUND=-lossaudio | 5899 LIBSOUND=-lossaudio |
6646 else | 5900 else |
6647 LIBSOUND= | 5901 LIBSOUND= |
6648 fi | 5902 fi |
6649 | 5903 |
6654 | 5908 |
6655 succeeded=no | 5909 succeeded=no |
6656 | 5910 |
6657 # Extract the first word of "pkg-config", so it can be a program name with args. | 5911 # Extract the first word of "pkg-config", so it can be a program name with args. |
6658 set dummy pkg-config; ac_word=$2 | 5912 set dummy pkg-config; ac_word=$2 |
6659 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | 5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6660 $as_echo_n "checking for $ac_word... " >&6; } | 5914 $as_echo_n "checking for $ac_word... " >&6; } |
6661 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | 5915 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
6662 $as_echo_n "(cached) " >&6 | 5916 $as_echo_n "(cached) " >&6 |
6663 else | 5917 else |
6664 case $PKG_CONFIG in | 5918 case $PKG_CONFIG in |
6665 [\\/]* | ?:[\\/]*) | 5919 [\\/]* | ?:[\\/]*) |
6666 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | 5920 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
6669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 5923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6670 for as_dir in $PATH | 5924 for as_dir in $PATH |
6671 do | 5925 do |
6672 IFS=$as_save_IFS | 5926 IFS=$as_save_IFS |
6673 test -z "$as_dir" && as_dir=. | 5927 test -z "$as_dir" && as_dir=. |
6674 for ac_exec_ext in '' $ac_executable_extensions; do | 5928 for ac_exec_ext in '' $ac_executable_extensions; do |
6675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 5929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
6676 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | 5930 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
6677 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 5931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6678 break 2 | 5932 break 2 |
6679 fi | 5933 fi |
6680 done | 5934 done |
6681 done | 5935 done |
6682 IFS=$as_save_IFS | 5936 IFS=$as_save_IFS |
6683 | 5937 |
6684 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | 5938 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
6685 ;; | 5939 ;; |
6686 esac | 5940 esac |
6687 fi | 5941 fi |
6688 PKG_CONFIG=$ac_cv_path_PKG_CONFIG | 5942 PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
6689 if test -n "$PKG_CONFIG"; then | 5943 if test -n "$PKG_CONFIG"; then |
6690 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | 5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
6691 $as_echo "$PKG_CONFIG" >&6; } | 5945 $as_echo "$PKG_CONFIG" >&6; } |
6692 else | 5946 else |
6693 { $as_echo "$as_me:$LINENO: result: no" >&5 | 5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6694 $as_echo "no" >&6; } | 5948 $as_echo "no" >&6; } |
6695 fi | 5949 fi |
6696 | 5950 |
6697 | 5951 |
6698 | 5952 |
6699 if test "$PKG_CONFIG" = "no" ; then | 5953 if test "$PKG_CONFIG" = "no" ; then |
6700 HAVE_ALSA=no | 5954 HAVE_ALSA=no |
6701 else | 5955 else |
6702 PKG_CONFIG_MIN_VERSION=0.9.0 | 5956 PKG_CONFIG_MIN_VERSION=0.9.0 |
6703 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | 5957 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then |
6704 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5 | 5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5 |
6705 $as_echo_n "checking for $ALSA_MODULES... " >&6; } | 5959 $as_echo_n "checking for $ALSA_MODULES... " >&6; } |
6706 | 5960 |
6707 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then | 5961 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then |
6708 { $as_echo "$as_me:$LINENO: result: yes" >&5 | 5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
6709 $as_echo "yes" >&6; } | 5963 $as_echo "yes" >&6; } |
6710 succeeded=yes | 5964 succeeded=yes |
6711 | 5965 |
6712 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5 | 5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5 |
6713 $as_echo_n "checking ALSA_CFLAGS... " >&6; } | 5967 $as_echo_n "checking ALSA_CFLAGS... " >&6; } |
6714 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'` | 5968 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'` |
6715 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5 | 5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5 |
6716 $as_echo "$ALSA_CFLAGS" >&6; } | 5970 $as_echo "$ALSA_CFLAGS" >&6; } |
6717 | 5971 |
6718 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5 | 5972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5 |
6719 $as_echo_n "checking ALSA_LIBS... " >&6; } | 5973 $as_echo_n "checking ALSA_LIBS... " >&6; } |
6720 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'` | 5974 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'` |
6721 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5 | 5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5 |
6722 $as_echo "$ALSA_LIBS" >&6; } | 5976 $as_echo "$ALSA_LIBS" >&6; } |
6723 else | 5977 else |
6724 { $as_echo "$as_me:$LINENO: result: no" >&5 | 5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6725 $as_echo "no" >&6; } | 5979 $as_echo "no" >&6; } |
6726 ALSA_CFLAGS="" | 5980 ALSA_CFLAGS="" |
6727 ALSA_LIBS="" | 5981 ALSA_LIBS="" |
6728 ## If we have a custom action on failure, don't print errors, but | 5982 ## If we have a custom action on failure, don't print errors, but |
6729 ## do set a variable so people can do so. | 5983 ## do set a variable so people can do so. |
6748 if test $HAVE_ALSA = yes; then | 6002 if test $HAVE_ALSA = yes; then |
6749 SAVE_CFLAGS="$CFLAGS" | 6003 SAVE_CFLAGS="$CFLAGS" |
6750 SAVE_LDFLAGS="$LDFLAGS" | 6004 SAVE_LDFLAGS="$LDFLAGS" |
6751 CFLAGS="$ALSA_CFLAGS $CFLAGS" | 6005 CFLAGS="$ALSA_CFLAGS $CFLAGS" |
6752 LDFLAGS="$ALSA_LIBS $LDFLAGS" | 6006 LDFLAGS="$ALSA_LIBS $LDFLAGS" |
6753 cat >conftest.$ac_ext <<_ACEOF | 6007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6754 /* confdefs.h. */ | |
6755 _ACEOF | |
6756 cat confdefs.h >>conftest.$ac_ext | |
6757 cat >>conftest.$ac_ext <<_ACEOF | |
6758 /* end confdefs.h. */ | 6008 /* end confdefs.h. */ |
6759 #include <asoundlib.h> | 6009 #include <asoundlib.h> |
6760 int | 6010 int |
6761 main () | 6011 main () |
6762 { | 6012 { |
6763 snd_lib_error_set_handler (0); | 6013 snd_lib_error_set_handler (0); |
6764 ; | 6014 ; |
6765 return 0; | 6015 return 0; |
6766 } | 6016 } |
6767 _ACEOF | 6017 _ACEOF |
6768 rm -f conftest.$ac_objext | 6018 if ac_fn_c_try_compile "$LINENO"; then : |
6769 if { (ac_try="$ac_compile" | |
6770 case "(($ac_try" in | |
6771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6772 *) ac_try_echo=$ac_try;; | |
6773 esac | |
6774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6775 $as_echo "$ac_try_echo") >&5 | |
6776 (eval "$ac_compile") 2>conftest.er1 | |
6777 ac_status=$? | |
6778 grep -v '^ *+' conftest.er1 >conftest.err | |
6779 rm -f conftest.er1 | |
6780 cat conftest.err >&5 | |
6781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6782 (exit $ac_status); } && { | |
6783 test -z "$ac_c_werror_flag" || | |
6784 test ! -s conftest.err | |
6785 } && test -s conftest.$ac_objext; then | |
6786 emacs_alsa_normal=yes | 6019 emacs_alsa_normal=yes |
6787 else | 6020 else |
6788 $as_echo "$as_me: failed program was:" >&5 | 6021 emacs_alsa_normal=no |
6789 sed 's/^/| /' conftest.$ac_ext >&5 | 6022 fi |
6790 | |
6791 emacs_alsa_normal=no | |
6792 fi | |
6793 | |
6794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 6023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6795 if test "$emacs_alsa_normal" != yes; then | 6024 if test "$emacs_alsa_normal" != yes; then |
6796 cat >conftest.$ac_ext <<_ACEOF | 6025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6797 /* confdefs.h. */ | |
6798 _ACEOF | |
6799 cat confdefs.h >>conftest.$ac_ext | |
6800 cat >>conftest.$ac_ext <<_ACEOF | |
6801 /* end confdefs.h. */ | 6026 /* end confdefs.h. */ |
6802 #include <alsa/asoundlib.h> | 6027 #include <alsa/asoundlib.h> |
6803 int | 6028 int |
6804 main () | 6029 main () |
6805 { | 6030 { |
6806 snd_lib_error_set_handler (0); | 6031 snd_lib_error_set_handler (0); |
6807 ; | 6032 ; |
6808 return 0; | 6033 return 0; |
6809 } | 6034 } |
6810 _ACEOF | 6035 _ACEOF |
6811 rm -f conftest.$ac_objext | 6036 if ac_fn_c_try_compile "$LINENO"; then : |
6812 if { (ac_try="$ac_compile" | |
6813 case "(($ac_try" in | |
6814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6815 *) ac_try_echo=$ac_try;; | |
6816 esac | |
6817 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6818 $as_echo "$ac_try_echo") >&5 | |
6819 (eval "$ac_compile") 2>conftest.er1 | |
6820 ac_status=$? | |
6821 grep -v '^ *+' conftest.er1 >conftest.err | |
6822 rm -f conftest.er1 | |
6823 cat conftest.err >&5 | |
6824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6825 (exit $ac_status); } && { | |
6826 test -z "$ac_c_werror_flag" || | |
6827 test ! -s conftest.err | |
6828 } && test -s conftest.$ac_objext; then | |
6829 emacs_alsa_subdir=yes | 6037 emacs_alsa_subdir=yes |
6830 else | 6038 else |
6831 $as_echo "$as_me: failed program was:" >&5 | 6039 emacs_alsa_subdir=no |
6832 sed 's/^/| /' conftest.$ac_ext >&5 | 6040 fi |
6833 | |
6834 emacs_alsa_subdir=no | |
6835 fi | |
6836 | |
6837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 6041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6838 if test "$emacs_alsa_subdir" != yes; then | 6042 if test "$emacs_alsa_subdir" != yes; then |
6839 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5 | 6043 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5 |
6840 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;} | |
6841 { (exit 1); exit 1; }; } | |
6842 fi | 6044 fi |
6843 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE" | 6045 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE" |
6844 fi | 6046 fi |
6845 | 6047 |
6846 CFLAGS="$SAVE_CFLAGS" | 6048 CFLAGS="$SAVE_CFLAGS" |
6847 LDFLAGS="$SAVE_LDFLAGS" | 6049 LDFLAGS="$SAVE_LDFLAGS" |
6848 LIBSOUND="$LIBSOUND $ALSA_LIBS" | 6050 LIBSOUND="$LIBSOUND $ALSA_LIBS" |
6849 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS" | 6051 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS" |
6850 | 6052 |
6851 cat >>confdefs.h <<\_ACEOF | 6053 $as_echo "#define HAVE_ALSA 1" >>confdefs.h |
6852 #define HAVE_ALSA 1 | 6054 |
6853 _ACEOF | 6055 fi |
6854 | 6056 |
6855 fi | 6057 fi |
6856 | |
6857 fi | |
6858 | |
6859 | |
6860 | |
6861 | |
6862 | |
6863 | |
6864 | |
6865 | |
6866 | |
6867 | |
6868 | |
6869 | |
6870 | |
6871 | |
6872 | |
6873 | |
6874 | |
6875 | |
6876 | |
6877 | |
6878 | |
6879 | |
6880 | |
6881 | |
6882 | |
6883 | 6058 |
6884 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \ | 6059 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \ |
6885 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ | 6060 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ |
6886 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \ | 6061 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \ |
6887 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \ | 6062 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \ |
6888 sys/utsname.h pwd.h utmp.h | 6063 sys/utsname.h pwd.h utmp.h |
6889 do | 6064 do : |
6890 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 6065 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6891 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 6066 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
6892 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | 6067 eval as_val=\$$as_ac_Header |
6893 $as_echo_n "checking for $ac_header... " >&6; } | 6068 if test "x$as_val" = x""yes; then : |
6894 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
6895 $as_echo_n "(cached) " >&6 | |
6896 fi | |
6897 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
6898 $as_echo "$as_val"'` | |
6899 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6900 $as_echo "$ac_res" >&6; } | |
6901 else | |
6902 # Is the header compilable? | |
6903 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6904 $as_echo_n "checking $ac_header usability... " >&6; } | |
6905 cat >conftest.$ac_ext <<_ACEOF | |
6906 /* confdefs.h. */ | |
6907 _ACEOF | |
6908 cat confdefs.h >>conftest.$ac_ext | |
6909 cat >>conftest.$ac_ext <<_ACEOF | |
6910 /* end confdefs.h. */ | |
6911 $ac_includes_default | |
6912 #include <$ac_header> | |
6913 _ACEOF | |
6914 rm -f conftest.$ac_objext | |
6915 if { (ac_try="$ac_compile" | |
6916 case "(($ac_try" in | |
6917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6918 *) ac_try_echo=$ac_try;; | |
6919 esac | |
6920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6921 $as_echo "$ac_try_echo") >&5 | |
6922 (eval "$ac_compile") 2>conftest.er1 | |
6923 ac_status=$? | |
6924 grep -v '^ *+' conftest.er1 >conftest.err | |
6925 rm -f conftest.er1 | |
6926 cat conftest.err >&5 | |
6927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6928 (exit $ac_status); } && { | |
6929 test -z "$ac_c_werror_flag" || | |
6930 test ! -s conftest.err | |
6931 } && test -s conftest.$ac_objext; then | |
6932 ac_header_compiler=yes | |
6933 else | |
6934 $as_echo "$as_me: failed program was:" >&5 | |
6935 sed 's/^/| /' conftest.$ac_ext >&5 | |
6936 | |
6937 ac_header_compiler=no | |
6938 fi | |
6939 | |
6940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6941 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6942 $as_echo "$ac_header_compiler" >&6; } | |
6943 | |
6944 # Is the header present? | |
6945 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6946 $as_echo_n "checking $ac_header presence... " >&6; } | |
6947 cat >conftest.$ac_ext <<_ACEOF | |
6948 /* confdefs.h. */ | |
6949 _ACEOF | |
6950 cat confdefs.h >>conftest.$ac_ext | |
6951 cat >>conftest.$ac_ext <<_ACEOF | |
6952 /* end confdefs.h. */ | |
6953 #include <$ac_header> | |
6954 _ACEOF | |
6955 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
6956 case "(($ac_try" in | |
6957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6958 *) ac_try_echo=$ac_try;; | |
6959 esac | |
6960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6961 $as_echo "$ac_try_echo") >&5 | |
6962 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
6963 ac_status=$? | |
6964 grep -v '^ *+' conftest.er1 >conftest.err | |
6965 rm -f conftest.er1 | |
6966 cat conftest.err >&5 | |
6967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6968 (exit $ac_status); } >/dev/null && { | |
6969 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6970 test ! -s conftest.err | |
6971 }; then | |
6972 ac_header_preproc=yes | |
6973 else | |
6974 $as_echo "$as_me: failed program was:" >&5 | |
6975 sed 's/^/| /' conftest.$ac_ext >&5 | |
6976 | |
6977 ac_header_preproc=no | |
6978 fi | |
6979 | |
6980 rm -f conftest.err conftest.$ac_ext | |
6981 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6982 $as_echo "$ac_header_preproc" >&6; } | |
6983 | |
6984 # So? What about this header? | |
6985 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6986 yes:no: ) | |
6987 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6988 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6989 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6990 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6991 ac_header_preproc=yes | |
6992 ;; | |
6993 no:yes:* ) | |
6994 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6995 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6996 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6997 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6998 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6999 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7000 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7001 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7002 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7003 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7004 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7005 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7006 | |
7007 ;; | |
7008 esac | |
7009 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7010 $as_echo_n "checking for $ac_header... " >&6; } | |
7011 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
7012 $as_echo_n "(cached) " >&6 | |
7013 else | |
7014 eval "$as_ac_Header=\$ac_header_preproc" | |
7015 fi | |
7016 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
7017 $as_echo "$as_val"'` | |
7018 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7019 $as_echo "$ac_res" >&6; } | |
7020 | |
7021 fi | |
7022 if test `eval 'as_val=${'$as_ac_Header'} | |
7023 $as_echo "$as_val"'` = yes; then | |
7024 cat >>confdefs.h <<_ACEOF | 6069 cat >>confdefs.h <<_ACEOF |
7025 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 6070 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
7026 _ACEOF | 6071 _ACEOF |
7027 | 6072 |
7028 fi | 6073 fi |
7029 | 6074 |
7030 done | 6075 done |
7031 | 6076 |
7032 | 6077 |
7033 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5 | 6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5 |
7034 $as_echo_n "checking if personality LINUX32 can be set... " >&6; } | 6079 $as_echo_n "checking if personality LINUX32 can be set... " >&6; } |
7035 cat >conftest.$ac_ext <<_ACEOF | 6080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7036 /* confdefs.h. */ | |
7037 _ACEOF | |
7038 cat confdefs.h >>conftest.$ac_ext | |
7039 cat >>conftest.$ac_ext <<_ACEOF | |
7040 /* end confdefs.h. */ | 6081 /* end confdefs.h. */ |
7041 #include <sys/personality.h> | 6082 #include <sys/personality.h> |
7042 int | 6083 int |
7043 main () | 6084 main () |
7044 { | 6085 { |
7045 personality (PER_LINUX32) | 6086 personality (PER_LINUX32) |
7046 ; | 6087 ; |
7047 return 0; | 6088 return 0; |
7048 } | 6089 } |
7049 _ACEOF | 6090 _ACEOF |
7050 rm -f conftest.$ac_objext | 6091 if ac_fn_c_try_compile "$LINENO"; then : |
7051 if { (ac_try="$ac_compile" | |
7052 case "(($ac_try" in | |
7053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7054 *) ac_try_echo=$ac_try;; | |
7055 esac | |
7056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7057 $as_echo "$ac_try_echo") >&5 | |
7058 (eval "$ac_compile") 2>conftest.er1 | |
7059 ac_status=$? | |
7060 grep -v '^ *+' conftest.er1 >conftest.err | |
7061 rm -f conftest.er1 | |
7062 cat conftest.err >&5 | |
7063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7064 (exit $ac_status); } && { | |
7065 test -z "$ac_c_werror_flag" || | |
7066 test ! -s conftest.err | |
7067 } && test -s conftest.$ac_objext; then | |
7068 emacs_cv_personality_linux32=yes | 6092 emacs_cv_personality_linux32=yes |
7069 else | 6093 else |
7070 $as_echo "$as_me: failed program was:" >&5 | 6094 emacs_cv_personality_linux32=no |
7071 sed 's/^/| /' conftest.$ac_ext >&5 | 6095 fi |
7072 | |
7073 emacs_cv_personality_linux32=no | |
7074 fi | |
7075 | |
7076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 6096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7077 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5 | 6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5 |
7078 $as_echo "$emacs_cv_personality_linux32" >&6; } | 6098 $as_echo "$emacs_cv_personality_linux32" >&6; } |
7079 | 6099 |
7080 if test $emacs_cv_personality_linux32 = yes; then | 6100 if test $emacs_cv_personality_linux32 = yes; then |
7081 | 6101 |
7082 cat >>confdefs.h <<\_ACEOF | 6102 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h |
7083 #define HAVE_PERSONALITY_LINUX32 1 | 6103 |
7084 _ACEOF | 6104 fi |
7085 | |
7086 fi | |
7087 | |
7088 | 6105 |
7089 for ac_header in term.h | 6106 for ac_header in term.h |
7090 do | 6107 do : |
7091 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 6108 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h" |
7092 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | 6109 if test "x$ac_cv_header_term_h" = x""yes; then : |
7093 $as_echo_n "checking for $ac_header... " >&6; } | 6110 cat >>confdefs.h <<_ACEOF |
7094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 6111 #define HAVE_TERM_H 1 |
6112 _ACEOF | |
6113 | |
6114 fi | |
6115 | |
6116 done | |
6117 | |
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
6119 $as_echo_n "checking for ANSI C header files... " >&6; } | |
6120 if test "${ac_cv_header_stdc+set}" = set; then : | |
7095 $as_echo_n "(cached) " >&6 | 6121 $as_echo_n "(cached) " >&6 |
7096 else | 6122 else |
7097 cat >conftest.$ac_ext <<_ACEOF | 6123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7098 /* confdefs.h. */ | |
7099 _ACEOF | |
7100 cat confdefs.h >>conftest.$ac_ext | |
7101 cat >>conftest.$ac_ext <<_ACEOF | |
7102 /* end confdefs.h. */ | |
7103 #include <$ac_header> | |
7104 _ACEOF | |
7105 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
7106 case "(($ac_try" in | |
7107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7108 *) ac_try_echo=$ac_try;; | |
7109 esac | |
7110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7111 $as_echo "$ac_try_echo") >&5 | |
7112 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
7113 ac_status=$? | |
7114 grep -v '^ *+' conftest.er1 >conftest.err | |
7115 rm -f conftest.er1 | |
7116 cat conftest.err >&5 | |
7117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7118 (exit $ac_status); } >/dev/null && { | |
7119 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7120 test ! -s conftest.err | |
7121 }; then | |
7122 eval "$as_ac_Header=yes" | |
7123 else | |
7124 $as_echo "$as_me: failed program was:" >&5 | |
7125 sed 's/^/| /' conftest.$ac_ext >&5 | |
7126 | |
7127 eval "$as_ac_Header=no" | |
7128 fi | |
7129 | |
7130 rm -f conftest.err conftest.$ac_ext | |
7131 fi | |
7132 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
7133 $as_echo "$as_val"'` | |
7134 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7135 $as_echo "$ac_res" >&6; } | |
7136 if test `eval 'as_val=${'$as_ac_Header'} | |
7137 $as_echo "$as_val"'` = yes; then | |
7138 cat >>confdefs.h <<_ACEOF | |
7139 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7140 _ACEOF | |
7141 | |
7142 fi | |
7143 | |
7144 done | |
7145 | |
7146 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
7147 $as_echo_n "checking for ANSI C header files... " >&6; } | |
7148 if test "${ac_cv_header_stdc+set}" = set; then | |
7149 $as_echo_n "(cached) " >&6 | |
7150 else | |
7151 cat >conftest.$ac_ext <<_ACEOF | |
7152 /* confdefs.h. */ | |
7153 _ACEOF | |
7154 cat confdefs.h >>conftest.$ac_ext | |
7155 cat >>conftest.$ac_ext <<_ACEOF | |
7156 /* end confdefs.h. */ | 6124 /* end confdefs.h. */ |
7157 #include <stdlib.h> | 6125 #include <stdlib.h> |
7158 #include <stdarg.h> | 6126 #include <stdarg.h> |
7159 #include <string.h> | 6127 #include <string.h> |
7160 #include <float.h> | 6128 #include <float.h> |
7165 | 6133 |
7166 ; | 6134 ; |
7167 return 0; | 6135 return 0; |
7168 } | 6136 } |
7169 _ACEOF | 6137 _ACEOF |
7170 rm -f conftest.$ac_objext | 6138 if ac_fn_c_try_compile "$LINENO"; then : |
7171 if { (ac_try="$ac_compile" | |
7172 case "(($ac_try" in | |
7173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7174 *) ac_try_echo=$ac_try;; | |
7175 esac | |
7176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7177 $as_echo "$ac_try_echo") >&5 | |
7178 (eval "$ac_compile") 2>conftest.er1 | |
7179 ac_status=$? | |
7180 grep -v '^ *+' conftest.er1 >conftest.err | |
7181 rm -f conftest.er1 | |
7182 cat conftest.err >&5 | |
7183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7184 (exit $ac_status); } && { | |
7185 test -z "$ac_c_werror_flag" || | |
7186 test ! -s conftest.err | |
7187 } && test -s conftest.$ac_objext; then | |
7188 ac_cv_header_stdc=yes | 6139 ac_cv_header_stdc=yes |
7189 else | 6140 else |
7190 $as_echo "$as_me: failed program was:" >&5 | 6141 ac_cv_header_stdc=no |
7191 sed 's/^/| /' conftest.$ac_ext >&5 | 6142 fi |
7192 | |
7193 ac_cv_header_stdc=no | |
7194 fi | |
7195 | |
7196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 6143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7197 | 6144 |
7198 if test $ac_cv_header_stdc = yes; then | 6145 if test $ac_cv_header_stdc = yes; then |
7199 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 6146 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
7200 cat >conftest.$ac_ext <<_ACEOF | 6147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7201 /* confdefs.h. */ | |
7202 _ACEOF | |
7203 cat confdefs.h >>conftest.$ac_ext | |
7204 cat >>conftest.$ac_ext <<_ACEOF | |
7205 /* end confdefs.h. */ | 6148 /* end confdefs.h. */ |
7206 #include <string.h> | 6149 #include <string.h> |
7207 | 6150 |
7208 _ACEOF | 6151 _ACEOF |
7209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 6152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7210 $EGREP "memchr" >/dev/null 2>&1; then | 6153 $EGREP "memchr" >/dev/null 2>&1; then : |
7211 : | 6154 |
7212 else | 6155 else |
7213 ac_cv_header_stdc=no | 6156 ac_cv_header_stdc=no |
7214 fi | 6157 fi |
7215 rm -f conftest* | 6158 rm -f conftest* |
7216 | 6159 |
7217 fi | 6160 fi |
7218 | 6161 |
7219 if test $ac_cv_header_stdc = yes; then | 6162 if test $ac_cv_header_stdc = yes; then |
7220 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 6163 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
7221 cat >conftest.$ac_ext <<_ACEOF | 6164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7222 /* confdefs.h. */ | |
7223 _ACEOF | |
7224 cat confdefs.h >>conftest.$ac_ext | |
7225 cat >>conftest.$ac_ext <<_ACEOF | |
7226 /* end confdefs.h. */ | 6165 /* end confdefs.h. */ |
7227 #include <stdlib.h> | 6166 #include <stdlib.h> |
7228 | 6167 |
7229 _ACEOF | 6168 _ACEOF |
7230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 6169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7231 $EGREP "free" >/dev/null 2>&1; then | 6170 $EGREP "free" >/dev/null 2>&1; then : |
7232 : | 6171 |
7233 else | 6172 else |
7234 ac_cv_header_stdc=no | 6173 ac_cv_header_stdc=no |
7235 fi | 6174 fi |
7236 rm -f conftest* | 6175 rm -f conftest* |
7237 | 6176 |
7238 fi | 6177 fi |
7239 | 6178 |
7240 if test $ac_cv_header_stdc = yes; then | 6179 if test $ac_cv_header_stdc = yes; then |
7241 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 6180 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
7242 if test "$cross_compiling" = yes; then | 6181 if test "$cross_compiling" = yes; then : |
7243 : | 6182 : |
7244 else | 6183 else |
7245 cat >conftest.$ac_ext <<_ACEOF | 6184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7246 /* confdefs.h. */ | |
7247 _ACEOF | |
7248 cat confdefs.h >>conftest.$ac_ext | |
7249 cat >>conftest.$ac_ext <<_ACEOF | |
7250 /* end confdefs.h. */ | 6185 /* end confdefs.h. */ |
7251 #include <ctype.h> | 6186 #include <ctype.h> |
7252 #include <stdlib.h> | 6187 #include <stdlib.h> |
7253 #if ((' ' & 0x0FF) == 0x020) | 6188 #if ((' ' & 0x0FF) == 0x020) |
7254 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 6189 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
7271 || toupper (i) != TOUPPER (i)) | 6206 || toupper (i) != TOUPPER (i)) |
7272 return 2; | 6207 return 2; |
7273 return 0; | 6208 return 0; |
7274 } | 6209 } |
7275 _ACEOF | 6210 _ACEOF |
7276 rm -f conftest$ac_exeext | 6211 if ac_fn_c_try_run "$LINENO"; then : |
7277 if { (ac_try="$ac_link" | 6212 |
7278 case "(($ac_try" in | 6213 else |
7279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 6214 ac_cv_header_stdc=no |
7280 *) ac_try_echo=$ac_try;; | 6215 fi |
7281 esac | 6216 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | 6217 conftest.$ac_objext conftest.beam conftest.$ac_ext |
7283 $as_echo "$ac_try_echo") >&5 | 6218 fi |
7284 (eval "$ac_link") 2>&5 | 6219 |
7285 ac_status=$? | 6220 fi |
7286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 6221 fi |
7287 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
7288 { (case "(($ac_try" in | |
7289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7290 *) ac_try_echo=$ac_try;; | |
7291 esac | |
7292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7293 $as_echo "$ac_try_echo") >&5 | |
7294 (eval "$ac_try") 2>&5 | |
7295 ac_status=$? | |
7296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7297 (exit $ac_status); }; }; then | |
7298 : | |
7299 else | |
7300 $as_echo "$as_me: program exited with status $ac_status" >&5 | |
7301 $as_echo "$as_me: failed program was:" >&5 | |
7302 sed 's/^/| /' conftest.$ac_ext >&5 | |
7303 | |
7304 ( exit $ac_status ) | |
7305 ac_cv_header_stdc=no | |
7306 fi | |
7307 rm -rf conftest.dSYM | |
7308 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
7309 fi | |
7310 | |
7311 | |
7312 fi | |
7313 fi | |
7314 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
7315 $as_echo "$ac_cv_header_stdc" >&6; } | 6223 $as_echo "$ac_cv_header_stdc" >&6; } |
7316 if test $ac_cv_header_stdc = yes; then | 6224 if test $ac_cv_header_stdc = yes; then |
7317 | 6225 |
7318 cat >>confdefs.h <<\_ACEOF | 6226 $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
7319 #define STDC_HEADERS 1 | 6227 |
7320 _ACEOF | 6228 fi |
7321 | 6229 |
7322 fi | 6230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 |
7323 | |
7324 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 | |
7325 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | 6231 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } |
7326 if test "${ac_cv_header_time+set}" = set; then | 6232 if test "${ac_cv_header_time+set}" = set; then : |
7327 $as_echo_n "(cached) " >&6 | 6233 $as_echo_n "(cached) " >&6 |
7328 else | 6234 else |
7329 cat >conftest.$ac_ext <<_ACEOF | 6235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7330 /* confdefs.h. */ | |
7331 _ACEOF | |
7332 cat confdefs.h >>conftest.$ac_ext | |
7333 cat >>conftest.$ac_ext <<_ACEOF | |
7334 /* end confdefs.h. */ | 6236 /* end confdefs.h. */ |
7335 #include <sys/types.h> | 6237 #include <sys/types.h> |
7336 #include <sys/time.h> | 6238 #include <sys/time.h> |
7337 #include <time.h> | 6239 #include <time.h> |
7338 | 6240 |
7343 return 0; | 6245 return 0; |
7344 ; | 6246 ; |
7345 return 0; | 6247 return 0; |
7346 } | 6248 } |
7347 _ACEOF | 6249 _ACEOF |
7348 rm -f conftest.$ac_objext | 6250 if ac_fn_c_try_compile "$LINENO"; then : |
7349 if { (ac_try="$ac_compile" | |
7350 case "(($ac_try" in | |
7351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7352 *) ac_try_echo=$ac_try;; | |
7353 esac | |
7354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7355 $as_echo "$ac_try_echo") >&5 | |
7356 (eval "$ac_compile") 2>conftest.er1 | |
7357 ac_status=$? | |
7358 grep -v '^ *+' conftest.er1 >conftest.err | |
7359 rm -f conftest.er1 | |
7360 cat conftest.err >&5 | |
7361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7362 (exit $ac_status); } && { | |
7363 test -z "$ac_c_werror_flag" || | |
7364 test ! -s conftest.err | |
7365 } && test -s conftest.$ac_objext; then | |
7366 ac_cv_header_time=yes | 6251 ac_cv_header_time=yes |
7367 else | 6252 else |
7368 $as_echo "$as_me: failed program was:" >&5 | 6253 ac_cv_header_time=no |
7369 sed 's/^/| /' conftest.$ac_ext >&5 | 6254 fi |
7370 | |
7371 ac_cv_header_time=no | |
7372 fi | |
7373 | |
7374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 6255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7375 fi | 6256 fi |
7376 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 | 6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 |
7377 $as_echo "$ac_cv_header_time" >&6; } | 6258 $as_echo "$ac_cv_header_time" >&6; } |
7378 if test $ac_cv_header_time = yes; then | 6259 if test $ac_cv_header_time = yes; then |
7379 | 6260 |
7380 cat >>confdefs.h <<\_ACEOF | 6261 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h |
7381 #define TIME_WITH_SYS_TIME 1 | 6262 |
7382 _ACEOF | 6263 fi |
7383 | 6264 |
7384 fi | 6265 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default" |
7385 | 6266 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then : |
7386 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5 | 6267 ac_have_decl=1 |
7387 $as_echo_n "checking whether sys_siglist is declared... " >&6; } | 6268 else |
7388 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then | 6269 ac_have_decl=0 |
7389 $as_echo_n "(cached) " >&6 | 6270 fi |
7390 else | |
7391 cat >conftest.$ac_ext <<_ACEOF | |
7392 /* confdefs.h. */ | |
7393 _ACEOF | |
7394 cat confdefs.h >>conftest.$ac_ext | |
7395 cat >>conftest.$ac_ext <<_ACEOF | |
7396 /* end confdefs.h. */ | |
7397 $ac_includes_default | |
7398 int | |
7399 main () | |
7400 { | |
7401 #ifndef sys_siglist | |
7402 (void) sys_siglist; | |
7403 #endif | |
7404 | |
7405 ; | |
7406 return 0; | |
7407 } | |
7408 _ACEOF | |
7409 rm -f conftest.$ac_objext | |
7410 if { (ac_try="$ac_compile" | |
7411 case "(($ac_try" in | |
7412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7413 *) ac_try_echo=$ac_try;; | |
7414 esac | |
7415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7416 $as_echo "$ac_try_echo") >&5 | |
7417 (eval "$ac_compile") 2>conftest.er1 | |
7418 ac_status=$? | |
7419 grep -v '^ *+' conftest.er1 >conftest.err | |
7420 rm -f conftest.er1 | |
7421 cat conftest.err >&5 | |
7422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7423 (exit $ac_status); } && { | |
7424 test -z "$ac_c_werror_flag" || | |
7425 test ! -s conftest.err | |
7426 } && test -s conftest.$ac_objext; then | |
7427 ac_cv_have_decl_sys_siglist=yes | |
7428 else | |
7429 $as_echo "$as_me: failed program was:" >&5 | |
7430 sed 's/^/| /' conftest.$ac_ext >&5 | |
7431 | |
7432 ac_cv_have_decl_sys_siglist=no | |
7433 fi | |
7434 | |
7435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7436 fi | |
7437 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5 | |
7438 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; } | |
7439 if test $ac_cv_have_decl_sys_siglist = yes; then | |
7440 | 6271 |
7441 cat >>confdefs.h <<_ACEOF | 6272 cat >>confdefs.h <<_ACEOF |
7442 #define HAVE_DECL_SYS_SIGLIST 1 | 6273 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl |
7443 _ACEOF | 6274 _ACEOF |
7444 | |
7445 | |
7446 else | |
7447 cat >>confdefs.h <<_ACEOF | |
7448 #define HAVE_DECL_SYS_SIGLIST 0 | |
7449 _ACEOF | |
7450 | |
7451 | |
7452 fi | |
7453 | |
7454 | 6275 |
7455 if test $ac_cv_have_decl_sys_siglist != yes; then | 6276 if test $ac_cv_have_decl_sys_siglist != yes; then |
7456 # For Tru64, at least: | 6277 # For Tru64, at least: |
7457 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5 | 6278 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default" |
7458 $as_echo_n "checking whether __sys_siglist is declared... " >&6; } | 6279 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then : |
7459 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then | 6280 ac_have_decl=1 |
6281 else | |
6282 ac_have_decl=0 | |
6283 fi | |
6284 | |
6285 cat >>confdefs.h <<_ACEOF | |
6286 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl | |
6287 _ACEOF | |
6288 | |
6289 if test $ac_cv_have_decl___sys_siglist = yes; then | |
6290 | |
6291 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h | |
6292 | |
6293 fi | |
6294 fi | |
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 | |
6296 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } | |
6297 if test "${ac_cv_header_sys_wait_h+set}" = set; then : | |
7460 $as_echo_n "(cached) " >&6 | 6298 $as_echo_n "(cached) " >&6 |
7461 else | 6299 else |
7462 cat >conftest.$ac_ext <<_ACEOF | 6300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7463 /* confdefs.h. */ | |
7464 _ACEOF | |
7465 cat confdefs.h >>conftest.$ac_ext | |
7466 cat >>conftest.$ac_ext <<_ACEOF | |
7467 /* end confdefs.h. */ | |
7468 $ac_includes_default | |
7469 int | |
7470 main () | |
7471 { | |
7472 #ifndef __sys_siglist | |
7473 (void) __sys_siglist; | |
7474 #endif | |
7475 | |
7476 ; | |
7477 return 0; | |
7478 } | |
7479 _ACEOF | |
7480 rm -f conftest.$ac_objext | |
7481 if { (ac_try="$ac_compile" | |
7482 case "(($ac_try" in | |
7483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7484 *) ac_try_echo=$ac_try;; | |
7485 esac | |
7486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7487 $as_echo "$ac_try_echo") >&5 | |
7488 (eval "$ac_compile") 2>conftest.er1 | |
7489 ac_status=$? | |
7490 grep -v '^ *+' conftest.er1 >conftest.err | |
7491 rm -f conftest.er1 | |
7492 cat conftest.err >&5 | |
7493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7494 (exit $ac_status); } && { | |
7495 test -z "$ac_c_werror_flag" || | |
7496 test ! -s conftest.err | |
7497 } && test -s conftest.$ac_objext; then | |
7498 ac_cv_have_decl___sys_siglist=yes | |
7499 else | |
7500 $as_echo "$as_me: failed program was:" >&5 | |
7501 sed 's/^/| /' conftest.$ac_ext >&5 | |
7502 | |
7503 ac_cv_have_decl___sys_siglist=no | |
7504 fi | |
7505 | |
7506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7507 fi | |
7508 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5 | |
7509 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; } | |
7510 if test $ac_cv_have_decl___sys_siglist = yes; then | |
7511 | |
7512 cat >>confdefs.h <<_ACEOF | |
7513 #define HAVE_DECL___SYS_SIGLIST 1 | |
7514 _ACEOF | |
7515 | |
7516 | |
7517 else | |
7518 cat >>confdefs.h <<_ACEOF | |
7519 #define HAVE_DECL___SYS_SIGLIST 0 | |
7520 _ACEOF | |
7521 | |
7522 | |
7523 fi | |
7524 | |
7525 | |
7526 if test $ac_cv_have_decl___sys_siglist = yes; then | |
7527 | |
7528 cat >>confdefs.h <<\_ACEOF | |
7529 #define sys_siglist __sys_siglist | |
7530 _ACEOF | |
7531 | |
7532 fi | |
7533 fi | |
7534 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 | |
7535 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } | |
7536 if test "${ac_cv_header_sys_wait_h+set}" = set; then | |
7537 $as_echo_n "(cached) " >&6 | |
7538 else | |
7539 cat >conftest.$ac_ext <<_ACEOF | |
7540 /* confdefs.h. */ | |
7541 _ACEOF | |
7542 cat confdefs.h >>conftest.$ac_ext | |
7543 cat >>conftest.$ac_ext <<_ACEOF | |
7544 /* end confdefs.h. */ | 6301 /* end confdefs.h. */ |
7545 #include <sys/types.h> | 6302 #include <sys/types.h> |
7546 #include <sys/wait.h> | 6303 #include <sys/wait.h> |
7547 #ifndef WEXITSTATUS | 6304 #ifndef WEXITSTATUS |
7548 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) | 6305 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
7559 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | 6316 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
7560 ; | 6317 ; |
7561 return 0; | 6318 return 0; |
7562 } | 6319 } |
7563 _ACEOF | 6320 _ACEOF |
7564 rm -f conftest.$ac_objext | 6321 if ac_fn_c_try_compile "$LINENO"; then : |
7565 if { (ac_try="$ac_compile" | |
7566 case "(($ac_try" in | |
7567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7568 *) ac_try_echo=$ac_try;; | |
7569 esac | |
7570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7571 $as_echo "$ac_try_echo") >&5 | |
7572 (eval "$ac_compile") 2>conftest.er1 | |
7573 ac_status=$? | |
7574 grep -v '^ *+' conftest.er1 >conftest.err | |
7575 rm -f conftest.er1 | |
7576 cat conftest.err >&5 | |
7577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7578 (exit $ac_status); } && { | |
7579 test -z "$ac_c_werror_flag" || | |
7580 test ! -s conftest.err | |
7581 } && test -s conftest.$ac_objext; then | |
7582 ac_cv_header_sys_wait_h=yes | 6322 ac_cv_header_sys_wait_h=yes |
7583 else | 6323 else |
7584 $as_echo "$as_me: failed program was:" >&5 | 6324 ac_cv_header_sys_wait_h=no |
7585 sed 's/^/| /' conftest.$ac_ext >&5 | 6325 fi |
7586 | |
7587 ac_cv_header_sys_wait_h=no | |
7588 fi | |
7589 | |
7590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 6326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7591 fi | 6327 fi |
7592 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 | 6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 |
7593 $as_echo "$ac_cv_header_sys_wait_h" >&6; } | 6329 $as_echo "$ac_cv_header_sys_wait_h" >&6; } |
7594 if test $ac_cv_header_sys_wait_h = yes; then | 6330 if test $ac_cv_header_sys_wait_h = yes; then |
7595 | 6331 |
7596 cat >>confdefs.h <<\_ACEOF | 6332 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h |
7597 #define HAVE_SYS_WAIT_H 1 | 6333 |
7598 _ACEOF | 6334 fi |
7599 | 6335 |
7600 fi | 6336 |
7601 | 6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5 |
7602 | |
7603 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5 | |
7604 $as_echo_n "checking for struct utimbuf... " >&6; } | 6338 $as_echo_n "checking for struct utimbuf... " >&6; } |
7605 if test "${emacs_cv_struct_utimbuf+set}" = set; then | 6339 if test "${emacs_cv_struct_utimbuf+set}" = set; then : |
7606 $as_echo_n "(cached) " >&6 | 6340 $as_echo_n "(cached) " >&6 |
7607 else | 6341 else |
7608 cat >conftest.$ac_ext <<_ACEOF | 6342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7609 /* confdefs.h. */ | |
7610 _ACEOF | |
7611 cat confdefs.h >>conftest.$ac_ext | |
7612 cat >>conftest.$ac_ext <<_ACEOF | |
7613 /* end confdefs.h. */ | 6343 /* end confdefs.h. */ |
7614 #ifdef TIME_WITH_SYS_TIME | 6344 #ifdef TIME_WITH_SYS_TIME |
7615 #include <sys/time.h> | 6345 #include <sys/time.h> |
7616 #include <time.h> | 6346 #include <time.h> |
7617 #else | 6347 #else |
7630 static struct utimbuf x; x.actime = x.modtime; | 6360 static struct utimbuf x; x.actime = x.modtime; |
7631 ; | 6361 ; |
7632 return 0; | 6362 return 0; |
7633 } | 6363 } |
7634 _ACEOF | 6364 _ACEOF |
7635 rm -f conftest.$ac_objext | 6365 if ac_fn_c_try_compile "$LINENO"; then : |
7636 if { (ac_try="$ac_compile" | |
7637 case "(($ac_try" in | |
7638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7639 *) ac_try_echo=$ac_try;; | |
7640 esac | |
7641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7642 $as_echo "$ac_try_echo") >&5 | |
7643 (eval "$ac_compile") 2>conftest.er1 | |
7644 ac_status=$? | |
7645 grep -v '^ *+' conftest.er1 >conftest.err | |
7646 rm -f conftest.er1 | |
7647 cat conftest.err >&5 | |
7648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7649 (exit $ac_status); } && { | |
7650 test -z "$ac_c_werror_flag" || | |
7651 test ! -s conftest.err | |
7652 } && test -s conftest.$ac_objext; then | |
7653 emacs_cv_struct_utimbuf=yes | 6366 emacs_cv_struct_utimbuf=yes |
7654 else | 6367 else |
7655 $as_echo "$as_me: failed program was:" >&5 | 6368 emacs_cv_struct_utimbuf=no |
7656 sed 's/^/| /' conftest.$ac_ext >&5 | 6369 fi |
7657 | |
7658 emacs_cv_struct_utimbuf=no | |
7659 fi | |
7660 | |
7661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 6370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7662 fi | 6371 fi |
7663 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5 | 6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5 |
7664 $as_echo "$emacs_cv_struct_utimbuf" >&6; } | 6373 $as_echo "$emacs_cv_struct_utimbuf" >&6; } |
7665 if test $emacs_cv_struct_utimbuf = yes; then | 6374 if test $emacs_cv_struct_utimbuf = yes; then |
7666 | 6375 |
7667 cat >>confdefs.h <<\_ACEOF | 6376 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h |
7668 #define HAVE_STRUCT_UTIMBUF 1 | 6377 |
7669 _ACEOF | 6378 fi |
7670 | 6379 |
7671 fi | 6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 |
7672 | |
7673 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5 | |
7674 $as_echo_n "checking return type of signal handlers... " >&6; } | 6381 $as_echo_n "checking return type of signal handlers... " >&6; } |
7675 if test "${ac_cv_type_signal+set}" = set; then | 6382 if test "${ac_cv_type_signal+set}" = set; then : |
7676 $as_echo_n "(cached) " >&6 | 6383 $as_echo_n "(cached) " >&6 |
7677 else | 6384 else |
7678 cat >conftest.$ac_ext <<_ACEOF | 6385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7679 /* confdefs.h. */ | |
7680 _ACEOF | |
7681 cat confdefs.h >>conftest.$ac_ext | |
7682 cat >>conftest.$ac_ext <<_ACEOF | |
7683 /* end confdefs.h. */ | 6386 /* end confdefs.h. */ |
7684 #include <sys/types.h> | 6387 #include <sys/types.h> |
7685 #include <signal.h> | 6388 #include <signal.h> |
7686 | 6389 |
7687 int | 6390 int |
7690 return *(signal (0, 0)) (0) == 1; | 6393 return *(signal (0, 0)) (0) == 1; |
7691 ; | 6394 ; |
7692 return 0; | 6395 return 0; |
7693 } | 6396 } |
7694 _ACEOF | 6397 _ACEOF |
7695 rm -f conftest.$ac_objext | 6398 if ac_fn_c_try_compile "$LINENO"; then : |
7696 if { (ac_try="$ac_compile" | |
7697 case "(($ac_try" in | |
7698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7699 *) ac_try_echo=$ac_try;; | |
7700 esac | |
7701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7702 $as_echo "$ac_try_echo") >&5 | |
7703 (eval "$ac_compile") 2>conftest.er1 | |
7704 ac_status=$? | |
7705 grep -v '^ *+' conftest.er1 >conftest.err | |
7706 rm -f conftest.er1 | |
7707 cat conftest.err >&5 | |
7708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7709 (exit $ac_status); } && { | |
7710 test -z "$ac_c_werror_flag" || | |
7711 test ! -s conftest.err | |
7712 } && test -s conftest.$ac_objext; then | |
7713 ac_cv_type_signal=int | 6399 ac_cv_type_signal=int |
7714 else | 6400 else |
7715 $as_echo "$as_me: failed program was:" >&5 | 6401 ac_cv_type_signal=void |
7716 sed 's/^/| /' conftest.$ac_ext >&5 | 6402 fi |
7717 | |
7718 ac_cv_type_signal=void | |
7719 fi | |
7720 | |
7721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 6403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7722 fi | 6404 fi |
7723 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 | 6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 |
7724 $as_echo "$ac_cv_type_signal" >&6; } | 6406 $as_echo "$ac_cv_type_signal" >&6; } |
7725 | 6407 |
7726 cat >>confdefs.h <<_ACEOF | 6408 cat >>confdefs.h <<_ACEOF |
7727 #define RETSIGTYPE $ac_cv_type_signal | 6409 #define RETSIGTYPE $ac_cv_type_signal |
7728 _ACEOF | 6410 _ACEOF |
7729 | 6411 |
7730 | 6412 |
7731 | 6413 |
7732 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5 | 6414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5 |
7733 $as_echo_n "checking for speed_t... " >&6; } | 6415 $as_echo_n "checking for speed_t... " >&6; } |
7734 if test "${emacs_cv_speed_t+set}" = set; then | 6416 if test "${emacs_cv_speed_t+set}" = set; then : |
7735 $as_echo_n "(cached) " >&6 | 6417 $as_echo_n "(cached) " >&6 |
7736 else | 6418 else |
7737 cat >conftest.$ac_ext <<_ACEOF | 6419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7738 /* confdefs.h. */ | |
7739 _ACEOF | |
7740 cat confdefs.h >>conftest.$ac_ext | |
7741 cat >>conftest.$ac_ext <<_ACEOF | |
7742 /* end confdefs.h. */ | 6420 /* end confdefs.h. */ |
7743 #include <termios.h> | 6421 #include <termios.h> |
7744 int | 6422 int |
7745 main () | 6423 main () |
7746 { | 6424 { |
7747 speed_t x = 1; | 6425 speed_t x = 1; |
7748 ; | 6426 ; |
7749 return 0; | 6427 return 0; |
7750 } | 6428 } |
7751 _ACEOF | 6429 _ACEOF |
7752 rm -f conftest.$ac_objext | 6430 if ac_fn_c_try_compile "$LINENO"; then : |
7753 if { (ac_try="$ac_compile" | |
7754 case "(($ac_try" in | |
7755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7756 *) ac_try_echo=$ac_try;; | |
7757 esac | |
7758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7759 $as_echo "$ac_try_echo") >&5 | |
7760 (eval "$ac_compile") 2>conftest.er1 | |
7761 ac_status=$? | |
7762 grep -v '^ *+' conftest.er1 >conftest.err | |
7763 rm -f conftest.er1 | |
7764 cat conftest.err >&5 | |
7765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7766 (exit $ac_status); } && { | |
7767 test -z "$ac_c_werror_flag" || | |
7768 test ! -s conftest.err | |
7769 } && test -s conftest.$ac_objext; then | |
7770 emacs_cv_speed_t=yes | 6431 emacs_cv_speed_t=yes |
7771 else | 6432 else |
7772 $as_echo "$as_me: failed program was:" >&5 | 6433 emacs_cv_speed_t=no |
7773 sed 's/^/| /' conftest.$ac_ext >&5 | 6434 fi |
7774 | |
7775 emacs_cv_speed_t=no | |
7776 fi | |
7777 | |
7778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 6435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7779 fi | 6436 fi |
7780 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5 | 6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5 |
7781 $as_echo "$emacs_cv_speed_t" >&6; } | 6438 $as_echo "$emacs_cv_speed_t" >&6; } |
7782 if test $emacs_cv_speed_t = yes; then | 6439 if test $emacs_cv_speed_t = yes; then |
7783 | 6440 |
7784 cat >>confdefs.h <<\_ACEOF | 6441 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h |
7785 #define HAVE_SPEED_T 1 | 6442 |
7786 _ACEOF | 6443 fi |
7787 | 6444 |
7788 fi | 6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5 |
7789 | |
7790 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5 | |
7791 $as_echo_n "checking for struct timeval... " >&6; } | 6446 $as_echo_n "checking for struct timeval... " >&6; } |
7792 if test "${emacs_cv_struct_timeval+set}" = set; then | 6447 if test "${emacs_cv_struct_timeval+set}" = set; then : |
7793 $as_echo_n "(cached) " >&6 | 6448 $as_echo_n "(cached) " >&6 |
7794 else | 6449 else |
7795 cat >conftest.$ac_ext <<_ACEOF | 6450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7796 /* confdefs.h. */ | |
7797 _ACEOF | |
7798 cat confdefs.h >>conftest.$ac_ext | |
7799 cat >>conftest.$ac_ext <<_ACEOF | |
7800 /* end confdefs.h. */ | 6451 /* end confdefs.h. */ |
7801 #ifdef TIME_WITH_SYS_TIME | 6452 #ifdef TIME_WITH_SYS_TIME |
7802 #include <sys/time.h> | 6453 #include <sys/time.h> |
7803 #include <time.h> | 6454 #include <time.h> |
7804 #else | 6455 #else |
7814 static struct timeval x; x.tv_sec = x.tv_usec; | 6465 static struct timeval x; x.tv_sec = x.tv_usec; |
7815 ; | 6466 ; |
7816 return 0; | 6467 return 0; |
7817 } | 6468 } |
7818 _ACEOF | 6469 _ACEOF |
7819 rm -f conftest.$ac_objext | 6470 if ac_fn_c_try_compile "$LINENO"; then : |
7820 if { (ac_try="$ac_compile" | |
7821 case "(($ac_try" in | |
7822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7823 *) ac_try_echo=$ac_try;; | |
7824 esac | |
7825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7826 $as_echo "$ac_try_echo") >&5 | |
7827 (eval "$ac_compile") 2>conftest.er1 | |
7828 ac_status=$? | |
7829 grep -v '^ *+' conftest.er1 >conftest.err | |
7830 rm -f conftest.er1 | |
7831 cat conftest.err >&5 | |
7832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7833 (exit $ac_status); } && { | |
7834 test -z "$ac_c_werror_flag" || | |
7835 test ! -s conftest.err | |
7836 } && test -s conftest.$ac_objext; then | |
7837 emacs_cv_struct_timeval=yes | 6471 emacs_cv_struct_timeval=yes |
7838 else | 6472 else |
7839 $as_echo "$as_me: failed program was:" >&5 | 6473 emacs_cv_struct_timeval=no |
7840 sed 's/^/| /' conftest.$ac_ext >&5 | 6474 fi |
7841 | |
7842 emacs_cv_struct_timeval=no | |
7843 fi | |
7844 | |
7845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 6475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7846 fi | 6476 fi |
7847 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5 | 6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5 |
7848 $as_echo "$emacs_cv_struct_timeval" >&6; } | 6478 $as_echo "$emacs_cv_struct_timeval" >&6; } |
7849 HAVE_TIMEVAL=$emacs_cv_struct_timeval | 6479 HAVE_TIMEVAL=$emacs_cv_struct_timeval |
7850 if test $emacs_cv_struct_timeval = yes; then | 6480 if test $emacs_cv_struct_timeval = yes; then |
7851 | 6481 |
7852 cat >>confdefs.h <<\_ACEOF | 6482 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h |
7853 #define HAVE_TIMEVAL 1 | 6483 |
7854 _ACEOF | 6484 fi |
7855 | 6485 |
7856 fi | 6486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5 |
7857 | |
7858 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5 | |
7859 $as_echo_n "checking for struct exception... " >&6; } | 6487 $as_echo_n "checking for struct exception... " >&6; } |
7860 if test "${emacs_cv_struct_exception+set}" = set; then | 6488 if test "${emacs_cv_struct_exception+set}" = set; then : |
7861 $as_echo_n "(cached) " >&6 | 6489 $as_echo_n "(cached) " >&6 |
7862 else | 6490 else |
7863 cat >conftest.$ac_ext <<_ACEOF | 6491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7864 /* confdefs.h. */ | |
7865 _ACEOF | |
7866 cat confdefs.h >>conftest.$ac_ext | |
7867 cat >>conftest.$ac_ext <<_ACEOF | |
7868 /* end confdefs.h. */ | 6492 /* end confdefs.h. */ |
7869 #include <math.h> | 6493 #include <math.h> |
7870 int | 6494 int |
7871 main () | 6495 main () |
7872 { | 6496 { |
7873 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1; | 6497 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1; |
7874 ; | 6498 ; |
7875 return 0; | 6499 return 0; |
7876 } | 6500 } |
7877 _ACEOF | 6501 _ACEOF |
7878 rm -f conftest.$ac_objext | 6502 if ac_fn_c_try_compile "$LINENO"; then : |
7879 if { (ac_try="$ac_compile" | |
7880 case "(($ac_try" in | |
7881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7882 *) ac_try_echo=$ac_try;; | |
7883 esac | |
7884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7885 $as_echo "$ac_try_echo") >&5 | |
7886 (eval "$ac_compile") 2>conftest.er1 | |
7887 ac_status=$? | |
7888 grep -v '^ *+' conftest.er1 >conftest.err | |
7889 rm -f conftest.er1 | |
7890 cat conftest.err >&5 | |
7891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7892 (exit $ac_status); } && { | |
7893 test -z "$ac_c_werror_flag" || | |
7894 test ! -s conftest.err | |
7895 } && test -s conftest.$ac_objext; then | |
7896 emacs_cv_struct_exception=yes | 6503 emacs_cv_struct_exception=yes |
7897 else | 6504 else |
7898 $as_echo "$as_me: failed program was:" >&5 | 6505 emacs_cv_struct_exception=no |
7899 sed 's/^/| /' conftest.$ac_ext >&5 | 6506 fi |
7900 | |
7901 emacs_cv_struct_exception=no | |
7902 fi | |
7903 | |
7904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 6507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7905 fi | 6508 fi |
7906 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5 | 6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5 |
7907 $as_echo "$emacs_cv_struct_exception" >&6; } | 6510 $as_echo "$emacs_cv_struct_exception" >&6; } |
7908 HAVE_EXCEPTION=$emacs_cv_struct_exception | 6511 HAVE_EXCEPTION=$emacs_cv_struct_exception |
7909 if test $emacs_cv_struct_exception != yes; then | 6512 if test $emacs_cv_struct_exception != yes; then |
7910 | 6513 |
7911 cat >>confdefs.h <<\_ACEOF | 6514 $as_echo "#define NO_MATHERR 1" >>confdefs.h |
7912 #define NO_MATHERR 1 | 6515 |
7913 _ACEOF | 6516 fi |
7914 | |
7915 fi | |
7916 | |
7917 | 6517 |
7918 for ac_header in sys/socket.h | 6518 for ac_header in sys/socket.h |
7919 do | 6519 do : |
7920 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 6520 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" |
7921 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 6521 if test "x$ac_cv_header_sys_socket_h" = x""yes; then : |
7922 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7923 $as_echo_n "checking for $ac_header... " >&6; } | |
7924 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
7925 $as_echo_n "(cached) " >&6 | |
7926 fi | |
7927 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
7928 $as_echo "$as_val"'` | |
7929 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7930 $as_echo "$ac_res" >&6; } | |
7931 else | |
7932 # Is the header compilable? | |
7933 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
7934 $as_echo_n "checking $ac_header usability... " >&6; } | |
7935 cat >conftest.$ac_ext <<_ACEOF | |
7936 /* confdefs.h. */ | |
7937 _ACEOF | |
7938 cat confdefs.h >>conftest.$ac_ext | |
7939 cat >>conftest.$ac_ext <<_ACEOF | |
7940 /* end confdefs.h. */ | |
7941 $ac_includes_default | |
7942 #include <$ac_header> | |
7943 _ACEOF | |
7944 rm -f conftest.$ac_objext | |
7945 if { (ac_try="$ac_compile" | |
7946 case "(($ac_try" in | |
7947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7948 *) ac_try_echo=$ac_try;; | |
7949 esac | |
7950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7951 $as_echo "$ac_try_echo") >&5 | |
7952 (eval "$ac_compile") 2>conftest.er1 | |
7953 ac_status=$? | |
7954 grep -v '^ *+' conftest.er1 >conftest.err | |
7955 rm -f conftest.er1 | |
7956 cat conftest.err >&5 | |
7957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7958 (exit $ac_status); } && { | |
7959 test -z "$ac_c_werror_flag" || | |
7960 test ! -s conftest.err | |
7961 } && test -s conftest.$ac_objext; then | |
7962 ac_header_compiler=yes | |
7963 else | |
7964 $as_echo "$as_me: failed program was:" >&5 | |
7965 sed 's/^/| /' conftest.$ac_ext >&5 | |
7966 | |
7967 ac_header_compiler=no | |
7968 fi | |
7969 | |
7970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7971 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
7972 $as_echo "$ac_header_compiler" >&6; } | |
7973 | |
7974 # Is the header present? | |
7975 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
7976 $as_echo_n "checking $ac_header presence... " >&6; } | |
7977 cat >conftest.$ac_ext <<_ACEOF | |
7978 /* confdefs.h. */ | |
7979 _ACEOF | |
7980 cat confdefs.h >>conftest.$ac_ext | |
7981 cat >>conftest.$ac_ext <<_ACEOF | |
7982 /* end confdefs.h. */ | |
7983 #include <$ac_header> | |
7984 _ACEOF | |
7985 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
7986 case "(($ac_try" in | |
7987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7988 *) ac_try_echo=$ac_try;; | |
7989 esac | |
7990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7991 $as_echo "$ac_try_echo") >&5 | |
7992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
7993 ac_status=$? | |
7994 grep -v '^ *+' conftest.er1 >conftest.err | |
7995 rm -f conftest.er1 | |
7996 cat conftest.err >&5 | |
7997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7998 (exit $ac_status); } >/dev/null && { | |
7999 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
8000 test ! -s conftest.err | |
8001 }; then | |
8002 ac_header_preproc=yes | |
8003 else | |
8004 $as_echo "$as_me: failed program was:" >&5 | |
8005 sed 's/^/| /' conftest.$ac_ext >&5 | |
8006 | |
8007 ac_header_preproc=no | |
8008 fi | |
8009 | |
8010 rm -f conftest.err conftest.$ac_ext | |
8011 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
8012 $as_echo "$ac_header_preproc" >&6; } | |
8013 | |
8014 # So? What about this header? | |
8015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8016 yes:no: ) | |
8017 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8018 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8019 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8020 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8021 ac_header_preproc=yes | |
8022 ;; | |
8023 no:yes:* ) | |
8024 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8025 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8026 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8027 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8028 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8029 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8030 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8031 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8032 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8033 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8034 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8035 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
8036 | |
8037 ;; | |
8038 esac | |
8039 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8040 $as_echo_n "checking for $ac_header... " >&6; } | |
8041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
8042 $as_echo_n "(cached) " >&6 | |
8043 else | |
8044 eval "$as_ac_Header=\$ac_header_preproc" | |
8045 fi | |
8046 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
8047 $as_echo "$as_val"'` | |
8048 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8049 $as_echo "$ac_res" >&6; } | |
8050 | |
8051 fi | |
8052 if test `eval 'as_val=${'$as_ac_Header'} | |
8053 $as_echo "$as_val"'` = yes; then | |
8054 cat >>confdefs.h <<_ACEOF | 6522 cat >>confdefs.h <<_ACEOF |
8055 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 6523 #define HAVE_SYS_SOCKET_H 1 |
8056 _ACEOF | 6524 _ACEOF |
8057 | 6525 |
8058 fi | 6526 fi |
8059 | 6527 |
8060 done | 6528 done |
8061 | 6529 |
8062 | |
8063 for ac_header in net/if.h | 6530 for ac_header in net/if.h |
8064 do | 6531 do : |
8065 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 6532 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default |
8066 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8067 $as_echo_n "checking for $ac_header... " >&6; } | |
8068 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
8069 $as_echo_n "(cached) " >&6 | |
8070 else | |
8071 cat >conftest.$ac_ext <<_ACEOF | |
8072 /* confdefs.h. */ | |
8073 _ACEOF | |
8074 cat confdefs.h >>conftest.$ac_ext | |
8075 cat >>conftest.$ac_ext <<_ACEOF | |
8076 /* end confdefs.h. */ | |
8077 $ac_includes_default | |
8078 #if HAVE_SYS_SOCKET_H | 6533 #if HAVE_SYS_SOCKET_H |
8079 #include <sys/socket.h> | 6534 #include <sys/socket.h> |
8080 #endif | 6535 #endif |
8081 | 6536 " |
8082 #include <$ac_header> | 6537 if test "x$ac_cv_header_net_if_h" = x""yes; then : |
8083 _ACEOF | |
8084 rm -f conftest.$ac_objext | |
8085 if { (ac_try="$ac_compile" | |
8086 case "(($ac_try" in | |
8087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8088 *) ac_try_echo=$ac_try;; | |
8089 esac | |
8090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8091 $as_echo "$ac_try_echo") >&5 | |
8092 (eval "$ac_compile") 2>conftest.er1 | |
8093 ac_status=$? | |
8094 grep -v '^ *+' conftest.er1 >conftest.err | |
8095 rm -f conftest.er1 | |
8096 cat conftest.err >&5 | |
8097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8098 (exit $ac_status); } && { | |
8099 test -z "$ac_c_werror_flag" || | |
8100 test ! -s conftest.err | |
8101 } && test -s conftest.$ac_objext; then | |
8102 eval "$as_ac_Header=yes" | |
8103 else | |
8104 $as_echo "$as_me: failed program was:" >&5 | |
8105 sed 's/^/| /' conftest.$ac_ext >&5 | |
8106 | |
8107 eval "$as_ac_Header=no" | |
8108 fi | |
8109 | |
8110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8111 fi | |
8112 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
8113 $as_echo "$as_val"'` | |
8114 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8115 $as_echo "$ac_res" >&6; } | |
8116 if test `eval 'as_val=${'$as_ac_Header'} | |
8117 $as_echo "$as_val"'` = yes; then | |
8118 cat >>confdefs.h <<_ACEOF | 6538 cat >>confdefs.h <<_ACEOF |
8119 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 6539 #define HAVE_NET_IF_H 1 |
8120 _ACEOF | 6540 _ACEOF |
8121 | 6541 |
8122 fi | 6542 fi |
8123 | 6543 |
8124 done | 6544 done |
8125 | 6545 |
8126 | 6546 |
8127 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 | 6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 |
8128 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | 6548 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } |
8129 if test "${ac_cv_struct_tm+set}" = set; then | 6549 if test "${ac_cv_struct_tm+set}" = set; then : |
8130 $as_echo_n "(cached) " >&6 | 6550 $as_echo_n "(cached) " >&6 |
8131 else | 6551 else |
8132 cat >conftest.$ac_ext <<_ACEOF | 6552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8133 /* confdefs.h. */ | |
8134 _ACEOF | |
8135 cat confdefs.h >>conftest.$ac_ext | |
8136 cat >>conftest.$ac_ext <<_ACEOF | |
8137 /* end confdefs.h. */ | 6553 /* end confdefs.h. */ |
8138 #include <sys/types.h> | 6554 #include <sys/types.h> |
8139 #include <time.h> | 6555 #include <time.h> |
8140 | 6556 |
8141 int | 6557 int |
8146 return !p; | 6562 return !p; |
8147 ; | 6563 ; |
8148 return 0; | 6564 return 0; |
8149 } | 6565 } |
8150 _ACEOF | 6566 _ACEOF |
8151 rm -f conftest.$ac_objext | 6567 if ac_fn_c_try_compile "$LINENO"; then : |
8152 if { (ac_try="$ac_compile" | |
8153 case "(($ac_try" in | |
8154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8155 *) ac_try_echo=$ac_try;; | |
8156 esac | |
8157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8158 $as_echo "$ac_try_echo") >&5 | |
8159 (eval "$ac_compile") 2>conftest.er1 | |
8160 ac_status=$? | |
8161 grep -v '^ *+' conftest.er1 >conftest.err | |
8162 rm -f conftest.er1 | |
8163 cat conftest.err >&5 | |
8164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8165 (exit $ac_status); } && { | |
8166 test -z "$ac_c_werror_flag" || | |
8167 test ! -s conftest.err | |
8168 } && test -s conftest.$ac_objext; then | |
8169 ac_cv_struct_tm=time.h | 6568 ac_cv_struct_tm=time.h |
8170 else | 6569 else |
8171 $as_echo "$as_me: failed program was:" >&5 | 6570 ac_cv_struct_tm=sys/time.h |
8172 sed 's/^/| /' conftest.$ac_ext >&5 | 6571 fi |
8173 | |
8174 ac_cv_struct_tm=sys/time.h | |
8175 fi | |
8176 | |
8177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 6572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8178 fi | 6573 fi |
8179 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 | 6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 |
8180 $as_echo "$ac_cv_struct_tm" >&6; } | 6575 $as_echo "$ac_cv_struct_tm" >&6; } |
8181 if test $ac_cv_struct_tm = sys/time.h; then | 6576 if test $ac_cv_struct_tm = sys/time.h; then |
8182 | 6577 |
8183 cat >>confdefs.h <<\_ACEOF | 6578 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h |
8184 #define TM_IN_SYS_TIME 1 | 6579 |
8185 _ACEOF | 6580 fi |
8186 | 6581 |
8187 fi | 6582 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> |
8188 | |
8189 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 | |
8190 $as_echo_n "checking for struct tm.tm_zone... " >&6; } | |
8191 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then | |
8192 $as_echo_n "(cached) " >&6 | |
8193 else | |
8194 cat >conftest.$ac_ext <<_ACEOF | |
8195 /* confdefs.h. */ | |
8196 _ACEOF | |
8197 cat confdefs.h >>conftest.$ac_ext | |
8198 cat >>conftest.$ac_ext <<_ACEOF | |
8199 /* end confdefs.h. */ | |
8200 #include <sys/types.h> | |
8201 #include <$ac_cv_struct_tm> | 6583 #include <$ac_cv_struct_tm> |
8202 | 6584 |
8203 | 6585 " |
8204 int | 6586 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then : |
8205 main () | |
8206 { | |
8207 static struct tm ac_aggr; | |
8208 if (ac_aggr.tm_zone) | |
8209 return 0; | |
8210 ; | |
8211 return 0; | |
8212 } | |
8213 _ACEOF | |
8214 rm -f conftest.$ac_objext | |
8215 if { (ac_try="$ac_compile" | |
8216 case "(($ac_try" in | |
8217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8218 *) ac_try_echo=$ac_try;; | |
8219 esac | |
8220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8221 $as_echo "$ac_try_echo") >&5 | |
8222 (eval "$ac_compile") 2>conftest.er1 | |
8223 ac_status=$? | |
8224 grep -v '^ *+' conftest.er1 >conftest.err | |
8225 rm -f conftest.er1 | |
8226 cat conftest.err >&5 | |
8227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8228 (exit $ac_status); } && { | |
8229 test -z "$ac_c_werror_flag" || | |
8230 test ! -s conftest.err | |
8231 } && test -s conftest.$ac_objext; then | |
8232 ac_cv_member_struct_tm_tm_zone=yes | |
8233 else | |
8234 $as_echo "$as_me: failed program was:" >&5 | |
8235 sed 's/^/| /' conftest.$ac_ext >&5 | |
8236 | |
8237 cat >conftest.$ac_ext <<_ACEOF | |
8238 /* confdefs.h. */ | |
8239 _ACEOF | |
8240 cat confdefs.h >>conftest.$ac_ext | |
8241 cat >>conftest.$ac_ext <<_ACEOF | |
8242 /* end confdefs.h. */ | |
8243 #include <sys/types.h> | |
8244 #include <$ac_cv_struct_tm> | |
8245 | |
8246 | |
8247 int | |
8248 main () | |
8249 { | |
8250 static struct tm ac_aggr; | |
8251 if (sizeof ac_aggr.tm_zone) | |
8252 return 0; | |
8253 ; | |
8254 return 0; | |
8255 } | |
8256 _ACEOF | |
8257 rm -f conftest.$ac_objext | |
8258 if { (ac_try="$ac_compile" | |
8259 case "(($ac_try" in | |
8260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8261 *) ac_try_echo=$ac_try;; | |
8262 esac | |
8263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8264 $as_echo "$ac_try_echo") >&5 | |
8265 (eval "$ac_compile") 2>conftest.er1 | |
8266 ac_status=$? | |
8267 grep -v '^ *+' conftest.er1 >conftest.err | |
8268 rm -f conftest.er1 | |
8269 cat conftest.err >&5 | |
8270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8271 (exit $ac_status); } && { | |
8272 test -z "$ac_c_werror_flag" || | |
8273 test ! -s conftest.err | |
8274 } && test -s conftest.$ac_objext; then | |
8275 ac_cv_member_struct_tm_tm_zone=yes | |
8276 else | |
8277 $as_echo "$as_me: failed program was:" >&5 | |
8278 sed 's/^/| /' conftest.$ac_ext >&5 | |
8279 | |
8280 ac_cv_member_struct_tm_tm_zone=no | |
8281 fi | |
8282 | |
8283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8284 fi | |
8285 | |
8286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8287 fi | |
8288 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 | |
8289 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; } | |
8290 if test $ac_cv_member_struct_tm_tm_zone = yes; then | |
8291 | 6587 |
8292 cat >>confdefs.h <<_ACEOF | 6588 cat >>confdefs.h <<_ACEOF |
8293 #define HAVE_STRUCT_TM_TM_ZONE 1 | 6589 #define HAVE_STRUCT_TM_TM_ZONE 1 |
8294 _ACEOF | 6590 _ACEOF |
8295 | 6591 |
8296 | 6592 |
8297 fi | 6593 fi |
8298 | 6594 |
8299 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | 6595 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
8300 | 6596 |
8301 cat >>confdefs.h <<\_ACEOF | 6597 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h |
8302 #define HAVE_TM_ZONE 1 | 6598 |
8303 _ACEOF | 6599 else |
8304 | 6600 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> |
8305 else | 6601 " |
8306 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5 | 6602 if test "x$ac_cv_have_decl_tzname" = x""yes; then : |
8307 $as_echo_n "checking whether tzname is declared... " >&6; } | 6603 ac_have_decl=1 |
8308 if test "${ac_cv_have_decl_tzname+set}" = set; then | 6604 else |
6605 ac_have_decl=0 | |
6606 fi | |
6607 | |
6608 cat >>confdefs.h <<_ACEOF | |
6609 #define HAVE_DECL_TZNAME $ac_have_decl | |
6610 _ACEOF | |
6611 | |
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 | |
6613 $as_echo_n "checking for tzname... " >&6; } | |
6614 if test "${ac_cv_var_tzname+set}" = set; then : | |
8309 $as_echo_n "(cached) " >&6 | 6615 $as_echo_n "(cached) " >&6 |
8310 else | 6616 else |
8311 cat >conftest.$ac_ext <<_ACEOF | 6617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8312 /* confdefs.h. */ | |
8313 _ACEOF | |
8314 cat confdefs.h >>conftest.$ac_ext | |
8315 cat >>conftest.$ac_ext <<_ACEOF | |
8316 /* end confdefs.h. */ | |
8317 #include <time.h> | |
8318 | |
8319 int | |
8320 main () | |
8321 { | |
8322 #ifndef tzname | |
8323 (void) tzname; | |
8324 #endif | |
8325 | |
8326 ; | |
8327 return 0; | |
8328 } | |
8329 _ACEOF | |
8330 rm -f conftest.$ac_objext | |
8331 if { (ac_try="$ac_compile" | |
8332 case "(($ac_try" in | |
8333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8334 *) ac_try_echo=$ac_try;; | |
8335 esac | |
8336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8337 $as_echo "$ac_try_echo") >&5 | |
8338 (eval "$ac_compile") 2>conftest.er1 | |
8339 ac_status=$? | |
8340 grep -v '^ *+' conftest.er1 >conftest.err | |
8341 rm -f conftest.er1 | |
8342 cat conftest.err >&5 | |
8343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8344 (exit $ac_status); } && { | |
8345 test -z "$ac_c_werror_flag" || | |
8346 test ! -s conftest.err | |
8347 } && test -s conftest.$ac_objext; then | |
8348 ac_cv_have_decl_tzname=yes | |
8349 else | |
8350 $as_echo "$as_me: failed program was:" >&5 | |
8351 sed 's/^/| /' conftest.$ac_ext >&5 | |
8352 | |
8353 ac_cv_have_decl_tzname=no | |
8354 fi | |
8355 | |
8356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8357 fi | |
8358 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5 | |
8359 $as_echo "$ac_cv_have_decl_tzname" >&6; } | |
8360 if test $ac_cv_have_decl_tzname = yes; then | |
8361 | |
8362 cat >>confdefs.h <<_ACEOF | |
8363 #define HAVE_DECL_TZNAME 1 | |
8364 _ACEOF | |
8365 | |
8366 | |
8367 else | |
8368 cat >>confdefs.h <<_ACEOF | |
8369 #define HAVE_DECL_TZNAME 0 | |
8370 _ACEOF | |
8371 | |
8372 | |
8373 fi | |
8374 | |
8375 | |
8376 { $as_echo "$as_me:$LINENO: checking for tzname" >&5 | |
8377 $as_echo_n "checking for tzname... " >&6; } | |
8378 if test "${ac_cv_var_tzname+set}" = set; then | |
8379 $as_echo_n "(cached) " >&6 | |
8380 else | |
8381 cat >conftest.$ac_ext <<_ACEOF | |
8382 /* confdefs.h. */ | |
8383 _ACEOF | |
8384 cat confdefs.h >>conftest.$ac_ext | |
8385 cat >>conftest.$ac_ext <<_ACEOF | |
8386 /* end confdefs.h. */ | 6618 /* end confdefs.h. */ |
8387 #include <time.h> | 6619 #include <time.h> |
8388 #if !HAVE_DECL_TZNAME | 6620 #if !HAVE_DECL_TZNAME |
8389 extern char *tzname[]; | 6621 extern char *tzname[]; |
8390 #endif | 6622 #endif |
8395 return tzname[0][0]; | 6627 return tzname[0][0]; |
8396 ; | 6628 ; |
8397 return 0; | 6629 return 0; |
8398 } | 6630 } |
8399 _ACEOF | 6631 _ACEOF |
8400 rm -f conftest.$ac_objext conftest$ac_exeext | 6632 if ac_fn_c_try_link "$LINENO"; then : |
8401 if { (ac_try="$ac_link" | |
8402 case "(($ac_try" in | |
8403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8404 *) ac_try_echo=$ac_try;; | |
8405 esac | |
8406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8407 $as_echo "$ac_try_echo") >&5 | |
8408 (eval "$ac_link") 2>conftest.er1 | |
8409 ac_status=$? | |
8410 grep -v '^ *+' conftest.er1 >conftest.err | |
8411 rm -f conftest.er1 | |
8412 cat conftest.err >&5 | |
8413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8414 (exit $ac_status); } && { | |
8415 test -z "$ac_c_werror_flag" || | |
8416 test ! -s conftest.err | |
8417 } && test -s conftest$ac_exeext && { | |
8418 test "$cross_compiling" = yes || | |
8419 $as_test_x conftest$ac_exeext | |
8420 }; then | |
8421 ac_cv_var_tzname=yes | 6633 ac_cv_var_tzname=yes |
8422 else | 6634 else |
8423 $as_echo "$as_me: failed program was:" >&5 | 6635 ac_cv_var_tzname=no |
8424 sed 's/^/| /' conftest.$ac_ext >&5 | 6636 fi |
8425 | 6637 rm -f core conftest.err conftest.$ac_objext \ |
8426 ac_cv_var_tzname=no | 6638 conftest$ac_exeext conftest.$ac_ext |
8427 fi | 6639 fi |
8428 | 6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 |
8429 rm -rf conftest.dSYM | |
8430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8431 conftest$ac_exeext conftest.$ac_ext | |
8432 fi | |
8433 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 | |
8434 $as_echo "$ac_cv_var_tzname" >&6; } | 6641 $as_echo "$ac_cv_var_tzname" >&6; } |
8435 if test $ac_cv_var_tzname = yes; then | 6642 if test $ac_cv_var_tzname = yes; then |
8436 | 6643 |
8437 cat >>confdefs.h <<\_ACEOF | 6644 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h |
8438 #define HAVE_TZNAME 1 | 6645 |
8439 _ACEOF | 6646 fi |
8440 | 6647 fi |
8441 fi | 6648 |
8442 fi | 6649 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h> |
8443 | 6650 " |
8444 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5 | 6651 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then : |
8445 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; } | 6652 |
8446 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then | 6653 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h |
8447 $as_echo_n "(cached) " >&6 | 6654 |
8448 else | 6655 fi |
8449 cat >conftest.$ac_ext <<_ACEOF | 6656 |
8450 /* confdefs.h. */ | 6657 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default |
8451 _ACEOF | |
8452 cat confdefs.h >>conftest.$ac_ext | |
8453 cat >>conftest.$ac_ext <<_ACEOF | |
8454 /* end confdefs.h. */ | |
8455 #include <time.h> | |
8456 | |
8457 int | |
8458 main () | |
8459 { | |
8460 static struct tm ac_aggr; | |
8461 if (ac_aggr.tm_gmtoff) | |
8462 return 0; | |
8463 ; | |
8464 return 0; | |
8465 } | |
8466 _ACEOF | |
8467 rm -f conftest.$ac_objext | |
8468 if { (ac_try="$ac_compile" | |
8469 case "(($ac_try" in | |
8470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8471 *) ac_try_echo=$ac_try;; | |
8472 esac | |
8473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8474 $as_echo "$ac_try_echo") >&5 | |
8475 (eval "$ac_compile") 2>conftest.er1 | |
8476 ac_status=$? | |
8477 grep -v '^ *+' conftest.er1 >conftest.err | |
8478 rm -f conftest.er1 | |
8479 cat conftest.err >&5 | |
8480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8481 (exit $ac_status); } && { | |
8482 test -z "$ac_c_werror_flag" || | |
8483 test ! -s conftest.err | |
8484 } && test -s conftest.$ac_objext; then | |
8485 ac_cv_member_struct_tm_tm_gmtoff=yes | |
8486 else | |
8487 $as_echo "$as_me: failed program was:" >&5 | |
8488 sed 's/^/| /' conftest.$ac_ext >&5 | |
8489 | |
8490 cat >conftest.$ac_ext <<_ACEOF | |
8491 /* confdefs.h. */ | |
8492 _ACEOF | |
8493 cat confdefs.h >>conftest.$ac_ext | |
8494 cat >>conftest.$ac_ext <<_ACEOF | |
8495 /* end confdefs.h. */ | |
8496 #include <time.h> | |
8497 | |
8498 int | |
8499 main () | |
8500 { | |
8501 static struct tm ac_aggr; | |
8502 if (sizeof ac_aggr.tm_gmtoff) | |
8503 return 0; | |
8504 ; | |
8505 return 0; | |
8506 } | |
8507 _ACEOF | |
8508 rm -f conftest.$ac_objext | |
8509 if { (ac_try="$ac_compile" | |
8510 case "(($ac_try" in | |
8511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8512 *) ac_try_echo=$ac_try;; | |
8513 esac | |
8514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8515 $as_echo "$ac_try_echo") >&5 | |
8516 (eval "$ac_compile") 2>conftest.er1 | |
8517 ac_status=$? | |
8518 grep -v '^ *+' conftest.er1 >conftest.err | |
8519 rm -f conftest.er1 | |
8520 cat conftest.err >&5 | |
8521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8522 (exit $ac_status); } && { | |
8523 test -z "$ac_c_werror_flag" || | |
8524 test ! -s conftest.err | |
8525 } && test -s conftest.$ac_objext; then | |
8526 ac_cv_member_struct_tm_tm_gmtoff=yes | |
8527 else | |
8528 $as_echo "$as_me: failed program was:" >&5 | |
8529 sed 's/^/| /' conftest.$ac_ext >&5 | |
8530 | |
8531 ac_cv_member_struct_tm_tm_gmtoff=no | |
8532 fi | |
8533 | |
8534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8535 fi | |
8536 | |
8537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8538 fi | |
8539 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5 | |
8540 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; } | |
8541 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then | |
8542 | |
8543 cat >>confdefs.h <<\_ACEOF | |
8544 #define HAVE_TM_GMTOFF 1 | |
8545 _ACEOF | |
8546 | |
8547 fi | |
8548 | |
8549 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5 | |
8550 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; } | |
8551 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then | |
8552 $as_echo_n "(cached) " >&6 | |
8553 else | |
8554 cat >conftest.$ac_ext <<_ACEOF | |
8555 /* confdefs.h. */ | |
8556 _ACEOF | |
8557 cat confdefs.h >>conftest.$ac_ext | |
8558 cat >>conftest.$ac_ext <<_ACEOF | |
8559 /* end confdefs.h. */ | |
8560 $ac_includes_default | |
8561 #if HAVE_SYS_SOCKET_H | 6658 #if HAVE_SYS_SOCKET_H |
8562 #include <sys/socket.h> | 6659 #include <sys/socket.h> |
8563 #endif | 6660 #endif |
8564 #if HAVE_NET_IF_H | 6661 #if HAVE_NET_IF_H |
8565 #include <net/if.h> | 6662 #include <net/if.h> |
8566 #endif | 6663 #endif |
8567 | 6664 " |
8568 int | 6665 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then : |
8569 main () | 6666 |
8570 { | 6667 cat >>confdefs.h <<_ACEOF |
8571 static struct ifreq ac_aggr; | 6668 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1 |
8572 if (ac_aggr.ifr_flags) | 6669 _ACEOF |
8573 return 0; | 6670 |
8574 ; | 6671 |
8575 return 0; | 6672 fi |
8576 } | 6673 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default |
8577 _ACEOF | |
8578 rm -f conftest.$ac_objext | |
8579 if { (ac_try="$ac_compile" | |
8580 case "(($ac_try" in | |
8581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8582 *) ac_try_echo=$ac_try;; | |
8583 esac | |
8584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8585 $as_echo "$ac_try_echo") >&5 | |
8586 (eval "$ac_compile") 2>conftest.er1 | |
8587 ac_status=$? | |
8588 grep -v '^ *+' conftest.er1 >conftest.err | |
8589 rm -f conftest.er1 | |
8590 cat conftest.err >&5 | |
8591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8592 (exit $ac_status); } && { | |
8593 test -z "$ac_c_werror_flag" || | |
8594 test ! -s conftest.err | |
8595 } && test -s conftest.$ac_objext; then | |
8596 ac_cv_member_struct_ifreq_ifr_flags=yes | |
8597 else | |
8598 $as_echo "$as_me: failed program was:" >&5 | |
8599 sed 's/^/| /' conftest.$ac_ext >&5 | |
8600 | |
8601 cat >conftest.$ac_ext <<_ACEOF | |
8602 /* confdefs.h. */ | |
8603 _ACEOF | |
8604 cat confdefs.h >>conftest.$ac_ext | |
8605 cat >>conftest.$ac_ext <<_ACEOF | |
8606 /* end confdefs.h. */ | |
8607 $ac_includes_default | |
8608 #if HAVE_SYS_SOCKET_H | 6674 #if HAVE_SYS_SOCKET_H |
8609 #include <sys/socket.h> | 6675 #include <sys/socket.h> |
8610 #endif | 6676 #endif |
8611 #if HAVE_NET_IF_H | 6677 #if HAVE_NET_IF_H |
8612 #include <net/if.h> | 6678 #include <net/if.h> |
8613 #endif | 6679 #endif |
8614 | 6680 " |
8615 int | 6681 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then : |
8616 main () | |
8617 { | |
8618 static struct ifreq ac_aggr; | |
8619 if (sizeof ac_aggr.ifr_flags) | |
8620 return 0; | |
8621 ; | |
8622 return 0; | |
8623 } | |
8624 _ACEOF | |
8625 rm -f conftest.$ac_objext | |
8626 if { (ac_try="$ac_compile" | |
8627 case "(($ac_try" in | |
8628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8629 *) ac_try_echo=$ac_try;; | |
8630 esac | |
8631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8632 $as_echo "$ac_try_echo") >&5 | |
8633 (eval "$ac_compile") 2>conftest.er1 | |
8634 ac_status=$? | |
8635 grep -v '^ *+' conftest.er1 >conftest.err | |
8636 rm -f conftest.er1 | |
8637 cat conftest.err >&5 | |
8638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8639 (exit $ac_status); } && { | |
8640 test -z "$ac_c_werror_flag" || | |
8641 test ! -s conftest.err | |
8642 } && test -s conftest.$ac_objext; then | |
8643 ac_cv_member_struct_ifreq_ifr_flags=yes | |
8644 else | |
8645 $as_echo "$as_me: failed program was:" >&5 | |
8646 sed 's/^/| /' conftest.$ac_ext >&5 | |
8647 | |
8648 ac_cv_member_struct_ifreq_ifr_flags=no | |
8649 fi | |
8650 | |
8651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8652 fi | |
8653 | |
8654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8655 fi | |
8656 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5 | |
8657 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; } | |
8658 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then | |
8659 | 6682 |
8660 cat >>confdefs.h <<_ACEOF | 6683 cat >>confdefs.h <<_ACEOF |
8661 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1 | 6684 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1 |
8662 _ACEOF | 6685 _ACEOF |
8663 | 6686 |
8664 | 6687 |
8665 fi | 6688 fi |
8666 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5 | 6689 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default |
8667 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; } | |
8668 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then | |
8669 $as_echo_n "(cached) " >&6 | |
8670 else | |
8671 cat >conftest.$ac_ext <<_ACEOF | |
8672 /* confdefs.h. */ | |
8673 _ACEOF | |
8674 cat confdefs.h >>conftest.$ac_ext | |
8675 cat >>conftest.$ac_ext <<_ACEOF | |
8676 /* end confdefs.h. */ | |
8677 $ac_includes_default | |
8678 #if HAVE_SYS_SOCKET_H | 6690 #if HAVE_SYS_SOCKET_H |
8679 #include <sys/socket.h> | 6691 #include <sys/socket.h> |
8680 #endif | 6692 #endif |
8681 #if HAVE_NET_IF_H | 6693 #if HAVE_NET_IF_H |
8682 #include <net/if.h> | 6694 #include <net/if.h> |
8683 #endif | 6695 #endif |
8684 | 6696 " |
8685 int | 6697 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then : |
8686 main () | 6698 |
8687 { | 6699 cat >>confdefs.h <<_ACEOF |
8688 static struct ifreq ac_aggr; | 6700 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1 |
8689 if (ac_aggr.ifr_hwaddr) | 6701 _ACEOF |
8690 return 0; | 6702 |
8691 ; | 6703 |
8692 return 0; | 6704 fi |
8693 } | 6705 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default |
8694 _ACEOF | |
8695 rm -f conftest.$ac_objext | |
8696 if { (ac_try="$ac_compile" | |
8697 case "(($ac_try" in | |
8698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8699 *) ac_try_echo=$ac_try;; | |
8700 esac | |
8701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8702 $as_echo "$ac_try_echo") >&5 | |
8703 (eval "$ac_compile") 2>conftest.er1 | |
8704 ac_status=$? | |
8705 grep -v '^ *+' conftest.er1 >conftest.err | |
8706 rm -f conftest.er1 | |
8707 cat conftest.err >&5 | |
8708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8709 (exit $ac_status); } && { | |
8710 test -z "$ac_c_werror_flag" || | |
8711 test ! -s conftest.err | |
8712 } && test -s conftest.$ac_objext; then | |
8713 ac_cv_member_struct_ifreq_ifr_hwaddr=yes | |
8714 else | |
8715 $as_echo "$as_me: failed program was:" >&5 | |
8716 sed 's/^/| /' conftest.$ac_ext >&5 | |
8717 | |
8718 cat >conftest.$ac_ext <<_ACEOF | |
8719 /* confdefs.h. */ | |
8720 _ACEOF | |
8721 cat confdefs.h >>conftest.$ac_ext | |
8722 cat >>conftest.$ac_ext <<_ACEOF | |
8723 /* end confdefs.h. */ | |
8724 $ac_includes_default | |
8725 #if HAVE_SYS_SOCKET_H | 6706 #if HAVE_SYS_SOCKET_H |
8726 #include <sys/socket.h> | 6707 #include <sys/socket.h> |
8727 #endif | 6708 #endif |
8728 #if HAVE_NET_IF_H | 6709 #if HAVE_NET_IF_H |
8729 #include <net/if.h> | 6710 #include <net/if.h> |
8730 #endif | 6711 #endif |
8731 | 6712 " |
8732 int | 6713 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then : |
8733 main () | |
8734 { | |
8735 static struct ifreq ac_aggr; | |
8736 if (sizeof ac_aggr.ifr_hwaddr) | |
8737 return 0; | |
8738 ; | |
8739 return 0; | |
8740 } | |
8741 _ACEOF | |
8742 rm -f conftest.$ac_objext | |
8743 if { (ac_try="$ac_compile" | |
8744 case "(($ac_try" in | |
8745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8746 *) ac_try_echo=$ac_try;; | |
8747 esac | |
8748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8749 $as_echo "$ac_try_echo") >&5 | |
8750 (eval "$ac_compile") 2>conftest.er1 | |
8751 ac_status=$? | |
8752 grep -v '^ *+' conftest.er1 >conftest.err | |
8753 rm -f conftest.er1 | |
8754 cat conftest.err >&5 | |
8755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8756 (exit $ac_status); } && { | |
8757 test -z "$ac_c_werror_flag" || | |
8758 test ! -s conftest.err | |
8759 } && test -s conftest.$ac_objext; then | |
8760 ac_cv_member_struct_ifreq_ifr_hwaddr=yes | |
8761 else | |
8762 $as_echo "$as_me: failed program was:" >&5 | |
8763 sed 's/^/| /' conftest.$ac_ext >&5 | |
8764 | |
8765 ac_cv_member_struct_ifreq_ifr_hwaddr=no | |
8766 fi | |
8767 | |
8768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8769 fi | |
8770 | |
8771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8772 fi | |
8773 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5 | |
8774 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; } | |
8775 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then | |
8776 | 6714 |
8777 cat >>confdefs.h <<_ACEOF | 6715 cat >>confdefs.h <<_ACEOF |
8778 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1 | 6716 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1 |
8779 _ACEOF | 6717 _ACEOF |
8780 | 6718 |
8781 | 6719 |
8782 fi | 6720 fi |
8783 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5 | 6721 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default |
8784 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; } | |
8785 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then | |
8786 $as_echo_n "(cached) " >&6 | |
8787 else | |
8788 cat >conftest.$ac_ext <<_ACEOF | |
8789 /* confdefs.h. */ | |
8790 _ACEOF | |
8791 cat confdefs.h >>conftest.$ac_ext | |
8792 cat >>conftest.$ac_ext <<_ACEOF | |
8793 /* end confdefs.h. */ | |
8794 $ac_includes_default | |
8795 #if HAVE_SYS_SOCKET_H | 6722 #if HAVE_SYS_SOCKET_H |
8796 #include <sys/socket.h> | 6723 #include <sys/socket.h> |
8797 #endif | 6724 #endif |
8798 #if HAVE_NET_IF_H | 6725 #if HAVE_NET_IF_H |
8799 #include <net/if.h> | 6726 #include <net/if.h> |
8800 #endif | 6727 #endif |
8801 | 6728 " |
8802 int | 6729 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then : |
8803 main () | |
8804 { | |
8805 static struct ifreq ac_aggr; | |
8806 if (ac_aggr.ifr_netmask) | |
8807 return 0; | |
8808 ; | |
8809 return 0; | |
8810 } | |
8811 _ACEOF | |
8812 rm -f conftest.$ac_objext | |
8813 if { (ac_try="$ac_compile" | |
8814 case "(($ac_try" in | |
8815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8816 *) ac_try_echo=$ac_try;; | |
8817 esac | |
8818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8819 $as_echo "$ac_try_echo") >&5 | |
8820 (eval "$ac_compile") 2>conftest.er1 | |
8821 ac_status=$? | |
8822 grep -v '^ *+' conftest.er1 >conftest.err | |
8823 rm -f conftest.er1 | |
8824 cat conftest.err >&5 | |
8825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8826 (exit $ac_status); } && { | |
8827 test -z "$ac_c_werror_flag" || | |
8828 test ! -s conftest.err | |
8829 } && test -s conftest.$ac_objext; then | |
8830 ac_cv_member_struct_ifreq_ifr_netmask=yes | |
8831 else | |
8832 $as_echo "$as_me: failed program was:" >&5 | |
8833 sed 's/^/| /' conftest.$ac_ext >&5 | |
8834 | |
8835 cat >conftest.$ac_ext <<_ACEOF | |
8836 /* confdefs.h. */ | |
8837 _ACEOF | |
8838 cat confdefs.h >>conftest.$ac_ext | |
8839 cat >>conftest.$ac_ext <<_ACEOF | |
8840 /* end confdefs.h. */ | |
8841 $ac_includes_default | |
8842 #if HAVE_SYS_SOCKET_H | |
8843 #include <sys/socket.h> | |
8844 #endif | |
8845 #if HAVE_NET_IF_H | |
8846 #include <net/if.h> | |
8847 #endif | |
8848 | |
8849 int | |
8850 main () | |
8851 { | |
8852 static struct ifreq ac_aggr; | |
8853 if (sizeof ac_aggr.ifr_netmask) | |
8854 return 0; | |
8855 ; | |
8856 return 0; | |
8857 } | |
8858 _ACEOF | |
8859 rm -f conftest.$ac_objext | |
8860 if { (ac_try="$ac_compile" | |
8861 case "(($ac_try" in | |
8862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8863 *) ac_try_echo=$ac_try;; | |
8864 esac | |
8865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8866 $as_echo "$ac_try_echo") >&5 | |
8867 (eval "$ac_compile") 2>conftest.er1 | |
8868 ac_status=$? | |
8869 grep -v '^ *+' conftest.er1 >conftest.err | |
8870 rm -f conftest.er1 | |
8871 cat conftest.err >&5 | |
8872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8873 (exit $ac_status); } && { | |
8874 test -z "$ac_c_werror_flag" || | |
8875 test ! -s conftest.err | |
8876 } && test -s conftest.$ac_objext; then | |
8877 ac_cv_member_struct_ifreq_ifr_netmask=yes | |
8878 else | |
8879 $as_echo "$as_me: failed program was:" >&5 | |
8880 sed 's/^/| /' conftest.$ac_ext >&5 | |
8881 | |
8882 ac_cv_member_struct_ifreq_ifr_netmask=no | |
8883 fi | |
8884 | |
8885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8886 fi | |
8887 | |
8888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8889 fi | |
8890 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5 | |
8891 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; } | |
8892 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then | |
8893 | |
8894 cat >>confdefs.h <<_ACEOF | |
8895 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1 | |
8896 _ACEOF | |
8897 | |
8898 | |
8899 fi | |
8900 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5 | |
8901 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; } | |
8902 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then | |
8903 $as_echo_n "(cached) " >&6 | |
8904 else | |
8905 cat >conftest.$ac_ext <<_ACEOF | |
8906 /* confdefs.h. */ | |
8907 _ACEOF | |
8908 cat confdefs.h >>conftest.$ac_ext | |
8909 cat >>conftest.$ac_ext <<_ACEOF | |
8910 /* end confdefs.h. */ | |
8911 $ac_includes_default | |
8912 #if HAVE_SYS_SOCKET_H | |
8913 #include <sys/socket.h> | |
8914 #endif | |
8915 #if HAVE_NET_IF_H | |
8916 #include <net/if.h> | |
8917 #endif | |
8918 | |
8919 int | |
8920 main () | |
8921 { | |
8922 static struct ifreq ac_aggr; | |
8923 if (ac_aggr.ifr_broadaddr) | |
8924 return 0; | |
8925 ; | |
8926 return 0; | |
8927 } | |
8928 _ACEOF | |
8929 rm -f conftest.$ac_objext | |
8930 if { (ac_try="$ac_compile" | |
8931 case "(($ac_try" in | |
8932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8933 *) ac_try_echo=$ac_try;; | |
8934 esac | |
8935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8936 $as_echo "$ac_try_echo") >&5 | |
8937 (eval "$ac_compile") 2>conftest.er1 | |
8938 ac_status=$? | |
8939 grep -v '^ *+' conftest.er1 >conftest.err | |
8940 rm -f conftest.er1 | |
8941 cat conftest.err >&5 | |
8942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8943 (exit $ac_status); } && { | |
8944 test -z "$ac_c_werror_flag" || | |
8945 test ! -s conftest.err | |
8946 } && test -s conftest.$ac_objext; then | |
8947 ac_cv_member_struct_ifreq_ifr_broadaddr=yes | |
8948 else | |
8949 $as_echo "$as_me: failed program was:" >&5 | |
8950 sed 's/^/| /' conftest.$ac_ext >&5 | |
8951 | |
8952 cat >conftest.$ac_ext <<_ACEOF | |
8953 /* confdefs.h. */ | |
8954 _ACEOF | |
8955 cat confdefs.h >>conftest.$ac_ext | |
8956 cat >>conftest.$ac_ext <<_ACEOF | |
8957 /* end confdefs.h. */ | |
8958 $ac_includes_default | |
8959 #if HAVE_SYS_SOCKET_H | |
8960 #include <sys/socket.h> | |
8961 #endif | |
8962 #if HAVE_NET_IF_H | |
8963 #include <net/if.h> | |
8964 #endif | |
8965 | |
8966 int | |
8967 main () | |
8968 { | |
8969 static struct ifreq ac_aggr; | |
8970 if (sizeof ac_aggr.ifr_broadaddr) | |
8971 return 0; | |
8972 ; | |
8973 return 0; | |
8974 } | |
8975 _ACEOF | |
8976 rm -f conftest.$ac_objext | |
8977 if { (ac_try="$ac_compile" | |
8978 case "(($ac_try" in | |
8979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8980 *) ac_try_echo=$ac_try;; | |
8981 esac | |
8982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8983 $as_echo "$ac_try_echo") >&5 | |
8984 (eval "$ac_compile") 2>conftest.er1 | |
8985 ac_status=$? | |
8986 grep -v '^ *+' conftest.er1 >conftest.err | |
8987 rm -f conftest.er1 | |
8988 cat conftest.err >&5 | |
8989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8990 (exit $ac_status); } && { | |
8991 test -z "$ac_c_werror_flag" || | |
8992 test ! -s conftest.err | |
8993 } && test -s conftest.$ac_objext; then | |
8994 ac_cv_member_struct_ifreq_ifr_broadaddr=yes | |
8995 else | |
8996 $as_echo "$as_me: failed program was:" >&5 | |
8997 sed 's/^/| /' conftest.$ac_ext >&5 | |
8998 | |
8999 ac_cv_member_struct_ifreq_ifr_broadaddr=no | |
9000 fi | |
9001 | |
9002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9003 fi | |
9004 | |
9005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9006 fi | |
9007 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5 | |
9008 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; } | |
9009 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then | |
9010 | |
9011 cat >>confdefs.h <<_ACEOF | |
9012 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1 | |
9013 _ACEOF | |
9014 | |
9015 | |
9016 fi | |
9017 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5 | |
9018 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; } | |
9019 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then | |
9020 $as_echo_n "(cached) " >&6 | |
9021 else | |
9022 cat >conftest.$ac_ext <<_ACEOF | |
9023 /* confdefs.h. */ | |
9024 _ACEOF | |
9025 cat confdefs.h >>conftest.$ac_ext | |
9026 cat >>conftest.$ac_ext <<_ACEOF | |
9027 /* end confdefs.h. */ | |
9028 $ac_includes_default | |
9029 #if HAVE_SYS_SOCKET_H | |
9030 #include <sys/socket.h> | |
9031 #endif | |
9032 #if HAVE_NET_IF_H | |
9033 #include <net/if.h> | |
9034 #endif | |
9035 | |
9036 int | |
9037 main () | |
9038 { | |
9039 static struct ifreq ac_aggr; | |
9040 if (ac_aggr.ifr_addr) | |
9041 return 0; | |
9042 ; | |
9043 return 0; | |
9044 } | |
9045 _ACEOF | |
9046 rm -f conftest.$ac_objext | |
9047 if { (ac_try="$ac_compile" | |
9048 case "(($ac_try" in | |
9049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9050 *) ac_try_echo=$ac_try;; | |
9051 esac | |
9052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9053 $as_echo "$ac_try_echo") >&5 | |
9054 (eval "$ac_compile") 2>conftest.er1 | |
9055 ac_status=$? | |
9056 grep -v '^ *+' conftest.er1 >conftest.err | |
9057 rm -f conftest.er1 | |
9058 cat conftest.err >&5 | |
9059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9060 (exit $ac_status); } && { | |
9061 test -z "$ac_c_werror_flag" || | |
9062 test ! -s conftest.err | |
9063 } && test -s conftest.$ac_objext; then | |
9064 ac_cv_member_struct_ifreq_ifr_addr=yes | |
9065 else | |
9066 $as_echo "$as_me: failed program was:" >&5 | |
9067 sed 's/^/| /' conftest.$ac_ext >&5 | |
9068 | |
9069 cat >conftest.$ac_ext <<_ACEOF | |
9070 /* confdefs.h. */ | |
9071 _ACEOF | |
9072 cat confdefs.h >>conftest.$ac_ext | |
9073 cat >>conftest.$ac_ext <<_ACEOF | |
9074 /* end confdefs.h. */ | |
9075 $ac_includes_default | |
9076 #if HAVE_SYS_SOCKET_H | |
9077 #include <sys/socket.h> | |
9078 #endif | |
9079 #if HAVE_NET_IF_H | |
9080 #include <net/if.h> | |
9081 #endif | |
9082 | |
9083 int | |
9084 main () | |
9085 { | |
9086 static struct ifreq ac_aggr; | |
9087 if (sizeof ac_aggr.ifr_addr) | |
9088 return 0; | |
9089 ; | |
9090 return 0; | |
9091 } | |
9092 _ACEOF | |
9093 rm -f conftest.$ac_objext | |
9094 if { (ac_try="$ac_compile" | |
9095 case "(($ac_try" in | |
9096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9097 *) ac_try_echo=$ac_try;; | |
9098 esac | |
9099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9100 $as_echo "$ac_try_echo") >&5 | |
9101 (eval "$ac_compile") 2>conftest.er1 | |
9102 ac_status=$? | |
9103 grep -v '^ *+' conftest.er1 >conftest.err | |
9104 rm -f conftest.er1 | |
9105 cat conftest.err >&5 | |
9106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9107 (exit $ac_status); } && { | |
9108 test -z "$ac_c_werror_flag" || | |
9109 test ! -s conftest.err | |
9110 } && test -s conftest.$ac_objext; then | |
9111 ac_cv_member_struct_ifreq_ifr_addr=yes | |
9112 else | |
9113 $as_echo "$as_me: failed program was:" >&5 | |
9114 sed 's/^/| /' conftest.$ac_ext >&5 | |
9115 | |
9116 ac_cv_member_struct_ifreq_ifr_addr=no | |
9117 fi | |
9118 | |
9119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9120 fi | |
9121 | |
9122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9123 fi | |
9124 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5 | |
9125 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; } | |
9126 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then | |
9127 | 6730 |
9128 cat >>confdefs.h <<_ACEOF | 6731 cat >>confdefs.h <<_ACEOF |
9129 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1 | 6732 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1 |
9130 _ACEOF | 6733 _ACEOF |
9131 | 6734 |
9132 | 6735 |
9133 fi | 6736 fi |
9134 | 6737 |
9135 | 6738 |
9136 | 6739 |
9137 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5 | 6740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5 |
9138 $as_echo_n "checking for function prototypes... " >&6; } | 6741 $as_echo_n "checking for function prototypes... " >&6; } |
9139 if test "$ac_cv_prog_cc_c89" != no; then | 6742 if test "$ac_cv_prog_cc_c89" != no; then |
9140 { $as_echo "$as_me:$LINENO: result: yes" >&5 | 6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
9141 $as_echo "yes" >&6; } | 6744 $as_echo "yes" >&6; } |
9142 | 6745 |
9143 cat >>confdefs.h <<\_ACEOF | 6746 $as_echo "#define PROTOTYPES 1" >>confdefs.h |
9144 #define PROTOTYPES 1 | 6747 |
9145 _ACEOF | 6748 |
9146 | 6749 $as_echo "#define __PROTOTYPES 1" >>confdefs.h |
9147 | 6750 |
9148 cat >>confdefs.h <<\_ACEOF | 6751 else |
9149 #define __PROTOTYPES 1 | 6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9150 _ACEOF | |
9151 | |
9152 else | |
9153 { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9154 $as_echo "no" >&6; } | 6753 $as_echo "no" >&6; } |
9155 fi | 6754 fi |
9156 | 6755 |
9157 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5 | 6756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 |
9158 $as_echo_n "checking for working volatile... " >&6; } | 6757 $as_echo_n "checking for working volatile... " >&6; } |
9159 if test "${ac_cv_c_volatile+set}" = set; then | 6758 if test "${ac_cv_c_volatile+set}" = set; then : |
9160 $as_echo_n "(cached) " >&6 | 6759 $as_echo_n "(cached) " >&6 |
9161 else | 6760 else |
9162 cat >conftest.$ac_ext <<_ACEOF | 6761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9163 /* confdefs.h. */ | |
9164 _ACEOF | |
9165 cat confdefs.h >>conftest.$ac_ext | |
9166 cat >>conftest.$ac_ext <<_ACEOF | |
9167 /* end confdefs.h. */ | 6762 /* end confdefs.h. */ |
9168 | 6763 |
9169 int | 6764 int |
9170 main () | 6765 main () |
9171 { | 6766 { |
9175 return !x && !y; | 6770 return !x && !y; |
9176 ; | 6771 ; |
9177 return 0; | 6772 return 0; |
9178 } | 6773 } |
9179 _ACEOF | 6774 _ACEOF |
9180 rm -f conftest.$ac_objext | 6775 if ac_fn_c_try_compile "$LINENO"; then : |
9181 if { (ac_try="$ac_compile" | |
9182 case "(($ac_try" in | |
9183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9184 *) ac_try_echo=$ac_try;; | |
9185 esac | |
9186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9187 $as_echo "$ac_try_echo") >&5 | |
9188 (eval "$ac_compile") 2>conftest.er1 | |
9189 ac_status=$? | |
9190 grep -v '^ *+' conftest.er1 >conftest.err | |
9191 rm -f conftest.er1 | |
9192 cat conftest.err >&5 | |
9193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9194 (exit $ac_status); } && { | |
9195 test -z "$ac_c_werror_flag" || | |
9196 test ! -s conftest.err | |
9197 } && test -s conftest.$ac_objext; then | |
9198 ac_cv_c_volatile=yes | 6776 ac_cv_c_volatile=yes |
9199 else | 6777 else |
9200 $as_echo "$as_me: failed program was:" >&5 | 6778 ac_cv_c_volatile=no |
9201 sed 's/^/| /' conftest.$ac_ext >&5 | 6779 fi |
9202 | |
9203 ac_cv_c_volatile=no | |
9204 fi | |
9205 | |
9206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 6780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9207 fi | 6781 fi |
9208 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5 | 6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 |
9209 $as_echo "$ac_cv_c_volatile" >&6; } | 6783 $as_echo "$ac_cv_c_volatile" >&6; } |
9210 if test $ac_cv_c_volatile = no; then | 6784 if test $ac_cv_c_volatile = no; then |
9211 | 6785 |
9212 cat >>confdefs.h <<\_ACEOF | 6786 $as_echo "#define volatile /**/" >>confdefs.h |
9213 #define volatile /**/ | 6787 |
9214 _ACEOF | 6788 fi |
9215 | 6789 |
9216 fi | 6790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
9217 | |
9218 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
9219 $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | 6791 $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
9220 if test "${ac_cv_c_const+set}" = set; then | 6792 if test "${ac_cv_c_const+set}" = set; then : |
9221 $as_echo_n "(cached) " >&6 | 6793 $as_echo_n "(cached) " >&6 |
9222 else | 6794 else |
9223 cat >conftest.$ac_ext <<_ACEOF | 6795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9224 /* confdefs.h. */ | |
9225 _ACEOF | |
9226 cat confdefs.h >>conftest.$ac_ext | |
9227 cat >>conftest.$ac_ext <<_ACEOF | |
9228 /* end confdefs.h. */ | 6796 /* end confdefs.h. */ |
9229 | 6797 |
9230 int | 6798 int |
9231 main () | 6799 main () |
9232 { | 6800 { |
9282 | 6850 |
9283 ; | 6851 ; |
9284 return 0; | 6852 return 0; |
9285 } | 6853 } |
9286 _ACEOF | 6854 _ACEOF |
9287 rm -f conftest.$ac_objext | 6855 if ac_fn_c_try_compile "$LINENO"; then : |
9288 if { (ac_try="$ac_compile" | |
9289 case "(($ac_try" in | |
9290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9291 *) ac_try_echo=$ac_try;; | |
9292 esac | |
9293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9294 $as_echo "$ac_try_echo") >&5 | |
9295 (eval "$ac_compile") 2>conftest.er1 | |
9296 ac_status=$? | |
9297 grep -v '^ *+' conftest.er1 >conftest.err | |
9298 rm -f conftest.er1 | |
9299 cat conftest.err >&5 | |
9300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9301 (exit $ac_status); } && { | |
9302 test -z "$ac_c_werror_flag" || | |
9303 test ! -s conftest.err | |
9304 } && test -s conftest.$ac_objext; then | |
9305 ac_cv_c_const=yes | 6856 ac_cv_c_const=yes |
9306 else | 6857 else |
9307 $as_echo "$as_me: failed program was:" >&5 | 6858 ac_cv_c_const=no |
9308 sed 's/^/| /' conftest.$ac_ext >&5 | 6859 fi |
9309 | |
9310 ac_cv_c_const=no | |
9311 fi | |
9312 | |
9313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 6860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9314 fi | 6861 fi |
9315 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | 6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
9316 $as_echo "$ac_cv_c_const" >&6; } | 6863 $as_echo "$ac_cv_c_const" >&6; } |
9317 if test $ac_cv_c_const = no; then | 6864 if test $ac_cv_c_const = no; then |
9318 | 6865 |
9319 cat >>confdefs.h <<\_ACEOF | 6866 $as_echo "#define const /**/" >>confdefs.h |
9320 #define const /**/ | 6867 |
9321 _ACEOF | 6868 fi |
9322 | 6869 |
9323 fi | 6870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5 |
9324 | |
9325 { $as_echo "$as_me:$LINENO: checking for void * support" >&5 | |
9326 $as_echo_n "checking for void * support... " >&6; } | 6871 $as_echo_n "checking for void * support... " >&6; } |
9327 if test "${emacs_cv_void_star+set}" = set; then | 6872 if test "${emacs_cv_void_star+set}" = set; then : |
9328 $as_echo_n "(cached) " >&6 | 6873 $as_echo_n "(cached) " >&6 |
9329 else | 6874 else |
9330 cat >conftest.$ac_ext <<_ACEOF | 6875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9331 /* confdefs.h. */ | |
9332 _ACEOF | |
9333 cat confdefs.h >>conftest.$ac_ext | |
9334 cat >>conftest.$ac_ext <<_ACEOF | |
9335 /* end confdefs.h. */ | 6876 /* end confdefs.h. */ |
9336 | 6877 |
9337 int | 6878 int |
9338 main () | 6879 main () |
9339 { | 6880 { |
9340 void * foo; | 6881 void * foo; |
9341 ; | 6882 ; |
9342 return 0; | 6883 return 0; |
9343 } | 6884 } |
9344 _ACEOF | 6885 _ACEOF |
9345 rm -f conftest.$ac_objext | 6886 if ac_fn_c_try_compile "$LINENO"; then : |
9346 if { (ac_try="$ac_compile" | |
9347 case "(($ac_try" in | |
9348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9349 *) ac_try_echo=$ac_try;; | |
9350 esac | |
9351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9352 $as_echo "$ac_try_echo") >&5 | |
9353 (eval "$ac_compile") 2>conftest.er1 | |
9354 ac_status=$? | |
9355 grep -v '^ *+' conftest.er1 >conftest.err | |
9356 rm -f conftest.er1 | |
9357 cat conftest.err >&5 | |
9358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9359 (exit $ac_status); } && { | |
9360 test -z "$ac_c_werror_flag" || | |
9361 test ! -s conftest.err | |
9362 } && test -s conftest.$ac_objext; then | |
9363 emacs_cv_void_star=yes | 6887 emacs_cv_void_star=yes |
9364 else | 6888 else |
9365 $as_echo "$as_me: failed program was:" >&5 | 6889 emacs_cv_void_star=no |
9366 sed 's/^/| /' conftest.$ac_ext >&5 | 6890 fi |
9367 | |
9368 emacs_cv_void_star=no | |
9369 fi | |
9370 | |
9371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 6891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9372 fi | 6892 fi |
9373 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5 | 6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5 |
9374 $as_echo "$emacs_cv_void_star" >&6; } | 6894 $as_echo "$emacs_cv_void_star" >&6; } |
9375 if test $emacs_cv_void_star = yes; then | 6895 if test $emacs_cv_void_star = yes; then |
9376 cat >>confdefs.h <<\_ACEOF | 6896 $as_echo "#define POINTER_TYPE void" >>confdefs.h |
9377 #define POINTER_TYPE void | 6897 |
9378 _ACEOF | 6898 else |
9379 | 6899 $as_echo "#define POINTER_TYPE char" >>confdefs.h |
9380 else | 6900 |
9381 cat >>confdefs.h <<\_ACEOF | 6901 fi |
9382 #define POINTER_TYPE char | 6902 |
9383 _ACEOF | 6903 |
9384 | 6904 |
9385 fi | 6905 |
9386 | 6906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
9387 | |
9388 | |
9389 | |
9390 | |
9391 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
9392 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | 6907 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
9393 set x ${MAKE-make} | 6908 set x ${MAKE-make} |
9394 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | 6909 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
9395 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then | 6910 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : |
9396 $as_echo_n "(cached) " >&6 | 6911 $as_echo_n "(cached) " >&6 |
9397 else | 6912 else |
9398 cat >conftest.make <<\_ACEOF | 6913 cat >conftest.make <<\_ACEOF |
9399 SHELL = /bin/sh | 6914 SHELL = /bin/sh |
9400 all: | 6915 all: |
9408 eval ac_cv_prog_make_${ac_make}_set=no;; | 6923 eval ac_cv_prog_make_${ac_make}_set=no;; |
9409 esac | 6924 esac |
9410 rm -f conftest.make | 6925 rm -f conftest.make |
9411 fi | 6926 fi |
9412 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | 6927 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
9413 { $as_echo "$as_me:$LINENO: result: yes" >&5 | 6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
9414 $as_echo "yes" >&6; } | 6929 $as_echo "yes" >&6; } |
9415 SET_MAKE= | 6930 SET_MAKE= |
9416 else | 6931 else |
9417 { $as_echo "$as_me:$LINENO: result: no" >&5 | 6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9418 $as_echo "no" >&6; } | 6933 $as_echo "no" >&6; } |
9419 SET_MAKE="MAKE=${MAKE-make}" | 6934 SET_MAKE="MAKE=${MAKE-make}" |
9420 fi | 6935 fi |
9421 | 6936 |
9422 | 6937 |
9423 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then | 6938 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then |
9424 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5 | 6939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5 |
9425 $as_echo_n "checking whether we are using GNU Make... " >&6; } | 6940 $as_echo_n "checking whether we are using GNU Make... " >&6; } |
9426 HAVE_GNU_MAKE=no | 6941 HAVE_GNU_MAKE=no |
9427 testval=`make --version 2>/dev/null | grep 'GNU Make'` | 6942 testval=`make --version 2>/dev/null | grep 'GNU Make'` |
9428 if test "x$testval" != x; then | 6943 if test "x$testval" != x; then |
9429 HAVE_GNU_MAKE=yes | 6944 HAVE_GNU_MAKE=yes |
9430 else | 6945 else |
9431 ac_enable_autodepend=no | 6946 ac_enable_autodepend=no |
9432 fi | 6947 fi |
9433 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5 | 6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5 |
9434 $as_echo "$HAVE_GNU_MAKE" >&6; } | 6949 $as_echo "$HAVE_GNU_MAKE" >&6; } |
9435 if test $HAVE_GNU_MAKE = yes; then | 6950 if test $HAVE_GNU_MAKE = yes; then |
9436 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5 | 6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5 |
9437 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; } | 6952 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; } |
9438 SAVE_CFLAGS="$CFLAGS" | 6953 SAVE_CFLAGS="$CFLAGS" |
9439 CFLAGS="$CFLAGS -MMD -MF deps.d" | 6954 CFLAGS="$CFLAGS -MMD -MF deps.d" |
9440 cat >conftest.$ac_ext <<_ACEOF | 6955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9441 /* confdefs.h. */ | |
9442 _ACEOF | |
9443 cat confdefs.h >>conftest.$ac_ext | |
9444 cat >>conftest.$ac_ext <<_ACEOF | |
9445 /* end confdefs.h. */ | 6956 /* end confdefs.h. */ |
9446 | 6957 |
9447 int | 6958 int |
9448 main () | 6959 main () |
9449 { | 6960 { |
9450 | 6961 |
9451 ; | 6962 ; |
9452 return 0; | 6963 return 0; |
9453 } | 6964 } |
9454 _ACEOF | 6965 _ACEOF |
9455 rm -f conftest.$ac_objext | 6966 if ac_fn_c_try_compile "$LINENO"; then : |
9456 if { (ac_try="$ac_compile" | 6967 |
9457 case "(($ac_try" in | 6968 else |
9458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 6969 ac_enable_autodepend=no |
9459 *) ac_try_echo=$ac_try;; | 6970 fi |
9460 esac | |
9461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9462 $as_echo "$ac_try_echo") >&5 | |
9463 (eval "$ac_compile") 2>conftest.er1 | |
9464 ac_status=$? | |
9465 grep -v '^ *+' conftest.er1 >conftest.err | |
9466 rm -f conftest.er1 | |
9467 cat conftest.err >&5 | |
9468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9469 (exit $ac_status); } && { | |
9470 test -z "$ac_c_werror_flag" || | |
9471 test ! -s conftest.err | |
9472 } && test -s conftest.$ac_objext; then | |
9473 : | |
9474 else | |
9475 $as_echo "$as_me: failed program was:" >&5 | |
9476 sed 's/^/| /' conftest.$ac_ext >&5 | |
9477 | |
9478 ac_enable_autodepend=no | |
9479 fi | |
9480 | |
9481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 6971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9482 CFLAGS="$SAVE_CFLAGS" | 6972 CFLAGS="$SAVE_CFLAGS" |
9483 test -f deps.d || ac_enable_autodepend=no | 6973 test -f deps.d || ac_enable_autodepend=no |
9484 rm -rf deps.d | 6974 rm -rf deps.d |
9485 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5 | 6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5 |
9486 $as_echo "$ac_enable_autodepend" >&6; } | 6976 $as_echo "$ac_enable_autodepend" >&6; } |
9487 fi | 6977 fi |
9488 if test $ac_enable_autodepend = yes; then | 6978 if test $ac_enable_autodepend = yes; then |
9489 | 6979 |
9490 cat >>confdefs.h <<\_ACEOF | 6980 $as_echo "#define AUTO_DEPEND 1" >>confdefs.h |
9491 #define AUTO_DEPEND 1 | |
9492 _ACEOF | |
9493 | 6981 |
9494 fi | 6982 fi |
9495 fi | 6983 fi |
9496 | 6984 |
9497 { $as_echo "$as_me:$LINENO: checking for long file names" >&5 | 6985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5 |
9498 $as_echo_n "checking for long file names... " >&6; } | 6986 $as_echo_n "checking for long file names... " >&6; } |
9499 if test "${ac_cv_sys_long_file_names+set}" = set; then | 6987 if test "${ac_cv_sys_long_file_names+set}" = set; then : |
9500 $as_echo_n "(cached) " >&6 | 6988 $as_echo_n "(cached) " >&6 |
9501 else | 6989 else |
9502 ac_cv_sys_long_file_names=yes | 6990 ac_cv_sys_long_file_names=yes |
9503 # Test for long file names in all the places we know might matter: | 6991 # Test for long file names in all the places we know might matter: |
9504 # . the current directory, where building will happen | 6992 # . the current directory, where building will happen |
9524 ac_cv_sys_long_file_names=no | 7012 ac_cv_sys_long_file_names=no |
9525 rm -f -r "$ac_xdir" 2>/dev/null | 7013 rm -f -r "$ac_xdir" 2>/dev/null |
9526 test $ac_cv_sys_long_file_names = no && break | 7014 test $ac_cv_sys_long_file_names = no && break |
9527 done | 7015 done |
9528 fi | 7016 fi |
9529 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5 | 7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5 |
9530 $as_echo "$ac_cv_sys_long_file_names" >&6; } | 7018 $as_echo "$ac_cv_sys_long_file_names" >&6; } |
9531 if test $ac_cv_sys_long_file_names = yes; then | 7019 if test $ac_cv_sys_long_file_names = yes; then |
9532 | 7020 |
9533 cat >>confdefs.h <<\_ACEOF | 7021 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h |
9534 #define HAVE_LONG_FILE_NAMES 1 | |
9535 _ACEOF | |
9536 | 7022 |
9537 fi | 7023 fi |
9538 | 7024 |
9539 | 7025 |
9540 #### Choose a window system. | 7026 #### Choose a window system. |
9541 | 7027 |
9542 { $as_echo "$as_me:$LINENO: checking for X" >&5 | 7028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 |
9543 $as_echo_n "checking for X... " >&6; } | 7029 $as_echo_n "checking for X... " >&6; } |
9544 | 7030 |
9545 | 7031 |
9546 # Check whether --with-x was given. | 7032 # Check whether --with-x was given. |
9547 if test "${with_x+set}" = set; then | 7033 if test "${with_x+set}" = set; then : |
9548 withval=$with_x; | 7034 withval=$with_x; |
9549 fi | 7035 fi |
9550 | 7036 |
9551 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | 7037 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
9552 if test "x$with_x" = xno; then | 7038 if test "x$with_x" = xno; then |
9553 # The user explicitly disabled X. | 7039 # The user explicitly disabled X. |
9554 have_x=disabled | 7040 have_x=disabled |
9555 else | 7041 else |
9556 case $x_includes,$x_libraries in #( | 7042 case $x_includes,$x_libraries in #( |
9557 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 | 7043 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #( |
9558 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;} | 7044 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then : |
9559 { (exit 1); exit 1; }; };; #( | |
9560 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then | |
9561 $as_echo_n "(cached) " >&6 | 7045 $as_echo_n "(cached) " >&6 |
9562 else | 7046 else |
9563 # One or both of the vars are not set, and there is no cached value. | 7047 # One or both of the vars are not set, and there is no cached value. |
9564 ac_x_includes=no ac_x_libraries=no | 7048 ac_x_includes=no ac_x_libraries=no |
9565 rm -f -r conftest.dir | 7049 rm -f -r conftest.dir |
9591 case $ac_im_incroot in | 7075 case $ac_im_incroot in |
9592 /usr/include) ac_x_includes= ;; | 7076 /usr/include) ac_x_includes= ;; |
9593 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | 7077 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
9594 esac | 7078 esac |
9595 case $ac_im_usrlibdir in | 7079 case $ac_im_usrlibdir in |
9596 /usr/lib | /lib) ;; | 7080 /usr/lib | /usr/lib64 | /lib | /lib64) ;; |
9597 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | 7081 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
9598 esac | 7082 esac |
9599 fi | 7083 fi |
9600 cd .. | 7084 cd .. |
9601 rm -f -r conftest.dir | 7085 rm -f -r conftest.dir |
9603 | 7087 |
9604 # Standard set of common directories for X headers. | 7088 # Standard set of common directories for X headers. |
9605 # Check X11 before X11Rn because it is often a symlink to the current release. | 7089 # Check X11 before X11Rn because it is often a symlink to the current release. |
9606 ac_x_header_dirs=' | 7090 ac_x_header_dirs=' |
9607 /usr/X11/include | 7091 /usr/X11/include |
7092 /usr/X11R7/include | |
9608 /usr/X11R6/include | 7093 /usr/X11R6/include |
9609 /usr/X11R5/include | 7094 /usr/X11R5/include |
9610 /usr/X11R4/include | 7095 /usr/X11R4/include |
9611 | 7096 |
9612 /usr/include/X11 | 7097 /usr/include/X11 |
7098 /usr/include/X11R7 | |
9613 /usr/include/X11R6 | 7099 /usr/include/X11R6 |
9614 /usr/include/X11R5 | 7100 /usr/include/X11R5 |
9615 /usr/include/X11R4 | 7101 /usr/include/X11R4 |
9616 | 7102 |
9617 /usr/local/X11/include | 7103 /usr/local/X11/include |
7104 /usr/local/X11R7/include | |
9618 /usr/local/X11R6/include | 7105 /usr/local/X11R6/include |
9619 /usr/local/X11R5/include | 7106 /usr/local/X11R5/include |
9620 /usr/local/X11R4/include | 7107 /usr/local/X11R4/include |
9621 | 7108 |
9622 /usr/local/include/X11 | 7109 /usr/local/include/X11 |
7110 /usr/local/include/X11R7 | |
9623 /usr/local/include/X11R6 | 7111 /usr/local/include/X11R6 |
9624 /usr/local/include/X11R5 | 7112 /usr/local/include/X11R5 |
9625 /usr/local/include/X11R4 | 7113 /usr/local/include/X11R4 |
9626 | 7114 |
9627 /usr/X386/include | 7115 /usr/X386/include |
9639 /usr/openwin/share/include' | 7127 /usr/openwin/share/include' |
9640 | 7128 |
9641 if test "$ac_x_includes" = no; then | 7129 if test "$ac_x_includes" = no; then |
9642 # Guess where to find include files, by looking for Xlib.h. | 7130 # Guess where to find include files, by looking for Xlib.h. |
9643 # First, try using that file with no special directory specified. | 7131 # First, try using that file with no special directory specified. |
9644 cat >conftest.$ac_ext <<_ACEOF | 7132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9645 /* confdefs.h. */ | |
9646 _ACEOF | |
9647 cat confdefs.h >>conftest.$ac_ext | |
9648 cat >>conftest.$ac_ext <<_ACEOF | |
9649 /* end confdefs.h. */ | 7133 /* end confdefs.h. */ |
9650 #include <X11/Xlib.h> | 7134 #include <X11/Xlib.h> |
9651 _ACEOF | 7135 _ACEOF |
9652 if { (ac_try="$ac_cpp conftest.$ac_ext" | 7136 if ac_fn_c_try_cpp "$LINENO"; then : |
9653 case "(($ac_try" in | |
9654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9655 *) ac_try_echo=$ac_try;; | |
9656 esac | |
9657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9658 $as_echo "$ac_try_echo") >&5 | |
9659 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
9660 ac_status=$? | |
9661 grep -v '^ *+' conftest.er1 >conftest.err | |
9662 rm -f conftest.er1 | |
9663 cat conftest.err >&5 | |
9664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9665 (exit $ac_status); } >/dev/null && { | |
9666 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9667 test ! -s conftest.err | |
9668 }; then | |
9669 # We can compile using X headers with no special include directory. | 7137 # We can compile using X headers with no special include directory. |
9670 ac_x_includes= | 7138 ac_x_includes= |
9671 else | 7139 else |
9672 $as_echo "$as_me: failed program was:" >&5 | |
9673 sed 's/^/| /' conftest.$ac_ext >&5 | |
9674 | |
9675 for ac_dir in $ac_x_header_dirs; do | 7140 for ac_dir in $ac_x_header_dirs; do |
9676 if test -r "$ac_dir/X11/Xlib.h"; then | 7141 if test -r "$ac_dir/X11/Xlib.h"; then |
9677 ac_x_includes=$ac_dir | 7142 ac_x_includes=$ac_dir |
9678 break | 7143 break |
9679 fi | 7144 fi |
9680 done | 7145 done |
9681 fi | 7146 fi |
9682 | |
9683 rm -f conftest.err conftest.$ac_ext | 7147 rm -f conftest.err conftest.$ac_ext |
9684 fi # $ac_x_includes = no | 7148 fi # $ac_x_includes = no |
9685 | 7149 |
9686 if test "$ac_x_libraries" = no; then | 7150 if test "$ac_x_libraries" = no; then |
9687 # Check for the libraries. | 7151 # Check for the libraries. |
9688 # See if we find them without any special options. | 7152 # See if we find them without any special options. |
9689 # Don't add to $LIBS permanently. | 7153 # Don't add to $LIBS permanently. |
9690 ac_save_LIBS=$LIBS | 7154 ac_save_LIBS=$LIBS |
9691 LIBS="-lX11 $LIBS" | 7155 LIBS="-lX11 $LIBS" |
9692 cat >conftest.$ac_ext <<_ACEOF | 7156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9693 /* confdefs.h. */ | |
9694 _ACEOF | |
9695 cat confdefs.h >>conftest.$ac_ext | |
9696 cat >>conftest.$ac_ext <<_ACEOF | |
9697 /* end confdefs.h. */ | 7157 /* end confdefs.h. */ |
9698 #include <X11/Xlib.h> | 7158 #include <X11/Xlib.h> |
9699 int | 7159 int |
9700 main () | 7160 main () |
9701 { | 7161 { |
9702 XrmInitialize () | 7162 XrmInitialize () |
9703 ; | 7163 ; |
9704 return 0; | 7164 return 0; |
9705 } | 7165 } |
9706 _ACEOF | 7166 _ACEOF |
9707 rm -f conftest.$ac_objext conftest$ac_exeext | 7167 if ac_fn_c_try_link "$LINENO"; then : |
9708 if { (ac_try="$ac_link" | |
9709 case "(($ac_try" in | |
9710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9711 *) ac_try_echo=$ac_try;; | |
9712 esac | |
9713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9714 $as_echo "$ac_try_echo") >&5 | |
9715 (eval "$ac_link") 2>conftest.er1 | |
9716 ac_status=$? | |
9717 grep -v '^ *+' conftest.er1 >conftest.err | |
9718 rm -f conftest.er1 | |
9719 cat conftest.err >&5 | |
9720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9721 (exit $ac_status); } && { | |
9722 test -z "$ac_c_werror_flag" || | |
9723 test ! -s conftest.err | |
9724 } && test -s conftest$ac_exeext && { | |
9725 test "$cross_compiling" = yes || | |
9726 $as_test_x conftest$ac_exeext | |
9727 }; then | |
9728 LIBS=$ac_save_LIBS | 7168 LIBS=$ac_save_LIBS |
9729 # We can link X programs with no special library path. | 7169 # We can link X programs with no special library path. |
9730 ac_x_libraries= | 7170 ac_x_libraries= |
9731 else | 7171 else |
9732 $as_echo "$as_me: failed program was:" >&5 | 7172 LIBS=$ac_save_LIBS |
9733 sed 's/^/| /' conftest.$ac_ext >&5 | |
9734 | |
9735 LIBS=$ac_save_LIBS | |
9736 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | 7173 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
9737 do | 7174 do |
9738 # Don't even attempt the hair of trying to link an X program! | 7175 # Don't even attempt the hair of trying to link an X program! |
9739 for ac_extension in a so sl dylib la dll; do | 7176 for ac_extension in a so sl dylib la dll; do |
9740 if test -r "$ac_dir/libX11.$ac_extension"; then | 7177 if test -r "$ac_dir/libX11.$ac_extension"; then |
9742 break 2 | 7179 break 2 |
9743 fi | 7180 fi |
9744 done | 7181 done |
9745 done | 7182 done |
9746 fi | 7183 fi |
9747 | 7184 rm -f core conftest.err conftest.$ac_objext \ |
9748 rm -rf conftest.dSYM | 7185 conftest$ac_exeext conftest.$ac_ext |
9749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
9750 conftest$ac_exeext conftest.$ac_ext | |
9751 fi # $ac_x_libraries = no | 7186 fi # $ac_x_libraries = no |
9752 | 7187 |
9753 case $ac_x_includes,$ac_x_libraries in #( | 7188 case $ac_x_includes,$ac_x_libraries in #( |
9754 no,* | *,no | *\'*) | 7189 no,* | *,no | *\'*) |
9755 # Didn't find X, or a directory has "'" in its name. | 7190 # Didn't find X, or a directory has "'" in its name. |
9766 esac | 7201 esac |
9767 eval "$ac_cv_have_x" | 7202 eval "$ac_cv_have_x" |
9768 fi # $with_x != no | 7203 fi # $with_x != no |
9769 | 7204 |
9770 if test "$have_x" != yes; then | 7205 if test "$have_x" != yes; then |
9771 { $as_echo "$as_me:$LINENO: result: $have_x" >&5 | 7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 |
9772 $as_echo "$have_x" >&6; } | 7207 $as_echo "$have_x" >&6; } |
9773 no_x=yes | 7208 no_x=yes |
9774 else | 7209 else |
9775 # If each of the values was on the command line, it overrides each guess. | 7210 # If each of the values was on the command line, it overrides each guess. |
9776 test "x$x_includes" = xNONE && x_includes=$ac_x_includes | 7211 test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
9777 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | 7212 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
9778 # Update the cache value to reflect the command line values. | 7213 # Update the cache value to reflect the command line values. |
9779 ac_cv_have_x="have_x=yes\ | 7214 ac_cv_have_x="have_x=yes\ |
9780 ac_x_includes='$x_includes'\ | 7215 ac_x_includes='$x_includes'\ |
9781 ac_x_libraries='$x_libraries'" | 7216 ac_x_libraries='$x_libraries'" |
9782 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 | 7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 |
9783 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } | 7218 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } |
9784 fi | 7219 fi |
9785 | 7220 |
9786 if test "$no_x" = yes; then | 7221 if test "$no_x" = yes; then |
9787 window_system=none | 7222 window_system=none |
9877 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)" | 7312 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)" |
9878 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}" | 7313 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}" |
9879 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}" | 7314 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}" |
9880 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}" | 7315 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}" |
9881 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}" | 7316 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}" |
9882 fi | 7317 LIB_STANDARD= |
9883 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then | 7318 fi |
9884 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5 | 7319 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default" |
9885 $as_echo_n "checking for AppKit/AppKit.h... " >&6; } | 7320 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then : |
9886 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then | |
9887 $as_echo_n "(cached) " >&6 | |
9888 fi | |
9889 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5 | |
9890 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; } | |
9891 else | |
9892 # Is the header compilable? | |
9893 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5 | |
9894 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; } | |
9895 cat >conftest.$ac_ext <<_ACEOF | |
9896 /* confdefs.h. */ | |
9897 _ACEOF | |
9898 cat confdefs.h >>conftest.$ac_ext | |
9899 cat >>conftest.$ac_ext <<_ACEOF | |
9900 /* end confdefs.h. */ | |
9901 $ac_includes_default | |
9902 #include <AppKit/AppKit.h> | |
9903 _ACEOF | |
9904 rm -f conftest.$ac_objext | |
9905 if { (ac_try="$ac_compile" | |
9906 case "(($ac_try" in | |
9907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9908 *) ac_try_echo=$ac_try;; | |
9909 esac | |
9910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9911 $as_echo "$ac_try_echo") >&5 | |
9912 (eval "$ac_compile") 2>conftest.er1 | |
9913 ac_status=$? | |
9914 grep -v '^ *+' conftest.er1 >conftest.err | |
9915 rm -f conftest.er1 | |
9916 cat conftest.err >&5 | |
9917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9918 (exit $ac_status); } && { | |
9919 test -z "$ac_c_werror_flag" || | |
9920 test ! -s conftest.err | |
9921 } && test -s conftest.$ac_objext; then | |
9922 ac_header_compiler=yes | |
9923 else | |
9924 $as_echo "$as_me: failed program was:" >&5 | |
9925 sed 's/^/| /' conftest.$ac_ext >&5 | |
9926 | |
9927 ac_header_compiler=no | |
9928 fi | |
9929 | |
9930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9931 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9932 $as_echo "$ac_header_compiler" >&6; } | |
9933 | |
9934 # Is the header present? | |
9935 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5 | |
9936 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; } | |
9937 cat >conftest.$ac_ext <<_ACEOF | |
9938 /* confdefs.h. */ | |
9939 _ACEOF | |
9940 cat confdefs.h >>conftest.$ac_ext | |
9941 cat >>conftest.$ac_ext <<_ACEOF | |
9942 /* end confdefs.h. */ | |
9943 #include <AppKit/AppKit.h> | |
9944 _ACEOF | |
9945 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
9946 case "(($ac_try" in | |
9947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9948 *) ac_try_echo=$ac_try;; | |
9949 esac | |
9950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9951 $as_echo "$ac_try_echo") >&5 | |
9952 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
9953 ac_status=$? | |
9954 grep -v '^ *+' conftest.er1 >conftest.err | |
9955 rm -f conftest.er1 | |
9956 cat conftest.err >&5 | |
9957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9958 (exit $ac_status); } >/dev/null && { | |
9959 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9960 test ! -s conftest.err | |
9961 }; then | |
9962 ac_header_preproc=yes | |
9963 else | |
9964 $as_echo "$as_me: failed program was:" >&5 | |
9965 sed 's/^/| /' conftest.$ac_ext >&5 | |
9966 | |
9967 ac_header_preproc=no | |
9968 fi | |
9969 | |
9970 rm -f conftest.err conftest.$ac_ext | |
9971 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9972 $as_echo "$ac_header_preproc" >&6; } | |
9973 | |
9974 # So? What about this header? | |
9975 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9976 yes:no: ) | |
9977 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9978 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9979 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5 | |
9980 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;} | |
9981 ac_header_preproc=yes | |
9982 ;; | |
9983 no:yes:* ) | |
9984 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5 | |
9985 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;} | |
9986 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5 | |
9987 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;} | |
9988 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5 | |
9989 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;} | |
9990 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5 | |
9991 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
9992 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5 | |
9993 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;} | |
9994 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5 | |
9995 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;} | |
9996 | |
9997 ;; | |
9998 esac | |
9999 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5 | |
10000 $as_echo_n "checking for AppKit/AppKit.h... " >&6; } | |
10001 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then | |
10002 $as_echo_n "(cached) " >&6 | |
10003 else | |
10004 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc | |
10005 fi | |
10006 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5 | |
10007 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; } | |
10008 | |
10009 fi | |
10010 if test $ac_cv_header_AppKit_AppKit_h = yes; then | |
10011 HAVE_NS=yes | 7321 HAVE_NS=yes |
10012 else | 7322 else |
10013 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include | 7323 as_fn_error "\`--with-ns' was specified, but the include |
10014 files are missing or cannot be compiled." >&5 | 7324 files are missing or cannot be compiled." "$LINENO" 5 |
10015 $as_echo "$as_me: error: \`--with-ns' was specified, but the include | |
10016 files are missing or cannot be compiled." >&2;} | |
10017 { (exit 1); exit 1; }; } | |
10018 fi | 7325 fi |
10019 | 7326 |
10020 | 7327 |
10021 NS_HAVE_NSINTEGER=yes | 7328 NS_HAVE_NSINTEGER=yes |
10022 cat >conftest.$ac_ext <<_ACEOF | 7329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10023 /* confdefs.h. */ | |
10024 _ACEOF | |
10025 cat confdefs.h >>conftest.$ac_ext | |
10026 cat >>conftest.$ac_ext <<_ACEOF | |
10027 /* end confdefs.h. */ | 7330 /* end confdefs.h. */ |
10028 #include <Foundation/NSObjCRuntime.h> | 7331 #include <Foundation/NSObjCRuntime.h> |
10029 int | 7332 int |
10030 main () | 7333 main () |
10031 { | 7334 { |
10032 NSInteger i; | 7335 NSInteger i; |
10033 ; | 7336 ; |
10034 return 0; | 7337 return 0; |
10035 } | 7338 } |
10036 _ACEOF | 7339 _ACEOF |
10037 rm -f conftest.$ac_objext | 7340 if ac_fn_c_try_compile "$LINENO"; then : |
10038 if { (ac_try="$ac_compile" | |
10039 case "(($ac_try" in | |
10040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10041 *) ac_try_echo=$ac_try;; | |
10042 esac | |
10043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10044 $as_echo "$ac_try_echo") >&5 | |
10045 (eval "$ac_compile") 2>conftest.er1 | |
10046 ac_status=$? | |
10047 grep -v '^ *+' conftest.er1 >conftest.err | |
10048 rm -f conftest.er1 | |
10049 cat conftest.err >&5 | |
10050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10051 (exit $ac_status); } && { | |
10052 test -z "$ac_c_werror_flag" || | |
10053 test ! -s conftest.err | |
10054 } && test -s conftest.$ac_objext; then | |
10055 ns_have_nsinteger=yes | 7341 ns_have_nsinteger=yes |
10056 else | 7342 else |
10057 $as_echo "$as_me: failed program was:" >&5 | 7343 ns_have_nsinteger=no |
10058 sed 's/^/| /' conftest.$ac_ext >&5 | 7344 fi |
10059 | |
10060 ns_have_nsinteger=no | |
10061 fi | |
10062 | |
10063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 7345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10064 if test $ns_have_nsinteger = no; then | 7346 if test $ns_have_nsinteger = no; then |
10065 NS_HAVE_NSINTEGER=no | 7347 NS_HAVE_NSINTEGER=no |
10066 fi | 7348 fi |
10067 fi | 7349 fi |
10080 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o" | 7362 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o" |
10081 NS_SUPPORT="\${lispsource}emacs-lisp/easymenu.elc \${lispsource}term/ns-win.elc" | 7363 NS_SUPPORT="\${lispsource}emacs-lisp/easymenu.elc \${lispsource}term/ns-win.elc" |
10082 fi | 7364 fi |
10083 CFLAGS="$tmp_CFLAGS" | 7365 CFLAGS="$tmp_CFLAGS" |
10084 CPPFLAGS="$tmp_CPPFLAGS" | 7366 CPPFLAGS="$tmp_CPPFLAGS" |
7367 | |
10085 | 7368 |
10086 | 7369 |
10087 | 7370 |
10088 case "${window_system}" in | 7371 case "${window_system}" in |
10089 x11 ) | 7372 x11 ) |
10106 esac | 7389 esac |
10107 | 7390 |
10108 if test "$window_system" = none && test "X$with_x" != "Xno"; then | 7391 if test "$window_system" = none && test "X$with_x" != "Xno"; then |
10109 # Extract the first word of "X", so it can be a program name with args. | 7392 # Extract the first word of "X", so it can be a program name with args. |
10110 set dummy X; ac_word=$2 | 7393 set dummy X; ac_word=$2 |
10111 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | 7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10112 $as_echo_n "checking for $ac_word... " >&6; } | 7395 $as_echo_n "checking for $ac_word... " >&6; } |
10113 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then | 7396 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then : |
10114 $as_echo_n "(cached) " >&6 | 7397 $as_echo_n "(cached) " >&6 |
10115 else | 7398 else |
10116 if test -n "$HAVE_XSERVER"; then | 7399 if test -n "$HAVE_XSERVER"; then |
10117 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test. | 7400 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test. |
10118 else | 7401 else |
10119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 7402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10120 for as_dir in $PATH | 7403 for as_dir in $PATH |
10121 do | 7404 do |
10122 IFS=$as_save_IFS | 7405 IFS=$as_save_IFS |
10123 test -z "$as_dir" && as_dir=. | 7406 test -z "$as_dir" && as_dir=. |
10124 for ac_exec_ext in '' $ac_executable_extensions; do | 7407 for ac_exec_ext in '' $ac_executable_extensions; do |
10125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 7408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
10126 ac_cv_prog_HAVE_XSERVER="true" | 7409 ac_cv_prog_HAVE_XSERVER="true" |
10127 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 7410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
10128 break 2 | 7411 break 2 |
10129 fi | 7412 fi |
10130 done | 7413 done |
10131 done | 7414 done |
10132 IFS=$as_save_IFS | 7415 IFS=$as_save_IFS |
10133 | 7416 |
10134 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false" | 7417 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false" |
10135 fi | 7418 fi |
10136 fi | 7419 fi |
10137 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER | 7420 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER |
10138 if test -n "$HAVE_XSERVER"; then | 7421 if test -n "$HAVE_XSERVER"; then |
10139 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5 | 7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5 |
10140 $as_echo "$HAVE_XSERVER" >&6; } | 7423 $as_echo "$HAVE_XSERVER" >&6; } |
10141 else | 7424 else |
10142 { $as_echo "$as_me:$LINENO: result: no" >&5 | 7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10143 $as_echo "no" >&6; } | 7426 $as_echo "no" >&6; } |
10144 fi | 7427 fi |
10145 | 7428 |
10146 | 7429 |
10147 if test "$HAVE_XSERVER" = true || | 7430 if test "$HAVE_XSERVER" = true || |
10148 test -n "$DISPLAY" || | 7431 test -n "$DISPLAY" || |
10149 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then | 7432 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then |
10150 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries | 7433 as_fn_error "You seem to be running X, but no X development libraries |
10151 were found. You should install the relevant development files for X | 7434 were found. You should install the relevant development files for X |
10152 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make | 7435 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make |
10153 sure you have development files for image handling, i.e. | 7436 sure you have development files for image handling, i.e. |
10154 tiff, gif, jpeg, png and xpm. | 7437 tiff, gif, jpeg, png and xpm. |
10155 If you are sure you want Emacs compiled without X window support, pass | 7438 If you are sure you want Emacs compiled without X window support, pass |
10156 --without-x | 7439 --without-x |
10157 to configure." >&5 | 7440 to configure." "$LINENO" 5 |
10158 $as_echo "$as_me: error: You seem to be running X, but no X development libraries | |
10159 were found. You should install the relevant development files for X | |
10160 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make | |
10161 sure you have development files for image handling, i.e. | |
10162 tiff, gif, jpeg, png and xpm. | |
10163 If you are sure you want Emacs compiled without X window support, pass | |
10164 --without-x | |
10165 to configure." >&2;} | |
10166 { (exit 1); exit 1; }; } | |
10167 fi | 7441 fi |
10168 fi | 7442 fi |
10169 | 7443 |
10170 ### If we're using X11, we should use the X menu package. | 7444 ### If we're using X11, we should use the X menu package. |
10171 HAVE_MENUS=no | 7445 HAVE_MENUS=no |
10175 | 7449 |
10176 # Do the opsystem or machine files prohibit the use of the GNU malloc? | 7450 # Do the opsystem or machine files prohibit the use of the GNU malloc? |
10177 # Assume not, until told otherwise. | 7451 # Assume not, until told otherwise. |
10178 GNU_MALLOC=yes | 7452 GNU_MALLOC=yes |
10179 doug_lea_malloc=yes | 7453 doug_lea_malloc=yes |
10180 { $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5 | 7454 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state" |
10181 $as_echo_n "checking for malloc_get_state... " >&6; } | 7455 if test "x$ac_cv_func_malloc_get_state" = x""yes; then : |
10182 if test "${ac_cv_func_malloc_get_state+set}" = set; then | 7456 |
7457 else | |
7458 doug_lea_malloc=no | |
7459 fi | |
7460 | |
7461 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state" | |
7462 if test "x$ac_cv_func_malloc_set_state" = x""yes; then : | |
7463 | |
7464 else | |
7465 doug_lea_malloc=no | |
7466 fi | |
7467 | |
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5 | |
7469 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; } | |
7470 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then : | |
10183 $as_echo_n "(cached) " >&6 | 7471 $as_echo_n "(cached) " >&6 |
10184 else | 7472 else |
10185 cat >conftest.$ac_ext <<_ACEOF | 7473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10186 /* confdefs.h. */ | |
10187 _ACEOF | |
10188 cat confdefs.h >>conftest.$ac_ext | |
10189 cat >>conftest.$ac_ext <<_ACEOF | |
10190 /* end confdefs.h. */ | |
10191 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state. | |
10192 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10193 #define malloc_get_state innocuous_malloc_get_state | |
10194 | |
10195 /* System header to define __stub macros and hopefully few prototypes, | |
10196 which can conflict with char malloc_get_state (); below. | |
10197 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10198 <limits.h> exists even on freestanding compilers. */ | |
10199 | |
10200 #ifdef __STDC__ | |
10201 # include <limits.h> | |
10202 #else | |
10203 # include <assert.h> | |
10204 #endif | |
10205 | |
10206 #undef malloc_get_state | |
10207 | |
10208 /* Override any GCC internal prototype to avoid an error. | |
10209 Use char because int might match the return type of a GCC | |
10210 builtin and then its argument prototype would still apply. */ | |
10211 #ifdef __cplusplus | |
10212 extern "C" | |
10213 #endif | |
10214 char malloc_get_state (); | |
10215 /* The GNU C library defines this for functions which it implements | |
10216 to always fail with ENOSYS. Some functions are actually named | |
10217 something starting with __ and the normal name is an alias. */ | |
10218 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state | |
10219 choke me | |
10220 #endif | |
10221 | |
10222 int | |
10223 main () | |
10224 { | |
10225 return malloc_get_state (); | |
10226 ; | |
10227 return 0; | |
10228 } | |
10229 _ACEOF | |
10230 rm -f conftest.$ac_objext conftest$ac_exeext | |
10231 if { (ac_try="$ac_link" | |
10232 case "(($ac_try" in | |
10233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10234 *) ac_try_echo=$ac_try;; | |
10235 esac | |
10236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10237 $as_echo "$ac_try_echo") >&5 | |
10238 (eval "$ac_link") 2>conftest.er1 | |
10239 ac_status=$? | |
10240 grep -v '^ *+' conftest.er1 >conftest.err | |
10241 rm -f conftest.er1 | |
10242 cat conftest.err >&5 | |
10243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10244 (exit $ac_status); } && { | |
10245 test -z "$ac_c_werror_flag" || | |
10246 test ! -s conftest.err | |
10247 } && test -s conftest$ac_exeext && { | |
10248 test "$cross_compiling" = yes || | |
10249 $as_test_x conftest$ac_exeext | |
10250 }; then | |
10251 ac_cv_func_malloc_get_state=yes | |
10252 else | |
10253 $as_echo "$as_me: failed program was:" >&5 | |
10254 sed 's/^/| /' conftest.$ac_ext >&5 | |
10255 | |
10256 ac_cv_func_malloc_get_state=no | |
10257 fi | |
10258 | |
10259 rm -rf conftest.dSYM | |
10260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10261 conftest$ac_exeext conftest.$ac_ext | |
10262 fi | |
10263 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5 | |
10264 $as_echo "$ac_cv_func_malloc_get_state" >&6; } | |
10265 if test $ac_cv_func_malloc_get_state = yes; then | |
10266 : | |
10267 else | |
10268 doug_lea_malloc=no | |
10269 fi | |
10270 | |
10271 { $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5 | |
10272 $as_echo_n "checking for malloc_set_state... " >&6; } | |
10273 if test "${ac_cv_func_malloc_set_state+set}" = set; then | |
10274 $as_echo_n "(cached) " >&6 | |
10275 else | |
10276 cat >conftest.$ac_ext <<_ACEOF | |
10277 /* confdefs.h. */ | |
10278 _ACEOF | |
10279 cat confdefs.h >>conftest.$ac_ext | |
10280 cat >>conftest.$ac_ext <<_ACEOF | |
10281 /* end confdefs.h. */ | |
10282 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state. | |
10283 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10284 #define malloc_set_state innocuous_malloc_set_state | |
10285 | |
10286 /* System header to define __stub macros and hopefully few prototypes, | |
10287 which can conflict with char malloc_set_state (); below. | |
10288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10289 <limits.h> exists even on freestanding compilers. */ | |
10290 | |
10291 #ifdef __STDC__ | |
10292 # include <limits.h> | |
10293 #else | |
10294 # include <assert.h> | |
10295 #endif | |
10296 | |
10297 #undef malloc_set_state | |
10298 | |
10299 /* Override any GCC internal prototype to avoid an error. | |
10300 Use char because int might match the return type of a GCC | |
10301 builtin and then its argument prototype would still apply. */ | |
10302 #ifdef __cplusplus | |
10303 extern "C" | |
10304 #endif | |
10305 char malloc_set_state (); | |
10306 /* The GNU C library defines this for functions which it implements | |
10307 to always fail with ENOSYS. Some functions are actually named | |
10308 something starting with __ and the normal name is an alias. */ | |
10309 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state | |
10310 choke me | |
10311 #endif | |
10312 | |
10313 int | |
10314 main () | |
10315 { | |
10316 return malloc_set_state (); | |
10317 ; | |
10318 return 0; | |
10319 } | |
10320 _ACEOF | |
10321 rm -f conftest.$ac_objext conftest$ac_exeext | |
10322 if { (ac_try="$ac_link" | |
10323 case "(($ac_try" in | |
10324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10325 *) ac_try_echo=$ac_try;; | |
10326 esac | |
10327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10328 $as_echo "$ac_try_echo") >&5 | |
10329 (eval "$ac_link") 2>conftest.er1 | |
10330 ac_status=$? | |
10331 grep -v '^ *+' conftest.er1 >conftest.err | |
10332 rm -f conftest.er1 | |
10333 cat conftest.err >&5 | |
10334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10335 (exit $ac_status); } && { | |
10336 test -z "$ac_c_werror_flag" || | |
10337 test ! -s conftest.err | |
10338 } && test -s conftest$ac_exeext && { | |
10339 test "$cross_compiling" = yes || | |
10340 $as_test_x conftest$ac_exeext | |
10341 }; then | |
10342 ac_cv_func_malloc_set_state=yes | |
10343 else | |
10344 $as_echo "$as_me: failed program was:" >&5 | |
10345 sed 's/^/| /' conftest.$ac_ext >&5 | |
10346 | |
10347 ac_cv_func_malloc_set_state=no | |
10348 fi | |
10349 | |
10350 rm -rf conftest.dSYM | |
10351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10352 conftest$ac_exeext conftest.$ac_ext | |
10353 fi | |
10354 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5 | |
10355 $as_echo "$ac_cv_func_malloc_set_state" >&6; } | |
10356 if test $ac_cv_func_malloc_set_state = yes; then | |
10357 : | |
10358 else | |
10359 doug_lea_malloc=no | |
10360 fi | |
10361 | |
10362 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5 | |
10363 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; } | |
10364 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then | |
10365 $as_echo_n "(cached) " >&6 | |
10366 else | |
10367 cat >conftest.$ac_ext <<_ACEOF | |
10368 /* confdefs.h. */ | |
10369 _ACEOF | |
10370 cat confdefs.h >>conftest.$ac_ext | |
10371 cat >>conftest.$ac_ext <<_ACEOF | |
10372 /* end confdefs.h. */ | 7474 /* end confdefs.h. */ |
10373 extern void (* __after_morecore_hook)(); | 7475 extern void (* __after_morecore_hook)(); |
10374 int | 7476 int |
10375 main () | 7477 main () |
10376 { | 7478 { |
10377 __after_morecore_hook = 0 | 7479 __after_morecore_hook = 0 |
10378 ; | 7480 ; |
10379 return 0; | 7481 return 0; |
10380 } | 7482 } |
10381 _ACEOF | 7483 _ACEOF |
10382 rm -f conftest.$ac_objext conftest$ac_exeext | 7484 if ac_fn_c_try_link "$LINENO"; then : |
10383 if { (ac_try="$ac_link" | |
10384 case "(($ac_try" in | |
10385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10386 *) ac_try_echo=$ac_try;; | |
10387 esac | |
10388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10389 $as_echo "$ac_try_echo") >&5 | |
10390 (eval "$ac_link") 2>conftest.er1 | |
10391 ac_status=$? | |
10392 grep -v '^ *+' conftest.er1 >conftest.err | |
10393 rm -f conftest.er1 | |
10394 cat conftest.err >&5 | |
10395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10396 (exit $ac_status); } && { | |
10397 test -z "$ac_c_werror_flag" || | |
10398 test ! -s conftest.err | |
10399 } && test -s conftest$ac_exeext && { | |
10400 test "$cross_compiling" = yes || | |
10401 $as_test_x conftest$ac_exeext | |
10402 }; then | |
10403 emacs_cv_var___after_morecore_hook=yes | 7485 emacs_cv_var___after_morecore_hook=yes |
10404 else | 7486 else |
10405 $as_echo "$as_me: failed program was:" >&5 | 7487 emacs_cv_var___after_morecore_hook=no |
10406 sed 's/^/| /' conftest.$ac_ext >&5 | 7488 fi |
10407 | 7489 rm -f core conftest.err conftest.$ac_objext \ |
10408 emacs_cv_var___after_morecore_hook=no | 7490 conftest$ac_exeext conftest.$ac_ext |
10409 fi | 7491 fi |
10410 | 7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5 |
10411 rm -rf conftest.dSYM | |
10412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10413 conftest$ac_exeext conftest.$ac_ext | |
10414 fi | |
10415 { $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5 | |
10416 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; } | 7493 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; } |
10417 if test $emacs_cv_var___after_morecore_hook = no; then | 7494 if test $emacs_cv_var___after_morecore_hook = no; then |
10418 doug_lea_malloc=no | 7495 doug_lea_malloc=no |
10419 fi | 7496 fi |
10420 if test "${system_malloc}" = "yes"; then | 7497 if test "${system_malloc}" = "yes"; then |
10426 if test "$GNU_MALLOC" = yes ; then | 7503 if test "$GNU_MALLOC" = yes ; then |
10427 GNU_MALLOC_reason=" | 7504 GNU_MALLOC_reason=" |
10428 (Using Doug Lea's new malloc from the GNU C Library.)" | 7505 (Using Doug Lea's new malloc from the GNU C Library.)" |
10429 fi | 7506 fi |
10430 | 7507 |
10431 cat >>confdefs.h <<\_ACEOF | 7508 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h |
10432 #define DOUG_LEA_MALLOC 1 | |
10433 _ACEOF | |
10434 | 7509 |
10435 fi | 7510 fi |
10436 | 7511 |
10437 if test x"${REL_ALLOC}" = x; then | 7512 if test x"${REL_ALLOC}" = x; then |
10438 REL_ALLOC=${GNU_MALLOC} | 7513 REL_ALLOC=${GNU_MALLOC} |
10439 fi | 7514 fi |
10440 | 7515 |
10441 | 7516 |
10442 | 7517 |
10443 | 7518 |
10444 for ac_header in stdlib.h unistd.h | 7519 |
10445 do | 7520 for ac_header in $ac_header_list |
10446 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 7521 do : |
10447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 7522 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
10448 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | 7523 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
10449 $as_echo_n "checking for $ac_header... " >&6; } | 7524 " |
10450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 7525 eval as_val=\$$as_ac_Header |
10451 $as_echo_n "(cached) " >&6 | 7526 if test "x$as_val" = x""yes; then : |
10452 fi | |
10453 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10454 $as_echo "$as_val"'` | |
10455 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10456 $as_echo "$ac_res" >&6; } | |
10457 else | |
10458 # Is the header compilable? | |
10459 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10460 $as_echo_n "checking $ac_header usability... " >&6; } | |
10461 cat >conftest.$ac_ext <<_ACEOF | |
10462 /* confdefs.h. */ | |
10463 _ACEOF | |
10464 cat confdefs.h >>conftest.$ac_ext | |
10465 cat >>conftest.$ac_ext <<_ACEOF | |
10466 /* end confdefs.h. */ | |
10467 $ac_includes_default | |
10468 #include <$ac_header> | |
10469 _ACEOF | |
10470 rm -f conftest.$ac_objext | |
10471 if { (ac_try="$ac_compile" | |
10472 case "(($ac_try" in | |
10473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10474 *) ac_try_echo=$ac_try;; | |
10475 esac | |
10476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10477 $as_echo "$ac_try_echo") >&5 | |
10478 (eval "$ac_compile") 2>conftest.er1 | |
10479 ac_status=$? | |
10480 grep -v '^ *+' conftest.er1 >conftest.err | |
10481 rm -f conftest.er1 | |
10482 cat conftest.err >&5 | |
10483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10484 (exit $ac_status); } && { | |
10485 test -z "$ac_c_werror_flag" || | |
10486 test ! -s conftest.err | |
10487 } && test -s conftest.$ac_objext; then | |
10488 ac_header_compiler=yes | |
10489 else | |
10490 $as_echo "$as_me: failed program was:" >&5 | |
10491 sed 's/^/| /' conftest.$ac_ext >&5 | |
10492 | |
10493 ac_header_compiler=no | |
10494 fi | |
10495 | |
10496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10497 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10498 $as_echo "$ac_header_compiler" >&6; } | |
10499 | |
10500 # Is the header present? | |
10501 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10502 $as_echo_n "checking $ac_header presence... " >&6; } | |
10503 cat >conftest.$ac_ext <<_ACEOF | |
10504 /* confdefs.h. */ | |
10505 _ACEOF | |
10506 cat confdefs.h >>conftest.$ac_ext | |
10507 cat >>conftest.$ac_ext <<_ACEOF | |
10508 /* end confdefs.h. */ | |
10509 #include <$ac_header> | |
10510 _ACEOF | |
10511 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
10512 case "(($ac_try" in | |
10513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10514 *) ac_try_echo=$ac_try;; | |
10515 esac | |
10516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10517 $as_echo "$ac_try_echo") >&5 | |
10518 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
10519 ac_status=$? | |
10520 grep -v '^ *+' conftest.er1 >conftest.err | |
10521 rm -f conftest.er1 | |
10522 cat conftest.err >&5 | |
10523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10524 (exit $ac_status); } >/dev/null && { | |
10525 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10526 test ! -s conftest.err | |
10527 }; then | |
10528 ac_header_preproc=yes | |
10529 else | |
10530 $as_echo "$as_me: failed program was:" >&5 | |
10531 sed 's/^/| /' conftest.$ac_ext >&5 | |
10532 | |
10533 ac_header_preproc=no | |
10534 fi | |
10535 | |
10536 rm -f conftest.err conftest.$ac_ext | |
10537 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10538 $as_echo "$ac_header_preproc" >&6; } | |
10539 | |
10540 # So? What about this header? | |
10541 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10542 yes:no: ) | |
10543 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10544 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10545 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10546 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10547 ac_header_preproc=yes | |
10548 ;; | |
10549 no:yes:* ) | |
10550 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10551 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10552 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10553 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10554 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10555 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10556 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10557 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10558 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10559 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10560 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10561 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10562 | |
10563 ;; | |
10564 esac | |
10565 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10566 $as_echo_n "checking for $ac_header... " >&6; } | |
10567 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10568 $as_echo_n "(cached) " >&6 | |
10569 else | |
10570 eval "$as_ac_Header=\$ac_header_preproc" | |
10571 fi | |
10572 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10573 $as_echo "$as_val"'` | |
10574 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10575 $as_echo "$ac_res" >&6; } | |
10576 | |
10577 fi | |
10578 if test `eval 'as_val=${'$as_ac_Header'} | |
10579 $as_echo "$as_val"'` = yes; then | |
10580 cat >>confdefs.h <<_ACEOF | 7527 cat >>confdefs.h <<_ACEOF |
10581 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 7528 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
10582 _ACEOF | 7529 _ACEOF |
10583 | 7530 |
10584 fi | 7531 fi |
10585 | 7532 |
10586 done | 7533 done |
10587 | 7534 |
10588 | 7535 |
7536 | |
7537 | |
7538 | |
7539 | |
7540 | |
7541 | |
10589 for ac_func in getpagesize | 7542 for ac_func in getpagesize |
10590 do | 7543 do : |
10591 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 7544 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" |
10592 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | 7545 if test "x$ac_cv_func_getpagesize" = x""yes; then : |
10593 $as_echo_n "checking for $ac_func... " >&6; } | 7546 cat >>confdefs.h <<_ACEOF |
10594 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 7547 #define HAVE_GETPAGESIZE 1 |
7548 _ACEOF | |
7549 | |
7550 fi | |
7551 done | |
7552 | |
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 | |
7554 $as_echo_n "checking for working mmap... " >&6; } | |
7555 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then : | |
10595 $as_echo_n "(cached) " >&6 | 7556 $as_echo_n "(cached) " >&6 |
10596 else | 7557 else |
10597 cat >conftest.$ac_ext <<_ACEOF | 7558 if test "$cross_compiling" = yes; then : |
10598 /* confdefs.h. */ | |
10599 _ACEOF | |
10600 cat confdefs.h >>conftest.$ac_ext | |
10601 cat >>conftest.$ac_ext <<_ACEOF | |
10602 /* end confdefs.h. */ | |
10603 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
10604 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10605 #define $ac_func innocuous_$ac_func | |
10606 | |
10607 /* System header to define __stub macros and hopefully few prototypes, | |
10608 which can conflict with char $ac_func (); below. | |
10609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10610 <limits.h> exists even on freestanding compilers. */ | |
10611 | |
10612 #ifdef __STDC__ | |
10613 # include <limits.h> | |
10614 #else | |
10615 # include <assert.h> | |
10616 #endif | |
10617 | |
10618 #undef $ac_func | |
10619 | |
10620 /* Override any GCC internal prototype to avoid an error. | |
10621 Use char because int might match the return type of a GCC | |
10622 builtin and then its argument prototype would still apply. */ | |
10623 #ifdef __cplusplus | |
10624 extern "C" | |
10625 #endif | |
10626 char $ac_func (); | |
10627 /* The GNU C library defines this for functions which it implements | |
10628 to always fail with ENOSYS. Some functions are actually named | |
10629 something starting with __ and the normal name is an alias. */ | |
10630 #if defined __stub_$ac_func || defined __stub___$ac_func | |
10631 choke me | |
10632 #endif | |
10633 | |
10634 int | |
10635 main () | |
10636 { | |
10637 return $ac_func (); | |
10638 ; | |
10639 return 0; | |
10640 } | |
10641 _ACEOF | |
10642 rm -f conftest.$ac_objext conftest$ac_exeext | |
10643 if { (ac_try="$ac_link" | |
10644 case "(($ac_try" in | |
10645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10646 *) ac_try_echo=$ac_try;; | |
10647 esac | |
10648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10649 $as_echo "$ac_try_echo") >&5 | |
10650 (eval "$ac_link") 2>conftest.er1 | |
10651 ac_status=$? | |
10652 grep -v '^ *+' conftest.er1 >conftest.err | |
10653 rm -f conftest.er1 | |
10654 cat conftest.err >&5 | |
10655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10656 (exit $ac_status); } && { | |
10657 test -z "$ac_c_werror_flag" || | |
10658 test ! -s conftest.err | |
10659 } && test -s conftest$ac_exeext && { | |
10660 test "$cross_compiling" = yes || | |
10661 $as_test_x conftest$ac_exeext | |
10662 }; then | |
10663 eval "$as_ac_var=yes" | |
10664 else | |
10665 $as_echo "$as_me: failed program was:" >&5 | |
10666 sed 's/^/| /' conftest.$ac_ext >&5 | |
10667 | |
10668 eval "$as_ac_var=no" | |
10669 fi | |
10670 | |
10671 rm -rf conftest.dSYM | |
10672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10673 conftest$ac_exeext conftest.$ac_ext | |
10674 fi | |
10675 ac_res=`eval 'as_val=${'$as_ac_var'} | |
10676 $as_echo "$as_val"'` | |
10677 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10678 $as_echo "$ac_res" >&6; } | |
10679 if test `eval 'as_val=${'$as_ac_var'} | |
10680 $as_echo "$as_val"'` = yes; then | |
10681 cat >>confdefs.h <<_ACEOF | |
10682 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10683 _ACEOF | |
10684 | |
10685 fi | |
10686 done | |
10687 | |
10688 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5 | |
10689 $as_echo_n "checking for working mmap... " >&6; } | |
10690 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
10691 $as_echo_n "(cached) " >&6 | |
10692 else | |
10693 if test "$cross_compiling" = yes; then | |
10694 ac_cv_func_mmap_fixed_mapped=no | 7559 ac_cv_func_mmap_fixed_mapped=no |
10695 else | 7560 else |
10696 cat >conftest.$ac_ext <<_ACEOF | 7561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10697 /* confdefs.h. */ | |
10698 _ACEOF | |
10699 cat confdefs.h >>conftest.$ac_ext | |
10700 cat >>conftest.$ac_ext <<_ACEOF | |
10701 /* end confdefs.h. */ | 7562 /* end confdefs.h. */ |
10702 $ac_includes_default | 7563 $ac_includes_default |
10703 /* malloc might have been renamed as rpl_malloc. */ | 7564 /* malloc might have been renamed as rpl_malloc. */ |
10704 #undef malloc | 7565 #undef malloc |
10705 | 7566 |
10732 char *malloc (); | 7593 char *malloc (); |
10733 #endif | 7594 #endif |
10734 | 7595 |
10735 /* This mess was copied from the GNU getpagesize.h. */ | 7596 /* This mess was copied from the GNU getpagesize.h. */ |
10736 #ifndef HAVE_GETPAGESIZE | 7597 #ifndef HAVE_GETPAGESIZE |
10737 /* Assume that all systems that can run configure have sys/param.h. */ | |
10738 # ifndef HAVE_SYS_PARAM_H | |
10739 # define HAVE_SYS_PARAM_H 1 | |
10740 # endif | |
10741 | |
10742 # ifdef _SC_PAGESIZE | 7598 # ifdef _SC_PAGESIZE |
10743 # define getpagesize() sysconf(_SC_PAGESIZE) | 7599 # define getpagesize() sysconf(_SC_PAGESIZE) |
10744 # else /* no _SC_PAGESIZE */ | 7600 # else /* no _SC_PAGESIZE */ |
10745 # ifdef HAVE_SYS_PARAM_H | 7601 # ifdef HAVE_SYS_PARAM_H |
10746 # include <sys/param.h> | 7602 # include <sys/param.h> |
10772 int | 7628 int |
10773 main () | 7629 main () |
10774 { | 7630 { |
10775 char *data, *data2, *data3; | 7631 char *data, *data2, *data3; |
10776 int i, pagesize; | 7632 int i, pagesize; |
10777 int fd; | 7633 int fd, fd2; |
10778 | 7634 |
10779 pagesize = getpagesize (); | 7635 pagesize = getpagesize (); |
10780 | 7636 |
10781 /* First, make a file with some known garbage in it. */ | 7637 /* First, make a file with some known garbage in it. */ |
10782 data = (char *) malloc (pagesize); | 7638 data = (char *) malloc (pagesize); |
10785 for (i = 0; i < pagesize; ++i) | 7641 for (i = 0; i < pagesize; ++i) |
10786 *(data + i) = rand (); | 7642 *(data + i) = rand (); |
10787 umask (0); | 7643 umask (0); |
10788 fd = creat ("conftest.mmap", 0600); | 7644 fd = creat ("conftest.mmap", 0600); |
10789 if (fd < 0) | 7645 if (fd < 0) |
10790 return 1; | 7646 return 2; |
10791 if (write (fd, data, pagesize) != pagesize) | 7647 if (write (fd, data, pagesize) != pagesize) |
10792 return 1; | 7648 return 3; |
10793 close (fd); | 7649 close (fd); |
7650 | |
7651 /* Next, check that the tail of a page is zero-filled. File must have | |
7652 non-zero length, otherwise we risk SIGBUS for entire page. */ | |
7653 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); | |
7654 if (fd2 < 0) | |
7655 return 4; | |
7656 data2 = ""; | |
7657 if (write (fd2, data2, 1) != 1) | |
7658 return 5; | |
7659 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); | |
7660 if (data2 == MAP_FAILED) | |
7661 return 6; | |
7662 for (i = 0; i < pagesize; ++i) | |
7663 if (*(data2 + i)) | |
7664 return 7; | |
7665 close (fd2); | |
7666 if (munmap (data2, pagesize)) | |
7667 return 8; | |
10794 | 7668 |
10795 /* Next, try to mmap the file at a fixed address which already has | 7669 /* Next, try to mmap the file at a fixed address which already has |
10796 something else allocated at it. If we can, also make sure that | 7670 something else allocated at it. If we can, also make sure that |
10797 we see the same garbage. */ | 7671 we see the same garbage. */ |
10798 fd = open ("conftest.mmap", O_RDWR); | 7672 fd = open ("conftest.mmap", O_RDWR); |
10799 if (fd < 0) | 7673 if (fd < 0) |
10800 return 1; | 7674 return 9; |
10801 data2 = (char *) malloc (2 * pagesize); | |
10802 if (!data2) | |
10803 return 1; | |
10804 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); | |
10805 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | 7675 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
10806 MAP_PRIVATE | MAP_FIXED, fd, 0L)) | 7676 MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
10807 return 1; | 7677 return 10; |
10808 for (i = 0; i < pagesize; ++i) | 7678 for (i = 0; i < pagesize; ++i) |
10809 if (*(data + i) != *(data2 + i)) | 7679 if (*(data + i) != *(data2 + i)) |
10810 return 1; | 7680 return 11; |
10811 | 7681 |
10812 /* Finally, make sure that changes to the mapped area do not | 7682 /* Finally, make sure that changes to the mapped area do not |
10813 percolate back to the file as seen by read(). (This is a bug on | 7683 percolate back to the file as seen by read(). (This is a bug on |
10814 some variants of i386 svr4.0.) */ | 7684 some variants of i386 svr4.0.) */ |
10815 for (i = 0; i < pagesize; ++i) | 7685 for (i = 0; i < pagesize; ++i) |
10816 *(data2 + i) = *(data2 + i) + 1; | 7686 *(data2 + i) = *(data2 + i) + 1; |
10817 data3 = (char *) malloc (pagesize); | 7687 data3 = (char *) malloc (pagesize); |
10818 if (!data3) | 7688 if (!data3) |
10819 return 1; | 7689 return 12; |
10820 if (read (fd, data3, pagesize) != pagesize) | 7690 if (read (fd, data3, pagesize) != pagesize) |
10821 return 1; | 7691 return 13; |
10822 for (i = 0; i < pagesize; ++i) | 7692 for (i = 0; i < pagesize; ++i) |
10823 if (*(data + i) != *(data3 + i)) | 7693 if (*(data + i) != *(data3 + i)) |
10824 return 1; | 7694 return 14; |
10825 close (fd); | 7695 close (fd); |
10826 return 0; | 7696 return 0; |
10827 } | 7697 } |
10828 _ACEOF | 7698 _ACEOF |
10829 rm -f conftest$ac_exeext | 7699 if ac_fn_c_try_run "$LINENO"; then : |
10830 if { (ac_try="$ac_link" | |
10831 case "(($ac_try" in | |
10832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10833 *) ac_try_echo=$ac_try;; | |
10834 esac | |
10835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10836 $as_echo "$ac_try_echo") >&5 | |
10837 (eval "$ac_link") 2>&5 | |
10838 ac_status=$? | |
10839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10840 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
10841 { (case "(($ac_try" in | |
10842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10843 *) ac_try_echo=$ac_try;; | |
10844 esac | |
10845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10846 $as_echo "$ac_try_echo") >&5 | |
10847 (eval "$ac_try") 2>&5 | |
10848 ac_status=$? | |
10849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10850 (exit $ac_status); }; }; then | |
10851 ac_cv_func_mmap_fixed_mapped=yes | 7700 ac_cv_func_mmap_fixed_mapped=yes |
10852 else | 7701 else |
10853 $as_echo "$as_me: program exited with status $ac_status" >&5 | 7702 ac_cv_func_mmap_fixed_mapped=no |
10854 $as_echo "$as_me: failed program was:" >&5 | 7703 fi |
10855 sed 's/^/| /' conftest.$ac_ext >&5 | 7704 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
10856 | 7705 conftest.$ac_objext conftest.beam conftest.$ac_ext |
10857 ( exit $ac_status ) | 7706 fi |
10858 ac_cv_func_mmap_fixed_mapped=no | 7707 |
10859 fi | 7708 fi |
10860 rm -rf conftest.dSYM | 7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
10861 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
10862 fi | |
10863 | |
10864 | |
10865 fi | |
10866 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 | |
10867 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | 7710 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } |
10868 if test $ac_cv_func_mmap_fixed_mapped = yes; then | 7711 if test $ac_cv_func_mmap_fixed_mapped = yes; then |
10869 | 7712 |
10870 cat >>confdefs.h <<\_ACEOF | 7713 $as_echo "#define HAVE_MMAP 1" >>confdefs.h |
10871 #define HAVE_MMAP 1 | 7714 |
10872 _ACEOF | 7715 fi |
10873 | 7716 rm -f conftest.mmap conftest.txt |
10874 fi | |
10875 rm -f conftest.mmap | |
10876 | 7717 |
10877 if test $use_mmap_for_buffers = yes; then | 7718 if test $use_mmap_for_buffers = yes; then |
10878 REL_ALLOC=no | 7719 REL_ALLOC=no |
10879 fi | 7720 fi |
10880 | 7721 |
10881 LIBS="$libsrc_libs $LIBS" | 7722 LIBS="$libsrc_libs $LIBS" |
10882 | 7723 |
10883 | 7724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 |
10884 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 | |
10885 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } | 7725 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } |
10886 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | 7726 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then : |
10887 $as_echo_n "(cached) " >&6 | 7727 $as_echo_n "(cached) " >&6 |
10888 else | 7728 else |
10889 ac_check_lib_save_LIBS=$LIBS | 7729 ac_check_lib_save_LIBS=$LIBS |
10890 LIBS="-ldnet $LIBS" | 7730 LIBS="-ldnet $LIBS" |
10891 cat >conftest.$ac_ext <<_ACEOF | 7731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10892 /* confdefs.h. */ | |
10893 _ACEOF | |
10894 cat confdefs.h >>conftest.$ac_ext | |
10895 cat >>conftest.$ac_ext <<_ACEOF | |
10896 /* end confdefs.h. */ | 7732 /* end confdefs.h. */ |
10897 | 7733 |
10898 /* Override any GCC internal prototype to avoid an error. | 7734 /* Override any GCC internal prototype to avoid an error. |
10899 Use char because int might match the return type of a GCC | 7735 Use char because int might match the return type of a GCC |
10900 builtin and then its argument prototype would still apply. */ | 7736 builtin and then its argument prototype would still apply. */ |
10908 return dnet_ntoa (); | 7744 return dnet_ntoa (); |
10909 ; | 7745 ; |
10910 return 0; | 7746 return 0; |
10911 } | 7747 } |
10912 _ACEOF | 7748 _ACEOF |
10913 rm -f conftest.$ac_objext conftest$ac_exeext | 7749 if ac_fn_c_try_link "$LINENO"; then : |
10914 if { (ac_try="$ac_link" | |
10915 case "(($ac_try" in | |
10916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10917 *) ac_try_echo=$ac_try;; | |
10918 esac | |
10919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10920 $as_echo "$ac_try_echo") >&5 | |
10921 (eval "$ac_link") 2>conftest.er1 | |
10922 ac_status=$? | |
10923 grep -v '^ *+' conftest.er1 >conftest.err | |
10924 rm -f conftest.er1 | |
10925 cat conftest.err >&5 | |
10926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10927 (exit $ac_status); } && { | |
10928 test -z "$ac_c_werror_flag" || | |
10929 test ! -s conftest.err | |
10930 } && test -s conftest$ac_exeext && { | |
10931 test "$cross_compiling" = yes || | |
10932 $as_test_x conftest$ac_exeext | |
10933 }; then | |
10934 ac_cv_lib_dnet_dnet_ntoa=yes | 7750 ac_cv_lib_dnet_dnet_ntoa=yes |
10935 else | 7751 else |
10936 $as_echo "$as_me: failed program was:" >&5 | 7752 ac_cv_lib_dnet_dnet_ntoa=no |
10937 sed 's/^/| /' conftest.$ac_ext >&5 | 7753 fi |
10938 | 7754 rm -f core conftest.err conftest.$ac_objext \ |
10939 ac_cv_lib_dnet_dnet_ntoa=no | 7755 conftest$ac_exeext conftest.$ac_ext |
10940 fi | |
10941 | |
10942 rm -rf conftest.dSYM | |
10943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10944 conftest$ac_exeext conftest.$ac_ext | |
10945 LIBS=$ac_check_lib_save_LIBS | 7756 LIBS=$ac_check_lib_save_LIBS |
10946 fi | 7757 fi |
10947 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | 7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
10948 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } | 7759 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } |
10949 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | 7760 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then : |
10950 cat >>confdefs.h <<_ACEOF | 7761 cat >>confdefs.h <<_ACEOF |
10951 #define HAVE_LIBDNET 1 | 7762 #define HAVE_LIBDNET 1 |
10952 _ACEOF | 7763 _ACEOF |
10953 | 7764 |
10954 LIBS="-ldnet $LIBS" | 7765 LIBS="-ldnet $LIBS" |
10955 | 7766 |
10956 fi | 7767 fi |
10957 | 7768 |
10958 | 7769 |
10959 { $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5 | 7770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5 |
10960 $as_echo_n "checking for main in -lXbsd... " >&6; } | 7771 $as_echo_n "checking for main in -lXbsd... " >&6; } |
10961 if test "${ac_cv_lib_Xbsd_main+set}" = set; then | 7772 if test "${ac_cv_lib_Xbsd_main+set}" = set; then : |
10962 $as_echo_n "(cached) " >&6 | 7773 $as_echo_n "(cached) " >&6 |
10963 else | 7774 else |
10964 ac_check_lib_save_LIBS=$LIBS | 7775 ac_check_lib_save_LIBS=$LIBS |
10965 LIBS="-lXbsd $LIBS" | 7776 LIBS="-lXbsd $LIBS" |
10966 cat >conftest.$ac_ext <<_ACEOF | 7777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10967 /* confdefs.h. */ | |
10968 _ACEOF | |
10969 cat confdefs.h >>conftest.$ac_ext | |
10970 cat >>conftest.$ac_ext <<_ACEOF | |
10971 /* end confdefs.h. */ | 7778 /* end confdefs.h. */ |
10972 | 7779 |
10973 | 7780 |
10974 int | 7781 int |
10975 main () | 7782 main () |
10977 return main (); | 7784 return main (); |
10978 ; | 7785 ; |
10979 return 0; | 7786 return 0; |
10980 } | 7787 } |
10981 _ACEOF | 7788 _ACEOF |
10982 rm -f conftest.$ac_objext conftest$ac_exeext | 7789 if ac_fn_c_try_link "$LINENO"; then : |
10983 if { (ac_try="$ac_link" | |
10984 case "(($ac_try" in | |
10985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10986 *) ac_try_echo=$ac_try;; | |
10987 esac | |
10988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10989 $as_echo "$ac_try_echo") >&5 | |
10990 (eval "$ac_link") 2>conftest.er1 | |
10991 ac_status=$? | |
10992 grep -v '^ *+' conftest.er1 >conftest.err | |
10993 rm -f conftest.er1 | |
10994 cat conftest.err >&5 | |
10995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10996 (exit $ac_status); } && { | |
10997 test -z "$ac_c_werror_flag" || | |
10998 test ! -s conftest.err | |
10999 } && test -s conftest$ac_exeext && { | |
11000 test "$cross_compiling" = yes || | |
11001 $as_test_x conftest$ac_exeext | |
11002 }; then | |
11003 ac_cv_lib_Xbsd_main=yes | 7790 ac_cv_lib_Xbsd_main=yes |
11004 else | 7791 else |
11005 $as_echo "$as_me: failed program was:" >&5 | 7792 ac_cv_lib_Xbsd_main=no |
11006 sed 's/^/| /' conftest.$ac_ext >&5 | 7793 fi |
11007 | 7794 rm -f core conftest.err conftest.$ac_objext \ |
11008 ac_cv_lib_Xbsd_main=no | 7795 conftest$ac_exeext conftest.$ac_ext |
11009 fi | |
11010 | |
11011 rm -rf conftest.dSYM | |
11012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11013 conftest$ac_exeext conftest.$ac_ext | |
11014 LIBS=$ac_check_lib_save_LIBS | 7796 LIBS=$ac_check_lib_save_LIBS |
11015 fi | 7797 fi |
11016 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5 | 7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5 |
11017 $as_echo "$ac_cv_lib_Xbsd_main" >&6; } | 7799 $as_echo "$ac_cv_lib_Xbsd_main" >&6; } |
11018 if test $ac_cv_lib_Xbsd_main = yes; then | 7800 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then : |
11019 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd" | 7801 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd" |
11020 fi | 7802 fi |
11021 | 7803 |
11022 | 7804 |
11023 | 7805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5 |
11024 { $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5 | |
11025 $as_echo_n "checking for cma_open in -lpthreads... " >&6; } | 7806 $as_echo_n "checking for cma_open in -lpthreads... " >&6; } |
11026 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then | 7807 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then : |
11027 $as_echo_n "(cached) " >&6 | 7808 $as_echo_n "(cached) " >&6 |
11028 else | 7809 else |
11029 ac_check_lib_save_LIBS=$LIBS | 7810 ac_check_lib_save_LIBS=$LIBS |
11030 LIBS="-lpthreads $LIBS" | 7811 LIBS="-lpthreads $LIBS" |
11031 cat >conftest.$ac_ext <<_ACEOF | 7812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11032 /* confdefs.h. */ | |
11033 _ACEOF | |
11034 cat confdefs.h >>conftest.$ac_ext | |
11035 cat >>conftest.$ac_ext <<_ACEOF | |
11036 /* end confdefs.h. */ | 7813 /* end confdefs.h. */ |
11037 | 7814 |
11038 /* Override any GCC internal prototype to avoid an error. | 7815 /* Override any GCC internal prototype to avoid an error. |
11039 Use char because int might match the return type of a GCC | 7816 Use char because int might match the return type of a GCC |
11040 builtin and then its argument prototype would still apply. */ | 7817 builtin and then its argument prototype would still apply. */ |
11048 return cma_open (); | 7825 return cma_open (); |
11049 ; | 7826 ; |
11050 return 0; | 7827 return 0; |
11051 } | 7828 } |
11052 _ACEOF | 7829 _ACEOF |
11053 rm -f conftest.$ac_objext conftest$ac_exeext | 7830 if ac_fn_c_try_link "$LINENO"; then : |
11054 if { (ac_try="$ac_link" | |
11055 case "(($ac_try" in | |
11056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11057 *) ac_try_echo=$ac_try;; | |
11058 esac | |
11059 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11060 $as_echo "$ac_try_echo") >&5 | |
11061 (eval "$ac_link") 2>conftest.er1 | |
11062 ac_status=$? | |
11063 grep -v '^ *+' conftest.er1 >conftest.err | |
11064 rm -f conftest.er1 | |
11065 cat conftest.err >&5 | |
11066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11067 (exit $ac_status); } && { | |
11068 test -z "$ac_c_werror_flag" || | |
11069 test ! -s conftest.err | |
11070 } && test -s conftest$ac_exeext && { | |
11071 test "$cross_compiling" = yes || | |
11072 $as_test_x conftest$ac_exeext | |
11073 }; then | |
11074 ac_cv_lib_pthreads_cma_open=yes | 7831 ac_cv_lib_pthreads_cma_open=yes |
11075 else | 7832 else |
11076 $as_echo "$as_me: failed program was:" >&5 | 7833 ac_cv_lib_pthreads_cma_open=no |
11077 sed 's/^/| /' conftest.$ac_ext >&5 | 7834 fi |
11078 | 7835 rm -f core conftest.err conftest.$ac_objext \ |
11079 ac_cv_lib_pthreads_cma_open=no | 7836 conftest$ac_exeext conftest.$ac_ext |
11080 fi | |
11081 | |
11082 rm -rf conftest.dSYM | |
11083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11084 conftest$ac_exeext conftest.$ac_ext | |
11085 LIBS=$ac_check_lib_save_LIBS | 7837 LIBS=$ac_check_lib_save_LIBS |
11086 fi | 7838 fi |
11087 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5 | 7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5 |
11088 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; } | 7840 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; } |
11089 if test $ac_cv_lib_pthreads_cma_open = yes; then | 7841 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then : |
11090 cat >>confdefs.h <<_ACEOF | 7842 cat >>confdefs.h <<_ACEOF |
11091 #define HAVE_LIBPTHREADS 1 | 7843 #define HAVE_LIBPTHREADS 1 |
11092 _ACEOF | 7844 _ACEOF |
11093 | 7845 |
11094 LIBS="-lpthreads $LIBS" | 7846 LIBS="-lpthreads $LIBS" |
11097 | 7849 |
11098 | 7850 |
11099 | 7851 |
11100 case ${host_os} in | 7852 case ${host_os} in |
11101 aix*) | 7853 aix*) |
11102 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5 | 7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5 |
11103 $as_echo_n "checking for -bbigtoc option... " >&6; } | 7855 $as_echo_n "checking for -bbigtoc option... " >&6; } |
11104 if test "${gdb_cv_bigtoc+set}" = set; then | 7856 if test "${gdb_cv_bigtoc+set}" = set; then : |
11105 $as_echo_n "(cached) " >&6 | 7857 $as_echo_n "(cached) " >&6 |
11106 else | 7858 else |
11107 | 7859 |
11108 case $GCC in | 7860 case $GCC in |
11109 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;; | 7861 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;; |
11110 *) gdb_cv_bigtoc=-bbigtoc ;; | 7862 *) gdb_cv_bigtoc=-bbigtoc ;; |
11111 esac | 7863 esac |
11112 | 7864 |
11113 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc | 7865 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc |
11114 cat >conftest.$ac_ext <<_ACEOF | 7866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11115 /* confdefs.h. */ | |
11116 _ACEOF | |
11117 cat confdefs.h >>conftest.$ac_ext | |
11118 cat >>conftest.$ac_ext <<_ACEOF | |
11119 /* end confdefs.h. */ | 7867 /* end confdefs.h. */ |
11120 | 7868 |
11121 int | 7869 int |
11122 main () | 7870 main () |
11123 { | 7871 { |
11124 int i; | 7872 int i; |
11125 ; | 7873 ; |
11126 return 0; | 7874 return 0; |
11127 } | 7875 } |
11128 _ACEOF | 7876 _ACEOF |
11129 rm -f conftest.$ac_objext conftest$ac_exeext | 7877 if ac_fn_c_try_link "$LINENO"; then : |
11130 if { (ac_try="$ac_link" | 7878 |
11131 case "(($ac_try" in | 7879 else |
11132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 7880 gdb_cv_bigtoc= |
11133 *) ac_try_echo=$ac_try;; | 7881 fi |
11134 esac | 7882 rm -f core conftest.err conftest.$ac_objext \ |
11135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | 7883 conftest$ac_exeext conftest.$ac_ext |
11136 $as_echo "$ac_try_echo") >&5 | 7884 |
11137 (eval "$ac_link") 2>conftest.er1 | 7885 fi |
11138 ac_status=$? | 7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5 |
11139 grep -v '^ *+' conftest.er1 >conftest.err | |
11140 rm -f conftest.er1 | |
11141 cat conftest.err >&5 | |
11142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11143 (exit $ac_status); } && { | |
11144 test -z "$ac_c_werror_flag" || | |
11145 test ! -s conftest.err | |
11146 } && test -s conftest$ac_exeext && { | |
11147 test "$cross_compiling" = yes || | |
11148 $as_test_x conftest$ac_exeext | |
11149 }; then | |
11150 : | |
11151 else | |
11152 $as_echo "$as_me: failed program was:" >&5 | |
11153 sed 's/^/| /' conftest.$ac_ext >&5 | |
11154 | |
11155 gdb_cv_bigtoc= | |
11156 fi | |
11157 | |
11158 rm -rf conftest.dSYM | |
11159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11160 conftest$ac_exeext conftest.$ac_ext | |
11161 | |
11162 fi | |
11163 { $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5 | |
11164 $as_echo "$gdb_cv_bigtoc" >&6; } | 7887 $as_echo "$gdb_cv_bigtoc" >&6; } |
11165 ;; | 7888 ;; |
11166 esac | 7889 esac |
11167 | 7890 |
11168 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets | 7891 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets |
11186 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH | 7909 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH |
11187 export LD_RUN_PATH | 7910 export LD_RUN_PATH |
11188 fi | 7911 fi |
11189 | 7912 |
11190 if test "${opsys}" = "gnu-linux"; then | 7913 if test "${opsys}" = "gnu-linux"; then |
11191 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5 | 7914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5 |
11192 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; } | 7915 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; } |
11193 cat >conftest.$ac_ext <<_ACEOF | 7916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11194 /* confdefs.h. */ | |
11195 _ACEOF | |
11196 cat confdefs.h >>conftest.$ac_ext | |
11197 cat >>conftest.$ac_ext <<_ACEOF | |
11198 /* end confdefs.h. */ | 7917 /* end confdefs.h. */ |
11199 | 7918 |
11200 int | 7919 int |
11201 main () | 7920 main () |
11202 { | 7921 { |
11203 XOpenDisplay ("foo"); | 7922 XOpenDisplay ("foo"); |
11204 ; | 7923 ; |
11205 return 0; | 7924 return 0; |
11206 } | 7925 } |
11207 _ACEOF | 7926 _ACEOF |
11208 rm -f conftest.$ac_objext conftest$ac_exeext | 7927 if ac_fn_c_try_link "$LINENO"; then : |
11209 if { (ac_try="$ac_link" | |
11210 case "(($ac_try" in | |
11211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11212 *) ac_try_echo=$ac_try;; | |
11213 esac | |
11214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11215 $as_echo "$ac_try_echo") >&5 | |
11216 (eval "$ac_link") 2>conftest.er1 | |
11217 ac_status=$? | |
11218 grep -v '^ *+' conftest.er1 >conftest.err | |
11219 rm -f conftest.er1 | |
11220 cat conftest.err >&5 | |
11221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11222 (exit $ac_status); } && { | |
11223 test -z "$ac_c_werror_flag" || | |
11224 test ! -s conftest.err | |
11225 } && test -s conftest$ac_exeext && { | |
11226 test "$cross_compiling" = yes || | |
11227 $as_test_x conftest$ac_exeext | |
11228 }; then | |
11229 xlinux_first_failure=no | 7928 xlinux_first_failure=no |
11230 else | 7929 else |
11231 $as_echo "$as_me: failed program was:" >&5 | 7930 xlinux_first_failure=yes |
11232 sed 's/^/| /' conftest.$ac_ext >&5 | 7931 fi |
11233 | 7932 rm -f core conftest.err conftest.$ac_objext \ |
11234 xlinux_first_failure=yes | 7933 conftest$ac_exeext conftest.$ac_ext |
11235 fi | |
11236 | |
11237 rm -rf conftest.dSYM | |
11238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11239 conftest$ac_exeext conftest.$ac_ext | |
11240 if test "${xlinux_first_failure}" = "yes"; then | 7934 if test "${xlinux_first_failure}" = "yes"; then |
11241 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE" | 7935 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE" |
11242 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE" | 7936 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE" |
11243 OLD_CPPFLAGS="$CPPFLAGS" | 7937 OLD_CPPFLAGS="$CPPFLAGS" |
11244 OLD_LIBS="$LIBS" | 7938 OLD_LIBS="$LIBS" |
11245 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout" | 7939 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout" |
11246 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" | 7940 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" |
11247 CPPFLAGS="$CPPFLAGS -b i486-linuxaout" | 7941 CPPFLAGS="$CPPFLAGS -b i486-linuxaout" |
11248 LIBS="$LIBS -b i486-linuxaout" | 7942 LIBS="$LIBS -b i486-linuxaout" |
11249 cat >conftest.$ac_ext <<_ACEOF | 7943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11250 /* confdefs.h. */ | |
11251 _ACEOF | |
11252 cat confdefs.h >>conftest.$ac_ext | |
11253 cat >>conftest.$ac_ext <<_ACEOF | |
11254 /* end confdefs.h. */ | 7944 /* end confdefs.h. */ |
11255 | 7945 |
11256 int | 7946 int |
11257 main () | 7947 main () |
11258 { | 7948 { |
11259 XOpenDisplay ("foo"); | 7949 XOpenDisplay ("foo"); |
11260 ; | 7950 ; |
11261 return 0; | 7951 return 0; |
11262 } | 7952 } |
11263 _ACEOF | 7953 _ACEOF |
11264 rm -f conftest.$ac_objext conftest$ac_exeext | 7954 if ac_fn_c_try_link "$LINENO"; then : |
11265 if { (ac_try="$ac_link" | |
11266 case "(($ac_try" in | |
11267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11268 *) ac_try_echo=$ac_try;; | |
11269 esac | |
11270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11271 $as_echo "$ac_try_echo") >&5 | |
11272 (eval "$ac_link") 2>conftest.er1 | |
11273 ac_status=$? | |
11274 grep -v '^ *+' conftest.er1 >conftest.err | |
11275 rm -f conftest.er1 | |
11276 cat conftest.err >&5 | |
11277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11278 (exit $ac_status); } && { | |
11279 test -z "$ac_c_werror_flag" || | |
11280 test ! -s conftest.err | |
11281 } && test -s conftest$ac_exeext && { | |
11282 test "$cross_compiling" = yes || | |
11283 $as_test_x conftest$ac_exeext | |
11284 }; then | |
11285 xlinux_second_failure=no | 7955 xlinux_second_failure=no |
11286 else | 7956 else |
11287 $as_echo "$as_me: failed program was:" >&5 | 7957 xlinux_second_failure=yes |
11288 sed 's/^/| /' conftest.$ac_ext >&5 | 7958 fi |
11289 | 7959 rm -f core conftest.err conftest.$ac_objext \ |
11290 xlinux_second_failure=yes | 7960 conftest$ac_exeext conftest.$ac_ext |
11291 fi | |
11292 | |
11293 rm -rf conftest.dSYM | |
11294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11295 conftest$ac_exeext conftest.$ac_ext | |
11296 if test "${xlinux_second_failure}" = "yes"; then | 7961 if test "${xlinux_second_failure}" = "yes"; then |
11297 # If we get the same failure with -b, there is no use adding -b. | 7962 # If we get the same failure with -b, there is no use adding -b. |
11298 # So take it out. This plays safe. | 7963 # So take it out. This plays safe. |
11299 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE" | 7964 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE" |
11300 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE" | 7965 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE" |
11301 CPPFLAGS="$OLD_CPPFLAGS" | 7966 CPPFLAGS="$OLD_CPPFLAGS" |
11302 LIBS="$OLD_LIBS" | 7967 LIBS="$OLD_LIBS" |
11303 { $as_echo "$as_me:$LINENO: result: no" >&5 | 7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11304 $as_echo "no" >&6; } | 7969 $as_echo "no" >&6; } |
11305 else | 7970 else |
11306 { $as_echo "$as_me:$LINENO: result: yes" >&5 | 7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11307 $as_echo "yes" >&6; } | 7972 $as_echo "yes" >&6; } |
11308 fi | 7973 fi |
11309 else | 7974 else |
11310 { $as_echo "$as_me:$LINENO: result: no" >&5 | 7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11311 $as_echo "no" >&6; } | 7976 $as_echo "no" >&6; } |
11312 fi | 7977 fi |
11313 fi | 7978 fi |
11314 | 7979 |
11315 # Reportedly, some broken Solaris systems have XKBlib.h but are missing | 7980 # Reportedly, some broken Solaris systems have XKBlib.h but are missing |
11316 # header files included from there. | 7981 # header files included from there. |
11317 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5 | 7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5 |
11318 $as_echo_n "checking for Xkb... " >&6; } | 7983 $as_echo_n "checking for Xkb... " >&6; } |
11319 cat >conftest.$ac_ext <<_ACEOF | 7984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11320 /* confdefs.h. */ | |
11321 _ACEOF | |
11322 cat confdefs.h >>conftest.$ac_ext | |
11323 cat >>conftest.$ac_ext <<_ACEOF | |
11324 /* end confdefs.h. */ | 7985 /* end confdefs.h. */ |
11325 #include <X11/Xlib.h> | 7986 #include <X11/Xlib.h> |
11326 #include <X11/XKBlib.h> | 7987 #include <X11/XKBlib.h> |
11327 int | 7988 int |
11328 main () | 7989 main () |
11330 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd); | 7991 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd); |
11331 ; | 7992 ; |
11332 return 0; | 7993 return 0; |
11333 } | 7994 } |
11334 _ACEOF | 7995 _ACEOF |
11335 rm -f conftest.$ac_objext conftest$ac_exeext | 7996 if ac_fn_c_try_link "$LINENO"; then : |
11336 if { (ac_try="$ac_link" | |
11337 case "(($ac_try" in | |
11338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11339 *) ac_try_echo=$ac_try;; | |
11340 esac | |
11341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11342 $as_echo "$ac_try_echo") >&5 | |
11343 (eval "$ac_link") 2>conftest.er1 | |
11344 ac_status=$? | |
11345 grep -v '^ *+' conftest.er1 >conftest.err | |
11346 rm -f conftest.er1 | |
11347 cat conftest.err >&5 | |
11348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11349 (exit $ac_status); } && { | |
11350 test -z "$ac_c_werror_flag" || | |
11351 test ! -s conftest.err | |
11352 } && test -s conftest$ac_exeext && { | |
11353 test "$cross_compiling" = yes || | |
11354 $as_test_x conftest$ac_exeext | |
11355 }; then | |
11356 emacs_xkb=yes | 7997 emacs_xkb=yes |
11357 else | 7998 else |
11358 $as_echo "$as_me: failed program was:" >&5 | 7999 emacs_xkb=no |
11359 sed 's/^/| /' conftest.$ac_ext >&5 | 8000 fi |
11360 | 8001 rm -f core conftest.err conftest.$ac_objext \ |
11361 emacs_xkb=no | 8002 conftest$ac_exeext conftest.$ac_ext |
11362 fi | 8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5 |
11363 | |
11364 rm -rf conftest.dSYM | |
11365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11366 conftest$ac_exeext conftest.$ac_ext | |
11367 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5 | |
11368 $as_echo "$emacs_xkb" >&6; } | 8004 $as_echo "$emacs_xkb" >&6; } |
11369 if test $emacs_xkb = yes; then | 8005 if test $emacs_xkb = yes; then |
11370 | 8006 |
11371 cat >>confdefs.h <<\_ACEOF | 8007 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h |
11372 #define HAVE_XKBGETKEYBOARD 1 | 8008 |
11373 _ACEOF | 8009 fi |
11374 | 8010 |
11375 fi | 8011 for ac_func in XrmSetDatabase XScreenResourceString \ |
11376 | |
11377 | |
11378 | |
11379 | |
11380 | |
11381 for ac_func in XrmSetDatabase XScreenResourceString \ | |
11382 XScreenNumberOfScreen XSetWMProtocols | 8012 XScreenNumberOfScreen XSetWMProtocols |
11383 do | 8013 do : |
11384 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 8014 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
11385 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | 8015 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
11386 $as_echo_n "checking for $ac_func... " >&6; } | 8016 eval as_val=\$$as_ac_var |
11387 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 8017 if test "x$as_val" = x""yes; then : |
11388 $as_echo_n "(cached) " >&6 | |
11389 else | |
11390 cat >conftest.$ac_ext <<_ACEOF | |
11391 /* confdefs.h. */ | |
11392 _ACEOF | |
11393 cat confdefs.h >>conftest.$ac_ext | |
11394 cat >>conftest.$ac_ext <<_ACEOF | |
11395 /* end confdefs.h. */ | |
11396 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
11397 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11398 #define $ac_func innocuous_$ac_func | |
11399 | |
11400 /* System header to define __stub macros and hopefully few prototypes, | |
11401 which can conflict with char $ac_func (); below. | |
11402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11403 <limits.h> exists even on freestanding compilers. */ | |
11404 | |
11405 #ifdef __STDC__ | |
11406 # include <limits.h> | |
11407 #else | |
11408 # include <assert.h> | |
11409 #endif | |
11410 | |
11411 #undef $ac_func | |
11412 | |
11413 /* Override any GCC internal prototype to avoid an error. | |
11414 Use char because int might match the return type of a GCC | |
11415 builtin and then its argument prototype would still apply. */ | |
11416 #ifdef __cplusplus | |
11417 extern "C" | |
11418 #endif | |
11419 char $ac_func (); | |
11420 /* The GNU C library defines this for functions which it implements | |
11421 to always fail with ENOSYS. Some functions are actually named | |
11422 something starting with __ and the normal name is an alias. */ | |
11423 #if defined __stub_$ac_func || defined __stub___$ac_func | |
11424 choke me | |
11425 #endif | |
11426 | |
11427 int | |
11428 main () | |
11429 { | |
11430 return $ac_func (); | |
11431 ; | |
11432 return 0; | |
11433 } | |
11434 _ACEOF | |
11435 rm -f conftest.$ac_objext conftest$ac_exeext | |
11436 if { (ac_try="$ac_link" | |
11437 case "(($ac_try" in | |
11438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11439 *) ac_try_echo=$ac_try;; | |
11440 esac | |
11441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11442 $as_echo "$ac_try_echo") >&5 | |
11443 (eval "$ac_link") 2>conftest.er1 | |
11444 ac_status=$? | |
11445 grep -v '^ *+' conftest.er1 >conftest.err | |
11446 rm -f conftest.er1 | |
11447 cat conftest.err >&5 | |
11448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11449 (exit $ac_status); } && { | |
11450 test -z "$ac_c_werror_flag" || | |
11451 test ! -s conftest.err | |
11452 } && test -s conftest$ac_exeext && { | |
11453 test "$cross_compiling" = yes || | |
11454 $as_test_x conftest$ac_exeext | |
11455 }; then | |
11456 eval "$as_ac_var=yes" | |
11457 else | |
11458 $as_echo "$as_me: failed program was:" >&5 | |
11459 sed 's/^/| /' conftest.$ac_ext >&5 | |
11460 | |
11461 eval "$as_ac_var=no" | |
11462 fi | |
11463 | |
11464 rm -rf conftest.dSYM | |
11465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11466 conftest$ac_exeext conftest.$ac_ext | |
11467 fi | |
11468 ac_res=`eval 'as_val=${'$as_ac_var'} | |
11469 $as_echo "$as_val"'` | |
11470 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11471 $as_echo "$ac_res" >&6; } | |
11472 if test `eval 'as_val=${'$as_ac_var'} | |
11473 $as_echo "$as_val"'` = yes; then | |
11474 cat >>confdefs.h <<_ACEOF | 8018 cat >>confdefs.h <<_ACEOF |
11475 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 8019 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
11476 _ACEOF | 8020 _ACEOF |
11477 | 8021 |
11478 fi | 8022 fi |
11479 done | 8023 done |
11480 | 8024 |
11481 fi | 8025 fi |
11482 | 8026 |
11483 if test "${window_system}" = "x11"; then | 8027 if test "${window_system}" = "x11"; then |
11484 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5 | 8028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5 |
11485 $as_echo_n "checking X11 version 6... " >&6; } | 8029 $as_echo_n "checking X11 version 6... " >&6; } |
11486 if test "${emacs_cv_x11_version_6+set}" = set; then | 8030 if test "${emacs_cv_x11_version_6+set}" = set; then : |
11487 $as_echo_n "(cached) " >&6 | 8031 $as_echo_n "(cached) " >&6 |
11488 else | 8032 else |
11489 cat >conftest.$ac_ext <<_ACEOF | 8033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11490 /* confdefs.h. */ | |
11491 _ACEOF | |
11492 cat confdefs.h >>conftest.$ac_ext | |
11493 cat >>conftest.$ac_ext <<_ACEOF | |
11494 /* end confdefs.h. */ | 8034 /* end confdefs.h. */ |
11495 #include <X11/Xlib.h> | 8035 #include <X11/Xlib.h> |
11496 int | 8036 int |
11497 main () | 8037 main () |
11498 { | 8038 { |
11502 | 8042 |
11503 ; | 8043 ; |
11504 return 0; | 8044 return 0; |
11505 } | 8045 } |
11506 _ACEOF | 8046 _ACEOF |
11507 rm -f conftest.$ac_objext conftest$ac_exeext | 8047 if ac_fn_c_try_link "$LINENO"; then : |
11508 if { (ac_try="$ac_link" | |
11509 case "(($ac_try" in | |
11510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11511 *) ac_try_echo=$ac_try;; | |
11512 esac | |
11513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11514 $as_echo "$ac_try_echo") >&5 | |
11515 (eval "$ac_link") 2>conftest.er1 | |
11516 ac_status=$? | |
11517 grep -v '^ *+' conftest.er1 >conftest.err | |
11518 rm -f conftest.er1 | |
11519 cat conftest.err >&5 | |
11520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11521 (exit $ac_status); } && { | |
11522 test -z "$ac_c_werror_flag" || | |
11523 test ! -s conftest.err | |
11524 } && test -s conftest$ac_exeext && { | |
11525 test "$cross_compiling" = yes || | |
11526 $as_test_x conftest$ac_exeext | |
11527 }; then | |
11528 emacs_cv_x11_version_6=yes | 8048 emacs_cv_x11_version_6=yes |
11529 else | 8049 else |
11530 $as_echo "$as_me: failed program was:" >&5 | 8050 emacs_cv_x11_version_6=no |
11531 sed 's/^/| /' conftest.$ac_ext >&5 | 8051 fi |
11532 | 8052 rm -f core conftest.err conftest.$ac_objext \ |
11533 emacs_cv_x11_version_6=no | 8053 conftest$ac_exeext conftest.$ac_ext |
11534 fi | |
11535 | |
11536 rm -rf conftest.dSYM | |
11537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11538 conftest$ac_exeext conftest.$ac_ext | |
11539 fi | 8054 fi |
11540 | 8055 |
11541 if test $emacs_cv_x11_version_6 = yes; then | 8056 if test $emacs_cv_x11_version_6 = yes; then |
11542 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5 | 8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5 |
11543 $as_echo "6 or newer" >&6; } | 8058 $as_echo "6 or newer" >&6; } |
11544 | 8059 |
11545 cat >>confdefs.h <<\_ACEOF | 8060 $as_echo "#define HAVE_X11R6 1" >>confdefs.h |
11546 #define HAVE_X11R6 1 | |
11547 _ACEOF | |
11548 | 8061 |
11549 else | 8062 else |
11550 { $as_echo "$as_me:$LINENO: result: before 6" >&5 | 8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5 |
11551 $as_echo "before 6" >&6; } | 8064 $as_echo "before 6" >&6; } |
11552 fi | 8065 fi |
11553 fi | 8066 fi |
11554 | 8067 |
11555 | 8068 |
11563 | 8076 |
11564 succeeded=no | 8077 succeeded=no |
11565 | 8078 |
11566 # Extract the first word of "pkg-config", so it can be a program name with args. | 8079 # Extract the first word of "pkg-config", so it can be a program name with args. |
11567 set dummy pkg-config; ac_word=$2 | 8080 set dummy pkg-config; ac_word=$2 |
11568 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | 8081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11569 $as_echo_n "checking for $ac_word... " >&6; } | 8082 $as_echo_n "checking for $ac_word... " >&6; } |
11570 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | 8083 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
11571 $as_echo_n "(cached) " >&6 | 8084 $as_echo_n "(cached) " >&6 |
11572 else | 8085 else |
11573 case $PKG_CONFIG in | 8086 case $PKG_CONFIG in |
11574 [\\/]* | ?:[\\/]*) | 8087 [\\/]* | ?:[\\/]*) |
11575 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | 8088 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
11578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 8091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11579 for as_dir in $PATH | 8092 for as_dir in $PATH |
11580 do | 8093 do |
11581 IFS=$as_save_IFS | 8094 IFS=$as_save_IFS |
11582 test -z "$as_dir" && as_dir=. | 8095 test -z "$as_dir" && as_dir=. |
11583 for ac_exec_ext in '' $ac_executable_extensions; do | 8096 for ac_exec_ext in '' $ac_executable_extensions; do |
11584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 8097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
11585 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | 8098 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
11586 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 8099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
11587 break 2 | 8100 break 2 |
11588 fi | 8101 fi |
11589 done | 8102 done |
11590 done | 8103 done |
11591 IFS=$as_save_IFS | 8104 IFS=$as_save_IFS |
11592 | 8105 |
11593 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | 8106 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
11594 ;; | 8107 ;; |
11595 esac | 8108 esac |
11596 fi | 8109 fi |
11597 PKG_CONFIG=$ac_cv_path_PKG_CONFIG | 8110 PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
11598 if test -n "$PKG_CONFIG"; then | 8111 if test -n "$PKG_CONFIG"; then |
11599 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | 8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
11600 $as_echo "$PKG_CONFIG" >&6; } | 8113 $as_echo "$PKG_CONFIG" >&6; } |
11601 else | 8114 else |
11602 { $as_echo "$as_me:$LINENO: result: no" >&5 | 8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11603 $as_echo "no" >&6; } | 8116 $as_echo "no" >&6; } |
11604 fi | 8117 fi |
11605 | 8118 |
11606 | 8119 |
11607 | 8120 |
11608 if test "$PKG_CONFIG" = "no" ; then | 8121 if test "$PKG_CONFIG" = "no" ; then |
11609 : | 8122 : |
11610 else | 8123 else |
11611 PKG_CONFIG_MIN_VERSION=0.9.0 | 8124 PKG_CONFIG_MIN_VERSION=0.9.0 |
11612 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | 8125 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then |
11613 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5 | 8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5 |
11614 $as_echo_n "checking for $RSVG_MODULE... " >&6; } | 8127 $as_echo_n "checking for $RSVG_MODULE... " >&6; } |
11615 | 8128 |
11616 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then | 8129 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then |
11617 { $as_echo "$as_me:$LINENO: result: yes" >&5 | 8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11618 $as_echo "yes" >&6; } | 8131 $as_echo "yes" >&6; } |
11619 succeeded=yes | 8132 succeeded=yes |
11620 | 8133 |
11621 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5 | 8134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5 |
11622 $as_echo_n "checking RSVG_CFLAGS... " >&6; } | 8135 $as_echo_n "checking RSVG_CFLAGS... " >&6; } |
11623 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'` | 8136 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'` |
11624 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5 | 8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5 |
11625 $as_echo "$RSVG_CFLAGS" >&6; } | 8138 $as_echo "$RSVG_CFLAGS" >&6; } |
11626 | 8139 |
11627 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5 | 8140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5 |
11628 $as_echo_n "checking RSVG_LIBS... " >&6; } | 8141 $as_echo_n "checking RSVG_LIBS... " >&6; } |
11629 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'` | 8142 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'` |
11630 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5 | 8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5 |
11631 $as_echo "$RSVG_LIBS" >&6; } | 8144 $as_echo "$RSVG_LIBS" >&6; } |
11632 else | 8145 else |
11633 { $as_echo "$as_me:$LINENO: result: no" >&5 | 8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11634 $as_echo "no" >&6; } | 8147 $as_echo "no" >&6; } |
11635 RSVG_CFLAGS="" | 8148 RSVG_CFLAGS="" |
11636 RSVG_LIBS="" | 8149 RSVG_LIBS="" |
11637 ## If we have a custom action on failure, don't print errors, but | 8150 ## If we have a custom action on failure, don't print errors, but |
11638 ## do set a variable so people can do so. | 8151 ## do set a variable so people can do so. |
11658 | 8171 |
11659 | 8172 |
11660 if test ".${RSVG_CFLAGS}" != "."; then | 8173 if test ".${RSVG_CFLAGS}" != "."; then |
11661 HAVE_RSVG=yes | 8174 HAVE_RSVG=yes |
11662 | 8175 |
11663 cat >>confdefs.h <<\_ACEOF | 8176 $as_echo "#define HAVE_RSVG 1" >>confdefs.h |
11664 #define HAVE_RSVG 1 | |
11665 _ACEOF | |
11666 | 8177 |
11667 CFLAGS="$CFLAGS $RSVG_CFLAGS" | 8178 CFLAGS="$CFLAGS $RSVG_CFLAGS" |
11668 LIBS="$RSVG_LIBS $LIBS" | 8179 LIBS="$RSVG_LIBS $LIBS" |
11669 fi | 8180 fi |
11670 fi | 8181 fi |
11680 | 8191 |
11681 succeeded=no | 8192 succeeded=no |
11682 | 8193 |
11683 # Extract the first word of "pkg-config", so it can be a program name with args. | 8194 # Extract the first word of "pkg-config", so it can be a program name with args. |
11684 set dummy pkg-config; ac_word=$2 | 8195 set dummy pkg-config; ac_word=$2 |
11685 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | 8196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11686 $as_echo_n "checking for $ac_word... " >&6; } | 8197 $as_echo_n "checking for $ac_word... " >&6; } |
11687 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | 8198 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
11688 $as_echo_n "(cached) " >&6 | 8199 $as_echo_n "(cached) " >&6 |
11689 else | 8200 else |
11690 case $PKG_CONFIG in | 8201 case $PKG_CONFIG in |
11691 [\\/]* | ?:[\\/]*) | 8202 [\\/]* | ?:[\\/]*) |
11692 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | 8203 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
11695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 8206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11696 for as_dir in $PATH | 8207 for as_dir in $PATH |
11697 do | 8208 do |
11698 IFS=$as_save_IFS | 8209 IFS=$as_save_IFS |
11699 test -z "$as_dir" && as_dir=. | 8210 test -z "$as_dir" && as_dir=. |
11700 for ac_exec_ext in '' $ac_executable_extensions; do | 8211 for ac_exec_ext in '' $ac_executable_extensions; do |
11701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 8212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
11702 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | 8213 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
11703 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 8214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
11704 break 2 | 8215 break 2 |
11705 fi | 8216 fi |
11706 done | 8217 done |
11707 done | 8218 done |
11708 IFS=$as_save_IFS | 8219 IFS=$as_save_IFS |
11709 | 8220 |
11710 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | 8221 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
11711 ;; | 8222 ;; |
11712 esac | 8223 esac |
11713 fi | 8224 fi |
11714 PKG_CONFIG=$ac_cv_path_PKG_CONFIG | 8225 PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
11715 if test -n "$PKG_CONFIG"; then | 8226 if test -n "$PKG_CONFIG"; then |
11716 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | 8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
11717 $as_echo "$PKG_CONFIG" >&6; } | 8228 $as_echo "$PKG_CONFIG" >&6; } |
11718 else | 8229 else |
11719 { $as_echo "$as_me:$LINENO: result: no" >&5 | 8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11720 $as_echo "no" >&6; } | 8231 $as_echo "no" >&6; } |
11721 fi | 8232 fi |
11722 | 8233 |
11723 | 8234 |
11724 | 8235 |
11725 if test "$PKG_CONFIG" = "no" ; then | 8236 if test "$PKG_CONFIG" = "no" ; then |
11726 pkg_check_gtk=no | 8237 pkg_check_gtk=no |
11727 else | 8238 else |
11728 PKG_CONFIG_MIN_VERSION=0.9.0 | 8239 PKG_CONFIG_MIN_VERSION=0.9.0 |
11729 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | 8240 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then |
11730 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5 | 8241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5 |
11731 $as_echo_n "checking for $GTK_MODULES... " >&6; } | 8242 $as_echo_n "checking for $GTK_MODULES... " >&6; } |
11732 | 8243 |
11733 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then | 8244 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then |
11734 { $as_echo "$as_me:$LINENO: result: yes" >&5 | 8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11735 $as_echo "yes" >&6; } | 8246 $as_echo "yes" >&6; } |
11736 succeeded=yes | 8247 succeeded=yes |
11737 | 8248 |
11738 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5 | 8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5 |
11739 $as_echo_n "checking GTK_CFLAGS... " >&6; } | 8250 $as_echo_n "checking GTK_CFLAGS... " >&6; } |
11740 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'` | 8251 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'` |
11741 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5 | 8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5 |
11742 $as_echo "$GTK_CFLAGS" >&6; } | 8253 $as_echo "$GTK_CFLAGS" >&6; } |
11743 | 8254 |
11744 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5 | 8255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5 |
11745 $as_echo_n "checking GTK_LIBS... " >&6; } | 8256 $as_echo_n "checking GTK_LIBS... " >&6; } |
11746 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'` | 8257 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'` |
11747 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5 | 8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5 |
11748 $as_echo "$GTK_LIBS" >&6; } | 8259 $as_echo "$GTK_LIBS" >&6; } |
11749 else | 8260 else |
11750 { $as_echo "$as_me:$LINENO: result: no" >&5 | 8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11751 $as_echo "no" >&6; } | 8262 $as_echo "no" >&6; } |
11752 GTK_CFLAGS="" | 8263 GTK_CFLAGS="" |
11753 GTK_LIBS="" | 8264 GTK_LIBS="" |
11754 ## If we have a custom action on failure, don't print errors, but | 8265 ## If we have a custom action on failure, don't print errors, but |
11755 ## do set a variable so people can do so. | 8266 ## do set a variable so people can do so. |
11770 else | 8281 else |
11771 pkg_check_gtk=no | 8282 pkg_check_gtk=no |
11772 fi | 8283 fi |
11773 | 8284 |
11774 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then | 8285 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then |
11775 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5 | 8286 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5 |
11776 $as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;} | |
11777 { (exit 1); exit 1; }; } | |
11778 fi | 8287 fi |
11779 fi | 8288 fi |
11780 | 8289 |
11781 | 8290 |
11782 GTK_OBJ= | 8291 GTK_OBJ= |
11786 | 8295 |
11787 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS" | 8296 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS" |
11788 CFLAGS="$CFLAGS $GTK_CFLAGS" | 8297 CFLAGS="$CFLAGS $GTK_CFLAGS" |
11789 LIBS="$GTK_LIBS $LIBS" | 8298 LIBS="$GTK_LIBS $LIBS" |
11790 GTK_COMPILES=no | 8299 GTK_COMPILES=no |
11791 | 8300 for ac_func in gtk_main |
11792 for ac_func in gtk_main | 8301 do : |
11793 do | 8302 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main" |
11794 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 8303 if test "x$ac_cv_func_gtk_main" = x""yes; then : |
11795 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
11796 $as_echo_n "checking for $ac_func... " >&6; } | |
11797 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
11798 $as_echo_n "(cached) " >&6 | |
11799 else | |
11800 cat >conftest.$ac_ext <<_ACEOF | |
11801 /* confdefs.h. */ | |
11802 _ACEOF | |
11803 cat confdefs.h >>conftest.$ac_ext | |
11804 cat >>conftest.$ac_ext <<_ACEOF | |
11805 /* end confdefs.h. */ | |
11806 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
11807 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11808 #define $ac_func innocuous_$ac_func | |
11809 | |
11810 /* System header to define __stub macros and hopefully few prototypes, | |
11811 which can conflict with char $ac_func (); below. | |
11812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11813 <limits.h> exists even on freestanding compilers. */ | |
11814 | |
11815 #ifdef __STDC__ | |
11816 # include <limits.h> | |
11817 #else | |
11818 # include <assert.h> | |
11819 #endif | |
11820 | |
11821 #undef $ac_func | |
11822 | |
11823 /* Override any GCC internal prototype to avoid an error. | |
11824 Use char because int might match the return type of a GCC | |
11825 builtin and then its argument prototype would still apply. */ | |
11826 #ifdef __cplusplus | |
11827 extern "C" | |
11828 #endif | |
11829 char $ac_func (); | |
11830 /* The GNU C library defines this for functions which it implements | |
11831 to always fail with ENOSYS. Some functions are actually named | |
11832 something starting with __ and the normal name is an alias. */ | |
11833 #if defined __stub_$ac_func || defined __stub___$ac_func | |
11834 choke me | |
11835 #endif | |
11836 | |
11837 int | |
11838 main () | |
11839 { | |
11840 return $ac_func (); | |
11841 ; | |
11842 return 0; | |
11843 } | |
11844 _ACEOF | |
11845 rm -f conftest.$ac_objext conftest$ac_exeext | |
11846 if { (ac_try="$ac_link" | |
11847 case "(($ac_try" in | |
11848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11849 *) ac_try_echo=$ac_try;; | |
11850 esac | |
11851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11852 $as_echo "$ac_try_echo") >&5 | |
11853 (eval "$ac_link") 2>conftest.er1 | |
11854 ac_status=$? | |
11855 grep -v '^ *+' conftest.er1 >conftest.err | |
11856 rm -f conftest.er1 | |
11857 cat conftest.err >&5 | |
11858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11859 (exit $ac_status); } && { | |
11860 test -z "$ac_c_werror_flag" || | |
11861 test ! -s conftest.err | |
11862 } && test -s conftest$ac_exeext && { | |
11863 test "$cross_compiling" = yes || | |
11864 $as_test_x conftest$ac_exeext | |
11865 }; then | |
11866 eval "$as_ac_var=yes" | |
11867 else | |
11868 $as_echo "$as_me: failed program was:" >&5 | |
11869 sed 's/^/| /' conftest.$ac_ext >&5 | |
11870 | |
11871 eval "$as_ac_var=no" | |
11872 fi | |
11873 | |
11874 rm -rf conftest.dSYM | |
11875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11876 conftest$ac_exeext conftest.$ac_ext | |
11877 fi | |
11878 ac_res=`eval 'as_val=${'$as_ac_var'} | |
11879 $as_echo "$as_val"'` | |
11880 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11881 $as_echo "$ac_res" >&6; } | |
11882 if test `eval 'as_val=${'$as_ac_var'} | |
11883 $as_echo "$as_val"'` = yes; then | |
11884 cat >>confdefs.h <<_ACEOF | 8304 cat >>confdefs.h <<_ACEOF |
11885 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 8305 #define HAVE_GTK_MAIN 1 |
11886 _ACEOF | 8306 _ACEOF |
11887 GTK_COMPILES=yes | 8307 GTK_COMPILES=yes |
11888 fi | 8308 fi |
11889 done | 8309 done |
11890 | 8310 |
11891 if test "${GTK_COMPILES}" != "yes"; then | 8311 if test "${GTK_COMPILES}" != "yes"; then |
11892 if test "$USE_X_TOOLKIT" != "maybe"; then | 8312 if test "$USE_X_TOOLKIT" != "maybe"; then |
11893 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5 | 8313 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5; |
11894 $as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;} | |
11895 { (exit 1); exit 1; }; }; | |
11896 fi | 8314 fi |
11897 else | 8315 else |
11898 HAVE_GTK=yes | 8316 HAVE_GTK=yes |
11899 | 8317 |
11900 cat >>confdefs.h <<\_ACEOF | 8318 $as_echo "#define USE_GTK 1" >>confdefs.h |
11901 #define USE_GTK 1 | |
11902 _ACEOF | |
11903 | 8319 |
11904 GTK_OBJ=gtkutil.o | 8320 GTK_OBJ=gtkutil.o |
11905 USE_X_TOOLKIT=none | 8321 USE_X_TOOLKIT=none |
11906 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then | 8322 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then |
11907 : | 8323 : |
11908 else | 8324 else |
11909 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with | 8325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with |
11910 closing open displays. This is no problem if you just use | 8326 closing open displays. This is no problem if you just use |
11911 one display, but if you use more than one and close one of them | 8327 one display, but if you use more than one and close one of them |
11912 Emacs may crash." >&5 | 8328 Emacs may crash." >&5 |
11913 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with | 8329 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with |
11914 closing open displays. This is no problem if you just use | 8330 closing open displays. This is no problem if you just use |
11927 if test "$with_toolkit_scroll_bars" != no; then | 8343 if test "$with_toolkit_scroll_bars" != no; then |
11928 with_toolkit_scroll_bars=yes | 8344 with_toolkit_scroll_bars=yes |
11929 fi | 8345 fi |
11930 | 8346 |
11931 HAVE_GTK_MULTIDISPLAY=no | 8347 HAVE_GTK_MULTIDISPLAY=no |
11932 | 8348 for ac_func in gdk_display_open |
11933 for ac_func in gdk_display_open | 8349 do : |
11934 do | 8350 ac_fn_c_check_func "$LINENO" "gdk_display_open" "ac_cv_func_gdk_display_open" |
11935 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 8351 if test "x$ac_cv_func_gdk_display_open" = x""yes; then : |
11936 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
11937 $as_echo_n "checking for $ac_func... " >&6; } | |
11938 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
11939 $as_echo_n "(cached) " >&6 | |
11940 else | |
11941 cat >conftest.$ac_ext <<_ACEOF | |
11942 /* confdefs.h. */ | |
11943 _ACEOF | |
11944 cat confdefs.h >>conftest.$ac_ext | |
11945 cat >>conftest.$ac_ext <<_ACEOF | |
11946 /* end confdefs.h. */ | |
11947 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
11948 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11949 #define $ac_func innocuous_$ac_func | |
11950 | |
11951 /* System header to define __stub macros and hopefully few prototypes, | |
11952 which can conflict with char $ac_func (); below. | |
11953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11954 <limits.h> exists even on freestanding compilers. */ | |
11955 | |
11956 #ifdef __STDC__ | |
11957 # include <limits.h> | |
11958 #else | |
11959 # include <assert.h> | |
11960 #endif | |
11961 | |
11962 #undef $ac_func | |
11963 | |
11964 /* Override any GCC internal prototype to avoid an error. | |
11965 Use char because int might match the return type of a GCC | |
11966 builtin and then its argument prototype would still apply. */ | |
11967 #ifdef __cplusplus | |
11968 extern "C" | |
11969 #endif | |
11970 char $ac_func (); | |
11971 /* The GNU C library defines this for functions which it implements | |
11972 to always fail with ENOSYS. Some functions are actually named | |
11973 something starting with __ and the normal name is an alias. */ | |
11974 #if defined __stub_$ac_func || defined __stub___$ac_func | |
11975 choke me | |
11976 #endif | |
11977 | |
11978 int | |
11979 main () | |
11980 { | |
11981 return $ac_func (); | |
11982 ; | |
11983 return 0; | |
11984 } | |
11985 _ACEOF | |
11986 rm -f conftest.$ac_objext conftest$ac_exeext | |
11987 if { (ac_try="$ac_link" | |
11988 case "(($ac_try" in | |
11989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11990 *) ac_try_echo=$ac_try;; | |
11991 esac | |
11992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11993 $as_echo "$ac_try_echo") >&5 | |
11994 (eval "$ac_link") 2>conftest.er1 | |
11995 ac_status=$? | |
11996 grep -v '^ *+' conftest.er1 >conftest.err | |
11997 rm -f conftest.er1 | |
11998 cat conftest.err >&5 | |
11999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12000 (exit $ac_status); } && { | |
12001 test -z "$ac_c_werror_flag" || | |
12002 test ! -s conftest.err | |
12003 } && test -s conftest$ac_exeext && { | |
12004 test "$cross_compiling" = yes || | |
12005 $as_test_x conftest$ac_exeext | |
12006 }; then | |
12007 eval "$as_ac_var=yes" | |
12008 else | |
12009 $as_echo "$as_me: failed program was:" >&5 | |
12010 sed 's/^/| /' conftest.$ac_ext >&5 | |
12011 | |
12012 eval "$as_ac_var=no" | |
12013 fi | |
12014 | |
12015 rm -rf conftest.dSYM | |
12016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
12017 conftest$ac_exeext conftest.$ac_ext | |
12018 fi | |
12019 ac_res=`eval 'as_val=${'$as_ac_var'} | |
12020 $as_echo "$as_val"'` | |
12021 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12022 $as_echo "$ac_res" >&6; } | |
12023 if test `eval 'as_val=${'$as_ac_var'} | |
12024 $as_echo "$as_val"'` = yes; then | |
12025 cat >>confdefs.h <<_ACEOF | 8352 cat >>confdefs.h <<_ACEOF |
12026 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 8353 #define HAVE_GDK_DISPLAY_OPEN 1 |
12027 _ACEOF | 8354 _ACEOF |
12028 HAVE_GTK_MULTIDISPLAY=yes | 8355 HAVE_GTK_MULTIDISPLAY=yes |
12029 fi | 8356 fi |
12030 done | 8357 done |
12031 | 8358 |
12032 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then | 8359 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then |
12033 | 8360 |
12034 cat >>confdefs.h <<\_ACEOF | 8361 $as_echo "#define HAVE_GTK_MULTIDISPLAY 1" >>confdefs.h |
12035 #define HAVE_GTK_MULTIDISPLAY 1 | |
12036 _ACEOF | |
12037 | 8362 |
12038 fi | 8363 fi |
12039 | 8364 |
12040 HAVE_GTK_FILE_SELECTION=no | 8365 HAVE_GTK_FILE_SELECTION=no |
12041 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5 | 8366 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default |
12042 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; } | |
12043 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then | |
12044 $as_echo_n "(cached) " >&6 | |
12045 else | |
12046 cat >conftest.$ac_ext <<_ACEOF | |
12047 /* confdefs.h. */ | |
12048 _ACEOF | |
12049 cat confdefs.h >>conftest.$ac_ext | |
12050 cat >>conftest.$ac_ext <<_ACEOF | |
12051 /* end confdefs.h. */ | |
12052 $ac_includes_default | |
12053 #include <gtk/gtk.h> | 8367 #include <gtk/gtk.h> |
12054 | 8368 " |
12055 int | 8369 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then : |
12056 main () | |
12057 { | |
12058 #ifndef GTK_TYPE_FILE_SELECTION | |
12059 (void) GTK_TYPE_FILE_SELECTION; | |
12060 #endif | |
12061 | |
12062 ; | |
12063 return 0; | |
12064 } | |
12065 _ACEOF | |
12066 rm -f conftest.$ac_objext | |
12067 if { (ac_try="$ac_compile" | |
12068 case "(($ac_try" in | |
12069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12070 *) ac_try_echo=$ac_try;; | |
12071 esac | |
12072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12073 $as_echo "$ac_try_echo") >&5 | |
12074 (eval "$ac_compile") 2>conftest.er1 | |
12075 ac_status=$? | |
12076 grep -v '^ *+' conftest.er1 >conftest.err | |
12077 rm -f conftest.er1 | |
12078 cat conftest.err >&5 | |
12079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12080 (exit $ac_status); } && { | |
12081 test -z "$ac_c_werror_flag" || | |
12082 test ! -s conftest.err | |
12083 } && test -s conftest.$ac_objext; then | |
12084 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes | |
12085 else | |
12086 $as_echo "$as_me: failed program was:" >&5 | |
12087 sed 's/^/| /' conftest.$ac_ext >&5 | |
12088 | |
12089 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no | |
12090 fi | |
12091 | |
12092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12093 fi | |
12094 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5 | |
12095 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; } | |
12096 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then | |
12097 HAVE_GTK_FILE_SELECTION=yes | 8370 HAVE_GTK_FILE_SELECTION=yes |
12098 else | 8371 else |
12099 HAVE_GTK_FILE_SELECTION=no | 8372 HAVE_GTK_FILE_SELECTION=no |
12100 fi | 8373 fi |
12101 | 8374 |
12102 if test "$HAVE_GTK_FILE_SELECTION" = yes; then | 8375 if test "$HAVE_GTK_FILE_SELECTION" = yes; then |
12103 | 8376 for ac_func in gtk_file_selection_new |
12104 for ac_func in gtk_file_selection_new | 8377 do : |
12105 do | 8378 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new" |
12106 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 8379 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then : |
12107 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
12108 $as_echo_n "checking for $ac_func... " >&6; } | |
12109 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
12110 $as_echo_n "(cached) " >&6 | |
12111 else | |
12112 cat >conftest.$ac_ext <<_ACEOF | |
12113 /* confdefs.h. */ | |
12114 _ACEOF | |
12115 cat confdefs.h >>conftest.$ac_ext | |
12116 cat >>conftest.$ac_ext <<_ACEOF | |
12117 /* end confdefs.h. */ | |
12118 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
12119 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12120 #define $ac_func innocuous_$ac_func | |
12121 | |
12122 /* System header to define __stub macros and hopefully few prototypes, | |
12123 which can conflict with char $ac_func (); below. | |
12124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12125 <limits.h> exists even on freestanding compilers. */ | |
12126 | |
12127 #ifdef __STDC__ | |
12128 # include <limits.h> | |
12129 #else | |
12130 # include <assert.h> | |
12131 #endif | |
12132 | |
12133 #undef $ac_func | |
12134 | |
12135 /* Override any GCC internal prototype to avoid an error. | |
12136 Use char because int might match the return type of a GCC | |
12137 builtin and then its argument prototype would still apply. */ | |
12138 #ifdef __cplusplus | |
12139 extern "C" | |
12140 #endif | |
12141 char $ac_func (); | |
12142 /* The GNU C library defines this for functions which it implements | |
12143 to always fail with ENOSYS. Some functions are actually named | |
12144 something starting with __ and the normal name is an alias. */ | |
12145 #if defined __stub_$ac_func || defined __stub___$ac_func | |
12146 choke me | |
12147 #endif | |
12148 | |
12149 int | |
12150 main () | |
12151 { | |
12152 return $ac_func (); | |
12153 ; | |
12154 return 0; | |
12155 } | |
12156 _ACEOF | |
12157 rm -f conftest.$ac_objext conftest$ac_exeext | |
12158 if { (ac_try="$ac_link" | |
12159 case "(($ac_try" in | |
12160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12161 *) ac_try_echo=$ac_try;; | |
12162 esac | |
12163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12164 $as_echo "$ac_try_echo") >&5 | |
12165 (eval "$ac_link") 2>conftest.er1 | |
12166 ac_status=$? | |
12167 grep -v '^ *+' conftest.er1 >conftest.err | |
12168 rm -f conftest.er1 | |
12169 cat conftest.err >&5 | |
12170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12171 (exit $ac_status); } && { | |
12172 test -z "$ac_c_werror_flag" || | |
12173 test ! -s conftest.err | |
12174 } && test -s conftest$ac_exeext && { | |
12175 test "$cross_compiling" = yes || | |
12176 $as_test_x conftest$ac_exeext | |
12177 }; then | |
12178 eval "$as_ac_var=yes" | |
12179 else | |
12180 $as_echo "$as_me: failed program was:" >&5 | |
12181 sed 's/^/| /' conftest.$ac_ext >&5 | |
12182 | |
12183 eval "$as_ac_var=no" | |
12184 fi | |
12185 | |
12186 rm -rf conftest.dSYM | |
12187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
12188 conftest$ac_exeext conftest.$ac_ext | |
12189 fi | |
12190 ac_res=`eval 'as_val=${'$as_ac_var'} | |
12191 $as_echo "$as_val"'` | |
12192 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12193 $as_echo "$ac_res" >&6; } | |
12194 if test `eval 'as_val=${'$as_ac_var'} | |
12195 $as_echo "$as_val"'` = yes; then | |
12196 cat >>confdefs.h <<_ACEOF | 8380 cat >>confdefs.h <<_ACEOF |
12197 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 8381 #define HAVE_GTK_FILE_SELECTION_NEW 1 |
12198 _ACEOF | 8382 _ACEOF |
12199 HAVE_GTK_FILE_SELECTION=yes | 8383 HAVE_GTK_FILE_SELECTION=yes |
12200 else | 8384 else |
12201 HAVE_GTK_FILE_SELECTION=no | 8385 HAVE_GTK_FILE_SELECTION=no |
12202 fi | 8386 fi |
12203 done | 8387 done |
12204 | 8388 |
12205 fi | 8389 fi |
12206 | 8390 |
12207 HAVE_GTK_FILE_CHOOSER=no | 8391 HAVE_GTK_FILE_CHOOSER=no |
12208 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5 | 8392 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_CHOOSER" "ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" "$ac_includes_default |
12209 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; } | |
12210 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then | |
12211 $as_echo_n "(cached) " >&6 | |
12212 else | |
12213 cat >conftest.$ac_ext <<_ACEOF | |
12214 /* confdefs.h. */ | |
12215 _ACEOF | |
12216 cat confdefs.h >>conftest.$ac_ext | |
12217 cat >>conftest.$ac_ext <<_ACEOF | |
12218 /* end confdefs.h. */ | |
12219 $ac_includes_default | |
12220 #include <gtk/gtk.h> | 8393 #include <gtk/gtk.h> |
12221 | 8394 " |
12222 int | 8395 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" = x""yes; then : |
12223 main () | |
12224 { | |
12225 #ifndef GTK_TYPE_FILE_CHOOSER | |
12226 (void) GTK_TYPE_FILE_CHOOSER; | |
12227 #endif | |
12228 | |
12229 ; | |
12230 return 0; | |
12231 } | |
12232 _ACEOF | |
12233 rm -f conftest.$ac_objext | |
12234 if { (ac_try="$ac_compile" | |
12235 case "(($ac_try" in | |
12236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12237 *) ac_try_echo=$ac_try;; | |
12238 esac | |
12239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12240 $as_echo "$ac_try_echo") >&5 | |
12241 (eval "$ac_compile") 2>conftest.er1 | |
12242 ac_status=$? | |
12243 grep -v '^ *+' conftest.er1 >conftest.err | |
12244 rm -f conftest.er1 | |
12245 cat conftest.err >&5 | |
12246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12247 (exit $ac_status); } && { | |
12248 test -z "$ac_c_werror_flag" || | |
12249 test ! -s conftest.err | |
12250 } && test -s conftest.$ac_objext; then | |
12251 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes | |
12252 else | |
12253 $as_echo "$as_me: failed program was:" >&5 | |
12254 sed 's/^/| /' conftest.$ac_ext >&5 | |
12255 | |
12256 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no | |
12257 fi | |
12258 | |
12259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12260 fi | |
12261 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5 | |
12262 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; } | |
12263 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then | |
12264 HAVE_GTK_FILE_CHOOSER=yes | 8396 HAVE_GTK_FILE_CHOOSER=yes |
12265 else | 8397 else |
12266 HAVE_GTK_FILE_CHOOSER=no | 8398 HAVE_GTK_FILE_CHOOSER=no |
12267 fi | 8399 fi |
12268 | 8400 |
12269 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then | 8401 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then |
12270 | 8402 for ac_func in gtk_file_chooser_dialog_new |
12271 for ac_func in gtk_file_chooser_dialog_new | 8403 do : |
12272 do | 8404 ac_fn_c_check_func "$LINENO" "gtk_file_chooser_dialog_new" "ac_cv_func_gtk_file_chooser_dialog_new" |
12273 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 8405 if test "x$ac_cv_func_gtk_file_chooser_dialog_new" = x""yes; then : |
12274 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
12275 $as_echo_n "checking for $ac_func... " >&6; } | |
12276 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
12277 $as_echo_n "(cached) " >&6 | |
12278 else | |
12279 cat >conftest.$ac_ext <<_ACEOF | |
12280 /* confdefs.h. */ | |
12281 _ACEOF | |
12282 cat confdefs.h >>conftest.$ac_ext | |
12283 cat >>conftest.$ac_ext <<_ACEOF | |
12284 /* end confdefs.h. */ | |
12285 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
12286 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12287 #define $ac_func innocuous_$ac_func | |
12288 | |
12289 /* System header to define __stub macros and hopefully few prototypes, | |
12290 which can conflict with char $ac_func (); below. | |
12291 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12292 <limits.h> exists even on freestanding compilers. */ | |
12293 | |
12294 #ifdef __STDC__ | |
12295 # include <limits.h> | |
12296 #else | |
12297 # include <assert.h> | |
12298 #endif | |
12299 | |
12300 #undef $ac_func | |
12301 | |
12302 /* Override any GCC internal prototype to avoid an error. | |
12303 Use char because int might match the return type of a GCC | |
12304 builtin and then its argument prototype would still apply. */ | |
12305 #ifdef __cplusplus | |
12306 extern "C" | |
12307 #endif | |
12308 char $ac_func (); | |
12309 /* The GNU C library defines this for functions which it implements | |
12310 to always fail with ENOSYS. Some functions are actually named | |
12311 something starting with __ and the normal name is an alias. */ | |
12312 #if defined __stub_$ac_func || defined __stub___$ac_func | |
12313 choke me | |
12314 #endif | |
12315 | |
12316 int | |
12317 main () | |
12318 { | |
12319 return $ac_func (); | |
12320 ; | |
12321 return 0; | |
12322 } | |
12323 _ACEOF | |
12324 rm -f conftest.$ac_objext conftest$ac_exeext | |
12325 if { (ac_try="$ac_link" | |
12326 case "(($ac_try" in | |
12327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12328 *) ac_try_echo=$ac_try;; | |
12329 esac | |
12330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12331 $as_echo "$ac_try_echo") >&5 | |
12332 (eval "$ac_link") 2>conftest.er1 | |
12333 ac_status=$? | |
12334 grep -v '^ *+' conftest.er1 >conftest.err | |
12335 rm -f conftest.er1 | |
12336 cat conftest.err >&5 | |
12337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12338 (exit $ac_status); } && { | |
12339 test -z "$ac_c_werror_flag" || | |
12340 test ! -s conftest.err | |
12341 } && test -s conftest$ac_exeext && { | |
12342 test "$cross_compiling" = yes || | |
12343 $as_test_x conftest$ac_exeext | |
12344 }; then | |
12345 eval "$as_ac_var=yes" | |
12346 else | |
12347 $as_echo "$as_me: failed program was:" >&5 | |
12348 sed 's/^/| /' conftest.$ac_ext >&5 | |
12349 | |
12350 eval "$as_ac_var=no" | |
12351 fi | |
12352 | |
12353 rm -rf conftest.dSYM | |
12354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
12355 conftest$ac_exeext conftest.$ac_ext | |
12356 fi | |
12357 ac_res=`eval 'as_val=${'$as_ac_var'} | |
12358 $as_echo "$as_val"'` | |
12359 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12360 $as_echo "$ac_res" >&6; } | |
12361 if test `eval 'as_val=${'$as_ac_var'} | |
12362 $as_echo "$as_val"'` = yes; then | |
12363 cat >>confdefs.h <<_ACEOF | 8406 cat >>confdefs.h <<_ACEOF |
12364 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 8407 #define HAVE_GTK_FILE_CHOOSER_DIALOG_NEW 1 |
12365 _ACEOF | 8408 _ACEOF |
12366 HAVE_GTK_FILE_CHOOSER=yes | 8409 HAVE_GTK_FILE_CHOOSER=yes |
12367 else | 8410 else |
12368 HAVE_GTK_FILE_CHOOSER=no | 8411 HAVE_GTK_FILE_CHOOSER=no |
12369 fi | 8412 fi |
12372 fi | 8415 fi |
12373 | 8416 |
12374 if test "$HAVE_GTK_FILE_SELECTION" = yes \ | 8417 if test "$HAVE_GTK_FILE_SELECTION" = yes \ |
12375 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then | 8418 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then |
12376 | 8419 |
12377 cat >>confdefs.h <<\_ACEOF | 8420 $as_echo "#define HAVE_GTK_FILE_BOTH 1" >>confdefs.h |
12378 #define HAVE_GTK_FILE_BOTH 1 | |
12379 _ACEOF | |
12380 | 8421 |
12381 fi | 8422 fi |
12382 | 8423 |
12383 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then | 8424 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then |
12384 HAVE_GTK_AND_PTHREAD=no | 8425 HAVE_GTK_AND_PTHREAD=no |
12385 | 8426 for ac_header in pthread.h |
12386 for ac_header in pthread.h | 8427 do : |
12387 do | 8428 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" |
12388 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 8429 if test "x$ac_cv_header_pthread_h" = x""yes; then : |
12389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12390 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12391 $as_echo_n "checking for $ac_header... " >&6; } | |
12392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12393 $as_echo_n "(cached) " >&6 | |
12394 fi | |
12395 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12396 $as_echo "$as_val"'` | |
12397 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12398 $as_echo "$ac_res" >&6; } | |
12399 else | |
12400 # Is the header compilable? | |
12401 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12402 $as_echo_n "checking $ac_header usability... " >&6; } | |
12403 cat >conftest.$ac_ext <<_ACEOF | |
12404 /* confdefs.h. */ | |
12405 _ACEOF | |
12406 cat confdefs.h >>conftest.$ac_ext | |
12407 cat >>conftest.$ac_ext <<_ACEOF | |
12408 /* end confdefs.h. */ | |
12409 $ac_includes_default | |
12410 #include <$ac_header> | |
12411 _ACEOF | |
12412 rm -f conftest.$ac_objext | |
12413 if { (ac_try="$ac_compile" | |
12414 case "(($ac_try" in | |
12415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12416 *) ac_try_echo=$ac_try;; | |
12417 esac | |
12418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12419 $as_echo "$ac_try_echo") >&5 | |
12420 (eval "$ac_compile") 2>conftest.er1 | |
12421 ac_status=$? | |
12422 grep -v '^ *+' conftest.er1 >conftest.err | |
12423 rm -f conftest.er1 | |
12424 cat conftest.err >&5 | |
12425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12426 (exit $ac_status); } && { | |
12427 test -z "$ac_c_werror_flag" || | |
12428 test ! -s conftest.err | |
12429 } && test -s conftest.$ac_objext; then | |
12430 ac_header_compiler=yes | |
12431 else | |
12432 $as_echo "$as_me: failed program was:" >&5 | |
12433 sed 's/^/| /' conftest.$ac_ext >&5 | |
12434 | |
12435 ac_header_compiler=no | |
12436 fi | |
12437 | |
12438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12439 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12440 $as_echo "$ac_header_compiler" >&6; } | |
12441 | |
12442 # Is the header present? | |
12443 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12444 $as_echo_n "checking $ac_header presence... " >&6; } | |
12445 cat >conftest.$ac_ext <<_ACEOF | |
12446 /* confdefs.h. */ | |
12447 _ACEOF | |
12448 cat confdefs.h >>conftest.$ac_ext | |
12449 cat >>conftest.$ac_ext <<_ACEOF | |
12450 /* end confdefs.h. */ | |
12451 #include <$ac_header> | |
12452 _ACEOF | |
12453 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
12454 case "(($ac_try" in | |
12455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12456 *) ac_try_echo=$ac_try;; | |
12457 esac | |
12458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12459 $as_echo "$ac_try_echo") >&5 | |
12460 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
12461 ac_status=$? | |
12462 grep -v '^ *+' conftest.er1 >conftest.err | |
12463 rm -f conftest.er1 | |
12464 cat conftest.err >&5 | |
12465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12466 (exit $ac_status); } >/dev/null && { | |
12467 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12468 test ! -s conftest.err | |
12469 }; then | |
12470 ac_header_preproc=yes | |
12471 else | |
12472 $as_echo "$as_me: failed program was:" >&5 | |
12473 sed 's/^/| /' conftest.$ac_ext >&5 | |
12474 | |
12475 ac_header_preproc=no | |
12476 fi | |
12477 | |
12478 rm -f conftest.err conftest.$ac_ext | |
12479 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12480 $as_echo "$ac_header_preproc" >&6; } | |
12481 | |
12482 # So? What about this header? | |
12483 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12484 yes:no: ) | |
12485 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12486 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12487 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12488 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12489 ac_header_preproc=yes | |
12490 ;; | |
12491 no:yes:* ) | |
12492 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12493 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12494 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12495 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12496 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12497 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12498 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12499 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12500 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12501 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12502 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12503 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12504 | |
12505 ;; | |
12506 esac | |
12507 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12508 $as_echo_n "checking for $ac_header... " >&6; } | |
12509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12510 $as_echo_n "(cached) " >&6 | |
12511 else | |
12512 eval "$as_ac_Header=\$ac_header_preproc" | |
12513 fi | |
12514 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12515 $as_echo "$as_val"'` | |
12516 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12517 $as_echo "$ac_res" >&6; } | |
12518 | |
12519 fi | |
12520 if test `eval 'as_val=${'$as_ac_Header'} | |
12521 $as_echo "$as_val"'` = yes; then | |
12522 cat >>confdefs.h <<_ACEOF | 8430 cat >>confdefs.h <<_ACEOF |
12523 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 8431 #define HAVE_PTHREAD_H 1 |
12524 _ACEOF | 8432 _ACEOF |
12525 | 8433 |
12526 fi | 8434 fi |
12527 | 8435 |
12528 done | 8436 done |
12529 | 8437 |
12530 if test "$ac_cv_header_pthread_h"; then | 8438 if test "$ac_cv_header_pthread_h"; then |
12531 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5 | 8439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5 |
12532 $as_echo_n "checking for pthread_self in -lpthread... " >&6; } | 8440 $as_echo_n "checking for pthread_self in -lpthread... " >&6; } |
12533 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then | 8441 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then : |
12534 $as_echo_n "(cached) " >&6 | 8442 $as_echo_n "(cached) " >&6 |
12535 else | 8443 else |
12536 ac_check_lib_save_LIBS=$LIBS | 8444 ac_check_lib_save_LIBS=$LIBS |
12537 LIBS="-lpthread $LIBS" | 8445 LIBS="-lpthread $LIBS" |
12538 cat >conftest.$ac_ext <<_ACEOF | 8446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12539 /* confdefs.h. */ | |
12540 _ACEOF | |
12541 cat confdefs.h >>conftest.$ac_ext | |
12542 cat >>conftest.$ac_ext <<_ACEOF | |
12543 /* end confdefs.h. */ | 8447 /* end confdefs.h. */ |
12544 | 8448 |
12545 /* Override any GCC internal prototype to avoid an error. | 8449 /* Override any GCC internal prototype to avoid an error. |
12546 Use char because int might match the return type of a GCC | 8450 Use char because int might match the return type of a GCC |
12547 builtin and then its argument prototype would still apply. */ | 8451 builtin and then its argument prototype would still apply. */ |
12555 return pthread_self (); | 8459 return pthread_self (); |
12556 ; | 8460 ; |
12557 return 0; | 8461 return 0; |
12558 } | 8462 } |
12559 _ACEOF | 8463 _ACEOF |
12560 rm -f conftest.$ac_objext conftest$ac_exeext | 8464 if ac_fn_c_try_link "$LINENO"; then : |
12561 if { (ac_try="$ac_link" | |
12562 case "(($ac_try" in | |
12563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12564 *) ac_try_echo=$ac_try;; | |
12565 esac | |
12566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12567 $as_echo "$ac_try_echo") >&5 | |
12568 (eval "$ac_link") 2>conftest.er1 | |
12569 ac_status=$? | |
12570 grep -v '^ *+' conftest.er1 >conftest.err | |
12571 rm -f conftest.er1 | |
12572 cat conftest.err >&5 | |
12573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12574 (exit $ac_status); } && { | |
12575 test -z "$ac_c_werror_flag" || | |
12576 test ! -s conftest.err | |
12577 } && test -s conftest$ac_exeext && { | |
12578 test "$cross_compiling" = yes || | |
12579 $as_test_x conftest$ac_exeext | |
12580 }; then | |
12581 ac_cv_lib_pthread_pthread_self=yes | 8465 ac_cv_lib_pthread_pthread_self=yes |
12582 else | 8466 else |
12583 $as_echo "$as_me: failed program was:" >&5 | 8467 ac_cv_lib_pthread_pthread_self=no |
12584 sed 's/^/| /' conftest.$ac_ext >&5 | 8468 fi |
12585 | 8469 rm -f core conftest.err conftest.$ac_objext \ |
12586 ac_cv_lib_pthread_pthread_self=no | 8470 conftest$ac_exeext conftest.$ac_ext |
12587 fi | |
12588 | |
12589 rm -rf conftest.dSYM | |
12590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
12591 conftest$ac_exeext conftest.$ac_ext | |
12592 LIBS=$ac_check_lib_save_LIBS | 8471 LIBS=$ac_check_lib_save_LIBS |
12593 fi | 8472 fi |
12594 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5 | 8473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5 |
12595 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; } | 8474 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; } |
12596 if test $ac_cv_lib_pthread_pthread_self = yes; then | 8475 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then : |
12597 HAVE_GTK_AND_PTHREAD=yes | 8476 HAVE_GTK_AND_PTHREAD=yes |
12598 fi | 8477 fi |
12599 | 8478 |
12600 fi | 8479 fi |
12601 if test "$HAVE_GTK_AND_PTHREAD" = yes; then | 8480 if test "$HAVE_GTK_AND_PTHREAD" = yes; then |
12602 case "${canonical}" in | 8481 case "${canonical}" in |
12603 *-hpux*) ;; | 8482 *-hpux*) ;; |
12604 *) GTK_LIBS="$GTK_LIBS -lpthread" ;; | 8483 *) GTK_LIBS="$GTK_LIBS -lpthread" ;; |
12605 esac | 8484 esac |
12606 | 8485 |
12607 cat >>confdefs.h <<\_ACEOF | 8486 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h |
12608 #define HAVE_GTK_AND_PTHREAD 1 | |
12609 _ACEOF | |
12610 | 8487 |
12611 fi | 8488 fi |
12612 fi | 8489 fi |
12613 fi | 8490 fi |
12614 | 8491 |
12618 | 8495 |
12619 succeeded=no | 8496 succeeded=no |
12620 | 8497 |
12621 # Extract the first word of "pkg-config", so it can be a program name with args. | 8498 # Extract the first word of "pkg-config", so it can be a program name with args. |
12622 set dummy pkg-config; ac_word=$2 | 8499 set dummy pkg-config; ac_word=$2 |
12623 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | 8500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12624 $as_echo_n "checking for $ac_word... " >&6; } | 8501 $as_echo_n "checking for $ac_word... " >&6; } |
12625 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | 8502 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
12626 $as_echo_n "(cached) " >&6 | 8503 $as_echo_n "(cached) " >&6 |
12627 else | 8504 else |
12628 case $PKG_CONFIG in | 8505 case $PKG_CONFIG in |
12629 [\\/]* | ?:[\\/]*) | 8506 [\\/]* | ?:[\\/]*) |
12630 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | 8507 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
12633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 8510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12634 for as_dir in $PATH | 8511 for as_dir in $PATH |
12635 do | 8512 do |
12636 IFS=$as_save_IFS | 8513 IFS=$as_save_IFS |
12637 test -z "$as_dir" && as_dir=. | 8514 test -z "$as_dir" && as_dir=. |
12638 for ac_exec_ext in '' $ac_executable_extensions; do | 8515 for ac_exec_ext in '' $ac_executable_extensions; do |
12639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 8516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
12640 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | 8517 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
12641 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 8518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
12642 break 2 | 8519 break 2 |
12643 fi | 8520 fi |
12644 done | 8521 done |
12645 done | 8522 done |
12646 IFS=$as_save_IFS | 8523 IFS=$as_save_IFS |
12647 | 8524 |
12648 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | 8525 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
12649 ;; | 8526 ;; |
12650 esac | 8527 esac |
12651 fi | 8528 fi |
12652 PKG_CONFIG=$ac_cv_path_PKG_CONFIG | 8529 PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
12653 if test -n "$PKG_CONFIG"; then | 8530 if test -n "$PKG_CONFIG"; then |
12654 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | 8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
12655 $as_echo "$PKG_CONFIG" >&6; } | 8532 $as_echo "$PKG_CONFIG" >&6; } |
12656 else | 8533 else |
12657 { $as_echo "$as_me:$LINENO: result: no" >&5 | 8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12658 $as_echo "no" >&6; } | 8535 $as_echo "no" >&6; } |
12659 fi | 8536 fi |
12660 | 8537 |
12661 | 8538 |
12662 | 8539 |
12663 if test "$PKG_CONFIG" = "no" ; then | 8540 if test "$PKG_CONFIG" = "no" ; then |
12664 HAVE_DBUS=no | 8541 HAVE_DBUS=no |
12665 else | 8542 else |
12666 PKG_CONFIG_MIN_VERSION=0.9.0 | 8543 PKG_CONFIG_MIN_VERSION=0.9.0 |
12667 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | 8544 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then |
12668 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5 | 8545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5 |
12669 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; } | 8546 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; } |
12670 | 8547 |
12671 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then | 8548 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then |
12672 { $as_echo "$as_me:$LINENO: result: yes" >&5 | 8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12673 $as_echo "yes" >&6; } | 8550 $as_echo "yes" >&6; } |
12674 succeeded=yes | 8551 succeeded=yes |
12675 | 8552 |
12676 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5 | 8553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5 |
12677 $as_echo_n "checking DBUS_CFLAGS... " >&6; } | 8554 $as_echo_n "checking DBUS_CFLAGS... " >&6; } |
12678 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'` | 8555 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'` |
12679 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5 | 8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5 |
12680 $as_echo "$DBUS_CFLAGS" >&6; } | 8557 $as_echo "$DBUS_CFLAGS" >&6; } |
12681 | 8558 |
12682 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5 | 8559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5 |
12683 $as_echo_n "checking DBUS_LIBS... " >&6; } | 8560 $as_echo_n "checking DBUS_LIBS... " >&6; } |
12684 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'` | 8561 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'` |
12685 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5 | 8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5 |
12686 $as_echo "$DBUS_LIBS" >&6; } | 8563 $as_echo "$DBUS_LIBS" >&6; } |
12687 else | 8564 else |
12688 { $as_echo "$as_me:$LINENO: result: no" >&5 | 8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12689 $as_echo "no" >&6; } | 8566 $as_echo "no" >&6; } |
12690 DBUS_CFLAGS="" | 8567 DBUS_CFLAGS="" |
12691 DBUS_LIBS="" | 8568 DBUS_LIBS="" |
12692 ## If we have a custom action on failure, don't print errors, but | 8569 ## If we have a custom action on failure, don't print errors, but |
12693 ## do set a variable so people can do so. | 8570 ## do set a variable so people can do so. |
12710 fi | 8587 fi |
12711 | 8588 |
12712 if test "$HAVE_DBUS" = yes; then | 8589 if test "$HAVE_DBUS" = yes; then |
12713 LIBS="$LIBS $DBUS_LIBS" | 8590 LIBS="$LIBS $DBUS_LIBS" |
12714 | 8591 |
12715 cat >>confdefs.h <<\_ACEOF | 8592 $as_echo "#define HAVE_DBUS 1" >>confdefs.h |
12716 #define HAVE_DBUS 1 | 8593 |
12717 _ACEOF | 8594 for ac_func in dbus_watch_get_unix_fd |
12718 | 8595 do : |
12719 | 8596 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd" |
12720 for ac_func in dbus_watch_get_unix_fd | 8597 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then : |
12721 do | |
12722 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
12723 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
12724 $as_echo_n "checking for $ac_func... " >&6; } | |
12725 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
12726 $as_echo_n "(cached) " >&6 | |
12727 else | |
12728 cat >conftest.$ac_ext <<_ACEOF | |
12729 /* confdefs.h. */ | |
12730 _ACEOF | |
12731 cat confdefs.h >>conftest.$ac_ext | |
12732 cat >>conftest.$ac_ext <<_ACEOF | |
12733 /* end confdefs.h. */ | |
12734 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
12735 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12736 #define $ac_func innocuous_$ac_func | |
12737 | |
12738 /* System header to define __stub macros and hopefully few prototypes, | |
12739 which can conflict with char $ac_func (); below. | |
12740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12741 <limits.h> exists even on freestanding compilers. */ | |
12742 | |
12743 #ifdef __STDC__ | |
12744 # include <limits.h> | |
12745 #else | |
12746 # include <assert.h> | |
12747 #endif | |
12748 | |
12749 #undef $ac_func | |
12750 | |
12751 /* Override any GCC internal prototype to avoid an error. | |
12752 Use char because int might match the return type of a GCC | |
12753 builtin and then its argument prototype would still apply. */ | |
12754 #ifdef __cplusplus | |
12755 extern "C" | |
12756 #endif | |
12757 char $ac_func (); | |
12758 /* The GNU C library defines this for functions which it implements | |
12759 to always fail with ENOSYS. Some functions are actually named | |
12760 something starting with __ and the normal name is an alias. */ | |
12761 #if defined __stub_$ac_func || defined __stub___$ac_func | |
12762 choke me | |
12763 #endif | |
12764 | |
12765 int | |
12766 main () | |
12767 { | |
12768 return $ac_func (); | |
12769 ; | |
12770 return 0; | |
12771 } | |
12772 _ACEOF | |
12773 rm -f conftest.$ac_objext conftest$ac_exeext | |
12774 if { (ac_try="$ac_link" | |
12775 case "(($ac_try" in | |
12776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12777 *) ac_try_echo=$ac_try;; | |
12778 esac | |
12779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12780 $as_echo "$ac_try_echo") >&5 | |
12781 (eval "$ac_link") 2>conftest.er1 | |
12782 ac_status=$? | |
12783 grep -v '^ *+' conftest.er1 >conftest.err | |
12784 rm -f conftest.er1 | |
12785 cat conftest.err >&5 | |
12786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12787 (exit $ac_status); } && { | |
12788 test -z "$ac_c_werror_flag" || | |
12789 test ! -s conftest.err | |
12790 } && test -s conftest$ac_exeext && { | |
12791 test "$cross_compiling" = yes || | |
12792 $as_test_x conftest$ac_exeext | |
12793 }; then | |
12794 eval "$as_ac_var=yes" | |
12795 else | |
12796 $as_echo "$as_me: failed program was:" >&5 | |
12797 sed 's/^/| /' conftest.$ac_ext >&5 | |
12798 | |
12799 eval "$as_ac_var=no" | |
12800 fi | |
12801 | |
12802 rm -rf conftest.dSYM | |
12803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
12804 conftest$ac_exeext conftest.$ac_ext | |
12805 fi | |
12806 ac_res=`eval 'as_val=${'$as_ac_var'} | |
12807 $as_echo "$as_val"'` | |
12808 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12809 $as_echo "$ac_res" >&6; } | |
12810 if test `eval 'as_val=${'$as_ac_var'} | |
12811 $as_echo "$as_val"'` = yes; then | |
12812 cat >>confdefs.h <<_ACEOF | 8598 cat >>confdefs.h <<_ACEOF |
12813 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 8599 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1 |
12814 _ACEOF | 8600 _ACEOF |
12815 | 8601 |
12816 fi | 8602 fi |
12817 done | 8603 done |
12818 | 8604 |
12826 | 8612 |
12827 succeeded=no | 8613 succeeded=no |
12828 | 8614 |
12829 # Extract the first word of "pkg-config", so it can be a program name with args. | 8615 # Extract the first word of "pkg-config", so it can be a program name with args. |
12830 set dummy pkg-config; ac_word=$2 | 8616 set dummy pkg-config; ac_word=$2 |
12831 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | 8617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12832 $as_echo_n "checking for $ac_word... " >&6; } | 8618 $as_echo_n "checking for $ac_word... " >&6; } |
12833 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | 8619 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
12834 $as_echo_n "(cached) " >&6 | 8620 $as_echo_n "(cached) " >&6 |
12835 else | 8621 else |
12836 case $PKG_CONFIG in | 8622 case $PKG_CONFIG in |
12837 [\\/]* | ?:[\\/]*) | 8623 [\\/]* | ?:[\\/]*) |
12838 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | 8624 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
12841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 8627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12842 for as_dir in $PATH | 8628 for as_dir in $PATH |
12843 do | 8629 do |
12844 IFS=$as_save_IFS | 8630 IFS=$as_save_IFS |
12845 test -z "$as_dir" && as_dir=. | 8631 test -z "$as_dir" && as_dir=. |
12846 for ac_exec_ext in '' $ac_executable_extensions; do | 8632 for ac_exec_ext in '' $ac_executable_extensions; do |
12847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 8633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
12848 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | 8634 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
12849 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 8635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
12850 break 2 | 8636 break 2 |
12851 fi | 8637 fi |
12852 done | 8638 done |
12853 done | 8639 done |
12854 IFS=$as_save_IFS | 8640 IFS=$as_save_IFS |
12855 | 8641 |
12856 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | 8642 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
12857 ;; | 8643 ;; |
12858 esac | 8644 esac |
12859 fi | 8645 fi |
12860 PKG_CONFIG=$ac_cv_path_PKG_CONFIG | 8646 PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
12861 if test -n "$PKG_CONFIG"; then | 8647 if test -n "$PKG_CONFIG"; then |
12862 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | 8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
12863 $as_echo "$PKG_CONFIG" >&6; } | 8649 $as_echo "$PKG_CONFIG" >&6; } |
12864 else | 8650 else |
12865 { $as_echo "$as_me:$LINENO: result: no" >&5 | 8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12866 $as_echo "no" >&6; } | 8652 $as_echo "no" >&6; } |
12867 fi | 8653 fi |
12868 | 8654 |
12869 | 8655 |
12870 | 8656 |
12871 if test "$PKG_CONFIG" = "no" ; then | 8657 if test "$PKG_CONFIG" = "no" ; then |
12872 HAVE_GCONF=no | 8658 HAVE_GCONF=no |
12873 else | 8659 else |
12874 PKG_CONFIG_MIN_VERSION=0.9.0 | 8660 PKG_CONFIG_MIN_VERSION=0.9.0 |
12875 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | 8661 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then |
12876 { $as_echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.13" >&5 | 8662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5 |
12877 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; } | 8663 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; } |
12878 | 8664 |
12879 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then | 8665 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then |
12880 { $as_echo "$as_me:$LINENO: result: yes" >&5 | 8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12881 $as_echo "yes" >&6; } | 8667 $as_echo "yes" >&6; } |
12882 succeeded=yes | 8668 succeeded=yes |
12883 | 8669 |
12884 { $as_echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5 | 8670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5 |
12885 $as_echo_n "checking GCONF_CFLAGS... " >&6; } | 8671 $as_echo_n "checking GCONF_CFLAGS... " >&6; } |
12886 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'` | 8672 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'` |
12887 { $as_echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5 | 8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5 |
12888 $as_echo "$GCONF_CFLAGS" >&6; } | 8674 $as_echo "$GCONF_CFLAGS" >&6; } |
12889 | 8675 |
12890 { $as_echo "$as_me:$LINENO: checking GCONF_LIBS" >&5 | 8676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5 |
12891 $as_echo_n "checking GCONF_LIBS... " >&6; } | 8677 $as_echo_n "checking GCONF_LIBS... " >&6; } |
12892 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'` | 8678 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'` |
12893 { $as_echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5 | 8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5 |
12894 $as_echo "$GCONF_LIBS" >&6; } | 8680 $as_echo "$GCONF_LIBS" >&6; } |
12895 else | 8681 else |
12896 { $as_echo "$as_me:$LINENO: result: no" >&5 | 8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12897 $as_echo "no" >&6; } | 8683 $as_echo "no" >&6; } |
12898 GCONF_CFLAGS="" | 8684 GCONF_CFLAGS="" |
12899 GCONF_LIBS="" | 8685 GCONF_LIBS="" |
12900 ## If we have a custom action on failure, don't print errors, but | 8686 ## If we have a custom action on failure, don't print errors, but |
12901 ## do set a variable so people can do so. | 8687 ## do set a variable so people can do so. |
12917 HAVE_GCONF=no | 8703 HAVE_GCONF=no |
12918 fi | 8704 fi |
12919 | 8705 |
12920 if test "$HAVE_GCONF" = yes; then | 8706 if test "$HAVE_GCONF" = yes; then |
12921 | 8707 |
12922 cat >>confdefs.h <<\_ACEOF | 8708 $as_echo "#define HAVE_GCONF 1" >>confdefs.h |
12923 #define HAVE_GCONF 1 | |
12924 _ACEOF | |
12925 | 8709 |
12926 fi | 8710 fi |
12927 fi | 8711 fi |
12928 | 8712 |
12929 HAVE_LIBSELINUX=no | 8713 HAVE_LIBSELINUX=no |
12930 LIBSELINUX_LIBS= | 8714 LIBSELINUX_LIBS= |
12931 if test "${with_selinux}" = "yes"; then | 8715 if test "${with_selinux}" = "yes"; then |
12932 { $as_echo "$as_me:$LINENO: checking for lgetfilecon in -lselinux" >&5 | 8716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5 |
12933 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; } | 8717 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; } |
12934 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then | 8718 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then : |
12935 $as_echo_n "(cached) " >&6 | 8719 $as_echo_n "(cached) " >&6 |
12936 else | 8720 else |
12937 ac_check_lib_save_LIBS=$LIBS | 8721 ac_check_lib_save_LIBS=$LIBS |
12938 LIBS="-lselinux $LIBS" | 8722 LIBS="-lselinux $LIBS" |
12939 cat >conftest.$ac_ext <<_ACEOF | 8723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12940 /* confdefs.h. */ | |
12941 _ACEOF | |
12942 cat confdefs.h >>conftest.$ac_ext | |
12943 cat >>conftest.$ac_ext <<_ACEOF | |
12944 /* end confdefs.h. */ | 8724 /* end confdefs.h. */ |
12945 | 8725 |
12946 /* Override any GCC internal prototype to avoid an error. | 8726 /* Override any GCC internal prototype to avoid an error. |
12947 Use char because int might match the return type of a GCC | 8727 Use char because int might match the return type of a GCC |
12948 builtin and then its argument prototype would still apply. */ | 8728 builtin and then its argument prototype would still apply. */ |
12956 return lgetfilecon (); | 8736 return lgetfilecon (); |
12957 ; | 8737 ; |
12958 return 0; | 8738 return 0; |
12959 } | 8739 } |
12960 _ACEOF | 8740 _ACEOF |
12961 rm -f conftest.$ac_objext conftest$ac_exeext | 8741 if ac_fn_c_try_link "$LINENO"; then : |
12962 if { (ac_try="$ac_link" | |
12963 case "(($ac_try" in | |
12964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12965 *) ac_try_echo=$ac_try;; | |
12966 esac | |
12967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12968 $as_echo "$ac_try_echo") >&5 | |
12969 (eval "$ac_link") 2>conftest.er1 | |
12970 ac_status=$? | |
12971 grep -v '^ *+' conftest.er1 >conftest.err | |
12972 rm -f conftest.er1 | |
12973 cat conftest.err >&5 | |
12974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12975 (exit $ac_status); } && { | |
12976 test -z "$ac_c_werror_flag" || | |
12977 test ! -s conftest.err | |
12978 } && test -s conftest$ac_exeext && { | |
12979 test "$cross_compiling" = yes || | |
12980 $as_test_x conftest$ac_exeext | |
12981 }; then | |
12982 ac_cv_lib_selinux_lgetfilecon=yes | 8742 ac_cv_lib_selinux_lgetfilecon=yes |
12983 else | 8743 else |
12984 $as_echo "$as_me: failed program was:" >&5 | 8744 ac_cv_lib_selinux_lgetfilecon=no |
12985 sed 's/^/| /' conftest.$ac_ext >&5 | 8745 fi |
12986 | 8746 rm -f core conftest.err conftest.$ac_objext \ |
12987 ac_cv_lib_selinux_lgetfilecon=no | 8747 conftest$ac_exeext conftest.$ac_ext |
12988 fi | |
12989 | |
12990 rm -rf conftest.dSYM | |
12991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
12992 conftest$ac_exeext conftest.$ac_ext | |
12993 LIBS=$ac_check_lib_save_LIBS | 8748 LIBS=$ac_check_lib_save_LIBS |
12994 fi | 8749 fi |
12995 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_lgetfilecon" >&5 | 8750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5 |
12996 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; } | 8751 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; } |
12997 if test $ac_cv_lib_selinux_lgetfilecon = yes; then | 8752 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then : |
12998 HAVE_LIBSELINUX=yes | 8753 HAVE_LIBSELINUX=yes |
12999 else | 8754 else |
13000 HAVE_LIBSELINUX=no | 8755 HAVE_LIBSELINUX=no |
13001 fi | 8756 fi |
13002 | 8757 |
13003 if test "$HAVE_LIBSELINUX" = yes; then | 8758 if test "$HAVE_LIBSELINUX" = yes; then |
13004 | 8759 |
13005 cat >>confdefs.h <<\_ACEOF | 8760 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h |
13006 #define HAVE_LIBSELINUX 1 | |
13007 _ACEOF | |
13008 | 8761 |
13009 LIBSELINUX_LIBS=-lselinux | 8762 LIBSELINUX_LIBS=-lselinux |
13010 fi | 8763 fi |
13011 fi | 8764 fi |
13012 | 8765 |
13013 | 8766 |
13014 HAVE_XAW3D=no | 8767 HAVE_XAW3D=no |
13015 LUCID_LIBW= | 8768 LUCID_LIBW= |
13016 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then | 8769 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then |
13017 if test "$with_xaw3d" != no; then | 8770 if test "$with_xaw3d" != no; then |
13018 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5 | 8771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5 |
13019 $as_echo_n "checking for xaw3d... " >&6; } | 8772 $as_echo_n "checking for xaw3d... " >&6; } |
13020 if test "${emacs_cv_xaw3d+set}" = set; then | 8773 if test "${emacs_cv_xaw3d+set}" = set; then : |
13021 $as_echo_n "(cached) " >&6 | 8774 $as_echo_n "(cached) " >&6 |
13022 else | 8775 else |
13023 cat >conftest.$ac_ext <<_ACEOF | 8776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13024 /* confdefs.h. */ | |
13025 _ACEOF | |
13026 cat confdefs.h >>conftest.$ac_ext | |
13027 cat >>conftest.$ac_ext <<_ACEOF | |
13028 /* end confdefs.h. */ | 8777 /* end confdefs.h. */ |
13029 | 8778 |
13030 #include <X11/Intrinsic.h> | 8779 #include <X11/Intrinsic.h> |
13031 #include <X11/Xaw3d/Simple.h> | 8780 #include <X11/Xaw3d/Simple.h> |
13032 int | 8781 int |
13035 | 8784 |
13036 ; | 8785 ; |
13037 return 0; | 8786 return 0; |
13038 } | 8787 } |
13039 _ACEOF | 8788 _ACEOF |
13040 rm -f conftest.$ac_objext conftest$ac_exeext | 8789 if ac_fn_c_try_link "$LINENO"; then : |
13041 if { (ac_try="$ac_link" | |
13042 case "(($ac_try" in | |
13043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13044 *) ac_try_echo=$ac_try;; | |
13045 esac | |
13046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13047 $as_echo "$ac_try_echo") >&5 | |
13048 (eval "$ac_link") 2>conftest.er1 | |
13049 ac_status=$? | |
13050 grep -v '^ *+' conftest.er1 >conftest.err | |
13051 rm -f conftest.er1 | |
13052 cat conftest.err >&5 | |
13053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13054 (exit $ac_status); } && { | |
13055 test -z "$ac_c_werror_flag" || | |
13056 test ! -s conftest.err | |
13057 } && test -s conftest$ac_exeext && { | |
13058 test "$cross_compiling" = yes || | |
13059 $as_test_x conftest$ac_exeext | |
13060 }; then | |
13061 emacs_cv_xaw3d=yes | 8790 emacs_cv_xaw3d=yes |
13062 else | 8791 else |
13063 $as_echo "$as_me: failed program was:" >&5 | 8792 emacs_cv_xaw3d=no |
13064 sed 's/^/| /' conftest.$ac_ext >&5 | 8793 fi |
13065 | 8794 rm -f core conftest.err conftest.$ac_objext \ |
13066 emacs_cv_xaw3d=no | 8795 conftest$ac_exeext conftest.$ac_ext |
13067 fi | |
13068 | |
13069 rm -rf conftest.dSYM | |
13070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
13071 conftest$ac_exeext conftest.$ac_ext | |
13072 fi | 8796 fi |
13073 | 8797 |
13074 else | 8798 else |
13075 emacs_cv_xaw3d=no | 8799 emacs_cv_xaw3d=no |
13076 fi | 8800 fi |
13077 if test $emacs_cv_xaw3d = yes; then | 8801 if test $emacs_cv_xaw3d = yes; then |
13078 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5 | 8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5 |
13079 $as_echo "yes; using Lucid toolkit" >&6; } | 8803 $as_echo "yes; using Lucid toolkit" >&6; } |
13080 USE_X_TOOLKIT=LUCID | 8804 USE_X_TOOLKIT=LUCID |
13081 HAVE_XAW3D=yes | 8805 HAVE_XAW3D=yes |
13082 LUCID_LIBW=-lXaw3d | 8806 LUCID_LIBW=-lXaw3d |
13083 | 8807 |
13084 cat >>confdefs.h <<\_ACEOF | 8808 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h |
13085 #define HAVE_XAW3D 1 | |
13086 _ACEOF | |
13087 | 8809 |
13088 else | 8810 else |
13089 { $as_echo "$as_me:$LINENO: result: no" >&5 | 8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13090 $as_echo "no" >&6; } | 8812 $as_echo "no" >&6; } |
13091 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5 | 8813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5 |
13092 $as_echo_n "checking for libXaw... " >&6; } | 8814 $as_echo_n "checking for libXaw... " >&6; } |
13093 if test "${emacs_cv_xaw+set}" = set; then | 8815 if test "${emacs_cv_xaw+set}" = set; then : |
13094 $as_echo_n "(cached) " >&6 | 8816 $as_echo_n "(cached) " >&6 |
13095 else | 8817 else |
13096 cat >conftest.$ac_ext <<_ACEOF | 8818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13097 /* confdefs.h. */ | |
13098 _ACEOF | |
13099 cat confdefs.h >>conftest.$ac_ext | |
13100 cat >>conftest.$ac_ext <<_ACEOF | |
13101 /* end confdefs.h. */ | 8819 /* end confdefs.h. */ |
13102 | 8820 |
13103 #include <X11/Intrinsic.h> | 8821 #include <X11/Intrinsic.h> |
13104 #include <X11/Xaw/Simple.h> | 8822 #include <X11/Xaw/Simple.h> |
13105 int | 8823 int |
13108 | 8826 |
13109 ; | 8827 ; |
13110 return 0; | 8828 return 0; |
13111 } | 8829 } |
13112 _ACEOF | 8830 _ACEOF |
13113 rm -f conftest.$ac_objext conftest$ac_exeext | 8831 if ac_fn_c_try_link "$LINENO"; then : |
13114 if { (ac_try="$ac_link" | |
13115 case "(($ac_try" in | |
13116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13117 *) ac_try_echo=$ac_try;; | |
13118 esac | |
13119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13120 $as_echo "$ac_try_echo") >&5 | |
13121 (eval "$ac_link") 2>conftest.er1 | |
13122 ac_status=$? | |
13123 grep -v '^ *+' conftest.er1 >conftest.err | |
13124 rm -f conftest.er1 | |
13125 cat conftest.err >&5 | |
13126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13127 (exit $ac_status); } && { | |
13128 test -z "$ac_c_werror_flag" || | |
13129 test ! -s conftest.err | |
13130 } && test -s conftest$ac_exeext && { | |
13131 test "$cross_compiling" = yes || | |
13132 $as_test_x conftest$ac_exeext | |
13133 }; then | |
13134 emacs_cv_xaw=yes | 8832 emacs_cv_xaw=yes |
13135 else | 8833 else |
13136 $as_echo "$as_me: failed program was:" >&5 | 8834 emacs_cv_xaw=no |
13137 sed 's/^/| /' conftest.$ac_ext >&5 | 8835 fi |
13138 | 8836 rm -f core conftest.err conftest.$ac_objext \ |
13139 emacs_cv_xaw=no | 8837 conftest$ac_exeext conftest.$ac_ext |
13140 fi | |
13141 | |
13142 rm -rf conftest.dSYM | |
13143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
13144 conftest$ac_exeext conftest.$ac_ext | |
13145 fi | 8838 fi |
13146 | 8839 |
13147 if test $emacs_cv_xaw = yes; then | 8840 if test $emacs_cv_xaw = yes; then |
13148 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5 | 8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5 |
13149 $as_echo "yes; using Lucid toolkit" >&6; } | 8842 $as_echo "yes; using Lucid toolkit" >&6; } |
13150 USE_X_TOOLKIT=LUCID | 8843 USE_X_TOOLKIT=LUCID |
13151 LUCID_LIBW=-lXaw | 8844 LUCID_LIBW=-lXaw |
13152 elif test x"${USE_X_TOOLKIT}" = xLUCID; then | 8845 elif test x"${USE_X_TOOLKIT}" = xLUCID; then |
13153 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5 | 8846 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5 |
13154 $as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;} | |
13155 { (exit 1); exit 1; }; } | |
13156 else | 8847 else |
13157 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5 | 8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5 |
13158 $as_echo "no; do not use toolkit by default" >&6; } | 8849 $as_echo "no; do not use toolkit by default" >&6; } |
13159 USE_X_TOOLKIT=none | 8850 USE_X_TOOLKIT=none |
13160 fi | 8851 fi |
13161 fi | 8852 fi |
13162 fi | 8853 fi |
13163 | 8854 |
13164 X_TOOLKIT_TYPE=$USE_X_TOOLKIT | 8855 X_TOOLKIT_TYPE=$USE_X_TOOLKIT |
13165 | 8856 |
13166 LIBXTR6= | 8857 LIBXTR6= |
13167 if test "${USE_X_TOOLKIT}" != "none"; then | 8858 if test "${USE_X_TOOLKIT}" != "none"; then |
13168 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5 | 8859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5 |
13169 $as_echo_n "checking X11 toolkit version... " >&6; } | 8860 $as_echo_n "checking X11 toolkit version... " >&6; } |
13170 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then | 8861 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then : |
13171 $as_echo_n "(cached) " >&6 | 8862 $as_echo_n "(cached) " >&6 |
13172 else | 8863 else |
13173 cat >conftest.$ac_ext <<_ACEOF | 8864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13174 /* confdefs.h. */ | |
13175 _ACEOF | |
13176 cat confdefs.h >>conftest.$ac_ext | |
13177 cat >>conftest.$ac_ext <<_ACEOF | |
13178 /* end confdefs.h. */ | 8865 /* end confdefs.h. */ |
13179 #include <X11/Intrinsic.h> | 8866 #include <X11/Intrinsic.h> |
13180 int | 8867 int |
13181 main () | 8868 main () |
13182 { | 8869 { |
13186 | 8873 |
13187 ; | 8874 ; |
13188 return 0; | 8875 return 0; |
13189 } | 8876 } |
13190 _ACEOF | 8877 _ACEOF |
13191 rm -f conftest.$ac_objext conftest$ac_exeext | 8878 if ac_fn_c_try_link "$LINENO"; then : |
13192 if { (ac_try="$ac_link" | |
13193 case "(($ac_try" in | |
13194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13195 *) ac_try_echo=$ac_try;; | |
13196 esac | |
13197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13198 $as_echo "$ac_try_echo") >&5 | |
13199 (eval "$ac_link") 2>conftest.er1 | |
13200 ac_status=$? | |
13201 grep -v '^ *+' conftest.er1 >conftest.err | |
13202 rm -f conftest.er1 | |
13203 cat conftest.err >&5 | |
13204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13205 (exit $ac_status); } && { | |
13206 test -z "$ac_c_werror_flag" || | |
13207 test ! -s conftest.err | |
13208 } && test -s conftest$ac_exeext && { | |
13209 test "$cross_compiling" = yes || | |
13210 $as_test_x conftest$ac_exeext | |
13211 }; then | |
13212 emacs_cv_x11_toolkit_version_6=yes | 8879 emacs_cv_x11_toolkit_version_6=yes |
13213 else | 8880 else |
13214 $as_echo "$as_me: failed program was:" >&5 | 8881 emacs_cv_x11_toolkit_version_6=no |
13215 sed 's/^/| /' conftest.$ac_ext >&5 | 8882 fi |
13216 | 8883 rm -f core conftest.err conftest.$ac_objext \ |
13217 emacs_cv_x11_toolkit_version_6=no | 8884 conftest$ac_exeext conftest.$ac_ext |
13218 fi | |
13219 | |
13220 rm -rf conftest.dSYM | |
13221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
13222 conftest$ac_exeext conftest.$ac_ext | |
13223 fi | 8885 fi |
13224 | 8886 |
13225 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6 | 8887 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6 |
13226 if test $emacs_cv_x11_toolkit_version_6 = yes; then | 8888 if test $emacs_cv_x11_toolkit_version_6 = yes; then |
13227 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5 | 8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5 |
13228 $as_echo "6 or newer" >&6; } | 8890 $as_echo "6 or newer" >&6; } |
13229 | 8891 |
13230 cat >>confdefs.h <<\_ACEOF | 8892 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h |
13231 #define HAVE_X11XTR6 1 | |
13232 _ACEOF | |
13233 | 8893 |
13234 LIBXTR6="-lSM -lICE" | 8894 LIBXTR6="-lSM -lICE" |
13235 case "$opsys" in | 8895 case "$opsys" in |
13236 ## Use libw.a along with X11R6 Xt. | 8896 ## Use libw.a along with X11R6 Xt. |
13237 unixware) LIBXTR6="$LIBXTR6 -lw" ;; | 8897 unixware) LIBXTR6="$LIBXTR6 -lw" ;; |
13238 esac | 8898 esac |
13239 else | 8899 else |
13240 { $as_echo "$as_me:$LINENO: result: before 6" >&5 | 8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5 |
13241 $as_echo "before 6" >&6; } | 8901 $as_echo "before 6" >&6; } |
13242 fi | 8902 fi |
13243 | 8903 |
13244 OLDLIBS="$LIBS" | 8904 OLDLIBS="$LIBS" |
13245 if test x$HAVE_X11XTR6 = xyes; then | 8905 if test x$HAVE_X11XTR6 = xyes; then |
13246 LIBS="-lXt -lSM -lICE $LIBS" | 8906 LIBS="-lXt -lSM -lICE $LIBS" |
13247 else | 8907 else |
13248 LIBS="-lXt $LIBS" | 8908 LIBS="-lXt $LIBS" |
13249 fi | 8909 fi |
13250 | 8910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5 |
13251 { $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5 | |
13252 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; } | 8911 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; } |
13253 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then | 8912 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then : |
13254 $as_echo_n "(cached) " >&6 | 8913 $as_echo_n "(cached) " >&6 |
13255 else | 8914 else |
13256 ac_check_lib_save_LIBS=$LIBS | 8915 ac_check_lib_save_LIBS=$LIBS |
13257 LIBS="-lXmu $LIBS" | 8916 LIBS="-lXmu $LIBS" |
13258 cat >conftest.$ac_ext <<_ACEOF | 8917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13259 /* confdefs.h. */ | |
13260 _ACEOF | |
13261 cat confdefs.h >>conftest.$ac_ext | |
13262 cat >>conftest.$ac_ext <<_ACEOF | |
13263 /* end confdefs.h. */ | 8918 /* end confdefs.h. */ |
13264 | 8919 |
13265 /* Override any GCC internal prototype to avoid an error. | 8920 /* Override any GCC internal prototype to avoid an error. |
13266 Use char because int might match the return type of a GCC | 8921 Use char because int might match the return type of a GCC |
13267 builtin and then its argument prototype would still apply. */ | 8922 builtin and then its argument prototype would still apply. */ |
13275 return XmuConvertStandardSelection (); | 8930 return XmuConvertStandardSelection (); |
13276 ; | 8931 ; |
13277 return 0; | 8932 return 0; |
13278 } | 8933 } |
13279 _ACEOF | 8934 _ACEOF |
13280 rm -f conftest.$ac_objext conftest$ac_exeext | 8935 if ac_fn_c_try_link "$LINENO"; then : |
13281 if { (ac_try="$ac_link" | |
13282 case "(($ac_try" in | |
13283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13284 *) ac_try_echo=$ac_try;; | |
13285 esac | |
13286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13287 $as_echo "$ac_try_echo") >&5 | |
13288 (eval "$ac_link") 2>conftest.er1 | |
13289 ac_status=$? | |
13290 grep -v '^ *+' conftest.er1 >conftest.err | |
13291 rm -f conftest.er1 | |
13292 cat conftest.err >&5 | |
13293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13294 (exit $ac_status); } && { | |
13295 test -z "$ac_c_werror_flag" || | |
13296 test ! -s conftest.err | |
13297 } && test -s conftest$ac_exeext && { | |
13298 test "$cross_compiling" = yes || | |
13299 $as_test_x conftest$ac_exeext | |
13300 }; then | |
13301 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes | 8936 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes |
13302 else | 8937 else |
13303 $as_echo "$as_me: failed program was:" >&5 | 8938 ac_cv_lib_Xmu_XmuConvertStandardSelection=no |
13304 sed 's/^/| /' conftest.$ac_ext >&5 | 8939 fi |
13305 | 8940 rm -f core conftest.err conftest.$ac_objext \ |
13306 ac_cv_lib_Xmu_XmuConvertStandardSelection=no | 8941 conftest$ac_exeext conftest.$ac_ext |
13307 fi | |
13308 | |
13309 rm -rf conftest.dSYM | |
13310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
13311 conftest$ac_exeext conftest.$ac_ext | |
13312 LIBS=$ac_check_lib_save_LIBS | 8942 LIBS=$ac_check_lib_save_LIBS |
13313 fi | 8943 fi |
13314 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5 | 8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5 |
13315 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; } | 8945 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; } |
13316 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then | 8946 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then : |
13317 cat >>confdefs.h <<_ACEOF | 8947 cat >>confdefs.h <<_ACEOF |
13318 #define HAVE_LIBXMU 1 | 8948 #define HAVE_LIBXMU 1 |
13319 _ACEOF | 8949 _ACEOF |
13320 | 8950 |
13321 LIBS="-lXmu $LIBS" | 8951 LIBS="-lXmu $LIBS" |
13336 | 8966 |
13337 | 8967 |
13338 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D. | 8968 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D. |
13339 if test "${HAVE_X11}" = "yes"; then | 8969 if test "${HAVE_X11}" = "yes"; then |
13340 if test "${USE_X_TOOLKIT}" != "none"; then | 8970 if test "${USE_X_TOOLKIT}" != "none"; then |
13341 | 8971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5 |
13342 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 | |
13343 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; } | 8972 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; } |
13344 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | 8973 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then : |
13345 $as_echo_n "(cached) " >&6 | 8974 $as_echo_n "(cached) " >&6 |
13346 else | 8975 else |
13347 ac_check_lib_save_LIBS=$LIBS | 8976 ac_check_lib_save_LIBS=$LIBS |
13348 LIBS="-lXext $LIBS" | 8977 LIBS="-lXext $LIBS" |
13349 cat >conftest.$ac_ext <<_ACEOF | 8978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13350 /* confdefs.h. */ | |
13351 _ACEOF | |
13352 cat confdefs.h >>conftest.$ac_ext | |
13353 cat >>conftest.$ac_ext <<_ACEOF | |
13354 /* end confdefs.h. */ | 8979 /* end confdefs.h. */ |
13355 | 8980 |
13356 /* Override any GCC internal prototype to avoid an error. | 8981 /* Override any GCC internal prototype to avoid an error. |
13357 Use char because int might match the return type of a GCC | 8982 Use char because int might match the return type of a GCC |
13358 builtin and then its argument prototype would still apply. */ | 8983 builtin and then its argument prototype would still apply. */ |
13366 return XShapeQueryExtension (); | 8991 return XShapeQueryExtension (); |
13367 ; | 8992 ; |
13368 return 0; | 8993 return 0; |
13369 } | 8994 } |
13370 _ACEOF | 8995 _ACEOF |
13371 rm -f conftest.$ac_objext conftest$ac_exeext | 8996 if ac_fn_c_try_link "$LINENO"; then : |
13372 if { (ac_try="$ac_link" | |
13373 case "(($ac_try" in | |
13374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13375 *) ac_try_echo=$ac_try;; | |
13376 esac | |
13377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13378 $as_echo "$ac_try_echo") >&5 | |
13379 (eval "$ac_link") 2>conftest.er1 | |
13380 ac_status=$? | |
13381 grep -v '^ *+' conftest.er1 >conftest.err | |
13382 rm -f conftest.er1 | |
13383 cat conftest.err >&5 | |
13384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13385 (exit $ac_status); } && { | |
13386 test -z "$ac_c_werror_flag" || | |
13387 test ! -s conftest.err | |
13388 } && test -s conftest$ac_exeext && { | |
13389 test "$cross_compiling" = yes || | |
13390 $as_test_x conftest$ac_exeext | |
13391 }; then | |
13392 ac_cv_lib_Xext_XShapeQueryExtension=yes | 8997 ac_cv_lib_Xext_XShapeQueryExtension=yes |
13393 else | 8998 else |
13394 $as_echo "$as_me: failed program was:" >&5 | 8999 ac_cv_lib_Xext_XShapeQueryExtension=no |
13395 sed 's/^/| /' conftest.$ac_ext >&5 | 9000 fi |
13396 | 9001 rm -f core conftest.err conftest.$ac_objext \ |
13397 ac_cv_lib_Xext_XShapeQueryExtension=no | 9002 conftest$ac_exeext conftest.$ac_ext |
13398 fi | |
13399 | |
13400 rm -rf conftest.dSYM | |
13401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
13402 conftest$ac_exeext conftest.$ac_ext | |
13403 LIBS=$ac_check_lib_save_LIBS | 9003 LIBS=$ac_check_lib_save_LIBS |
13404 fi | 9004 fi |
13405 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | 9005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 |
13406 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; } | 9006 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; } |
13407 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | 9007 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then : |
13408 cat >>confdefs.h <<_ACEOF | 9008 cat >>confdefs.h <<_ACEOF |
13409 #define HAVE_LIBXEXT 1 | 9009 #define HAVE_LIBXEXT 1 |
13410 _ACEOF | 9010 _ACEOF |
13411 | 9011 |
13412 LIBS="-lXext $LIBS" | 9012 LIBS="-lXext $LIBS" |
13416 fi | 9016 fi |
13417 fi | 9017 fi |
13418 | 9018 |
13419 LIBXP= | 9019 LIBXP= |
13420 if test "${USE_X_TOOLKIT}" = "MOTIF"; then | 9020 if test "${USE_X_TOOLKIT}" = "MOTIF"; then |
13421 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5 | 9021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5 |
13422 $as_echo_n "checking for Motif version 2.1... " >&6; } | 9022 $as_echo_n "checking for Motif version 2.1... " >&6; } |
13423 if test "${emacs_cv_motif_version_2_1+set}" = set; then | 9023 if test "${emacs_cv_motif_version_2_1+set}" = set; then : |
13424 $as_echo_n "(cached) " >&6 | 9024 $as_echo_n "(cached) " >&6 |
13425 else | 9025 else |
13426 cat >conftest.$ac_ext <<_ACEOF | 9026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13427 /* confdefs.h. */ | |
13428 _ACEOF | |
13429 cat confdefs.h >>conftest.$ac_ext | |
13430 cat >>conftest.$ac_ext <<_ACEOF | |
13431 /* end confdefs.h. */ | 9027 /* end confdefs.h. */ |
13432 #include <Xm/Xm.h> | 9028 #include <Xm/Xm.h> |
13433 int | 9029 int |
13434 main () | 9030 main () |
13435 { | 9031 { |
13440 #endif | 9036 #endif |
13441 ; | 9037 ; |
13442 return 0; | 9038 return 0; |
13443 } | 9039 } |
13444 _ACEOF | 9040 _ACEOF |
13445 rm -f conftest.$ac_objext | 9041 if ac_fn_c_try_compile "$LINENO"; then : |
13446 if { (ac_try="$ac_compile" | |
13447 case "(($ac_try" in | |
13448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13449 *) ac_try_echo=$ac_try;; | |
13450 esac | |
13451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13452 $as_echo "$ac_try_echo") >&5 | |
13453 (eval "$ac_compile") 2>conftest.er1 | |
13454 ac_status=$? | |
13455 grep -v '^ *+' conftest.er1 >conftest.err | |
13456 rm -f conftest.er1 | |
13457 cat conftest.err >&5 | |
13458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13459 (exit $ac_status); } && { | |
13460 test -z "$ac_c_werror_flag" || | |
13461 test ! -s conftest.err | |
13462 } && test -s conftest.$ac_objext; then | |
13463 emacs_cv_motif_version_2_1=yes | 9042 emacs_cv_motif_version_2_1=yes |
13464 else | 9043 else |
13465 $as_echo "$as_me: failed program was:" >&5 | 9044 emacs_cv_motif_version_2_1=no |
13466 sed 's/^/| /' conftest.$ac_ext >&5 | 9045 fi |
13467 | |
13468 emacs_cv_motif_version_2_1=no | |
13469 fi | |
13470 | |
13471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 9046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13472 fi | 9047 fi |
13473 { $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5 | 9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5 |
13474 $as_echo "$emacs_cv_motif_version_2_1" >&6; } | 9049 $as_echo "$emacs_cv_motif_version_2_1" >&6; } |
13475 if test $emacs_cv_motif_version_2_1 = yes; then | 9050 if test $emacs_cv_motif_version_2_1 = yes; then |
13476 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5 | 9051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5 |
13477 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; } | 9052 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; } |
13478 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then | 9053 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then : |
13479 $as_echo_n "(cached) " >&6 | 9054 $as_echo_n "(cached) " >&6 |
13480 else | 9055 else |
13481 ac_check_lib_save_LIBS=$LIBS | 9056 ac_check_lib_save_LIBS=$LIBS |
13482 LIBS="-lXp $LIBS" | 9057 LIBS="-lXp $LIBS" |
13483 cat >conftest.$ac_ext <<_ACEOF | 9058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13484 /* confdefs.h. */ | |
13485 _ACEOF | |
13486 cat confdefs.h >>conftest.$ac_ext | |
13487 cat >>conftest.$ac_ext <<_ACEOF | |
13488 /* end confdefs.h. */ | 9059 /* end confdefs.h. */ |
13489 | 9060 |
13490 /* Override any GCC internal prototype to avoid an error. | 9061 /* Override any GCC internal prototype to avoid an error. |
13491 Use char because int might match the return type of a GCC | 9062 Use char because int might match the return type of a GCC |
13492 builtin and then its argument prototype would still apply. */ | 9063 builtin and then its argument prototype would still apply. */ |
13500 return XpCreateContext (); | 9071 return XpCreateContext (); |
13501 ; | 9072 ; |
13502 return 0; | 9073 return 0; |
13503 } | 9074 } |
13504 _ACEOF | 9075 _ACEOF |
13505 rm -f conftest.$ac_objext conftest$ac_exeext | 9076 if ac_fn_c_try_link "$LINENO"; then : |
13506 if { (ac_try="$ac_link" | |
13507 case "(($ac_try" in | |
13508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13509 *) ac_try_echo=$ac_try;; | |
13510 esac | |
13511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13512 $as_echo "$ac_try_echo") >&5 | |
13513 (eval "$ac_link") 2>conftest.er1 | |
13514 ac_status=$? | |
13515 grep -v '^ *+' conftest.er1 >conftest.err | |
13516 rm -f conftest.er1 | |
13517 cat conftest.err >&5 | |
13518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13519 (exit $ac_status); } && { | |
13520 test -z "$ac_c_werror_flag" || | |
13521 test ! -s conftest.err | |
13522 } && test -s conftest$ac_exeext && { | |
13523 test "$cross_compiling" = yes || | |
13524 $as_test_x conftest$ac_exeext | |
13525 }; then | |
13526 ac_cv_lib_Xp_XpCreateContext=yes | 9077 ac_cv_lib_Xp_XpCreateContext=yes |
13527 else | 9078 else |
13528 $as_echo "$as_me: failed program was:" >&5 | 9079 ac_cv_lib_Xp_XpCreateContext=no |
13529 sed 's/^/| /' conftest.$ac_ext >&5 | 9080 fi |
13530 | 9081 rm -f core conftest.err conftest.$ac_objext \ |
13531 ac_cv_lib_Xp_XpCreateContext=no | 9082 conftest$ac_exeext conftest.$ac_ext |
13532 fi | |
13533 | |
13534 rm -rf conftest.dSYM | |
13535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
13536 conftest$ac_exeext conftest.$ac_ext | |
13537 LIBS=$ac_check_lib_save_LIBS | 9083 LIBS=$ac_check_lib_save_LIBS |
13538 fi | 9084 fi |
13539 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5 | 9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5 |
13540 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; } | 9086 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; } |
13541 if test $ac_cv_lib_Xp_XpCreateContext = yes; then | 9087 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then : |
13542 LIBXP=-lXp | 9088 LIBXP=-lXp |
13543 fi | 9089 fi |
13544 | 9090 |
13545 else | 9091 else |
13546 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5 | 9092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5 |
13547 $as_echo_n "checking for LessTif where some systems put it... " >&6; } | 9093 $as_echo_n "checking for LessTif where some systems put it... " >&6; } |
13548 if test "${emacs_cv_lesstif+set}" = set; then | 9094 if test "${emacs_cv_lesstif+set}" = set; then : |
13549 $as_echo_n "(cached) " >&6 | 9095 $as_echo_n "(cached) " >&6 |
13550 else | 9096 else |
13551 # We put this in CFLAGS temporarily to precede other -I options | 9097 # We put this in CFLAGS temporarily to precede other -I options |
13552 # that might be in CFLAGS temporarily. | 9098 # that might be in CFLAGS temporarily. |
13553 # We put this in CPPFLAGS where it precedes the other -I options. | 9099 # We put this in CPPFLAGS where it precedes the other -I options. |
13554 OLD_CPPFLAGS=$CPPFLAGS | 9100 OLD_CPPFLAGS=$CPPFLAGS |
13555 OLD_CFLAGS=$CFLAGS | 9101 OLD_CFLAGS=$CFLAGS |
13556 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS" | 9102 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS" |
13557 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS" | 9103 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS" |
13558 cat >conftest.$ac_ext <<_ACEOF | 9104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13559 /* confdefs.h. */ | |
13560 _ACEOF | |
13561 cat confdefs.h >>conftest.$ac_ext | |
13562 cat >>conftest.$ac_ext <<_ACEOF | |
13563 /* end confdefs.h. */ | 9105 /* end confdefs.h. */ |
13564 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h> | 9106 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h> |
13565 int | 9107 int |
13566 main () | 9108 main () |
13567 { | 9109 { |
13568 int x = 5; | 9110 int x = 5; |
13569 ; | 9111 ; |
13570 return 0; | 9112 return 0; |
13571 } | 9113 } |
13572 _ACEOF | 9114 _ACEOF |
13573 rm -f conftest.$ac_objext | 9115 if ac_fn_c_try_compile "$LINENO"; then : |
13574 if { (ac_try="$ac_compile" | |
13575 case "(($ac_try" in | |
13576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13577 *) ac_try_echo=$ac_try;; | |
13578 esac | |
13579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13580 $as_echo "$ac_try_echo") >&5 | |
13581 (eval "$ac_compile") 2>conftest.er1 | |
13582 ac_status=$? | |
13583 grep -v '^ *+' conftest.er1 >conftest.err | |
13584 rm -f conftest.er1 | |
13585 cat conftest.err >&5 | |
13586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13587 (exit $ac_status); } && { | |
13588 test -z "$ac_c_werror_flag" || | |
13589 test ! -s conftest.err | |
13590 } && test -s conftest.$ac_objext; then | |
13591 emacs_cv_lesstif=yes | 9116 emacs_cv_lesstif=yes |
13592 else | 9117 else |
13593 $as_echo "$as_me: failed program was:" >&5 | 9118 emacs_cv_lesstif=no |
13594 sed 's/^/| /' conftest.$ac_ext >&5 | 9119 fi |
13595 | |
13596 emacs_cv_lesstif=no | |
13597 fi | |
13598 | |
13599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 9120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13600 fi | 9121 fi |
13601 { $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5 | 9122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5 |
13602 $as_echo "$emacs_cv_lesstif" >&6; } | 9123 $as_echo "$emacs_cv_lesstif" >&6; } |
13603 if test $emacs_cv_lesstif = yes; then | 9124 if test $emacs_cv_lesstif = yes; then |
13604 # Make sure this -I option remains in CPPFLAGS after it is set | 9125 # Make sure this -I option remains in CPPFLAGS after it is set |
13605 # back to REAL_CPPFLAGS. | 9126 # back to REAL_CPPFLAGS. |
13606 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not | 9127 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not |
13614 fi | 9135 fi |
13615 fi | 9136 fi |
13616 fi | 9137 fi |
13617 | 9138 |
13618 | 9139 |
13619 | |
13620 USE_TOOLKIT_SCROLL_BARS=no | 9140 USE_TOOLKIT_SCROLL_BARS=no |
13621 if test "${with_toolkit_scroll_bars}" != "no"; then | 9141 if test "${with_toolkit_scroll_bars}" != "no"; then |
13622 if test "${USE_X_TOOLKIT}" != "none"; then | 9142 if test "${USE_X_TOOLKIT}" != "none"; then |
13623 if test "${USE_X_TOOLKIT}" = "MOTIF"; then | 9143 if test "${USE_X_TOOLKIT}" = "MOTIF"; then |
13624 cat >>confdefs.h <<\_ACEOF | 9144 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h |
13625 #define USE_TOOLKIT_SCROLL_BARS 1 | |
13626 _ACEOF | |
13627 | 9145 |
13628 HAVE_XAW3D=no | 9146 HAVE_XAW3D=no |
13629 USE_TOOLKIT_SCROLL_BARS=yes | 9147 USE_TOOLKIT_SCROLL_BARS=yes |
13630 elif test "${HAVE_XAW3D}" = "yes"; then | 9148 elif test "${HAVE_XAW3D}" = "yes"; then |
13631 cat >>confdefs.h <<\_ACEOF | 9149 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h |
13632 #define USE_TOOLKIT_SCROLL_BARS 1 | |
13633 _ACEOF | |
13634 | 9150 |
13635 USE_TOOLKIT_SCROLL_BARS=yes | 9151 USE_TOOLKIT_SCROLL_BARS=yes |
13636 fi | 9152 fi |
13637 elif test "${HAVE_GTK}" = "yes"; then | 9153 elif test "${HAVE_GTK}" = "yes"; then |
13638 cat >>confdefs.h <<\_ACEOF | 9154 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h |
13639 #define USE_TOOLKIT_SCROLL_BARS 1 | |
13640 _ACEOF | |
13641 | 9155 |
13642 USE_TOOLKIT_SCROLL_BARS=yes | 9156 USE_TOOLKIT_SCROLL_BARS=yes |
13643 elif test "${HAVE_NS}" = "yes"; then | 9157 elif test "${HAVE_NS}" = "yes"; then |
13644 cat >>confdefs.h <<\_ACEOF | 9158 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h |
13645 #define USE_TOOLKIT_SCROLL_BARS 1 | |
13646 _ACEOF | |
13647 | 9159 |
13648 USE_TOOLKIT_SCROLL_BARS=yes | 9160 USE_TOOLKIT_SCROLL_BARS=yes |
13649 fi | 9161 fi |
13650 fi | 9162 fi |
13651 | 9163 |
13652 cat >conftest.$ac_ext <<_ACEOF | 9164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13653 /* confdefs.h. */ | |
13654 _ACEOF | |
13655 cat confdefs.h >>conftest.$ac_ext | |
13656 cat >>conftest.$ac_ext <<_ACEOF | |
13657 /* end confdefs.h. */ | 9165 /* end confdefs.h. */ |
13658 | 9166 |
13659 #include <X11/Xlib.h> | 9167 #include <X11/Xlib.h> |
13660 #include <X11/Xresource.h> | 9168 #include <X11/Xresource.h> |
13661 int | 9169 int |
13664 XIMProc callback; | 9172 XIMProc callback; |
13665 ; | 9173 ; |
13666 return 0; | 9174 return 0; |
13667 } | 9175 } |
13668 _ACEOF | 9176 _ACEOF |
13669 rm -f conftest.$ac_objext | 9177 if ac_fn_c_try_compile "$LINENO"; then : |
13670 if { (ac_try="$ac_compile" | |
13671 case "(($ac_try" in | |
13672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13673 *) ac_try_echo=$ac_try;; | |
13674 esac | |
13675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13676 $as_echo "$ac_try_echo") >&5 | |
13677 (eval "$ac_compile") 2>conftest.er1 | |
13678 ac_status=$? | |
13679 grep -v '^ *+' conftest.er1 >conftest.err | |
13680 rm -f conftest.er1 | |
13681 cat conftest.err >&5 | |
13682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13683 (exit $ac_status); } && { | |
13684 test -z "$ac_c_werror_flag" || | |
13685 test ! -s conftest.err | |
13686 } && test -s conftest.$ac_objext; then | |
13687 HAVE_XIM=yes | 9178 HAVE_XIM=yes |
13688 | 9179 |
13689 cat >>confdefs.h <<\_ACEOF | 9180 $as_echo "#define HAVE_XIM 1" >>confdefs.h |
13690 #define HAVE_XIM 1 | 9181 |
13691 _ACEOF | 9182 else |
13692 | 9183 HAVE_XIM=no |
13693 else | 9184 fi |
13694 $as_echo "$as_me: failed program was:" >&5 | |
13695 sed 's/^/| /' conftest.$ac_ext >&5 | |
13696 | |
13697 HAVE_XIM=no | |
13698 fi | |
13699 | |
13700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 9185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13701 | 9186 |
13702 | 9187 |
13703 if test "${with_xim}" != "no"; then | 9188 if test "${with_xim}" != "no"; then |
13704 | 9189 |
13705 cat >>confdefs.h <<\_ACEOF | 9190 $as_echo "#define USE_XIM 1" >>confdefs.h |
13706 #define USE_XIM 1 | |
13707 _ACEOF | |
13708 | 9191 |
13709 fi | 9192 fi |
13710 | 9193 |
13711 | 9194 |
13712 if test "${HAVE_XIM}" != "no"; then | 9195 if test "${HAVE_XIM}" != "no"; then |
13713 late_CFLAGS=$CFLAGS | 9196 late_CFLAGS=$CFLAGS |
13714 if test "$GCC" = yes; then | 9197 if test "$GCC" = yes; then |
13715 CFLAGS="$CFLAGS --pedantic-errors" | 9198 CFLAGS="$CFLAGS --pedantic-errors" |
13716 fi | 9199 fi |
13717 cat >conftest.$ac_ext <<_ACEOF | 9200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13718 /* confdefs.h. */ | |
13719 _ACEOF | |
13720 cat confdefs.h >>conftest.$ac_ext | |
13721 cat >>conftest.$ac_ext <<_ACEOF | |
13722 /* end confdefs.h. */ | 9201 /* end confdefs.h. */ |
13723 | 9202 |
13724 #include <X11/Xlib.h> | 9203 #include <X11/Xlib.h> |
13725 #include <X11/Xresource.h> | 9204 #include <X11/Xresource.h> |
13726 int | 9205 int |
13742 client_data); | 9221 client_data); |
13743 ; | 9222 ; |
13744 return 0; | 9223 return 0; |
13745 } | 9224 } |
13746 _ACEOF | 9225 _ACEOF |
13747 rm -f conftest.$ac_objext | 9226 if ac_fn_c_try_compile "$LINENO"; then : |
13748 if { (ac_try="$ac_compile" | |
13749 case "(($ac_try" in | |
13750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13751 *) ac_try_echo=$ac_try;; | |
13752 esac | |
13753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13754 $as_echo "$ac_try_echo") >&5 | |
13755 (eval "$ac_compile") 2>conftest.er1 | |
13756 ac_status=$? | |
13757 grep -v '^ *+' conftest.er1 >conftest.err | |
13758 rm -f conftest.er1 | |
13759 cat conftest.err >&5 | |
13760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13761 (exit $ac_status); } && { | |
13762 test -z "$ac_c_werror_flag" || | |
13763 test ! -s conftest.err | |
13764 } && test -s conftest.$ac_objext; then | |
13765 emacs_cv_arg6_star=yes | 9227 emacs_cv_arg6_star=yes |
13766 else | 9228 fi |
13767 $as_echo "$as_me: failed program was:" >&5 | |
13768 sed 's/^/| /' conftest.$ac_ext >&5 | |
13769 | |
13770 | |
13771 fi | |
13772 | |
13773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 9229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13774 | 9230 if test "$emacs_cv_arg6_star" = yes; then |
13775 if test "$emacs_cv_arg6_star" = yes; then | 9231 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h |
13776 cat >>confdefs.h <<\_ACEOF | |
13777 #define XRegisterIMInstantiateCallback_arg6 XPointer* | |
13778 _ACEOF | |
13779 | 9232 |
13780 else | 9233 else |
13781 cat >>confdefs.h <<\_ACEOF | 9234 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h |
13782 #define XRegisterIMInstantiateCallback_arg6 XPointer | |
13783 _ACEOF | |
13784 | 9235 |
13785 fi | 9236 fi |
13786 CFLAGS=$late_CFLAGS | 9237 CFLAGS=$late_CFLAGS |
13787 fi | 9238 fi |
13788 | 9239 |
13795 | 9246 |
13796 succeeded=no | 9247 succeeded=no |
13797 | 9248 |
13798 # Extract the first word of "pkg-config", so it can be a program name with args. | 9249 # Extract the first word of "pkg-config", so it can be a program name with args. |
13799 set dummy pkg-config; ac_word=$2 | 9250 set dummy pkg-config; ac_word=$2 |
13800 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | 9251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13801 $as_echo_n "checking for $ac_word... " >&6; } | 9252 $as_echo_n "checking for $ac_word... " >&6; } |
13802 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | 9253 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
13803 $as_echo_n "(cached) " >&6 | 9254 $as_echo_n "(cached) " >&6 |
13804 else | 9255 else |
13805 case $PKG_CONFIG in | 9256 case $PKG_CONFIG in |
13806 [\\/]* | ?:[\\/]*) | 9257 [\\/]* | ?:[\\/]*) |
13807 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | 9258 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
13810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 9261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13811 for as_dir in $PATH | 9262 for as_dir in $PATH |
13812 do | 9263 do |
13813 IFS=$as_save_IFS | 9264 IFS=$as_save_IFS |
13814 test -z "$as_dir" && as_dir=. | 9265 test -z "$as_dir" && as_dir=. |
13815 for ac_exec_ext in '' $ac_executable_extensions; do | 9266 for ac_exec_ext in '' $ac_executable_extensions; do |
13816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 9267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
13817 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | 9268 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
13818 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 9269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
13819 break 2 | 9270 break 2 |
13820 fi | 9271 fi |
13821 done | 9272 done |
13822 done | 9273 done |
13823 IFS=$as_save_IFS | 9274 IFS=$as_save_IFS |
13824 | 9275 |
13825 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | 9276 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
13826 ;; | 9277 ;; |
13827 esac | 9278 esac |
13828 fi | 9279 fi |
13829 PKG_CONFIG=$ac_cv_path_PKG_CONFIG | 9280 PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
13830 if test -n "$PKG_CONFIG"; then | 9281 if test -n "$PKG_CONFIG"; then |
13831 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | 9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
13832 $as_echo "$PKG_CONFIG" >&6; } | 9283 $as_echo "$PKG_CONFIG" >&6; } |
13833 else | 9284 else |
13834 { $as_echo "$as_me:$LINENO: result: no" >&5 | 9285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13835 $as_echo "no" >&6; } | 9286 $as_echo "no" >&6; } |
13836 fi | 9287 fi |
13837 | 9288 |
13838 | 9289 |
13839 | 9290 |
13840 if test "$PKG_CONFIG" = "no" ; then | 9291 if test "$PKG_CONFIG" = "no" ; then |
13841 HAVE_FC=no | 9292 HAVE_FC=no |
13842 else | 9293 else |
13843 PKG_CONFIG_MIN_VERSION=0.9.0 | 9294 PKG_CONFIG_MIN_VERSION=0.9.0 |
13844 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | 9295 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then |
13845 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5 | 9296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5 |
13846 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; } | 9297 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; } |
13847 | 9298 |
13848 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then | 9299 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then |
13849 { $as_echo "$as_me:$LINENO: result: yes" >&5 | 9300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13850 $as_echo "yes" >&6; } | 9301 $as_echo "yes" >&6; } |
13851 succeeded=yes | 9302 succeeded=yes |
13852 | 9303 |
13853 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5 | 9304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5 |
13854 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; } | 9305 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; } |
13855 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'` | 9306 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'` |
13856 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5 | 9307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5 |
13857 $as_echo "$FONTCONFIG_CFLAGS" >&6; } | 9308 $as_echo "$FONTCONFIG_CFLAGS" >&6; } |
13858 | 9309 |
13859 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5 | 9310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5 |
13860 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; } | 9311 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; } |
13861 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'` | 9312 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'` |
13862 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5 | 9313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5 |
13863 $as_echo "$FONTCONFIG_LIBS" >&6; } | 9314 $as_echo "$FONTCONFIG_LIBS" >&6; } |
13864 else | 9315 else |
13865 { $as_echo "$as_me:$LINENO: result: no" >&5 | 9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13866 $as_echo "no" >&6; } | 9317 $as_echo "no" >&6; } |
13867 FONTCONFIG_CFLAGS="" | 9318 FONTCONFIG_CFLAGS="" |
13868 FONTCONFIG_LIBS="" | 9319 FONTCONFIG_LIBS="" |
13869 ## If we have a custom action on failure, don't print errors, but | 9320 ## If we have a custom action on failure, don't print errors, but |
13870 ## do set a variable so people can do so. | 9321 ## do set a variable so people can do so. |
13897 | 9348 |
13898 succeeded=no | 9349 succeeded=no |
13899 | 9350 |
13900 # Extract the first word of "pkg-config", so it can be a program name with args. | 9351 # Extract the first word of "pkg-config", so it can be a program name with args. |
13901 set dummy pkg-config; ac_word=$2 | 9352 set dummy pkg-config; ac_word=$2 |
13902 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | 9353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13903 $as_echo_n "checking for $ac_word... " >&6; } | 9354 $as_echo_n "checking for $ac_word... " >&6; } |
13904 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | 9355 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
13905 $as_echo_n "(cached) " >&6 | 9356 $as_echo_n "(cached) " >&6 |
13906 else | 9357 else |
13907 case $PKG_CONFIG in | 9358 case $PKG_CONFIG in |
13908 [\\/]* | ?:[\\/]*) | 9359 [\\/]* | ?:[\\/]*) |
13909 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | 9360 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
13912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 9363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13913 for as_dir in $PATH | 9364 for as_dir in $PATH |
13914 do | 9365 do |
13915 IFS=$as_save_IFS | 9366 IFS=$as_save_IFS |
13916 test -z "$as_dir" && as_dir=. | 9367 test -z "$as_dir" && as_dir=. |
13917 for ac_exec_ext in '' $ac_executable_extensions; do | 9368 for ac_exec_ext in '' $ac_executable_extensions; do |
13918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 9369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
13919 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | 9370 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
13920 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 9371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
13921 break 2 | 9372 break 2 |
13922 fi | 9373 fi |
13923 done | 9374 done |
13924 done | 9375 done |
13925 IFS=$as_save_IFS | 9376 IFS=$as_save_IFS |
13926 | 9377 |
13927 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | 9378 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
13928 ;; | 9379 ;; |
13929 esac | 9380 esac |
13930 fi | 9381 fi |
13931 PKG_CONFIG=$ac_cv_path_PKG_CONFIG | 9382 PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
13932 if test -n "$PKG_CONFIG"; then | 9383 if test -n "$PKG_CONFIG"; then |
13933 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | 9384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
13934 $as_echo "$PKG_CONFIG" >&6; } | 9385 $as_echo "$PKG_CONFIG" >&6; } |
13935 else | 9386 else |
13936 { $as_echo "$as_me:$LINENO: result: no" >&5 | 9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13937 $as_echo "no" >&6; } | 9388 $as_echo "no" >&6; } |
13938 fi | 9389 fi |
13939 | 9390 |
13940 | 9391 |
13941 | 9392 |
13942 if test "$PKG_CONFIG" = "no" ; then | 9393 if test "$PKG_CONFIG" = "no" ; then |
13943 HAVE_XFT=no | 9394 HAVE_XFT=no |
13944 else | 9395 else |
13945 PKG_CONFIG_MIN_VERSION=0.9.0 | 9396 PKG_CONFIG_MIN_VERSION=0.9.0 |
13946 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | 9397 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then |
13947 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5 | 9398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5 |
13948 $as_echo_n "checking for xft >= 0.13.0... " >&6; } | 9399 $as_echo_n "checking for xft >= 0.13.0... " >&6; } |
13949 | 9400 |
13950 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then | 9401 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then |
13951 { $as_echo "$as_me:$LINENO: result: yes" >&5 | 9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13952 $as_echo "yes" >&6; } | 9403 $as_echo "yes" >&6; } |
13953 succeeded=yes | 9404 succeeded=yes |
13954 | 9405 |
13955 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5 | 9406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5 |
13956 $as_echo_n "checking XFT_CFLAGS... " >&6; } | 9407 $as_echo_n "checking XFT_CFLAGS... " >&6; } |
13957 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'` | 9408 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'` |
13958 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5 | 9409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5 |
13959 $as_echo "$XFT_CFLAGS" >&6; } | 9410 $as_echo "$XFT_CFLAGS" >&6; } |
13960 | 9411 |
13961 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5 | 9412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5 |
13962 $as_echo_n "checking XFT_LIBS... " >&6; } | 9413 $as_echo_n "checking XFT_LIBS... " >&6; } |
13963 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'` | 9414 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'` |
13964 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5 | 9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5 |
13965 $as_echo "$XFT_LIBS" >&6; } | 9416 $as_echo "$XFT_LIBS" >&6; } |
13966 else | 9417 else |
13967 { $as_echo "$as_me:$LINENO: result: no" >&5 | 9418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13968 $as_echo "no" >&6; } | 9419 $as_echo "no" >&6; } |
13969 XFT_CFLAGS="" | 9420 XFT_CFLAGS="" |
13970 XFT_LIBS="" | 9421 XFT_LIBS="" |
13971 ## If we have a custom action on failure, don't print errors, but | 9422 ## If we have a custom action on failure, don't print errors, but |
13972 ## do set a variable so people can do so. | 9423 ## do set a variable so people can do so. |
13989 fi | 9440 fi |
13990 | 9441 |
13991 ## Because xftfont.c uses XRenderQueryExtension, we also | 9442 ## Because xftfont.c uses XRenderQueryExtension, we also |
13992 ## need to link to -lXrender. | 9443 ## need to link to -lXrender. |
13993 HAVE_XRENDER=no | 9444 HAVE_XRENDER=no |
13994 { $as_echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5 | 9445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5 |
13995 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; } | 9446 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; } |
13996 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then | 9447 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then : |
13997 $as_echo_n "(cached) " >&6 | 9448 $as_echo_n "(cached) " >&6 |
13998 else | 9449 else |
13999 ac_check_lib_save_LIBS=$LIBS | 9450 ac_check_lib_save_LIBS=$LIBS |
14000 LIBS="-lXrender $LIBS" | 9451 LIBS="-lXrender $LIBS" |
14001 cat >conftest.$ac_ext <<_ACEOF | 9452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14002 /* confdefs.h. */ | |
14003 _ACEOF | |
14004 cat confdefs.h >>conftest.$ac_ext | |
14005 cat >>conftest.$ac_ext <<_ACEOF | |
14006 /* end confdefs.h. */ | 9453 /* end confdefs.h. */ |
14007 | 9454 |
14008 /* Override any GCC internal prototype to avoid an error. | 9455 /* Override any GCC internal prototype to avoid an error. |
14009 Use char because int might match the return type of a GCC | 9456 Use char because int might match the return type of a GCC |
14010 builtin and then its argument prototype would still apply. */ | 9457 builtin and then its argument prototype would still apply. */ |
14018 return XRenderQueryExtension (); | 9465 return XRenderQueryExtension (); |
14019 ; | 9466 ; |
14020 return 0; | 9467 return 0; |
14021 } | 9468 } |
14022 _ACEOF | 9469 _ACEOF |
14023 rm -f conftest.$ac_objext conftest$ac_exeext | 9470 if ac_fn_c_try_link "$LINENO"; then : |
14024 if { (ac_try="$ac_link" | |
14025 case "(($ac_try" in | |
14026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14027 *) ac_try_echo=$ac_try;; | |
14028 esac | |
14029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14030 $as_echo "$ac_try_echo") >&5 | |
14031 (eval "$ac_link") 2>conftest.er1 | |
14032 ac_status=$? | |
14033 grep -v '^ *+' conftest.er1 >conftest.err | |
14034 rm -f conftest.er1 | |
14035 cat conftest.err >&5 | |
14036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14037 (exit $ac_status); } && { | |
14038 test -z "$ac_c_werror_flag" || | |
14039 test ! -s conftest.err | |
14040 } && test -s conftest$ac_exeext && { | |
14041 test "$cross_compiling" = yes || | |
14042 $as_test_x conftest$ac_exeext | |
14043 }; then | |
14044 ac_cv_lib_Xrender_XRenderQueryExtension=yes | 9471 ac_cv_lib_Xrender_XRenderQueryExtension=yes |
14045 else | 9472 else |
14046 $as_echo "$as_me: failed program was:" >&5 | 9473 ac_cv_lib_Xrender_XRenderQueryExtension=no |
14047 sed 's/^/| /' conftest.$ac_ext >&5 | 9474 fi |
14048 | 9475 rm -f core conftest.err conftest.$ac_objext \ |
14049 ac_cv_lib_Xrender_XRenderQueryExtension=no | 9476 conftest$ac_exeext conftest.$ac_ext |
14050 fi | |
14051 | |
14052 rm -rf conftest.dSYM | |
14053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
14054 conftest$ac_exeext conftest.$ac_ext | |
14055 LIBS=$ac_check_lib_save_LIBS | 9477 LIBS=$ac_check_lib_save_LIBS |
14056 fi | 9478 fi |
14057 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5 | 9479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5 |
14058 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; } | 9480 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; } |
14059 if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then | 9481 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then : |
14060 HAVE_XRENDER=yes | 9482 HAVE_XRENDER=yes |
14061 fi | 9483 fi |
14062 | 9484 |
14063 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then | 9485 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then |
14064 OLD_CPPFLAGS="$CPPFLAGS" | 9486 OLD_CPPFLAGS="$CPPFLAGS" |
14066 OLD_LIBS="$LIBS" | 9488 OLD_LIBS="$LIBS" |
14067 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS" | 9489 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS" |
14068 CFLAGS="$CFLAGS $XFT_CFLAGS" | 9490 CFLAGS="$CFLAGS $XFT_CFLAGS" |
14069 XFT_LIBS="-lXrender $XFT_LIBS" | 9491 XFT_LIBS="-lXrender $XFT_LIBS" |
14070 LIBS="$XFT_LIBS $LIBS" | 9492 LIBS="$XFT_LIBS $LIBS" |
14071 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then | 9493 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default" |
14072 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5 | 9494 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then : |
14073 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; } | 9495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5 |
14074 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then | |
14075 $as_echo_n "(cached) " >&6 | |
14076 fi | |
14077 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5 | |
14078 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; } | |
14079 else | |
14080 # Is the header compilable? | |
14081 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5 | |
14082 $as_echo_n "checking X11/Xft/Xft.h usability... " >&6; } | |
14083 cat >conftest.$ac_ext <<_ACEOF | |
14084 /* confdefs.h. */ | |
14085 _ACEOF | |
14086 cat confdefs.h >>conftest.$ac_ext | |
14087 cat >>conftest.$ac_ext <<_ACEOF | |
14088 /* end confdefs.h. */ | |
14089 $ac_includes_default | |
14090 #include <X11/Xft/Xft.h> | |
14091 _ACEOF | |
14092 rm -f conftest.$ac_objext | |
14093 if { (ac_try="$ac_compile" | |
14094 case "(($ac_try" in | |
14095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14096 *) ac_try_echo=$ac_try;; | |
14097 esac | |
14098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14099 $as_echo "$ac_try_echo") >&5 | |
14100 (eval "$ac_compile") 2>conftest.er1 | |
14101 ac_status=$? | |
14102 grep -v '^ *+' conftest.er1 >conftest.err | |
14103 rm -f conftest.er1 | |
14104 cat conftest.err >&5 | |
14105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14106 (exit $ac_status); } && { | |
14107 test -z "$ac_c_werror_flag" || | |
14108 test ! -s conftest.err | |
14109 } && test -s conftest.$ac_objext; then | |
14110 ac_header_compiler=yes | |
14111 else | |
14112 $as_echo "$as_me: failed program was:" >&5 | |
14113 sed 's/^/| /' conftest.$ac_ext >&5 | |
14114 | |
14115 ac_header_compiler=no | |
14116 fi | |
14117 | |
14118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14119 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
14120 $as_echo "$ac_header_compiler" >&6; } | |
14121 | |
14122 # Is the header present? | |
14123 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5 | |
14124 $as_echo_n "checking X11/Xft/Xft.h presence... " >&6; } | |
14125 cat >conftest.$ac_ext <<_ACEOF | |
14126 /* confdefs.h. */ | |
14127 _ACEOF | |
14128 cat confdefs.h >>conftest.$ac_ext | |
14129 cat >>conftest.$ac_ext <<_ACEOF | |
14130 /* end confdefs.h. */ | |
14131 #include <X11/Xft/Xft.h> | |
14132 _ACEOF | |
14133 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
14134 case "(($ac_try" in | |
14135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14136 *) ac_try_echo=$ac_try;; | |
14137 esac | |
14138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14139 $as_echo "$ac_try_echo") >&5 | |
14140 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
14141 ac_status=$? | |
14142 grep -v '^ *+' conftest.er1 >conftest.err | |
14143 rm -f conftest.er1 | |
14144 cat conftest.err >&5 | |
14145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14146 (exit $ac_status); } >/dev/null && { | |
14147 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14148 test ! -s conftest.err | |
14149 }; then | |
14150 ac_header_preproc=yes | |
14151 else | |
14152 $as_echo "$as_me: failed program was:" >&5 | |
14153 sed 's/^/| /' conftest.$ac_ext >&5 | |
14154 | |
14155 ac_header_preproc=no | |
14156 fi | |
14157 | |
14158 rm -f conftest.err conftest.$ac_ext | |
14159 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14160 $as_echo "$ac_header_preproc" >&6; } | |
14161 | |
14162 # So? What about this header? | |
14163 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
14164 yes:no: ) | |
14165 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
14166 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14167 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5 | |
14168 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;} | |
14169 ac_header_preproc=yes | |
14170 ;; | |
14171 no:yes:* ) | |
14172 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5 | |
14173 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;} | |
14174 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5 | |
14175 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;} | |
14176 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5 | |
14177 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;} | |
14178 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5 | |
14179 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
14180 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5 | |
14181 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;} | |
14182 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5 | |
14183 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;} | |
14184 | |
14185 ;; | |
14186 esac | |
14187 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5 | |
14188 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; } | |
14189 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then | |
14190 $as_echo_n "(cached) " >&6 | |
14191 else | |
14192 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc | |
14193 fi | |
14194 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5 | |
14195 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; } | |
14196 | |
14197 fi | |
14198 if test $ac_cv_header_X11_Xft_Xft_h = yes; then | |
14199 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5 | |
14200 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; } | 9496 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; } |
14201 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then | 9497 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then : |
14202 $as_echo_n "(cached) " >&6 | 9498 $as_echo_n "(cached) " >&6 |
14203 else | 9499 else |
14204 ac_check_lib_save_LIBS=$LIBS | 9500 ac_check_lib_save_LIBS=$LIBS |
14205 LIBS="-lXft $XFT_LIBS $LIBS" | 9501 LIBS="-lXft $XFT_LIBS $LIBS" |
14206 cat >conftest.$ac_ext <<_ACEOF | 9502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14207 /* confdefs.h. */ | |
14208 _ACEOF | |
14209 cat confdefs.h >>conftest.$ac_ext | |
14210 cat >>conftest.$ac_ext <<_ACEOF | |
14211 /* end confdefs.h. */ | 9503 /* end confdefs.h. */ |
14212 | 9504 |
14213 /* Override any GCC internal prototype to avoid an error. | 9505 /* Override any GCC internal prototype to avoid an error. |
14214 Use char because int might match the return type of a GCC | 9506 Use char because int might match the return type of a GCC |
14215 builtin and then its argument prototype would still apply. */ | 9507 builtin and then its argument prototype would still apply. */ |
14223 return XftFontOpen (); | 9515 return XftFontOpen (); |
14224 ; | 9516 ; |
14225 return 0; | 9517 return 0; |
14226 } | 9518 } |
14227 _ACEOF | 9519 _ACEOF |
14228 rm -f conftest.$ac_objext conftest$ac_exeext | 9520 if ac_fn_c_try_link "$LINENO"; then : |
14229 if { (ac_try="$ac_link" | |
14230 case "(($ac_try" in | |
14231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14232 *) ac_try_echo=$ac_try;; | |
14233 esac | |
14234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14235 $as_echo "$ac_try_echo") >&5 | |
14236 (eval "$ac_link") 2>conftest.er1 | |
14237 ac_status=$? | |
14238 grep -v '^ *+' conftest.er1 >conftest.err | |
14239 rm -f conftest.er1 | |
14240 cat conftest.err >&5 | |
14241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14242 (exit $ac_status); } && { | |
14243 test -z "$ac_c_werror_flag" || | |
14244 test ! -s conftest.err | |
14245 } && test -s conftest$ac_exeext && { | |
14246 test "$cross_compiling" = yes || | |
14247 $as_test_x conftest$ac_exeext | |
14248 }; then | |
14249 ac_cv_lib_Xft_XftFontOpen=yes | 9521 ac_cv_lib_Xft_XftFontOpen=yes |
14250 else | 9522 else |
14251 $as_echo "$as_me: failed program was:" >&5 | 9523 ac_cv_lib_Xft_XftFontOpen=no |
14252 sed 's/^/| /' conftest.$ac_ext >&5 | 9524 fi |
14253 | 9525 rm -f core conftest.err conftest.$ac_objext \ |
14254 ac_cv_lib_Xft_XftFontOpen=no | 9526 conftest$ac_exeext conftest.$ac_ext |
14255 fi | |
14256 | |
14257 rm -rf conftest.dSYM | |
14258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
14259 conftest$ac_exeext conftest.$ac_ext | |
14260 LIBS=$ac_check_lib_save_LIBS | 9527 LIBS=$ac_check_lib_save_LIBS |
14261 fi | 9528 fi |
14262 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5 | 9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5 |
14263 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; } | 9530 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; } |
14264 if test $ac_cv_lib_Xft_XftFontOpen = yes; then | 9531 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then : |
14265 HAVE_XFT=yes | 9532 HAVE_XFT=yes |
14266 fi | 9533 fi |
14267 | 9534 |
14268 fi | 9535 fi |
14269 | 9536 |
14270 | 9537 |
14271 | 9538 |
14272 if test "${HAVE_XFT}" = "yes"; then | 9539 if test "${HAVE_XFT}" = "yes"; then |
14273 | 9540 |
14274 cat >>confdefs.h <<\_ACEOF | 9541 $as_echo "#define HAVE_XFT 1" >>confdefs.h |
14275 #define HAVE_XFT 1 | |
14276 _ACEOF | |
14277 | 9542 |
14278 | 9543 |
14279 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS" | 9544 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS" |
14280 else | 9545 else |
14281 CPPFLAGS="$OLD_CPPFLAGS" | 9546 CPPFLAGS="$OLD_CPPFLAGS" |
14300 fi | 9565 fi |
14301 | 9566 |
14302 HAVE_LIBOTF=no | 9567 HAVE_LIBOTF=no |
14303 if test "${HAVE_FREETYPE}" = "yes"; then | 9568 if test "${HAVE_FREETYPE}" = "yes"; then |
14304 | 9569 |
14305 cat >>confdefs.h <<\_ACEOF | 9570 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h |
14306 #define HAVE_FREETYPE 1 | |
14307 _ACEOF | |
14308 | 9571 |
14309 if test "${with_libotf}" != "no"; then | 9572 if test "${with_libotf}" != "no"; then |
14310 | 9573 |
14311 succeeded=no | 9574 succeeded=no |
14312 | 9575 |
14313 # Extract the first word of "pkg-config", so it can be a program name with args. | 9576 # Extract the first word of "pkg-config", so it can be a program name with args. |
14314 set dummy pkg-config; ac_word=$2 | 9577 set dummy pkg-config; ac_word=$2 |
14315 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | 9578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14316 $as_echo_n "checking for $ac_word... " >&6; } | 9579 $as_echo_n "checking for $ac_word... " >&6; } |
14317 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | 9580 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
14318 $as_echo_n "(cached) " >&6 | 9581 $as_echo_n "(cached) " >&6 |
14319 else | 9582 else |
14320 case $PKG_CONFIG in | 9583 case $PKG_CONFIG in |
14321 [\\/]* | ?:[\\/]*) | 9584 [\\/]* | ?:[\\/]*) |
14322 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | 9585 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
14325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 9588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14326 for as_dir in $PATH | 9589 for as_dir in $PATH |
14327 do | 9590 do |
14328 IFS=$as_save_IFS | 9591 IFS=$as_save_IFS |
14329 test -z "$as_dir" && as_dir=. | 9592 test -z "$as_dir" && as_dir=. |
14330 for ac_exec_ext in '' $ac_executable_extensions; do | 9593 for ac_exec_ext in '' $ac_executable_extensions; do |
14331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 9594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
14332 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | 9595 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
14333 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 9596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
14334 break 2 | 9597 break 2 |
14335 fi | 9598 fi |
14336 done | 9599 done |
14337 done | 9600 done |
14338 IFS=$as_save_IFS | 9601 IFS=$as_save_IFS |
14339 | 9602 |
14340 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | 9603 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
14341 ;; | 9604 ;; |
14342 esac | 9605 esac |
14343 fi | 9606 fi |
14344 PKG_CONFIG=$ac_cv_path_PKG_CONFIG | 9607 PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
14345 if test -n "$PKG_CONFIG"; then | 9608 if test -n "$PKG_CONFIG"; then |
14346 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | 9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
14347 $as_echo "$PKG_CONFIG" >&6; } | 9610 $as_echo "$PKG_CONFIG" >&6; } |
14348 else | 9611 else |
14349 { $as_echo "$as_me:$LINENO: result: no" >&5 | 9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14350 $as_echo "no" >&6; } | 9613 $as_echo "no" >&6; } |
14351 fi | 9614 fi |
14352 | 9615 |
14353 | 9616 |
14354 | 9617 |
14355 if test "$PKG_CONFIG" = "no" ; then | 9618 if test "$PKG_CONFIG" = "no" ; then |
14356 HAVE_LIBOTF=no | 9619 HAVE_LIBOTF=no |
14357 else | 9620 else |
14358 PKG_CONFIG_MIN_VERSION=0.9.0 | 9621 PKG_CONFIG_MIN_VERSION=0.9.0 |
14359 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | 9622 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then |
14360 { $as_echo "$as_me:$LINENO: checking for libotf" >&5 | 9623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5 |
14361 $as_echo_n "checking for libotf... " >&6; } | 9624 $as_echo_n "checking for libotf... " >&6; } |
14362 | 9625 |
14363 if $PKG_CONFIG --exists "libotf" 2>&5; then | 9626 if $PKG_CONFIG --exists "libotf" 2>&5; then |
14364 { $as_echo "$as_me:$LINENO: result: yes" >&5 | 9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14365 $as_echo "yes" >&6; } | 9628 $as_echo "yes" >&6; } |
14366 succeeded=yes | 9629 succeeded=yes |
14367 | 9630 |
14368 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5 | 9631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5 |
14369 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; } | 9632 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; } |
14370 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'` | 9633 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'` |
14371 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5 | 9634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5 |
14372 $as_echo "$LIBOTF_CFLAGS" >&6; } | 9635 $as_echo "$LIBOTF_CFLAGS" >&6; } |
14373 | 9636 |
14374 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5 | 9637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5 |
14375 $as_echo_n "checking LIBOTF_LIBS... " >&6; } | 9638 $as_echo_n "checking LIBOTF_LIBS... " >&6; } |
14376 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'` | 9639 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'` |
14377 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5 | 9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5 |
14378 $as_echo "$LIBOTF_LIBS" >&6; } | 9641 $as_echo "$LIBOTF_LIBS" >&6; } |
14379 else | 9642 else |
14380 { $as_echo "$as_me:$LINENO: result: no" >&5 | 9643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14381 $as_echo "no" >&6; } | 9644 $as_echo "no" >&6; } |
14382 LIBOTF_CFLAGS="" | 9645 LIBOTF_CFLAGS="" |
14383 LIBOTF_LIBS="" | 9646 LIBOTF_LIBS="" |
14384 ## If we have a custom action on failure, don't print errors, but | 9647 ## If we have a custom action on failure, don't print errors, but |
14385 ## do set a variable so people can do so. | 9648 ## do set a variable so people can do so. |
14401 HAVE_LIBOTF=no | 9664 HAVE_LIBOTF=no |
14402 fi | 9665 fi |
14403 | 9666 |
14404 if test "$HAVE_LIBOTF" = "yes"; then | 9667 if test "$HAVE_LIBOTF" = "yes"; then |
14405 | 9668 |
14406 cat >>confdefs.h <<\_ACEOF | 9669 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h |
14407 #define HAVE_LIBOTF 1 | 9670 |
14408 _ACEOF | 9671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5 |
14409 | |
14410 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5 | |
14411 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; } | 9672 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; } |
14412 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then | 9673 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then : |
14413 $as_echo_n "(cached) " >&6 | 9674 $as_echo_n "(cached) " >&6 |
14414 else | 9675 else |
14415 ac_check_lib_save_LIBS=$LIBS | 9676 ac_check_lib_save_LIBS=$LIBS |
14416 LIBS="-lotf $LIBS" | 9677 LIBS="-lotf $LIBS" |
14417 cat >conftest.$ac_ext <<_ACEOF | 9678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14418 /* confdefs.h. */ | |
14419 _ACEOF | |
14420 cat confdefs.h >>conftest.$ac_ext | |
14421 cat >>conftest.$ac_ext <<_ACEOF | |
14422 /* end confdefs.h. */ | 9679 /* end confdefs.h. */ |
14423 | 9680 |
14424 /* Override any GCC internal prototype to avoid an error. | 9681 /* Override any GCC internal prototype to avoid an error. |
14425 Use char because int might match the return type of a GCC | 9682 Use char because int might match the return type of a GCC |
14426 builtin and then its argument prototype would still apply. */ | 9683 builtin and then its argument prototype would still apply. */ |
14434 return OTF_get_variation_glyphs (); | 9691 return OTF_get_variation_glyphs (); |
14435 ; | 9692 ; |
14436 return 0; | 9693 return 0; |
14437 } | 9694 } |
14438 _ACEOF | 9695 _ACEOF |
14439 rm -f conftest.$ac_objext conftest$ac_exeext | 9696 if ac_fn_c_try_link "$LINENO"; then : |
14440 if { (ac_try="$ac_link" | |
14441 case "(($ac_try" in | |
14442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14443 *) ac_try_echo=$ac_try;; | |
14444 esac | |
14445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14446 $as_echo "$ac_try_echo") >&5 | |
14447 (eval "$ac_link") 2>conftest.er1 | |
14448 ac_status=$? | |
14449 grep -v '^ *+' conftest.er1 >conftest.err | |
14450 rm -f conftest.er1 | |
14451 cat conftest.err >&5 | |
14452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14453 (exit $ac_status); } && { | |
14454 test -z "$ac_c_werror_flag" || | |
14455 test ! -s conftest.err | |
14456 } && test -s conftest$ac_exeext && { | |
14457 test "$cross_compiling" = yes || | |
14458 $as_test_x conftest$ac_exeext | |
14459 }; then | |
14460 ac_cv_lib_otf_OTF_get_variation_glyphs=yes | 9697 ac_cv_lib_otf_OTF_get_variation_glyphs=yes |
14461 else | 9698 else |
14462 $as_echo "$as_me: failed program was:" >&5 | 9699 ac_cv_lib_otf_OTF_get_variation_glyphs=no |
14463 sed 's/^/| /' conftest.$ac_ext >&5 | 9700 fi |
14464 | 9701 rm -f core conftest.err conftest.$ac_objext \ |
14465 ac_cv_lib_otf_OTF_get_variation_glyphs=no | 9702 conftest$ac_exeext conftest.$ac_ext |
14466 fi | |
14467 | |
14468 rm -rf conftest.dSYM | |
14469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
14470 conftest$ac_exeext conftest.$ac_ext | |
14471 LIBS=$ac_check_lib_save_LIBS | 9703 LIBS=$ac_check_lib_save_LIBS |
14472 fi | 9704 fi |
14473 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5 | 9705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5 |
14474 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; } | 9706 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; } |
14475 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then | 9707 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then : |
14476 HAVE_OTF_GET_VARIATION_GLYPHS=yes | 9708 HAVE_OTF_GET_VARIATION_GLYPHS=yes |
14477 else | 9709 else |
14478 HAVE_OTF_GET_VARIATION_GLYPHS=no | 9710 HAVE_OTF_GET_VARIATION_GLYPHS=no |
14479 fi | 9711 fi |
14480 | 9712 |
14481 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then | 9713 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then |
14482 | 9714 |
14483 cat >>confdefs.h <<\_ACEOF | 9715 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h |
14484 #define HAVE_OTF_GET_VARIATION_GLYPHS 1 | |
14485 _ACEOF | |
14486 | 9716 |
14487 fi | 9717 fi |
14488 fi | 9718 fi |
14489 fi | 9719 fi |
14490 fi | 9720 fi |
14495 | 9725 |
14496 succeeded=no | 9726 succeeded=no |
14497 | 9727 |
14498 # Extract the first word of "pkg-config", so it can be a program name with args. | 9728 # Extract the first word of "pkg-config", so it can be a program name with args. |
14499 set dummy pkg-config; ac_word=$2 | 9729 set dummy pkg-config; ac_word=$2 |
14500 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | 9730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14501 $as_echo_n "checking for $ac_word... " >&6; } | 9731 $as_echo_n "checking for $ac_word... " >&6; } |
14502 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | 9732 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
14503 $as_echo_n "(cached) " >&6 | 9733 $as_echo_n "(cached) " >&6 |
14504 else | 9734 else |
14505 case $PKG_CONFIG in | 9735 case $PKG_CONFIG in |
14506 [\\/]* | ?:[\\/]*) | 9736 [\\/]* | ?:[\\/]*) |
14507 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | 9737 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
14510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 9740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14511 for as_dir in $PATH | 9741 for as_dir in $PATH |
14512 do | 9742 do |
14513 IFS=$as_save_IFS | 9743 IFS=$as_save_IFS |
14514 test -z "$as_dir" && as_dir=. | 9744 test -z "$as_dir" && as_dir=. |
14515 for ac_exec_ext in '' $ac_executable_extensions; do | 9745 for ac_exec_ext in '' $ac_executable_extensions; do |
14516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 9746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
14517 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | 9747 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
14518 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 9748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
14519 break 2 | 9749 break 2 |
14520 fi | 9750 fi |
14521 done | 9751 done |
14522 done | 9752 done |
14523 IFS=$as_save_IFS | 9753 IFS=$as_save_IFS |
14524 | 9754 |
14525 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | 9755 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
14526 ;; | 9756 ;; |
14527 esac | 9757 esac |
14528 fi | 9758 fi |
14529 PKG_CONFIG=$ac_cv_path_PKG_CONFIG | 9759 PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
14530 if test -n "$PKG_CONFIG"; then | 9760 if test -n "$PKG_CONFIG"; then |
14531 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | 9761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
14532 $as_echo "$PKG_CONFIG" >&6; } | 9762 $as_echo "$PKG_CONFIG" >&6; } |
14533 else | 9763 else |
14534 { $as_echo "$as_me:$LINENO: result: no" >&5 | 9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14535 $as_echo "no" >&6; } | 9765 $as_echo "no" >&6; } |
14536 fi | 9766 fi |
14537 | 9767 |
14538 | 9768 |
14539 | 9769 |
14540 if test "$PKG_CONFIG" = "no" ; then | 9770 if test "$PKG_CONFIG" = "no" ; then |
14541 HAVE_M17N_FLT=no | 9771 HAVE_M17N_FLT=no |
14542 else | 9772 else |
14543 PKG_CONFIG_MIN_VERSION=0.9.0 | 9773 PKG_CONFIG_MIN_VERSION=0.9.0 |
14544 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | 9774 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then |
14545 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5 | 9775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5 |
14546 $as_echo_n "checking for m17n-flt... " >&6; } | 9776 $as_echo_n "checking for m17n-flt... " >&6; } |
14547 | 9777 |
14548 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then | 9778 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then |
14549 { $as_echo "$as_me:$LINENO: result: yes" >&5 | 9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14550 $as_echo "yes" >&6; } | 9780 $as_echo "yes" >&6; } |
14551 succeeded=yes | 9781 succeeded=yes |
14552 | 9782 |
14553 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5 | 9783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5 |
14554 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; } | 9784 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; } |
14555 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'` | 9785 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'` |
14556 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5 | 9786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5 |
14557 $as_echo "$M17N_FLT_CFLAGS" >&6; } | 9787 $as_echo "$M17N_FLT_CFLAGS" >&6; } |
14558 | 9788 |
14559 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5 | 9789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5 |
14560 $as_echo_n "checking M17N_FLT_LIBS... " >&6; } | 9790 $as_echo_n "checking M17N_FLT_LIBS... " >&6; } |
14561 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'` | 9791 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'` |
14562 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5 | 9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5 |
14563 $as_echo "$M17N_FLT_LIBS" >&6; } | 9793 $as_echo "$M17N_FLT_LIBS" >&6; } |
14564 else | 9794 else |
14565 { $as_echo "$as_me:$LINENO: result: no" >&5 | 9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14566 $as_echo "no" >&6; } | 9796 $as_echo "no" >&6; } |
14567 M17N_FLT_CFLAGS="" | 9797 M17N_FLT_CFLAGS="" |
14568 M17N_FLT_LIBS="" | 9798 M17N_FLT_LIBS="" |
14569 ## If we have a custom action on failure, don't print errors, but | 9799 ## If we have a custom action on failure, don't print errors, but |
14570 ## do set a variable so people can do so. | 9800 ## do set a variable so people can do so. |
14586 HAVE_M17N_FLT=no | 9816 HAVE_M17N_FLT=no |
14587 fi | 9817 fi |
14588 | 9818 |
14589 if test "$HAVE_M17N_FLT" = "yes"; then | 9819 if test "$HAVE_M17N_FLT" = "yes"; then |
14590 | 9820 |
14591 cat >>confdefs.h <<\_ACEOF | 9821 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h |
14592 #define HAVE_M17N_FLT 1 | |
14593 _ACEOF | |
14594 | 9822 |
14595 fi | 9823 fi |
14596 fi | 9824 fi |
14597 fi | 9825 fi |
14598 else | 9826 else |
14624 ### Use -lXpm if available, unless `--with-xpm=no'. | 9852 ### Use -lXpm if available, unless `--with-xpm=no'. |
14625 HAVE_XPM=no | 9853 HAVE_XPM=no |
14626 LIBXPM= | 9854 LIBXPM= |
14627 if test "${HAVE_X11}" = "yes"; then | 9855 if test "${HAVE_X11}" = "yes"; then |
14628 if test "${with_xpm}" != "no"; then | 9856 if test "${with_xpm}" != "no"; then |
14629 if test "${ac_cv_header_X11_xpm_h+set}" = set; then | 9857 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default" |
14630 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | 9858 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then : |
14631 $as_echo_n "checking for X11/xpm.h... " >&6; } | 9859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5 |
14632 if test "${ac_cv_header_X11_xpm_h+set}" = set; then | |
14633 $as_echo_n "(cached) " >&6 | |
14634 fi | |
14635 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5 | |
14636 $as_echo "$ac_cv_header_X11_xpm_h" >&6; } | |
14637 else | |
14638 # Is the header compilable? | |
14639 { $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5 | |
14640 $as_echo_n "checking X11/xpm.h usability... " >&6; } | |
14641 cat >conftest.$ac_ext <<_ACEOF | |
14642 /* confdefs.h. */ | |
14643 _ACEOF | |
14644 cat confdefs.h >>conftest.$ac_ext | |
14645 cat >>conftest.$ac_ext <<_ACEOF | |
14646 /* end confdefs.h. */ | |
14647 $ac_includes_default | |
14648 #include <X11/xpm.h> | |
14649 _ACEOF | |
14650 rm -f conftest.$ac_objext | |
14651 if { (ac_try="$ac_compile" | |
14652 case "(($ac_try" in | |
14653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14654 *) ac_try_echo=$ac_try;; | |
14655 esac | |
14656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14657 $as_echo "$ac_try_echo") >&5 | |
14658 (eval "$ac_compile") 2>conftest.er1 | |
14659 ac_status=$? | |
14660 grep -v '^ *+' conftest.er1 >conftest.err | |
14661 rm -f conftest.er1 | |
14662 cat conftest.err >&5 | |
14663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14664 (exit $ac_status); } && { | |
14665 test -z "$ac_c_werror_flag" || | |
14666 test ! -s conftest.err | |
14667 } && test -s conftest.$ac_objext; then | |
14668 ac_header_compiler=yes | |
14669 else | |
14670 $as_echo "$as_me: failed program was:" >&5 | |
14671 sed 's/^/| /' conftest.$ac_ext >&5 | |
14672 | |
14673 ac_header_compiler=no | |
14674 fi | |
14675 | |
14676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14677 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
14678 $as_echo "$ac_header_compiler" >&6; } | |
14679 | |
14680 # Is the header present? | |
14681 { $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5 | |
14682 $as_echo_n "checking X11/xpm.h presence... " >&6; } | |
14683 cat >conftest.$ac_ext <<_ACEOF | |
14684 /* confdefs.h. */ | |
14685 _ACEOF | |
14686 cat confdefs.h >>conftest.$ac_ext | |
14687 cat >>conftest.$ac_ext <<_ACEOF | |
14688 /* end confdefs.h. */ | |
14689 #include <X11/xpm.h> | |
14690 _ACEOF | |
14691 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
14692 case "(($ac_try" in | |
14693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14694 *) ac_try_echo=$ac_try;; | |
14695 esac | |
14696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14697 $as_echo "$ac_try_echo") >&5 | |
14698 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
14699 ac_status=$? | |
14700 grep -v '^ *+' conftest.er1 >conftest.err | |
14701 rm -f conftest.er1 | |
14702 cat conftest.err >&5 | |
14703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14704 (exit $ac_status); } >/dev/null && { | |
14705 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14706 test ! -s conftest.err | |
14707 }; then | |
14708 ac_header_preproc=yes | |
14709 else | |
14710 $as_echo "$as_me: failed program was:" >&5 | |
14711 sed 's/^/| /' conftest.$ac_ext >&5 | |
14712 | |
14713 ac_header_preproc=no | |
14714 fi | |
14715 | |
14716 rm -f conftest.err conftest.$ac_ext | |
14717 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14718 $as_echo "$ac_header_preproc" >&6; } | |
14719 | |
14720 # So? What about this header? | |
14721 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
14722 yes:no: ) | |
14723 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
14724 $as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14725 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5 | |
14726 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;} | |
14727 ac_header_preproc=yes | |
14728 ;; | |
14729 no:yes:* ) | |
14730 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5 | |
14731 $as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;} | |
14732 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5 | |
14733 $as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;} | |
14734 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5 | |
14735 $as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;} | |
14736 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5 | |
14737 $as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
14738 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5 | |
14739 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;} | |
14740 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5 | |
14741 $as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;} | |
14742 | |
14743 ;; | |
14744 esac | |
14745 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
14746 $as_echo_n "checking for X11/xpm.h... " >&6; } | |
14747 if test "${ac_cv_header_X11_xpm_h+set}" = set; then | |
14748 $as_echo_n "(cached) " >&6 | |
14749 else | |
14750 ac_cv_header_X11_xpm_h=$ac_header_preproc | |
14751 fi | |
14752 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5 | |
14753 $as_echo "$ac_cv_header_X11_xpm_h" >&6; } | |
14754 | |
14755 fi | |
14756 if test $ac_cv_header_X11_xpm_h = yes; then | |
14757 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5 | |
14758 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; } | 9860 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; } |
14759 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then | 9861 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then : |
14760 $as_echo_n "(cached) " >&6 | 9862 $as_echo_n "(cached) " >&6 |
14761 else | 9863 else |
14762 ac_check_lib_save_LIBS=$LIBS | 9864 ac_check_lib_save_LIBS=$LIBS |
14763 LIBS="-lXpm -lX11 $LIBS" | 9865 LIBS="-lXpm -lX11 $LIBS" |
14764 cat >conftest.$ac_ext <<_ACEOF | 9866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14765 /* confdefs.h. */ | |
14766 _ACEOF | |
14767 cat confdefs.h >>conftest.$ac_ext | |
14768 cat >>conftest.$ac_ext <<_ACEOF | |
14769 /* end confdefs.h. */ | 9867 /* end confdefs.h. */ |
14770 | 9868 |
14771 /* Override any GCC internal prototype to avoid an error. | 9869 /* Override any GCC internal prototype to avoid an error. |
14772 Use char because int might match the return type of a GCC | 9870 Use char because int might match the return type of a GCC |
14773 builtin and then its argument prototype would still apply. */ | 9871 builtin and then its argument prototype would still apply. */ |
14781 return XpmReadFileToPixmap (); | 9879 return XpmReadFileToPixmap (); |
14782 ; | 9880 ; |
14783 return 0; | 9881 return 0; |
14784 } | 9882 } |
14785 _ACEOF | 9883 _ACEOF |
14786 rm -f conftest.$ac_objext conftest$ac_exeext | 9884 if ac_fn_c_try_link "$LINENO"; then : |
14787 if { (ac_try="$ac_link" | |
14788 case "(($ac_try" in | |
14789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14790 *) ac_try_echo=$ac_try;; | |
14791 esac | |
14792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14793 $as_echo "$ac_try_echo") >&5 | |
14794 (eval "$ac_link") 2>conftest.er1 | |
14795 ac_status=$? | |
14796 grep -v '^ *+' conftest.er1 >conftest.err | |
14797 rm -f conftest.er1 | |
14798 cat conftest.err >&5 | |
14799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14800 (exit $ac_status); } && { | |
14801 test -z "$ac_c_werror_flag" || | |
14802 test ! -s conftest.err | |
14803 } && test -s conftest$ac_exeext && { | |
14804 test "$cross_compiling" = yes || | |
14805 $as_test_x conftest$ac_exeext | |
14806 }; then | |
14807 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes | 9885 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes |
14808 else | 9886 else |
14809 $as_echo "$as_me: failed program was:" >&5 | 9887 ac_cv_lib_Xpm_XpmReadFileToPixmap=no |
14810 sed 's/^/| /' conftest.$ac_ext >&5 | 9888 fi |
14811 | 9889 rm -f core conftest.err conftest.$ac_objext \ |
14812 ac_cv_lib_Xpm_XpmReadFileToPixmap=no | 9890 conftest$ac_exeext conftest.$ac_ext |
14813 fi | |
14814 | |
14815 rm -rf conftest.dSYM | |
14816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
14817 conftest$ac_exeext conftest.$ac_ext | |
14818 LIBS=$ac_check_lib_save_LIBS | 9891 LIBS=$ac_check_lib_save_LIBS |
14819 fi | 9892 fi |
14820 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5 | 9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5 |
14821 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; } | 9894 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; } |
14822 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then | 9895 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then : |
14823 HAVE_XPM=yes | 9896 HAVE_XPM=yes |
14824 fi | 9897 fi |
14825 | 9898 |
14826 fi | 9899 fi |
14827 | 9900 |
14828 | 9901 |
14829 if test "${HAVE_XPM}" = "yes"; then | 9902 if test "${HAVE_XPM}" = "yes"; then |
14830 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5 | 9903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5 |
14831 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; } | 9904 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; } |
14832 cat >conftest.$ac_ext <<_ACEOF | 9905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14833 /* confdefs.h. */ | |
14834 _ACEOF | |
14835 cat confdefs.h >>conftest.$ac_ext | |
14836 cat >>conftest.$ac_ext <<_ACEOF | |
14837 /* end confdefs.h. */ | 9906 /* end confdefs.h. */ |
14838 #include "X11/xpm.h" | 9907 #include "X11/xpm.h" |
14839 #ifndef XpmReturnAllocPixels | 9908 #ifndef XpmReturnAllocPixels |
14840 no_return_alloc_pixels | 9909 no_return_alloc_pixels |
14841 #endif | 9910 #endif |
14842 | 9911 |
14843 _ACEOF | 9912 _ACEOF |
14844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 9913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
14845 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then | 9914 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then : |
14846 HAVE_XPM=no | 9915 HAVE_XPM=no |
14847 else | 9916 else |
14848 HAVE_XPM=yes | 9917 HAVE_XPM=yes |
14849 fi | 9918 fi |
14850 rm -f conftest* | 9919 rm -f conftest* |
14851 | 9920 |
14852 | 9921 |
14853 if test "${HAVE_XPM}" = "yes"; then | 9922 if test "${HAVE_XPM}" = "yes"; then |
14854 { $as_echo "$as_me:$LINENO: result: yes" >&5 | 9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14855 $as_echo "yes" >&6; } | 9924 $as_echo "yes" >&6; } |
14856 else | 9925 else |
14857 { $as_echo "$as_me:$LINENO: result: no" >&5 | 9926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14858 $as_echo "no" >&6; } | 9927 $as_echo "no" >&6; } |
14859 fi | 9928 fi |
14860 fi | 9929 fi |
14861 fi | 9930 fi |
14862 | 9931 |
14863 if test "${HAVE_XPM}" = "yes"; then | 9932 if test "${HAVE_XPM}" = "yes"; then |
14864 | 9933 |
14865 cat >>confdefs.h <<\_ACEOF | 9934 $as_echo "#define HAVE_XPM 1" >>confdefs.h |
14866 #define HAVE_XPM 1 | |
14867 _ACEOF | |
14868 | 9935 |
14869 LIBXPM=-lXpm | 9936 LIBXPM=-lXpm |
14870 fi | 9937 fi |
14871 fi | 9938 fi |
14872 | 9939 |
14874 ### Use -ljpeg if available, unless `--with-jpeg=no'. | 9941 ### Use -ljpeg if available, unless `--with-jpeg=no'. |
14875 HAVE_JPEG=no | 9942 HAVE_JPEG=no |
14876 LIBJPEG= | 9943 LIBJPEG= |
14877 if test "${HAVE_X11}" = "yes"; then | 9944 if test "${HAVE_X11}" = "yes"; then |
14878 if test "${with_jpeg}" != "no"; then | 9945 if test "${with_jpeg}" != "no"; then |
14879 if test "${ac_cv_header_jerror_h+set}" = set; then | 9946 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default" |
14880 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5 | 9947 if test "x$ac_cv_header_jerror_h" = x""yes; then : |
14881 $as_echo_n "checking for jerror.h... " >&6; } | 9948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5 |
14882 if test "${ac_cv_header_jerror_h+set}" = set; then | |
14883 $as_echo_n "(cached) " >&6 | |
14884 fi | |
14885 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5 | |
14886 $as_echo "$ac_cv_header_jerror_h" >&6; } | |
14887 else | |
14888 # Is the header compilable? | |
14889 { $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5 | |
14890 $as_echo_n "checking jerror.h usability... " >&6; } | |
14891 cat >conftest.$ac_ext <<_ACEOF | |
14892 /* confdefs.h. */ | |
14893 _ACEOF | |
14894 cat confdefs.h >>conftest.$ac_ext | |
14895 cat >>conftest.$ac_ext <<_ACEOF | |
14896 /* end confdefs.h. */ | |
14897 $ac_includes_default | |
14898 #include <jerror.h> | |
14899 _ACEOF | |
14900 rm -f conftest.$ac_objext | |
14901 if { (ac_try="$ac_compile" | |
14902 case "(($ac_try" in | |
14903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14904 *) ac_try_echo=$ac_try;; | |
14905 esac | |
14906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14907 $as_echo "$ac_try_echo") >&5 | |
14908 (eval "$ac_compile") 2>conftest.er1 | |
14909 ac_status=$? | |
14910 grep -v '^ *+' conftest.er1 >conftest.err | |
14911 rm -f conftest.er1 | |
14912 cat conftest.err >&5 | |
14913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14914 (exit $ac_status); } && { | |
14915 test -z "$ac_c_werror_flag" || | |
14916 test ! -s conftest.err | |
14917 } && test -s conftest.$ac_objext; then | |
14918 ac_header_compiler=yes | |
14919 else | |
14920 $as_echo "$as_me: failed program was:" >&5 | |
14921 sed 's/^/| /' conftest.$ac_ext >&5 | |
14922 | |
14923 ac_header_compiler=no | |
14924 fi | |
14925 | |
14926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14927 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
14928 $as_echo "$ac_header_compiler" >&6; } | |
14929 | |
14930 # Is the header present? | |
14931 { $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5 | |
14932 $as_echo_n "checking jerror.h presence... " >&6; } | |
14933 cat >conftest.$ac_ext <<_ACEOF | |
14934 /* confdefs.h. */ | |
14935 _ACEOF | |
14936 cat confdefs.h >>conftest.$ac_ext | |
14937 cat >>conftest.$ac_ext <<_ACEOF | |
14938 /* end confdefs.h. */ | |
14939 #include <jerror.h> | |
14940 _ACEOF | |
14941 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
14942 case "(($ac_try" in | |
14943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14944 *) ac_try_echo=$ac_try;; | |
14945 esac | |
14946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14947 $as_echo "$ac_try_echo") >&5 | |
14948 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
14949 ac_status=$? | |
14950 grep -v '^ *+' conftest.er1 >conftest.err | |
14951 rm -f conftest.er1 | |
14952 cat conftest.err >&5 | |
14953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14954 (exit $ac_status); } >/dev/null && { | |
14955 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14956 test ! -s conftest.err | |
14957 }; then | |
14958 ac_header_preproc=yes | |
14959 else | |
14960 $as_echo "$as_me: failed program was:" >&5 | |
14961 sed 's/^/| /' conftest.$ac_ext >&5 | |
14962 | |
14963 ac_header_preproc=no | |
14964 fi | |
14965 | |
14966 rm -f conftest.err conftest.$ac_ext | |
14967 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14968 $as_echo "$ac_header_preproc" >&6; } | |
14969 | |
14970 # So? What about this header? | |
14971 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
14972 yes:no: ) | |
14973 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
14974 $as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14975 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5 | |
14976 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;} | |
14977 ac_header_preproc=yes | |
14978 ;; | |
14979 no:yes:* ) | |
14980 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5 | |
14981 $as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;} | |
14982 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5 | |
14983 $as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;} | |
14984 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5 | |
14985 $as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;} | |
14986 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5 | |
14987 $as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
14988 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5 | |
14989 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;} | |
14990 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5 | |
14991 $as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;} | |
14992 | |
14993 ;; | |
14994 esac | |
14995 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5 | |
14996 $as_echo_n "checking for jerror.h... " >&6; } | |
14997 if test "${ac_cv_header_jerror_h+set}" = set; then | |
14998 $as_echo_n "(cached) " >&6 | |
14999 else | |
15000 ac_cv_header_jerror_h=$ac_header_preproc | |
15001 fi | |
15002 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5 | |
15003 $as_echo "$ac_cv_header_jerror_h" >&6; } | |
15004 | |
15005 fi | |
15006 if test $ac_cv_header_jerror_h = yes; then | |
15007 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5 | |
15008 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; } | 9949 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; } |
15009 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then | 9950 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then : |
15010 $as_echo_n "(cached) " >&6 | 9951 $as_echo_n "(cached) " >&6 |
15011 else | 9952 else |
15012 ac_check_lib_save_LIBS=$LIBS | 9953 ac_check_lib_save_LIBS=$LIBS |
15013 LIBS="-ljpeg $LIBS" | 9954 LIBS="-ljpeg $LIBS" |
15014 cat >conftest.$ac_ext <<_ACEOF | 9955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
15015 /* confdefs.h. */ | |
15016 _ACEOF | |
15017 cat confdefs.h >>conftest.$ac_ext | |
15018 cat >>conftest.$ac_ext <<_ACEOF | |
15019 /* end confdefs.h. */ | 9956 /* end confdefs.h. */ |
15020 | 9957 |
15021 /* Override any GCC internal prototype to avoid an error. | 9958 /* Override any GCC internal prototype to avoid an error. |
15022 Use char because int might match the return type of a GCC | 9959 Use char because int might match the return type of a GCC |
15023 builtin and then its argument prototype would still apply. */ | 9960 builtin and then its argument prototype would still apply. */ |
15031 return jpeg_destroy_compress (); | 9968 return jpeg_destroy_compress (); |
15032 ; | 9969 ; |
15033 return 0; | 9970 return 0; |
15034 } | 9971 } |
15035 _ACEOF | 9972 _ACEOF |
15036 rm -f conftest.$ac_objext conftest$ac_exeext | 9973 if ac_fn_c_try_link "$LINENO"; then : |
15037 if { (ac_try="$ac_link" | |
15038 case "(($ac_try" in | |
15039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15040 *) ac_try_echo=$ac_try;; | |
15041 esac | |
15042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15043 $as_echo "$ac_try_echo") >&5 | |
15044 (eval "$ac_link") 2>conftest.er1 | |
15045 ac_status=$? | |
15046 grep -v '^ *+' conftest.er1 >conftest.err | |
15047 rm -f conftest.er1 | |
15048 cat conftest.err >&5 | |
15049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15050 (exit $ac_status); } && { | |
15051 test -z "$ac_c_werror_flag" || | |
15052 test ! -s conftest.err | |
15053 } && test -s conftest$ac_exeext && { | |
15054 test "$cross_compiling" = yes || | |
15055 $as_test_x conftest$ac_exeext | |
15056 }; then | |
15057 ac_cv_lib_jpeg_jpeg_destroy_compress=yes | 9974 ac_cv_lib_jpeg_jpeg_destroy_compress=yes |
15058 else | 9975 else |
15059 $as_echo "$as_me: failed program was:" >&5 | 9976 ac_cv_lib_jpeg_jpeg_destroy_compress=no |
15060 sed 's/^/| /' conftest.$ac_ext >&5 | 9977 fi |
15061 | 9978 rm -f core conftest.err conftest.$ac_objext \ |
15062 ac_cv_lib_jpeg_jpeg_destroy_compress=no | 9979 conftest$ac_exeext conftest.$ac_ext |
15063 fi | |
15064 | |
15065 rm -rf conftest.dSYM | |
15066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
15067 conftest$ac_exeext conftest.$ac_ext | |
15068 LIBS=$ac_check_lib_save_LIBS | 9980 LIBS=$ac_check_lib_save_LIBS |
15069 fi | 9981 fi |
15070 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5 | 9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5 |
15071 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; } | 9983 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; } |
15072 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then | 9984 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then : |
15073 HAVE_JPEG=yes | 9985 HAVE_JPEG=yes |
15074 fi | 9986 fi |
15075 | 9987 |
15076 fi | 9988 fi |
15077 | 9989 |
15078 | 9990 |
15079 fi | 9991 fi |
15080 | 9992 |
15081 | 9993 if test "${HAVE_JPEG}" = "yes"; then |
15082 if test "${HAVE_JPEG}" = "yes"; then | 9994 $as_echo "#define HAVE_JPEG 1" >>confdefs.h |
15083 cat >>confdefs.h <<\_ACEOF | 9995 |
15084 #define HAVE_JPEG 1 | 9996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
15085 _ACEOF | |
15086 | |
15087 cat >conftest.$ac_ext <<_ACEOF | |
15088 /* confdefs.h. */ | |
15089 _ACEOF | |
15090 cat confdefs.h >>conftest.$ac_ext | |
15091 cat >>conftest.$ac_ext <<_ACEOF | |
15092 /* end confdefs.h. */ | 9997 /* end confdefs.h. */ |
15093 #include <jpeglib.h> | 9998 #include <jpeglib.h> |
15094 version=JPEG_LIB_VERSION | 9999 version=JPEG_LIB_VERSION |
15095 | 10000 |
15096 _ACEOF | 10001 _ACEOF |
15097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 10002 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
15098 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then | 10003 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then : |
15099 cat >>confdefs.h <<\_ACEOF | 10004 $as_echo "#define HAVE_JPEG 1" >>confdefs.h |
15100 #define HAVE_JPEG 1 | 10005 |
15101 _ACEOF | 10006 else |
15102 | 10007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5 |
15103 else | |
15104 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5 | |
15105 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;} | 10008 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;} |
15106 HAVE_JPEG=no | 10009 HAVE_JPEG=no |
15107 fi | 10010 fi |
15108 rm -f conftest* | 10011 rm -f conftest* |
15109 | 10012 |
15119 LIBPNG= | 10022 LIBPNG= |
15120 if test "${HAVE_X11}" = "yes"; then | 10023 if test "${HAVE_X11}" = "yes"; then |
15121 if test "${with_png}" != "no"; then | 10024 if test "${with_png}" != "no"; then |
15122 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h | 10025 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h |
15123 # in /usr/include/libpng. | 10026 # in /usr/include/libpng. |
15124 | 10027 for ac_header in png.h libpng/png.h |
15125 | 10028 do : |
15126 for ac_header in png.h libpng/png.h | 10029 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
15127 do | 10030 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
15128 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 10031 eval as_val=\$$as_ac_Header |
15129 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 10032 if test "x$as_val" = x""yes; then : |
15130 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15131 $as_echo_n "checking for $ac_header... " >&6; } | |
15132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
15133 $as_echo_n "(cached) " >&6 | |
15134 fi | |
15135 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
15136 $as_echo "$as_val"'` | |
15137 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15138 $as_echo "$ac_res" >&6; } | |
15139 else | |
15140 # Is the header compilable? | |
15141 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15142 $as_echo_n "checking $ac_header usability... " >&6; } | |
15143 cat >conftest.$ac_ext <<_ACEOF | |
15144 /* confdefs.h. */ | |
15145 _ACEOF | |
15146 cat confdefs.h >>conftest.$ac_ext | |
15147 cat >>conftest.$ac_ext <<_ACEOF | |
15148 /* end confdefs.h. */ | |
15149 $ac_includes_default | |
15150 #include <$ac_header> | |
15151 _ACEOF | |
15152 rm -f conftest.$ac_objext | |
15153 if { (ac_try="$ac_compile" | |
15154 case "(($ac_try" in | |
15155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15156 *) ac_try_echo=$ac_try;; | |
15157 esac | |
15158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15159 $as_echo "$ac_try_echo") >&5 | |
15160 (eval "$ac_compile") 2>conftest.er1 | |
15161 ac_status=$? | |
15162 grep -v '^ *+' conftest.er1 >conftest.err | |
15163 rm -f conftest.er1 | |
15164 cat conftest.err >&5 | |
15165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15166 (exit $ac_status); } && { | |
15167 test -z "$ac_c_werror_flag" || | |
15168 test ! -s conftest.err | |
15169 } && test -s conftest.$ac_objext; then | |
15170 ac_header_compiler=yes | |
15171 else | |
15172 $as_echo "$as_me: failed program was:" >&5 | |
15173 sed 's/^/| /' conftest.$ac_ext >&5 | |
15174 | |
15175 ac_header_compiler=no | |
15176 fi | |
15177 | |
15178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15179 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15180 $as_echo "$ac_header_compiler" >&6; } | |
15181 | |
15182 # Is the header present? | |
15183 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15184 $as_echo_n "checking $ac_header presence... " >&6; } | |
15185 cat >conftest.$ac_ext <<_ACEOF | |
15186 /* confdefs.h. */ | |
15187 _ACEOF | |
15188 cat confdefs.h >>conftest.$ac_ext | |
15189 cat >>conftest.$ac_ext <<_ACEOF | |
15190 /* end confdefs.h. */ | |
15191 #include <$ac_header> | |
15192 _ACEOF | |
15193 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
15194 case "(($ac_try" in | |
15195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15196 *) ac_try_echo=$ac_try;; | |
15197 esac | |
15198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15199 $as_echo "$ac_try_echo") >&5 | |
15200 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
15201 ac_status=$? | |
15202 grep -v '^ *+' conftest.er1 >conftest.err | |
15203 rm -f conftest.er1 | |
15204 cat conftest.err >&5 | |
15205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15206 (exit $ac_status); } >/dev/null && { | |
15207 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15208 test ! -s conftest.err | |
15209 }; then | |
15210 ac_header_preproc=yes | |
15211 else | |
15212 $as_echo "$as_me: failed program was:" >&5 | |
15213 sed 's/^/| /' conftest.$ac_ext >&5 | |
15214 | |
15215 ac_header_preproc=no | |
15216 fi | |
15217 | |
15218 rm -f conftest.err conftest.$ac_ext | |
15219 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15220 $as_echo "$ac_header_preproc" >&6; } | |
15221 | |
15222 # So? What about this header? | |
15223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
15224 yes:no: ) | |
15225 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15226 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15227 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15228 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15229 ac_header_preproc=yes | |
15230 ;; | |
15231 no:yes:* ) | |
15232 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15233 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15234 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15235 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15236 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15237 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15238 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15239 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15240 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15241 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15242 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15243 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
15244 | |
15245 ;; | |
15246 esac | |
15247 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15248 $as_echo_n "checking for $ac_header... " >&6; } | |
15249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
15250 $as_echo_n "(cached) " >&6 | |
15251 else | |
15252 eval "$as_ac_Header=\$ac_header_preproc" | |
15253 fi | |
15254 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
15255 $as_echo "$as_val"'` | |
15256 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15257 $as_echo "$ac_res" >&6; } | |
15258 | |
15259 fi | |
15260 if test `eval 'as_val=${'$as_ac_Header'} | |
15261 $as_echo "$as_val"'` = yes; then | |
15262 cat >>confdefs.h <<_ACEOF | 10033 cat >>confdefs.h <<_ACEOF |
15263 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 10034 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
15264 _ACEOF | 10035 _ACEOF |
15265 | 10036 |
15266 fi | 10037 fi |
15267 | 10038 |
15268 done | 10039 done |
15269 | 10040 |
15270 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then | 10041 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then |
15271 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5 | 10042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5 |
15272 $as_echo_n "checking for png_get_channels in -lpng... " >&6; } | 10043 $as_echo_n "checking for png_get_channels in -lpng... " >&6; } |
15273 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then | 10044 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then : |
15274 $as_echo_n "(cached) " >&6 | 10045 $as_echo_n "(cached) " >&6 |
15275 else | 10046 else |
15276 ac_check_lib_save_LIBS=$LIBS | 10047 ac_check_lib_save_LIBS=$LIBS |
15277 LIBS="-lpng -lz -lm $LIBS" | 10048 LIBS="-lpng -lz -lm $LIBS" |
15278 cat >conftest.$ac_ext <<_ACEOF | 10049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
15279 /* confdefs.h. */ | |
15280 _ACEOF | |
15281 cat confdefs.h >>conftest.$ac_ext | |
15282 cat >>conftest.$ac_ext <<_ACEOF | |
15283 /* end confdefs.h. */ | 10050 /* end confdefs.h. */ |
15284 | 10051 |
15285 /* Override any GCC internal prototype to avoid an error. | 10052 /* Override any GCC internal prototype to avoid an error. |
15286 Use char because int might match the return type of a GCC | 10053 Use char because int might match the return type of a GCC |
15287 builtin and then its argument prototype would still apply. */ | 10054 builtin and then its argument prototype would still apply. */ |
15295 return png_get_channels (); | 10062 return png_get_channels (); |
15296 ; | 10063 ; |
15297 return 0; | 10064 return 0; |
15298 } | 10065 } |
15299 _ACEOF | 10066 _ACEOF |
15300 rm -f conftest.$ac_objext conftest$ac_exeext | 10067 if ac_fn_c_try_link "$LINENO"; then : |
15301 if { (ac_try="$ac_link" | |
15302 case "(($ac_try" in | |
15303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15304 *) ac_try_echo=$ac_try;; | |
15305 esac | |
15306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15307 $as_echo "$ac_try_echo") >&5 | |
15308 (eval "$ac_link") 2>conftest.er1 | |
15309 ac_status=$? | |
15310 grep -v '^ *+' conftest.er1 >conftest.err | |
15311 rm -f conftest.er1 | |
15312 cat conftest.err >&5 | |
15313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15314 (exit $ac_status); } && { | |
15315 test -z "$ac_c_werror_flag" || | |
15316 test ! -s conftest.err | |
15317 } && test -s conftest$ac_exeext && { | |
15318 test "$cross_compiling" = yes || | |
15319 $as_test_x conftest$ac_exeext | |
15320 }; then | |
15321 ac_cv_lib_png_png_get_channels=yes | 10068 ac_cv_lib_png_png_get_channels=yes |
15322 else | 10069 else |
15323 $as_echo "$as_me: failed program was:" >&5 | 10070 ac_cv_lib_png_png_get_channels=no |
15324 sed 's/^/| /' conftest.$ac_ext >&5 | 10071 fi |
15325 | 10072 rm -f core conftest.err conftest.$ac_objext \ |
15326 ac_cv_lib_png_png_get_channels=no | 10073 conftest$ac_exeext conftest.$ac_ext |
15327 fi | |
15328 | |
15329 rm -rf conftest.dSYM | |
15330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
15331 conftest$ac_exeext conftest.$ac_ext | |
15332 LIBS=$ac_check_lib_save_LIBS | 10074 LIBS=$ac_check_lib_save_LIBS |
15333 fi | 10075 fi |
15334 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5 | 10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5 |
15335 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; } | 10077 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; } |
15336 if test $ac_cv_lib_png_png_get_channels = yes; then | 10078 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then : |
15337 HAVE_PNG=yes | 10079 HAVE_PNG=yes |
15338 fi | 10080 fi |
15339 | 10081 |
15340 fi | 10082 fi |
15341 fi | 10083 fi |
15342 | 10084 |
15343 if test "${HAVE_PNG}" = "yes"; then | 10085 if test "${HAVE_PNG}" = "yes"; then |
15344 | 10086 |
15345 cat >>confdefs.h <<\_ACEOF | 10087 $as_echo "#define HAVE_PNG 1" >>confdefs.h |
15346 #define HAVE_PNG 1 | |
15347 _ACEOF | |
15348 | 10088 |
15349 LIBPNG="-lpng -lz -lm" | 10089 LIBPNG="-lpng -lz -lm" |
15350 fi | 10090 fi |
15351 fi | 10091 fi |
15352 | 10092 |
15354 ### Use -ltiff if available, unless `--with-tiff=no'. | 10094 ### Use -ltiff if available, unless `--with-tiff=no'. |
15355 HAVE_TIFF=no | 10095 HAVE_TIFF=no |
15356 LIBTIFF= | 10096 LIBTIFF= |
15357 if test "${HAVE_X11}" = "yes"; then | 10097 if test "${HAVE_X11}" = "yes"; then |
15358 if test "${with_tiff}" != "no"; then | 10098 if test "${with_tiff}" != "no"; then |
15359 if test "${ac_cv_header_tiffio_h+set}" = set; then | 10099 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default" |
15360 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5 | 10100 if test "x$ac_cv_header_tiffio_h" = x""yes; then : |
15361 $as_echo_n "checking for tiffio.h... " >&6; } | |
15362 if test "${ac_cv_header_tiffio_h+set}" = set; then | |
15363 $as_echo_n "(cached) " >&6 | |
15364 fi | |
15365 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
15366 $as_echo "$ac_cv_header_tiffio_h" >&6; } | |
15367 else | |
15368 # Is the header compilable? | |
15369 { $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
15370 $as_echo_n "checking tiffio.h usability... " >&6; } | |
15371 cat >conftest.$ac_ext <<_ACEOF | |
15372 /* confdefs.h. */ | |
15373 _ACEOF | |
15374 cat confdefs.h >>conftest.$ac_ext | |
15375 cat >>conftest.$ac_ext <<_ACEOF | |
15376 /* end confdefs.h. */ | |
15377 $ac_includes_default | |
15378 #include <tiffio.h> | |
15379 _ACEOF | |
15380 rm -f conftest.$ac_objext | |
15381 if { (ac_try="$ac_compile" | |
15382 case "(($ac_try" in | |
15383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15384 *) ac_try_echo=$ac_try;; | |
15385 esac | |
15386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15387 $as_echo "$ac_try_echo") >&5 | |
15388 (eval "$ac_compile") 2>conftest.er1 | |
15389 ac_status=$? | |
15390 grep -v '^ *+' conftest.er1 >conftest.err | |
15391 rm -f conftest.er1 | |
15392 cat conftest.err >&5 | |
15393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15394 (exit $ac_status); } && { | |
15395 test -z "$ac_c_werror_flag" || | |
15396 test ! -s conftest.err | |
15397 } && test -s conftest.$ac_objext; then | |
15398 ac_header_compiler=yes | |
15399 else | |
15400 $as_echo "$as_me: failed program was:" >&5 | |
15401 sed 's/^/| /' conftest.$ac_ext >&5 | |
15402 | |
15403 ac_header_compiler=no | |
15404 fi | |
15405 | |
15406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15407 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15408 $as_echo "$ac_header_compiler" >&6; } | |
15409 | |
15410 # Is the header present? | |
15411 { $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
15412 $as_echo_n "checking tiffio.h presence... " >&6; } | |
15413 cat >conftest.$ac_ext <<_ACEOF | |
15414 /* confdefs.h. */ | |
15415 _ACEOF | |
15416 cat confdefs.h >>conftest.$ac_ext | |
15417 cat >>conftest.$ac_ext <<_ACEOF | |
15418 /* end confdefs.h. */ | |
15419 #include <tiffio.h> | |
15420 _ACEOF | |
15421 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
15422 case "(($ac_try" in | |
15423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15424 *) ac_try_echo=$ac_try;; | |
15425 esac | |
15426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15427 $as_echo "$ac_try_echo") >&5 | |
15428 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
15429 ac_status=$? | |
15430 grep -v '^ *+' conftest.er1 >conftest.err | |
15431 rm -f conftest.er1 | |
15432 cat conftest.err >&5 | |
15433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15434 (exit $ac_status); } >/dev/null && { | |
15435 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15436 test ! -s conftest.err | |
15437 }; then | |
15438 ac_header_preproc=yes | |
15439 else | |
15440 $as_echo "$as_me: failed program was:" >&5 | |
15441 sed 's/^/| /' conftest.$ac_ext >&5 | |
15442 | |
15443 ac_header_preproc=no | |
15444 fi | |
15445 | |
15446 rm -f conftest.err conftest.$ac_ext | |
15447 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15448 $as_echo "$ac_header_preproc" >&6; } | |
15449 | |
15450 # So? What about this header? | |
15451 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
15452 yes:no: ) | |
15453 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15454 $as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15455 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5 | |
15456 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;} | |
15457 ac_header_preproc=yes | |
15458 ;; | |
15459 no:yes:* ) | |
15460 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 | |
15461 $as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
15462 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 | |
15463 $as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
15464 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5 | |
15465 $as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;} | |
15466 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5 | |
15467 $as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
15468 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 | |
15469 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
15470 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5 | |
15471 $as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;} | |
15472 | |
15473 ;; | |
15474 esac | |
15475 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
15476 $as_echo_n "checking for tiffio.h... " >&6; } | |
15477 if test "${ac_cv_header_tiffio_h+set}" = set; then | |
15478 $as_echo_n "(cached) " >&6 | |
15479 else | |
15480 ac_cv_header_tiffio_h=$ac_header_preproc | |
15481 fi | |
15482 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
15483 $as_echo "$ac_cv_header_tiffio_h" >&6; } | |
15484 | |
15485 fi | |
15486 if test $ac_cv_header_tiffio_h = yes; then | |
15487 tifflibs="-lz -lm" | 10101 tifflibs="-lz -lm" |
15488 # At least one tiff package requires the jpeg library. | 10102 # At least one tiff package requires the jpeg library. |
15489 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi | 10103 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi |
15490 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5 | 10104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5 |
15491 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; } | 10105 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; } |
15492 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then | 10106 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then : |
15493 $as_echo_n "(cached) " >&6 | 10107 $as_echo_n "(cached) " >&6 |
15494 else | 10108 else |
15495 ac_check_lib_save_LIBS=$LIBS | 10109 ac_check_lib_save_LIBS=$LIBS |
15496 LIBS="-ltiff $tifflibs $LIBS" | 10110 LIBS="-ltiff $tifflibs $LIBS" |
15497 cat >conftest.$ac_ext <<_ACEOF | 10111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
15498 /* confdefs.h. */ | |
15499 _ACEOF | |
15500 cat confdefs.h >>conftest.$ac_ext | |
15501 cat >>conftest.$ac_ext <<_ACEOF | |
15502 /* end confdefs.h. */ | 10112 /* end confdefs.h. */ |
15503 | 10113 |
15504 /* Override any GCC internal prototype to avoid an error. | 10114 /* Override any GCC internal prototype to avoid an error. |
15505 Use char because int might match the return type of a GCC | 10115 Use char because int might match the return type of a GCC |
15506 builtin and then its argument prototype would still apply. */ | 10116 builtin and then its argument prototype would still apply. */ |
15514 return TIFFGetVersion (); | 10124 return TIFFGetVersion (); |
15515 ; | 10125 ; |
15516 return 0; | 10126 return 0; |
15517 } | 10127 } |
15518 _ACEOF | 10128 _ACEOF |
15519 rm -f conftest.$ac_objext conftest$ac_exeext | 10129 if ac_fn_c_try_link "$LINENO"; then : |
15520 if { (ac_try="$ac_link" | |
15521 case "(($ac_try" in | |
15522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15523 *) ac_try_echo=$ac_try;; | |
15524 esac | |
15525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15526 $as_echo "$ac_try_echo") >&5 | |
15527 (eval "$ac_link") 2>conftest.er1 | |
15528 ac_status=$? | |
15529 grep -v '^ *+' conftest.er1 >conftest.err | |
15530 rm -f conftest.er1 | |
15531 cat conftest.err >&5 | |
15532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15533 (exit $ac_status); } && { | |
15534 test -z "$ac_c_werror_flag" || | |
15535 test ! -s conftest.err | |
15536 } && test -s conftest$ac_exeext && { | |
15537 test "$cross_compiling" = yes || | |
15538 $as_test_x conftest$ac_exeext | |
15539 }; then | |
15540 ac_cv_lib_tiff_TIFFGetVersion=yes | 10130 ac_cv_lib_tiff_TIFFGetVersion=yes |
15541 else | 10131 else |
15542 $as_echo "$as_me: failed program was:" >&5 | 10132 ac_cv_lib_tiff_TIFFGetVersion=no |
15543 sed 's/^/| /' conftest.$ac_ext >&5 | 10133 fi |
15544 | 10134 rm -f core conftest.err conftest.$ac_objext \ |
15545 ac_cv_lib_tiff_TIFFGetVersion=no | 10135 conftest$ac_exeext conftest.$ac_ext |
15546 fi | |
15547 | |
15548 rm -rf conftest.dSYM | |
15549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
15550 conftest$ac_exeext conftest.$ac_ext | |
15551 LIBS=$ac_check_lib_save_LIBS | 10136 LIBS=$ac_check_lib_save_LIBS |
15552 fi | 10137 fi |
15553 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5 | 10138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5 |
15554 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; } | 10139 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; } |
15555 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then | 10140 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then : |
15556 HAVE_TIFF=yes | 10141 HAVE_TIFF=yes |
15557 fi | 10142 fi |
15558 | 10143 |
15559 fi | 10144 fi |
15560 | 10145 |
15561 | 10146 |
15562 fi | 10147 fi |
15563 | 10148 |
15564 if test "${HAVE_TIFF}" = "yes"; then | 10149 if test "${HAVE_TIFF}" = "yes"; then |
15565 | 10150 |
15566 cat >>confdefs.h <<\_ACEOF | 10151 $as_echo "#define HAVE_TIFF 1" >>confdefs.h |
15567 #define HAVE_TIFF 1 | |
15568 _ACEOF | |
15569 | 10152 |
15570 LIBTIFF=-ltiff | 10153 LIBTIFF=-ltiff |
15571 fi | 10154 fi |
15572 fi | 10155 fi |
15573 | 10156 |
15574 | 10157 |
15575 ### Use -lgif or -lungif if available, unless `--with-gif=no'. | 10158 ### Use -lgif or -lungif if available, unless `--with-gif=no'. |
15576 HAVE_GIF=no | 10159 HAVE_GIF=no |
15577 LIBGIF= | 10160 LIBGIF= |
15578 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then | 10161 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then |
15579 if test "${ac_cv_header_gif_lib_h+set}" = set; then | 10162 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default" |
15580 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5 | 10163 if test "x$ac_cv_header_gif_lib_h" = x""yes; then : |
15581 $as_echo_n "checking for gif_lib.h... " >&6; } | |
15582 if test "${ac_cv_header_gif_lib_h+set}" = set; then | |
15583 $as_echo_n "(cached) " >&6 | |
15584 fi | |
15585 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5 | |
15586 $as_echo "$ac_cv_header_gif_lib_h" >&6; } | |
15587 else | |
15588 # Is the header compilable? | |
15589 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5 | |
15590 $as_echo_n "checking gif_lib.h usability... " >&6; } | |
15591 cat >conftest.$ac_ext <<_ACEOF | |
15592 /* confdefs.h. */ | |
15593 _ACEOF | |
15594 cat confdefs.h >>conftest.$ac_ext | |
15595 cat >>conftest.$ac_ext <<_ACEOF | |
15596 /* end confdefs.h. */ | |
15597 $ac_includes_default | |
15598 #include <gif_lib.h> | |
15599 _ACEOF | |
15600 rm -f conftest.$ac_objext | |
15601 if { (ac_try="$ac_compile" | |
15602 case "(($ac_try" in | |
15603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15604 *) ac_try_echo=$ac_try;; | |
15605 esac | |
15606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15607 $as_echo "$ac_try_echo") >&5 | |
15608 (eval "$ac_compile") 2>conftest.er1 | |
15609 ac_status=$? | |
15610 grep -v '^ *+' conftest.er1 >conftest.err | |
15611 rm -f conftest.er1 | |
15612 cat conftest.err >&5 | |
15613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15614 (exit $ac_status); } && { | |
15615 test -z "$ac_c_werror_flag" || | |
15616 test ! -s conftest.err | |
15617 } && test -s conftest.$ac_objext; then | |
15618 ac_header_compiler=yes | |
15619 else | |
15620 $as_echo "$as_me: failed program was:" >&5 | |
15621 sed 's/^/| /' conftest.$ac_ext >&5 | |
15622 | |
15623 ac_header_compiler=no | |
15624 fi | |
15625 | |
15626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15627 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15628 $as_echo "$ac_header_compiler" >&6; } | |
15629 | |
15630 # Is the header present? | |
15631 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5 | |
15632 $as_echo_n "checking gif_lib.h presence... " >&6; } | |
15633 cat >conftest.$ac_ext <<_ACEOF | |
15634 /* confdefs.h. */ | |
15635 _ACEOF | |
15636 cat confdefs.h >>conftest.$ac_ext | |
15637 cat >>conftest.$ac_ext <<_ACEOF | |
15638 /* end confdefs.h. */ | |
15639 #include <gif_lib.h> | |
15640 _ACEOF | |
15641 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
15642 case "(($ac_try" in | |
15643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15644 *) ac_try_echo=$ac_try;; | |
15645 esac | |
15646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15647 $as_echo "$ac_try_echo") >&5 | |
15648 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
15649 ac_status=$? | |
15650 grep -v '^ *+' conftest.er1 >conftest.err | |
15651 rm -f conftest.er1 | |
15652 cat conftest.err >&5 | |
15653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15654 (exit $ac_status); } >/dev/null && { | |
15655 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15656 test ! -s conftest.err | |
15657 }; then | |
15658 ac_header_preproc=yes | |
15659 else | |
15660 $as_echo "$as_me: failed program was:" >&5 | |
15661 sed 's/^/| /' conftest.$ac_ext >&5 | |
15662 | |
15663 ac_header_preproc=no | |
15664 fi | |
15665 | |
15666 rm -f conftest.err conftest.$ac_ext | |
15667 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15668 $as_echo "$ac_header_preproc" >&6; } | |
15669 | |
15670 # So? What about this header? | |
15671 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
15672 yes:no: ) | |
15673 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15674 $as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15675 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5 | |
15676 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;} | |
15677 ac_header_preproc=yes | |
15678 ;; | |
15679 no:yes:* ) | |
15680 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5 | |
15681 $as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;} | |
15682 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5 | |
15683 $as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;} | |
15684 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5 | |
15685 $as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;} | |
15686 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
15687 $as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
15688 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5 | |
15689 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;} | |
15690 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5 | |
15691 $as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;} | |
15692 | |
15693 ;; | |
15694 esac | |
15695 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5 | |
15696 $as_echo_n "checking for gif_lib.h... " >&6; } | |
15697 if test "${ac_cv_header_gif_lib_h+set}" = set; then | |
15698 $as_echo_n "(cached) " >&6 | |
15699 else | |
15700 ac_cv_header_gif_lib_h=$ac_header_preproc | |
15701 fi | |
15702 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5 | |
15703 $as_echo "$ac_cv_header_gif_lib_h" >&6; } | |
15704 | |
15705 fi | |
15706 if test $ac_cv_header_gif_lib_h = yes; then | |
15707 # EGifPutExtensionLast only exists from version libungif-4.1.0b1. | 10164 # EGifPutExtensionLast only exists from version libungif-4.1.0b1. |
15708 # Earlier versions can crash Emacs. | 10165 # Earlier versions can crash Emacs. |
15709 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5 | 10166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5 |
15710 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; } | 10167 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; } |
15711 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then | 10168 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then : |
15712 $as_echo_n "(cached) " >&6 | 10169 $as_echo_n "(cached) " >&6 |
15713 else | 10170 else |
15714 ac_check_lib_save_LIBS=$LIBS | 10171 ac_check_lib_save_LIBS=$LIBS |
15715 LIBS="-lgif $LIBS" | 10172 LIBS="-lgif $LIBS" |
15716 cat >conftest.$ac_ext <<_ACEOF | 10173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
15717 /* confdefs.h. */ | |
15718 _ACEOF | |
15719 cat confdefs.h >>conftest.$ac_ext | |
15720 cat >>conftest.$ac_ext <<_ACEOF | |
15721 /* end confdefs.h. */ | 10174 /* end confdefs.h. */ |
15722 | 10175 |
15723 /* Override any GCC internal prototype to avoid an error. | 10176 /* Override any GCC internal prototype to avoid an error. |
15724 Use char because int might match the return type of a GCC | 10177 Use char because int might match the return type of a GCC |
15725 builtin and then its argument prototype would still apply. */ | 10178 builtin and then its argument prototype would still apply. */ |
15733 return EGifPutExtensionLast (); | 10186 return EGifPutExtensionLast (); |
15734 ; | 10187 ; |
15735 return 0; | 10188 return 0; |
15736 } | 10189 } |
15737 _ACEOF | 10190 _ACEOF |
15738 rm -f conftest.$ac_objext conftest$ac_exeext | 10191 if ac_fn_c_try_link "$LINENO"; then : |
15739 if { (ac_try="$ac_link" | |
15740 case "(($ac_try" in | |
15741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15742 *) ac_try_echo=$ac_try;; | |
15743 esac | |
15744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15745 $as_echo "$ac_try_echo") >&5 | |
15746 (eval "$ac_link") 2>conftest.er1 | |
15747 ac_status=$? | |
15748 grep -v '^ *+' conftest.er1 >conftest.err | |
15749 rm -f conftest.er1 | |
15750 cat conftest.err >&5 | |
15751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15752 (exit $ac_status); } && { | |
15753 test -z "$ac_c_werror_flag" || | |
15754 test ! -s conftest.err | |
15755 } && test -s conftest$ac_exeext && { | |
15756 test "$cross_compiling" = yes || | |
15757 $as_test_x conftest$ac_exeext | |
15758 }; then | |
15759 ac_cv_lib_gif_EGifPutExtensionLast=yes | 10192 ac_cv_lib_gif_EGifPutExtensionLast=yes |
15760 else | 10193 else |
15761 $as_echo "$as_me: failed program was:" >&5 | 10194 ac_cv_lib_gif_EGifPutExtensionLast=no |
15762 sed 's/^/| /' conftest.$ac_ext >&5 | 10195 fi |
15763 | 10196 rm -f core conftest.err conftest.$ac_objext \ |
15764 ac_cv_lib_gif_EGifPutExtensionLast=no | 10197 conftest$ac_exeext conftest.$ac_ext |
15765 fi | |
15766 | |
15767 rm -rf conftest.dSYM | |
15768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
15769 conftest$ac_exeext conftest.$ac_ext | |
15770 LIBS=$ac_check_lib_save_LIBS | 10198 LIBS=$ac_check_lib_save_LIBS |
15771 fi | 10199 fi |
15772 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5 | 10200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5 |
15773 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; } | 10201 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; } |
15774 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then | 10202 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then : |
15775 HAVE_GIF=yes | 10203 HAVE_GIF=yes |
15776 else | 10204 else |
15777 HAVE_GIF=maybe | 10205 HAVE_GIF=maybe |
15778 fi | 10206 fi |
15779 | 10207 |
15783 | 10211 |
15784 if test "$HAVE_GIF" = yes; then | 10212 if test "$HAVE_GIF" = yes; then |
15785 LIBGIF=-lgif | 10213 LIBGIF=-lgif |
15786 elif test "$HAVE_GIF" = maybe; then | 10214 elif test "$HAVE_GIF" = maybe; then |
15787 # If gif_lib.h but no libgif, try libungif. | 10215 # If gif_lib.h but no libgif, try libungif. |
15788 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5 | 10216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5 |
15789 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; } | 10217 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; } |
15790 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then | 10218 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then : |
15791 $as_echo_n "(cached) " >&6 | 10219 $as_echo_n "(cached) " >&6 |
15792 else | 10220 else |
15793 ac_check_lib_save_LIBS=$LIBS | 10221 ac_check_lib_save_LIBS=$LIBS |
15794 LIBS="-lungif $LIBS" | 10222 LIBS="-lungif $LIBS" |
15795 cat >conftest.$ac_ext <<_ACEOF | 10223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
15796 /* confdefs.h. */ | |
15797 _ACEOF | |
15798 cat confdefs.h >>conftest.$ac_ext | |
15799 cat >>conftest.$ac_ext <<_ACEOF | |
15800 /* end confdefs.h. */ | 10224 /* end confdefs.h. */ |
15801 | 10225 |
15802 /* Override any GCC internal prototype to avoid an error. | 10226 /* Override any GCC internal prototype to avoid an error. |
15803 Use char because int might match the return type of a GCC | 10227 Use char because int might match the return type of a GCC |
15804 builtin and then its argument prototype would still apply. */ | 10228 builtin and then its argument prototype would still apply. */ |
15812 return EGifPutExtensionLast (); | 10236 return EGifPutExtensionLast (); |
15813 ; | 10237 ; |
15814 return 0; | 10238 return 0; |
15815 } | 10239 } |
15816 _ACEOF | 10240 _ACEOF |
15817 rm -f conftest.$ac_objext conftest$ac_exeext | 10241 if ac_fn_c_try_link "$LINENO"; then : |
15818 if { (ac_try="$ac_link" | |
15819 case "(($ac_try" in | |
15820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15821 *) ac_try_echo=$ac_try;; | |
15822 esac | |
15823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15824 $as_echo "$ac_try_echo") >&5 | |
15825 (eval "$ac_link") 2>conftest.er1 | |
15826 ac_status=$? | |
15827 grep -v '^ *+' conftest.er1 >conftest.err | |
15828 rm -f conftest.er1 | |
15829 cat conftest.err >&5 | |
15830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15831 (exit $ac_status); } && { | |
15832 test -z "$ac_c_werror_flag" || | |
15833 test ! -s conftest.err | |
15834 } && test -s conftest$ac_exeext && { | |
15835 test "$cross_compiling" = yes || | |
15836 $as_test_x conftest$ac_exeext | |
15837 }; then | |
15838 ac_cv_lib_ungif_EGifPutExtensionLast=yes | 10242 ac_cv_lib_ungif_EGifPutExtensionLast=yes |
15839 else | 10243 else |
15840 $as_echo "$as_me: failed program was:" >&5 | 10244 ac_cv_lib_ungif_EGifPutExtensionLast=no |
15841 sed 's/^/| /' conftest.$ac_ext >&5 | 10245 fi |
15842 | 10246 rm -f core conftest.err conftest.$ac_objext \ |
15843 ac_cv_lib_ungif_EGifPutExtensionLast=no | 10247 conftest$ac_exeext conftest.$ac_ext |
15844 fi | |
15845 | |
15846 rm -rf conftest.dSYM | |
15847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
15848 conftest$ac_exeext conftest.$ac_ext | |
15849 LIBS=$ac_check_lib_save_LIBS | 10248 LIBS=$ac_check_lib_save_LIBS |
15850 fi | 10249 fi |
15851 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5 | 10250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5 |
15852 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; } | 10251 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; } |
15853 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then | 10252 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then : |
15854 HAVE_GIF=yes | 10253 HAVE_GIF=yes |
15855 else | 10254 else |
15856 HAVE_GIF=no | 10255 HAVE_GIF=no |
15857 fi | 10256 fi |
15858 | 10257 |
15859 test "$HAVE_GIF" = yes && LIBGIF=-lungif | 10258 test "$HAVE_GIF" = yes && LIBGIF=-lungif |
15860 fi | 10259 fi |
15861 | 10260 |
15862 if test "${HAVE_GIF}" = "yes"; then | 10261 if test "${HAVE_GIF}" = "yes"; then |
15863 | 10262 |
15864 cat >>confdefs.h <<\_ACEOF | 10263 $as_echo "#define HAVE_GIF 1" >>confdefs.h |
15865 #define HAVE_GIF 1 | |
15866 _ACEOF | |
15867 | 10264 |
15868 fi | 10265 fi |
15869 fi | 10266 fi |
15870 | 10267 |
15871 | 10268 |
15882 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no" | 10279 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no" |
15883 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" && | 10280 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" && |
15884 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no" | 10281 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no" |
15885 | 10282 |
15886 if test "X${MISSING}" != X; then | 10283 if test "X${MISSING}" != X; then |
15887 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found: | 10284 as_fn_error "The following required libraries were not found: |
15888 $MISSING | 10285 $MISSING |
15889 Maybe some development libraries/packages are missing? | 10286 Maybe some development libraries/packages are missing? |
15890 If you don't want to link with them give | 10287 If you don't want to link with them give |
15891 $WITH_NO | 10288 $WITH_NO |
15892 as options to configure" >&5 | 10289 as options to configure" "$LINENO" 5 |
15893 $as_echo "$as_me: error: The following required libraries were not found: | |
15894 $MISSING | |
15895 Maybe some development libraries/packages are missing? | |
15896 If you don't want to link with them give | |
15897 $WITH_NO | |
15898 as options to configure" >&2;} | |
15899 { (exit 1); exit 1; }; } | |
15900 fi | 10290 fi |
15901 fi | 10291 fi |
15902 | 10292 |
15903 ### Use -lgpm if available, unless `--with-gpm=no'. | 10293 ### Use -lgpm if available, unless `--with-gpm=no'. |
15904 HAVE_GPM=no | 10294 HAVE_GPM=no |
15905 LIBGPM= | 10295 LIBGPM= |
15906 GPM_MOUSE_SUPPORT= | 10296 GPM_MOUSE_SUPPORT= |
15907 if test "${with_gpm}" != "no"; then | 10297 if test "${with_gpm}" != "no"; then |
15908 if test "${ac_cv_header_gpm_h+set}" = set; then | 10298 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default" |
15909 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5 | 10299 if test "x$ac_cv_header_gpm_h" = x""yes; then : |
15910 $as_echo_n "checking for gpm.h... " >&6; } | 10300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5 |
15911 if test "${ac_cv_header_gpm_h+set}" = set; then | |
15912 $as_echo_n "(cached) " >&6 | |
15913 fi | |
15914 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5 | |
15915 $as_echo "$ac_cv_header_gpm_h" >&6; } | |
15916 else | |
15917 # Is the header compilable? | |
15918 { $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5 | |
15919 $as_echo_n "checking gpm.h usability... " >&6; } | |
15920 cat >conftest.$ac_ext <<_ACEOF | |
15921 /* confdefs.h. */ | |
15922 _ACEOF | |
15923 cat confdefs.h >>conftest.$ac_ext | |
15924 cat >>conftest.$ac_ext <<_ACEOF | |
15925 /* end confdefs.h. */ | |
15926 $ac_includes_default | |
15927 #include <gpm.h> | |
15928 _ACEOF | |
15929 rm -f conftest.$ac_objext | |
15930 if { (ac_try="$ac_compile" | |
15931 case "(($ac_try" in | |
15932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15933 *) ac_try_echo=$ac_try;; | |
15934 esac | |
15935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15936 $as_echo "$ac_try_echo") >&5 | |
15937 (eval "$ac_compile") 2>conftest.er1 | |
15938 ac_status=$? | |
15939 grep -v '^ *+' conftest.er1 >conftest.err | |
15940 rm -f conftest.er1 | |
15941 cat conftest.err >&5 | |
15942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15943 (exit $ac_status); } && { | |
15944 test -z "$ac_c_werror_flag" || | |
15945 test ! -s conftest.err | |
15946 } && test -s conftest.$ac_objext; then | |
15947 ac_header_compiler=yes | |
15948 else | |
15949 $as_echo "$as_me: failed program was:" >&5 | |
15950 sed 's/^/| /' conftest.$ac_ext >&5 | |
15951 | |
15952 ac_header_compiler=no | |
15953 fi | |
15954 | |
15955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15956 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15957 $as_echo "$ac_header_compiler" >&6; } | |
15958 | |
15959 # Is the header present? | |
15960 { $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5 | |
15961 $as_echo_n "checking gpm.h presence... " >&6; } | |
15962 cat >conftest.$ac_ext <<_ACEOF | |
15963 /* confdefs.h. */ | |
15964 _ACEOF | |
15965 cat confdefs.h >>conftest.$ac_ext | |
15966 cat >>conftest.$ac_ext <<_ACEOF | |
15967 /* end confdefs.h. */ | |
15968 #include <gpm.h> | |
15969 _ACEOF | |
15970 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
15971 case "(($ac_try" in | |
15972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15973 *) ac_try_echo=$ac_try;; | |
15974 esac | |
15975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15976 $as_echo "$ac_try_echo") >&5 | |
15977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
15978 ac_status=$? | |
15979 grep -v '^ *+' conftest.er1 >conftest.err | |
15980 rm -f conftest.er1 | |
15981 cat conftest.err >&5 | |
15982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15983 (exit $ac_status); } >/dev/null && { | |
15984 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15985 test ! -s conftest.err | |
15986 }; then | |
15987 ac_header_preproc=yes | |
15988 else | |
15989 $as_echo "$as_me: failed program was:" >&5 | |
15990 sed 's/^/| /' conftest.$ac_ext >&5 | |
15991 | |
15992 ac_header_preproc=no | |
15993 fi | |
15994 | |
15995 rm -f conftest.err conftest.$ac_ext | |
15996 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15997 $as_echo "$ac_header_preproc" >&6; } | |
15998 | |
15999 # So? What about this header? | |
16000 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
16001 yes:no: ) | |
16002 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
16003 $as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16004 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5 | |
16005 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;} | |
16006 ac_header_preproc=yes | |
16007 ;; | |
16008 no:yes:* ) | |
16009 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5 | |
16010 $as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;} | |
16011 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5 | |
16012 $as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;} | |
16013 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5 | |
16014 $as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;} | |
16015 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5 | |
16016 $as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
16017 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5 | |
16018 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;} | |
16019 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5 | |
16020 $as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;} | |
16021 | |
16022 ;; | |
16023 esac | |
16024 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5 | |
16025 $as_echo_n "checking for gpm.h... " >&6; } | |
16026 if test "${ac_cv_header_gpm_h+set}" = set; then | |
16027 $as_echo_n "(cached) " >&6 | |
16028 else | |
16029 ac_cv_header_gpm_h=$ac_header_preproc | |
16030 fi | |
16031 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5 | |
16032 $as_echo "$ac_cv_header_gpm_h" >&6; } | |
16033 | |
16034 fi | |
16035 if test $ac_cv_header_gpm_h = yes; then | |
16036 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5 | |
16037 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; } | 10301 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; } |
16038 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then | 10302 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then : |
16039 $as_echo_n "(cached) " >&6 | 10303 $as_echo_n "(cached) " >&6 |
16040 else | 10304 else |
16041 ac_check_lib_save_LIBS=$LIBS | 10305 ac_check_lib_save_LIBS=$LIBS |
16042 LIBS="-lgpm $LIBS" | 10306 LIBS="-lgpm $LIBS" |
16043 cat >conftest.$ac_ext <<_ACEOF | 10307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
16044 /* confdefs.h. */ | |
16045 _ACEOF | |
16046 cat confdefs.h >>conftest.$ac_ext | |
16047 cat >>conftest.$ac_ext <<_ACEOF | |
16048 /* end confdefs.h. */ | 10308 /* end confdefs.h. */ |
16049 | 10309 |
16050 /* Override any GCC internal prototype to avoid an error. | 10310 /* Override any GCC internal prototype to avoid an error. |
16051 Use char because int might match the return type of a GCC | 10311 Use char because int might match the return type of a GCC |
16052 builtin and then its argument prototype would still apply. */ | 10312 builtin and then its argument prototype would still apply. */ |
16060 return Gpm_Open (); | 10320 return Gpm_Open (); |
16061 ; | 10321 ; |
16062 return 0; | 10322 return 0; |
16063 } | 10323 } |
16064 _ACEOF | 10324 _ACEOF |
16065 rm -f conftest.$ac_objext conftest$ac_exeext | 10325 if ac_fn_c_try_link "$LINENO"; then : |
16066 if { (ac_try="$ac_link" | |
16067 case "(($ac_try" in | |
16068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16069 *) ac_try_echo=$ac_try;; | |
16070 esac | |
16071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16072 $as_echo "$ac_try_echo") >&5 | |
16073 (eval "$ac_link") 2>conftest.er1 | |
16074 ac_status=$? | |
16075 grep -v '^ *+' conftest.er1 >conftest.err | |
16076 rm -f conftest.er1 | |
16077 cat conftest.err >&5 | |
16078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16079 (exit $ac_status); } && { | |
16080 test -z "$ac_c_werror_flag" || | |
16081 test ! -s conftest.err | |
16082 } && test -s conftest$ac_exeext && { | |
16083 test "$cross_compiling" = yes || | |
16084 $as_test_x conftest$ac_exeext | |
16085 }; then | |
16086 ac_cv_lib_gpm_Gpm_Open=yes | 10326 ac_cv_lib_gpm_Gpm_Open=yes |
16087 else | 10327 else |
16088 $as_echo "$as_me: failed program was:" >&5 | 10328 ac_cv_lib_gpm_Gpm_Open=no |
16089 sed 's/^/| /' conftest.$ac_ext >&5 | 10329 fi |
16090 | 10330 rm -f core conftest.err conftest.$ac_objext \ |
16091 ac_cv_lib_gpm_Gpm_Open=no | 10331 conftest$ac_exeext conftest.$ac_ext |
16092 fi | |
16093 | |
16094 rm -rf conftest.dSYM | |
16095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
16096 conftest$ac_exeext conftest.$ac_ext | |
16097 LIBS=$ac_check_lib_save_LIBS | 10332 LIBS=$ac_check_lib_save_LIBS |
16098 fi | 10333 fi |
16099 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5 | 10334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5 |
16100 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; } | 10335 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; } |
16101 if test $ac_cv_lib_gpm_Gpm_Open = yes; then | 10336 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then : |
16102 HAVE_GPM=yes | 10337 HAVE_GPM=yes |
16103 fi | 10338 fi |
16104 | 10339 |
16105 fi | 10340 fi |
16106 | 10341 |
16107 | 10342 |
16108 | 10343 |
16109 if test "${HAVE_GPM}" = "yes"; then | 10344 if test "${HAVE_GPM}" = "yes"; then |
16110 | 10345 |
16111 cat >>confdefs.h <<\_ACEOF | 10346 $as_echo "#define HAVE_GPM 1" >>confdefs.h |
16112 #define HAVE_GPM 1 | |
16113 _ACEOF | |
16114 | 10347 |
16115 LIBGPM=-lgpm | 10348 LIBGPM=-lgpm |
16116 GPM_MOUSE_SUPPORT="\${lispsource}mouse.elc" | 10349 GPM_MOUSE_SUPPORT="\${lispsource}mouse.elc" |
16117 fi | 10350 fi |
16118 fi | 10351 fi |
16119 | 10352 |
16120 | 10353 |
16121 | 10354 |
16122 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then | 10355 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default" |
16123 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5 | 10356 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then : |
16124 $as_echo_n "checking for malloc/malloc.h... " >&6; } | 10357 |
16125 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then | 10358 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h |
16126 $as_echo_n "(cached) " >&6 | |
16127 fi | |
16128 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5 | |
16129 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; } | |
16130 else | |
16131 # Is the header compilable? | |
16132 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5 | |
16133 $as_echo_n "checking malloc/malloc.h usability... " >&6; } | |
16134 cat >conftest.$ac_ext <<_ACEOF | |
16135 /* confdefs.h. */ | |
16136 _ACEOF | |
16137 cat confdefs.h >>conftest.$ac_ext | |
16138 cat >>conftest.$ac_ext <<_ACEOF | |
16139 /* end confdefs.h. */ | |
16140 $ac_includes_default | |
16141 #include <malloc/malloc.h> | |
16142 _ACEOF | |
16143 rm -f conftest.$ac_objext | |
16144 if { (ac_try="$ac_compile" | |
16145 case "(($ac_try" in | |
16146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16147 *) ac_try_echo=$ac_try;; | |
16148 esac | |
16149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16150 $as_echo "$ac_try_echo") >&5 | |
16151 (eval "$ac_compile") 2>conftest.er1 | |
16152 ac_status=$? | |
16153 grep -v '^ *+' conftest.er1 >conftest.err | |
16154 rm -f conftest.er1 | |
16155 cat conftest.err >&5 | |
16156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16157 (exit $ac_status); } && { | |
16158 test -z "$ac_c_werror_flag" || | |
16159 test ! -s conftest.err | |
16160 } && test -s conftest.$ac_objext; then | |
16161 ac_header_compiler=yes | |
16162 else | |
16163 $as_echo "$as_me: failed program was:" >&5 | |
16164 sed 's/^/| /' conftest.$ac_ext >&5 | |
16165 | |
16166 ac_header_compiler=no | |
16167 fi | |
16168 | |
16169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16170 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
16171 $as_echo "$ac_header_compiler" >&6; } | |
16172 | |
16173 # Is the header present? | |
16174 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5 | |
16175 $as_echo_n "checking malloc/malloc.h presence... " >&6; } | |
16176 cat >conftest.$ac_ext <<_ACEOF | |
16177 /* confdefs.h. */ | |
16178 _ACEOF | |
16179 cat confdefs.h >>conftest.$ac_ext | |
16180 cat >>conftest.$ac_ext <<_ACEOF | |
16181 /* end confdefs.h. */ | |
16182 #include <malloc/malloc.h> | |
16183 _ACEOF | |
16184 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
16185 case "(($ac_try" in | |
16186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16187 *) ac_try_echo=$ac_try;; | |
16188 esac | |
16189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16190 $as_echo "$ac_try_echo") >&5 | |
16191 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
16192 ac_status=$? | |
16193 grep -v '^ *+' conftest.er1 >conftest.err | |
16194 rm -f conftest.er1 | |
16195 cat conftest.err >&5 | |
16196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16197 (exit $ac_status); } >/dev/null && { | |
16198 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
16199 test ! -s conftest.err | |
16200 }; then | |
16201 ac_header_preproc=yes | |
16202 else | |
16203 $as_echo "$as_me: failed program was:" >&5 | |
16204 sed 's/^/| /' conftest.$ac_ext >&5 | |
16205 | |
16206 ac_header_preproc=no | |
16207 fi | |
16208 | |
16209 rm -f conftest.err conftest.$ac_ext | |
16210 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16211 $as_echo "$ac_header_preproc" >&6; } | |
16212 | |
16213 # So? What about this header? | |
16214 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
16215 yes:no: ) | |
16216 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
16217 $as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16218 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5 | |
16219 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;} | |
16220 ac_header_preproc=yes | |
16221 ;; | |
16222 no:yes:* ) | |
16223 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5 | |
16224 $as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;} | |
16225 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5 | |
16226 $as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;} | |
16227 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5 | |
16228 $as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;} | |
16229 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5 | |
16230 $as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
16231 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5 | |
16232 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;} | |
16233 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5 | |
16234 $as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;} | |
16235 | |
16236 ;; | |
16237 esac | |
16238 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5 | |
16239 $as_echo_n "checking for malloc/malloc.h... " >&6; } | |
16240 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then | |
16241 $as_echo_n "(cached) " >&6 | |
16242 else | |
16243 ac_cv_header_malloc_malloc_h=$ac_header_preproc | |
16244 fi | |
16245 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5 | |
16246 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; } | |
16247 | |
16248 fi | |
16249 if test $ac_cv_header_malloc_malloc_h = yes; then | |
16250 | |
16251 cat >>confdefs.h <<\_ACEOF | |
16252 #define HAVE_MALLOC_MALLOC_H 1 | |
16253 _ACEOF | |
16254 | 10359 |
16255 fi | 10360 fi |
16256 | 10361 |
16257 | 10362 |
16258 | 10363 |
16259 C_SWITCH_X_SYSTEM= | 10364 C_SWITCH_X_SYSTEM= |
16260 ### Use NeXTstep API to implement GUI. | 10365 ### Use NeXTstep API to implement GUI. |
16261 if test "${HAVE_NS}" = "yes"; then | 10366 if test "${HAVE_NS}" = "yes"; then |
16262 | 10367 |
16263 cat >>confdefs.h <<\_ACEOF | 10368 $as_echo "#define HAVE_NS 1" >>confdefs.h |
16264 #define HAVE_NS 1 | |
16265 _ACEOF | |
16266 | 10369 |
16267 if test "${NS_IMPL_COCOA}" = "yes"; then | 10370 if test "${NS_IMPL_COCOA}" = "yes"; then |
16268 | 10371 |
16269 cat >>confdefs.h <<\_ACEOF | 10372 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h |
16270 #define NS_IMPL_COCOA 1 | |
16271 _ACEOF | |
16272 | 10373 |
16273 GNU_OBJC_CFLAGS= | 10374 GNU_OBJC_CFLAGS= |
16274 fi | 10375 fi |
16275 if test "${NS_IMPL_GNUSTEP}" = "yes"; then | 10376 if test "${NS_IMPL_GNUSTEP}" = "yes"; then |
16276 | 10377 |
16277 cat >>confdefs.h <<\_ACEOF | 10378 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h |
16278 #define NS_IMPL_GNUSTEP 1 | |
16279 _ACEOF | |
16280 | 10379 |
16281 # See also .m.o rule in Makefile.in */ | 10380 # See also .m.o rule in Makefile.in */ |
16282 # FIXME: are all these flags really needed? Document here why. */ | 10381 # FIXME: are all these flags really needed? Document here why. */ |
16283 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing" | 10382 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing" |
16284 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE" | 10383 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE" |
16285 fi | 10384 fi |
16286 if test "${NS_HAVE_NSINTEGER}" = "yes"; then | 10385 if test "${NS_HAVE_NSINTEGER}" = "yes"; then |
16287 | 10386 |
16288 cat >>confdefs.h <<\_ACEOF | 10387 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h |
16289 #define NS_HAVE_NSINTEGER 1 | |
16290 _ACEOF | |
16291 | 10388 |
16292 fi | 10389 fi |
16293 # We also have mouse menus. | 10390 # We also have mouse menus. |
16294 HAVE_MENUS=yes | 10391 HAVE_MENUS=yes |
16295 OTHER_FILES=ns-app | 10392 OTHER_FILES=ns-app |
16298 | 10395 |
16299 ### Use session management (-lSM -lICE) if available | 10396 ### Use session management (-lSM -lICE) if available |
16300 HAVE_X_SM=no | 10397 HAVE_X_SM=no |
16301 LIBXSM= | 10398 LIBXSM= |
16302 if test "${HAVE_X11}" = "yes"; then | 10399 if test "${HAVE_X11}" = "yes"; then |
16303 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then | 10400 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default" |
16304 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5 | 10401 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then : |
16305 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; } | 10402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5 |
16306 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then | |
16307 $as_echo_n "(cached) " >&6 | |
16308 fi | |
16309 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5 | |
16310 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; } | |
16311 else | |
16312 # Is the header compilable? | |
16313 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5 | |
16314 $as_echo_n "checking X11/SM/SMlib.h usability... " >&6; } | |
16315 cat >conftest.$ac_ext <<_ACEOF | |
16316 /* confdefs.h. */ | |
16317 _ACEOF | |
16318 cat confdefs.h >>conftest.$ac_ext | |
16319 cat >>conftest.$ac_ext <<_ACEOF | |
16320 /* end confdefs.h. */ | |
16321 $ac_includes_default | |
16322 #include <X11/SM/SMlib.h> | |
16323 _ACEOF | |
16324 rm -f conftest.$ac_objext | |
16325 if { (ac_try="$ac_compile" | |
16326 case "(($ac_try" in | |
16327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16328 *) ac_try_echo=$ac_try;; | |
16329 esac | |
16330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16331 $as_echo "$ac_try_echo") >&5 | |
16332 (eval "$ac_compile") 2>conftest.er1 | |
16333 ac_status=$? | |
16334 grep -v '^ *+' conftest.er1 >conftest.err | |
16335 rm -f conftest.er1 | |
16336 cat conftest.err >&5 | |
16337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16338 (exit $ac_status); } && { | |
16339 test -z "$ac_c_werror_flag" || | |
16340 test ! -s conftest.err | |
16341 } && test -s conftest.$ac_objext; then | |
16342 ac_header_compiler=yes | |
16343 else | |
16344 $as_echo "$as_me: failed program was:" >&5 | |
16345 sed 's/^/| /' conftest.$ac_ext >&5 | |
16346 | |
16347 ac_header_compiler=no | |
16348 fi | |
16349 | |
16350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16351 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
16352 $as_echo "$ac_header_compiler" >&6; } | |
16353 | |
16354 # Is the header present? | |
16355 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5 | |
16356 $as_echo_n "checking X11/SM/SMlib.h presence... " >&6; } | |
16357 cat >conftest.$ac_ext <<_ACEOF | |
16358 /* confdefs.h. */ | |
16359 _ACEOF | |
16360 cat confdefs.h >>conftest.$ac_ext | |
16361 cat >>conftest.$ac_ext <<_ACEOF | |
16362 /* end confdefs.h. */ | |
16363 #include <X11/SM/SMlib.h> | |
16364 _ACEOF | |
16365 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
16366 case "(($ac_try" in | |
16367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16368 *) ac_try_echo=$ac_try;; | |
16369 esac | |
16370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16371 $as_echo "$ac_try_echo") >&5 | |
16372 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
16373 ac_status=$? | |
16374 grep -v '^ *+' conftest.er1 >conftest.err | |
16375 rm -f conftest.er1 | |
16376 cat conftest.err >&5 | |
16377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16378 (exit $ac_status); } >/dev/null && { | |
16379 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
16380 test ! -s conftest.err | |
16381 }; then | |
16382 ac_header_preproc=yes | |
16383 else | |
16384 $as_echo "$as_me: failed program was:" >&5 | |
16385 sed 's/^/| /' conftest.$ac_ext >&5 | |
16386 | |
16387 ac_header_preproc=no | |
16388 fi | |
16389 | |
16390 rm -f conftest.err conftest.$ac_ext | |
16391 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16392 $as_echo "$ac_header_preproc" >&6; } | |
16393 | |
16394 # So? What about this header? | |
16395 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
16396 yes:no: ) | |
16397 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
16398 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16399 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5 | |
16400 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;} | |
16401 ac_header_preproc=yes | |
16402 ;; | |
16403 no:yes:* ) | |
16404 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5 | |
16405 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;} | |
16406 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5 | |
16407 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;} | |
16408 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5 | |
16409 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;} | |
16410 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
16411 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
16412 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5 | |
16413 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;} | |
16414 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5 | |
16415 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;} | |
16416 | |
16417 ;; | |
16418 esac | |
16419 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5 | |
16420 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; } | |
16421 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then | |
16422 $as_echo_n "(cached) " >&6 | |
16423 else | |
16424 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc | |
16425 fi | |
16426 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5 | |
16427 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; } | |
16428 | |
16429 fi | |
16430 if test $ac_cv_header_X11_SM_SMlib_h = yes; then | |
16431 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5 | |
16432 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; } | 10403 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; } |
16433 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then | 10404 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then : |
16434 $as_echo_n "(cached) " >&6 | 10405 $as_echo_n "(cached) " >&6 |
16435 else | 10406 else |
16436 ac_check_lib_save_LIBS=$LIBS | 10407 ac_check_lib_save_LIBS=$LIBS |
16437 LIBS="-lSM -lICE $LIBS" | 10408 LIBS="-lSM -lICE $LIBS" |
16438 cat >conftest.$ac_ext <<_ACEOF | 10409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
16439 /* confdefs.h. */ | |
16440 _ACEOF | |
16441 cat confdefs.h >>conftest.$ac_ext | |
16442 cat >>conftest.$ac_ext <<_ACEOF | |
16443 /* end confdefs.h. */ | 10410 /* end confdefs.h. */ |
16444 | 10411 |
16445 /* Override any GCC internal prototype to avoid an error. | 10412 /* Override any GCC internal prototype to avoid an error. |
16446 Use char because int might match the return type of a GCC | 10413 Use char because int might match the return type of a GCC |
16447 builtin and then its argument prototype would still apply. */ | 10414 builtin and then its argument prototype would still apply. */ |
16455 return SmcOpenConnection (); | 10422 return SmcOpenConnection (); |
16456 ; | 10423 ; |
16457 return 0; | 10424 return 0; |
16458 } | 10425 } |
16459 _ACEOF | 10426 _ACEOF |
16460 rm -f conftest.$ac_objext conftest$ac_exeext | 10427 if ac_fn_c_try_link "$LINENO"; then : |
16461 if { (ac_try="$ac_link" | |
16462 case "(($ac_try" in | |
16463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16464 *) ac_try_echo=$ac_try;; | |
16465 esac | |
16466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16467 $as_echo "$ac_try_echo") >&5 | |
16468 (eval "$ac_link") 2>conftest.er1 | |
16469 ac_status=$? | |
16470 grep -v '^ *+' conftest.er1 >conftest.err | |
16471 rm -f conftest.er1 | |
16472 cat conftest.err >&5 | |
16473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16474 (exit $ac_status); } && { | |
16475 test -z "$ac_c_werror_flag" || | |
16476 test ! -s conftest.err | |
16477 } && test -s conftest$ac_exeext && { | |
16478 test "$cross_compiling" = yes || | |
16479 $as_test_x conftest$ac_exeext | |
16480 }; then | |
16481 ac_cv_lib_SM_SmcOpenConnection=yes | 10428 ac_cv_lib_SM_SmcOpenConnection=yes |
16482 else | 10429 else |
16483 $as_echo "$as_me: failed program was:" >&5 | 10430 ac_cv_lib_SM_SmcOpenConnection=no |
16484 sed 's/^/| /' conftest.$ac_ext >&5 | 10431 fi |
16485 | 10432 rm -f core conftest.err conftest.$ac_objext \ |
16486 ac_cv_lib_SM_SmcOpenConnection=no | 10433 conftest$ac_exeext conftest.$ac_ext |
16487 fi | |
16488 | |
16489 rm -rf conftest.dSYM | |
16490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
16491 conftest$ac_exeext conftest.$ac_ext | |
16492 LIBS=$ac_check_lib_save_LIBS | 10434 LIBS=$ac_check_lib_save_LIBS |
16493 fi | 10435 fi |
16494 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5 | 10436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5 |
16495 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; } | 10437 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; } |
16496 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then | 10438 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then : |
16497 HAVE_X_SM=yes | 10439 HAVE_X_SM=yes |
16498 fi | 10440 fi |
16499 | 10441 |
16500 fi | 10442 fi |
16501 | 10443 |
16502 | 10444 |
16503 | 10445 |
16504 if test "${HAVE_X_SM}" = "yes"; then | 10446 if test "${HAVE_X_SM}" = "yes"; then |
16505 | 10447 |
16506 cat >>confdefs.h <<\_ACEOF | 10448 $as_echo "#define HAVE_X_SM 1" >>confdefs.h |
16507 #define HAVE_X_SM 1 | |
16508 _ACEOF | |
16509 | 10449 |
16510 LIBXSM="-lSM -lICE" | 10450 LIBXSM="-lSM -lICE" |
16511 case "$LIBS" in | 10451 case "$LIBS" in |
16512 *-lSM*) ;; | 10452 *-lSM*) ;; |
16513 *) LIBS="$LIBXSM $LIBS" ;; | 10453 *) LIBS="$LIBXSM $LIBS" ;; |
16515 fi | 10455 fi |
16516 fi | 10456 fi |
16517 | 10457 |
16518 | 10458 |
16519 # If netdb.h doesn't declare h_errno, we must declare it by hand. | 10459 # If netdb.h doesn't declare h_errno, we must declare it by hand. |
16520 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5 | 10460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5 |
16521 $as_echo_n "checking whether netdb declares h_errno... " >&6; } | 10461 $as_echo_n "checking whether netdb declares h_errno... " >&6; } |
16522 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then | 10462 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then : |
16523 $as_echo_n "(cached) " >&6 | 10463 $as_echo_n "(cached) " >&6 |
16524 else | 10464 else |
16525 cat >conftest.$ac_ext <<_ACEOF | 10465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
16526 /* confdefs.h. */ | |
16527 _ACEOF | |
16528 cat confdefs.h >>conftest.$ac_ext | |
16529 cat >>conftest.$ac_ext <<_ACEOF | |
16530 /* end confdefs.h. */ | 10466 /* end confdefs.h. */ |
16531 #include <netdb.h> | 10467 #include <netdb.h> |
16532 int | 10468 int |
16533 main () | 10469 main () |
16534 { | 10470 { |
16535 return h_errno; | 10471 return h_errno; |
16536 ; | 10472 ; |
16537 return 0; | 10473 return 0; |
16538 } | 10474 } |
16539 _ACEOF | 10475 _ACEOF |
16540 rm -f conftest.$ac_objext conftest$ac_exeext | 10476 if ac_fn_c_try_link "$LINENO"; then : |
16541 if { (ac_try="$ac_link" | |
16542 case "(($ac_try" in | |
16543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16544 *) ac_try_echo=$ac_try;; | |
16545 esac | |
16546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16547 $as_echo "$ac_try_echo") >&5 | |
16548 (eval "$ac_link") 2>conftest.er1 | |
16549 ac_status=$? | |
16550 grep -v '^ *+' conftest.er1 >conftest.err | |
16551 rm -f conftest.er1 | |
16552 cat conftest.err >&5 | |
16553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16554 (exit $ac_status); } && { | |
16555 test -z "$ac_c_werror_flag" || | |
16556 test ! -s conftest.err | |
16557 } && test -s conftest$ac_exeext && { | |
16558 test "$cross_compiling" = yes || | |
16559 $as_test_x conftest$ac_exeext | |
16560 }; then | |
16561 emacs_cv_netdb_declares_h_errno=yes | 10477 emacs_cv_netdb_declares_h_errno=yes |
16562 else | 10478 else |
16563 $as_echo "$as_me: failed program was:" >&5 | 10479 emacs_cv_netdb_declares_h_errno=no |
16564 sed 's/^/| /' conftest.$ac_ext >&5 | 10480 fi |
16565 | 10481 rm -f core conftest.err conftest.$ac_objext \ |
16566 emacs_cv_netdb_declares_h_errno=no | 10482 conftest$ac_exeext conftest.$ac_ext |
16567 fi | 10483 fi |
16568 | 10484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5 |
16569 rm -rf conftest.dSYM | |
16570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
16571 conftest$ac_exeext conftest.$ac_ext | |
16572 fi | |
16573 { $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5 | |
16574 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; } | 10485 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; } |
16575 if test $emacs_cv_netdb_declares_h_errno = yes; then | 10486 if test $emacs_cv_netdb_declares_h_errno = yes; then |
16576 | 10487 |
16577 cat >>confdefs.h <<\_ACEOF | 10488 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h |
16578 #define HAVE_H_ERRNO 1 | |
16579 _ACEOF | |
16580 | 10489 |
16581 fi | 10490 fi |
16582 | 10491 |
16583 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | 10492 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
16584 # for constant arguments. Useless! | 10493 # for constant arguments. Useless! |
16585 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5 | 10494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 |
16586 $as_echo_n "checking for working alloca.h... " >&6; } | 10495 $as_echo_n "checking for working alloca.h... " >&6; } |
16587 if test "${ac_cv_working_alloca_h+set}" = set; then | 10496 if test "${ac_cv_working_alloca_h+set}" = set; then : |
16588 $as_echo_n "(cached) " >&6 | 10497 $as_echo_n "(cached) " >&6 |
16589 else | 10498 else |
16590 cat >conftest.$ac_ext <<_ACEOF | 10499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
16591 /* confdefs.h. */ | |
16592 _ACEOF | |
16593 cat confdefs.h >>conftest.$ac_ext | |
16594 cat >>conftest.$ac_ext <<_ACEOF | |
16595 /* end confdefs.h. */ | 10500 /* end confdefs.h. */ |
16596 #include <alloca.h> | 10501 #include <alloca.h> |
16597 int | 10502 int |
16598 main () | 10503 main () |
16599 { | 10504 { |
16601 if (p) return 0; | 10506 if (p) return 0; |
16602 ; | 10507 ; |
16603 return 0; | 10508 return 0; |
16604 } | 10509 } |
16605 _ACEOF | 10510 _ACEOF |
16606 rm -f conftest.$ac_objext conftest$ac_exeext | 10511 if ac_fn_c_try_link "$LINENO"; then : |
16607 if { (ac_try="$ac_link" | |
16608 case "(($ac_try" in | |
16609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16610 *) ac_try_echo=$ac_try;; | |
16611 esac | |
16612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16613 $as_echo "$ac_try_echo") >&5 | |
16614 (eval "$ac_link") 2>conftest.er1 | |
16615 ac_status=$? | |
16616 grep -v '^ *+' conftest.er1 >conftest.err | |
16617 rm -f conftest.er1 | |
16618 cat conftest.err >&5 | |
16619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16620 (exit $ac_status); } && { | |
16621 test -z "$ac_c_werror_flag" || | |
16622 test ! -s conftest.err | |
16623 } && test -s conftest$ac_exeext && { | |
16624 test "$cross_compiling" = yes || | |
16625 $as_test_x conftest$ac_exeext | |
16626 }; then | |
16627 ac_cv_working_alloca_h=yes | 10512 ac_cv_working_alloca_h=yes |
16628 else | 10513 else |
16629 $as_echo "$as_me: failed program was:" >&5 | 10514 ac_cv_working_alloca_h=no |
16630 sed 's/^/| /' conftest.$ac_ext >&5 | 10515 fi |
16631 | 10516 rm -f core conftest.err conftest.$ac_objext \ |
16632 ac_cv_working_alloca_h=no | 10517 conftest$ac_exeext conftest.$ac_ext |
16633 fi | 10518 fi |
16634 | 10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
16635 rm -rf conftest.dSYM | |
16636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
16637 conftest$ac_exeext conftest.$ac_ext | |
16638 fi | |
16639 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 | |
16640 $as_echo "$ac_cv_working_alloca_h" >&6; } | 10520 $as_echo "$ac_cv_working_alloca_h" >&6; } |
16641 if test $ac_cv_working_alloca_h = yes; then | 10521 if test $ac_cv_working_alloca_h = yes; then |
16642 | 10522 |
16643 cat >>confdefs.h <<\_ACEOF | 10523 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
16644 #define HAVE_ALLOCA_H 1 | 10524 |
16645 _ACEOF | 10525 fi |
16646 | 10526 |
16647 fi | 10527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
16648 | |
16649 { $as_echo "$as_me:$LINENO: checking for alloca" >&5 | |
16650 $as_echo_n "checking for alloca... " >&6; } | 10528 $as_echo_n "checking for alloca... " >&6; } |
16651 if test "${ac_cv_func_alloca_works+set}" = set; then | 10529 if test "${ac_cv_func_alloca_works+set}" = set; then : |
16652 $as_echo_n "(cached) " >&6 | 10530 $as_echo_n "(cached) " >&6 |
16653 else | 10531 else |
16654 cat >conftest.$ac_ext <<_ACEOF | 10532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
16655 /* confdefs.h. */ | |
16656 _ACEOF | |
16657 cat confdefs.h >>conftest.$ac_ext | |
16658 cat >>conftest.$ac_ext <<_ACEOF | |
16659 /* end confdefs.h. */ | 10533 /* end confdefs.h. */ |
16660 #ifdef __GNUC__ | 10534 #ifdef __GNUC__ |
16661 # define alloca __builtin_alloca | 10535 # define alloca __builtin_alloca |
16662 #else | 10536 #else |
16663 # ifdef _MSC_VER | 10537 # ifdef _MSC_VER |
16685 if (p) return 0; | 10559 if (p) return 0; |
16686 ; | 10560 ; |
16687 return 0; | 10561 return 0; |
16688 } | 10562 } |
16689 _ACEOF | 10563 _ACEOF |
16690 rm -f conftest.$ac_objext conftest$ac_exeext | 10564 if ac_fn_c_try_link "$LINENO"; then : |
16691 if { (ac_try="$ac_link" | |
16692 case "(($ac_try" in | |
16693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16694 *) ac_try_echo=$ac_try;; | |
16695 esac | |
16696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16697 $as_echo "$ac_try_echo") >&5 | |
16698 (eval "$ac_link") 2>conftest.er1 | |
16699 ac_status=$? | |
16700 grep -v '^ *+' conftest.er1 >conftest.err | |
16701 rm -f conftest.er1 | |
16702 cat conftest.err >&5 | |
16703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16704 (exit $ac_status); } && { | |
16705 test -z "$ac_c_werror_flag" || | |
16706 test ! -s conftest.err | |
16707 } && test -s conftest$ac_exeext && { | |
16708 test "$cross_compiling" = yes || | |
16709 $as_test_x conftest$ac_exeext | |
16710 }; then | |
16711 ac_cv_func_alloca_works=yes | 10565 ac_cv_func_alloca_works=yes |
16712 else | 10566 else |
16713 $as_echo "$as_me: failed program was:" >&5 | 10567 ac_cv_func_alloca_works=no |
16714 sed 's/^/| /' conftest.$ac_ext >&5 | 10568 fi |
16715 | 10569 rm -f core conftest.err conftest.$ac_objext \ |
16716 ac_cv_func_alloca_works=no | 10570 conftest$ac_exeext conftest.$ac_ext |
16717 fi | 10571 fi |
16718 | 10572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 |
16719 rm -rf conftest.dSYM | |
16720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
16721 conftest$ac_exeext conftest.$ac_ext | |
16722 fi | |
16723 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 | |
16724 $as_echo "$ac_cv_func_alloca_works" >&6; } | 10573 $as_echo "$ac_cv_func_alloca_works" >&6; } |
16725 | 10574 |
16726 if test $ac_cv_func_alloca_works = yes; then | 10575 if test $ac_cv_func_alloca_works = yes; then |
16727 | 10576 |
16728 cat >>confdefs.h <<\_ACEOF | 10577 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
16729 #define HAVE_ALLOCA 1 | |
16730 _ACEOF | |
16731 | 10578 |
16732 else | 10579 else |
16733 # The SVR3 libPW and SVR4 libucb both contain incompatible functions | 10580 # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
16734 # that cause trouble. Some versions do not even contain alloca or | 10581 # that cause trouble. Some versions do not even contain alloca or |
16735 # contain a buggy version. If you still want to use their alloca, | 10582 # contain a buggy version. If you still want to use their alloca, |
16736 # use ar to extract alloca.o from them instead of compiling alloca.c. | 10583 # use ar to extract alloca.o from them instead of compiling alloca.c. |
16737 | 10584 |
16738 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext | 10585 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
16739 | 10586 |
16740 cat >>confdefs.h <<\_ACEOF | 10587 $as_echo "#define C_ALLOCA 1" >>confdefs.h |
16741 #define C_ALLOCA 1 | 10588 |
16742 _ACEOF | 10589 |
16743 | 10590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
16744 | |
16745 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 | |
16746 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | 10591 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } |
16747 if test "${ac_cv_os_cray+set}" = set; then | 10592 if test "${ac_cv_os_cray+set}" = set; then : |
16748 $as_echo_n "(cached) " >&6 | 10593 $as_echo_n "(cached) " >&6 |
16749 else | 10594 else |
16750 cat >conftest.$ac_ext <<_ACEOF | 10595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
16751 /* confdefs.h. */ | |
16752 _ACEOF | |
16753 cat confdefs.h >>conftest.$ac_ext | |
16754 cat >>conftest.$ac_ext <<_ACEOF | |
16755 /* end confdefs.h. */ | 10596 /* end confdefs.h. */ |
16756 #if defined CRAY && ! defined CRAY2 | 10597 #if defined CRAY && ! defined CRAY2 |
16757 webecray | 10598 webecray |
16758 #else | 10599 #else |
16759 wenotbecray | 10600 wenotbecray |
16760 #endif | 10601 #endif |
16761 | 10602 |
16762 _ACEOF | 10603 _ACEOF |
16763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 10604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
16764 $EGREP "webecray" >/dev/null 2>&1; then | 10605 $EGREP "webecray" >/dev/null 2>&1; then : |
16765 ac_cv_os_cray=yes | 10606 ac_cv_os_cray=yes |
16766 else | 10607 else |
16767 ac_cv_os_cray=no | 10608 ac_cv_os_cray=no |
16768 fi | 10609 fi |
16769 rm -f conftest* | 10610 rm -f conftest* |
16770 | 10611 |
16771 fi | 10612 fi |
16772 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 | 10613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 |
16773 $as_echo "$ac_cv_os_cray" >&6; } | 10614 $as_echo "$ac_cv_os_cray" >&6; } |
16774 if test $ac_cv_os_cray = yes; then | 10615 if test $ac_cv_os_cray = yes; then |
16775 for ac_func in _getb67 GETB67 getb67; do | 10616 for ac_func in _getb67 GETB67 getb67; do |
16776 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 10617 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
16777 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | 10618 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
16778 $as_echo_n "checking for $ac_func... " >&6; } | 10619 eval as_val=\$$as_ac_var |
16779 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 10620 if test "x$as_val" = x""yes; then : |
16780 $as_echo_n "(cached) " >&6 | |
16781 else | |
16782 cat >conftest.$ac_ext <<_ACEOF | |
16783 /* confdefs.h. */ | |
16784 _ACEOF | |
16785 cat confdefs.h >>conftest.$ac_ext | |
16786 cat >>conftest.$ac_ext <<_ACEOF | |
16787 /* end confdefs.h. */ | |
16788 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
16789 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16790 #define $ac_func innocuous_$ac_func | |
16791 | |
16792 /* System header to define __stub macros and hopefully few prototypes, | |
16793 which can conflict with char $ac_func (); below. | |
16794 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16795 <limits.h> exists even on freestanding compilers. */ | |
16796 | |
16797 #ifdef __STDC__ | |
16798 # include <limits.h> | |
16799 #else | |
16800 # include <assert.h> | |
16801 #endif | |
16802 | |
16803 #undef $ac_func | |
16804 | |
16805 /* Override any GCC internal prototype to avoid an error. | |
16806 Use char because int might match the return type of a GCC | |
16807 builtin and then its argument prototype would still apply. */ | |
16808 #ifdef __cplusplus | |
16809 extern "C" | |
16810 #endif | |
16811 char $ac_func (); | |
16812 /* The GNU C library defines this for functions which it implements | |
16813 to always fail with ENOSYS. Some functions are actually named | |
16814 something starting with __ and the normal name is an alias. */ | |
16815 #if defined __stub_$ac_func || defined __stub___$ac_func | |
16816 choke me | |
16817 #endif | |
16818 | |
16819 int | |
16820 main () | |
16821 { | |
16822 return $ac_func (); | |
16823 ; | |
16824 return 0; | |
16825 } | |
16826 _ACEOF | |
16827 rm -f conftest.$ac_objext conftest$ac_exeext | |
16828 if { (ac_try="$ac_link" | |
16829 case "(($ac_try" in | |
16830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16831 *) ac_try_echo=$ac_try;; | |
16832 esac | |
16833 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16834 $as_echo "$ac_try_echo") >&5 | |
16835 (eval "$ac_link") 2>conftest.er1 | |
16836 ac_status=$? | |
16837 grep -v '^ *+' conftest.er1 >conftest.err | |
16838 rm -f conftest.er1 | |
16839 cat conftest.err >&5 | |
16840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16841 (exit $ac_status); } && { | |
16842 test -z "$ac_c_werror_flag" || | |
16843 test ! -s conftest.err | |
16844 } && test -s conftest$ac_exeext && { | |
16845 test "$cross_compiling" = yes || | |
16846 $as_test_x conftest$ac_exeext | |
16847 }; then | |
16848 eval "$as_ac_var=yes" | |
16849 else | |
16850 $as_echo "$as_me: failed program was:" >&5 | |
16851 sed 's/^/| /' conftest.$ac_ext >&5 | |
16852 | |
16853 eval "$as_ac_var=no" | |
16854 fi | |
16855 | |
16856 rm -rf conftest.dSYM | |
16857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
16858 conftest$ac_exeext conftest.$ac_ext | |
16859 fi | |
16860 ac_res=`eval 'as_val=${'$as_ac_var'} | |
16861 $as_echo "$as_val"'` | |
16862 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16863 $as_echo "$ac_res" >&6; } | |
16864 if test `eval 'as_val=${'$as_ac_var'} | |
16865 $as_echo "$as_val"'` = yes; then | |
16866 | 10621 |
16867 cat >>confdefs.h <<_ACEOF | 10622 cat >>confdefs.h <<_ACEOF |
16868 #define CRAY_STACKSEG_END $ac_func | 10623 #define CRAY_STACKSEG_END $ac_func |
16869 _ACEOF | 10624 _ACEOF |
16870 | 10625 |
16872 fi | 10627 fi |
16873 | 10628 |
16874 done | 10629 done |
16875 fi | 10630 fi |
16876 | 10631 |
16877 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 | 10632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
16878 $as_echo_n "checking stack direction for C alloca... " >&6; } | 10633 $as_echo_n "checking stack direction for C alloca... " >&6; } |
16879 if test "${ac_cv_c_stack_direction+set}" = set; then | 10634 if test "${ac_cv_c_stack_direction+set}" = set; then : |
16880 $as_echo_n "(cached) " >&6 | 10635 $as_echo_n "(cached) " >&6 |
16881 else | 10636 else |
16882 if test "$cross_compiling" = yes; then | 10637 if test "$cross_compiling" = yes; then : |
16883 ac_cv_c_stack_direction=0 | 10638 ac_cv_c_stack_direction=0 |
16884 else | 10639 else |
16885 cat >conftest.$ac_ext <<_ACEOF | 10640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
16886 /* confdefs.h. */ | |
16887 _ACEOF | |
16888 cat confdefs.h >>conftest.$ac_ext | |
16889 cat >>conftest.$ac_ext <<_ACEOF | |
16890 /* end confdefs.h. */ | 10641 /* end confdefs.h. */ |
16891 $ac_includes_default | 10642 $ac_includes_default |
16892 int | 10643 int |
16893 find_stack_direction () | 10644 find_stack_direction () |
16894 { | 10645 { |
16907 main () | 10658 main () |
16908 { | 10659 { |
16909 return find_stack_direction () < 0; | 10660 return find_stack_direction () < 0; |
16910 } | 10661 } |
16911 _ACEOF | 10662 _ACEOF |
16912 rm -f conftest$ac_exeext | 10663 if ac_fn_c_try_run "$LINENO"; then : |
16913 if { (ac_try="$ac_link" | |
16914 case "(($ac_try" in | |
16915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16916 *) ac_try_echo=$ac_try;; | |
16917 esac | |
16918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16919 $as_echo "$ac_try_echo") >&5 | |
16920 (eval "$ac_link") 2>&5 | |
16921 ac_status=$? | |
16922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16923 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16924 { (case "(($ac_try" in | |
16925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16926 *) ac_try_echo=$ac_try;; | |
16927 esac | |
16928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16929 $as_echo "$ac_try_echo") >&5 | |
16930 (eval "$ac_try") 2>&5 | |
16931 ac_status=$? | |
16932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16933 (exit $ac_status); }; }; then | |
16934 ac_cv_c_stack_direction=1 | 10664 ac_cv_c_stack_direction=1 |
16935 else | 10665 else |
16936 $as_echo "$as_me: program exited with status $ac_status" >&5 | 10666 ac_cv_c_stack_direction=-1 |
16937 $as_echo "$as_me: failed program was:" >&5 | 10667 fi |
16938 sed 's/^/| /' conftest.$ac_ext >&5 | 10668 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
16939 | 10669 conftest.$ac_objext conftest.beam conftest.$ac_ext |
16940 ( exit $ac_status ) | 10670 fi |
16941 ac_cv_c_stack_direction=-1 | 10671 |
16942 fi | 10672 fi |
16943 rm -rf conftest.dSYM | 10673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
16944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
16945 fi | |
16946 | |
16947 | |
16948 fi | |
16949 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 | |
16950 $as_echo "$ac_cv_c_stack_direction" >&6; } | 10674 $as_echo "$ac_cv_c_stack_direction" >&6; } |
16951 | |
16952 cat >>confdefs.h <<_ACEOF | 10675 cat >>confdefs.h <<_ACEOF |
16953 #define STACK_DIRECTION $ac_cv_c_stack_direction | 10676 #define STACK_DIRECTION $ac_cv_c_stack_direction |
16954 _ACEOF | 10677 _ACEOF |
16955 | 10678 |
16956 | 10679 |
16957 fi | 10680 fi |
16958 | 10681 |
16959 | 10682 |
16960 if test x"$ac_cv_func_alloca_works" != xyes; then | 10683 if test x"$ac_cv_func_alloca_works" != xyes; then |
16961 { { $as_echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5 | 10684 as_fn_error "a system implementation of alloca is required " "$LINENO" 5 |
16962 $as_echo "$as_me: error: a system implementation of alloca is required " >&2;} | |
16963 { (exit 1); exit 1; }; } | |
16964 fi | 10685 fi |
16965 | 10686 |
16966 # fmod, logb, and frexp are found in -lm on most systems. | 10687 # fmod, logb, and frexp are found in -lm on most systems. |
16967 # On HPUX 9.01, -lm does not contain logb, so check for sqrt. | 10688 # On HPUX 9.01, -lm does not contain logb, so check for sqrt. |
16968 | 10689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5 |
16969 { $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5 | |
16970 $as_echo_n "checking for sqrt in -lm... " >&6; } | 10690 $as_echo_n "checking for sqrt in -lm... " >&6; } |
16971 if test "${ac_cv_lib_m_sqrt+set}" = set; then | 10691 if test "${ac_cv_lib_m_sqrt+set}" = set; then : |
16972 $as_echo_n "(cached) " >&6 | 10692 $as_echo_n "(cached) " >&6 |
16973 else | 10693 else |
16974 ac_check_lib_save_LIBS=$LIBS | 10694 ac_check_lib_save_LIBS=$LIBS |
16975 LIBS="-lm $LIBS" | 10695 LIBS="-lm $LIBS" |
16976 cat >conftest.$ac_ext <<_ACEOF | 10696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
16977 /* confdefs.h. */ | |
16978 _ACEOF | |
16979 cat confdefs.h >>conftest.$ac_ext | |
16980 cat >>conftest.$ac_ext <<_ACEOF | |
16981 /* end confdefs.h. */ | 10697 /* end confdefs.h. */ |
16982 | 10698 |
16983 /* Override any GCC internal prototype to avoid an error. | 10699 /* Override any GCC internal prototype to avoid an error. |
16984 Use char because int might match the return type of a GCC | 10700 Use char because int might match the return type of a GCC |
16985 builtin and then its argument prototype would still apply. */ | 10701 builtin and then its argument prototype would still apply. */ |
16993 return sqrt (); | 10709 return sqrt (); |
16994 ; | 10710 ; |
16995 return 0; | 10711 return 0; |
16996 } | 10712 } |
16997 _ACEOF | 10713 _ACEOF |
16998 rm -f conftest.$ac_objext conftest$ac_exeext | 10714 if ac_fn_c_try_link "$LINENO"; then : |
16999 if { (ac_try="$ac_link" | |
17000 case "(($ac_try" in | |
17001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17002 *) ac_try_echo=$ac_try;; | |
17003 esac | |
17004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17005 $as_echo "$ac_try_echo") >&5 | |
17006 (eval "$ac_link") 2>conftest.er1 | |
17007 ac_status=$? | |
17008 grep -v '^ *+' conftest.er1 >conftest.err | |
17009 rm -f conftest.er1 | |
17010 cat conftest.err >&5 | |
17011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17012 (exit $ac_status); } && { | |
17013 test -z "$ac_c_werror_flag" || | |
17014 test ! -s conftest.err | |
17015 } && test -s conftest$ac_exeext && { | |
17016 test "$cross_compiling" = yes || | |
17017 $as_test_x conftest$ac_exeext | |
17018 }; then | |
17019 ac_cv_lib_m_sqrt=yes | 10715 ac_cv_lib_m_sqrt=yes |
17020 else | 10716 else |
17021 $as_echo "$as_me: failed program was:" >&5 | 10717 ac_cv_lib_m_sqrt=no |
17022 sed 's/^/| /' conftest.$ac_ext >&5 | 10718 fi |
17023 | 10719 rm -f core conftest.err conftest.$ac_objext \ |
17024 ac_cv_lib_m_sqrt=no | 10720 conftest$ac_exeext conftest.$ac_ext |
17025 fi | |
17026 | |
17027 rm -rf conftest.dSYM | |
17028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
17029 conftest$ac_exeext conftest.$ac_ext | |
17030 LIBS=$ac_check_lib_save_LIBS | 10721 LIBS=$ac_check_lib_save_LIBS |
17031 fi | 10722 fi |
17032 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5 | 10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5 |
17033 $as_echo "$ac_cv_lib_m_sqrt" >&6; } | 10724 $as_echo "$ac_cv_lib_m_sqrt" >&6; } |
17034 if test $ac_cv_lib_m_sqrt = yes; then | 10725 if test "x$ac_cv_lib_m_sqrt" = x""yes; then : |
17035 cat >>confdefs.h <<_ACEOF | 10726 cat >>confdefs.h <<_ACEOF |
17036 #define HAVE_LIBM 1 | 10727 #define HAVE_LIBM 1 |
17037 _ACEOF | 10728 _ACEOF |
17038 | 10729 |
17039 LIBS="-lm $LIBS" | 10730 LIBS="-lm $LIBS" |
17041 fi | 10732 fi |
17042 | 10733 |
17043 | 10734 |
17044 # Check for mail-locking functions in a "mail" library. Probably this should | 10735 # Check for mail-locking functions in a "mail" library. Probably this should |
17045 # have the same check as for liblockfile below. | 10736 # have the same check as for liblockfile below. |
17046 { $as_echo "$as_me:$LINENO: checking for maillock in -lmail" >&5 | 10737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5 |
17047 $as_echo_n "checking for maillock in -lmail... " >&6; } | 10738 $as_echo_n "checking for maillock in -lmail... " >&6; } |
17048 if test "${ac_cv_lib_mail_maillock+set}" = set; then | 10739 if test "${ac_cv_lib_mail_maillock+set}" = set; then : |
17049 $as_echo_n "(cached) " >&6 | 10740 $as_echo_n "(cached) " >&6 |
17050 else | 10741 else |
17051 ac_check_lib_save_LIBS=$LIBS | 10742 ac_check_lib_save_LIBS=$LIBS |
17052 LIBS="-lmail $LIBS" | 10743 LIBS="-lmail $LIBS" |
17053 cat >conftest.$ac_ext <<_ACEOF | 10744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
17054 /* confdefs.h. */ | |
17055 _ACEOF | |
17056 cat confdefs.h >>conftest.$ac_ext | |
17057 cat >>conftest.$ac_ext <<_ACEOF | |
17058 /* end confdefs.h. */ | 10745 /* end confdefs.h. */ |
17059 | 10746 |
17060 /* Override any GCC internal prototype to avoid an error. | 10747 /* Override any GCC internal prototype to avoid an error. |
17061 Use char because int might match the return type of a GCC | 10748 Use char because int might match the return type of a GCC |
17062 builtin and then its argument prototype would still apply. */ | 10749 builtin and then its argument prototype would still apply. */ |
17070 return maillock (); | 10757 return maillock (); |
17071 ; | 10758 ; |
17072 return 0; | 10759 return 0; |
17073 } | 10760 } |
17074 _ACEOF | 10761 _ACEOF |
17075 rm -f conftest.$ac_objext conftest$ac_exeext | 10762 if ac_fn_c_try_link "$LINENO"; then : |
17076 if { (ac_try="$ac_link" | |
17077 case "(($ac_try" in | |
17078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17079 *) ac_try_echo=$ac_try;; | |
17080 esac | |
17081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17082 $as_echo "$ac_try_echo") >&5 | |
17083 (eval "$ac_link") 2>conftest.er1 | |
17084 ac_status=$? | |
17085 grep -v '^ *+' conftest.er1 >conftest.err | |
17086 rm -f conftest.er1 | |
17087 cat conftest.err >&5 | |
17088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17089 (exit $ac_status); } && { | |
17090 test -z "$ac_c_werror_flag" || | |
17091 test ! -s conftest.err | |
17092 } && test -s conftest$ac_exeext && { | |
17093 test "$cross_compiling" = yes || | |
17094 $as_test_x conftest$ac_exeext | |
17095 }; then | |
17096 ac_cv_lib_mail_maillock=yes | 10763 ac_cv_lib_mail_maillock=yes |
17097 else | 10764 else |
17098 $as_echo "$as_me: failed program was:" >&5 | 10765 ac_cv_lib_mail_maillock=no |
17099 sed 's/^/| /' conftest.$ac_ext >&5 | 10766 fi |
17100 | 10767 rm -f core conftest.err conftest.$ac_objext \ |
17101 ac_cv_lib_mail_maillock=no | 10768 conftest$ac_exeext conftest.$ac_ext |
17102 fi | |
17103 | |
17104 rm -rf conftest.dSYM | |
17105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
17106 conftest$ac_exeext conftest.$ac_ext | |
17107 LIBS=$ac_check_lib_save_LIBS | 10769 LIBS=$ac_check_lib_save_LIBS |
17108 fi | 10770 fi |
17109 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5 | 10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5 |
17110 $as_echo "$ac_cv_lib_mail_maillock" >&6; } | 10772 $as_echo "$ac_cv_lib_mail_maillock" >&6; } |
17111 if test $ac_cv_lib_mail_maillock = yes; then | 10773 if test "x$ac_cv_lib_mail_maillock" = x""yes; then : |
17112 have_mail=yes | 10774 have_mail=yes |
17113 else | 10775 else |
17114 have_mail=no | 10776 have_mail=no |
17115 fi | 10777 fi |
17116 | 10778 |
17117 if test $have_mail = yes; then | 10779 if test $have_mail = yes; then |
17118 LIBS_MAIL=-lmail | 10780 LIBS_MAIL=-lmail |
17119 LIBS="$LIBS_MAIL $LIBS" | 10781 LIBS="$LIBS_MAIL $LIBS" |
17120 | 10782 |
17121 cat >>confdefs.h <<\_ACEOF | 10783 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h |
17122 #define HAVE_LIBMAIL 1 | |
17123 _ACEOF | |
17124 | 10784 |
17125 else | 10785 else |
17126 LIBS_MAIL= | 10786 LIBS_MAIL= |
17127 fi | 10787 fi |
17128 { $as_echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5 | 10788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5 |
17129 $as_echo_n "checking for maillock in -llockfile... " >&6; } | 10789 $as_echo_n "checking for maillock in -llockfile... " >&6; } |
17130 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then | 10790 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then : |
17131 $as_echo_n "(cached) " >&6 | 10791 $as_echo_n "(cached) " >&6 |
17132 else | 10792 else |
17133 ac_check_lib_save_LIBS=$LIBS | 10793 ac_check_lib_save_LIBS=$LIBS |
17134 LIBS="-llockfile $LIBS" | 10794 LIBS="-llockfile $LIBS" |
17135 cat >conftest.$ac_ext <<_ACEOF | 10795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
17136 /* confdefs.h. */ | |
17137 _ACEOF | |
17138 cat confdefs.h >>conftest.$ac_ext | |
17139 cat >>conftest.$ac_ext <<_ACEOF | |
17140 /* end confdefs.h. */ | 10796 /* end confdefs.h. */ |
17141 | 10797 |
17142 /* Override any GCC internal prototype to avoid an error. | 10798 /* Override any GCC internal prototype to avoid an error. |
17143 Use char because int might match the return type of a GCC | 10799 Use char because int might match the return type of a GCC |
17144 builtin and then its argument prototype would still apply. */ | 10800 builtin and then its argument prototype would still apply. */ |
17152 return maillock (); | 10808 return maillock (); |
17153 ; | 10809 ; |
17154 return 0; | 10810 return 0; |
17155 } | 10811 } |
17156 _ACEOF | 10812 _ACEOF |
17157 rm -f conftest.$ac_objext conftest$ac_exeext | 10813 if ac_fn_c_try_link "$LINENO"; then : |
17158 if { (ac_try="$ac_link" | |
17159 case "(($ac_try" in | |
17160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17161 *) ac_try_echo=$ac_try;; | |
17162 esac | |
17163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17164 $as_echo "$ac_try_echo") >&5 | |
17165 (eval "$ac_link") 2>conftest.er1 | |
17166 ac_status=$? | |
17167 grep -v '^ *+' conftest.er1 >conftest.err | |
17168 rm -f conftest.er1 | |
17169 cat conftest.err >&5 | |
17170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17171 (exit $ac_status); } && { | |
17172 test -z "$ac_c_werror_flag" || | |
17173 test ! -s conftest.err | |
17174 } && test -s conftest$ac_exeext && { | |
17175 test "$cross_compiling" = yes || | |
17176 $as_test_x conftest$ac_exeext | |
17177 }; then | |
17178 ac_cv_lib_lockfile_maillock=yes | 10814 ac_cv_lib_lockfile_maillock=yes |
17179 else | 10815 else |
17180 $as_echo "$as_me: failed program was:" >&5 | 10816 ac_cv_lib_lockfile_maillock=no |
17181 sed 's/^/| /' conftest.$ac_ext >&5 | 10817 fi |
17182 | 10818 rm -f core conftest.err conftest.$ac_objext \ |
17183 ac_cv_lib_lockfile_maillock=no | 10819 conftest$ac_exeext conftest.$ac_ext |
17184 fi | |
17185 | |
17186 rm -rf conftest.dSYM | |
17187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
17188 conftest$ac_exeext conftest.$ac_ext | |
17189 LIBS=$ac_check_lib_save_LIBS | 10820 LIBS=$ac_check_lib_save_LIBS |
17190 fi | 10821 fi |
17191 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5 | 10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5 |
17192 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; } | 10823 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; } |
17193 if test $ac_cv_lib_lockfile_maillock = yes; then | 10824 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then : |
17194 have_lockfile=yes | 10825 have_lockfile=yes |
17195 else | 10826 else |
17196 have_lockfile=no | 10827 have_lockfile=no |
17197 fi | 10828 fi |
17198 | 10829 |
17199 if test $have_lockfile = yes; then | 10830 if test $have_lockfile = yes; then |
17200 LIBS_MAIL=-llockfile | 10831 LIBS_MAIL=-llockfile |
17201 LIBS="$LIBS_MAIL $LIBS" | 10832 LIBS="$LIBS_MAIL $LIBS" |
17202 | 10833 |
17203 cat >>confdefs.h <<\_ACEOF | 10834 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h |
17204 #define HAVE_LIBLOCKFILE 1 | |
17205 _ACEOF | |
17206 | 10835 |
17207 else | 10836 else |
17208 # If we have the shared liblockfile, assume we must use it for mail | 10837 # If we have the shared liblockfile, assume we must use it for mail |
17209 # locking (e.g. Debian). If we couldn't link against liblockfile | 10838 # locking (e.g. Debian). If we couldn't link against liblockfile |
17210 # (no liblockfile.a installed), ensure that we don't need to. | 10839 # (no liblockfile.a installed), ensure that we don't need to. |
17211 # Extract the first word of "liblockfile.so", so it can be a program name with args. | 10840 # Extract the first word of "liblockfile.so", so it can be a program name with args. |
17212 set dummy liblockfile.so; ac_word=$2 | 10841 set dummy liblockfile.so; ac_word=$2 |
17213 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | 10842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
17214 $as_echo_n "checking for $ac_word... " >&6; } | 10843 $as_echo_n "checking for $ac_word... " >&6; } |
17215 if test "${ac_cv_prog_liblockfile+set}" = set; then | 10844 if test "${ac_cv_prog_liblockfile+set}" = set; then : |
17216 $as_echo_n "(cached) " >&6 | 10845 $as_echo_n "(cached) " >&6 |
17217 else | 10846 else |
17218 if test -n "$liblockfile"; then | 10847 if test -n "$liblockfile"; then |
17219 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. | 10848 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. |
17220 else | 10849 else |
17222 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH" | 10851 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH" |
17223 for as_dir in $as_dummy | 10852 for as_dir in $as_dummy |
17224 do | 10853 do |
17225 IFS=$as_save_IFS | 10854 IFS=$as_save_IFS |
17226 test -z "$as_dir" && as_dir=. | 10855 test -z "$as_dir" && as_dir=. |
17227 for ac_exec_ext in '' $ac_executable_extensions; do | 10856 for ac_exec_ext in '' $ac_executable_extensions; do |
17228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 10857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
17229 ac_cv_prog_liblockfile="yes" | 10858 ac_cv_prog_liblockfile="yes" |
17230 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 10859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
17231 break 2 | 10860 break 2 |
17232 fi | 10861 fi |
17233 done | 10862 done |
17234 done | 10863 done |
17235 IFS=$as_save_IFS | 10864 IFS=$as_save_IFS |
17236 | 10865 |
17237 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no" | 10866 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no" |
17238 fi | 10867 fi |
17239 fi | 10868 fi |
17240 liblockfile=$ac_cv_prog_liblockfile | 10869 liblockfile=$ac_cv_prog_liblockfile |
17241 if test -n "$liblockfile"; then | 10870 if test -n "$liblockfile"; then |
17242 { $as_echo "$as_me:$LINENO: result: $liblockfile" >&5 | 10871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5 |
17243 $as_echo "$liblockfile" >&6; } | 10872 $as_echo "$liblockfile" >&6; } |
17244 else | 10873 else |
17245 { $as_echo "$as_me:$LINENO: result: no" >&5 | 10874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17246 $as_echo "no" >&6; } | 10875 $as_echo "no" >&6; } |
17247 fi | 10876 fi |
17248 | 10877 |
17249 | 10878 |
17250 if test $ac_cv_prog_liblockfile = yes; then | 10879 if test $ac_cv_prog_liblockfile = yes; then |
17251 { { $as_echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it. | 10880 as_fn_error "Shared liblockfile found but can't link against it. |
17252 This probably means that movemail could lose mail. | 10881 This probably means that movemail could lose mail. |
17253 There may be a \`development' package to install containing liblockfile." >&5 | 10882 There may be a \`development' package to install containing liblockfile." "$LINENO" 5 |
17254 $as_echo "$as_me: error: Shared liblockfile found but can't link against it. | 10883 fi |
17255 This probably means that movemail could lose mail. | 10884 fi |
17256 There may be a \`development' package to install containing liblockfile." >&2;} | |
17257 { (exit 1); exit 1; }; } | |
17258 fi | |
17259 fi | |
17260 | |
17261 for ac_func in touchlock | 10885 for ac_func in touchlock |
17262 do | 10886 do : |
17263 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 10887 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock" |
17264 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | 10888 if test "x$ac_cv_func_touchlock" = x""yes; then : |
17265 $as_echo_n "checking for $ac_func... " >&6; } | |
17266 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
17267 $as_echo_n "(cached) " >&6 | |
17268 else | |
17269 cat >conftest.$ac_ext <<_ACEOF | |
17270 /* confdefs.h. */ | |
17271 _ACEOF | |
17272 cat confdefs.h >>conftest.$ac_ext | |
17273 cat >>conftest.$ac_ext <<_ACEOF | |
17274 /* end confdefs.h. */ | |
17275 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
17276 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17277 #define $ac_func innocuous_$ac_func | |
17278 | |
17279 /* System header to define __stub macros and hopefully few prototypes, | |
17280 which can conflict with char $ac_func (); below. | |
17281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17282 <limits.h> exists even on freestanding compilers. */ | |
17283 | |
17284 #ifdef __STDC__ | |
17285 # include <limits.h> | |
17286 #else | |
17287 # include <assert.h> | |
17288 #endif | |
17289 | |
17290 #undef $ac_func | |
17291 | |
17292 /* Override any GCC internal prototype to avoid an error. | |
17293 Use char because int might match the return type of a GCC | |
17294 builtin and then its argument prototype would still apply. */ | |
17295 #ifdef __cplusplus | |
17296 extern "C" | |
17297 #endif | |
17298 char $ac_func (); | |
17299 /* The GNU C library defines this for functions which it implements | |
17300 to always fail with ENOSYS. Some functions are actually named | |
17301 something starting with __ and the normal name is an alias. */ | |
17302 #if defined __stub_$ac_func || defined __stub___$ac_func | |
17303 choke me | |
17304 #endif | |
17305 | |
17306 int | |
17307 main () | |
17308 { | |
17309 return $ac_func (); | |
17310 ; | |
17311 return 0; | |
17312 } | |
17313 _ACEOF | |
17314 rm -f conftest.$ac_objext conftest$ac_exeext | |
17315 if { (ac_try="$ac_link" | |
17316 case "(($ac_try" in | |
17317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17318 *) ac_try_echo=$ac_try;; | |
17319 esac | |
17320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17321 $as_echo "$ac_try_echo") >&5 | |
17322 (eval "$ac_link") 2>conftest.er1 | |
17323 ac_status=$? | |
17324 grep -v '^ *+' conftest.er1 >conftest.err | |
17325 rm -f conftest.er1 | |
17326 cat conftest.err >&5 | |
17327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17328 (exit $ac_status); } && { | |
17329 test -z "$ac_c_werror_flag" || | |
17330 test ! -s conftest.err | |
17331 } && test -s conftest$ac_exeext && { | |
17332 test "$cross_compiling" = yes || | |
17333 $as_test_x conftest$ac_exeext | |
17334 }; then | |
17335 eval "$as_ac_var=yes" | |
17336 else | |
17337 $as_echo "$as_me: failed program was:" >&5 | |
17338 sed 's/^/| /' conftest.$ac_ext >&5 | |
17339 | |
17340 eval "$as_ac_var=no" | |
17341 fi | |
17342 | |
17343 rm -rf conftest.dSYM | |
17344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
17345 conftest$ac_exeext conftest.$ac_ext | |
17346 fi | |
17347 ac_res=`eval 'as_val=${'$as_ac_var'} | |
17348 $as_echo "$as_val"'` | |
17349 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17350 $as_echo "$ac_res" >&6; } | |
17351 if test `eval 'as_val=${'$as_ac_var'} | |
17352 $as_echo "$as_val"'` = yes; then | |
17353 cat >>confdefs.h <<_ACEOF | 10889 cat >>confdefs.h <<_ACEOF |
17354 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 10890 #define HAVE_TOUCHLOCK 1 |
17355 _ACEOF | 10891 _ACEOF |
17356 | 10892 |
17357 fi | 10893 fi |
17358 done | 10894 done |
17359 | 10895 |
17360 | |
17361 for ac_header in maillock.h | 10896 for ac_header in maillock.h |
17362 do | 10897 do : |
17363 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 10898 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default" |
17364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 10899 if test "x$ac_cv_header_maillock_h" = x""yes; then : |
17365 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17366 $as_echo_n "checking for $ac_header... " >&6; } | |
17367 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17368 $as_echo_n "(cached) " >&6 | |
17369 fi | |
17370 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
17371 $as_echo "$as_val"'` | |
17372 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17373 $as_echo "$ac_res" >&6; } | |
17374 else | |
17375 # Is the header compilable? | |
17376 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17377 $as_echo_n "checking $ac_header usability... " >&6; } | |
17378 cat >conftest.$ac_ext <<_ACEOF | |
17379 /* confdefs.h. */ | |
17380 _ACEOF | |
17381 cat confdefs.h >>conftest.$ac_ext | |
17382 cat >>conftest.$ac_ext <<_ACEOF | |
17383 /* end confdefs.h. */ | |
17384 $ac_includes_default | |
17385 #include <$ac_header> | |
17386 _ACEOF | |
17387 rm -f conftest.$ac_objext | |
17388 if { (ac_try="$ac_compile" | |
17389 case "(($ac_try" in | |
17390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17391 *) ac_try_echo=$ac_try;; | |
17392 esac | |
17393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17394 $as_echo "$ac_try_echo") >&5 | |
17395 (eval "$ac_compile") 2>conftest.er1 | |
17396 ac_status=$? | |
17397 grep -v '^ *+' conftest.er1 >conftest.err | |
17398 rm -f conftest.er1 | |
17399 cat conftest.err >&5 | |
17400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17401 (exit $ac_status); } && { | |
17402 test -z "$ac_c_werror_flag" || | |
17403 test ! -s conftest.err | |
17404 } && test -s conftest.$ac_objext; then | |
17405 ac_header_compiler=yes | |
17406 else | |
17407 $as_echo "$as_me: failed program was:" >&5 | |
17408 sed 's/^/| /' conftest.$ac_ext >&5 | |
17409 | |
17410 ac_header_compiler=no | |
17411 fi | |
17412 | |
17413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17414 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17415 $as_echo "$ac_header_compiler" >&6; } | |
17416 | |
17417 # Is the header present? | |
17418 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17419 $as_echo_n "checking $ac_header presence... " >&6; } | |
17420 cat >conftest.$ac_ext <<_ACEOF | |
17421 /* confdefs.h. */ | |
17422 _ACEOF | |
17423 cat confdefs.h >>conftest.$ac_ext | |
17424 cat >>conftest.$ac_ext <<_ACEOF | |
17425 /* end confdefs.h. */ | |
17426 #include <$ac_header> | |
17427 _ACEOF | |
17428 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
17429 case "(($ac_try" in | |
17430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17431 *) ac_try_echo=$ac_try;; | |
17432 esac | |
17433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17434 $as_echo "$ac_try_echo") >&5 | |
17435 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
17436 ac_status=$? | |
17437 grep -v '^ *+' conftest.er1 >conftest.err | |
17438 rm -f conftest.er1 | |
17439 cat conftest.err >&5 | |
17440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17441 (exit $ac_status); } >/dev/null && { | |
17442 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
17443 test ! -s conftest.err | |
17444 }; then | |
17445 ac_header_preproc=yes | |
17446 else | |
17447 $as_echo "$as_me: failed program was:" >&5 | |
17448 sed 's/^/| /' conftest.$ac_ext >&5 | |
17449 | |
17450 ac_header_preproc=no | |
17451 fi | |
17452 | |
17453 rm -f conftest.err conftest.$ac_ext | |
17454 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17455 $as_echo "$ac_header_preproc" >&6; } | |
17456 | |
17457 # So? What about this header? | |
17458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
17459 yes:no: ) | |
17460 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
17461 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17462 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
17463 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
17464 ac_header_preproc=yes | |
17465 ;; | |
17466 no:yes:* ) | |
17467 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
17468 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17469 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17470 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17471 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17472 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17473 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17474 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
17475 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17476 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17477 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
17478 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
17479 | |
17480 ;; | |
17481 esac | |
17482 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17483 $as_echo_n "checking for $ac_header... " >&6; } | |
17484 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17485 $as_echo_n "(cached) " >&6 | |
17486 else | |
17487 eval "$as_ac_Header=\$ac_header_preproc" | |
17488 fi | |
17489 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
17490 $as_echo "$as_val"'` | |
17491 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17492 $as_echo "$ac_res" >&6; } | |
17493 | |
17494 fi | |
17495 if test `eval 'as_val=${'$as_ac_Header'} | |
17496 $as_echo "$as_val"'` = yes; then | |
17497 cat >>confdefs.h <<_ACEOF | 10900 cat >>confdefs.h <<_ACEOF |
17498 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 10901 #define HAVE_MAILLOCK_H 1 |
17499 _ACEOF | 10902 _ACEOF |
17500 | 10903 |
17501 fi | 10904 fi |
17502 | 10905 |
17503 done | 10906 done |
17504 | |
17505 | |
17506 | |
17507 | |
17508 | |
17509 | |
17510 | |
17511 | |
17512 | |
17513 | |
17514 | |
17515 | |
17516 | |
17517 | |
17518 | |
17519 | |
17520 | |
17521 | |
17522 | |
17523 | |
17524 | |
17525 | |
17526 | |
17527 | |
17528 | |
17529 | |
17530 | |
17531 | |
17532 | |
17533 | |
17534 | |
17535 | |
17536 | |
17537 | |
17538 | |
17539 | |
17540 | |
17541 | |
17542 | |
17543 | |
17544 | |
17545 | |
17546 | |
17547 | |
17548 | |
17549 | |
17550 | |
17551 | |
17552 | |
17553 | |
17554 | |
17555 | |
17556 | |
17557 | |
17558 | |
17559 | |
17560 | |
17561 | |
17562 | |
17563 | |
17564 | |
17565 | |
17566 | |
17567 | |
17568 | |
17569 | |
17570 | |
17571 | |
17572 | |
17573 | |
17574 | |
17575 | 10907 |
17576 | 10908 |
17577 | 10909 |
17578 for ac_func in gethostname getdomainname dup2 \ | 10910 for ac_func in gethostname getdomainname dup2 \ |
17579 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \ | 10911 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \ |
17583 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \ | 10915 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \ |
17584 sendto recvfrom getsockopt setsockopt getsockname getpeername \ | 10916 sendto recvfrom getsockopt setsockopt getsockname getpeername \ |
17585 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \ | 10917 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \ |
17586 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \ | 10918 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \ |
17587 cfmakeraw cfsetspeed | 10919 cfmakeraw cfsetspeed |
17588 do | 10920 do : |
17589 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 10921 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
17590 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | 10922 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
17591 $as_echo_n "checking for $ac_func... " >&6; } | 10923 eval as_val=\$$as_ac_var |
17592 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 10924 if test "x$as_val" = x""yes; then : |
17593 $as_echo_n "(cached) " >&6 | |
17594 else | |
17595 cat >conftest.$ac_ext <<_ACEOF | |
17596 /* confdefs.h. */ | |
17597 _ACEOF | |
17598 cat confdefs.h >>conftest.$ac_ext | |
17599 cat >>conftest.$ac_ext <<_ACEOF | |
17600 /* end confdefs.h. */ | |
17601 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
17602 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17603 #define $ac_func innocuous_$ac_func | |
17604 | |
17605 /* System header to define __stub macros and hopefully few prototypes, | |
17606 which can conflict with char $ac_func (); below. | |
17607 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17608 <limits.h> exists even on freestanding compilers. */ | |
17609 | |
17610 #ifdef __STDC__ | |
17611 # include <limits.h> | |
17612 #else | |
17613 # include <assert.h> | |
17614 #endif | |
17615 | |
17616 #undef $ac_func | |
17617 | |
17618 /* Override any GCC internal prototype to avoid an error. | |
17619 Use char because int might match the return type of a GCC | |
17620 builtin and then its argument prototype would still apply. */ | |
17621 #ifdef __cplusplus | |
17622 extern "C" | |
17623 #endif | |
17624 char $ac_func (); | |
17625 /* The GNU C library defines this for functions which it implements | |
17626 to always fail with ENOSYS. Some functions are actually named | |
17627 something starting with __ and the normal name is an alias. */ | |
17628 #if defined __stub_$ac_func || defined __stub___$ac_func | |
17629 choke me | |
17630 #endif | |
17631 | |
17632 int | |
17633 main () | |
17634 { | |
17635 return $ac_func (); | |
17636 ; | |
17637 return 0; | |
17638 } | |
17639 _ACEOF | |
17640 rm -f conftest.$ac_objext conftest$ac_exeext | |
17641 if { (ac_try="$ac_link" | |
17642 case "(($ac_try" in | |
17643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17644 *) ac_try_echo=$ac_try;; | |
17645 esac | |
17646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17647 $as_echo "$ac_try_echo") >&5 | |
17648 (eval "$ac_link") 2>conftest.er1 | |
17649 ac_status=$? | |
17650 grep -v '^ *+' conftest.er1 >conftest.err | |
17651 rm -f conftest.er1 | |
17652 cat conftest.err >&5 | |
17653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17654 (exit $ac_status); } && { | |
17655 test -z "$ac_c_werror_flag" || | |
17656 test ! -s conftest.err | |
17657 } && test -s conftest$ac_exeext && { | |
17658 test "$cross_compiling" = yes || | |
17659 $as_test_x conftest$ac_exeext | |
17660 }; then | |
17661 eval "$as_ac_var=yes" | |
17662 else | |
17663 $as_echo "$as_me: failed program was:" >&5 | |
17664 sed 's/^/| /' conftest.$ac_ext >&5 | |
17665 | |
17666 eval "$as_ac_var=no" | |
17667 fi | |
17668 | |
17669 rm -rf conftest.dSYM | |
17670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
17671 conftest$ac_exeext conftest.$ac_ext | |
17672 fi | |
17673 ac_res=`eval 'as_val=${'$as_ac_var'} | |
17674 $as_echo "$as_val"'` | |
17675 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17676 $as_echo "$ac_res" >&6; } | |
17677 if test `eval 'as_val=${'$as_ac_var'} | |
17678 $as_echo "$as_val"'` = yes; then | |
17679 cat >>confdefs.h <<_ACEOF | 10925 cat >>confdefs.h <<_ACEOF |
17680 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 10926 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
17681 _ACEOF | 10927 _ACEOF |
17682 | 10928 |
17683 fi | 10929 fi |
17684 done | 10930 done |
17685 | 10931 |
17686 | 10932 |
17687 | |
17688 for ac_header in sys/un.h | 10933 for ac_header in sys/un.h |
17689 do | 10934 do : |
17690 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 10935 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default" |
17691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 10936 if test "x$ac_cv_header_sys_un_h" = x""yes; then : |
17692 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17693 $as_echo_n "checking for $ac_header... " >&6; } | |
17694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17695 $as_echo_n "(cached) " >&6 | |
17696 fi | |
17697 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
17698 $as_echo "$as_val"'` | |
17699 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17700 $as_echo "$ac_res" >&6; } | |
17701 else | |
17702 # Is the header compilable? | |
17703 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17704 $as_echo_n "checking $ac_header usability... " >&6; } | |
17705 cat >conftest.$ac_ext <<_ACEOF | |
17706 /* confdefs.h. */ | |
17707 _ACEOF | |
17708 cat confdefs.h >>conftest.$ac_ext | |
17709 cat >>conftest.$ac_ext <<_ACEOF | |
17710 /* end confdefs.h. */ | |
17711 $ac_includes_default | |
17712 #include <$ac_header> | |
17713 _ACEOF | |
17714 rm -f conftest.$ac_objext | |
17715 if { (ac_try="$ac_compile" | |
17716 case "(($ac_try" in | |
17717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17718 *) ac_try_echo=$ac_try;; | |
17719 esac | |
17720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17721 $as_echo "$ac_try_echo") >&5 | |
17722 (eval "$ac_compile") 2>conftest.er1 | |
17723 ac_status=$? | |
17724 grep -v '^ *+' conftest.er1 >conftest.err | |
17725 rm -f conftest.er1 | |
17726 cat conftest.err >&5 | |
17727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17728 (exit $ac_status); } && { | |
17729 test -z "$ac_c_werror_flag" || | |
17730 test ! -s conftest.err | |
17731 } && test -s conftest.$ac_objext; then | |
17732 ac_header_compiler=yes | |
17733 else | |
17734 $as_echo "$as_me: failed program was:" >&5 | |
17735 sed 's/^/| /' conftest.$ac_ext >&5 | |
17736 | |
17737 ac_header_compiler=no | |
17738 fi | |
17739 | |
17740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17741 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17742 $as_echo "$ac_header_compiler" >&6; } | |
17743 | |
17744 # Is the header present? | |
17745 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17746 $as_echo_n "checking $ac_header presence... " >&6; } | |
17747 cat >conftest.$ac_ext <<_ACEOF | |
17748 /* confdefs.h. */ | |
17749 _ACEOF | |
17750 cat confdefs.h >>conftest.$ac_ext | |
17751 cat >>conftest.$ac_ext <<_ACEOF | |
17752 /* end confdefs.h. */ | |
17753 #include <$ac_header> | |
17754 _ACEOF | |
17755 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
17756 case "(($ac_try" in | |
17757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17758 *) ac_try_echo=$ac_try;; | |
17759 esac | |
17760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17761 $as_echo "$ac_try_echo") >&5 | |
17762 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
17763 ac_status=$? | |
17764 grep -v '^ *+' conftest.er1 >conftest.err | |
17765 rm -f conftest.er1 | |
17766 cat conftest.err >&5 | |
17767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17768 (exit $ac_status); } >/dev/null && { | |
17769 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
17770 test ! -s conftest.err | |
17771 }; then | |
17772 ac_header_preproc=yes | |
17773 else | |
17774 $as_echo "$as_me: failed program was:" >&5 | |
17775 sed 's/^/| /' conftest.$ac_ext >&5 | |
17776 | |
17777 ac_header_preproc=no | |
17778 fi | |
17779 | |
17780 rm -f conftest.err conftest.$ac_ext | |
17781 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17782 $as_echo "$ac_header_preproc" >&6; } | |
17783 | |
17784 # So? What about this header? | |
17785 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
17786 yes:no: ) | |
17787 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
17788 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17789 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
17790 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
17791 ac_header_preproc=yes | |
17792 ;; | |
17793 no:yes:* ) | |
17794 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
17795 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17796 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17797 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17798 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17799 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17800 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17801 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
17802 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17803 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17804 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
17805 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
17806 | |
17807 ;; | |
17808 esac | |
17809 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17810 $as_echo_n "checking for $ac_header... " >&6; } | |
17811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17812 $as_echo_n "(cached) " >&6 | |
17813 else | |
17814 eval "$as_ac_Header=\$ac_header_preproc" | |
17815 fi | |
17816 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
17817 $as_echo "$as_val"'` | |
17818 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17819 $as_echo "$ac_res" >&6; } | |
17820 | |
17821 fi | |
17822 if test `eval 'as_val=${'$as_ac_Header'} | |
17823 $as_echo "$as_val"'` = yes; then | |
17824 cat >>confdefs.h <<_ACEOF | 10937 cat >>confdefs.h <<_ACEOF |
17825 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 10938 #define HAVE_SYS_UN_H 1 |
17826 _ACEOF | 10939 _ACEOF |
17827 | 10940 |
17828 fi | 10941 fi |
17829 | 10942 |
17830 done | 10943 done |
17832 | 10945 |
17833 | 10946 |
17834 | 10947 |
17835 | 10948 |
17836 | 10949 |
17837 for ac_header in $ac_header_list | 10950 |
17838 do | 10951 for ac_func in $ac_func_list |
17839 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 10952 do : |
17840 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 10953 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
17841 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | 10954 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
17842 $as_echo_n "checking for $ac_header... " >&6; } | 10955 eval as_val=\$$as_ac_var |
17843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 10956 if test "x$as_val" = x""yes; then : |
17844 $as_echo_n "(cached) " >&6 | |
17845 fi | |
17846 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
17847 $as_echo "$as_val"'` | |
17848 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17849 $as_echo "$ac_res" >&6; } | |
17850 else | |
17851 # Is the header compilable? | |
17852 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17853 $as_echo_n "checking $ac_header usability... " >&6; } | |
17854 cat >conftest.$ac_ext <<_ACEOF | |
17855 /* confdefs.h. */ | |
17856 _ACEOF | |
17857 cat confdefs.h >>conftest.$ac_ext | |
17858 cat >>conftest.$ac_ext <<_ACEOF | |
17859 /* end confdefs.h. */ | |
17860 $ac_includes_default | |
17861 #include <$ac_header> | |
17862 _ACEOF | |
17863 rm -f conftest.$ac_objext | |
17864 if { (ac_try="$ac_compile" | |
17865 case "(($ac_try" in | |
17866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17867 *) ac_try_echo=$ac_try;; | |
17868 esac | |
17869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17870 $as_echo "$ac_try_echo") >&5 | |
17871 (eval "$ac_compile") 2>conftest.er1 | |
17872 ac_status=$? | |
17873 grep -v '^ *+' conftest.er1 >conftest.err | |
17874 rm -f conftest.er1 | |
17875 cat conftest.err >&5 | |
17876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17877 (exit $ac_status); } && { | |
17878 test -z "$ac_c_werror_flag" || | |
17879 test ! -s conftest.err | |
17880 } && test -s conftest.$ac_objext; then | |
17881 ac_header_compiler=yes | |
17882 else | |
17883 $as_echo "$as_me: failed program was:" >&5 | |
17884 sed 's/^/| /' conftest.$ac_ext >&5 | |
17885 | |
17886 ac_header_compiler=no | |
17887 fi | |
17888 | |
17889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17890 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17891 $as_echo "$ac_header_compiler" >&6; } | |
17892 | |
17893 # Is the header present? | |
17894 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17895 $as_echo_n "checking $ac_header presence... " >&6; } | |
17896 cat >conftest.$ac_ext <<_ACEOF | |
17897 /* confdefs.h. */ | |
17898 _ACEOF | |
17899 cat confdefs.h >>conftest.$ac_ext | |
17900 cat >>conftest.$ac_ext <<_ACEOF | |
17901 /* end confdefs.h. */ | |
17902 #include <$ac_header> | |
17903 _ACEOF | |
17904 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
17905 case "(($ac_try" in | |
17906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17907 *) ac_try_echo=$ac_try;; | |
17908 esac | |
17909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17910 $as_echo "$ac_try_echo") >&5 | |
17911 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
17912 ac_status=$? | |
17913 grep -v '^ *+' conftest.er1 >conftest.err | |
17914 rm -f conftest.er1 | |
17915 cat conftest.err >&5 | |
17916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17917 (exit $ac_status); } >/dev/null && { | |
17918 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
17919 test ! -s conftest.err | |
17920 }; then | |
17921 ac_header_preproc=yes | |
17922 else | |
17923 $as_echo "$as_me: failed program was:" >&5 | |
17924 sed 's/^/| /' conftest.$ac_ext >&5 | |
17925 | |
17926 ac_header_preproc=no | |
17927 fi | |
17928 | |
17929 rm -f conftest.err conftest.$ac_ext | |
17930 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17931 $as_echo "$ac_header_preproc" >&6; } | |
17932 | |
17933 # So? What about this header? | |
17934 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
17935 yes:no: ) | |
17936 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
17937 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17938 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
17939 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
17940 ac_header_preproc=yes | |
17941 ;; | |
17942 no:yes:* ) | |
17943 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
17944 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17945 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17946 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17947 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17948 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17949 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17950 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
17951 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17952 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17953 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
17954 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
17955 | |
17956 ;; | |
17957 esac | |
17958 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17959 $as_echo_n "checking for $ac_header... " >&6; } | |
17960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17961 $as_echo_n "(cached) " >&6 | |
17962 else | |
17963 eval "$as_ac_Header=\$ac_header_preproc" | |
17964 fi | |
17965 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
17966 $as_echo "$as_val"'` | |
17967 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17968 $as_echo "$ac_res" >&6; } | |
17969 | |
17970 fi | |
17971 if test `eval 'as_val=${'$as_ac_Header'} | |
17972 $as_echo "$as_val"'` = yes; then | |
17973 cat >>confdefs.h <<_ACEOF | |
17974 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17975 _ACEOF | |
17976 | |
17977 fi | |
17978 | |
17979 done | |
17980 | |
17981 | |
17982 | |
17983 | |
17984 | |
17985 | |
17986 | |
17987 | |
17988 | |
17989 for ac_func in $ac_func_list | |
17990 do | |
17991 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
17992 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
17993 $as_echo_n "checking for $ac_func... " >&6; } | |
17994 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
17995 $as_echo_n "(cached) " >&6 | |
17996 else | |
17997 cat >conftest.$ac_ext <<_ACEOF | |
17998 /* confdefs.h. */ | |
17999 _ACEOF | |
18000 cat confdefs.h >>conftest.$ac_ext | |
18001 cat >>conftest.$ac_ext <<_ACEOF | |
18002 /* end confdefs.h. */ | |
18003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
18004 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
18005 #define $ac_func innocuous_$ac_func | |
18006 | |
18007 /* System header to define __stub macros and hopefully few prototypes, | |
18008 which can conflict with char $ac_func (); below. | |
18009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18010 <limits.h> exists even on freestanding compilers. */ | |
18011 | |
18012 #ifdef __STDC__ | |
18013 # include <limits.h> | |
18014 #else | |
18015 # include <assert.h> | |
18016 #endif | |
18017 | |
18018 #undef $ac_func | |
18019 | |
18020 /* Override any GCC internal prototype to avoid an error. | |
18021 Use char because int might match the return type of a GCC | |
18022 builtin and then its argument prototype would still apply. */ | |
18023 #ifdef __cplusplus | |
18024 extern "C" | |
18025 #endif | |
18026 char $ac_func (); | |
18027 /* The GNU C library defines this for functions which it implements | |
18028 to always fail with ENOSYS. Some functions are actually named | |
18029 something starting with __ and the normal name is an alias. */ | |
18030 #if defined __stub_$ac_func || defined __stub___$ac_func | |
18031 choke me | |
18032 #endif | |
18033 | |
18034 int | |
18035 main () | |
18036 { | |
18037 return $ac_func (); | |
18038 ; | |
18039 return 0; | |
18040 } | |
18041 _ACEOF | |
18042 rm -f conftest.$ac_objext conftest$ac_exeext | |
18043 if { (ac_try="$ac_link" | |
18044 case "(($ac_try" in | |
18045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18046 *) ac_try_echo=$ac_try;; | |
18047 esac | |
18048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
18049 $as_echo "$ac_try_echo") >&5 | |
18050 (eval "$ac_link") 2>conftest.er1 | |
18051 ac_status=$? | |
18052 grep -v '^ *+' conftest.er1 >conftest.err | |
18053 rm -f conftest.er1 | |
18054 cat conftest.err >&5 | |
18055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18056 (exit $ac_status); } && { | |
18057 test -z "$ac_c_werror_flag" || | |
18058 test ! -s conftest.err | |
18059 } && test -s conftest$ac_exeext && { | |
18060 test "$cross_compiling" = yes || | |
18061 $as_test_x conftest$ac_exeext | |
18062 }; then | |
18063 eval "$as_ac_var=yes" | |
18064 else | |
18065 $as_echo "$as_me: failed program was:" >&5 | |
18066 sed 's/^/| /' conftest.$ac_ext >&5 | |
18067 | |
18068 eval "$as_ac_var=no" | |
18069 fi | |
18070 | |
18071 rm -rf conftest.dSYM | |
18072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
18073 conftest$ac_exeext conftest.$ac_ext | |
18074 fi | |
18075 ac_res=`eval 'as_val=${'$as_ac_var'} | |
18076 $as_echo "$as_val"'` | |
18077 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
18078 $as_echo "$ac_res" >&6; } | |
18079 if test `eval 'as_val=${'$as_ac_var'} | |
18080 $as_echo "$as_val"'` = yes; then | |
18081 cat >>confdefs.h <<_ACEOF | 10957 cat >>confdefs.h <<_ACEOF |
18082 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 10958 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
18083 _ACEOF | 10959 _ACEOF |
18084 | 10960 |
18085 fi | 10961 fi |
18087 | 10963 |
18088 | 10964 |
18089 | 10965 |
18090 | 10966 |
18091 | 10967 |
18092 | 10968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5 |
18093 | |
18094 | |
18095 | |
18096 | |
18097 | |
18098 | |
18099 | |
18100 | |
18101 | |
18102 | |
18103 | |
18104 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5 | |
18105 $as_echo_n "checking for working mktime... " >&6; } | 10969 $as_echo_n "checking for working mktime... " >&6; } |
18106 if test "${ac_cv_func_working_mktime+set}" = set; then | 10970 if test "${ac_cv_func_working_mktime+set}" = set; then : |
18107 $as_echo_n "(cached) " >&6 | 10971 $as_echo_n "(cached) " >&6 |
18108 else | 10972 else |
18109 if test "$cross_compiling" = yes; then | 10973 if test "$cross_compiling" = yes; then : |
18110 ac_cv_func_working_mktime=no | 10974 ac_cv_func_working_mktime=no |
18111 else | 10975 else |
18112 cat >conftest.$ac_ext <<_ACEOF | 10976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
18113 /* confdefs.h. */ | |
18114 _ACEOF | |
18115 cat confdefs.h >>conftest.$ac_ext | |
18116 cat >>conftest.$ac_ext <<_ACEOF | |
18117 /* end confdefs.h. */ | 10977 /* end confdefs.h. */ |
18118 /* Test program from Paul Eggert and Tony Leneis. */ | 10978 /* Test program from Paul Eggert and Tony Leneis. */ |
18119 #ifdef TIME_WITH_SYS_TIME | 10979 #ifdef TIME_WITH_SYS_TIME |
18120 # include <sys/time.h> | 10980 # include <sys/time.h> |
18121 # include <time.h> | 10981 # include <time.h> |
18308 return 1; | 11168 return 1; |
18309 } | 11169 } |
18310 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ()); | 11170 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ()); |
18311 } | 11171 } |
18312 _ACEOF | 11172 _ACEOF |
18313 rm -f conftest$ac_exeext | 11173 if ac_fn_c_try_run "$LINENO"; then : |
18314 if { (ac_try="$ac_link" | |
18315 case "(($ac_try" in | |
18316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18317 *) ac_try_echo=$ac_try;; | |
18318 esac | |
18319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
18320 $as_echo "$ac_try_echo") >&5 | |
18321 (eval "$ac_link") 2>&5 | |
18322 ac_status=$? | |
18323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18324 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18325 { (case "(($ac_try" in | |
18326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18327 *) ac_try_echo=$ac_try;; | |
18328 esac | |
18329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
18330 $as_echo "$ac_try_echo") >&5 | |
18331 (eval "$ac_try") 2>&5 | |
18332 ac_status=$? | |
18333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18334 (exit $ac_status); }; }; then | |
18335 ac_cv_func_working_mktime=yes | 11174 ac_cv_func_working_mktime=yes |
18336 else | 11175 else |
18337 $as_echo "$as_me: program exited with status $ac_status" >&5 | 11176 ac_cv_func_working_mktime=no |
18338 $as_echo "$as_me: failed program was:" >&5 | 11177 fi |
18339 sed 's/^/| /' conftest.$ac_ext >&5 | 11178 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
18340 | 11179 conftest.$ac_objext conftest.beam conftest.$ac_ext |
18341 ( exit $ac_status ) | 11180 fi |
18342 ac_cv_func_working_mktime=no | 11181 |
18343 fi | 11182 fi |
18344 rm -rf conftest.dSYM | 11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5 |
18345 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
18346 fi | |
18347 | |
18348 | |
18349 fi | |
18350 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5 | |
18351 $as_echo "$ac_cv_func_working_mktime" >&6; } | 11184 $as_echo "$ac_cv_func_working_mktime" >&6; } |
18352 if test $ac_cv_func_working_mktime = no; then | 11185 if test $ac_cv_func_working_mktime = no; then |
18353 case " $LIBOBJS " in | 11186 case " $LIBOBJS " in |
18354 *" mktime.$ac_objext "* ) ;; | 11187 *" mktime.$ac_objext "* ) ;; |
18355 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" | 11188 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" |
18358 | 11191 |
18359 fi | 11192 fi |
18360 | 11193 |
18361 if test "$ac_cv_func_working_mktime" = no; then | 11194 if test "$ac_cv_func_working_mktime" = no; then |
18362 | 11195 |
18363 cat >>confdefs.h <<\_ACEOF | 11196 $as_echo "#define BROKEN_MKTIME 1" >>confdefs.h |
18364 #define BROKEN_MKTIME 1 | |
18365 _ACEOF | |
18366 | 11197 |
18367 fi | 11198 fi |
18368 | 11199 |
18369 ac_have_func=no # yes means we've found a way to get the load average. | 11200 ac_have_func=no # yes means we've found a way to get the load average. |
18370 | 11201 |
18371 # Make sure getloadavg.c is where it belongs, at configure-time. | 11202 # Make sure getloadavg.c is where it belongs, at configure-time. |
18372 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" || | 11203 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" || |
18373 { { $as_echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5 | 11204 as_fn_error "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5 |
18374 $as_echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;} | |
18375 { (exit 1); exit 1; }; } | |
18376 | 11205 |
18377 ac_save_LIBS=$LIBS | 11206 ac_save_LIBS=$LIBS |
18378 | 11207 |
18379 # Check for getloadavg, but be sure not to touch the cache variable. | 11208 # Check for getloadavg, but be sure not to touch the cache variable. |
18380 ({ $as_echo "$as_me:$LINENO: checking for getloadavg" >&5 | 11209 (ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg" |
18381 $as_echo_n "checking for getloadavg... " >&6; } | 11210 if test "x$ac_cv_func_getloadavg" = x""yes; then : |
18382 if test "${ac_cv_func_getloadavg+set}" = set; then | |
18383 $as_echo_n "(cached) " >&6 | |
18384 else | |
18385 cat >conftest.$ac_ext <<_ACEOF | |
18386 /* confdefs.h. */ | |
18387 _ACEOF | |
18388 cat confdefs.h >>conftest.$ac_ext | |
18389 cat >>conftest.$ac_ext <<_ACEOF | |
18390 /* end confdefs.h. */ | |
18391 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg. | |
18392 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
18393 #define getloadavg innocuous_getloadavg | |
18394 | |
18395 /* System header to define __stub macros and hopefully few prototypes, | |
18396 which can conflict with char getloadavg (); below. | |
18397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18398 <limits.h> exists even on freestanding compilers. */ | |
18399 | |
18400 #ifdef __STDC__ | |
18401 # include <limits.h> | |
18402 #else | |
18403 # include <assert.h> | |
18404 #endif | |
18405 | |
18406 #undef getloadavg | |
18407 | |
18408 /* Override any GCC internal prototype to avoid an error. | |
18409 Use char because int might match the return type of a GCC | |
18410 builtin and then its argument prototype would still apply. */ | |
18411 #ifdef __cplusplus | |
18412 extern "C" | |
18413 #endif | |
18414 char getloadavg (); | |
18415 /* The GNU C library defines this for functions which it implements | |
18416 to always fail with ENOSYS. Some functions are actually named | |
18417 something starting with __ and the normal name is an alias. */ | |
18418 #if defined __stub_getloadavg || defined __stub___getloadavg | |
18419 choke me | |
18420 #endif | |
18421 | |
18422 int | |
18423 main () | |
18424 { | |
18425 return getloadavg (); | |
18426 ; | |
18427 return 0; | |
18428 } | |
18429 _ACEOF | |
18430 rm -f conftest.$ac_objext conftest$ac_exeext | |
18431 if { (ac_try="$ac_link" | |
18432 case "(($ac_try" in | |
18433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18434 *) ac_try_echo=$ac_try;; | |
18435 esac | |
18436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
18437 $as_echo "$ac_try_echo") >&5 | |
18438 (eval "$ac_link") 2>conftest.er1 | |
18439 ac_status=$? | |
18440 grep -v '^ *+' conftest.er1 >conftest.err | |
18441 rm -f conftest.er1 | |
18442 cat conftest.err >&5 | |
18443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18444 (exit $ac_status); } && { | |
18445 test -z "$ac_c_werror_flag" || | |
18446 test ! -s conftest.err | |
18447 } && test -s conftest$ac_exeext && { | |
18448 test "$cross_compiling" = yes || | |
18449 $as_test_x conftest$ac_exeext | |
18450 }; then | |
18451 ac_cv_func_getloadavg=yes | |
18452 else | |
18453 $as_echo "$as_me: failed program was:" >&5 | |
18454 sed 's/^/| /' conftest.$ac_ext >&5 | |
18455 | |
18456 ac_cv_func_getloadavg=no | |
18457 fi | |
18458 | |
18459 rm -rf conftest.dSYM | |
18460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
18461 conftest$ac_exeext conftest.$ac_ext | |
18462 fi | |
18463 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5 | |
18464 $as_echo "$ac_cv_func_getloadavg" >&6; } | |
18465 if test $ac_cv_func_getloadavg = yes; then | |
18466 exit 0 | 11211 exit 0 |
18467 else | 11212 else |
18468 exit 1 | 11213 exit 1 |
18469 fi | 11214 fi |
18470 ) && ac_have_func=yes | 11215 ) && ac_have_func=yes |
18471 | 11216 |
18472 # On HPUX9, an unprivileged user can get load averages through this function. | 11217 # On HPUX9, an unprivileged user can get load averages through this function. |
18473 | |
18474 for ac_func in pstat_getdynamic | 11218 for ac_func in pstat_getdynamic |
18475 do | 11219 do : |
18476 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 11220 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic" |
18477 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | 11221 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then : |
18478 $as_echo_n "checking for $ac_func... " >&6; } | |
18479 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
18480 $as_echo_n "(cached) " >&6 | |
18481 else | |
18482 cat >conftest.$ac_ext <<_ACEOF | |
18483 /* confdefs.h. */ | |
18484 _ACEOF | |
18485 cat confdefs.h >>conftest.$ac_ext | |
18486 cat >>conftest.$ac_ext <<_ACEOF | |
18487 /* end confdefs.h. */ | |
18488 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
18489 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
18490 #define $ac_func innocuous_$ac_func | |
18491 | |
18492 /* System header to define __stub macros and hopefully few prototypes, | |
18493 which can conflict with char $ac_func (); below. | |
18494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18495 <limits.h> exists even on freestanding compilers. */ | |
18496 | |
18497 #ifdef __STDC__ | |
18498 # include <limits.h> | |
18499 #else | |
18500 # include <assert.h> | |
18501 #endif | |
18502 | |
18503 #undef $ac_func | |
18504 | |
18505 /* Override any GCC internal prototype to avoid an error. | |
18506 Use char because int might match the return type of a GCC | |
18507 builtin and then its argument prototype would still apply. */ | |
18508 #ifdef __cplusplus | |
18509 extern "C" | |
18510 #endif | |
18511 char $ac_func (); | |
18512 /* The GNU C library defines this for functions which it implements | |
18513 to always fail with ENOSYS. Some functions are actually named | |
18514 something starting with __ and the normal name is an alias. */ | |
18515 #if defined __stub_$ac_func || defined __stub___$ac_func | |
18516 choke me | |
18517 #endif | |
18518 | |
18519 int | |
18520 main () | |
18521 { | |
18522 return $ac_func (); | |
18523 ; | |
18524 return 0; | |
18525 } | |
18526 _ACEOF | |
18527 rm -f conftest.$ac_objext conftest$ac_exeext | |
18528 if { (ac_try="$ac_link" | |
18529 case "(($ac_try" in | |
18530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18531 *) ac_try_echo=$ac_try;; | |
18532 esac | |
18533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
18534 $as_echo "$ac_try_echo") >&5 | |
18535 (eval "$ac_link") 2>conftest.er1 | |
18536 ac_status=$? | |
18537 grep -v '^ *+' conftest.er1 >conftest.err | |
18538 rm -f conftest.er1 | |
18539 cat conftest.err >&5 | |
18540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18541 (exit $ac_status); } && { | |
18542 test -z "$ac_c_werror_flag" || | |
18543 test ! -s conftest.err | |
18544 } && test -s conftest$ac_exeext && { | |
18545 test "$cross_compiling" = yes || | |
18546 $as_test_x conftest$ac_exeext | |
18547 }; then | |
18548 eval "$as_ac_var=yes" | |
18549 else | |
18550 $as_echo "$as_me: failed program was:" >&5 | |
18551 sed 's/^/| /' conftest.$ac_ext >&5 | |
18552 | |
18553 eval "$as_ac_var=no" | |
18554 fi | |
18555 | |
18556 rm -rf conftest.dSYM | |
18557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
18558 conftest$ac_exeext conftest.$ac_ext | |
18559 fi | |
18560 ac_res=`eval 'as_val=${'$as_ac_var'} | |
18561 $as_echo "$as_val"'` | |
18562 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
18563 $as_echo "$ac_res" >&6; } | |
18564 if test `eval 'as_val=${'$as_ac_var'} | |
18565 $as_echo "$as_val"'` = yes; then | |
18566 cat >>confdefs.h <<_ACEOF | 11222 cat >>confdefs.h <<_ACEOF |
18567 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 11223 #define HAVE_PSTAT_GETDYNAMIC 1 |
18568 _ACEOF | 11224 _ACEOF |
18569 | 11225 |
18570 fi | 11226 fi |
18571 done | 11227 done |
18572 | 11228 |
18573 | 11229 |
18574 # Solaris has libkstat which does not require root. | 11230 # Solaris has libkstat which does not require root. |
18575 | 11231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5 |
18576 { $as_echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5 | |
18577 $as_echo_n "checking for kstat_open in -lkstat... " >&6; } | 11232 $as_echo_n "checking for kstat_open in -lkstat... " >&6; } |
18578 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then | 11233 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then : |
18579 $as_echo_n "(cached) " >&6 | 11234 $as_echo_n "(cached) " >&6 |
18580 else | 11235 else |
18581 ac_check_lib_save_LIBS=$LIBS | 11236 ac_check_lib_save_LIBS=$LIBS |
18582 LIBS="-lkstat $LIBS" | 11237 LIBS="-lkstat $LIBS" |
18583 cat >conftest.$ac_ext <<_ACEOF | 11238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
18584 /* confdefs.h. */ | |
18585 _ACEOF | |
18586 cat confdefs.h >>conftest.$ac_ext | |
18587 cat >>conftest.$ac_ext <<_ACEOF | |
18588 /* end confdefs.h. */ | 11239 /* end confdefs.h. */ |
18589 | 11240 |
18590 /* Override any GCC internal prototype to avoid an error. | 11241 /* Override any GCC internal prototype to avoid an error. |
18591 Use char because int might match the return type of a GCC | 11242 Use char because int might match the return type of a GCC |
18592 builtin and then its argument prototype would still apply. */ | 11243 builtin and then its argument prototype would still apply. */ |
18600 return kstat_open (); | 11251 return kstat_open (); |
18601 ; | 11252 ; |
18602 return 0; | 11253 return 0; |
18603 } | 11254 } |
18604 _ACEOF | 11255 _ACEOF |
18605 rm -f conftest.$ac_objext conftest$ac_exeext | 11256 if ac_fn_c_try_link "$LINENO"; then : |
18606 if { (ac_try="$ac_link" | |
18607 case "(($ac_try" in | |
18608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18609 *) ac_try_echo=$ac_try;; | |
18610 esac | |
18611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
18612 $as_echo "$ac_try_echo") >&5 | |
18613 (eval "$ac_link") 2>conftest.er1 | |
18614 ac_status=$? | |
18615 grep -v '^ *+' conftest.er1 >conftest.err | |
18616 rm -f conftest.er1 | |
18617 cat conftest.err >&5 | |
18618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18619 (exit $ac_status); } && { | |
18620 test -z "$ac_c_werror_flag" || | |
18621 test ! -s conftest.err | |
18622 } && test -s conftest$ac_exeext && { | |
18623 test "$cross_compiling" = yes || | |
18624 $as_test_x conftest$ac_exeext | |
18625 }; then | |
18626 ac_cv_lib_kstat_kstat_open=yes | 11257 ac_cv_lib_kstat_kstat_open=yes |
18627 else | 11258 else |
18628 $as_echo "$as_me: failed program was:" >&5 | 11259 ac_cv_lib_kstat_kstat_open=no |
18629 sed 's/^/| /' conftest.$ac_ext >&5 | 11260 fi |
18630 | 11261 rm -f core conftest.err conftest.$ac_objext \ |
18631 ac_cv_lib_kstat_kstat_open=no | 11262 conftest$ac_exeext conftest.$ac_ext |
18632 fi | |
18633 | |
18634 rm -rf conftest.dSYM | |
18635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
18636 conftest$ac_exeext conftest.$ac_ext | |
18637 LIBS=$ac_check_lib_save_LIBS | 11263 LIBS=$ac_check_lib_save_LIBS |
18638 fi | 11264 fi |
18639 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5 | 11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5 |
18640 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; } | 11266 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; } |
18641 if test $ac_cv_lib_kstat_kstat_open = yes; then | 11267 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then : |
18642 cat >>confdefs.h <<_ACEOF | 11268 cat >>confdefs.h <<_ACEOF |
18643 #define HAVE_LIBKSTAT 1 | 11269 #define HAVE_LIBKSTAT 1 |
18644 _ACEOF | 11270 _ACEOF |
18645 | 11271 |
18646 LIBS="-lkstat $LIBS" | 11272 LIBS="-lkstat $LIBS" |
18652 # Some systems with -lutil have (and need) -lkvm as well, some do not. | 11278 # Some systems with -lutil have (and need) -lkvm as well, some do not. |
18653 # On Solaris, -lkvm requires nlist from -lelf, so check that first | 11279 # On Solaris, -lkvm requires nlist from -lelf, so check that first |
18654 # to get the right answer into the cache. | 11280 # to get the right answer into the cache. |
18655 # For kstat on solaris, we need libelf to force the definition of SVR4 below. | 11281 # For kstat on solaris, we need libelf to force the definition of SVR4 below. |
18656 if test $ac_have_func = no; then | 11282 if test $ac_have_func = no; then |
18657 { $as_echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5 | 11283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5 |
18658 $as_echo_n "checking for elf_begin in -lelf... " >&6; } | 11284 $as_echo_n "checking for elf_begin in -lelf... " >&6; } |
18659 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then | 11285 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then : |
18660 $as_echo_n "(cached) " >&6 | 11286 $as_echo_n "(cached) " >&6 |
18661 else | 11287 else |
18662 ac_check_lib_save_LIBS=$LIBS | 11288 ac_check_lib_save_LIBS=$LIBS |
18663 LIBS="-lelf $LIBS" | 11289 LIBS="-lelf $LIBS" |
18664 cat >conftest.$ac_ext <<_ACEOF | 11290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
18665 /* confdefs.h. */ | |
18666 _ACEOF | |
18667 cat confdefs.h >>conftest.$ac_ext | |
18668 cat >>conftest.$ac_ext <<_ACEOF | |
18669 /* end confdefs.h. */ | 11291 /* end confdefs.h. */ |
18670 | 11292 |
18671 /* Override any GCC internal prototype to avoid an error. | 11293 /* Override any GCC internal prototype to avoid an error. |
18672 Use char because int might match the return type of a GCC | 11294 Use char because int might match the return type of a GCC |
18673 builtin and then its argument prototype would still apply. */ | 11295 builtin and then its argument prototype would still apply. */ |
18681 return elf_begin (); | 11303 return elf_begin (); |
18682 ; | 11304 ; |
18683 return 0; | 11305 return 0; |
18684 } | 11306 } |
18685 _ACEOF | 11307 _ACEOF |
18686 rm -f conftest.$ac_objext conftest$ac_exeext | 11308 if ac_fn_c_try_link "$LINENO"; then : |
18687 if { (ac_try="$ac_link" | |
18688 case "(($ac_try" in | |
18689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18690 *) ac_try_echo=$ac_try;; | |
18691 esac | |
18692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
18693 $as_echo "$ac_try_echo") >&5 | |
18694 (eval "$ac_link") 2>conftest.er1 | |
18695 ac_status=$? | |
18696 grep -v '^ *+' conftest.er1 >conftest.err | |
18697 rm -f conftest.er1 | |
18698 cat conftest.err >&5 | |
18699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18700 (exit $ac_status); } && { | |
18701 test -z "$ac_c_werror_flag" || | |
18702 test ! -s conftest.err | |
18703 } && test -s conftest$ac_exeext && { | |
18704 test "$cross_compiling" = yes || | |
18705 $as_test_x conftest$ac_exeext | |
18706 }; then | |
18707 ac_cv_lib_elf_elf_begin=yes | 11309 ac_cv_lib_elf_elf_begin=yes |
18708 else | 11310 else |
18709 $as_echo "$as_me: failed program was:" >&5 | 11311 ac_cv_lib_elf_elf_begin=no |
18710 sed 's/^/| /' conftest.$ac_ext >&5 | 11312 fi |
18711 | 11313 rm -f core conftest.err conftest.$ac_objext \ |
18712 ac_cv_lib_elf_elf_begin=no | 11314 conftest$ac_exeext conftest.$ac_ext |
18713 fi | |
18714 | |
18715 rm -rf conftest.dSYM | |
18716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
18717 conftest$ac_exeext conftest.$ac_ext | |
18718 LIBS=$ac_check_lib_save_LIBS | 11315 LIBS=$ac_check_lib_save_LIBS |
18719 fi | 11316 fi |
18720 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5 | 11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5 |
18721 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; } | 11318 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; } |
18722 if test $ac_cv_lib_elf_elf_begin = yes; then | 11319 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then : |
18723 LIBS="-lelf $LIBS" | 11320 LIBS="-lelf $LIBS" |
18724 fi | 11321 fi |
18725 | 11322 |
18726 fi | 11323 fi |
18727 if test $ac_have_func = no; then | 11324 if test $ac_have_func = no; then |
18728 { $as_echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5 | 11325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5 |
18729 $as_echo_n "checking for kvm_open in -lkvm... " >&6; } | 11326 $as_echo_n "checking for kvm_open in -lkvm... " >&6; } |
18730 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then | 11327 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then : |
18731 $as_echo_n "(cached) " >&6 | 11328 $as_echo_n "(cached) " >&6 |
18732 else | 11329 else |
18733 ac_check_lib_save_LIBS=$LIBS | 11330 ac_check_lib_save_LIBS=$LIBS |
18734 LIBS="-lkvm $LIBS" | 11331 LIBS="-lkvm $LIBS" |
18735 cat >conftest.$ac_ext <<_ACEOF | 11332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
18736 /* confdefs.h. */ | |
18737 _ACEOF | |
18738 cat confdefs.h >>conftest.$ac_ext | |
18739 cat >>conftest.$ac_ext <<_ACEOF | |
18740 /* end confdefs.h. */ | 11333 /* end confdefs.h. */ |
18741 | 11334 |
18742 /* Override any GCC internal prototype to avoid an error. | 11335 /* Override any GCC internal prototype to avoid an error. |
18743 Use char because int might match the return type of a GCC | 11336 Use char because int might match the return type of a GCC |
18744 builtin and then its argument prototype would still apply. */ | 11337 builtin and then its argument prototype would still apply. */ |
18752 return kvm_open (); | 11345 return kvm_open (); |
18753 ; | 11346 ; |
18754 return 0; | 11347 return 0; |
18755 } | 11348 } |
18756 _ACEOF | 11349 _ACEOF |
18757 rm -f conftest.$ac_objext conftest$ac_exeext | 11350 if ac_fn_c_try_link "$LINENO"; then : |
18758 if { (ac_try="$ac_link" | |
18759 case "(($ac_try" in | |
18760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18761 *) ac_try_echo=$ac_try;; | |
18762 esac | |
18763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
18764 $as_echo "$ac_try_echo") >&5 | |
18765 (eval "$ac_link") 2>conftest.er1 | |
18766 ac_status=$? | |
18767 grep -v '^ *+' conftest.er1 >conftest.err | |
18768 rm -f conftest.er1 | |
18769 cat conftest.err >&5 | |
18770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18771 (exit $ac_status); } && { | |
18772 test -z "$ac_c_werror_flag" || | |
18773 test ! -s conftest.err | |
18774 } && test -s conftest$ac_exeext && { | |
18775 test "$cross_compiling" = yes || | |
18776 $as_test_x conftest$ac_exeext | |
18777 }; then | |
18778 ac_cv_lib_kvm_kvm_open=yes | 11351 ac_cv_lib_kvm_kvm_open=yes |
18779 else | 11352 else |
18780 $as_echo "$as_me: failed program was:" >&5 | 11353 ac_cv_lib_kvm_kvm_open=no |
18781 sed 's/^/| /' conftest.$ac_ext >&5 | 11354 fi |
18782 | 11355 rm -f core conftest.err conftest.$ac_objext \ |
18783 ac_cv_lib_kvm_kvm_open=no | 11356 conftest$ac_exeext conftest.$ac_ext |
18784 fi | |
18785 | |
18786 rm -rf conftest.dSYM | |
18787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
18788 conftest$ac_exeext conftest.$ac_ext | |
18789 LIBS=$ac_check_lib_save_LIBS | 11357 LIBS=$ac_check_lib_save_LIBS |
18790 fi | 11358 fi |
18791 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5 | 11359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5 |
18792 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; } | 11360 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; } |
18793 if test $ac_cv_lib_kvm_kvm_open = yes; then | 11361 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then : |
18794 LIBS="-lkvm $LIBS" | 11362 LIBS="-lkvm $LIBS" |
18795 fi | 11363 fi |
18796 | 11364 |
18797 # Check for the 4.4BSD definition of getloadavg. | 11365 # Check for the 4.4BSD definition of getloadavg. |
18798 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5 | 11366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5 |
18799 $as_echo_n "checking for getloadavg in -lutil... " >&6; } | 11367 $as_echo_n "checking for getloadavg in -lutil... " >&6; } |
18800 if test "${ac_cv_lib_util_getloadavg+set}" = set; then | 11368 if test "${ac_cv_lib_util_getloadavg+set}" = set; then : |
18801 $as_echo_n "(cached) " >&6 | 11369 $as_echo_n "(cached) " >&6 |
18802 else | 11370 else |
18803 ac_check_lib_save_LIBS=$LIBS | 11371 ac_check_lib_save_LIBS=$LIBS |
18804 LIBS="-lutil $LIBS" | 11372 LIBS="-lutil $LIBS" |
18805 cat >conftest.$ac_ext <<_ACEOF | 11373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
18806 /* confdefs.h. */ | |
18807 _ACEOF | |
18808 cat confdefs.h >>conftest.$ac_ext | |
18809 cat >>conftest.$ac_ext <<_ACEOF | |
18810 /* end confdefs.h. */ | 11374 /* end confdefs.h. */ |
18811 | 11375 |
18812 /* Override any GCC internal prototype to avoid an error. | 11376 /* Override any GCC internal prototype to avoid an error. |
18813 Use char because int might match the return type of a GCC | 11377 Use char because int might match the return type of a GCC |
18814 builtin and then its argument prototype would still apply. */ | 11378 builtin and then its argument prototype would still apply. */ |
18822 return getloadavg (); | 11386 return getloadavg (); |
18823 ; | 11387 ; |
18824 return 0; | 11388 return 0; |
18825 } | 11389 } |
18826 _ACEOF | 11390 _ACEOF |
18827 rm -f conftest.$ac_objext conftest$ac_exeext | 11391 if ac_fn_c_try_link "$LINENO"; then : |
18828 if { (ac_try="$ac_link" | |
18829 case "(($ac_try" in | |
18830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18831 *) ac_try_echo=$ac_try;; | |
18832 esac | |
18833 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
18834 $as_echo "$ac_try_echo") >&5 | |
18835 (eval "$ac_link") 2>conftest.er1 | |
18836 ac_status=$? | |
18837 grep -v '^ *+' conftest.er1 >conftest.err | |
18838 rm -f conftest.er1 | |
18839 cat conftest.err >&5 | |
18840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18841 (exit $ac_status); } && { | |
18842 test -z "$ac_c_werror_flag" || | |
18843 test ! -s conftest.err | |
18844 } && test -s conftest$ac_exeext && { | |
18845 test "$cross_compiling" = yes || | |
18846 $as_test_x conftest$ac_exeext | |
18847 }; then | |
18848 ac_cv_lib_util_getloadavg=yes | 11392 ac_cv_lib_util_getloadavg=yes |
18849 else | 11393 else |
18850 $as_echo "$as_me: failed program was:" >&5 | 11394 ac_cv_lib_util_getloadavg=no |
18851 sed 's/^/| /' conftest.$ac_ext >&5 | 11395 fi |
18852 | 11396 rm -f core conftest.err conftest.$ac_objext \ |
18853 ac_cv_lib_util_getloadavg=no | 11397 conftest$ac_exeext conftest.$ac_ext |
18854 fi | |
18855 | |
18856 rm -rf conftest.dSYM | |
18857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
18858 conftest$ac_exeext conftest.$ac_ext | |
18859 LIBS=$ac_check_lib_save_LIBS | 11398 LIBS=$ac_check_lib_save_LIBS |
18860 fi | 11399 fi |
18861 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5 | 11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5 |
18862 $as_echo "$ac_cv_lib_util_getloadavg" >&6; } | 11401 $as_echo "$ac_cv_lib_util_getloadavg" >&6; } |
18863 if test $ac_cv_lib_util_getloadavg = yes; then | 11402 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then : |
18864 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes | 11403 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes |
18865 fi | 11404 fi |
18866 | 11405 |
18867 fi | 11406 fi |
18868 | 11407 |
18869 if test $ac_have_func = no; then | 11408 if test $ac_have_func = no; then |
18870 # There is a commonly available library for RS/6000 AIX. | 11409 # There is a commonly available library for RS/6000 AIX. |
18871 # Since it is not a standard part of AIX, it might be installed locally. | 11410 # Since it is not a standard part of AIX, it might be installed locally. |
18872 ac_getloadavg_LIBS=$LIBS | 11411 ac_getloadavg_LIBS=$LIBS |
18873 LIBS="-L/usr/local/lib $LIBS" | 11412 LIBS="-L/usr/local/lib $LIBS" |
18874 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5 | 11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5 |
18875 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; } | 11414 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; } |
18876 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then | 11415 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then : |
18877 $as_echo_n "(cached) " >&6 | 11416 $as_echo_n "(cached) " >&6 |
18878 else | 11417 else |
18879 ac_check_lib_save_LIBS=$LIBS | 11418 ac_check_lib_save_LIBS=$LIBS |
18880 LIBS="-lgetloadavg $LIBS" | 11419 LIBS="-lgetloadavg $LIBS" |
18881 cat >conftest.$ac_ext <<_ACEOF | 11420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
18882 /* confdefs.h. */ | |
18883 _ACEOF | |
18884 cat confdefs.h >>conftest.$ac_ext | |
18885 cat >>conftest.$ac_ext <<_ACEOF | |
18886 /* end confdefs.h. */ | 11421 /* end confdefs.h. */ |
18887 | 11422 |
18888 /* Override any GCC internal prototype to avoid an error. | 11423 /* Override any GCC internal prototype to avoid an error. |
18889 Use char because int might match the return type of a GCC | 11424 Use char because int might match the return type of a GCC |
18890 builtin and then its argument prototype would still apply. */ | 11425 builtin and then its argument prototype would still apply. */ |
18898 return getloadavg (); | 11433 return getloadavg (); |
18899 ; | 11434 ; |
18900 return 0; | 11435 return 0; |
18901 } | 11436 } |
18902 _ACEOF | 11437 _ACEOF |
18903 rm -f conftest.$ac_objext conftest$ac_exeext | 11438 if ac_fn_c_try_link "$LINENO"; then : |
18904 if { (ac_try="$ac_link" | |
18905 case "(($ac_try" in | |
18906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18907 *) ac_try_echo=$ac_try;; | |
18908 esac | |
18909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
18910 $as_echo "$ac_try_echo") >&5 | |
18911 (eval "$ac_link") 2>conftest.er1 | |
18912 ac_status=$? | |
18913 grep -v '^ *+' conftest.er1 >conftest.err | |
18914 rm -f conftest.er1 | |
18915 cat conftest.err >&5 | |
18916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18917 (exit $ac_status); } && { | |
18918 test -z "$ac_c_werror_flag" || | |
18919 test ! -s conftest.err | |
18920 } && test -s conftest$ac_exeext && { | |
18921 test "$cross_compiling" = yes || | |
18922 $as_test_x conftest$ac_exeext | |
18923 }; then | |
18924 ac_cv_lib_getloadavg_getloadavg=yes | 11439 ac_cv_lib_getloadavg_getloadavg=yes |
18925 else | 11440 else |
18926 $as_echo "$as_me: failed program was:" >&5 | 11441 ac_cv_lib_getloadavg_getloadavg=no |
18927 sed 's/^/| /' conftest.$ac_ext >&5 | 11442 fi |
18928 | 11443 rm -f core conftest.err conftest.$ac_objext \ |
18929 ac_cv_lib_getloadavg_getloadavg=no | 11444 conftest$ac_exeext conftest.$ac_ext |
18930 fi | |
18931 | |
18932 rm -rf conftest.dSYM | |
18933 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
18934 conftest$ac_exeext conftest.$ac_ext | |
18935 LIBS=$ac_check_lib_save_LIBS | 11445 LIBS=$ac_check_lib_save_LIBS |
18936 fi | 11446 fi |
18937 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5 | 11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5 |
18938 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; } | 11448 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; } |
18939 if test $ac_cv_lib_getloadavg_getloadavg = yes; then | 11449 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then : |
18940 LIBS="-lgetloadavg $LIBS" | 11450 LIBS="-lgetloadavg $LIBS" |
18941 else | 11451 else |
18942 LIBS=$ac_getloadavg_LIBS | 11452 LIBS=$ac_getloadavg_LIBS |
18943 fi | 11453 fi |
18944 | 11454 |
18945 fi | 11455 fi |
18946 | 11456 |
18947 # Make sure it is really in the library, if we think we found it, | 11457 # Make sure it is really in the library, if we think we found it, |
18948 # otherwise set up the replacement function. | 11458 # otherwise set up the replacement function. |
18949 | |
18950 for ac_func in getloadavg | 11459 for ac_func in getloadavg |
18951 do | 11460 do : |
18952 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 11461 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg" |
18953 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | 11462 if test "x$ac_cv_func_getloadavg" = x""yes; then : |
18954 $as_echo_n "checking for $ac_func... " >&6; } | |
18955 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
18956 $as_echo_n "(cached) " >&6 | |
18957 else | |
18958 cat >conftest.$ac_ext <<_ACEOF | |
18959 /* confdefs.h. */ | |
18960 _ACEOF | |
18961 cat confdefs.h >>conftest.$ac_ext | |
18962 cat >>conftest.$ac_ext <<_ACEOF | |
18963 /* end confdefs.h. */ | |
18964 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
18965 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
18966 #define $ac_func innocuous_$ac_func | |
18967 | |
18968 /* System header to define __stub macros and hopefully few prototypes, | |
18969 which can conflict with char $ac_func (); below. | |
18970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18971 <limits.h> exists even on freestanding compilers. */ | |
18972 | |
18973 #ifdef __STDC__ | |
18974 # include <limits.h> | |
18975 #else | |
18976 # include <assert.h> | |
18977 #endif | |
18978 | |
18979 #undef $ac_func | |
18980 | |
18981 /* Override any GCC internal prototype to avoid an error. | |
18982 Use char because int might match the return type of a GCC | |
18983 builtin and then its argument prototype would still apply. */ | |
18984 #ifdef __cplusplus | |
18985 extern "C" | |
18986 #endif | |
18987 char $ac_func (); | |
18988 /* The GNU C library defines this for functions which it implements | |
18989 to always fail with ENOSYS. Some functions are actually named | |
18990 something starting with __ and the normal name is an alias. */ | |
18991 #if defined __stub_$ac_func || defined __stub___$ac_func | |
18992 choke me | |
18993 #endif | |
18994 | |
18995 int | |
18996 main () | |
18997 { | |
18998 return $ac_func (); | |
18999 ; | |
19000 return 0; | |
19001 } | |
19002 _ACEOF | |
19003 rm -f conftest.$ac_objext conftest$ac_exeext | |
19004 if { (ac_try="$ac_link" | |
19005 case "(($ac_try" in | |
19006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19007 *) ac_try_echo=$ac_try;; | |
19008 esac | |
19009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19010 $as_echo "$ac_try_echo") >&5 | |
19011 (eval "$ac_link") 2>conftest.er1 | |
19012 ac_status=$? | |
19013 grep -v '^ *+' conftest.er1 >conftest.err | |
19014 rm -f conftest.er1 | |
19015 cat conftest.err >&5 | |
19016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19017 (exit $ac_status); } && { | |
19018 test -z "$ac_c_werror_flag" || | |
19019 test ! -s conftest.err | |
19020 } && test -s conftest$ac_exeext && { | |
19021 test "$cross_compiling" = yes || | |
19022 $as_test_x conftest$ac_exeext | |
19023 }; then | |
19024 eval "$as_ac_var=yes" | |
19025 else | |
19026 $as_echo "$as_me: failed program was:" >&5 | |
19027 sed 's/^/| /' conftest.$ac_ext >&5 | |
19028 | |
19029 eval "$as_ac_var=no" | |
19030 fi | |
19031 | |
19032 rm -rf conftest.dSYM | |
19033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
19034 conftest$ac_exeext conftest.$ac_ext | |
19035 fi | |
19036 ac_res=`eval 'as_val=${'$as_ac_var'} | |
19037 $as_echo "$as_val"'` | |
19038 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
19039 $as_echo "$ac_res" >&6; } | |
19040 if test `eval 'as_val=${'$as_ac_var'} | |
19041 $as_echo "$as_val"'` = yes; then | |
19042 cat >>confdefs.h <<_ACEOF | 11463 cat >>confdefs.h <<_ACEOF |
19043 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 11464 #define HAVE_GETLOADAVG 1 |
19044 _ACEOF | 11465 _ACEOF |
19045 | 11466 |
19046 else | 11467 else |
19047 case " $LIBOBJS " in | 11468 case " $LIBOBJS " in |
19048 *" getloadavg.$ac_objext "* ) ;; | 11469 *" getloadavg.$ac_objext "* ) ;; |
19049 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" | 11470 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" |
19050 ;; | 11471 ;; |
19051 esac | 11472 esac |
19052 | 11473 |
19053 | 11474 |
19054 cat >>confdefs.h <<\_ACEOF | 11475 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h |
19055 #define C_GETLOADAVG 1 | |
19056 _ACEOF | |
19057 | 11476 |
19058 # Figure out what our getloadavg.c needs. | 11477 # Figure out what our getloadavg.c needs. |
19059 ac_have_func=no | 11478 ac_have_func=no |
19060 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then | 11479 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default" |
19061 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5 | 11480 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then : |
19062 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; } | |
19063 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then | |
19064 $as_echo_n "(cached) " >&6 | |
19065 fi | |
19066 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5 | |
19067 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; } | |
19068 else | |
19069 # Is the header compilable? | |
19070 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5 | |
19071 $as_echo_n "checking sys/dg_sys_info.h usability... " >&6; } | |
19072 cat >conftest.$ac_ext <<_ACEOF | |
19073 /* confdefs.h. */ | |
19074 _ACEOF | |
19075 cat confdefs.h >>conftest.$ac_ext | |
19076 cat >>conftest.$ac_ext <<_ACEOF | |
19077 /* end confdefs.h. */ | |
19078 $ac_includes_default | |
19079 #include <sys/dg_sys_info.h> | |
19080 _ACEOF | |
19081 rm -f conftest.$ac_objext | |
19082 if { (ac_try="$ac_compile" | |
19083 case "(($ac_try" in | |
19084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19085 *) ac_try_echo=$ac_try;; | |
19086 esac | |
19087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19088 $as_echo "$ac_try_echo") >&5 | |
19089 (eval "$ac_compile") 2>conftest.er1 | |
19090 ac_status=$? | |
19091 grep -v '^ *+' conftest.er1 >conftest.err | |
19092 rm -f conftest.er1 | |
19093 cat conftest.err >&5 | |
19094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19095 (exit $ac_status); } && { | |
19096 test -z "$ac_c_werror_flag" || | |
19097 test ! -s conftest.err | |
19098 } && test -s conftest.$ac_objext; then | |
19099 ac_header_compiler=yes | |
19100 else | |
19101 $as_echo "$as_me: failed program was:" >&5 | |
19102 sed 's/^/| /' conftest.$ac_ext >&5 | |
19103 | |
19104 ac_header_compiler=no | |
19105 fi | |
19106 | |
19107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
19108 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
19109 $as_echo "$ac_header_compiler" >&6; } | |
19110 | |
19111 # Is the header present? | |
19112 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5 | |
19113 $as_echo_n "checking sys/dg_sys_info.h presence... " >&6; } | |
19114 cat >conftest.$ac_ext <<_ACEOF | |
19115 /* confdefs.h. */ | |
19116 _ACEOF | |
19117 cat confdefs.h >>conftest.$ac_ext | |
19118 cat >>conftest.$ac_ext <<_ACEOF | |
19119 /* end confdefs.h. */ | |
19120 #include <sys/dg_sys_info.h> | |
19121 _ACEOF | |
19122 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
19123 case "(($ac_try" in | |
19124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19125 *) ac_try_echo=$ac_try;; | |
19126 esac | |
19127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19128 $as_echo "$ac_try_echo") >&5 | |
19129 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
19130 ac_status=$? | |
19131 grep -v '^ *+' conftest.er1 >conftest.err | |
19132 rm -f conftest.er1 | |
19133 cat conftest.err >&5 | |
19134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19135 (exit $ac_status); } >/dev/null && { | |
19136 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
19137 test ! -s conftest.err | |
19138 }; then | |
19139 ac_header_preproc=yes | |
19140 else | |
19141 $as_echo "$as_me: failed program was:" >&5 | |
19142 sed 's/^/| /' conftest.$ac_ext >&5 | |
19143 | |
19144 ac_header_preproc=no | |
19145 fi | |
19146 | |
19147 rm -f conftest.err conftest.$ac_ext | |
19148 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19149 $as_echo "$ac_header_preproc" >&6; } | |
19150 | |
19151 # So? What about this header? | |
19152 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
19153 yes:no: ) | |
19154 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
19155 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
19156 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5 | |
19157 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;} | |
19158 ac_header_preproc=yes | |
19159 ;; | |
19160 no:yes:* ) | |
19161 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5 | |
19162 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;} | |
19163 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5 | |
19164 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;} | |
19165 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5 | |
19166 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;} | |
19167 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5 | |
19168 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
19169 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5 | |
19170 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;} | |
19171 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5 | |
19172 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;} | |
19173 | |
19174 ;; | |
19175 esac | |
19176 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5 | |
19177 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; } | |
19178 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then | |
19179 $as_echo_n "(cached) " >&6 | |
19180 else | |
19181 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc | |
19182 fi | |
19183 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5 | |
19184 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; } | |
19185 | |
19186 fi | |
19187 if test $ac_cv_header_sys_dg_sys_info_h = yes; then | |
19188 ac_have_func=yes | 11481 ac_have_func=yes |
19189 | 11482 |
19190 cat >>confdefs.h <<\_ACEOF | 11483 $as_echo "#define DGUX 1" >>confdefs.h |
19191 #define DGUX 1 | 11484 |
19192 _ACEOF | 11485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5 |
19193 | |
19194 | |
19195 { $as_echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5 | |
19196 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; } | 11486 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; } |
19197 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then | 11487 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then : |
19198 $as_echo_n "(cached) " >&6 | 11488 $as_echo_n "(cached) " >&6 |
19199 else | 11489 else |
19200 ac_check_lib_save_LIBS=$LIBS | 11490 ac_check_lib_save_LIBS=$LIBS |
19201 LIBS="-ldgc $LIBS" | 11491 LIBS="-ldgc $LIBS" |
19202 cat >conftest.$ac_ext <<_ACEOF | 11492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
19203 /* confdefs.h. */ | |
19204 _ACEOF | |
19205 cat confdefs.h >>conftest.$ac_ext | |
19206 cat >>conftest.$ac_ext <<_ACEOF | |
19207 /* end confdefs.h. */ | 11493 /* end confdefs.h. */ |
19208 | 11494 |
19209 /* Override any GCC internal prototype to avoid an error. | 11495 /* Override any GCC internal prototype to avoid an error. |
19210 Use char because int might match the return type of a GCC | 11496 Use char because int might match the return type of a GCC |
19211 builtin and then its argument prototype would still apply. */ | 11497 builtin and then its argument prototype would still apply. */ |
19219 return dg_sys_info (); | 11505 return dg_sys_info (); |
19220 ; | 11506 ; |
19221 return 0; | 11507 return 0; |
19222 } | 11508 } |
19223 _ACEOF | 11509 _ACEOF |
19224 rm -f conftest.$ac_objext conftest$ac_exeext | 11510 if ac_fn_c_try_link "$LINENO"; then : |
19225 if { (ac_try="$ac_link" | |
19226 case "(($ac_try" in | |
19227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19228 *) ac_try_echo=$ac_try;; | |
19229 esac | |
19230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19231 $as_echo "$ac_try_echo") >&5 | |
19232 (eval "$ac_link") 2>conftest.er1 | |
19233 ac_status=$? | |
19234 grep -v '^ *+' conftest.er1 >conftest.err | |
19235 rm -f conftest.er1 | |
19236 cat conftest.err >&5 | |
19237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19238 (exit $ac_status); } && { | |
19239 test -z "$ac_c_werror_flag" || | |
19240 test ! -s conftest.err | |
19241 } && test -s conftest$ac_exeext && { | |
19242 test "$cross_compiling" = yes || | |
19243 $as_test_x conftest$ac_exeext | |
19244 }; then | |
19245 ac_cv_lib_dgc_dg_sys_info=yes | 11511 ac_cv_lib_dgc_dg_sys_info=yes |
19246 else | 11512 else |
19247 $as_echo "$as_me: failed program was:" >&5 | 11513 ac_cv_lib_dgc_dg_sys_info=no |
19248 sed 's/^/| /' conftest.$ac_ext >&5 | 11514 fi |
19249 | 11515 rm -f core conftest.err conftest.$ac_objext \ |
19250 ac_cv_lib_dgc_dg_sys_info=no | 11516 conftest$ac_exeext conftest.$ac_ext |
19251 fi | |
19252 | |
19253 rm -rf conftest.dSYM | |
19254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
19255 conftest$ac_exeext conftest.$ac_ext | |
19256 LIBS=$ac_check_lib_save_LIBS | 11517 LIBS=$ac_check_lib_save_LIBS |
19257 fi | 11518 fi |
19258 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5 | 11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5 |
19259 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; } | 11520 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; } |
19260 if test $ac_cv_lib_dgc_dg_sys_info = yes; then | 11521 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then : |
19261 cat >>confdefs.h <<_ACEOF | 11522 cat >>confdefs.h <<_ACEOF |
19262 #define HAVE_LIBDGC 1 | 11523 #define HAVE_LIBDGC 1 |
19263 _ACEOF | 11524 _ACEOF |
19264 | 11525 |
19265 LIBS="-ldgc $LIBS" | 11526 LIBS="-ldgc $LIBS" |
19268 | 11529 |
19269 fi | 11530 fi |
19270 | 11531 |
19271 | 11532 |
19272 | 11533 |
19273 if test "${ac_cv_header_locale_h+set}" = set; then | 11534 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default" |
19274 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5 | 11535 if test "x$ac_cv_header_locale_h" = x""yes; then : |
19275 $as_echo_n "checking for locale.h... " >&6; } | 11536 |
19276 if test "${ac_cv_header_locale_h+set}" = set; then | 11537 fi |
19277 $as_echo_n "(cached) " >&6 | |
19278 fi | |
19279 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5 | |
19280 $as_echo "$ac_cv_header_locale_h" >&6; } | |
19281 else | |
19282 # Is the header compilable? | |
19283 { $as_echo "$as_me:$LINENO: checking locale.h usability" >&5 | |
19284 $as_echo_n "checking locale.h usability... " >&6; } | |
19285 cat >conftest.$ac_ext <<_ACEOF | |
19286 /* confdefs.h. */ | |
19287 _ACEOF | |
19288 cat confdefs.h >>conftest.$ac_ext | |
19289 cat >>conftest.$ac_ext <<_ACEOF | |
19290 /* end confdefs.h. */ | |
19291 $ac_includes_default | |
19292 #include <locale.h> | |
19293 _ACEOF | |
19294 rm -f conftest.$ac_objext | |
19295 if { (ac_try="$ac_compile" | |
19296 case "(($ac_try" in | |
19297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19298 *) ac_try_echo=$ac_try;; | |
19299 esac | |
19300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19301 $as_echo "$ac_try_echo") >&5 | |
19302 (eval "$ac_compile") 2>conftest.er1 | |
19303 ac_status=$? | |
19304 grep -v '^ *+' conftest.er1 >conftest.err | |
19305 rm -f conftest.er1 | |
19306 cat conftest.err >&5 | |
19307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19308 (exit $ac_status); } && { | |
19309 test -z "$ac_c_werror_flag" || | |
19310 test ! -s conftest.err | |
19311 } && test -s conftest.$ac_objext; then | |
19312 ac_header_compiler=yes | |
19313 else | |
19314 $as_echo "$as_me: failed program was:" >&5 | |
19315 sed 's/^/| /' conftest.$ac_ext >&5 | |
19316 | |
19317 ac_header_compiler=no | |
19318 fi | |
19319 | |
19320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
19321 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
19322 $as_echo "$ac_header_compiler" >&6; } | |
19323 | |
19324 # Is the header present? | |
19325 { $as_echo "$as_me:$LINENO: checking locale.h presence" >&5 | |
19326 $as_echo_n "checking locale.h presence... " >&6; } | |
19327 cat >conftest.$ac_ext <<_ACEOF | |
19328 /* confdefs.h. */ | |
19329 _ACEOF | |
19330 cat confdefs.h >>conftest.$ac_ext | |
19331 cat >>conftest.$ac_ext <<_ACEOF | |
19332 /* end confdefs.h. */ | |
19333 #include <locale.h> | |
19334 _ACEOF | |
19335 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
19336 case "(($ac_try" in | |
19337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19338 *) ac_try_echo=$ac_try;; | |
19339 esac | |
19340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19341 $as_echo "$ac_try_echo") >&5 | |
19342 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
19343 ac_status=$? | |
19344 grep -v '^ *+' conftest.er1 >conftest.err | |
19345 rm -f conftest.er1 | |
19346 cat conftest.err >&5 | |
19347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19348 (exit $ac_status); } >/dev/null && { | |
19349 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
19350 test ! -s conftest.err | |
19351 }; then | |
19352 ac_header_preproc=yes | |
19353 else | |
19354 $as_echo "$as_me: failed program was:" >&5 | |
19355 sed 's/^/| /' conftest.$ac_ext >&5 | |
19356 | |
19357 ac_header_preproc=no | |
19358 fi | |
19359 | |
19360 rm -f conftest.err conftest.$ac_ext | |
19361 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19362 $as_echo "$ac_header_preproc" >&6; } | |
19363 | |
19364 # So? What about this header? | |
19365 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
19366 yes:no: ) | |
19367 { $as_echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
19368 $as_echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
19369 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5 | |
19370 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;} | |
19371 ac_header_preproc=yes | |
19372 ;; | |
19373 no:yes:* ) | |
19374 { $as_echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5 | |
19375 $as_echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;} | |
19376 { $as_echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5 | |
19377 $as_echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;} | |
19378 { $as_echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5 | |
19379 $as_echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;} | |
19380 { $as_echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5 | |
19381 $as_echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
19382 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5 | |
19383 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;} | |
19384 { $as_echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5 | |
19385 $as_echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;} | |
19386 | |
19387 ;; | |
19388 esac | |
19389 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5 | |
19390 $as_echo_n "checking for locale.h... " >&6; } | |
19391 if test "${ac_cv_header_locale_h+set}" = set; then | |
19392 $as_echo_n "(cached) " >&6 | |
19393 else | |
19394 ac_cv_header_locale_h=$ac_header_preproc | |
19395 fi | |
19396 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5 | |
19397 $as_echo "$ac_cv_header_locale_h" >&6; } | |
19398 | |
19399 fi | |
19400 | |
19401 | 11538 |
19402 | 11539 |
19403 for ac_func in setlocale | 11540 for ac_func in setlocale |
19404 do | 11541 do : |
19405 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 11542 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale" |
19406 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | 11543 if test "x$ac_cv_func_setlocale" = x""yes; then : |
19407 $as_echo_n "checking for $ac_func... " >&6; } | |
19408 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
19409 $as_echo_n "(cached) " >&6 | |
19410 else | |
19411 cat >conftest.$ac_ext <<_ACEOF | |
19412 /* confdefs.h. */ | |
19413 _ACEOF | |
19414 cat confdefs.h >>conftest.$ac_ext | |
19415 cat >>conftest.$ac_ext <<_ACEOF | |
19416 /* end confdefs.h. */ | |
19417 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
19418 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19419 #define $ac_func innocuous_$ac_func | |
19420 | |
19421 /* System header to define __stub macros and hopefully few prototypes, | |
19422 which can conflict with char $ac_func (); below. | |
19423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19424 <limits.h> exists even on freestanding compilers. */ | |
19425 | |
19426 #ifdef __STDC__ | |
19427 # include <limits.h> | |
19428 #else | |
19429 # include <assert.h> | |
19430 #endif | |
19431 | |
19432 #undef $ac_func | |
19433 | |
19434 /* Override any GCC internal prototype to avoid an error. | |
19435 Use char because int might match the return type of a GCC | |
19436 builtin and then its argument prototype would still apply. */ | |
19437 #ifdef __cplusplus | |
19438 extern "C" | |
19439 #endif | |
19440 char $ac_func (); | |
19441 /* The GNU C library defines this for functions which it implements | |
19442 to always fail with ENOSYS. Some functions are actually named | |
19443 something starting with __ and the normal name is an alias. */ | |
19444 #if defined __stub_$ac_func || defined __stub___$ac_func | |
19445 choke me | |
19446 #endif | |
19447 | |
19448 int | |
19449 main () | |
19450 { | |
19451 return $ac_func (); | |
19452 ; | |
19453 return 0; | |
19454 } | |
19455 _ACEOF | |
19456 rm -f conftest.$ac_objext conftest$ac_exeext | |
19457 if { (ac_try="$ac_link" | |
19458 case "(($ac_try" in | |
19459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19460 *) ac_try_echo=$ac_try;; | |
19461 esac | |
19462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19463 $as_echo "$ac_try_echo") >&5 | |
19464 (eval "$ac_link") 2>conftest.er1 | |
19465 ac_status=$? | |
19466 grep -v '^ *+' conftest.er1 >conftest.err | |
19467 rm -f conftest.er1 | |
19468 cat conftest.err >&5 | |
19469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19470 (exit $ac_status); } && { | |
19471 test -z "$ac_c_werror_flag" || | |
19472 test ! -s conftest.err | |
19473 } && test -s conftest$ac_exeext && { | |
19474 test "$cross_compiling" = yes || | |
19475 $as_test_x conftest$ac_exeext | |
19476 }; then | |
19477 eval "$as_ac_var=yes" | |
19478 else | |
19479 $as_echo "$as_me: failed program was:" >&5 | |
19480 sed 's/^/| /' conftest.$ac_ext >&5 | |
19481 | |
19482 eval "$as_ac_var=no" | |
19483 fi | |
19484 | |
19485 rm -rf conftest.dSYM | |
19486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
19487 conftest$ac_exeext conftest.$ac_ext | |
19488 fi | |
19489 ac_res=`eval 'as_val=${'$as_ac_var'} | |
19490 $as_echo "$as_val"'` | |
19491 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
19492 $as_echo "$ac_res" >&6; } | |
19493 if test `eval 'as_val=${'$as_ac_var'} | |
19494 $as_echo "$as_val"'` = yes; then | |
19495 cat >>confdefs.h <<_ACEOF | 11544 cat >>confdefs.h <<_ACEOF |
19496 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 11545 #define HAVE_SETLOCALE 1 |
19497 _ACEOF | 11546 _ACEOF |
19498 | 11547 |
19499 fi | 11548 fi |
19500 done | 11549 done |
19501 | 11550 |
19504 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because | 11553 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because |
19505 # Irix 4.0.5F has the header but not the library. | 11554 # Irix 4.0.5F has the header but not the library. |
19506 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then | 11555 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then |
19507 ac_have_func=yes | 11556 ac_have_func=yes |
19508 | 11557 |
19509 cat >>confdefs.h <<\_ACEOF | 11558 $as_echo "#define SVR4 1" >>confdefs.h |
19510 #define SVR4 1 | |
19511 _ACEOF | |
19512 | 11559 |
19513 fi | 11560 fi |
19514 | 11561 |
19515 if test $ac_have_func = no; then | 11562 if test $ac_have_func = no; then |
19516 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then | 11563 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default" |
19517 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5 | 11564 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then : |
19518 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; } | |
19519 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then | |
19520 $as_echo_n "(cached) " >&6 | |
19521 fi | |
19522 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5 | |
19523 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; } | |
19524 else | |
19525 # Is the header compilable? | |
19526 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5 | |
19527 $as_echo_n "checking inq_stats/cpustats.h usability... " >&6; } | |
19528 cat >conftest.$ac_ext <<_ACEOF | |
19529 /* confdefs.h. */ | |
19530 _ACEOF | |
19531 cat confdefs.h >>conftest.$ac_ext | |
19532 cat >>conftest.$ac_ext <<_ACEOF | |
19533 /* end confdefs.h. */ | |
19534 $ac_includes_default | |
19535 #include <inq_stats/cpustats.h> | |
19536 _ACEOF | |
19537 rm -f conftest.$ac_objext | |
19538 if { (ac_try="$ac_compile" | |
19539 case "(($ac_try" in | |
19540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19541 *) ac_try_echo=$ac_try;; | |
19542 esac | |
19543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19544 $as_echo "$ac_try_echo") >&5 | |
19545 (eval "$ac_compile") 2>conftest.er1 | |
19546 ac_status=$? | |
19547 grep -v '^ *+' conftest.er1 >conftest.err | |
19548 rm -f conftest.er1 | |
19549 cat conftest.err >&5 | |
19550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19551 (exit $ac_status); } && { | |
19552 test -z "$ac_c_werror_flag" || | |
19553 test ! -s conftest.err | |
19554 } && test -s conftest.$ac_objext; then | |
19555 ac_header_compiler=yes | |
19556 else | |
19557 $as_echo "$as_me: failed program was:" >&5 | |
19558 sed 's/^/| /' conftest.$ac_ext >&5 | |
19559 | |
19560 ac_header_compiler=no | |
19561 fi | |
19562 | |
19563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
19564 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
19565 $as_echo "$ac_header_compiler" >&6; } | |
19566 | |
19567 # Is the header present? | |
19568 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5 | |
19569 $as_echo_n "checking inq_stats/cpustats.h presence... " >&6; } | |
19570 cat >conftest.$ac_ext <<_ACEOF | |
19571 /* confdefs.h. */ | |
19572 _ACEOF | |
19573 cat confdefs.h >>conftest.$ac_ext | |
19574 cat >>conftest.$ac_ext <<_ACEOF | |
19575 /* end confdefs.h. */ | |
19576 #include <inq_stats/cpustats.h> | |
19577 _ACEOF | |
19578 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
19579 case "(($ac_try" in | |
19580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19581 *) ac_try_echo=$ac_try;; | |
19582 esac | |
19583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19584 $as_echo "$ac_try_echo") >&5 | |
19585 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
19586 ac_status=$? | |
19587 grep -v '^ *+' conftest.er1 >conftest.err | |
19588 rm -f conftest.er1 | |
19589 cat conftest.err >&5 | |
19590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19591 (exit $ac_status); } >/dev/null && { | |
19592 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
19593 test ! -s conftest.err | |
19594 }; then | |
19595 ac_header_preproc=yes | |
19596 else | |
19597 $as_echo "$as_me: failed program was:" >&5 | |
19598 sed 's/^/| /' conftest.$ac_ext >&5 | |
19599 | |
19600 ac_header_preproc=no | |
19601 fi | |
19602 | |
19603 rm -f conftest.err conftest.$ac_ext | |
19604 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19605 $as_echo "$ac_header_preproc" >&6; } | |
19606 | |
19607 # So? What about this header? | |
19608 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
19609 yes:no: ) | |
19610 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
19611 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
19612 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5 | |
19613 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;} | |
19614 ac_header_preproc=yes | |
19615 ;; | |
19616 no:yes:* ) | |
19617 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5 | |
19618 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;} | |
19619 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5 | |
19620 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;} | |
19621 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5 | |
19622 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;} | |
19623 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5 | |
19624 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
19625 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5 | |
19626 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;} | |
19627 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5 | |
19628 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;} | |
19629 | |
19630 ;; | |
19631 esac | |
19632 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5 | |
19633 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; } | |
19634 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then | |
19635 $as_echo_n "(cached) " >&6 | |
19636 else | |
19637 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc | |
19638 fi | |
19639 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5 | |
19640 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; } | |
19641 | |
19642 fi | |
19643 if test $ac_cv_header_inq_stats_cpustats_h = yes; then | |
19644 ac_have_func=yes | 11565 ac_have_func=yes |
19645 | 11566 |
19646 cat >>confdefs.h <<\_ACEOF | 11567 $as_echo "#define UMAX 1" >>confdefs.h |
19647 #define UMAX 1 | 11568 |
19648 _ACEOF | 11569 |
19649 | 11570 $as_echo "#define UMAX4_3 1" >>confdefs.h |
19650 | |
19651 cat >>confdefs.h <<\_ACEOF | |
19652 #define UMAX4_3 1 | |
19653 _ACEOF | |
19654 | 11571 |
19655 fi | 11572 fi |
19656 | 11573 |
19657 | 11574 |
19658 fi | 11575 fi |
19659 | 11576 |
19660 if test $ac_have_func = no; then | 11577 if test $ac_have_func = no; then |
19661 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then | 11578 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default" |
19662 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5 | 11579 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then : |
19663 $as_echo_n "checking for sys/cpustats.h... " >&6; } | 11580 ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h |
19664 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then | |
19665 $as_echo_n "(cached) " >&6 | |
19666 fi | |
19667 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5 | |
19668 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; } | |
19669 else | |
19670 # Is the header compilable? | |
19671 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5 | |
19672 $as_echo_n "checking sys/cpustats.h usability... " >&6; } | |
19673 cat >conftest.$ac_ext <<_ACEOF | |
19674 /* confdefs.h. */ | |
19675 _ACEOF | |
19676 cat confdefs.h >>conftest.$ac_ext | |
19677 cat >>conftest.$ac_ext <<_ACEOF | |
19678 /* end confdefs.h. */ | |
19679 $ac_includes_default | |
19680 #include <sys/cpustats.h> | |
19681 _ACEOF | |
19682 rm -f conftest.$ac_objext | |
19683 if { (ac_try="$ac_compile" | |
19684 case "(($ac_try" in | |
19685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19686 *) ac_try_echo=$ac_try;; | |
19687 esac | |
19688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19689 $as_echo "$ac_try_echo") >&5 | |
19690 (eval "$ac_compile") 2>conftest.er1 | |
19691 ac_status=$? | |
19692 grep -v '^ *+' conftest.er1 >conftest.err | |
19693 rm -f conftest.er1 | |
19694 cat conftest.err >&5 | |
19695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19696 (exit $ac_status); } && { | |
19697 test -z "$ac_c_werror_flag" || | |
19698 test ! -s conftest.err | |
19699 } && test -s conftest.$ac_objext; then | |
19700 ac_header_compiler=yes | |
19701 else | |
19702 $as_echo "$as_me: failed program was:" >&5 | |
19703 sed 's/^/| /' conftest.$ac_ext >&5 | |
19704 | |
19705 ac_header_compiler=no | |
19706 fi | |
19707 | |
19708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
19709 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
19710 $as_echo "$ac_header_compiler" >&6; } | |
19711 | |
19712 # Is the header present? | |
19713 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5 | |
19714 $as_echo_n "checking sys/cpustats.h presence... " >&6; } | |
19715 cat >conftest.$ac_ext <<_ACEOF | |
19716 /* confdefs.h. */ | |
19717 _ACEOF | |
19718 cat confdefs.h >>conftest.$ac_ext | |
19719 cat >>conftest.$ac_ext <<_ACEOF | |
19720 /* end confdefs.h. */ | |
19721 #include <sys/cpustats.h> | |
19722 _ACEOF | |
19723 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
19724 case "(($ac_try" in | |
19725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19726 *) ac_try_echo=$ac_try;; | |
19727 esac | |
19728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19729 $as_echo "$ac_try_echo") >&5 | |
19730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
19731 ac_status=$? | |
19732 grep -v '^ *+' conftest.er1 >conftest.err | |
19733 rm -f conftest.er1 | |
19734 cat conftest.err >&5 | |
19735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19736 (exit $ac_status); } >/dev/null && { | |
19737 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
19738 test ! -s conftest.err | |
19739 }; then | |
19740 ac_header_preproc=yes | |
19741 else | |
19742 $as_echo "$as_me: failed program was:" >&5 | |
19743 sed 's/^/| /' conftest.$ac_ext >&5 | |
19744 | |
19745 ac_header_preproc=no | |
19746 fi | |
19747 | |
19748 rm -f conftest.err conftest.$ac_ext | |
19749 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19750 $as_echo "$ac_header_preproc" >&6; } | |
19751 | |
19752 # So? What about this header? | |
19753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
19754 yes:no: ) | |
19755 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
19756 $as_echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
19757 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5 | |
19758 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;} | |
19759 ac_header_preproc=yes | |
19760 ;; | |
19761 no:yes:* ) | |
19762 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5 | |
19763 $as_echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;} | |
19764 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5 | |
19765 $as_echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;} | |
19766 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5 | |
19767 $as_echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;} | |
19768 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5 | |
19769 $as_echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
19770 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5 | |
19771 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;} | |
19772 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5 | |
19773 $as_echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;} | |
19774 | |
19775 ;; | |
19776 esac | |
19777 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5 | |
19778 $as_echo_n "checking for sys/cpustats.h... " >&6; } | |
19779 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then | |
19780 $as_echo_n "(cached) " >&6 | |
19781 else | |
19782 ac_cv_header_sys_cpustats_h=$ac_header_preproc | |
19783 fi | |
19784 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5 | |
19785 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; } | |
19786 | |
19787 fi | |
19788 if test $ac_cv_header_sys_cpustats_h = yes; then | |
19789 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF | |
19790 #define UMAX 1 | |
19791 _ACEOF | |
19792 | 11581 |
19793 fi | 11582 fi |
19794 | 11583 |
19795 | 11584 |
19796 fi | 11585 fi |
19797 | 11586 |
19798 if test $ac_have_func = no; then | 11587 if test $ac_have_func = no; then |
19799 | 11588 for ac_header in mach/mach.h |
19800 for ac_header in mach/mach.h | 11589 do : |
19801 do | 11590 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default" |
19802 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 11591 if test "x$ac_cv_header_mach_mach_h" = x""yes; then : |
19803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
19804 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19805 $as_echo_n "checking for $ac_header... " >&6; } | |
19806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
19807 $as_echo_n "(cached) " >&6 | |
19808 fi | |
19809 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
19810 $as_echo "$as_val"'` | |
19811 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
19812 $as_echo "$ac_res" >&6; } | |
19813 else | |
19814 # Is the header compilable? | |
19815 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
19816 $as_echo_n "checking $ac_header usability... " >&6; } | |
19817 cat >conftest.$ac_ext <<_ACEOF | |
19818 /* confdefs.h. */ | |
19819 _ACEOF | |
19820 cat confdefs.h >>conftest.$ac_ext | |
19821 cat >>conftest.$ac_ext <<_ACEOF | |
19822 /* end confdefs.h. */ | |
19823 $ac_includes_default | |
19824 #include <$ac_header> | |
19825 _ACEOF | |
19826 rm -f conftest.$ac_objext | |
19827 if { (ac_try="$ac_compile" | |
19828 case "(($ac_try" in | |
19829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19830 *) ac_try_echo=$ac_try;; | |
19831 esac | |
19832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19833 $as_echo "$ac_try_echo") >&5 | |
19834 (eval "$ac_compile") 2>conftest.er1 | |
19835 ac_status=$? | |
19836 grep -v '^ *+' conftest.er1 >conftest.err | |
19837 rm -f conftest.er1 | |
19838 cat conftest.err >&5 | |
19839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19840 (exit $ac_status); } && { | |
19841 test -z "$ac_c_werror_flag" || | |
19842 test ! -s conftest.err | |
19843 } && test -s conftest.$ac_objext; then | |
19844 ac_header_compiler=yes | |
19845 else | |
19846 $as_echo "$as_me: failed program was:" >&5 | |
19847 sed 's/^/| /' conftest.$ac_ext >&5 | |
19848 | |
19849 ac_header_compiler=no | |
19850 fi | |
19851 | |
19852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
19853 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
19854 $as_echo "$ac_header_compiler" >&6; } | |
19855 | |
19856 # Is the header present? | |
19857 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
19858 $as_echo_n "checking $ac_header presence... " >&6; } | |
19859 cat >conftest.$ac_ext <<_ACEOF | |
19860 /* confdefs.h. */ | |
19861 _ACEOF | |
19862 cat confdefs.h >>conftest.$ac_ext | |
19863 cat >>conftest.$ac_ext <<_ACEOF | |
19864 /* end confdefs.h. */ | |
19865 #include <$ac_header> | |
19866 _ACEOF | |
19867 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
19868 case "(($ac_try" in | |
19869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19870 *) ac_try_echo=$ac_try;; | |
19871 esac | |
19872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19873 $as_echo "$ac_try_echo") >&5 | |
19874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
19875 ac_status=$? | |
19876 grep -v '^ *+' conftest.er1 >conftest.err | |
19877 rm -f conftest.er1 | |
19878 cat conftest.err >&5 | |
19879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19880 (exit $ac_status); } >/dev/null && { | |
19881 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
19882 test ! -s conftest.err | |
19883 }; then | |
19884 ac_header_preproc=yes | |
19885 else | |
19886 $as_echo "$as_me: failed program was:" >&5 | |
19887 sed 's/^/| /' conftest.$ac_ext >&5 | |
19888 | |
19889 ac_header_preproc=no | |
19890 fi | |
19891 | |
19892 rm -f conftest.err conftest.$ac_ext | |
19893 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19894 $as_echo "$ac_header_preproc" >&6; } | |
19895 | |
19896 # So? What about this header? | |
19897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
19898 yes:no: ) | |
19899 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
19900 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
19901 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
19902 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
19903 ac_header_preproc=yes | |
19904 ;; | |
19905 no:yes:* ) | |
19906 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
19907 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
19908 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
19909 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
19910 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
19911 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
19912 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
19913 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
19914 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
19915 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
19916 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
19917 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19918 | |
19919 ;; | |
19920 esac | |
19921 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19922 $as_echo_n "checking for $ac_header... " >&6; } | |
19923 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
19924 $as_echo_n "(cached) " >&6 | |
19925 else | |
19926 eval "$as_ac_Header=\$ac_header_preproc" | |
19927 fi | |
19928 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
19929 $as_echo "$as_val"'` | |
19930 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
19931 $as_echo "$ac_res" >&6; } | |
19932 | |
19933 fi | |
19934 if test `eval 'as_val=${'$as_ac_Header'} | |
19935 $as_echo "$as_val"'` = yes; then | |
19936 cat >>confdefs.h <<_ACEOF | 11592 cat >>confdefs.h <<_ACEOF |
19937 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 11593 #define HAVE_MACH_MACH_H 1 |
19938 _ACEOF | 11594 _ACEOF |
19939 | 11595 |
19940 fi | 11596 fi |
19941 | 11597 |
19942 done | 11598 done |
19943 | 11599 |
19944 fi | 11600 fi |
19945 | 11601 |
19946 | |
19947 for ac_header in nlist.h | 11602 for ac_header in nlist.h |
19948 do | 11603 do : |
19949 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 11604 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default" |
19950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 11605 if test "x$ac_cv_header_nlist_h" = x""yes; then : |
19951 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19952 $as_echo_n "checking for $ac_header... " >&6; } | |
19953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
19954 $as_echo_n "(cached) " >&6 | |
19955 fi | |
19956 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
19957 $as_echo "$as_val"'` | |
19958 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
19959 $as_echo "$ac_res" >&6; } | |
19960 else | |
19961 # Is the header compilable? | |
19962 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
19963 $as_echo_n "checking $ac_header usability... " >&6; } | |
19964 cat >conftest.$ac_ext <<_ACEOF | |
19965 /* confdefs.h. */ | |
19966 _ACEOF | |
19967 cat confdefs.h >>conftest.$ac_ext | |
19968 cat >>conftest.$ac_ext <<_ACEOF | |
19969 /* end confdefs.h. */ | |
19970 $ac_includes_default | |
19971 #include <$ac_header> | |
19972 _ACEOF | |
19973 rm -f conftest.$ac_objext | |
19974 if { (ac_try="$ac_compile" | |
19975 case "(($ac_try" in | |
19976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19977 *) ac_try_echo=$ac_try;; | |
19978 esac | |
19979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19980 $as_echo "$ac_try_echo") >&5 | |
19981 (eval "$ac_compile") 2>conftest.er1 | |
19982 ac_status=$? | |
19983 grep -v '^ *+' conftest.er1 >conftest.err | |
19984 rm -f conftest.er1 | |
19985 cat conftest.err >&5 | |
19986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19987 (exit $ac_status); } && { | |
19988 test -z "$ac_c_werror_flag" || | |
19989 test ! -s conftest.err | |
19990 } && test -s conftest.$ac_objext; then | |
19991 ac_header_compiler=yes | |
19992 else | |
19993 $as_echo "$as_me: failed program was:" >&5 | |
19994 sed 's/^/| /' conftest.$ac_ext >&5 | |
19995 | |
19996 ac_header_compiler=no | |
19997 fi | |
19998 | |
19999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20000 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
20001 $as_echo "$ac_header_compiler" >&6; } | |
20002 | |
20003 # Is the header present? | |
20004 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
20005 $as_echo_n "checking $ac_header presence... " >&6; } | |
20006 cat >conftest.$ac_ext <<_ACEOF | |
20007 /* confdefs.h. */ | |
20008 _ACEOF | |
20009 cat confdefs.h >>conftest.$ac_ext | |
20010 cat >>conftest.$ac_ext <<_ACEOF | |
20011 /* end confdefs.h. */ | |
20012 #include <$ac_header> | |
20013 _ACEOF | |
20014 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
20015 case "(($ac_try" in | |
20016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20017 *) ac_try_echo=$ac_try;; | |
20018 esac | |
20019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20020 $as_echo "$ac_try_echo") >&5 | |
20021 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
20022 ac_status=$? | |
20023 grep -v '^ *+' conftest.er1 >conftest.err | |
20024 rm -f conftest.er1 | |
20025 cat conftest.err >&5 | |
20026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20027 (exit $ac_status); } >/dev/null && { | |
20028 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
20029 test ! -s conftest.err | |
20030 }; then | |
20031 ac_header_preproc=yes | |
20032 else | |
20033 $as_echo "$as_me: failed program was:" >&5 | |
20034 sed 's/^/| /' conftest.$ac_ext >&5 | |
20035 | |
20036 ac_header_preproc=no | |
20037 fi | |
20038 | |
20039 rm -f conftest.err conftest.$ac_ext | |
20040 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20041 $as_echo "$ac_header_preproc" >&6; } | |
20042 | |
20043 # So? What about this header? | |
20044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
20045 yes:no: ) | |
20046 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
20047 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
20048 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
20049 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
20050 ac_header_preproc=yes | |
20051 ;; | |
20052 no:yes:* ) | |
20053 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
20054 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
20055 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
20056 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
20057 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
20058 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
20059 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
20060 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
20061 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
20062 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
20063 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
20064 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
20065 | |
20066 ;; | |
20067 esac | |
20068 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20069 $as_echo_n "checking for $ac_header... " >&6; } | |
20070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
20071 $as_echo_n "(cached) " >&6 | |
20072 else | |
20073 eval "$as_ac_Header=\$ac_header_preproc" | |
20074 fi | |
20075 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
20076 $as_echo "$as_val"'` | |
20077 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
20078 $as_echo "$ac_res" >&6; } | |
20079 | |
20080 fi | |
20081 if test `eval 'as_val=${'$as_ac_Header'} | |
20082 $as_echo "$as_val"'` = yes; then | |
20083 cat >>confdefs.h <<_ACEOF | 11606 cat >>confdefs.h <<_ACEOF |
20084 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 11607 #define HAVE_NLIST_H 1 |
20085 _ACEOF | 11608 _ACEOF |
20086 { $as_echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5 | 11609 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h> |
20087 $as_echo_n "checking for struct nlist.n_un.n_name... " >&6; } | 11610 " |
20088 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then | 11611 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then : |
20089 $as_echo_n "(cached) " >&6 | |
20090 else | |
20091 cat >conftest.$ac_ext <<_ACEOF | |
20092 /* confdefs.h. */ | |
20093 _ACEOF | |
20094 cat confdefs.h >>conftest.$ac_ext | |
20095 cat >>conftest.$ac_ext <<_ACEOF | |
20096 /* end confdefs.h. */ | |
20097 #include <nlist.h> | |
20098 | |
20099 int | |
20100 main () | |
20101 { | |
20102 static struct nlist ac_aggr; | |
20103 if (ac_aggr.n_un.n_name) | |
20104 return 0; | |
20105 ; | |
20106 return 0; | |
20107 } | |
20108 _ACEOF | |
20109 rm -f conftest.$ac_objext | |
20110 if { (ac_try="$ac_compile" | |
20111 case "(($ac_try" in | |
20112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20113 *) ac_try_echo=$ac_try;; | |
20114 esac | |
20115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20116 $as_echo "$ac_try_echo") >&5 | |
20117 (eval "$ac_compile") 2>conftest.er1 | |
20118 ac_status=$? | |
20119 grep -v '^ *+' conftest.er1 >conftest.err | |
20120 rm -f conftest.er1 | |
20121 cat conftest.err >&5 | |
20122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20123 (exit $ac_status); } && { | |
20124 test -z "$ac_c_werror_flag" || | |
20125 test ! -s conftest.err | |
20126 } && test -s conftest.$ac_objext; then | |
20127 ac_cv_member_struct_nlist_n_un_n_name=yes | |
20128 else | |
20129 $as_echo "$as_me: failed program was:" >&5 | |
20130 sed 's/^/| /' conftest.$ac_ext >&5 | |
20131 | |
20132 cat >conftest.$ac_ext <<_ACEOF | |
20133 /* confdefs.h. */ | |
20134 _ACEOF | |
20135 cat confdefs.h >>conftest.$ac_ext | |
20136 cat >>conftest.$ac_ext <<_ACEOF | |
20137 /* end confdefs.h. */ | |
20138 #include <nlist.h> | |
20139 | |
20140 int | |
20141 main () | |
20142 { | |
20143 static struct nlist ac_aggr; | |
20144 if (sizeof ac_aggr.n_un.n_name) | |
20145 return 0; | |
20146 ; | |
20147 return 0; | |
20148 } | |
20149 _ACEOF | |
20150 rm -f conftest.$ac_objext | |
20151 if { (ac_try="$ac_compile" | |
20152 case "(($ac_try" in | |
20153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20154 *) ac_try_echo=$ac_try;; | |
20155 esac | |
20156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20157 $as_echo "$ac_try_echo") >&5 | |
20158 (eval "$ac_compile") 2>conftest.er1 | |
20159 ac_status=$? | |
20160 grep -v '^ *+' conftest.er1 >conftest.err | |
20161 rm -f conftest.er1 | |
20162 cat conftest.err >&5 | |
20163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20164 (exit $ac_status); } && { | |
20165 test -z "$ac_c_werror_flag" || | |
20166 test ! -s conftest.err | |
20167 } && test -s conftest.$ac_objext; then | |
20168 ac_cv_member_struct_nlist_n_un_n_name=yes | |
20169 else | |
20170 $as_echo "$as_me: failed program was:" >&5 | |
20171 sed 's/^/| /' conftest.$ac_ext >&5 | |
20172 | |
20173 ac_cv_member_struct_nlist_n_un_n_name=no | |
20174 fi | |
20175 | |
20176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20177 fi | |
20178 | |
20179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20180 fi | |
20181 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5 | |
20182 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; } | |
20183 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then | |
20184 | 11612 |
20185 cat >>confdefs.h <<_ACEOF | 11613 cat >>confdefs.h <<_ACEOF |
20186 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1 | 11614 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1 |
20187 _ACEOF | 11615 _ACEOF |
20188 | 11616 |
20189 | 11617 |
20190 cat >>confdefs.h <<\_ACEOF | 11618 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h |
20191 #define NLIST_NAME_UNION 1 | |
20192 _ACEOF | |
20193 | 11619 |
20194 fi | 11620 fi |
20195 | 11621 |
20196 | 11622 |
20197 fi | 11623 fi |
20201 fi | 11627 fi |
20202 done | 11628 done |
20203 | 11629 |
20204 | 11630 |
20205 # Some definitions of getloadavg require that the program be installed setgid. | 11631 # Some definitions of getloadavg require that the program be installed setgid. |
20206 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5 | 11632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5 |
20207 $as_echo_n "checking whether getloadavg requires setgid... " >&6; } | 11633 $as_echo_n "checking whether getloadavg requires setgid... " >&6; } |
20208 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then | 11634 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then : |
20209 $as_echo_n "(cached) " >&6 | 11635 $as_echo_n "(cached) " >&6 |
20210 else | 11636 else |
20211 cat >conftest.$ac_ext <<_ACEOF | 11637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
20212 /* confdefs.h. */ | |
20213 _ACEOF | |
20214 cat confdefs.h >>conftest.$ac_ext | |
20215 cat >>conftest.$ac_ext <<_ACEOF | |
20216 /* end confdefs.h. */ | 11638 /* end confdefs.h. */ |
20217 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c" | 11639 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c" |
20218 #ifdef LDAV_PRIVILEGED | 11640 #ifdef LDAV_PRIVILEGED |
20219 Yowza Am I SETGID yet | 11641 Yowza Am I SETGID yet |
20220 #endif | 11642 #endif |
20221 _ACEOF | 11643 _ACEOF |
20222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 11644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
20223 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then | 11645 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then : |
20224 ac_cv_func_getloadavg_setgid=yes | 11646 ac_cv_func_getloadavg_setgid=yes |
20225 else | 11647 else |
20226 ac_cv_func_getloadavg_setgid=no | 11648 ac_cv_func_getloadavg_setgid=no |
20227 fi | 11649 fi |
20228 rm -f conftest* | 11650 rm -f conftest* |
20229 | 11651 |
20230 fi | 11652 fi |
20231 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5 | 11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5 |
20232 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; } | 11654 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; } |
20233 if test $ac_cv_func_getloadavg_setgid = yes; then | 11655 if test $ac_cv_func_getloadavg_setgid = yes; then |
20234 NEED_SETGID=true | 11656 NEED_SETGID=true |
20235 | 11657 |
20236 cat >>confdefs.h <<\_ACEOF | 11658 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h |
20237 #define GETLOADAVG_PRIVILEGED 1 | |
20238 _ACEOF | |
20239 | 11659 |
20240 else | 11660 else |
20241 NEED_SETGID=false | 11661 NEED_SETGID=false |
20242 fi | 11662 fi |
20243 | 11663 |
20244 if test $ac_cv_func_getloadavg_setgid = yes; then | 11664 if test $ac_cv_func_getloadavg_setgid = yes; then |
20245 { $as_echo "$as_me:$LINENO: checking group of /dev/kmem" >&5 | 11665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5 |
20246 $as_echo_n "checking group of /dev/kmem... " >&6; } | 11666 $as_echo_n "checking group of /dev/kmem... " >&6; } |
20247 if test "${ac_cv_group_kmem+set}" = set; then | 11667 if test "${ac_cv_group_kmem+set}" = set; then : |
20248 $as_echo_n "(cached) " >&6 | 11668 $as_echo_n "(cached) " >&6 |
20249 else | 11669 else |
20250 # On Solaris, /dev/kmem is a symlink. Get info on the real file. | 11670 # On Solaris, /dev/kmem is a symlink. Get info on the real file. |
20251 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` | 11671 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` |
20252 # If we got an error (system does not support symlinks), try without -L. | 11672 # If we got an error (system does not support symlinks), try without -L. |
20255 | sed -ne 's/[ ][ ]*/ /g; | 11675 | sed -ne 's/[ ][ ]*/ /g; |
20256 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/; | 11676 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/; |
20257 / /s/.* //;p;'` | 11677 / /s/.* //;p;'` |
20258 | 11678 |
20259 fi | 11679 fi |
20260 { $as_echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5 | 11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5 |
20261 $as_echo "$ac_cv_group_kmem" >&6; } | 11681 $as_echo "$ac_cv_group_kmem" >&6; } |
20262 KMEM_GROUP=$ac_cv_group_kmem | 11682 KMEM_GROUP=$ac_cv_group_kmem |
20263 fi | 11683 fi |
20264 if test "x$ac_save_LIBS" = x; then | 11684 if test "x$ac_save_LIBS" = x; then |
20265 GETLOADAVG_LIBS=$LIBS | 11685 GETLOADAVG_LIBS=$LIBS |
20268 fi | 11688 fi |
20269 LIBS=$ac_save_LIBS | 11689 LIBS=$ac_save_LIBS |
20270 | 11690 |
20271 | 11691 |
20272 | 11692 |
20273 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 | 11693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 |
20274 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } | 11694 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } |
20275 if test "${ac_cv_sys_largefile_source+set}" = set; then | 11695 if test "${ac_cv_sys_largefile_source+set}" = set; then : |
20276 $as_echo_n "(cached) " >&6 | 11696 $as_echo_n "(cached) " >&6 |
20277 else | 11697 else |
20278 while :; do | 11698 while :; do |
20279 cat >conftest.$ac_ext <<_ACEOF | 11699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
20280 /* confdefs.h. */ | |
20281 _ACEOF | |
20282 cat confdefs.h >>conftest.$ac_ext | |
20283 cat >>conftest.$ac_ext <<_ACEOF | |
20284 /* end confdefs.h. */ | 11700 /* end confdefs.h. */ |
20285 #include <sys/types.h> /* for off_t */ | 11701 #include <sys/types.h> /* for off_t */ |
20286 #include <stdio.h> | 11702 #include <stdio.h> |
20287 int | 11703 int |
20288 main () | 11704 main () |
20291 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); | 11707 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); |
20292 ; | 11708 ; |
20293 return 0; | 11709 return 0; |
20294 } | 11710 } |
20295 _ACEOF | 11711 _ACEOF |
20296 rm -f conftest.$ac_objext conftest$ac_exeext | 11712 if ac_fn_c_try_link "$LINENO"; then : |
20297 if { (ac_try="$ac_link" | |
20298 case "(($ac_try" in | |
20299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20300 *) ac_try_echo=$ac_try;; | |
20301 esac | |
20302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20303 $as_echo "$ac_try_echo") >&5 | |
20304 (eval "$ac_link") 2>conftest.er1 | |
20305 ac_status=$? | |
20306 grep -v '^ *+' conftest.er1 >conftest.err | |
20307 rm -f conftest.er1 | |
20308 cat conftest.err >&5 | |
20309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20310 (exit $ac_status); } && { | |
20311 test -z "$ac_c_werror_flag" || | |
20312 test ! -s conftest.err | |
20313 } && test -s conftest$ac_exeext && { | |
20314 test "$cross_compiling" = yes || | |
20315 $as_test_x conftest$ac_exeext | |
20316 }; then | |
20317 ac_cv_sys_largefile_source=no; break | 11713 ac_cv_sys_largefile_source=no; break |
20318 else | 11714 fi |
20319 $as_echo "$as_me: failed program was:" >&5 | 11715 rm -f core conftest.err conftest.$ac_objext \ |
20320 sed 's/^/| /' conftest.$ac_ext >&5 | 11716 conftest$ac_exeext conftest.$ac_ext |
20321 | 11717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
20322 | |
20323 fi | |
20324 | |
20325 rm -rf conftest.dSYM | |
20326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
20327 conftest$ac_exeext conftest.$ac_ext | |
20328 cat >conftest.$ac_ext <<_ACEOF | |
20329 /* confdefs.h. */ | |
20330 _ACEOF | |
20331 cat confdefs.h >>conftest.$ac_ext | |
20332 cat >>conftest.$ac_ext <<_ACEOF | |
20333 /* end confdefs.h. */ | 11718 /* end confdefs.h. */ |
20334 #define _LARGEFILE_SOURCE 1 | 11719 #define _LARGEFILE_SOURCE 1 |
20335 #include <sys/types.h> /* for off_t */ | 11720 #include <sys/types.h> /* for off_t */ |
20336 #include <stdio.h> | 11721 #include <stdio.h> |
20337 int | 11722 int |
20341 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); | 11726 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); |
20342 ; | 11727 ; |
20343 return 0; | 11728 return 0; |
20344 } | 11729 } |
20345 _ACEOF | 11730 _ACEOF |
20346 rm -f conftest.$ac_objext conftest$ac_exeext | 11731 if ac_fn_c_try_link "$LINENO"; then : |
20347 if { (ac_try="$ac_link" | |
20348 case "(($ac_try" in | |
20349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20350 *) ac_try_echo=$ac_try;; | |
20351 esac | |
20352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20353 $as_echo "$ac_try_echo") >&5 | |
20354 (eval "$ac_link") 2>conftest.er1 | |
20355 ac_status=$? | |
20356 grep -v '^ *+' conftest.er1 >conftest.err | |
20357 rm -f conftest.er1 | |
20358 cat conftest.err >&5 | |
20359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20360 (exit $ac_status); } && { | |
20361 test -z "$ac_c_werror_flag" || | |
20362 test ! -s conftest.err | |
20363 } && test -s conftest$ac_exeext && { | |
20364 test "$cross_compiling" = yes || | |
20365 $as_test_x conftest$ac_exeext | |
20366 }; then | |
20367 ac_cv_sys_largefile_source=1; break | 11732 ac_cv_sys_largefile_source=1; break |
20368 else | 11733 fi |
20369 $as_echo "$as_me: failed program was:" >&5 | 11734 rm -f core conftest.err conftest.$ac_objext \ |
20370 sed 's/^/| /' conftest.$ac_ext >&5 | 11735 conftest$ac_exeext conftest.$ac_ext |
20371 | |
20372 | |
20373 fi | |
20374 | |
20375 rm -rf conftest.dSYM | |
20376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
20377 conftest$ac_exeext conftest.$ac_ext | |
20378 ac_cv_sys_largefile_source=unknown | 11736 ac_cv_sys_largefile_source=unknown |
20379 break | 11737 break |
20380 done | 11738 done |
20381 fi | 11739 fi |
20382 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 | 11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 |
20383 $as_echo "$ac_cv_sys_largefile_source" >&6; } | 11741 $as_echo "$ac_cv_sys_largefile_source" >&6; } |
20384 case $ac_cv_sys_largefile_source in #( | 11742 case $ac_cv_sys_largefile_source in #( |
20385 no | unknown) ;; | 11743 no | unknown) ;; |
20386 *) | 11744 *) |
20387 cat >>confdefs.h <<_ACEOF | 11745 cat >>confdefs.h <<_ACEOF |
20394 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug | 11752 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug |
20395 # in glibc 2.1.3, but that breaks too many other things. | 11753 # in glibc 2.1.3, but that breaks too many other things. |
20396 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | 11754 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. |
20397 if test $ac_cv_sys_largefile_source != unknown; then | 11755 if test $ac_cv_sys_largefile_source != unknown; then |
20398 | 11756 |
20399 cat >>confdefs.h <<\_ACEOF | 11757 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h |
20400 #define HAVE_FSEEKO 1 | |
20401 _ACEOF | |
20402 | 11758 |
20403 fi | 11759 fi |
20404 | 11760 |
20405 | 11761 |
20406 # Configure getopt. | 11762 # Configure getopt. |
20424 | 11780 |
20425 | 11781 |
20426 | 11782 |
20427 | 11783 |
20428 GETOPT_H= | 11784 GETOPT_H= |
20429 | 11785 for ac_header in getopt.h |
20430 for ac_header in getopt.h | 11786 do : |
20431 do | 11787 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" |
20432 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 11788 if test "x$ac_cv_header_getopt_h" = x""yes; then : |
20433 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 11789 cat >>confdefs.h <<_ACEOF |
20434 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | 11790 #define HAVE_GETOPT_H 1 |
20435 $as_echo_n "checking for $ac_header... " >&6; } | 11791 _ACEOF |
20436 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 11792 |
11793 else | |
11794 GETOPT_H=getopt.h | |
11795 fi | |
11796 | |
11797 done | |
11798 | |
11799 if test -z "$GETOPT_H"; then | |
11800 for ac_func in getopt_long_only | |
11801 do : | |
11802 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only" | |
11803 if test "x$ac_cv_func_getopt_long_only" = x""yes; then : | |
11804 cat >>confdefs.h <<_ACEOF | |
11805 #define HAVE_GETOPT_LONG_ONLY 1 | |
11806 _ACEOF | |
11807 | |
11808 else | |
11809 GETOPT_H=getopt.h | |
11810 fi | |
11811 done | |
11812 | |
11813 fi | |
11814 | |
11815 if test -z "$GETOPT_H"; then | |
11816 ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h> | |
11817 " | |
11818 if test "x$ac_cv_have_decl_optreset" = x""yes; then : | |
11819 GETOPT_H=getopt.h | |
11820 fi | |
11821 | |
11822 fi | |
11823 | |
11824 if test -z "$GETOPT_H"; then | |
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5 | |
11826 $as_echo_n "checking for working GNU getopt function... " >&6; } | |
11827 if test "${gl_cv_func_gnu_getopt+set}" = set; then : | |
20437 $as_echo_n "(cached) " >&6 | 11828 $as_echo_n "(cached) " >&6 |
20438 fi | 11829 else |
20439 ac_res=`eval 'as_val=${'$as_ac_Header'} | 11830 if test "$cross_compiling" = yes; then : |
20440 $as_echo "$as_val"'` | 11831 ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h> |
20441 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | 11832 " |
20442 $as_echo "$ac_res" >&6; } | 11833 if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then : |
20443 else | |
20444 # Is the header compilable? | |
20445 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
20446 $as_echo_n "checking $ac_header usability... " >&6; } | |
20447 cat >conftest.$ac_ext <<_ACEOF | |
20448 /* confdefs.h. */ | |
20449 _ACEOF | |
20450 cat confdefs.h >>conftest.$ac_ext | |
20451 cat >>conftest.$ac_ext <<_ACEOF | |
20452 /* end confdefs.h. */ | |
20453 $ac_includes_default | |
20454 #include <$ac_header> | |
20455 _ACEOF | |
20456 rm -f conftest.$ac_objext | |
20457 if { (ac_try="$ac_compile" | |
20458 case "(($ac_try" in | |
20459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20460 *) ac_try_echo=$ac_try;; | |
20461 esac | |
20462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20463 $as_echo "$ac_try_echo") >&5 | |
20464 (eval "$ac_compile") 2>conftest.er1 | |
20465 ac_status=$? | |
20466 grep -v '^ *+' conftest.er1 >conftest.err | |
20467 rm -f conftest.er1 | |
20468 cat conftest.err >&5 | |
20469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20470 (exit $ac_status); } && { | |
20471 test -z "$ac_c_werror_flag" || | |
20472 test ! -s conftest.err | |
20473 } && test -s conftest.$ac_objext; then | |
20474 ac_header_compiler=yes | |
20475 else | |
20476 $as_echo "$as_me: failed program was:" >&5 | |
20477 sed 's/^/| /' conftest.$ac_ext >&5 | |
20478 | |
20479 ac_header_compiler=no | |
20480 fi | |
20481 | |
20482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20483 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
20484 $as_echo "$ac_header_compiler" >&6; } | |
20485 | |
20486 # Is the header present? | |
20487 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
20488 $as_echo_n "checking $ac_header presence... " >&6; } | |
20489 cat >conftest.$ac_ext <<_ACEOF | |
20490 /* confdefs.h. */ | |
20491 _ACEOF | |
20492 cat confdefs.h >>conftest.$ac_ext | |
20493 cat >>conftest.$ac_ext <<_ACEOF | |
20494 /* end confdefs.h. */ | |
20495 #include <$ac_header> | |
20496 _ACEOF | |
20497 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
20498 case "(($ac_try" in | |
20499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20500 *) ac_try_echo=$ac_try;; | |
20501 esac | |
20502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20503 $as_echo "$ac_try_echo") >&5 | |
20504 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
20505 ac_status=$? | |
20506 grep -v '^ *+' conftest.er1 >conftest.err | |
20507 rm -f conftest.er1 | |
20508 cat conftest.err >&5 | |
20509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20510 (exit $ac_status); } >/dev/null && { | |
20511 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
20512 test ! -s conftest.err | |
20513 }; then | |
20514 ac_header_preproc=yes | |
20515 else | |
20516 $as_echo "$as_me: failed program was:" >&5 | |
20517 sed 's/^/| /' conftest.$ac_ext >&5 | |
20518 | |
20519 ac_header_preproc=no | |
20520 fi | |
20521 | |
20522 rm -f conftest.err conftest.$ac_ext | |
20523 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20524 $as_echo "$ac_header_preproc" >&6; } | |
20525 | |
20526 # So? What about this header? | |
20527 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
20528 yes:no: ) | |
20529 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
20530 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
20531 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
20532 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
20533 ac_header_preproc=yes | |
20534 ;; | |
20535 no:yes:* ) | |
20536 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
20537 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
20538 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
20539 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
20540 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
20541 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
20542 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
20543 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
20544 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
20545 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
20546 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
20547 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
20548 | |
20549 ;; | |
20550 esac | |
20551 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20552 $as_echo_n "checking for $ac_header... " >&6; } | |
20553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
20554 $as_echo_n "(cached) " >&6 | |
20555 else | |
20556 eval "$as_ac_Header=\$ac_header_preproc" | |
20557 fi | |
20558 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
20559 $as_echo "$as_val"'` | |
20560 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
20561 $as_echo "$ac_res" >&6; } | |
20562 | |
20563 fi | |
20564 if test `eval 'as_val=${'$as_ac_Header'} | |
20565 $as_echo "$as_val"'` = yes; then | |
20566 cat >>confdefs.h <<_ACEOF | |
20567 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
20568 _ACEOF | |
20569 | |
20570 else | |
20571 GETOPT_H=getopt.h | |
20572 fi | |
20573 | |
20574 done | |
20575 | |
20576 if test -z "$GETOPT_H"; then | |
20577 | |
20578 for ac_func in getopt_long_only | |
20579 do | |
20580 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
20581 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
20582 $as_echo_n "checking for $ac_func... " >&6; } | |
20583 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
20584 $as_echo_n "(cached) " >&6 | |
20585 else | |
20586 cat >conftest.$ac_ext <<_ACEOF | |
20587 /* confdefs.h. */ | |
20588 _ACEOF | |
20589 cat confdefs.h >>conftest.$ac_ext | |
20590 cat >>conftest.$ac_ext <<_ACEOF | |
20591 /* end confdefs.h. */ | |
20592 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
20593 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
20594 #define $ac_func innocuous_$ac_func | |
20595 | |
20596 /* System header to define __stub macros and hopefully few prototypes, | |
20597 which can conflict with char $ac_func (); below. | |
20598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
20599 <limits.h> exists even on freestanding compilers. */ | |
20600 | |
20601 #ifdef __STDC__ | |
20602 # include <limits.h> | |
20603 #else | |
20604 # include <assert.h> | |
20605 #endif | |
20606 | |
20607 #undef $ac_func | |
20608 | |
20609 /* Override any GCC internal prototype to avoid an error. | |
20610 Use char because int might match the return type of a GCC | |
20611 builtin and then its argument prototype would still apply. */ | |
20612 #ifdef __cplusplus | |
20613 extern "C" | |
20614 #endif | |
20615 char $ac_func (); | |
20616 /* The GNU C library defines this for functions which it implements | |
20617 to always fail with ENOSYS. Some functions are actually named | |
20618 something starting with __ and the normal name is an alias. */ | |
20619 #if defined __stub_$ac_func || defined __stub___$ac_func | |
20620 choke me | |
20621 #endif | |
20622 | |
20623 int | |
20624 main () | |
20625 { | |
20626 return $ac_func (); | |
20627 ; | |
20628 return 0; | |
20629 } | |
20630 _ACEOF | |
20631 rm -f conftest.$ac_objext conftest$ac_exeext | |
20632 if { (ac_try="$ac_link" | |
20633 case "(($ac_try" in | |
20634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20635 *) ac_try_echo=$ac_try;; | |
20636 esac | |
20637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20638 $as_echo "$ac_try_echo") >&5 | |
20639 (eval "$ac_link") 2>conftest.er1 | |
20640 ac_status=$? | |
20641 grep -v '^ *+' conftest.er1 >conftest.err | |
20642 rm -f conftest.er1 | |
20643 cat conftest.err >&5 | |
20644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20645 (exit $ac_status); } && { | |
20646 test -z "$ac_c_werror_flag" || | |
20647 test ! -s conftest.err | |
20648 } && test -s conftest$ac_exeext && { | |
20649 test "$cross_compiling" = yes || | |
20650 $as_test_x conftest$ac_exeext | |
20651 }; then | |
20652 eval "$as_ac_var=yes" | |
20653 else | |
20654 $as_echo "$as_me: failed program was:" >&5 | |
20655 sed 's/^/| /' conftest.$ac_ext >&5 | |
20656 | |
20657 eval "$as_ac_var=no" | |
20658 fi | |
20659 | |
20660 rm -rf conftest.dSYM | |
20661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
20662 conftest$ac_exeext conftest.$ac_ext | |
20663 fi | |
20664 ac_res=`eval 'as_val=${'$as_ac_var'} | |
20665 $as_echo "$as_val"'` | |
20666 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
20667 $as_echo "$ac_res" >&6; } | |
20668 if test `eval 'as_val=${'$as_ac_var'} | |
20669 $as_echo "$as_val"'` = yes; then | |
20670 cat >>confdefs.h <<_ACEOF | |
20671 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
20672 _ACEOF | |
20673 | |
20674 else | |
20675 GETOPT_H=getopt.h | |
20676 fi | |
20677 done | |
20678 | |
20679 fi | |
20680 | |
20681 if test -z "$GETOPT_H"; then | |
20682 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5 | |
20683 $as_echo_n "checking whether optreset is declared... " >&6; } | |
20684 if test "${ac_cv_have_decl_optreset+set}" = set; then | |
20685 $as_echo_n "(cached) " >&6 | |
20686 else | |
20687 cat >conftest.$ac_ext <<_ACEOF | |
20688 /* confdefs.h. */ | |
20689 _ACEOF | |
20690 cat confdefs.h >>conftest.$ac_ext | |
20691 cat >>conftest.$ac_ext <<_ACEOF | |
20692 /* end confdefs.h. */ | |
20693 #include <getopt.h> | |
20694 | |
20695 int | |
20696 main () | |
20697 { | |
20698 #ifndef optreset | |
20699 (void) optreset; | |
20700 #endif | |
20701 | |
20702 ; | |
20703 return 0; | |
20704 } | |
20705 _ACEOF | |
20706 rm -f conftest.$ac_objext | |
20707 if { (ac_try="$ac_compile" | |
20708 case "(($ac_try" in | |
20709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20710 *) ac_try_echo=$ac_try;; | |
20711 esac | |
20712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20713 $as_echo "$ac_try_echo") >&5 | |
20714 (eval "$ac_compile") 2>conftest.er1 | |
20715 ac_status=$? | |
20716 grep -v '^ *+' conftest.er1 >conftest.err | |
20717 rm -f conftest.er1 | |
20718 cat conftest.err >&5 | |
20719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20720 (exit $ac_status); } && { | |
20721 test -z "$ac_c_werror_flag" || | |
20722 test ! -s conftest.err | |
20723 } && test -s conftest.$ac_objext; then | |
20724 ac_cv_have_decl_optreset=yes | |
20725 else | |
20726 $as_echo "$as_me: failed program was:" >&5 | |
20727 sed 's/^/| /' conftest.$ac_ext >&5 | |
20728 | |
20729 ac_cv_have_decl_optreset=no | |
20730 fi | |
20731 | |
20732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20733 fi | |
20734 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5 | |
20735 $as_echo "$ac_cv_have_decl_optreset" >&6; } | |
20736 if test $ac_cv_have_decl_optreset = yes; then | |
20737 GETOPT_H=getopt.h | |
20738 fi | |
20739 | |
20740 fi | |
20741 | |
20742 if test -z "$GETOPT_H"; then | |
20743 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5 | |
20744 $as_echo_n "checking for working GNU getopt function... " >&6; } | |
20745 if test "${gl_cv_func_gnu_getopt+set}" = set; then | |
20746 $as_echo_n "(cached) " >&6 | |
20747 else | |
20748 if test "$cross_compiling" = yes; then | |
20749 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5 | |
20750 $as_echo_n "checking whether getopt_clip is declared... " >&6; } | |
20751 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then | |
20752 $as_echo_n "(cached) " >&6 | |
20753 else | |
20754 cat >conftest.$ac_ext <<_ACEOF | |
20755 /* confdefs.h. */ | |
20756 _ACEOF | |
20757 cat confdefs.h >>conftest.$ac_ext | |
20758 cat >>conftest.$ac_ext <<_ACEOF | |
20759 /* end confdefs.h. */ | |
20760 #include <getopt.h> | |
20761 | |
20762 int | |
20763 main () | |
20764 { | |
20765 #ifndef getopt_clip | |
20766 (void) getopt_clip; | |
20767 #endif | |
20768 | |
20769 ; | |
20770 return 0; | |
20771 } | |
20772 _ACEOF | |
20773 rm -f conftest.$ac_objext | |
20774 if { (ac_try="$ac_compile" | |
20775 case "(($ac_try" in | |
20776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20777 *) ac_try_echo=$ac_try;; | |
20778 esac | |
20779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20780 $as_echo "$ac_try_echo") >&5 | |
20781 (eval "$ac_compile") 2>conftest.er1 | |
20782 ac_status=$? | |
20783 grep -v '^ *+' conftest.er1 >conftest.err | |
20784 rm -f conftest.er1 | |
20785 cat conftest.err >&5 | |
20786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20787 (exit $ac_status); } && { | |
20788 test -z "$ac_c_werror_flag" || | |
20789 test ! -s conftest.err | |
20790 } && test -s conftest.$ac_objext; then | |
20791 ac_cv_have_decl_getopt_clip=yes | |
20792 else | |
20793 $as_echo "$as_me: failed program was:" >&5 | |
20794 sed 's/^/| /' conftest.$ac_ext >&5 | |
20795 | |
20796 ac_cv_have_decl_getopt_clip=no | |
20797 fi | |
20798 | |
20799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20800 fi | |
20801 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5 | |
20802 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; } | |
20803 if test $ac_cv_have_decl_getopt_clip = yes; then | |
20804 gl_cv_func_gnu_getopt=no | 11834 gl_cv_func_gnu_getopt=no |
20805 else | 11835 else |
20806 gl_cv_func_gnu_getopt=yes | 11836 gl_cv_func_gnu_getopt=yes |
20807 fi | 11837 fi |
20808 | 11838 |
20809 else | 11839 else |
20810 cat >conftest.$ac_ext <<_ACEOF | 11840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
20811 /* confdefs.h. */ | |
20812 _ACEOF | |
20813 cat confdefs.h >>conftest.$ac_ext | |
20814 cat >>conftest.$ac_ext <<_ACEOF | |
20815 /* end confdefs.h. */ | 11841 /* end confdefs.h. */ |
20816 #include <getopt.h> | 11842 #include <getopt.h> |
20817 int | 11843 int |
20818 main () | 11844 main () |
20819 { | 11845 { |
20826 | 11852 |
20827 ; | 11853 ; |
20828 return 0; | 11854 return 0; |
20829 } | 11855 } |
20830 _ACEOF | 11856 _ACEOF |
20831 rm -f conftest$ac_exeext | 11857 if ac_fn_c_try_run "$LINENO"; then : |
20832 if { (ac_try="$ac_link" | |
20833 case "(($ac_try" in | |
20834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20835 *) ac_try_echo=$ac_try;; | |
20836 esac | |
20837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20838 $as_echo "$ac_try_echo") >&5 | |
20839 (eval "$ac_link") 2>&5 | |
20840 ac_status=$? | |
20841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20842 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20843 { (case "(($ac_try" in | |
20844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20845 *) ac_try_echo=$ac_try;; | |
20846 esac | |
20847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20848 $as_echo "$ac_try_echo") >&5 | |
20849 (eval "$ac_try") 2>&5 | |
20850 ac_status=$? | |
20851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20852 (exit $ac_status); }; }; then | |
20853 gl_cv_func_gnu_getopt=yes | 11858 gl_cv_func_gnu_getopt=yes |
20854 else | 11859 else |
20855 $as_echo "$as_me: program exited with status $ac_status" >&5 | 11860 gl_cv_func_gnu_getopt=no |
20856 $as_echo "$as_me: failed program was:" >&5 | 11861 fi |
20857 sed 's/^/| /' conftest.$ac_ext >&5 | 11862 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
20858 | 11863 conftest.$ac_objext conftest.beam conftest.$ac_ext |
20859 ( exit $ac_status ) | 11864 fi |
20860 gl_cv_func_gnu_getopt=no | 11865 |
20861 fi | 11866 fi |
20862 rm -rf conftest.dSYM | 11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5 |
20863 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
20864 fi | |
20865 | |
20866 | |
20867 fi | |
20868 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5 | |
20869 $as_echo "$gl_cv_func_gnu_getopt" >&6; } | 11868 $as_echo "$gl_cv_func_gnu_getopt" >&6; } |
20870 if test "$gl_cv_func_gnu_getopt" = "no"; then | 11869 if test "$gl_cv_func_gnu_getopt" = "no"; then |
20871 GETOPT_H=getopt.h | 11870 GETOPT_H=getopt.h |
20872 fi | 11871 fi |
20873 fi | 11872 fi |
20874 | 11873 |
20875 | 11874 |
20876 | 11875 |
20877 if test -n "$GETOPT_H"; then | 11876 if test -n "$GETOPT_H"; then : |
20878 | 11877 |
20879 | 11878 |
20880 GETOPT_H=getopt.h | 11879 GETOPT_H=getopt.h |
20881 | 11880 |
20882 cat >>confdefs.h <<\_ACEOF | 11881 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h |
20883 #define __GETOPT_PREFIX rpl_ | |
20884 _ACEOF | |
20885 | 11882 |
20886 | 11883 |
20887 | 11884 |
20888 : | 11885 : |
20889 GETOPTOBJS='getopt.o getopt1.o' | 11886 GETOPTOBJS='getopt.o getopt1.o' |
20890 | 11887 |
20891 fi | 11888 fi |
20892 | 11889 |
20893 | 11890 |
20894 | 11891 |
20895 | 11892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5 |
20896 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5 | |
20897 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; } | 11893 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; } |
20898 if test "${ac_cv_func_getpgrp_void+set}" = set; then | 11894 if test "${ac_cv_func_getpgrp_void+set}" = set; then : |
20899 $as_echo_n "(cached) " >&6 | 11895 $as_echo_n "(cached) " >&6 |
20900 else | 11896 else |
20901 # Use it with a single arg. | 11897 # Use it with a single arg. |
20902 cat >conftest.$ac_ext <<_ACEOF | 11898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
20903 /* confdefs.h. */ | |
20904 _ACEOF | |
20905 cat confdefs.h >>conftest.$ac_ext | |
20906 cat >>conftest.$ac_ext <<_ACEOF | |
20907 /* end confdefs.h. */ | 11899 /* end confdefs.h. */ |
20908 $ac_includes_default | 11900 $ac_includes_default |
20909 int | 11901 int |
20910 main () | 11902 main () |
20911 { | 11903 { |
20912 getpgrp (0); | 11904 getpgrp (0); |
20913 ; | 11905 ; |
20914 return 0; | 11906 return 0; |
20915 } | 11907 } |
20916 _ACEOF | 11908 _ACEOF |
20917 rm -f conftest.$ac_objext | 11909 if ac_fn_c_try_compile "$LINENO"; then : |
20918 if { (ac_try="$ac_compile" | |
20919 case "(($ac_try" in | |
20920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20921 *) ac_try_echo=$ac_try;; | |
20922 esac | |
20923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20924 $as_echo "$ac_try_echo") >&5 | |
20925 (eval "$ac_compile") 2>conftest.er1 | |
20926 ac_status=$? | |
20927 grep -v '^ *+' conftest.er1 >conftest.err | |
20928 rm -f conftest.er1 | |
20929 cat conftest.err >&5 | |
20930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20931 (exit $ac_status); } && { | |
20932 test -z "$ac_c_werror_flag" || | |
20933 test ! -s conftest.err | |
20934 } && test -s conftest.$ac_objext; then | |
20935 ac_cv_func_getpgrp_void=no | 11910 ac_cv_func_getpgrp_void=no |
20936 else | 11911 else |
20937 $as_echo "$as_me: failed program was:" >&5 | 11912 ac_cv_func_getpgrp_void=yes |
20938 sed 's/^/| /' conftest.$ac_ext >&5 | 11913 fi |
20939 | |
20940 ac_cv_func_getpgrp_void=yes | |
20941 fi | |
20942 | |
20943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 11914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
20944 | 11915 |
20945 fi | 11916 fi |
20946 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5 | 11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5 |
20947 $as_echo "$ac_cv_func_getpgrp_void" >&6; } | 11918 $as_echo "$ac_cv_func_getpgrp_void" >&6; } |
20948 if test $ac_cv_func_getpgrp_void = yes; then | 11919 if test $ac_cv_func_getpgrp_void = yes; then |
20949 | 11920 |
20950 cat >>confdefs.h <<\_ACEOF | 11921 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h |
20951 #define GETPGRP_VOID 1 | 11922 |
20952 _ACEOF | 11923 fi |
20953 | |
20954 fi | |
20955 | |
20956 | 11924 |
20957 | 11925 |
20958 for ac_func in strftime | 11926 for ac_func in strftime |
20959 do | 11927 do : |
20960 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 11928 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" |
20961 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | 11929 if test "x$ac_cv_func_strftime" = x""yes; then : |
20962 $as_echo_n "checking for $ac_func... " >&6; } | |
20963 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
20964 $as_echo_n "(cached) " >&6 | |
20965 else | |
20966 cat >conftest.$ac_ext <<_ACEOF | |
20967 /* confdefs.h. */ | |
20968 _ACEOF | |
20969 cat confdefs.h >>conftest.$ac_ext | |
20970 cat >>conftest.$ac_ext <<_ACEOF | |
20971 /* end confdefs.h. */ | |
20972 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
20973 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
20974 #define $ac_func innocuous_$ac_func | |
20975 | |
20976 /* System header to define __stub macros and hopefully few prototypes, | |
20977 which can conflict with char $ac_func (); below. | |
20978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
20979 <limits.h> exists even on freestanding compilers. */ | |
20980 | |
20981 #ifdef __STDC__ | |
20982 # include <limits.h> | |
20983 #else | |
20984 # include <assert.h> | |
20985 #endif | |
20986 | |
20987 #undef $ac_func | |
20988 | |
20989 /* Override any GCC internal prototype to avoid an error. | |
20990 Use char because int might match the return type of a GCC | |
20991 builtin and then its argument prototype would still apply. */ | |
20992 #ifdef __cplusplus | |
20993 extern "C" | |
20994 #endif | |
20995 char $ac_func (); | |
20996 /* The GNU C library defines this for functions which it implements | |
20997 to always fail with ENOSYS. Some functions are actually named | |
20998 something starting with __ and the normal name is an alias. */ | |
20999 #if defined __stub_$ac_func || defined __stub___$ac_func | |
21000 choke me | |
21001 #endif | |
21002 | |
21003 int | |
21004 main () | |
21005 { | |
21006 return $ac_func (); | |
21007 ; | |
21008 return 0; | |
21009 } | |
21010 _ACEOF | |
21011 rm -f conftest.$ac_objext conftest$ac_exeext | |
21012 if { (ac_try="$ac_link" | |
21013 case "(($ac_try" in | |
21014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21015 *) ac_try_echo=$ac_try;; | |
21016 esac | |
21017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21018 $as_echo "$ac_try_echo") >&5 | |
21019 (eval "$ac_link") 2>conftest.er1 | |
21020 ac_status=$? | |
21021 grep -v '^ *+' conftest.er1 >conftest.err | |
21022 rm -f conftest.er1 | |
21023 cat conftest.err >&5 | |
21024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21025 (exit $ac_status); } && { | |
21026 test -z "$ac_c_werror_flag" || | |
21027 test ! -s conftest.err | |
21028 } && test -s conftest$ac_exeext && { | |
21029 test "$cross_compiling" = yes || | |
21030 $as_test_x conftest$ac_exeext | |
21031 }; then | |
21032 eval "$as_ac_var=yes" | |
21033 else | |
21034 $as_echo "$as_me: failed program was:" >&5 | |
21035 sed 's/^/| /' conftest.$ac_ext >&5 | |
21036 | |
21037 eval "$as_ac_var=no" | |
21038 fi | |
21039 | |
21040 rm -rf conftest.dSYM | |
21041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
21042 conftest$ac_exeext conftest.$ac_ext | |
21043 fi | |
21044 ac_res=`eval 'as_val=${'$as_ac_var'} | |
21045 $as_echo "$as_val"'` | |
21046 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
21047 $as_echo "$ac_res" >&6; } | |
21048 if test `eval 'as_val=${'$as_ac_var'} | |
21049 $as_echo "$as_val"'` = yes; then | |
21050 cat >>confdefs.h <<_ACEOF | 11930 cat >>confdefs.h <<_ACEOF |
21051 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 11931 #define HAVE_STRFTIME 1 |
21052 _ACEOF | 11932 _ACEOF |
21053 | 11933 |
21054 else | 11934 else |
21055 # strftime is in -lintl on SCO UNIX. | 11935 # strftime is in -lintl on SCO UNIX. |
21056 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5 | 11936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5 |
21057 $as_echo_n "checking for strftime in -lintl... " >&6; } | 11937 $as_echo_n "checking for strftime in -lintl... " >&6; } |
21058 if test "${ac_cv_lib_intl_strftime+set}" = set; then | 11938 if test "${ac_cv_lib_intl_strftime+set}" = set; then : |
21059 $as_echo_n "(cached) " >&6 | 11939 $as_echo_n "(cached) " >&6 |
21060 else | 11940 else |
21061 ac_check_lib_save_LIBS=$LIBS | 11941 ac_check_lib_save_LIBS=$LIBS |
21062 LIBS="-lintl $LIBS" | 11942 LIBS="-lintl $LIBS" |
21063 cat >conftest.$ac_ext <<_ACEOF | 11943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
21064 /* confdefs.h. */ | |
21065 _ACEOF | |
21066 cat confdefs.h >>conftest.$ac_ext | |
21067 cat >>conftest.$ac_ext <<_ACEOF | |
21068 /* end confdefs.h. */ | 11944 /* end confdefs.h. */ |
21069 | 11945 |
21070 /* Override any GCC internal prototype to avoid an error. | 11946 /* Override any GCC internal prototype to avoid an error. |
21071 Use char because int might match the return type of a GCC | 11947 Use char because int might match the return type of a GCC |
21072 builtin and then its argument prototype would still apply. */ | 11948 builtin and then its argument prototype would still apply. */ |
21080 return strftime (); | 11956 return strftime (); |
21081 ; | 11957 ; |
21082 return 0; | 11958 return 0; |
21083 } | 11959 } |
21084 _ACEOF | 11960 _ACEOF |
21085 rm -f conftest.$ac_objext conftest$ac_exeext | 11961 if ac_fn_c_try_link "$LINENO"; then : |
21086 if { (ac_try="$ac_link" | |
21087 case "(($ac_try" in | |
21088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21089 *) ac_try_echo=$ac_try;; | |
21090 esac | |
21091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21092 $as_echo "$ac_try_echo") >&5 | |
21093 (eval "$ac_link") 2>conftest.er1 | |
21094 ac_status=$? | |
21095 grep -v '^ *+' conftest.er1 >conftest.err | |
21096 rm -f conftest.er1 | |
21097 cat conftest.err >&5 | |
21098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21099 (exit $ac_status); } && { | |
21100 test -z "$ac_c_werror_flag" || | |
21101 test ! -s conftest.err | |
21102 } && test -s conftest$ac_exeext && { | |
21103 test "$cross_compiling" = yes || | |
21104 $as_test_x conftest$ac_exeext | |
21105 }; then | |
21106 ac_cv_lib_intl_strftime=yes | 11962 ac_cv_lib_intl_strftime=yes |
21107 else | 11963 else |
21108 $as_echo "$as_me: failed program was:" >&5 | 11964 ac_cv_lib_intl_strftime=no |
21109 sed 's/^/| /' conftest.$ac_ext >&5 | 11965 fi |
21110 | 11966 rm -f core conftest.err conftest.$ac_objext \ |
21111 ac_cv_lib_intl_strftime=no | 11967 conftest$ac_exeext conftest.$ac_ext |
21112 fi | |
21113 | |
21114 rm -rf conftest.dSYM | |
21115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
21116 conftest$ac_exeext conftest.$ac_ext | |
21117 LIBS=$ac_check_lib_save_LIBS | 11968 LIBS=$ac_check_lib_save_LIBS |
21118 fi | 11969 fi |
21119 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5 | 11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5 |
21120 $as_echo "$ac_cv_lib_intl_strftime" >&6; } | 11971 $as_echo "$ac_cv_lib_intl_strftime" >&6; } |
21121 if test $ac_cv_lib_intl_strftime = yes; then | 11972 if test "x$ac_cv_lib_intl_strftime" = x""yes; then : |
21122 cat >>confdefs.h <<\_ACEOF | 11973 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h |
21123 #define HAVE_STRFTIME 1 | |
21124 _ACEOF | |
21125 | 11974 |
21126 LIBS="-lintl $LIBS" | 11975 LIBS="-lintl $LIBS" |
21127 fi | 11976 fi |
21128 | 11977 |
21129 fi | 11978 fi |
21130 done | 11979 done |
21131 | 11980 |
21132 | 11981 |
21133 # UNIX98 PTYs. | 11982 # UNIX98 PTYs. |
21134 | |
21135 for ac_func in grantpt | 11983 for ac_func in grantpt |
21136 do | 11984 do : |
21137 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 11985 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt" |
21138 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | 11986 if test "x$ac_cv_func_grantpt" = x""yes; then : |
21139 $as_echo_n "checking for $ac_func... " >&6; } | |
21140 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
21141 $as_echo_n "(cached) " >&6 | |
21142 else | |
21143 cat >conftest.$ac_ext <<_ACEOF | |
21144 /* confdefs.h. */ | |
21145 _ACEOF | |
21146 cat confdefs.h >>conftest.$ac_ext | |
21147 cat >>conftest.$ac_ext <<_ACEOF | |
21148 /* end confdefs.h. */ | |
21149 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
21150 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
21151 #define $ac_func innocuous_$ac_func | |
21152 | |
21153 /* System header to define __stub macros and hopefully few prototypes, | |
21154 which can conflict with char $ac_func (); below. | |
21155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21156 <limits.h> exists even on freestanding compilers. */ | |
21157 | |
21158 #ifdef __STDC__ | |
21159 # include <limits.h> | |
21160 #else | |
21161 # include <assert.h> | |
21162 #endif | |
21163 | |
21164 #undef $ac_func | |
21165 | |
21166 /* Override any GCC internal prototype to avoid an error. | |
21167 Use char because int might match the return type of a GCC | |
21168 builtin and then its argument prototype would still apply. */ | |
21169 #ifdef __cplusplus | |
21170 extern "C" | |
21171 #endif | |
21172 char $ac_func (); | |
21173 /* The GNU C library defines this for functions which it implements | |
21174 to always fail with ENOSYS. Some functions are actually named | |
21175 something starting with __ and the normal name is an alias. */ | |
21176 #if defined __stub_$ac_func || defined __stub___$ac_func | |
21177 choke me | |
21178 #endif | |
21179 | |
21180 int | |
21181 main () | |
21182 { | |
21183 return $ac_func (); | |
21184 ; | |
21185 return 0; | |
21186 } | |
21187 _ACEOF | |
21188 rm -f conftest.$ac_objext conftest$ac_exeext | |
21189 if { (ac_try="$ac_link" | |
21190 case "(($ac_try" in | |
21191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21192 *) ac_try_echo=$ac_try;; | |
21193 esac | |
21194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21195 $as_echo "$ac_try_echo") >&5 | |
21196 (eval "$ac_link") 2>conftest.er1 | |
21197 ac_status=$? | |
21198 grep -v '^ *+' conftest.er1 >conftest.err | |
21199 rm -f conftest.er1 | |
21200 cat conftest.err >&5 | |
21201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21202 (exit $ac_status); } && { | |
21203 test -z "$ac_c_werror_flag" || | |
21204 test ! -s conftest.err | |
21205 } && test -s conftest$ac_exeext && { | |
21206 test "$cross_compiling" = yes || | |
21207 $as_test_x conftest$ac_exeext | |
21208 }; then | |
21209 eval "$as_ac_var=yes" | |
21210 else | |
21211 $as_echo "$as_me: failed program was:" >&5 | |
21212 sed 's/^/| /' conftest.$ac_ext >&5 | |
21213 | |
21214 eval "$as_ac_var=no" | |
21215 fi | |
21216 | |
21217 rm -rf conftest.dSYM | |
21218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
21219 conftest$ac_exeext conftest.$ac_ext | |
21220 fi | |
21221 ac_res=`eval 'as_val=${'$as_ac_var'} | |
21222 $as_echo "$as_val"'` | |
21223 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
21224 $as_echo "$ac_res" >&6; } | |
21225 if test `eval 'as_val=${'$as_ac_var'} | |
21226 $as_echo "$as_val"'` = yes; then | |
21227 cat >>confdefs.h <<_ACEOF | 11987 cat >>confdefs.h <<_ACEOF |
21228 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 11988 #define HAVE_GRANTPT 1 |
21229 _ACEOF | 11989 _ACEOF |
21230 | 11990 |
21231 fi | 11991 fi |
21232 done | 11992 done |
21233 | 11993 |
21234 | 11994 |
21235 # PTY-related GNU extensions. | 11995 # PTY-related GNU extensions. |
21236 | |
21237 for ac_func in getpt | 11996 for ac_func in getpt |
21238 do | 11997 do : |
21239 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 11998 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt" |
21240 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | 11999 if test "x$ac_cv_func_getpt" = x""yes; then : |
21241 $as_echo_n "checking for $ac_func... " >&6; } | |
21242 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
21243 $as_echo_n "(cached) " >&6 | |
21244 else | |
21245 cat >conftest.$ac_ext <<_ACEOF | |
21246 /* confdefs.h. */ | |
21247 _ACEOF | |
21248 cat confdefs.h >>conftest.$ac_ext | |
21249 cat >>conftest.$ac_ext <<_ACEOF | |
21250 /* end confdefs.h. */ | |
21251 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
21252 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
21253 #define $ac_func innocuous_$ac_func | |
21254 | |
21255 /* System header to define __stub macros and hopefully few prototypes, | |
21256 which can conflict with char $ac_func (); below. | |
21257 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21258 <limits.h> exists even on freestanding compilers. */ | |
21259 | |
21260 #ifdef __STDC__ | |
21261 # include <limits.h> | |
21262 #else | |
21263 # include <assert.h> | |
21264 #endif | |
21265 | |
21266 #undef $ac_func | |
21267 | |
21268 /* Override any GCC internal prototype to avoid an error. | |
21269 Use char because int might match the return type of a GCC | |
21270 builtin and then its argument prototype would still apply. */ | |
21271 #ifdef __cplusplus | |
21272 extern "C" | |
21273 #endif | |
21274 char $ac_func (); | |
21275 /* The GNU C library defines this for functions which it implements | |
21276 to always fail with ENOSYS. Some functions are actually named | |
21277 something starting with __ and the normal name is an alias. */ | |
21278 #if defined __stub_$ac_func || defined __stub___$ac_func | |
21279 choke me | |
21280 #endif | |
21281 | |
21282 int | |
21283 main () | |
21284 { | |
21285 return $ac_func (); | |
21286 ; | |
21287 return 0; | |
21288 } | |
21289 _ACEOF | |
21290 rm -f conftest.$ac_objext conftest$ac_exeext | |
21291 if { (ac_try="$ac_link" | |
21292 case "(($ac_try" in | |
21293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21294 *) ac_try_echo=$ac_try;; | |
21295 esac | |
21296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21297 $as_echo "$ac_try_echo") >&5 | |
21298 (eval "$ac_link") 2>conftest.er1 | |
21299 ac_status=$? | |
21300 grep -v '^ *+' conftest.er1 >conftest.err | |
21301 rm -f conftest.er1 | |
21302 cat conftest.err >&5 | |
21303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21304 (exit $ac_status); } && { | |
21305 test -z "$ac_c_werror_flag" || | |
21306 test ! -s conftest.err | |
21307 } && test -s conftest$ac_exeext && { | |
21308 test "$cross_compiling" = yes || | |
21309 $as_test_x conftest$ac_exeext | |
21310 }; then | |
21311 eval "$as_ac_var=yes" | |
21312 else | |
21313 $as_echo "$as_me: failed program was:" >&5 | |
21314 sed 's/^/| /' conftest.$ac_ext >&5 | |
21315 | |
21316 eval "$as_ac_var=no" | |
21317 fi | |
21318 | |
21319 rm -rf conftest.dSYM | |
21320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
21321 conftest$ac_exeext conftest.$ac_ext | |
21322 fi | |
21323 ac_res=`eval 'as_val=${'$as_ac_var'} | |
21324 $as_echo "$as_val"'` | |
21325 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
21326 $as_echo "$ac_res" >&6; } | |
21327 if test `eval 'as_val=${'$as_ac_var'} | |
21328 $as_echo "$as_val"'` = yes; then | |
21329 cat >>confdefs.h <<_ACEOF | 12000 cat >>confdefs.h <<_ACEOF |
21330 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 12001 #define HAVE_GETPT 1 |
21331 _ACEOF | 12002 _ACEOF |
21332 | 12003 |
21333 fi | 12004 fi |
21334 done | 12005 done |
21335 | 12006 |
21338 # That is because we have not set up to link ncurses in lib-src. | 12009 # That is because we have not set up to link ncurses in lib-src. |
21339 # It's better to believe a function is not available | 12010 # It's better to believe a function is not available |
21340 # than to expect to find it in ncurses. | 12011 # than to expect to find it in ncurses. |
21341 # Also we need tputs and frieds to be able to build at all. | 12012 # Also we need tputs and frieds to be able to build at all. |
21342 have_tputs_et_al=true | 12013 have_tputs_et_al=true |
21343 { $as_echo "$as_me:$LINENO: checking for library containing tputs" >&5 | 12014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5 |
21344 $as_echo_n "checking for library containing tputs... " >&6; } | 12015 $as_echo_n "checking for library containing tputs... " >&6; } |
21345 if test "${ac_cv_search_tputs+set}" = set; then | 12016 if test "${ac_cv_search_tputs+set}" = set; then : |
21346 $as_echo_n "(cached) " >&6 | 12017 $as_echo_n "(cached) " >&6 |
21347 else | 12018 else |
21348 ac_func_search_save_LIBS=$LIBS | 12019 ac_func_search_save_LIBS=$LIBS |
21349 cat >conftest.$ac_ext <<_ACEOF | 12020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
21350 /* confdefs.h. */ | |
21351 _ACEOF | |
21352 cat confdefs.h >>conftest.$ac_ext | |
21353 cat >>conftest.$ac_ext <<_ACEOF | |
21354 /* end confdefs.h. */ | 12021 /* end confdefs.h. */ |
21355 | 12022 |
21356 /* Override any GCC internal prototype to avoid an error. | 12023 /* Override any GCC internal prototype to avoid an error. |
21357 Use char because int might match the return type of a GCC | 12024 Use char because int might match the return type of a GCC |
21358 builtin and then its argument prototype would still apply. */ | 12025 builtin and then its argument prototype would still apply. */ |
21373 ac_res="none required" | 12040 ac_res="none required" |
21374 else | 12041 else |
21375 ac_res=-l$ac_lib | 12042 ac_res=-l$ac_lib |
21376 LIBS="-l$ac_lib $ac_func_search_save_LIBS" | 12043 LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
21377 fi | 12044 fi |
21378 rm -f conftest.$ac_objext conftest$ac_exeext | 12045 if ac_fn_c_try_link "$LINENO"; then : |
21379 if { (ac_try="$ac_link" | |
21380 case "(($ac_try" in | |
21381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21382 *) ac_try_echo=$ac_try;; | |
21383 esac | |
21384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21385 $as_echo "$ac_try_echo") >&5 | |
21386 (eval "$ac_link") 2>conftest.er1 | |
21387 ac_status=$? | |
21388 grep -v '^ *+' conftest.er1 >conftest.err | |
21389 rm -f conftest.er1 | |
21390 cat conftest.err >&5 | |
21391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21392 (exit $ac_status); } && { | |
21393 test -z "$ac_c_werror_flag" || | |
21394 test ! -s conftest.err | |
21395 } && test -s conftest$ac_exeext && { | |
21396 test "$cross_compiling" = yes || | |
21397 $as_test_x conftest$ac_exeext | |
21398 }; then | |
21399 ac_cv_search_tputs=$ac_res | 12046 ac_cv_search_tputs=$ac_res |
21400 else | 12047 fi |
21401 $as_echo "$as_me: failed program was:" >&5 | 12048 rm -f core conftest.err conftest.$ac_objext \ |
21402 sed 's/^/| /' conftest.$ac_ext >&5 | 12049 conftest$ac_exeext |
21403 | 12050 if test "${ac_cv_search_tputs+set}" = set; then : |
21404 | |
21405 fi | |
21406 | |
21407 rm -rf conftest.dSYM | |
21408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
21409 conftest$ac_exeext | |
21410 if test "${ac_cv_search_tputs+set}" = set; then | |
21411 break | 12051 break |
21412 fi | 12052 fi |
21413 done | 12053 done |
21414 if test "${ac_cv_search_tputs+set}" = set; then | 12054 if test "${ac_cv_search_tputs+set}" = set; then : |
21415 : | 12055 |
21416 else | 12056 else |
21417 ac_cv_search_tputs=no | 12057 ac_cv_search_tputs=no |
21418 fi | 12058 fi |
21419 rm conftest.$ac_ext | 12059 rm conftest.$ac_ext |
21420 LIBS=$ac_func_search_save_LIBS | 12060 LIBS=$ac_func_search_save_LIBS |
21421 fi | 12061 fi |
21422 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tputs" >&5 | 12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5 |
21423 $as_echo "$ac_cv_search_tputs" >&6; } | 12063 $as_echo "$ac_cv_search_tputs" >&6; } |
21424 ac_res=$ac_cv_search_tputs | 12064 ac_res=$ac_cv_search_tputs |
21425 if test "$ac_res" != no; then | 12065 if test "$ac_res" != no; then : |
21426 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 12066 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
21427 | 12067 |
21428 else | 12068 else |
21429 have_tputs_et_al=false | 12069 have_tputs_et_al=false |
21430 fi | 12070 fi |
21431 | 12071 |
21432 if test "$have_tputs_et_al" != true; then | 12072 if test "$have_tputs_et_al" != true; then |
21433 { { $as_echo "$as_me:$LINENO: error: I couldn't find termcap functions (tputs and friends). | 12073 as_fn_error "I couldn't find termcap functions (tputs and friends). |
21434 Maybe some development libraries/packages are missing? Try installing | 12074 Maybe some development libraries/packages are missing? Try installing |
21435 libncurses-dev(el), libterminfo-dev(el) or similar." >&5 | 12075 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5 |
21436 $as_echo "$as_me: error: I couldn't find termcap functions (tputs and friends). | |
21437 Maybe some development libraries/packages are missing? Try installing | |
21438 libncurses-dev(el), libterminfo-dev(el) or similar." >&2;} | |
21439 { (exit 1); exit 1; }; } | |
21440 fi | 12076 fi |
21441 # Must define this when any termcap library is found. | 12077 # Must define this when any termcap library is found. |
21442 | 12078 |
21443 cat >>confdefs.h <<\_ACEOF | 12079 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h |
21444 #define HAVE_LIBNCURSES 1 | |
21445 _ACEOF | |
21446 | 12080 |
21447 | 12081 |
21448 # Do we have res_init, for detecting changes in /etc/resolv.conf? | 12082 # Do we have res_init, for detecting changes in /etc/resolv.conf? |
21449 | 12083 |
21450 resolv=no | 12084 resolv=no |
21451 cat >conftest.$ac_ext <<_ACEOF | 12085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
21452 /* confdefs.h. */ | |
21453 _ACEOF | |
21454 cat confdefs.h >>conftest.$ac_ext | |
21455 cat >>conftest.$ac_ext <<_ACEOF | |
21456 /* end confdefs.h. */ | 12086 /* end confdefs.h. */ |
21457 #include <netinet/in.h> | 12087 #include <netinet/in.h> |
21458 #include <arpa/nameser.h> | 12088 #include <arpa/nameser.h> |
21459 #include <resolv.h> | 12089 #include <resolv.h> |
21460 int | 12090 int |
21463 return res_init(); | 12093 return res_init(); |
21464 ; | 12094 ; |
21465 return 0; | 12095 return 0; |
21466 } | 12096 } |
21467 _ACEOF | 12097 _ACEOF |
21468 rm -f conftest.$ac_objext conftest$ac_exeext | 12098 if ac_fn_c_try_link "$LINENO"; then : |
21469 if { (ac_try="$ac_link" | |
21470 case "(($ac_try" in | |
21471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21472 *) ac_try_echo=$ac_try;; | |
21473 esac | |
21474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21475 $as_echo "$ac_try_echo") >&5 | |
21476 (eval "$ac_link") 2>conftest.er1 | |
21477 ac_status=$? | |
21478 grep -v '^ *+' conftest.er1 >conftest.err | |
21479 rm -f conftest.er1 | |
21480 cat conftest.err >&5 | |
21481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21482 (exit $ac_status); } && { | |
21483 test -z "$ac_c_werror_flag" || | |
21484 test ! -s conftest.err | |
21485 } && test -s conftest$ac_exeext && { | |
21486 test "$cross_compiling" = yes || | |
21487 $as_test_x conftest$ac_exeext | |
21488 }; then | |
21489 have_res_init=yes | 12099 have_res_init=yes |
21490 else | 12100 else |
21491 $as_echo "$as_me: failed program was:" >&5 | 12101 have_res_init=no |
21492 sed 's/^/| /' conftest.$ac_ext >&5 | 12102 fi |
21493 | 12103 rm -f core conftest.err conftest.$ac_objext \ |
21494 have_res_init=no | 12104 conftest$ac_exeext conftest.$ac_ext |
21495 fi | |
21496 | |
21497 rm -rf conftest.dSYM | |
21498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
21499 conftest$ac_exeext conftest.$ac_ext | |
21500 if test "$have_res_init" = no; then | 12105 if test "$have_res_init" = no; then |
21501 OLIBS="$LIBS" | 12106 OLIBS="$LIBS" |
21502 LIBS="$LIBS -lresolv" | 12107 LIBS="$LIBS -lresolv" |
21503 { $as_echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5 | 12108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5 |
21504 $as_echo_n "checking for res_init with -lresolv... " >&6; } | 12109 $as_echo_n "checking for res_init with -lresolv... " >&6; } |
21505 cat >conftest.$ac_ext <<_ACEOF | 12110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
21506 /* confdefs.h. */ | |
21507 _ACEOF | |
21508 cat confdefs.h >>conftest.$ac_ext | |
21509 cat >>conftest.$ac_ext <<_ACEOF | |
21510 /* end confdefs.h. */ | 12111 /* end confdefs.h. */ |
21511 #include <netinet/in.h> | 12112 #include <netinet/in.h> |
21512 #include <arpa/nameser.h> | 12113 #include <arpa/nameser.h> |
21513 #include <resolv.h> | 12114 #include <resolv.h> |
21514 int | 12115 int |
21517 return res_init(); | 12118 return res_init(); |
21518 ; | 12119 ; |
21519 return 0; | 12120 return 0; |
21520 } | 12121 } |
21521 _ACEOF | 12122 _ACEOF |
21522 rm -f conftest.$ac_objext conftest$ac_exeext | 12123 if ac_fn_c_try_link "$LINENO"; then : |
21523 if { (ac_try="$ac_link" | |
21524 case "(($ac_try" in | |
21525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21526 *) ac_try_echo=$ac_try;; | |
21527 esac | |
21528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21529 $as_echo "$ac_try_echo") >&5 | |
21530 (eval "$ac_link") 2>conftest.er1 | |
21531 ac_status=$? | |
21532 grep -v '^ *+' conftest.er1 >conftest.err | |
21533 rm -f conftest.er1 | |
21534 cat conftest.err >&5 | |
21535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21536 (exit $ac_status); } && { | |
21537 test -z "$ac_c_werror_flag" || | |
21538 test ! -s conftest.err | |
21539 } && test -s conftest$ac_exeext && { | |
21540 test "$cross_compiling" = yes || | |
21541 $as_test_x conftest$ac_exeext | |
21542 }; then | |
21543 have_res_init=yes | 12124 have_res_init=yes |
21544 else | 12125 else |
21545 $as_echo "$as_me: failed program was:" >&5 | 12126 have_res_init=no |
21546 sed 's/^/| /' conftest.$ac_ext >&5 | 12127 fi |
21547 | 12128 rm -f core conftest.err conftest.$ac_objext \ |
21548 have_res_init=no | 12129 conftest$ac_exeext conftest.$ac_ext |
21549 fi | 12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5 |
21550 | |
21551 rm -rf conftest.dSYM | |
21552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
21553 conftest$ac_exeext conftest.$ac_ext | |
21554 { $as_echo "$as_me:$LINENO: result: $have_res_init" >&5 | |
21555 $as_echo "$have_res_init" >&6; } | 12131 $as_echo "$have_res_init" >&6; } |
21556 if test "$have_res_init" = yes ; then | 12132 if test "$have_res_init" = yes ; then |
21557 resolv=yes | 12133 resolv=yes |
21558 fi | 12134 fi |
21559 LIBS="$OLIBS" | 12135 LIBS="$OLIBS" |
21560 fi | 12136 fi |
21561 | 12137 |
21562 if test "$have_res_init" = yes; then | 12138 if test "$have_res_init" = yes; then |
21563 | 12139 |
21564 cat >>confdefs.h <<\_ACEOF | 12140 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h |
21565 #define HAVE_RES_INIT 1 | |
21566 _ACEOF | |
21567 | 12141 |
21568 fi | 12142 fi |
21569 | 12143 |
21570 # Do we need the Hesiod library to provide the support routines? | 12144 # Do we need the Hesiod library to provide the support routines? |
21571 LIBHESIOD= | 12145 LIBHESIOD= |
21572 if test "$with_hesiod" != no ; then | 12146 if test "$with_hesiod" != no ; then |
21573 # Don't set $LIBS here -- see comments above. FIXME which comments? | 12147 # Don't set $LIBS here -- see comments above. FIXME which comments? |
21574 { $as_echo "$as_me:$LINENO: checking for res_send" >&5 | 12148 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send" |
21575 $as_echo_n "checking for res_send... " >&6; } | 12149 if test "x$ac_cv_func_res_send" = x""yes; then : |
21576 if test "${ac_cv_func_res_send+set}" = set; then | 12150 |
21577 $as_echo_n "(cached) " >&6 | 12151 else |
21578 else | 12152 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send" |
21579 cat >conftest.$ac_ext <<_ACEOF | 12153 if test "x$ac_cv_func___res_send" = x""yes; then : |
21580 /* confdefs.h. */ | 12154 |
21581 _ACEOF | 12155 else |
21582 cat confdefs.h >>conftest.$ac_ext | 12156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5 |
21583 cat >>conftest.$ac_ext <<_ACEOF | |
21584 /* end confdefs.h. */ | |
21585 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send. | |
21586 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
21587 #define res_send innocuous_res_send | |
21588 | |
21589 /* System header to define __stub macros and hopefully few prototypes, | |
21590 which can conflict with char res_send (); below. | |
21591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21592 <limits.h> exists even on freestanding compilers. */ | |
21593 | |
21594 #ifdef __STDC__ | |
21595 # include <limits.h> | |
21596 #else | |
21597 # include <assert.h> | |
21598 #endif | |
21599 | |
21600 #undef res_send | |
21601 | |
21602 /* Override any GCC internal prototype to avoid an error. | |
21603 Use char because int might match the return type of a GCC | |
21604 builtin and then its argument prototype would still apply. */ | |
21605 #ifdef __cplusplus | |
21606 extern "C" | |
21607 #endif | |
21608 char res_send (); | |
21609 /* The GNU C library defines this for functions which it implements | |
21610 to always fail with ENOSYS. Some functions are actually named | |
21611 something starting with __ and the normal name is an alias. */ | |
21612 #if defined __stub_res_send || defined __stub___res_send | |
21613 choke me | |
21614 #endif | |
21615 | |
21616 int | |
21617 main () | |
21618 { | |
21619 return res_send (); | |
21620 ; | |
21621 return 0; | |
21622 } | |
21623 _ACEOF | |
21624 rm -f conftest.$ac_objext conftest$ac_exeext | |
21625 if { (ac_try="$ac_link" | |
21626 case "(($ac_try" in | |
21627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21628 *) ac_try_echo=$ac_try;; | |
21629 esac | |
21630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21631 $as_echo "$ac_try_echo") >&5 | |
21632 (eval "$ac_link") 2>conftest.er1 | |
21633 ac_status=$? | |
21634 grep -v '^ *+' conftest.er1 >conftest.err | |
21635 rm -f conftest.er1 | |
21636 cat conftest.err >&5 | |
21637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21638 (exit $ac_status); } && { | |
21639 test -z "$ac_c_werror_flag" || | |
21640 test ! -s conftest.err | |
21641 } && test -s conftest$ac_exeext && { | |
21642 test "$cross_compiling" = yes || | |
21643 $as_test_x conftest$ac_exeext | |
21644 }; then | |
21645 ac_cv_func_res_send=yes | |
21646 else | |
21647 $as_echo "$as_me: failed program was:" >&5 | |
21648 sed 's/^/| /' conftest.$ac_ext >&5 | |
21649 | |
21650 ac_cv_func_res_send=no | |
21651 fi | |
21652 | |
21653 rm -rf conftest.dSYM | |
21654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
21655 conftest$ac_exeext conftest.$ac_ext | |
21656 fi | |
21657 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5 | |
21658 $as_echo "$ac_cv_func_res_send" >&6; } | |
21659 if test $ac_cv_func_res_send = yes; then | |
21660 : | |
21661 else | |
21662 { $as_echo "$as_me:$LINENO: checking for __res_send" >&5 | |
21663 $as_echo_n "checking for __res_send... " >&6; } | |
21664 if test "${ac_cv_func___res_send+set}" = set; then | |
21665 $as_echo_n "(cached) " >&6 | |
21666 else | |
21667 cat >conftest.$ac_ext <<_ACEOF | |
21668 /* confdefs.h. */ | |
21669 _ACEOF | |
21670 cat confdefs.h >>conftest.$ac_ext | |
21671 cat >>conftest.$ac_ext <<_ACEOF | |
21672 /* end confdefs.h. */ | |
21673 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send. | |
21674 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
21675 #define __res_send innocuous___res_send | |
21676 | |
21677 /* System header to define __stub macros and hopefully few prototypes, | |
21678 which can conflict with char __res_send (); below. | |
21679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21680 <limits.h> exists even on freestanding compilers. */ | |
21681 | |
21682 #ifdef __STDC__ | |
21683 # include <limits.h> | |
21684 #else | |
21685 # include <assert.h> | |
21686 #endif | |
21687 | |
21688 #undef __res_send | |
21689 | |
21690 /* Override any GCC internal prototype to avoid an error. | |
21691 Use char because int might match the return type of a GCC | |
21692 builtin and then its argument prototype would still apply. */ | |
21693 #ifdef __cplusplus | |
21694 extern "C" | |
21695 #endif | |
21696 char __res_send (); | |
21697 /* The GNU C library defines this for functions which it implements | |
21698 to always fail with ENOSYS. Some functions are actually named | |
21699 something starting with __ and the normal name is an alias. */ | |
21700 #if defined __stub___res_send || defined __stub_____res_send | |
21701 choke me | |
21702 #endif | |
21703 | |
21704 int | |
21705 main () | |
21706 { | |
21707 return __res_send (); | |
21708 ; | |
21709 return 0; | |
21710 } | |
21711 _ACEOF | |
21712 rm -f conftest.$ac_objext conftest$ac_exeext | |
21713 if { (ac_try="$ac_link" | |
21714 case "(($ac_try" in | |
21715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21716 *) ac_try_echo=$ac_try;; | |
21717 esac | |
21718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21719 $as_echo "$ac_try_echo") >&5 | |
21720 (eval "$ac_link") 2>conftest.er1 | |
21721 ac_status=$? | |
21722 grep -v '^ *+' conftest.er1 >conftest.err | |
21723 rm -f conftest.er1 | |
21724 cat conftest.err >&5 | |
21725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21726 (exit $ac_status); } && { | |
21727 test -z "$ac_c_werror_flag" || | |
21728 test ! -s conftest.err | |
21729 } && test -s conftest$ac_exeext && { | |
21730 test "$cross_compiling" = yes || | |
21731 $as_test_x conftest$ac_exeext | |
21732 }; then | |
21733 ac_cv_func___res_send=yes | |
21734 else | |
21735 $as_echo "$as_me: failed program was:" >&5 | |
21736 sed 's/^/| /' conftest.$ac_ext >&5 | |
21737 | |
21738 ac_cv_func___res_send=no | |
21739 fi | |
21740 | |
21741 rm -rf conftest.dSYM | |
21742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
21743 conftest$ac_exeext conftest.$ac_ext | |
21744 fi | |
21745 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5 | |
21746 $as_echo "$ac_cv_func___res_send" >&6; } | |
21747 if test $ac_cv_func___res_send = yes; then | |
21748 : | |
21749 else | |
21750 { $as_echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5 | |
21751 $as_echo_n "checking for res_send in -lresolv... " >&6; } | 12157 $as_echo_n "checking for res_send in -lresolv... " >&6; } |
21752 if test "${ac_cv_lib_resolv_res_send+set}" = set; then | 12158 if test "${ac_cv_lib_resolv_res_send+set}" = set; then : |
21753 $as_echo_n "(cached) " >&6 | 12159 $as_echo_n "(cached) " >&6 |
21754 else | 12160 else |
21755 ac_check_lib_save_LIBS=$LIBS | 12161 ac_check_lib_save_LIBS=$LIBS |
21756 LIBS="-lresolv $LIBS" | 12162 LIBS="-lresolv $LIBS" |
21757 cat >conftest.$ac_ext <<_ACEOF | 12163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
21758 /* confdefs.h. */ | |
21759 _ACEOF | |
21760 cat confdefs.h >>conftest.$ac_ext | |
21761 cat >>conftest.$ac_ext <<_ACEOF | |
21762 /* end confdefs.h. */ | 12164 /* end confdefs.h. */ |
21763 | 12165 |
21764 /* Override any GCC internal prototype to avoid an error. | 12166 /* Override any GCC internal prototype to avoid an error. |
21765 Use char because int might match the return type of a GCC | 12167 Use char because int might match the return type of a GCC |
21766 builtin and then its argument prototype would still apply. */ | 12168 builtin and then its argument prototype would still apply. */ |
21774 return res_send (); | 12176 return res_send (); |
21775 ; | 12177 ; |
21776 return 0; | 12178 return 0; |
21777 } | 12179 } |
21778 _ACEOF | 12180 _ACEOF |
21779 rm -f conftest.$ac_objext conftest$ac_exeext | 12181 if ac_fn_c_try_link "$LINENO"; then : |
21780 if { (ac_try="$ac_link" | |
21781 case "(($ac_try" in | |
21782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21783 *) ac_try_echo=$ac_try;; | |
21784 esac | |
21785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21786 $as_echo "$ac_try_echo") >&5 | |
21787 (eval "$ac_link") 2>conftest.er1 | |
21788 ac_status=$? | |
21789 grep -v '^ *+' conftest.er1 >conftest.err | |
21790 rm -f conftest.er1 | |
21791 cat conftest.err >&5 | |
21792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21793 (exit $ac_status); } && { | |
21794 test -z "$ac_c_werror_flag" || | |
21795 test ! -s conftest.err | |
21796 } && test -s conftest$ac_exeext && { | |
21797 test "$cross_compiling" = yes || | |
21798 $as_test_x conftest$ac_exeext | |
21799 }; then | |
21800 ac_cv_lib_resolv_res_send=yes | 12182 ac_cv_lib_resolv_res_send=yes |
21801 else | 12183 else |
21802 $as_echo "$as_me: failed program was:" >&5 | 12184 ac_cv_lib_resolv_res_send=no |
21803 sed 's/^/| /' conftest.$ac_ext >&5 | 12185 fi |
21804 | 12186 rm -f core conftest.err conftest.$ac_objext \ |
21805 ac_cv_lib_resolv_res_send=no | 12187 conftest$ac_exeext conftest.$ac_ext |
21806 fi | |
21807 | |
21808 rm -rf conftest.dSYM | |
21809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
21810 conftest$ac_exeext conftest.$ac_ext | |
21811 LIBS=$ac_check_lib_save_LIBS | 12188 LIBS=$ac_check_lib_save_LIBS |
21812 fi | 12189 fi |
21813 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5 | 12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5 |
21814 $as_echo "$ac_cv_lib_resolv_res_send" >&6; } | 12191 $as_echo "$ac_cv_lib_resolv_res_send" >&6; } |
21815 if test $ac_cv_lib_resolv_res_send = yes; then | 12192 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then : |
21816 resolv=yes | 12193 resolv=yes |
21817 else | 12194 else |
21818 { $as_echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5 | 12195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5 |
21819 $as_echo_n "checking for __res_send in -lresolv... " >&6; } | 12196 $as_echo_n "checking for __res_send in -lresolv... " >&6; } |
21820 if test "${ac_cv_lib_resolv___res_send+set}" = set; then | 12197 if test "${ac_cv_lib_resolv___res_send+set}" = set; then : |
21821 $as_echo_n "(cached) " >&6 | 12198 $as_echo_n "(cached) " >&6 |
21822 else | 12199 else |
21823 ac_check_lib_save_LIBS=$LIBS | 12200 ac_check_lib_save_LIBS=$LIBS |
21824 LIBS="-lresolv $LIBS" | 12201 LIBS="-lresolv $LIBS" |
21825 cat >conftest.$ac_ext <<_ACEOF | 12202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
21826 /* confdefs.h. */ | |
21827 _ACEOF | |
21828 cat confdefs.h >>conftest.$ac_ext | |
21829 cat >>conftest.$ac_ext <<_ACEOF | |
21830 /* end confdefs.h. */ | 12203 /* end confdefs.h. */ |
21831 | 12204 |
21832 /* Override any GCC internal prototype to avoid an error. | 12205 /* Override any GCC internal prototype to avoid an error. |
21833 Use char because int might match the return type of a GCC | 12206 Use char because int might match the return type of a GCC |
21834 builtin and then its argument prototype would still apply. */ | 12207 builtin and then its argument prototype would still apply. */ |
21842 return __res_send (); | 12215 return __res_send (); |
21843 ; | 12216 ; |
21844 return 0; | 12217 return 0; |
21845 } | 12218 } |
21846 _ACEOF | 12219 _ACEOF |
21847 rm -f conftest.$ac_objext conftest$ac_exeext | 12220 if ac_fn_c_try_link "$LINENO"; then : |
21848 if { (ac_try="$ac_link" | |
21849 case "(($ac_try" in | |
21850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21851 *) ac_try_echo=$ac_try;; | |
21852 esac | |
21853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21854 $as_echo "$ac_try_echo") >&5 | |
21855 (eval "$ac_link") 2>conftest.er1 | |
21856 ac_status=$? | |
21857 grep -v '^ *+' conftest.er1 >conftest.err | |
21858 rm -f conftest.er1 | |
21859 cat conftest.err >&5 | |
21860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21861 (exit $ac_status); } && { | |
21862 test -z "$ac_c_werror_flag" || | |
21863 test ! -s conftest.err | |
21864 } && test -s conftest$ac_exeext && { | |
21865 test "$cross_compiling" = yes || | |
21866 $as_test_x conftest$ac_exeext | |
21867 }; then | |
21868 ac_cv_lib_resolv___res_send=yes | 12221 ac_cv_lib_resolv___res_send=yes |
21869 else | 12222 else |
21870 $as_echo "$as_me: failed program was:" >&5 | 12223 ac_cv_lib_resolv___res_send=no |
21871 sed 's/^/| /' conftest.$ac_ext >&5 | 12224 fi |
21872 | 12225 rm -f core conftest.err conftest.$ac_objext \ |
21873 ac_cv_lib_resolv___res_send=no | 12226 conftest$ac_exeext conftest.$ac_ext |
21874 fi | |
21875 | |
21876 rm -rf conftest.dSYM | |
21877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
21878 conftest$ac_exeext conftest.$ac_ext | |
21879 LIBS=$ac_check_lib_save_LIBS | 12227 LIBS=$ac_check_lib_save_LIBS |
21880 fi | 12228 fi |
21881 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5 | 12229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5 |
21882 $as_echo "$ac_cv_lib_resolv___res_send" >&6; } | 12230 $as_echo "$ac_cv_lib_resolv___res_send" >&6; } |
21883 if test $ac_cv_lib_resolv___res_send = yes; then | 12231 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then : |
21884 resolv=yes | 12232 resolv=yes |
21885 fi | 12233 fi |
21886 | 12234 |
21887 fi | 12235 fi |
21888 | 12236 |
21893 if test "$resolv" = yes ; then | 12241 if test "$resolv" = yes ; then |
21894 RESOLVLIB=-lresolv | 12242 RESOLVLIB=-lresolv |
21895 else | 12243 else |
21896 RESOLVLIB= | 12244 RESOLVLIB= |
21897 fi | 12245 fi |
21898 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost" >&5 | 12246 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost" |
21899 $as_echo_n "checking for hes_getmailhost... " >&6; } | 12247 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then : |
21900 if test "${ac_cv_func_hes_getmailhost+set}" = set; then | 12248 |
21901 $as_echo_n "(cached) " >&6 | 12249 else |
21902 else | 12250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5 |
21903 cat >conftest.$ac_ext <<_ACEOF | |
21904 /* confdefs.h. */ | |
21905 _ACEOF | |
21906 cat confdefs.h >>conftest.$ac_ext | |
21907 cat >>conftest.$ac_ext <<_ACEOF | |
21908 /* end confdefs.h. */ | |
21909 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost. | |
21910 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
21911 #define hes_getmailhost innocuous_hes_getmailhost | |
21912 | |
21913 /* System header to define __stub macros and hopefully few prototypes, | |
21914 which can conflict with char hes_getmailhost (); below. | |
21915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21916 <limits.h> exists even on freestanding compilers. */ | |
21917 | |
21918 #ifdef __STDC__ | |
21919 # include <limits.h> | |
21920 #else | |
21921 # include <assert.h> | |
21922 #endif | |
21923 | |
21924 #undef hes_getmailhost | |
21925 | |
21926 /* Override any GCC internal prototype to avoid an error. | |
21927 Use char because int might match the return type of a GCC | |
21928 builtin and then its argument prototype would still apply. */ | |
21929 #ifdef __cplusplus | |
21930 extern "C" | |
21931 #endif | |
21932 char hes_getmailhost (); | |
21933 /* The GNU C library defines this for functions which it implements | |
21934 to always fail with ENOSYS. Some functions are actually named | |
21935 something starting with __ and the normal name is an alias. */ | |
21936 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost | |
21937 choke me | |
21938 #endif | |
21939 | |
21940 int | |
21941 main () | |
21942 { | |
21943 return hes_getmailhost (); | |
21944 ; | |
21945 return 0; | |
21946 } | |
21947 _ACEOF | |
21948 rm -f conftest.$ac_objext conftest$ac_exeext | |
21949 if { (ac_try="$ac_link" | |
21950 case "(($ac_try" in | |
21951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21952 *) ac_try_echo=$ac_try;; | |
21953 esac | |
21954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
21955 $as_echo "$ac_try_echo") >&5 | |
21956 (eval "$ac_link") 2>conftest.er1 | |
21957 ac_status=$? | |
21958 grep -v '^ *+' conftest.er1 >conftest.err | |
21959 rm -f conftest.er1 | |
21960 cat conftest.err >&5 | |
21961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21962 (exit $ac_status); } && { | |
21963 test -z "$ac_c_werror_flag" || | |
21964 test ! -s conftest.err | |
21965 } && test -s conftest$ac_exeext && { | |
21966 test "$cross_compiling" = yes || | |
21967 $as_test_x conftest$ac_exeext | |
21968 }; then | |
21969 ac_cv_func_hes_getmailhost=yes | |
21970 else | |
21971 $as_echo "$as_me: failed program was:" >&5 | |
21972 sed 's/^/| /' conftest.$ac_ext >&5 | |
21973 | |
21974 ac_cv_func_hes_getmailhost=no | |
21975 fi | |
21976 | |
21977 rm -rf conftest.dSYM | |
21978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
21979 conftest$ac_exeext conftest.$ac_ext | |
21980 fi | |
21981 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5 | |
21982 $as_echo "$ac_cv_func_hes_getmailhost" >&6; } | |
21983 if test $ac_cv_func_hes_getmailhost = yes; then | |
21984 : | |
21985 else | |
21986 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5 | |
21987 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; } | 12251 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; } |
21988 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then | 12252 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then : |
21989 $as_echo_n "(cached) " >&6 | 12253 $as_echo_n "(cached) " >&6 |
21990 else | 12254 else |
21991 ac_check_lib_save_LIBS=$LIBS | 12255 ac_check_lib_save_LIBS=$LIBS |
21992 LIBS="-lhesiod $RESOLVLIB $LIBS" | 12256 LIBS="-lhesiod $RESOLVLIB $LIBS" |
21993 cat >conftest.$ac_ext <<_ACEOF | 12257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
21994 /* confdefs.h. */ | |
21995 _ACEOF | |
21996 cat confdefs.h >>conftest.$ac_ext | |
21997 cat >>conftest.$ac_ext <<_ACEOF | |
21998 /* end confdefs.h. */ | 12258 /* end confdefs.h. */ |
21999 | 12259 |
22000 /* Override any GCC internal prototype to avoid an error. | 12260 /* Override any GCC internal prototype to avoid an error. |
22001 Use char because int might match the return type of a GCC | 12261 Use char because int might match the return type of a GCC |
22002 builtin and then its argument prototype would still apply. */ | 12262 builtin and then its argument prototype would still apply. */ |
22010 return hes_getmailhost (); | 12270 return hes_getmailhost (); |
22011 ; | 12271 ; |
22012 return 0; | 12272 return 0; |
22013 } | 12273 } |
22014 _ACEOF | 12274 _ACEOF |
22015 rm -f conftest.$ac_objext conftest$ac_exeext | 12275 if ac_fn_c_try_link "$LINENO"; then : |
22016 if { (ac_try="$ac_link" | |
22017 case "(($ac_try" in | |
22018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22019 *) ac_try_echo=$ac_try;; | |
22020 esac | |
22021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22022 $as_echo "$ac_try_echo") >&5 | |
22023 (eval "$ac_link") 2>conftest.er1 | |
22024 ac_status=$? | |
22025 grep -v '^ *+' conftest.er1 >conftest.err | |
22026 rm -f conftest.er1 | |
22027 cat conftest.err >&5 | |
22028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22029 (exit $ac_status); } && { | |
22030 test -z "$ac_c_werror_flag" || | |
22031 test ! -s conftest.err | |
22032 } && test -s conftest$ac_exeext && { | |
22033 test "$cross_compiling" = yes || | |
22034 $as_test_x conftest$ac_exeext | |
22035 }; then | |
22036 ac_cv_lib_hesiod_hes_getmailhost=yes | 12276 ac_cv_lib_hesiod_hes_getmailhost=yes |
22037 else | 12277 else |
22038 $as_echo "$as_me: failed program was:" >&5 | 12278 ac_cv_lib_hesiod_hes_getmailhost=no |
22039 sed 's/^/| /' conftest.$ac_ext >&5 | 12279 fi |
22040 | 12280 rm -f core conftest.err conftest.$ac_objext \ |
22041 ac_cv_lib_hesiod_hes_getmailhost=no | 12281 conftest$ac_exeext conftest.$ac_ext |
22042 fi | |
22043 | |
22044 rm -rf conftest.dSYM | |
22045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
22046 conftest$ac_exeext conftest.$ac_ext | |
22047 LIBS=$ac_check_lib_save_LIBS | 12282 LIBS=$ac_check_lib_save_LIBS |
22048 fi | 12283 fi |
22049 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5 | 12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5 |
22050 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; } | 12285 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; } |
22051 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then | 12286 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then : |
22052 hesiod=yes | 12287 hesiod=yes |
22053 else | 12288 else |
22054 : | 12289 : |
22055 fi | 12290 fi |
22056 | 12291 |
22057 fi | 12292 fi |
22058 | 12293 |
22059 | 12294 |
22060 if test x"$hesiod" = xyes; then | 12295 if test x"$hesiod" = xyes; then |
22061 | 12296 |
22062 cat >>confdefs.h <<\_ACEOF | 12297 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h |
22063 #define HAVE_LIBHESIOD 1 | |
22064 _ACEOF | |
22065 | 12298 |
22066 LIBHESIOD=-lhesiod | 12299 LIBHESIOD=-lhesiod |
22067 fi | 12300 fi |
22068 fi | 12301 fi |
22069 | 12302 |
22070 | 12303 |
22071 # Do we need libresolv (due to res_init or Hesiod)? | 12304 # Do we need libresolv (due to res_init or Hesiod)? |
22072 if test "$resolv" = yes ; then | 12305 if test "$resolv" = yes ; then |
22073 | 12306 |
22074 cat >>confdefs.h <<\_ACEOF | 12307 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h |
22075 #define HAVE_LIBRESOLV 1 | |
22076 _ACEOF | |
22077 | 12308 |
22078 LIBRESOLV=-lresolv | 12309 LIBRESOLV=-lresolv |
22079 else | 12310 else |
22080 LIBRESOLV= | 12311 LIBRESOLV= |
22081 fi | 12312 fi |
22087 KRB5LIB= | 12318 KRB5LIB= |
22088 DESLIB= | 12319 DESLIB= |
22089 KRB4LIB= | 12320 KRB4LIB= |
22090 | 12321 |
22091 if test "${with_kerberos}" != no; then | 12322 if test "${with_kerberos}" != no; then |
22092 { $as_echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5 | 12323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5 |
22093 $as_echo_n "checking for com_err in -lcom_err... " >&6; } | 12324 $as_echo_n "checking for com_err in -lcom_err... " >&6; } |
22094 if test "${ac_cv_lib_com_err_com_err+set}" = set; then | 12325 if test "${ac_cv_lib_com_err_com_err+set}" = set; then : |
22095 $as_echo_n "(cached) " >&6 | 12326 $as_echo_n "(cached) " >&6 |
22096 else | 12327 else |
22097 ac_check_lib_save_LIBS=$LIBS | 12328 ac_check_lib_save_LIBS=$LIBS |
22098 LIBS="-lcom_err $LIBS" | 12329 LIBS="-lcom_err $LIBS" |
22099 cat >conftest.$ac_ext <<_ACEOF | 12330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
22100 /* confdefs.h. */ | |
22101 _ACEOF | |
22102 cat confdefs.h >>conftest.$ac_ext | |
22103 cat >>conftest.$ac_ext <<_ACEOF | |
22104 /* end confdefs.h. */ | 12331 /* end confdefs.h. */ |
22105 | 12332 |
22106 /* Override any GCC internal prototype to avoid an error. | 12333 /* Override any GCC internal prototype to avoid an error. |
22107 Use char because int might match the return type of a GCC | 12334 Use char because int might match the return type of a GCC |
22108 builtin and then its argument prototype would still apply. */ | 12335 builtin and then its argument prototype would still apply. */ |
22116 return com_err (); | 12343 return com_err (); |
22117 ; | 12344 ; |
22118 return 0; | 12345 return 0; |
22119 } | 12346 } |
22120 _ACEOF | 12347 _ACEOF |
22121 rm -f conftest.$ac_objext conftest$ac_exeext | 12348 if ac_fn_c_try_link "$LINENO"; then : |
22122 if { (ac_try="$ac_link" | |
22123 case "(($ac_try" in | |
22124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22125 *) ac_try_echo=$ac_try;; | |
22126 esac | |
22127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22128 $as_echo "$ac_try_echo") >&5 | |
22129 (eval "$ac_link") 2>conftest.er1 | |
22130 ac_status=$? | |
22131 grep -v '^ *+' conftest.er1 >conftest.err | |
22132 rm -f conftest.er1 | |
22133 cat conftest.err >&5 | |
22134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22135 (exit $ac_status); } && { | |
22136 test -z "$ac_c_werror_flag" || | |
22137 test ! -s conftest.err | |
22138 } && test -s conftest$ac_exeext && { | |
22139 test "$cross_compiling" = yes || | |
22140 $as_test_x conftest$ac_exeext | |
22141 }; then | |
22142 ac_cv_lib_com_err_com_err=yes | 12349 ac_cv_lib_com_err_com_err=yes |
22143 else | 12350 else |
22144 $as_echo "$as_me: failed program was:" >&5 | 12351 ac_cv_lib_com_err_com_err=no |
22145 sed 's/^/| /' conftest.$ac_ext >&5 | 12352 fi |
22146 | 12353 rm -f core conftest.err conftest.$ac_objext \ |
22147 ac_cv_lib_com_err_com_err=no | 12354 conftest$ac_exeext conftest.$ac_ext |
22148 fi | |
22149 | |
22150 rm -rf conftest.dSYM | |
22151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
22152 conftest$ac_exeext conftest.$ac_ext | |
22153 LIBS=$ac_check_lib_save_LIBS | 12355 LIBS=$ac_check_lib_save_LIBS |
22154 fi | 12356 fi |
22155 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5 | 12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5 |
22156 $as_echo "$ac_cv_lib_com_err_com_err" >&6; } | 12358 $as_echo "$ac_cv_lib_com_err_com_err" >&6; } |
22157 if test $ac_cv_lib_com_err_com_err = yes; then | 12359 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then : |
22158 have_com_err=yes | 12360 have_com_err=yes |
22159 else | 12361 else |
22160 have_com_err=no | 12362 have_com_err=no |
22161 fi | 12363 fi |
22162 | 12364 |
22163 if test $have_com_err = yes; then | 12365 if test $have_com_err = yes; then |
22164 COM_ERRLIB=-lcom_err | 12366 COM_ERRLIB=-lcom_err |
22165 LIBS="$COM_ERRLIB $LIBS" | 12367 LIBS="$COM_ERRLIB $LIBS" |
22166 | 12368 |
22167 cat >>confdefs.h <<\_ACEOF | 12369 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h |
22168 #define HAVE_LIBCOM_ERR 1 | 12370 |
22169 _ACEOF | 12371 fi |
22170 | 12372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5 |
22171 fi | |
22172 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5 | |
22173 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; } | 12373 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; } |
22174 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then | 12374 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then : |
22175 $as_echo_n "(cached) " >&6 | 12375 $as_echo_n "(cached) " >&6 |
22176 else | 12376 else |
22177 ac_check_lib_save_LIBS=$LIBS | 12377 ac_check_lib_save_LIBS=$LIBS |
22178 LIBS="-lcrypto $LIBS" | 12378 LIBS="-lcrypto $LIBS" |
22179 cat >conftest.$ac_ext <<_ACEOF | 12379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
22180 /* confdefs.h. */ | |
22181 _ACEOF | |
22182 cat confdefs.h >>conftest.$ac_ext | |
22183 cat >>conftest.$ac_ext <<_ACEOF | |
22184 /* end confdefs.h. */ | 12380 /* end confdefs.h. */ |
22185 | 12381 |
22186 /* Override any GCC internal prototype to avoid an error. | 12382 /* Override any GCC internal prototype to avoid an error. |
22187 Use char because int might match the return type of a GCC | 12383 Use char because int might match the return type of a GCC |
22188 builtin and then its argument prototype would still apply. */ | 12384 builtin and then its argument prototype would still apply. */ |
22196 return mit_des_cbc_encrypt (); | 12392 return mit_des_cbc_encrypt (); |
22197 ; | 12393 ; |
22198 return 0; | 12394 return 0; |
22199 } | 12395 } |
22200 _ACEOF | 12396 _ACEOF |
22201 rm -f conftest.$ac_objext conftest$ac_exeext | 12397 if ac_fn_c_try_link "$LINENO"; then : |
22202 if { (ac_try="$ac_link" | |
22203 case "(($ac_try" in | |
22204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22205 *) ac_try_echo=$ac_try;; | |
22206 esac | |
22207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22208 $as_echo "$ac_try_echo") >&5 | |
22209 (eval "$ac_link") 2>conftest.er1 | |
22210 ac_status=$? | |
22211 grep -v '^ *+' conftest.er1 >conftest.err | |
22212 rm -f conftest.er1 | |
22213 cat conftest.err >&5 | |
22214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22215 (exit $ac_status); } && { | |
22216 test -z "$ac_c_werror_flag" || | |
22217 test ! -s conftest.err | |
22218 } && test -s conftest$ac_exeext && { | |
22219 test "$cross_compiling" = yes || | |
22220 $as_test_x conftest$ac_exeext | |
22221 }; then | |
22222 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes | 12398 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes |
22223 else | 12399 else |
22224 $as_echo "$as_me: failed program was:" >&5 | 12400 ac_cv_lib_crypto_mit_des_cbc_encrypt=no |
22225 sed 's/^/| /' conftest.$ac_ext >&5 | 12401 fi |
22226 | 12402 rm -f core conftest.err conftest.$ac_objext \ |
22227 ac_cv_lib_crypto_mit_des_cbc_encrypt=no | 12403 conftest$ac_exeext conftest.$ac_ext |
22228 fi | |
22229 | |
22230 rm -rf conftest.dSYM | |
22231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
22232 conftest$ac_exeext conftest.$ac_ext | |
22233 LIBS=$ac_check_lib_save_LIBS | 12404 LIBS=$ac_check_lib_save_LIBS |
22234 fi | 12405 fi |
22235 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5 | 12406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5 |
22236 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; } | 12407 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; } |
22237 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then | 12408 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then : |
22238 have_crypto=yes | 12409 have_crypto=yes |
22239 else | 12410 else |
22240 have_crypto=no | 12411 have_crypto=no |
22241 fi | 12412 fi |
22242 | 12413 |
22243 if test $have_crypto = yes; then | 12414 if test $have_crypto = yes; then |
22244 CRYPTOLIB=-lcrypto | 12415 CRYPTOLIB=-lcrypto |
22245 LIBS="$CRYPTOLIB $LIBS" | 12416 LIBS="$CRYPTOLIB $LIBS" |
22246 | 12417 |
22247 cat >>confdefs.h <<\_ACEOF | 12418 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h |
22248 #define HAVE_LIBCRYPTO 1 | 12419 |
22249 _ACEOF | 12420 fi |
22250 | 12421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 |
22251 fi | |
22252 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 | |
22253 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; } | 12422 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; } |
22254 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then | 12423 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then : |
22255 $as_echo_n "(cached) " >&6 | 12424 $as_echo_n "(cached) " >&6 |
22256 else | 12425 else |
22257 ac_check_lib_save_LIBS=$LIBS | 12426 ac_check_lib_save_LIBS=$LIBS |
22258 LIBS="-lk5crypto $LIBS" | 12427 LIBS="-lk5crypto $LIBS" |
22259 cat >conftest.$ac_ext <<_ACEOF | 12428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
22260 /* confdefs.h. */ | |
22261 _ACEOF | |
22262 cat confdefs.h >>conftest.$ac_ext | |
22263 cat >>conftest.$ac_ext <<_ACEOF | |
22264 /* end confdefs.h. */ | 12429 /* end confdefs.h. */ |
22265 | 12430 |
22266 /* Override any GCC internal prototype to avoid an error. | 12431 /* Override any GCC internal prototype to avoid an error. |
22267 Use char because int might match the return type of a GCC | 12432 Use char because int might match the return type of a GCC |
22268 builtin and then its argument prototype would still apply. */ | 12433 builtin and then its argument prototype would still apply. */ |
22276 return mit_des_cbc_encrypt (); | 12441 return mit_des_cbc_encrypt (); |
22277 ; | 12442 ; |
22278 return 0; | 12443 return 0; |
22279 } | 12444 } |
22280 _ACEOF | 12445 _ACEOF |
22281 rm -f conftest.$ac_objext conftest$ac_exeext | 12446 if ac_fn_c_try_link "$LINENO"; then : |
22282 if { (ac_try="$ac_link" | |
22283 case "(($ac_try" in | |
22284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22285 *) ac_try_echo=$ac_try;; | |
22286 esac | |
22287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22288 $as_echo "$ac_try_echo") >&5 | |
22289 (eval "$ac_link") 2>conftest.er1 | |
22290 ac_status=$? | |
22291 grep -v '^ *+' conftest.er1 >conftest.err | |
22292 rm -f conftest.er1 | |
22293 cat conftest.err >&5 | |
22294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22295 (exit $ac_status); } && { | |
22296 test -z "$ac_c_werror_flag" || | |
22297 test ! -s conftest.err | |
22298 } && test -s conftest$ac_exeext && { | |
22299 test "$cross_compiling" = yes || | |
22300 $as_test_x conftest$ac_exeext | |
22301 }; then | |
22302 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes | 12447 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes |
22303 else | 12448 else |
22304 $as_echo "$as_me: failed program was:" >&5 | 12449 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no |
22305 sed 's/^/| /' conftest.$ac_ext >&5 | 12450 fi |
22306 | 12451 rm -f core conftest.err conftest.$ac_objext \ |
22307 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no | 12452 conftest$ac_exeext conftest.$ac_ext |
22308 fi | |
22309 | |
22310 rm -rf conftest.dSYM | |
22311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
22312 conftest$ac_exeext conftest.$ac_ext | |
22313 LIBS=$ac_check_lib_save_LIBS | 12453 LIBS=$ac_check_lib_save_LIBS |
22314 fi | 12454 fi |
22315 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5 | 12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5 |
22316 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; } | 12456 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; } |
22317 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then | 12457 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then : |
22318 have_k5crypto=yes | 12458 have_k5crypto=yes |
22319 else | 12459 else |
22320 have_k5crypto=no | 12460 have_k5crypto=no |
22321 fi | 12461 fi |
22322 | 12462 |
22323 if test $have_k5crypto = yes; then | 12463 if test $have_k5crypto = yes; then |
22324 CRYPTOLIB=-lk5crypto | 12464 CRYPTOLIB=-lk5crypto |
22325 LIBS="$CRYPTOLIB $LIBS" | 12465 LIBS="$CRYPTOLIB $LIBS" |
22326 | 12466 |
22327 cat >>confdefs.h <<\_ACEOF | 12467 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h |
22328 #define HAVE_LIBK5CRYPTO 1 | 12468 |
22329 _ACEOF | 12469 fi |
22330 | 12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5 |
22331 fi | |
22332 { $as_echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5 | |
22333 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; } | 12471 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; } |
22334 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then | 12472 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then : |
22335 $as_echo_n "(cached) " >&6 | 12473 $as_echo_n "(cached) " >&6 |
22336 else | 12474 else |
22337 ac_check_lib_save_LIBS=$LIBS | 12475 ac_check_lib_save_LIBS=$LIBS |
22338 LIBS="-lkrb5 $LIBS" | 12476 LIBS="-lkrb5 $LIBS" |
22339 cat >conftest.$ac_ext <<_ACEOF | 12477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
22340 /* confdefs.h. */ | |
22341 _ACEOF | |
22342 cat confdefs.h >>conftest.$ac_ext | |
22343 cat >>conftest.$ac_ext <<_ACEOF | |
22344 /* end confdefs.h. */ | 12478 /* end confdefs.h. */ |
22345 | 12479 |
22346 /* Override any GCC internal prototype to avoid an error. | 12480 /* Override any GCC internal prototype to avoid an error. |
22347 Use char because int might match the return type of a GCC | 12481 Use char because int might match the return type of a GCC |
22348 builtin and then its argument prototype would still apply. */ | 12482 builtin and then its argument prototype would still apply. */ |
22356 return krb5_init_context (); | 12490 return krb5_init_context (); |
22357 ; | 12491 ; |
22358 return 0; | 12492 return 0; |
22359 } | 12493 } |
22360 _ACEOF | 12494 _ACEOF |
22361 rm -f conftest.$ac_objext conftest$ac_exeext | 12495 if ac_fn_c_try_link "$LINENO"; then : |
22362 if { (ac_try="$ac_link" | |
22363 case "(($ac_try" in | |
22364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22365 *) ac_try_echo=$ac_try;; | |
22366 esac | |
22367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22368 $as_echo "$ac_try_echo") >&5 | |
22369 (eval "$ac_link") 2>conftest.er1 | |
22370 ac_status=$? | |
22371 grep -v '^ *+' conftest.er1 >conftest.err | |
22372 rm -f conftest.er1 | |
22373 cat conftest.err >&5 | |
22374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22375 (exit $ac_status); } && { | |
22376 test -z "$ac_c_werror_flag" || | |
22377 test ! -s conftest.err | |
22378 } && test -s conftest$ac_exeext && { | |
22379 test "$cross_compiling" = yes || | |
22380 $as_test_x conftest$ac_exeext | |
22381 }; then | |
22382 ac_cv_lib_krb5_krb5_init_context=yes | 12496 ac_cv_lib_krb5_krb5_init_context=yes |
22383 else | 12497 else |
22384 $as_echo "$as_me: failed program was:" >&5 | 12498 ac_cv_lib_krb5_krb5_init_context=no |
22385 sed 's/^/| /' conftest.$ac_ext >&5 | 12499 fi |
22386 | 12500 rm -f core conftest.err conftest.$ac_objext \ |
22387 ac_cv_lib_krb5_krb5_init_context=no | 12501 conftest$ac_exeext conftest.$ac_ext |
22388 fi | |
22389 | |
22390 rm -rf conftest.dSYM | |
22391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
22392 conftest$ac_exeext conftest.$ac_ext | |
22393 LIBS=$ac_check_lib_save_LIBS | 12502 LIBS=$ac_check_lib_save_LIBS |
22394 fi | 12503 fi |
22395 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5 | 12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5 |
22396 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; } | 12505 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; } |
22397 if test $ac_cv_lib_krb5_krb5_init_context = yes; then | 12506 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then : |
22398 have_krb5=yes | 12507 have_krb5=yes |
22399 else | 12508 else |
22400 have_krb5=no | 12509 have_krb5=no |
22401 fi | 12510 fi |
22402 | 12511 |
22403 if test $have_krb5=yes; then | 12512 if test $have_krb5=yes; then |
22404 KRB5LIB=-lkrb5 | 12513 KRB5LIB=-lkrb5 |
22405 LIBS="$KRB5LIB $LIBS" | 12514 LIBS="$KRB5LIB $LIBS" |
22406 | 12515 |
22407 cat >>confdefs.h <<\_ACEOF | 12516 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h |
22408 #define HAVE_LIBKRB5 1 | |
22409 _ACEOF | |
22410 | 12517 |
22411 fi | 12518 fi |
22412 if test "${with_kerberos5}" = no; then | 12519 if test "${with_kerberos5}" = no; then |
22413 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5 | 12520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5 |
22414 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; } | 12521 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; } |
22415 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then | 12522 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then : |
22416 $as_echo_n "(cached) " >&6 | 12523 $as_echo_n "(cached) " >&6 |
22417 else | 12524 else |
22418 ac_check_lib_save_LIBS=$LIBS | 12525 ac_check_lib_save_LIBS=$LIBS |
22419 LIBS="-ldes425 $LIBS" | 12526 LIBS="-ldes425 $LIBS" |
22420 cat >conftest.$ac_ext <<_ACEOF | 12527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
22421 /* confdefs.h. */ | |
22422 _ACEOF | |
22423 cat confdefs.h >>conftest.$ac_ext | |
22424 cat >>conftest.$ac_ext <<_ACEOF | |
22425 /* end confdefs.h. */ | 12528 /* end confdefs.h. */ |
22426 | 12529 |
22427 /* Override any GCC internal prototype to avoid an error. | 12530 /* Override any GCC internal prototype to avoid an error. |
22428 Use char because int might match the return type of a GCC | 12531 Use char because int might match the return type of a GCC |
22429 builtin and then its argument prototype would still apply. */ | 12532 builtin and then its argument prototype would still apply. */ |
22437 return des_cbc_encrypt (); | 12540 return des_cbc_encrypt (); |
22438 ; | 12541 ; |
22439 return 0; | 12542 return 0; |
22440 } | 12543 } |
22441 _ACEOF | 12544 _ACEOF |
22442 rm -f conftest.$ac_objext conftest$ac_exeext | 12545 if ac_fn_c_try_link "$LINENO"; then : |
22443 if { (ac_try="$ac_link" | |
22444 case "(($ac_try" in | |
22445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22446 *) ac_try_echo=$ac_try;; | |
22447 esac | |
22448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22449 $as_echo "$ac_try_echo") >&5 | |
22450 (eval "$ac_link") 2>conftest.er1 | |
22451 ac_status=$? | |
22452 grep -v '^ *+' conftest.er1 >conftest.err | |
22453 rm -f conftest.er1 | |
22454 cat conftest.err >&5 | |
22455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22456 (exit $ac_status); } && { | |
22457 test -z "$ac_c_werror_flag" || | |
22458 test ! -s conftest.err | |
22459 } && test -s conftest$ac_exeext && { | |
22460 test "$cross_compiling" = yes || | |
22461 $as_test_x conftest$ac_exeext | |
22462 }; then | |
22463 ac_cv_lib_des425_des_cbc_encrypt=yes | 12546 ac_cv_lib_des425_des_cbc_encrypt=yes |
22464 else | 12547 else |
22465 $as_echo "$as_me: failed program was:" >&5 | 12548 ac_cv_lib_des425_des_cbc_encrypt=no |
22466 sed 's/^/| /' conftest.$ac_ext >&5 | 12549 fi |
22467 | 12550 rm -f core conftest.err conftest.$ac_objext \ |
22468 ac_cv_lib_des425_des_cbc_encrypt=no | 12551 conftest$ac_exeext conftest.$ac_ext |
22469 fi | |
22470 | |
22471 rm -rf conftest.dSYM | |
22472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
22473 conftest$ac_exeext conftest.$ac_ext | |
22474 LIBS=$ac_check_lib_save_LIBS | 12552 LIBS=$ac_check_lib_save_LIBS |
22475 fi | 12553 fi |
22476 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5 | 12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5 |
22477 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; } | 12555 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; } |
22478 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then | 12556 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then : |
22479 have_des425=yes | 12557 have_des425=yes |
22480 else | 12558 else |
22481 have_des425=no | 12559 have_des425=no |
22482 fi | 12560 fi |
22483 | 12561 |
22484 if test $have_des425 = yes; then | 12562 if test $have_des425 = yes; then |
22485 DESLIB=-ldes425 | 12563 DESLIB=-ldes425 |
22486 LIBS="$DESLIB $LIBS" | 12564 LIBS="$DESLIB $LIBS" |
22487 | 12565 |
22488 cat >>confdefs.h <<\_ACEOF | 12566 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h |
22489 #define HAVE_LIBDES425 1 | |
22490 _ACEOF | |
22491 | 12567 |
22492 else | 12568 else |
22493 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5 | 12569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5 |
22494 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; } | 12570 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; } |
22495 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then | 12571 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then : |
22496 $as_echo_n "(cached) " >&6 | 12572 $as_echo_n "(cached) " >&6 |
22497 else | 12573 else |
22498 ac_check_lib_save_LIBS=$LIBS | 12574 ac_check_lib_save_LIBS=$LIBS |
22499 LIBS="-ldes $LIBS" | 12575 LIBS="-ldes $LIBS" |
22500 cat >conftest.$ac_ext <<_ACEOF | 12576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
22501 /* confdefs.h. */ | |
22502 _ACEOF | |
22503 cat confdefs.h >>conftest.$ac_ext | |
22504 cat >>conftest.$ac_ext <<_ACEOF | |
22505 /* end confdefs.h. */ | 12577 /* end confdefs.h. */ |
22506 | 12578 |
22507 /* Override any GCC internal prototype to avoid an error. | 12579 /* Override any GCC internal prototype to avoid an error. |
22508 Use char because int might match the return type of a GCC | 12580 Use char because int might match the return type of a GCC |
22509 builtin and then its argument prototype would still apply. */ | 12581 builtin and then its argument prototype would still apply. */ |
22517 return des_cbc_encrypt (); | 12589 return des_cbc_encrypt (); |
22518 ; | 12590 ; |
22519 return 0; | 12591 return 0; |
22520 } | 12592 } |
22521 _ACEOF | 12593 _ACEOF |
22522 rm -f conftest.$ac_objext conftest$ac_exeext | 12594 if ac_fn_c_try_link "$LINENO"; then : |
22523 if { (ac_try="$ac_link" | |
22524 case "(($ac_try" in | |
22525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22526 *) ac_try_echo=$ac_try;; | |
22527 esac | |
22528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22529 $as_echo "$ac_try_echo") >&5 | |
22530 (eval "$ac_link") 2>conftest.er1 | |
22531 ac_status=$? | |
22532 grep -v '^ *+' conftest.er1 >conftest.err | |
22533 rm -f conftest.er1 | |
22534 cat conftest.err >&5 | |
22535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22536 (exit $ac_status); } && { | |
22537 test -z "$ac_c_werror_flag" || | |
22538 test ! -s conftest.err | |
22539 } && test -s conftest$ac_exeext && { | |
22540 test "$cross_compiling" = yes || | |
22541 $as_test_x conftest$ac_exeext | |
22542 }; then | |
22543 ac_cv_lib_des_des_cbc_encrypt=yes | 12595 ac_cv_lib_des_des_cbc_encrypt=yes |
22544 else | 12596 else |
22545 $as_echo "$as_me: failed program was:" >&5 | 12597 ac_cv_lib_des_des_cbc_encrypt=no |
22546 sed 's/^/| /' conftest.$ac_ext >&5 | 12598 fi |
22547 | 12599 rm -f core conftest.err conftest.$ac_objext \ |
22548 ac_cv_lib_des_des_cbc_encrypt=no | 12600 conftest$ac_exeext conftest.$ac_ext |
22549 fi | |
22550 | |
22551 rm -rf conftest.dSYM | |
22552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
22553 conftest$ac_exeext conftest.$ac_ext | |
22554 LIBS=$ac_check_lib_save_LIBS | 12601 LIBS=$ac_check_lib_save_LIBS |
22555 fi | 12602 fi |
22556 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 | 12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 |
22557 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; } | 12604 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; } |
22558 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then | 12605 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then : |
22559 have_des=yes | 12606 have_des=yes |
22560 else | 12607 else |
22561 have_des=no | 12608 have_des=no |
22562 fi | 12609 fi |
22563 | 12610 |
22564 if test $have_des = yes; then | 12611 if test $have_des = yes; then |
22565 DESLIB=-ldes | 12612 DESLIB=-ldes |
22566 LIBS="$DESLIB $LIBS" | 12613 LIBS="$DESLIB $LIBS" |
22567 | 12614 |
22568 cat >>confdefs.h <<\_ACEOF | 12615 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h |
22569 #define HAVE_LIBDES 1 | |
22570 _ACEOF | |
22571 | 12616 |
22572 fi | 12617 fi |
22573 fi | 12618 fi |
22574 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5 | 12619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5 |
22575 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; } | 12620 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; } |
22576 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then | 12621 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then : |
22577 $as_echo_n "(cached) " >&6 | 12622 $as_echo_n "(cached) " >&6 |
22578 else | 12623 else |
22579 ac_check_lib_save_LIBS=$LIBS | 12624 ac_check_lib_save_LIBS=$LIBS |
22580 LIBS="-lkrb4 $LIBS" | 12625 LIBS="-lkrb4 $LIBS" |
22581 cat >conftest.$ac_ext <<_ACEOF | 12626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
22582 /* confdefs.h. */ | |
22583 _ACEOF | |
22584 cat confdefs.h >>conftest.$ac_ext | |
22585 cat >>conftest.$ac_ext <<_ACEOF | |
22586 /* end confdefs.h. */ | 12627 /* end confdefs.h. */ |
22587 | 12628 |
22588 /* Override any GCC internal prototype to avoid an error. | 12629 /* Override any GCC internal prototype to avoid an error. |
22589 Use char because int might match the return type of a GCC | 12630 Use char because int might match the return type of a GCC |
22590 builtin and then its argument prototype would still apply. */ | 12631 builtin and then its argument prototype would still apply. */ |
22598 return krb_get_cred (); | 12639 return krb_get_cred (); |
22599 ; | 12640 ; |
22600 return 0; | 12641 return 0; |
22601 } | 12642 } |
22602 _ACEOF | 12643 _ACEOF |
22603 rm -f conftest.$ac_objext conftest$ac_exeext | 12644 if ac_fn_c_try_link "$LINENO"; then : |
22604 if { (ac_try="$ac_link" | |
22605 case "(($ac_try" in | |
22606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22607 *) ac_try_echo=$ac_try;; | |
22608 esac | |
22609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22610 $as_echo "$ac_try_echo") >&5 | |
22611 (eval "$ac_link") 2>conftest.er1 | |
22612 ac_status=$? | |
22613 grep -v '^ *+' conftest.er1 >conftest.err | |
22614 rm -f conftest.er1 | |
22615 cat conftest.err >&5 | |
22616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22617 (exit $ac_status); } && { | |
22618 test -z "$ac_c_werror_flag" || | |
22619 test ! -s conftest.err | |
22620 } && test -s conftest$ac_exeext && { | |
22621 test "$cross_compiling" = yes || | |
22622 $as_test_x conftest$ac_exeext | |
22623 }; then | |
22624 ac_cv_lib_krb4_krb_get_cred=yes | 12645 ac_cv_lib_krb4_krb_get_cred=yes |
22625 else | 12646 else |
22626 $as_echo "$as_me: failed program was:" >&5 | 12647 ac_cv_lib_krb4_krb_get_cred=no |
22627 sed 's/^/| /' conftest.$ac_ext >&5 | 12648 fi |
22628 | 12649 rm -f core conftest.err conftest.$ac_objext \ |
22629 ac_cv_lib_krb4_krb_get_cred=no | 12650 conftest$ac_exeext conftest.$ac_ext |
22630 fi | |
22631 | |
22632 rm -rf conftest.dSYM | |
22633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
22634 conftest$ac_exeext conftest.$ac_ext | |
22635 LIBS=$ac_check_lib_save_LIBS | 12651 LIBS=$ac_check_lib_save_LIBS |
22636 fi | 12652 fi |
22637 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5 | 12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5 |
22638 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; } | 12654 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; } |
22639 if test $ac_cv_lib_krb4_krb_get_cred = yes; then | 12655 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then : |
22640 have_krb4=yes | 12656 have_krb4=yes |
22641 else | 12657 else |
22642 have_krb4=no | 12658 have_krb4=no |
22643 fi | 12659 fi |
22644 | 12660 |
22645 if test $have_krb4 = yes; then | 12661 if test $have_krb4 = yes; then |
22646 KRB4LIB=-lkrb4 | 12662 KRB4LIB=-lkrb4 |
22647 LIBS="$KRB4LIB $LIBS" | 12663 LIBS="$KRB4LIB $LIBS" |
22648 | 12664 |
22649 cat >>confdefs.h <<\_ACEOF | 12665 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h |
22650 #define HAVE_LIBKRB4 1 | |
22651 _ACEOF | |
22652 | 12666 |
22653 else | 12667 else |
22654 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5 | 12668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5 |
22655 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; } | 12669 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; } |
22656 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then | 12670 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then : |
22657 $as_echo_n "(cached) " >&6 | 12671 $as_echo_n "(cached) " >&6 |
22658 else | 12672 else |
22659 ac_check_lib_save_LIBS=$LIBS | 12673 ac_check_lib_save_LIBS=$LIBS |
22660 LIBS="-lkrb $LIBS" | 12674 LIBS="-lkrb $LIBS" |
22661 cat >conftest.$ac_ext <<_ACEOF | 12675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
22662 /* confdefs.h. */ | |
22663 _ACEOF | |
22664 cat confdefs.h >>conftest.$ac_ext | |
22665 cat >>conftest.$ac_ext <<_ACEOF | |
22666 /* end confdefs.h. */ | 12676 /* end confdefs.h. */ |
22667 | 12677 |
22668 /* Override any GCC internal prototype to avoid an error. | 12678 /* Override any GCC internal prototype to avoid an error. |
22669 Use char because int might match the return type of a GCC | 12679 Use char because int might match the return type of a GCC |
22670 builtin and then its argument prototype would still apply. */ | 12680 builtin and then its argument prototype would still apply. */ |
22678 return krb_get_cred (); | 12688 return krb_get_cred (); |
22679 ; | 12689 ; |
22680 return 0; | 12690 return 0; |
22681 } | 12691 } |
22682 _ACEOF | 12692 _ACEOF |
22683 rm -f conftest.$ac_objext conftest$ac_exeext | 12693 if ac_fn_c_try_link "$LINENO"; then : |
22684 if { (ac_try="$ac_link" | |
22685 case "(($ac_try" in | |
22686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22687 *) ac_try_echo=$ac_try;; | |
22688 esac | |
22689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22690 $as_echo "$ac_try_echo") >&5 | |
22691 (eval "$ac_link") 2>conftest.er1 | |
22692 ac_status=$? | |
22693 grep -v '^ *+' conftest.er1 >conftest.err | |
22694 rm -f conftest.er1 | |
22695 cat conftest.err >&5 | |
22696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22697 (exit $ac_status); } && { | |
22698 test -z "$ac_c_werror_flag" || | |
22699 test ! -s conftest.err | |
22700 } && test -s conftest$ac_exeext && { | |
22701 test "$cross_compiling" = yes || | |
22702 $as_test_x conftest$ac_exeext | |
22703 }; then | |
22704 ac_cv_lib_krb_krb_get_cred=yes | 12694 ac_cv_lib_krb_krb_get_cred=yes |
22705 else | 12695 else |
22706 $as_echo "$as_me: failed program was:" >&5 | 12696 ac_cv_lib_krb_krb_get_cred=no |
22707 sed 's/^/| /' conftest.$ac_ext >&5 | 12697 fi |
22708 | 12698 rm -f core conftest.err conftest.$ac_objext \ |
22709 ac_cv_lib_krb_krb_get_cred=no | 12699 conftest$ac_exeext conftest.$ac_ext |
22710 fi | |
22711 | |
22712 rm -rf conftest.dSYM | |
22713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
22714 conftest$ac_exeext conftest.$ac_ext | |
22715 LIBS=$ac_check_lib_save_LIBS | 12700 LIBS=$ac_check_lib_save_LIBS |
22716 fi | 12701 fi |
22717 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5 | 12702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5 |
22718 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; } | 12703 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; } |
22719 if test $ac_cv_lib_krb_krb_get_cred = yes; then | 12704 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then : |
22720 have_krb=yes | 12705 have_krb=yes |
22721 else | 12706 else |
22722 have_krb=no | 12707 have_krb=no |
22723 fi | 12708 fi |
22724 | 12709 |
22725 if test $have_krb = yes; then | 12710 if test $have_krb = yes; then |
22726 KRB4LIB=-lkrb | 12711 KRB4LIB=-lkrb |
22727 LIBS="$KRB4LIB $LIBS" | 12712 LIBS="$KRB4LIB $LIBS" |
22728 | 12713 |
22729 cat >>confdefs.h <<\_ACEOF | 12714 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h |
22730 #define HAVE_LIBKRB 1 | |
22731 _ACEOF | |
22732 | 12715 |
22733 fi | 12716 fi |
22734 fi | 12717 fi |
22735 fi | 12718 fi |
22736 | 12719 |
22737 if test "${with_kerberos5}" != no; then | 12720 if test "${with_kerberos5}" != no; then |
22738 | 12721 for ac_header in krb5.h |
22739 for ac_header in krb5.h | 12722 do : |
22740 do | 12723 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default" |
22741 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 12724 if test "x$ac_cv_header_krb5_h" = x""yes; then : |
22742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
22743 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22744 $as_echo_n "checking for $ac_header... " >&6; } | |
22745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
22746 $as_echo_n "(cached) " >&6 | |
22747 fi | |
22748 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
22749 $as_echo "$as_val"'` | |
22750 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
22751 $as_echo "$ac_res" >&6; } | |
22752 else | |
22753 # Is the header compilable? | |
22754 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
22755 $as_echo_n "checking $ac_header usability... " >&6; } | |
22756 cat >conftest.$ac_ext <<_ACEOF | |
22757 /* confdefs.h. */ | |
22758 _ACEOF | |
22759 cat confdefs.h >>conftest.$ac_ext | |
22760 cat >>conftest.$ac_ext <<_ACEOF | |
22761 /* end confdefs.h. */ | |
22762 $ac_includes_default | |
22763 #include <$ac_header> | |
22764 _ACEOF | |
22765 rm -f conftest.$ac_objext | |
22766 if { (ac_try="$ac_compile" | |
22767 case "(($ac_try" in | |
22768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22769 *) ac_try_echo=$ac_try;; | |
22770 esac | |
22771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22772 $as_echo "$ac_try_echo") >&5 | |
22773 (eval "$ac_compile") 2>conftest.er1 | |
22774 ac_status=$? | |
22775 grep -v '^ *+' conftest.er1 >conftest.err | |
22776 rm -f conftest.er1 | |
22777 cat conftest.err >&5 | |
22778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22779 (exit $ac_status); } && { | |
22780 test -z "$ac_c_werror_flag" || | |
22781 test ! -s conftest.err | |
22782 } && test -s conftest.$ac_objext; then | |
22783 ac_header_compiler=yes | |
22784 else | |
22785 $as_echo "$as_me: failed program was:" >&5 | |
22786 sed 's/^/| /' conftest.$ac_ext >&5 | |
22787 | |
22788 ac_header_compiler=no | |
22789 fi | |
22790 | |
22791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
22792 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
22793 $as_echo "$ac_header_compiler" >&6; } | |
22794 | |
22795 # Is the header present? | |
22796 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
22797 $as_echo_n "checking $ac_header presence... " >&6; } | |
22798 cat >conftest.$ac_ext <<_ACEOF | |
22799 /* confdefs.h. */ | |
22800 _ACEOF | |
22801 cat confdefs.h >>conftest.$ac_ext | |
22802 cat >>conftest.$ac_ext <<_ACEOF | |
22803 /* end confdefs.h. */ | |
22804 #include <$ac_header> | |
22805 _ACEOF | |
22806 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
22807 case "(($ac_try" in | |
22808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22809 *) ac_try_echo=$ac_try;; | |
22810 esac | |
22811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22812 $as_echo "$ac_try_echo") >&5 | |
22813 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
22814 ac_status=$? | |
22815 grep -v '^ *+' conftest.er1 >conftest.err | |
22816 rm -f conftest.er1 | |
22817 cat conftest.err >&5 | |
22818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22819 (exit $ac_status); } >/dev/null && { | |
22820 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
22821 test ! -s conftest.err | |
22822 }; then | |
22823 ac_header_preproc=yes | |
22824 else | |
22825 $as_echo "$as_me: failed program was:" >&5 | |
22826 sed 's/^/| /' conftest.$ac_ext >&5 | |
22827 | |
22828 ac_header_preproc=no | |
22829 fi | |
22830 | |
22831 rm -f conftest.err conftest.$ac_ext | |
22832 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22833 $as_echo "$ac_header_preproc" >&6; } | |
22834 | |
22835 # So? What about this header? | |
22836 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
22837 yes:no: ) | |
22838 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
22839 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
22840 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
22841 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
22842 ac_header_preproc=yes | |
22843 ;; | |
22844 no:yes:* ) | |
22845 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
22846 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
22847 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
22848 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
22849 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
22850 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
22851 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
22852 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
22853 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
22854 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
22855 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
22856 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
22857 | |
22858 ;; | |
22859 esac | |
22860 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22861 $as_echo_n "checking for $ac_header... " >&6; } | |
22862 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
22863 $as_echo_n "(cached) " >&6 | |
22864 else | |
22865 eval "$as_ac_Header=\$ac_header_preproc" | |
22866 fi | |
22867 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
22868 $as_echo "$as_val"'` | |
22869 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
22870 $as_echo "$ac_res" >&6; } | |
22871 | |
22872 fi | |
22873 if test `eval 'as_val=${'$as_ac_Header'} | |
22874 $as_echo "$as_val"'` = yes; then | |
22875 cat >>confdefs.h <<_ACEOF | 12725 cat >>confdefs.h <<_ACEOF |
22876 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 12726 #define HAVE_KRB5_H 1 |
22877 _ACEOF | 12727 _ACEOF |
22878 { $as_echo "$as_me:$LINENO: checking for krb5_error.text" >&5 | 12728 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h> |
22879 $as_echo_n "checking for krb5_error.text... " >&6; } | 12729 " |
22880 if test "${ac_cv_member_krb5_error_text+set}" = set; then | 12730 if test "x$ac_cv_member_krb5_error_text" = x""yes; then : |
22881 $as_echo_n "(cached) " >&6 | |
22882 else | |
22883 cat >conftest.$ac_ext <<_ACEOF | |
22884 /* confdefs.h. */ | |
22885 _ACEOF | |
22886 cat confdefs.h >>conftest.$ac_ext | |
22887 cat >>conftest.$ac_ext <<_ACEOF | |
22888 /* end confdefs.h. */ | |
22889 #include <krb5.h> | |
22890 | |
22891 int | |
22892 main () | |
22893 { | |
22894 static krb5_error ac_aggr; | |
22895 if (ac_aggr.text) | |
22896 return 0; | |
22897 ; | |
22898 return 0; | |
22899 } | |
22900 _ACEOF | |
22901 rm -f conftest.$ac_objext | |
22902 if { (ac_try="$ac_compile" | |
22903 case "(($ac_try" in | |
22904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22905 *) ac_try_echo=$ac_try;; | |
22906 esac | |
22907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22908 $as_echo "$ac_try_echo") >&5 | |
22909 (eval "$ac_compile") 2>conftest.er1 | |
22910 ac_status=$? | |
22911 grep -v '^ *+' conftest.er1 >conftest.err | |
22912 rm -f conftest.er1 | |
22913 cat conftest.err >&5 | |
22914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22915 (exit $ac_status); } && { | |
22916 test -z "$ac_c_werror_flag" || | |
22917 test ! -s conftest.err | |
22918 } && test -s conftest.$ac_objext; then | |
22919 ac_cv_member_krb5_error_text=yes | |
22920 else | |
22921 $as_echo "$as_me: failed program was:" >&5 | |
22922 sed 's/^/| /' conftest.$ac_ext >&5 | |
22923 | |
22924 cat >conftest.$ac_ext <<_ACEOF | |
22925 /* confdefs.h. */ | |
22926 _ACEOF | |
22927 cat confdefs.h >>conftest.$ac_ext | |
22928 cat >>conftest.$ac_ext <<_ACEOF | |
22929 /* end confdefs.h. */ | |
22930 #include <krb5.h> | |
22931 | |
22932 int | |
22933 main () | |
22934 { | |
22935 static krb5_error ac_aggr; | |
22936 if (sizeof ac_aggr.text) | |
22937 return 0; | |
22938 ; | |
22939 return 0; | |
22940 } | |
22941 _ACEOF | |
22942 rm -f conftest.$ac_objext | |
22943 if { (ac_try="$ac_compile" | |
22944 case "(($ac_try" in | |
22945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22946 *) ac_try_echo=$ac_try;; | |
22947 esac | |
22948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
22949 $as_echo "$ac_try_echo") >&5 | |
22950 (eval "$ac_compile") 2>conftest.er1 | |
22951 ac_status=$? | |
22952 grep -v '^ *+' conftest.er1 >conftest.err | |
22953 rm -f conftest.er1 | |
22954 cat conftest.err >&5 | |
22955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22956 (exit $ac_status); } && { | |
22957 test -z "$ac_c_werror_flag" || | |
22958 test ! -s conftest.err | |
22959 } && test -s conftest.$ac_objext; then | |
22960 ac_cv_member_krb5_error_text=yes | |
22961 else | |
22962 $as_echo "$as_me: failed program was:" >&5 | |
22963 sed 's/^/| /' conftest.$ac_ext >&5 | |
22964 | |
22965 ac_cv_member_krb5_error_text=no | |
22966 fi | |
22967 | |
22968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
22969 fi | |
22970 | |
22971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
22972 fi | |
22973 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5 | |
22974 $as_echo "$ac_cv_member_krb5_error_text" >&6; } | |
22975 if test $ac_cv_member_krb5_error_text = yes; then | |
22976 | 12731 |
22977 cat >>confdefs.h <<_ACEOF | 12732 cat >>confdefs.h <<_ACEOF |
22978 #define HAVE_KRB5_ERROR_TEXT 1 | 12733 #define HAVE_KRB5_ERROR_TEXT 1 |
22979 _ACEOF | 12734 _ACEOF |
22980 | 12735 |
22981 | 12736 |
22982 fi | 12737 fi |
22983 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5 | 12738 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h> |
22984 $as_echo_n "checking for krb5_error.e_text... " >&6; } | 12739 " |
22985 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then | 12740 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then : |
22986 $as_echo_n "(cached) " >&6 | |
22987 else | |
22988 cat >conftest.$ac_ext <<_ACEOF | |
22989 /* confdefs.h. */ | |
22990 _ACEOF | |
22991 cat confdefs.h >>conftest.$ac_ext | |
22992 cat >>conftest.$ac_ext <<_ACEOF | |
22993 /* end confdefs.h. */ | |
22994 #include <krb5.h> | |
22995 | |
22996 int | |
22997 main () | |
22998 { | |
22999 static krb5_error ac_aggr; | |
23000 if (ac_aggr.e_text) | |
23001 return 0; | |
23002 ; | |
23003 return 0; | |
23004 } | |
23005 _ACEOF | |
23006 rm -f conftest.$ac_objext | |
23007 if { (ac_try="$ac_compile" | |
23008 case "(($ac_try" in | |
23009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23010 *) ac_try_echo=$ac_try;; | |
23011 esac | |
23012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23013 $as_echo "$ac_try_echo") >&5 | |
23014 (eval "$ac_compile") 2>conftest.er1 | |
23015 ac_status=$? | |
23016 grep -v '^ *+' conftest.er1 >conftest.err | |
23017 rm -f conftest.er1 | |
23018 cat conftest.err >&5 | |
23019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23020 (exit $ac_status); } && { | |
23021 test -z "$ac_c_werror_flag" || | |
23022 test ! -s conftest.err | |
23023 } && test -s conftest.$ac_objext; then | |
23024 ac_cv_member_krb5_error_e_text=yes | |
23025 else | |
23026 $as_echo "$as_me: failed program was:" >&5 | |
23027 sed 's/^/| /' conftest.$ac_ext >&5 | |
23028 | |
23029 cat >conftest.$ac_ext <<_ACEOF | |
23030 /* confdefs.h. */ | |
23031 _ACEOF | |
23032 cat confdefs.h >>conftest.$ac_ext | |
23033 cat >>conftest.$ac_ext <<_ACEOF | |
23034 /* end confdefs.h. */ | |
23035 #include <krb5.h> | |
23036 | |
23037 int | |
23038 main () | |
23039 { | |
23040 static krb5_error ac_aggr; | |
23041 if (sizeof ac_aggr.e_text) | |
23042 return 0; | |
23043 ; | |
23044 return 0; | |
23045 } | |
23046 _ACEOF | |
23047 rm -f conftest.$ac_objext | |
23048 if { (ac_try="$ac_compile" | |
23049 case "(($ac_try" in | |
23050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23051 *) ac_try_echo=$ac_try;; | |
23052 esac | |
23053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23054 $as_echo "$ac_try_echo") >&5 | |
23055 (eval "$ac_compile") 2>conftest.er1 | |
23056 ac_status=$? | |
23057 grep -v '^ *+' conftest.er1 >conftest.err | |
23058 rm -f conftest.er1 | |
23059 cat conftest.err >&5 | |
23060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23061 (exit $ac_status); } && { | |
23062 test -z "$ac_c_werror_flag" || | |
23063 test ! -s conftest.err | |
23064 } && test -s conftest.$ac_objext; then | |
23065 ac_cv_member_krb5_error_e_text=yes | |
23066 else | |
23067 $as_echo "$as_me: failed program was:" >&5 | |
23068 sed 's/^/| /' conftest.$ac_ext >&5 | |
23069 | |
23070 ac_cv_member_krb5_error_e_text=no | |
23071 fi | |
23072 | |
23073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
23074 fi | |
23075 | |
23076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
23077 fi | |
23078 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5 | |
23079 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; } | |
23080 if test $ac_cv_member_krb5_error_e_text = yes; then | |
23081 | 12741 |
23082 cat >>confdefs.h <<_ACEOF | 12742 cat >>confdefs.h <<_ACEOF |
23083 #define HAVE_KRB5_ERROR_E_TEXT 1 | 12743 #define HAVE_KRB5_ERROR_E_TEXT 1 |
23084 _ACEOF | 12744 _ACEOF |
23085 | 12745 |
23089 fi | 12749 fi |
23090 | 12750 |
23091 done | 12751 done |
23092 | 12752 |
23093 else | 12753 else |
23094 | 12754 for ac_header in des.h |
23095 for ac_header in des.h | 12755 do : |
23096 do | 12756 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default" |
23097 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 12757 if test "x$ac_cv_header_des_h" = x""yes; then : |
23098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
23099 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
23100 $as_echo_n "checking for $ac_header... " >&6; } | |
23101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
23102 $as_echo_n "(cached) " >&6 | |
23103 fi | |
23104 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
23105 $as_echo "$as_val"'` | |
23106 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
23107 $as_echo "$ac_res" >&6; } | |
23108 else | |
23109 # Is the header compilable? | |
23110 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
23111 $as_echo_n "checking $ac_header usability... " >&6; } | |
23112 cat >conftest.$ac_ext <<_ACEOF | |
23113 /* confdefs.h. */ | |
23114 _ACEOF | |
23115 cat confdefs.h >>conftest.$ac_ext | |
23116 cat >>conftest.$ac_ext <<_ACEOF | |
23117 /* end confdefs.h. */ | |
23118 $ac_includes_default | |
23119 #include <$ac_header> | |
23120 _ACEOF | |
23121 rm -f conftest.$ac_objext | |
23122 if { (ac_try="$ac_compile" | |
23123 case "(($ac_try" in | |
23124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23125 *) ac_try_echo=$ac_try;; | |
23126 esac | |
23127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23128 $as_echo "$ac_try_echo") >&5 | |
23129 (eval "$ac_compile") 2>conftest.er1 | |
23130 ac_status=$? | |
23131 grep -v '^ *+' conftest.er1 >conftest.err | |
23132 rm -f conftest.er1 | |
23133 cat conftest.err >&5 | |
23134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23135 (exit $ac_status); } && { | |
23136 test -z "$ac_c_werror_flag" || | |
23137 test ! -s conftest.err | |
23138 } && test -s conftest.$ac_objext; then | |
23139 ac_header_compiler=yes | |
23140 else | |
23141 $as_echo "$as_me: failed program was:" >&5 | |
23142 sed 's/^/| /' conftest.$ac_ext >&5 | |
23143 | |
23144 ac_header_compiler=no | |
23145 fi | |
23146 | |
23147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
23148 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
23149 $as_echo "$ac_header_compiler" >&6; } | |
23150 | |
23151 # Is the header present? | |
23152 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
23153 $as_echo_n "checking $ac_header presence... " >&6; } | |
23154 cat >conftest.$ac_ext <<_ACEOF | |
23155 /* confdefs.h. */ | |
23156 _ACEOF | |
23157 cat confdefs.h >>conftest.$ac_ext | |
23158 cat >>conftest.$ac_ext <<_ACEOF | |
23159 /* end confdefs.h. */ | |
23160 #include <$ac_header> | |
23161 _ACEOF | |
23162 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
23163 case "(($ac_try" in | |
23164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23165 *) ac_try_echo=$ac_try;; | |
23166 esac | |
23167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23168 $as_echo "$ac_try_echo") >&5 | |
23169 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
23170 ac_status=$? | |
23171 grep -v '^ *+' conftest.er1 >conftest.err | |
23172 rm -f conftest.er1 | |
23173 cat conftest.err >&5 | |
23174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23175 (exit $ac_status); } >/dev/null && { | |
23176 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
23177 test ! -s conftest.err | |
23178 }; then | |
23179 ac_header_preproc=yes | |
23180 else | |
23181 $as_echo "$as_me: failed program was:" >&5 | |
23182 sed 's/^/| /' conftest.$ac_ext >&5 | |
23183 | |
23184 ac_header_preproc=no | |
23185 fi | |
23186 | |
23187 rm -f conftest.err conftest.$ac_ext | |
23188 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23189 $as_echo "$ac_header_preproc" >&6; } | |
23190 | |
23191 # So? What about this header? | |
23192 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
23193 yes:no: ) | |
23194 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
23195 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
23196 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
23197 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
23198 ac_header_preproc=yes | |
23199 ;; | |
23200 no:yes:* ) | |
23201 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
23202 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
23203 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
23204 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
23205 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
23206 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
23207 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
23208 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
23209 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
23210 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
23211 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
23212 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
23213 | |
23214 ;; | |
23215 esac | |
23216 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
23217 $as_echo_n "checking for $ac_header... " >&6; } | |
23218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
23219 $as_echo_n "(cached) " >&6 | |
23220 else | |
23221 eval "$as_ac_Header=\$ac_header_preproc" | |
23222 fi | |
23223 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
23224 $as_echo "$as_val"'` | |
23225 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
23226 $as_echo "$ac_res" >&6; } | |
23227 | |
23228 fi | |
23229 if test `eval 'as_val=${'$as_ac_Header'} | |
23230 $as_echo "$as_val"'` = yes; then | |
23231 cat >>confdefs.h <<_ACEOF | 12758 cat >>confdefs.h <<_ACEOF |
23232 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 12759 #define HAVE_DES_H 1 |
23233 _ACEOF | 12760 _ACEOF |
23234 | 12761 |
23235 else | 12762 else |
23236 | 12763 for ac_header in kerberosIV/des.h |
23237 for ac_header in kerberosIV/des.h | 12764 do : |
23238 do | 12765 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default" |
23239 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 12766 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then : |
23240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
23241 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
23242 $as_echo_n "checking for $ac_header... " >&6; } | |
23243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
23244 $as_echo_n "(cached) " >&6 | |
23245 fi | |
23246 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
23247 $as_echo "$as_val"'` | |
23248 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
23249 $as_echo "$ac_res" >&6; } | |
23250 else | |
23251 # Is the header compilable? | |
23252 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
23253 $as_echo_n "checking $ac_header usability... " >&6; } | |
23254 cat >conftest.$ac_ext <<_ACEOF | |
23255 /* confdefs.h. */ | |
23256 _ACEOF | |
23257 cat confdefs.h >>conftest.$ac_ext | |
23258 cat >>conftest.$ac_ext <<_ACEOF | |
23259 /* end confdefs.h. */ | |
23260 $ac_includes_default | |
23261 #include <$ac_header> | |
23262 _ACEOF | |
23263 rm -f conftest.$ac_objext | |
23264 if { (ac_try="$ac_compile" | |
23265 case "(($ac_try" in | |
23266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23267 *) ac_try_echo=$ac_try;; | |
23268 esac | |
23269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23270 $as_echo "$ac_try_echo") >&5 | |
23271 (eval "$ac_compile") 2>conftest.er1 | |
23272 ac_status=$? | |
23273 grep -v '^ *+' conftest.er1 >conftest.err | |
23274 rm -f conftest.er1 | |
23275 cat conftest.err >&5 | |
23276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23277 (exit $ac_status); } && { | |
23278 test -z "$ac_c_werror_flag" || | |
23279 test ! -s conftest.err | |
23280 } && test -s conftest.$ac_objext; then | |
23281 ac_header_compiler=yes | |
23282 else | |
23283 $as_echo "$as_me: failed program was:" >&5 | |
23284 sed 's/^/| /' conftest.$ac_ext >&5 | |
23285 | |
23286 ac_header_compiler=no | |
23287 fi | |
23288 | |
23289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
23290 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
23291 $as_echo "$ac_header_compiler" >&6; } | |
23292 | |
23293 # Is the header present? | |
23294 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
23295 $as_echo_n "checking $ac_header presence... " >&6; } | |
23296 cat >conftest.$ac_ext <<_ACEOF | |
23297 /* confdefs.h. */ | |
23298 _ACEOF | |
23299 cat confdefs.h >>conftest.$ac_ext | |
23300 cat >>conftest.$ac_ext <<_ACEOF | |
23301 /* end confdefs.h. */ | |
23302 #include <$ac_header> | |
23303 _ACEOF | |
23304 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
23305 case "(($ac_try" in | |
23306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23307 *) ac_try_echo=$ac_try;; | |
23308 esac | |
23309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23310 $as_echo "$ac_try_echo") >&5 | |
23311 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
23312 ac_status=$? | |
23313 grep -v '^ *+' conftest.er1 >conftest.err | |
23314 rm -f conftest.er1 | |
23315 cat conftest.err >&5 | |
23316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23317 (exit $ac_status); } >/dev/null && { | |
23318 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
23319 test ! -s conftest.err | |
23320 }; then | |
23321 ac_header_preproc=yes | |
23322 else | |
23323 $as_echo "$as_me: failed program was:" >&5 | |
23324 sed 's/^/| /' conftest.$ac_ext >&5 | |
23325 | |
23326 ac_header_preproc=no | |
23327 fi | |
23328 | |
23329 rm -f conftest.err conftest.$ac_ext | |
23330 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23331 $as_echo "$ac_header_preproc" >&6; } | |
23332 | |
23333 # So? What about this header? | |
23334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
23335 yes:no: ) | |
23336 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
23337 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
23338 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
23339 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
23340 ac_header_preproc=yes | |
23341 ;; | |
23342 no:yes:* ) | |
23343 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
23344 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
23345 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
23346 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
23347 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
23348 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
23349 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
23350 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
23351 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
23352 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
23353 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
23354 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
23355 | |
23356 ;; | |
23357 esac | |
23358 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
23359 $as_echo_n "checking for $ac_header... " >&6; } | |
23360 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
23361 $as_echo_n "(cached) " >&6 | |
23362 else | |
23363 eval "$as_ac_Header=\$ac_header_preproc" | |
23364 fi | |
23365 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
23366 $as_echo "$as_val"'` | |
23367 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
23368 $as_echo "$ac_res" >&6; } | |
23369 | |
23370 fi | |
23371 if test `eval 'as_val=${'$as_ac_Header'} | |
23372 $as_echo "$as_val"'` = yes; then | |
23373 cat >>confdefs.h <<_ACEOF | 12767 cat >>confdefs.h <<_ACEOF |
23374 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 12768 #define HAVE_KERBEROSIV_DES_H 1 |
23375 _ACEOF | 12769 _ACEOF |
23376 | 12770 |
23377 else | 12771 else |
23378 | 12772 for ac_header in kerberos/des.h |
23379 for ac_header in kerberos/des.h | 12773 do : |
23380 do | 12774 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default" |
23381 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 12775 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then : |
23382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
23383 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
23384 $as_echo_n "checking for $ac_header... " >&6; } | |
23385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
23386 $as_echo_n "(cached) " >&6 | |
23387 fi | |
23388 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
23389 $as_echo "$as_val"'` | |
23390 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
23391 $as_echo "$ac_res" >&6; } | |
23392 else | |
23393 # Is the header compilable? | |
23394 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
23395 $as_echo_n "checking $ac_header usability... " >&6; } | |
23396 cat >conftest.$ac_ext <<_ACEOF | |
23397 /* confdefs.h. */ | |
23398 _ACEOF | |
23399 cat confdefs.h >>conftest.$ac_ext | |
23400 cat >>conftest.$ac_ext <<_ACEOF | |
23401 /* end confdefs.h. */ | |
23402 $ac_includes_default | |
23403 #include <$ac_header> | |
23404 _ACEOF | |
23405 rm -f conftest.$ac_objext | |
23406 if { (ac_try="$ac_compile" | |
23407 case "(($ac_try" in | |
23408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23409 *) ac_try_echo=$ac_try;; | |
23410 esac | |
23411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23412 $as_echo "$ac_try_echo") >&5 | |
23413 (eval "$ac_compile") 2>conftest.er1 | |
23414 ac_status=$? | |
23415 grep -v '^ *+' conftest.er1 >conftest.err | |
23416 rm -f conftest.er1 | |
23417 cat conftest.err >&5 | |
23418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23419 (exit $ac_status); } && { | |
23420 test -z "$ac_c_werror_flag" || | |
23421 test ! -s conftest.err | |
23422 } && test -s conftest.$ac_objext; then | |
23423 ac_header_compiler=yes | |
23424 else | |
23425 $as_echo "$as_me: failed program was:" >&5 | |
23426 sed 's/^/| /' conftest.$ac_ext >&5 | |
23427 | |
23428 ac_header_compiler=no | |
23429 fi | |
23430 | |
23431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
23432 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
23433 $as_echo "$ac_header_compiler" >&6; } | |
23434 | |
23435 # Is the header present? | |
23436 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
23437 $as_echo_n "checking $ac_header presence... " >&6; } | |
23438 cat >conftest.$ac_ext <<_ACEOF | |
23439 /* confdefs.h. */ | |
23440 _ACEOF | |
23441 cat confdefs.h >>conftest.$ac_ext | |
23442 cat >>conftest.$ac_ext <<_ACEOF | |
23443 /* end confdefs.h. */ | |
23444 #include <$ac_header> | |
23445 _ACEOF | |
23446 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
23447 case "(($ac_try" in | |
23448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23449 *) ac_try_echo=$ac_try;; | |
23450 esac | |
23451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23452 $as_echo "$ac_try_echo") >&5 | |
23453 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
23454 ac_status=$? | |
23455 grep -v '^ *+' conftest.er1 >conftest.err | |
23456 rm -f conftest.er1 | |
23457 cat conftest.err >&5 | |
23458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23459 (exit $ac_status); } >/dev/null && { | |
23460 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
23461 test ! -s conftest.err | |
23462 }; then | |
23463 ac_header_preproc=yes | |
23464 else | |
23465 $as_echo "$as_me: failed program was:" >&5 | |
23466 sed 's/^/| /' conftest.$ac_ext >&5 | |
23467 | |
23468 ac_header_preproc=no | |
23469 fi | |
23470 | |
23471 rm -f conftest.err conftest.$ac_ext | |
23472 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23473 $as_echo "$ac_header_preproc" >&6; } | |
23474 | |
23475 # So? What about this header? | |
23476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
23477 yes:no: ) | |
23478 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
23479 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
23480 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
23481 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
23482 ac_header_preproc=yes | |
23483 ;; | |
23484 no:yes:* ) | |
23485 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
23486 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
23487 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
23488 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
23489 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
23490 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
23491 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
23492 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
23493 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
23494 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
23495 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
23496 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
23497 | |
23498 ;; | |
23499 esac | |
23500 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
23501 $as_echo_n "checking for $ac_header... " >&6; } | |
23502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
23503 $as_echo_n "(cached) " >&6 | |
23504 else | |
23505 eval "$as_ac_Header=\$ac_header_preproc" | |
23506 fi | |
23507 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
23508 $as_echo "$as_val"'` | |
23509 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
23510 $as_echo "$ac_res" >&6; } | |
23511 | |
23512 fi | |
23513 if test `eval 'as_val=${'$as_ac_Header'} | |
23514 $as_echo "$as_val"'` = yes; then | |
23515 cat >>confdefs.h <<_ACEOF | 12776 cat >>confdefs.h <<_ACEOF |
23516 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 12777 #define HAVE_KERBEROS_DES_H 1 |
23517 _ACEOF | 12778 _ACEOF |
23518 | 12779 |
23519 fi | 12780 fi |
23520 | 12781 |
23521 done | 12782 done |
23526 | 12787 |
23527 fi | 12788 fi |
23528 | 12789 |
23529 done | 12790 done |
23530 | 12791 |
23531 | 12792 for ac_header in krb.h |
23532 for ac_header in krb.h | 12793 do : |
23533 do | 12794 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default" |
23534 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 12795 if test "x$ac_cv_header_krb_h" = x""yes; then : |
23535 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
23536 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
23537 $as_echo_n "checking for $ac_header... " >&6; } | |
23538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
23539 $as_echo_n "(cached) " >&6 | |
23540 fi | |
23541 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
23542 $as_echo "$as_val"'` | |
23543 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
23544 $as_echo "$ac_res" >&6; } | |
23545 else | |
23546 # Is the header compilable? | |
23547 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
23548 $as_echo_n "checking $ac_header usability... " >&6; } | |
23549 cat >conftest.$ac_ext <<_ACEOF | |
23550 /* confdefs.h. */ | |
23551 _ACEOF | |
23552 cat confdefs.h >>conftest.$ac_ext | |
23553 cat >>conftest.$ac_ext <<_ACEOF | |
23554 /* end confdefs.h. */ | |
23555 $ac_includes_default | |
23556 #include <$ac_header> | |
23557 _ACEOF | |
23558 rm -f conftest.$ac_objext | |
23559 if { (ac_try="$ac_compile" | |
23560 case "(($ac_try" in | |
23561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23562 *) ac_try_echo=$ac_try;; | |
23563 esac | |
23564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23565 $as_echo "$ac_try_echo") >&5 | |
23566 (eval "$ac_compile") 2>conftest.er1 | |
23567 ac_status=$? | |
23568 grep -v '^ *+' conftest.er1 >conftest.err | |
23569 rm -f conftest.er1 | |
23570 cat conftest.err >&5 | |
23571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23572 (exit $ac_status); } && { | |
23573 test -z "$ac_c_werror_flag" || | |
23574 test ! -s conftest.err | |
23575 } && test -s conftest.$ac_objext; then | |
23576 ac_header_compiler=yes | |
23577 else | |
23578 $as_echo "$as_me: failed program was:" >&5 | |
23579 sed 's/^/| /' conftest.$ac_ext >&5 | |
23580 | |
23581 ac_header_compiler=no | |
23582 fi | |
23583 | |
23584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
23585 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
23586 $as_echo "$ac_header_compiler" >&6; } | |
23587 | |
23588 # Is the header present? | |
23589 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
23590 $as_echo_n "checking $ac_header presence... " >&6; } | |
23591 cat >conftest.$ac_ext <<_ACEOF | |
23592 /* confdefs.h. */ | |
23593 _ACEOF | |
23594 cat confdefs.h >>conftest.$ac_ext | |
23595 cat >>conftest.$ac_ext <<_ACEOF | |
23596 /* end confdefs.h. */ | |
23597 #include <$ac_header> | |
23598 _ACEOF | |
23599 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
23600 case "(($ac_try" in | |
23601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23602 *) ac_try_echo=$ac_try;; | |
23603 esac | |
23604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23605 $as_echo "$ac_try_echo") >&5 | |
23606 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
23607 ac_status=$? | |
23608 grep -v '^ *+' conftest.er1 >conftest.err | |
23609 rm -f conftest.er1 | |
23610 cat conftest.err >&5 | |
23611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23612 (exit $ac_status); } >/dev/null && { | |
23613 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
23614 test ! -s conftest.err | |
23615 }; then | |
23616 ac_header_preproc=yes | |
23617 else | |
23618 $as_echo "$as_me: failed program was:" >&5 | |
23619 sed 's/^/| /' conftest.$ac_ext >&5 | |
23620 | |
23621 ac_header_preproc=no | |
23622 fi | |
23623 | |
23624 rm -f conftest.err conftest.$ac_ext | |
23625 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23626 $as_echo "$ac_header_preproc" >&6; } | |
23627 | |
23628 # So? What about this header? | |
23629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
23630 yes:no: ) | |
23631 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
23632 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
23633 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
23634 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
23635 ac_header_preproc=yes | |
23636 ;; | |
23637 no:yes:* ) | |
23638 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
23639 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
23640 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
23641 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
23642 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
23643 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
23644 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
23645 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
23646 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
23647 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
23648 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
23649 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
23650 | |
23651 ;; | |
23652 esac | |
23653 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
23654 $as_echo_n "checking for $ac_header... " >&6; } | |
23655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
23656 $as_echo_n "(cached) " >&6 | |
23657 else | |
23658 eval "$as_ac_Header=\$ac_header_preproc" | |
23659 fi | |
23660 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
23661 $as_echo "$as_val"'` | |
23662 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
23663 $as_echo "$ac_res" >&6; } | |
23664 | |
23665 fi | |
23666 if test `eval 'as_val=${'$as_ac_Header'} | |
23667 $as_echo "$as_val"'` = yes; then | |
23668 cat >>confdefs.h <<_ACEOF | 12796 cat >>confdefs.h <<_ACEOF |
23669 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 12797 #define HAVE_KRB_H 1 |
23670 _ACEOF | 12798 _ACEOF |
23671 | 12799 |
23672 else | 12800 else |
23673 | 12801 for ac_header in kerberosIV/krb.h |
23674 for ac_header in kerberosIV/krb.h | 12802 do : |
23675 do | 12803 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default" |
23676 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 12804 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then : |
23677 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
23678 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
23679 $as_echo_n "checking for $ac_header... " >&6; } | |
23680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
23681 $as_echo_n "(cached) " >&6 | |
23682 fi | |
23683 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
23684 $as_echo "$as_val"'` | |
23685 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
23686 $as_echo "$ac_res" >&6; } | |
23687 else | |
23688 # Is the header compilable? | |
23689 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
23690 $as_echo_n "checking $ac_header usability... " >&6; } | |
23691 cat >conftest.$ac_ext <<_ACEOF | |
23692 /* confdefs.h. */ | |
23693 _ACEOF | |
23694 cat confdefs.h >>conftest.$ac_ext | |
23695 cat >>conftest.$ac_ext <<_ACEOF | |
23696 /* end confdefs.h. */ | |
23697 $ac_includes_default | |
23698 #include <$ac_header> | |
23699 _ACEOF | |
23700 rm -f conftest.$ac_objext | |
23701 if { (ac_try="$ac_compile" | |
23702 case "(($ac_try" in | |
23703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23704 *) ac_try_echo=$ac_try;; | |
23705 esac | |
23706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23707 $as_echo "$ac_try_echo") >&5 | |
23708 (eval "$ac_compile") 2>conftest.er1 | |
23709 ac_status=$? | |
23710 grep -v '^ *+' conftest.er1 >conftest.err | |
23711 rm -f conftest.er1 | |
23712 cat conftest.err >&5 | |
23713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23714 (exit $ac_status); } && { | |
23715 test -z "$ac_c_werror_flag" || | |
23716 test ! -s conftest.err | |
23717 } && test -s conftest.$ac_objext; then | |
23718 ac_header_compiler=yes | |
23719 else | |
23720 $as_echo "$as_me: failed program was:" >&5 | |
23721 sed 's/^/| /' conftest.$ac_ext >&5 | |
23722 | |
23723 ac_header_compiler=no | |
23724 fi | |
23725 | |
23726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
23727 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
23728 $as_echo "$ac_header_compiler" >&6; } | |
23729 | |
23730 # Is the header present? | |
23731 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
23732 $as_echo_n "checking $ac_header presence... " >&6; } | |
23733 cat >conftest.$ac_ext <<_ACEOF | |
23734 /* confdefs.h. */ | |
23735 _ACEOF | |
23736 cat confdefs.h >>conftest.$ac_ext | |
23737 cat >>conftest.$ac_ext <<_ACEOF | |
23738 /* end confdefs.h. */ | |
23739 #include <$ac_header> | |
23740 _ACEOF | |
23741 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
23742 case "(($ac_try" in | |
23743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23744 *) ac_try_echo=$ac_try;; | |
23745 esac | |
23746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23747 $as_echo "$ac_try_echo") >&5 | |
23748 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
23749 ac_status=$? | |
23750 grep -v '^ *+' conftest.er1 >conftest.err | |
23751 rm -f conftest.er1 | |
23752 cat conftest.err >&5 | |
23753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23754 (exit $ac_status); } >/dev/null && { | |
23755 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
23756 test ! -s conftest.err | |
23757 }; then | |
23758 ac_header_preproc=yes | |
23759 else | |
23760 $as_echo "$as_me: failed program was:" >&5 | |
23761 sed 's/^/| /' conftest.$ac_ext >&5 | |
23762 | |
23763 ac_header_preproc=no | |
23764 fi | |
23765 | |
23766 rm -f conftest.err conftest.$ac_ext | |
23767 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23768 $as_echo "$ac_header_preproc" >&6; } | |
23769 | |
23770 # So? What about this header? | |
23771 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
23772 yes:no: ) | |
23773 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
23774 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
23775 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
23776 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
23777 ac_header_preproc=yes | |
23778 ;; | |
23779 no:yes:* ) | |
23780 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
23781 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
23782 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
23783 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
23784 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
23785 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
23786 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
23787 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
23788 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
23789 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
23790 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
23791 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
23792 | |
23793 ;; | |
23794 esac | |
23795 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
23796 $as_echo_n "checking for $ac_header... " >&6; } | |
23797 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
23798 $as_echo_n "(cached) " >&6 | |
23799 else | |
23800 eval "$as_ac_Header=\$ac_header_preproc" | |
23801 fi | |
23802 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
23803 $as_echo "$as_val"'` | |
23804 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
23805 $as_echo "$ac_res" >&6; } | |
23806 | |
23807 fi | |
23808 if test `eval 'as_val=${'$as_ac_Header'} | |
23809 $as_echo "$as_val"'` = yes; then | |
23810 cat >>confdefs.h <<_ACEOF | 12805 cat >>confdefs.h <<_ACEOF |
23811 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 12806 #define HAVE_KERBEROSIV_KRB_H 1 |
23812 _ACEOF | 12807 _ACEOF |
23813 | 12808 |
23814 else | 12809 else |
23815 | 12810 for ac_header in kerberos/krb.h |
23816 for ac_header in kerberos/krb.h | 12811 do : |
23817 do | 12812 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default" |
23818 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 12813 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then : |
23819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
23820 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
23821 $as_echo_n "checking for $ac_header... " >&6; } | |
23822 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
23823 $as_echo_n "(cached) " >&6 | |
23824 fi | |
23825 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
23826 $as_echo "$as_val"'` | |
23827 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
23828 $as_echo "$ac_res" >&6; } | |
23829 else | |
23830 # Is the header compilable? | |
23831 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
23832 $as_echo_n "checking $ac_header usability... " >&6; } | |
23833 cat >conftest.$ac_ext <<_ACEOF | |
23834 /* confdefs.h. */ | |
23835 _ACEOF | |
23836 cat confdefs.h >>conftest.$ac_ext | |
23837 cat >>conftest.$ac_ext <<_ACEOF | |
23838 /* end confdefs.h. */ | |
23839 $ac_includes_default | |
23840 #include <$ac_header> | |
23841 _ACEOF | |
23842 rm -f conftest.$ac_objext | |
23843 if { (ac_try="$ac_compile" | |
23844 case "(($ac_try" in | |
23845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23846 *) ac_try_echo=$ac_try;; | |
23847 esac | |
23848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23849 $as_echo "$ac_try_echo") >&5 | |
23850 (eval "$ac_compile") 2>conftest.er1 | |
23851 ac_status=$? | |
23852 grep -v '^ *+' conftest.er1 >conftest.err | |
23853 rm -f conftest.er1 | |
23854 cat conftest.err >&5 | |
23855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23856 (exit $ac_status); } && { | |
23857 test -z "$ac_c_werror_flag" || | |
23858 test ! -s conftest.err | |
23859 } && test -s conftest.$ac_objext; then | |
23860 ac_header_compiler=yes | |
23861 else | |
23862 $as_echo "$as_me: failed program was:" >&5 | |
23863 sed 's/^/| /' conftest.$ac_ext >&5 | |
23864 | |
23865 ac_header_compiler=no | |
23866 fi | |
23867 | |
23868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
23869 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
23870 $as_echo "$ac_header_compiler" >&6; } | |
23871 | |
23872 # Is the header present? | |
23873 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
23874 $as_echo_n "checking $ac_header presence... " >&6; } | |
23875 cat >conftest.$ac_ext <<_ACEOF | |
23876 /* confdefs.h. */ | |
23877 _ACEOF | |
23878 cat confdefs.h >>conftest.$ac_ext | |
23879 cat >>conftest.$ac_ext <<_ACEOF | |
23880 /* end confdefs.h. */ | |
23881 #include <$ac_header> | |
23882 _ACEOF | |
23883 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
23884 case "(($ac_try" in | |
23885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23886 *) ac_try_echo=$ac_try;; | |
23887 esac | |
23888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
23889 $as_echo "$ac_try_echo") >&5 | |
23890 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
23891 ac_status=$? | |
23892 grep -v '^ *+' conftest.er1 >conftest.err | |
23893 rm -f conftest.er1 | |
23894 cat conftest.err >&5 | |
23895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23896 (exit $ac_status); } >/dev/null && { | |
23897 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
23898 test ! -s conftest.err | |
23899 }; then | |
23900 ac_header_preproc=yes | |
23901 else | |
23902 $as_echo "$as_me: failed program was:" >&5 | |
23903 sed 's/^/| /' conftest.$ac_ext >&5 | |
23904 | |
23905 ac_header_preproc=no | |
23906 fi | |
23907 | |
23908 rm -f conftest.err conftest.$ac_ext | |
23909 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23910 $as_echo "$ac_header_preproc" >&6; } | |
23911 | |
23912 # So? What about this header? | |
23913 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
23914 yes:no: ) | |
23915 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
23916 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
23917 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
23918 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
23919 ac_header_preproc=yes | |
23920 ;; | |
23921 no:yes:* ) | |
23922 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
23923 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
23924 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
23925 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
23926 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
23927 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
23928 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
23929 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
23930 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
23931 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
23932 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
23933 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
23934 | |
23935 ;; | |
23936 esac | |
23937 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
23938 $as_echo_n "checking for $ac_header... " >&6; } | |
23939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
23940 $as_echo_n "(cached) " >&6 | |
23941 else | |
23942 eval "$as_ac_Header=\$ac_header_preproc" | |
23943 fi | |
23944 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
23945 $as_echo "$as_val"'` | |
23946 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
23947 $as_echo "$ac_res" >&6; } | |
23948 | |
23949 fi | |
23950 if test `eval 'as_val=${'$as_ac_Header'} | |
23951 $as_echo "$as_val"'` = yes; then | |
23952 cat >>confdefs.h <<_ACEOF | 12814 cat >>confdefs.h <<_ACEOF |
23953 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 12815 #define HAVE_KERBEROS_KRB_H 1 |
23954 _ACEOF | 12816 _ACEOF |
23955 | 12817 |
23956 fi | 12818 fi |
23957 | 12819 |
23958 done | 12820 done |
23964 fi | 12826 fi |
23965 | 12827 |
23966 done | 12828 done |
23967 | 12829 |
23968 fi | 12830 fi |
23969 | 12831 for ac_header in com_err.h |
23970 for ac_header in com_err.h | 12832 do : |
23971 do | 12833 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default" |
23972 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 12834 if test "x$ac_cv_header_com_err_h" = x""yes; then : |
23973 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
23974 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
23975 $as_echo_n "checking for $ac_header... " >&6; } | |
23976 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
23977 $as_echo_n "(cached) " >&6 | |
23978 fi | |
23979 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
23980 $as_echo "$as_val"'` | |
23981 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
23982 $as_echo "$ac_res" >&6; } | |
23983 else | |
23984 # Is the header compilable? | |
23985 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
23986 $as_echo_n "checking $ac_header usability... " >&6; } | |
23987 cat >conftest.$ac_ext <<_ACEOF | |
23988 /* confdefs.h. */ | |
23989 _ACEOF | |
23990 cat confdefs.h >>conftest.$ac_ext | |
23991 cat >>conftest.$ac_ext <<_ACEOF | |
23992 /* end confdefs.h. */ | |
23993 $ac_includes_default | |
23994 #include <$ac_header> | |
23995 _ACEOF | |
23996 rm -f conftest.$ac_objext | |
23997 if { (ac_try="$ac_compile" | |
23998 case "(($ac_try" in | |
23999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24000 *) ac_try_echo=$ac_try;; | |
24001 esac | |
24002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24003 $as_echo "$ac_try_echo") >&5 | |
24004 (eval "$ac_compile") 2>conftest.er1 | |
24005 ac_status=$? | |
24006 grep -v '^ *+' conftest.er1 >conftest.err | |
24007 rm -f conftest.er1 | |
24008 cat conftest.err >&5 | |
24009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24010 (exit $ac_status); } && { | |
24011 test -z "$ac_c_werror_flag" || | |
24012 test ! -s conftest.err | |
24013 } && test -s conftest.$ac_objext; then | |
24014 ac_header_compiler=yes | |
24015 else | |
24016 $as_echo "$as_me: failed program was:" >&5 | |
24017 sed 's/^/| /' conftest.$ac_ext >&5 | |
24018 | |
24019 ac_header_compiler=no | |
24020 fi | |
24021 | |
24022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
24023 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
24024 $as_echo "$ac_header_compiler" >&6; } | |
24025 | |
24026 # Is the header present? | |
24027 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
24028 $as_echo_n "checking $ac_header presence... " >&6; } | |
24029 cat >conftest.$ac_ext <<_ACEOF | |
24030 /* confdefs.h. */ | |
24031 _ACEOF | |
24032 cat confdefs.h >>conftest.$ac_ext | |
24033 cat >>conftest.$ac_ext <<_ACEOF | |
24034 /* end confdefs.h. */ | |
24035 #include <$ac_header> | |
24036 _ACEOF | |
24037 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
24038 case "(($ac_try" in | |
24039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24040 *) ac_try_echo=$ac_try;; | |
24041 esac | |
24042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24043 $as_echo "$ac_try_echo") >&5 | |
24044 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
24045 ac_status=$? | |
24046 grep -v '^ *+' conftest.er1 >conftest.err | |
24047 rm -f conftest.er1 | |
24048 cat conftest.err >&5 | |
24049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24050 (exit $ac_status); } >/dev/null && { | |
24051 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
24052 test ! -s conftest.err | |
24053 }; then | |
24054 ac_header_preproc=yes | |
24055 else | |
24056 $as_echo "$as_me: failed program was:" >&5 | |
24057 sed 's/^/| /' conftest.$ac_ext >&5 | |
24058 | |
24059 ac_header_preproc=no | |
24060 fi | |
24061 | |
24062 rm -f conftest.err conftest.$ac_ext | |
24063 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24064 $as_echo "$ac_header_preproc" >&6; } | |
24065 | |
24066 # So? What about this header? | |
24067 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
24068 yes:no: ) | |
24069 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
24070 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
24071 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
24072 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
24073 ac_header_preproc=yes | |
24074 ;; | |
24075 no:yes:* ) | |
24076 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
24077 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
24078 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
24079 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
24080 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
24081 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
24082 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
24083 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
24084 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
24085 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
24086 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
24087 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
24088 | |
24089 ;; | |
24090 esac | |
24091 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
24092 $as_echo_n "checking for $ac_header... " >&6; } | |
24093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
24094 $as_echo_n "(cached) " >&6 | |
24095 else | |
24096 eval "$as_ac_Header=\$ac_header_preproc" | |
24097 fi | |
24098 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
24099 $as_echo "$as_val"'` | |
24100 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
24101 $as_echo "$ac_res" >&6; } | |
24102 | |
24103 fi | |
24104 if test `eval 'as_val=${'$as_ac_Header'} | |
24105 $as_echo "$as_val"'` = yes; then | |
24106 cat >>confdefs.h <<_ACEOF | 12835 cat >>confdefs.h <<_ACEOF |
24107 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 12836 #define HAVE_COM_ERR_H 1 |
24108 _ACEOF | 12837 _ACEOF |
24109 | 12838 |
24110 fi | 12839 fi |
24111 | 12840 |
24112 done | 12841 done |
24119 | 12848 |
24120 | 12849 |
24121 | 12850 |
24122 # Solaris requires -lintl if you want strerror (which calls dgettext) | 12851 # Solaris requires -lintl if you want strerror (which calls dgettext) |
24123 # to return localized messages. | 12852 # to return localized messages. |
24124 | 12853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5 |
24125 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5 | |
24126 $as_echo_n "checking for dgettext in -lintl... " >&6; } | 12854 $as_echo_n "checking for dgettext in -lintl... " >&6; } |
24127 if test "${ac_cv_lib_intl_dgettext+set}" = set; then | 12855 if test "${ac_cv_lib_intl_dgettext+set}" = set; then : |
24128 $as_echo_n "(cached) " >&6 | 12856 $as_echo_n "(cached) " >&6 |
24129 else | 12857 else |
24130 ac_check_lib_save_LIBS=$LIBS | 12858 ac_check_lib_save_LIBS=$LIBS |
24131 LIBS="-lintl $LIBS" | 12859 LIBS="-lintl $LIBS" |
24132 cat >conftest.$ac_ext <<_ACEOF | 12860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
24133 /* confdefs.h. */ | |
24134 _ACEOF | |
24135 cat confdefs.h >>conftest.$ac_ext | |
24136 cat >>conftest.$ac_ext <<_ACEOF | |
24137 /* end confdefs.h. */ | 12861 /* end confdefs.h. */ |
24138 | 12862 |
24139 /* Override any GCC internal prototype to avoid an error. | 12863 /* Override any GCC internal prototype to avoid an error. |
24140 Use char because int might match the return type of a GCC | 12864 Use char because int might match the return type of a GCC |
24141 builtin and then its argument prototype would still apply. */ | 12865 builtin and then its argument prototype would still apply. */ |
24149 return dgettext (); | 12873 return dgettext (); |
24150 ; | 12874 ; |
24151 return 0; | 12875 return 0; |
24152 } | 12876 } |
24153 _ACEOF | 12877 _ACEOF |
24154 rm -f conftest.$ac_objext conftest$ac_exeext | 12878 if ac_fn_c_try_link "$LINENO"; then : |
24155 if { (ac_try="$ac_link" | |
24156 case "(($ac_try" in | |
24157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24158 *) ac_try_echo=$ac_try;; | |
24159 esac | |
24160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24161 $as_echo "$ac_try_echo") >&5 | |
24162 (eval "$ac_link") 2>conftest.er1 | |
24163 ac_status=$? | |
24164 grep -v '^ *+' conftest.er1 >conftest.err | |
24165 rm -f conftest.er1 | |
24166 cat conftest.err >&5 | |
24167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24168 (exit $ac_status); } && { | |
24169 test -z "$ac_c_werror_flag" || | |
24170 test ! -s conftest.err | |
24171 } && test -s conftest$ac_exeext && { | |
24172 test "$cross_compiling" = yes || | |
24173 $as_test_x conftest$ac_exeext | |
24174 }; then | |
24175 ac_cv_lib_intl_dgettext=yes | 12879 ac_cv_lib_intl_dgettext=yes |
24176 else | 12880 else |
24177 $as_echo "$as_me: failed program was:" >&5 | 12881 ac_cv_lib_intl_dgettext=no |
24178 sed 's/^/| /' conftest.$ac_ext >&5 | 12882 fi |
24179 | 12883 rm -f core conftest.err conftest.$ac_objext \ |
24180 ac_cv_lib_intl_dgettext=no | 12884 conftest$ac_exeext conftest.$ac_ext |
24181 fi | |
24182 | |
24183 rm -rf conftest.dSYM | |
24184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
24185 conftest$ac_exeext conftest.$ac_ext | |
24186 LIBS=$ac_check_lib_save_LIBS | 12885 LIBS=$ac_check_lib_save_LIBS |
24187 fi | 12886 fi |
24188 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5 | 12887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5 |
24189 $as_echo "$ac_cv_lib_intl_dgettext" >&6; } | 12888 $as_echo "$ac_cv_lib_intl_dgettext" >&6; } |
24190 if test $ac_cv_lib_intl_dgettext = yes; then | 12889 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then : |
24191 cat >>confdefs.h <<_ACEOF | 12890 cat >>confdefs.h <<_ACEOF |
24192 #define HAVE_LIBINTL 1 | 12891 #define HAVE_LIBINTL 1 |
24193 _ACEOF | 12892 _ACEOF |
24194 | 12893 |
24195 LIBS="-lintl $LIBS" | 12894 LIBS="-lintl $LIBS" |
24196 | 12895 |
24197 fi | 12896 fi |
24198 | 12897 |
24199 | 12898 |
24200 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5 | 12899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5 |
24201 $as_echo_n "checking whether localtime caches TZ... " >&6; } | 12900 $as_echo_n "checking whether localtime caches TZ... " >&6; } |
24202 if test "${emacs_cv_localtime_cache+set}" = set; then | 12901 if test "${emacs_cv_localtime_cache+set}" = set; then : |
24203 $as_echo_n "(cached) " >&6 | 12902 $as_echo_n "(cached) " >&6 |
24204 else | 12903 else |
24205 if test x$ac_cv_func_tzset = xyes; then | 12904 if test x$ac_cv_func_tzset = xyes; then |
24206 if test "$cross_compiling" = yes; then | 12905 if test "$cross_compiling" = yes; then : |
24207 # If we have tzset, assume the worst when cross-compiling. | 12906 # If we have tzset, assume the worst when cross-compiling. |
24208 emacs_cv_localtime_cache=yes | 12907 emacs_cv_localtime_cache=yes |
24209 else | 12908 else |
24210 cat >conftest.$ac_ext <<_ACEOF | 12909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
24211 /* confdefs.h. */ | |
24212 _ACEOF | |
24213 cat confdefs.h >>conftest.$ac_ext | |
24214 cat >>conftest.$ac_ext <<_ACEOF | |
24215 /* end confdefs.h. */ | 12910 /* end confdefs.h. */ |
24216 #include <time.h> | 12911 #include <time.h> |
24217 extern char **environ; | 12912 extern char **environ; |
24218 unset_TZ () | 12913 unset_TZ () |
24219 { | 12914 { |
24241 if (localtime (&now)->tm_hour != hour_unset) | 12936 if (localtime (&now)->tm_hour != hour_unset) |
24242 exit (1); | 12937 exit (1); |
24243 exit (0); | 12938 exit (0); |
24244 } | 12939 } |
24245 _ACEOF | 12940 _ACEOF |
24246 rm -f conftest$ac_exeext | 12941 if ac_fn_c_try_run "$LINENO"; then : |
24247 if { (ac_try="$ac_link" | |
24248 case "(($ac_try" in | |
24249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24250 *) ac_try_echo=$ac_try;; | |
24251 esac | |
24252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24253 $as_echo "$ac_try_echo") >&5 | |
24254 (eval "$ac_link") 2>&5 | |
24255 ac_status=$? | |
24256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24257 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
24258 { (case "(($ac_try" in | |
24259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24260 *) ac_try_echo=$ac_try;; | |
24261 esac | |
24262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24263 $as_echo "$ac_try_echo") >&5 | |
24264 (eval "$ac_try") 2>&5 | |
24265 ac_status=$? | |
24266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24267 (exit $ac_status); }; }; then | |
24268 emacs_cv_localtime_cache=no | 12942 emacs_cv_localtime_cache=no |
24269 else | 12943 else |
24270 $as_echo "$as_me: program exited with status $ac_status" >&5 | 12944 emacs_cv_localtime_cache=yes |
24271 $as_echo "$as_me: failed program was:" >&5 | 12945 fi |
24272 sed 's/^/| /' conftest.$ac_ext >&5 | 12946 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
24273 | 12947 conftest.$ac_objext conftest.beam conftest.$ac_ext |
24274 ( exit $ac_status ) | 12948 fi |
24275 emacs_cv_localtime_cache=yes | |
24276 fi | |
24277 rm -rf conftest.dSYM | |
24278 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
24279 fi | |
24280 | |
24281 | 12949 |
24282 else | 12950 else |
24283 # If we lack tzset, report that localtime does not cache TZ, | 12951 # If we lack tzset, report that localtime does not cache TZ, |
24284 # since we can't invalidate the cache if we don't have tzset. | 12952 # since we can't invalidate the cache if we don't have tzset. |
24285 emacs_cv_localtime_cache=no | 12953 emacs_cv_localtime_cache=no |
24286 fi | 12954 fi |
24287 fi | 12955 fi |
24288 { $as_echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5 | 12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5 |
24289 $as_echo "$emacs_cv_localtime_cache" >&6; } | 12957 $as_echo "$emacs_cv_localtime_cache" >&6; } |
24290 if test $emacs_cv_localtime_cache = yes; then | 12958 if test $emacs_cv_localtime_cache = yes; then |
24291 | 12959 |
24292 cat >>confdefs.h <<\_ACEOF | 12960 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h |
24293 #define LOCALTIME_CACHE 1 | |
24294 _ACEOF | |
24295 | 12961 |
24296 fi | 12962 fi |
24297 | 12963 |
24298 if test "x$HAVE_TIMEVAL" = xyes; then | 12964 if test "x$HAVE_TIMEVAL" = xyes; then |
24299 | 12965 for ac_func in gettimeofday |
24300 for ac_func in gettimeofday | 12966 do : |
24301 do | 12967 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" |
24302 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 12968 if test "x$ac_cv_func_gettimeofday" = x""yes; then : |
24303 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | 12969 cat >>confdefs.h <<_ACEOF |
24304 $as_echo_n "checking for $ac_func... " >&6; } | 12970 #define HAVE_GETTIMEOFDAY 1 |
24305 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | 12971 _ACEOF |
12972 | |
12973 fi | |
12974 done | |
12975 | |
12976 if test $ac_cv_func_gettimeofday = yes; then | |
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5 | |
12978 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; } | |
12979 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then : | |
24306 $as_echo_n "(cached) " >&6 | 12980 $as_echo_n "(cached) " >&6 |
24307 else | 12981 else |
24308 cat >conftest.$ac_ext <<_ACEOF | 12982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
24309 /* confdefs.h. */ | |
24310 _ACEOF | |
24311 cat confdefs.h >>conftest.$ac_ext | |
24312 cat >>conftest.$ac_ext <<_ACEOF | |
24313 /* end confdefs.h. */ | |
24314 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
24315 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24316 #define $ac_func innocuous_$ac_func | |
24317 | |
24318 /* System header to define __stub macros and hopefully few prototypes, | |
24319 which can conflict with char $ac_func (); below. | |
24320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24321 <limits.h> exists even on freestanding compilers. */ | |
24322 | |
24323 #ifdef __STDC__ | |
24324 # include <limits.h> | |
24325 #else | |
24326 # include <assert.h> | |
24327 #endif | |
24328 | |
24329 #undef $ac_func | |
24330 | |
24331 /* Override any GCC internal prototype to avoid an error. | |
24332 Use char because int might match the return type of a GCC | |
24333 builtin and then its argument prototype would still apply. */ | |
24334 #ifdef __cplusplus | |
24335 extern "C" | |
24336 #endif | |
24337 char $ac_func (); | |
24338 /* The GNU C library defines this for functions which it implements | |
24339 to always fail with ENOSYS. Some functions are actually named | |
24340 something starting with __ and the normal name is an alias. */ | |
24341 #if defined __stub_$ac_func || defined __stub___$ac_func | |
24342 choke me | |
24343 #endif | |
24344 | |
24345 int | |
24346 main () | |
24347 { | |
24348 return $ac_func (); | |
24349 ; | |
24350 return 0; | |
24351 } | |
24352 _ACEOF | |
24353 rm -f conftest.$ac_objext conftest$ac_exeext | |
24354 if { (ac_try="$ac_link" | |
24355 case "(($ac_try" in | |
24356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24357 *) ac_try_echo=$ac_try;; | |
24358 esac | |
24359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24360 $as_echo "$ac_try_echo") >&5 | |
24361 (eval "$ac_link") 2>conftest.er1 | |
24362 ac_status=$? | |
24363 grep -v '^ *+' conftest.er1 >conftest.err | |
24364 rm -f conftest.er1 | |
24365 cat conftest.err >&5 | |
24366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24367 (exit $ac_status); } && { | |
24368 test -z "$ac_c_werror_flag" || | |
24369 test ! -s conftest.err | |
24370 } && test -s conftest$ac_exeext && { | |
24371 test "$cross_compiling" = yes || | |
24372 $as_test_x conftest$ac_exeext | |
24373 }; then | |
24374 eval "$as_ac_var=yes" | |
24375 else | |
24376 $as_echo "$as_me: failed program was:" >&5 | |
24377 sed 's/^/| /' conftest.$ac_ext >&5 | |
24378 | |
24379 eval "$as_ac_var=no" | |
24380 fi | |
24381 | |
24382 rm -rf conftest.dSYM | |
24383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
24384 conftest$ac_exeext conftest.$ac_ext | |
24385 fi | |
24386 ac_res=`eval 'as_val=${'$as_ac_var'} | |
24387 $as_echo "$as_val"'` | |
24388 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
24389 $as_echo "$ac_res" >&6; } | |
24390 if test `eval 'as_val=${'$as_ac_var'} | |
24391 $as_echo "$as_val"'` = yes; then | |
24392 cat >>confdefs.h <<_ACEOF | |
24393 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
24394 _ACEOF | |
24395 | |
24396 fi | |
24397 done | |
24398 | |
24399 if test $ac_cv_func_gettimeofday = yes; then | |
24400 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5 | |
24401 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; } | |
24402 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then | |
24403 $as_echo_n "(cached) " >&6 | |
24404 else | |
24405 cat >conftest.$ac_ext <<_ACEOF | |
24406 /* confdefs.h. */ | |
24407 _ACEOF | |
24408 cat confdefs.h >>conftest.$ac_ext | |
24409 cat >>conftest.$ac_ext <<_ACEOF | |
24410 /* end confdefs.h. */ | 12983 /* end confdefs.h. */ |
24411 | 12984 |
24412 #ifdef TIME_WITH_SYS_TIME | 12985 #ifdef TIME_WITH_SYS_TIME |
24413 #include <sys/time.h> | 12986 #include <sys/time.h> |
24414 #include <time.h> | 12987 #include <time.h> |
24426 gettimeofday (&time, 0); | 12999 gettimeofday (&time, 0); |
24427 ; | 13000 ; |
24428 return 0; | 13001 return 0; |
24429 } | 13002 } |
24430 _ACEOF | 13003 _ACEOF |
24431 rm -f conftest.$ac_objext | 13004 if ac_fn_c_try_compile "$LINENO"; then : |
24432 if { (ac_try="$ac_compile" | |
24433 case "(($ac_try" in | |
24434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24435 *) ac_try_echo=$ac_try;; | |
24436 esac | |
24437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24438 $as_echo "$ac_try_echo") >&5 | |
24439 (eval "$ac_compile") 2>conftest.er1 | |
24440 ac_status=$? | |
24441 grep -v '^ *+' conftest.er1 >conftest.err | |
24442 rm -f conftest.er1 | |
24443 cat conftest.err >&5 | |
24444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24445 (exit $ac_status); } && { | |
24446 test -z "$ac_c_werror_flag" || | |
24447 test ! -s conftest.err | |
24448 } && test -s conftest.$ac_objext; then | |
24449 emacs_cv_gettimeofday_two_arguments=yes | 13005 emacs_cv_gettimeofday_two_arguments=yes |
24450 else | 13006 else |
24451 $as_echo "$as_me: failed program was:" >&5 | 13007 emacs_cv_gettimeofday_two_arguments=no |
24452 sed 's/^/| /' conftest.$ac_ext >&5 | 13008 fi |
24453 | |
24454 emacs_cv_gettimeofday_two_arguments=no | |
24455 fi | |
24456 | |
24457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 13009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
24458 fi | 13010 fi |
24459 { $as_echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5 | 13011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5 |
24460 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; } | 13012 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; } |
24461 if test $emacs_cv_gettimeofday_two_arguments = no; then | 13013 if test $emacs_cv_gettimeofday_two_arguments = no; then |
24462 | 13014 |
24463 cat >>confdefs.h <<\_ACEOF | 13015 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h |
24464 #define GETTIMEOFDAY_ONE_ARGUMENT 1 | |
24465 _ACEOF | |
24466 | 13016 |
24467 fi | 13017 fi |
24468 fi | 13018 fi |
24469 fi | 13019 fi |
24470 | 13020 |
24471 ok_so_far=yes | 13021 ok_so_far=yes |
24472 { $as_echo "$as_me:$LINENO: checking for socket" >&5 | 13022 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" |
24473 $as_echo_n "checking for socket... " >&6; } | 13023 if test "x$ac_cv_func_socket" = x""yes; then : |
24474 if test "${ac_cv_func_socket+set}" = set; then | 13024 |
24475 $as_echo_n "(cached) " >&6 | |
24476 else | |
24477 cat >conftest.$ac_ext <<_ACEOF | |
24478 /* confdefs.h. */ | |
24479 _ACEOF | |
24480 cat confdefs.h >>conftest.$ac_ext | |
24481 cat >>conftest.$ac_ext <<_ACEOF | |
24482 /* end confdefs.h. */ | |
24483 /* Define socket to an innocuous variant, in case <limits.h> declares socket. | |
24484 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24485 #define socket innocuous_socket | |
24486 | |
24487 /* System header to define __stub macros and hopefully few prototypes, | |
24488 which can conflict with char socket (); below. | |
24489 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24490 <limits.h> exists even on freestanding compilers. */ | |
24491 | |
24492 #ifdef __STDC__ | |
24493 # include <limits.h> | |
24494 #else | |
24495 # include <assert.h> | |
24496 #endif | |
24497 | |
24498 #undef socket | |
24499 | |
24500 /* Override any GCC internal prototype to avoid an error. | |
24501 Use char because int might match the return type of a GCC | |
24502 builtin and then its argument prototype would still apply. */ | |
24503 #ifdef __cplusplus | |
24504 extern "C" | |
24505 #endif | |
24506 char socket (); | |
24507 /* The GNU C library defines this for functions which it implements | |
24508 to always fail with ENOSYS. Some functions are actually named | |
24509 something starting with __ and the normal name is an alias. */ | |
24510 #if defined __stub_socket || defined __stub___socket | |
24511 choke me | |
24512 #endif | |
24513 | |
24514 int | |
24515 main () | |
24516 { | |
24517 return socket (); | |
24518 ; | |
24519 return 0; | |
24520 } | |
24521 _ACEOF | |
24522 rm -f conftest.$ac_objext conftest$ac_exeext | |
24523 if { (ac_try="$ac_link" | |
24524 case "(($ac_try" in | |
24525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24526 *) ac_try_echo=$ac_try;; | |
24527 esac | |
24528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24529 $as_echo "$ac_try_echo") >&5 | |
24530 (eval "$ac_link") 2>conftest.er1 | |
24531 ac_status=$? | |
24532 grep -v '^ *+' conftest.er1 >conftest.err | |
24533 rm -f conftest.er1 | |
24534 cat conftest.err >&5 | |
24535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24536 (exit $ac_status); } && { | |
24537 test -z "$ac_c_werror_flag" || | |
24538 test ! -s conftest.err | |
24539 } && test -s conftest$ac_exeext && { | |
24540 test "$cross_compiling" = yes || | |
24541 $as_test_x conftest$ac_exeext | |
24542 }; then | |
24543 ac_cv_func_socket=yes | |
24544 else | |
24545 $as_echo "$as_me: failed program was:" >&5 | |
24546 sed 's/^/| /' conftest.$ac_ext >&5 | |
24547 | |
24548 ac_cv_func_socket=no | |
24549 fi | |
24550 | |
24551 rm -rf conftest.dSYM | |
24552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
24553 conftest$ac_exeext conftest.$ac_ext | |
24554 fi | |
24555 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 | |
24556 $as_echo "$ac_cv_func_socket" >&6; } | |
24557 if test $ac_cv_func_socket = yes; then | |
24558 : | |
24559 else | 13025 else |
24560 ok_so_far=no | 13026 ok_so_far=no |
24561 fi | 13027 fi |
24562 | 13028 |
24563 if test $ok_so_far = yes; then | 13029 if test $ok_so_far = yes; then |
24564 if test "${ac_cv_header_netinet_in_h+set}" = set; then | 13030 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default" |
24565 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5 | 13031 if test "x$ac_cv_header_netinet_in_h" = x""yes; then : |
24566 $as_echo_n "checking for netinet/in.h... " >&6; } | 13032 |
24567 if test "${ac_cv_header_netinet_in_h+set}" = set; then | |
24568 $as_echo_n "(cached) " >&6 | |
24569 fi | |
24570 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5 | |
24571 $as_echo "$ac_cv_header_netinet_in_h" >&6; } | |
24572 else | |
24573 # Is the header compilable? | |
24574 { $as_echo "$as_me:$LINENO: checking netinet/in.h usability" >&5 | |
24575 $as_echo_n "checking netinet/in.h usability... " >&6; } | |
24576 cat >conftest.$ac_ext <<_ACEOF | |
24577 /* confdefs.h. */ | |
24578 _ACEOF | |
24579 cat confdefs.h >>conftest.$ac_ext | |
24580 cat >>conftest.$ac_ext <<_ACEOF | |
24581 /* end confdefs.h. */ | |
24582 $ac_includes_default | |
24583 #include <netinet/in.h> | |
24584 _ACEOF | |
24585 rm -f conftest.$ac_objext | |
24586 if { (ac_try="$ac_compile" | |
24587 case "(($ac_try" in | |
24588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24589 *) ac_try_echo=$ac_try;; | |
24590 esac | |
24591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24592 $as_echo "$ac_try_echo") >&5 | |
24593 (eval "$ac_compile") 2>conftest.er1 | |
24594 ac_status=$? | |
24595 grep -v '^ *+' conftest.er1 >conftest.err | |
24596 rm -f conftest.er1 | |
24597 cat conftest.err >&5 | |
24598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24599 (exit $ac_status); } && { | |
24600 test -z "$ac_c_werror_flag" || | |
24601 test ! -s conftest.err | |
24602 } && test -s conftest.$ac_objext; then | |
24603 ac_header_compiler=yes | |
24604 else | |
24605 $as_echo "$as_me: failed program was:" >&5 | |
24606 sed 's/^/| /' conftest.$ac_ext >&5 | |
24607 | |
24608 ac_header_compiler=no | |
24609 fi | |
24610 | |
24611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
24612 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
24613 $as_echo "$ac_header_compiler" >&6; } | |
24614 | |
24615 # Is the header present? | |
24616 { $as_echo "$as_me:$LINENO: checking netinet/in.h presence" >&5 | |
24617 $as_echo_n "checking netinet/in.h presence... " >&6; } | |
24618 cat >conftest.$ac_ext <<_ACEOF | |
24619 /* confdefs.h. */ | |
24620 _ACEOF | |
24621 cat confdefs.h >>conftest.$ac_ext | |
24622 cat >>conftest.$ac_ext <<_ACEOF | |
24623 /* end confdefs.h. */ | |
24624 #include <netinet/in.h> | |
24625 _ACEOF | |
24626 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
24627 case "(($ac_try" in | |
24628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24629 *) ac_try_echo=$ac_try;; | |
24630 esac | |
24631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24632 $as_echo "$ac_try_echo") >&5 | |
24633 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
24634 ac_status=$? | |
24635 grep -v '^ *+' conftest.er1 >conftest.err | |
24636 rm -f conftest.er1 | |
24637 cat conftest.err >&5 | |
24638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24639 (exit $ac_status); } >/dev/null && { | |
24640 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
24641 test ! -s conftest.err | |
24642 }; then | |
24643 ac_header_preproc=yes | |
24644 else | |
24645 $as_echo "$as_me: failed program was:" >&5 | |
24646 sed 's/^/| /' conftest.$ac_ext >&5 | |
24647 | |
24648 ac_header_preproc=no | |
24649 fi | |
24650 | |
24651 rm -f conftest.err conftest.$ac_ext | |
24652 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24653 $as_echo "$ac_header_preproc" >&6; } | |
24654 | |
24655 # So? What about this header? | |
24656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
24657 yes:no: ) | |
24658 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
24659 $as_echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
24660 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5 | |
24661 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;} | |
24662 ac_header_preproc=yes | |
24663 ;; | |
24664 no:yes:* ) | |
24665 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5 | |
24666 $as_echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;} | |
24667 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5 | |
24668 $as_echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;} | |
24669 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5 | |
24670 $as_echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;} | |
24671 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5 | |
24672 $as_echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
24673 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5 | |
24674 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;} | |
24675 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5 | |
24676 $as_echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;} | |
24677 | |
24678 ;; | |
24679 esac | |
24680 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5 | |
24681 $as_echo_n "checking for netinet/in.h... " >&6; } | |
24682 if test "${ac_cv_header_netinet_in_h+set}" = set; then | |
24683 $as_echo_n "(cached) " >&6 | |
24684 else | |
24685 ac_cv_header_netinet_in_h=$ac_header_preproc | |
24686 fi | |
24687 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5 | |
24688 $as_echo "$ac_cv_header_netinet_in_h" >&6; } | |
24689 | |
24690 fi | |
24691 if test $ac_cv_header_netinet_in_h = yes; then | |
24692 : | |
24693 else | 13033 else |
24694 ok_so_far=no | 13034 ok_so_far=no |
24695 fi | 13035 fi |
24696 | 13036 |
24697 | 13037 |
24698 fi | 13038 fi |
24699 if test $ok_so_far = yes; then | 13039 if test $ok_so_far = yes; then |
24700 if test "${ac_cv_header_arpa_inet_h+set}" = set; then | 13040 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default" |
24701 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 | 13041 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then : |
24702 $as_echo_n "checking for arpa/inet.h... " >&6; } | 13042 |
24703 if test "${ac_cv_header_arpa_inet_h+set}" = set; then | |
24704 $as_echo_n "(cached) " >&6 | |
24705 fi | |
24706 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5 | |
24707 $as_echo "$ac_cv_header_arpa_inet_h" >&6; } | |
24708 else | |
24709 # Is the header compilable? | |
24710 { $as_echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5 | |
24711 $as_echo_n "checking arpa/inet.h usability... " >&6; } | |
24712 cat >conftest.$ac_ext <<_ACEOF | |
24713 /* confdefs.h. */ | |
24714 _ACEOF | |
24715 cat confdefs.h >>conftest.$ac_ext | |
24716 cat >>conftest.$ac_ext <<_ACEOF | |
24717 /* end confdefs.h. */ | |
24718 $ac_includes_default | |
24719 #include <arpa/inet.h> | |
24720 _ACEOF | |
24721 rm -f conftest.$ac_objext | |
24722 if { (ac_try="$ac_compile" | |
24723 case "(($ac_try" in | |
24724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24725 *) ac_try_echo=$ac_try;; | |
24726 esac | |
24727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24728 $as_echo "$ac_try_echo") >&5 | |
24729 (eval "$ac_compile") 2>conftest.er1 | |
24730 ac_status=$? | |
24731 grep -v '^ *+' conftest.er1 >conftest.err | |
24732 rm -f conftest.er1 | |
24733 cat conftest.err >&5 | |
24734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24735 (exit $ac_status); } && { | |
24736 test -z "$ac_c_werror_flag" || | |
24737 test ! -s conftest.err | |
24738 } && test -s conftest.$ac_objext; then | |
24739 ac_header_compiler=yes | |
24740 else | |
24741 $as_echo "$as_me: failed program was:" >&5 | |
24742 sed 's/^/| /' conftest.$ac_ext >&5 | |
24743 | |
24744 ac_header_compiler=no | |
24745 fi | |
24746 | |
24747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
24748 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
24749 $as_echo "$ac_header_compiler" >&6; } | |
24750 | |
24751 # Is the header present? | |
24752 { $as_echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5 | |
24753 $as_echo_n "checking arpa/inet.h presence... " >&6; } | |
24754 cat >conftest.$ac_ext <<_ACEOF | |
24755 /* confdefs.h. */ | |
24756 _ACEOF | |
24757 cat confdefs.h >>conftest.$ac_ext | |
24758 cat >>conftest.$ac_ext <<_ACEOF | |
24759 /* end confdefs.h. */ | |
24760 #include <arpa/inet.h> | |
24761 _ACEOF | |
24762 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
24763 case "(($ac_try" in | |
24764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24765 *) ac_try_echo=$ac_try;; | |
24766 esac | |
24767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24768 $as_echo "$ac_try_echo") >&5 | |
24769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
24770 ac_status=$? | |
24771 grep -v '^ *+' conftest.er1 >conftest.err | |
24772 rm -f conftest.er1 | |
24773 cat conftest.err >&5 | |
24774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24775 (exit $ac_status); } >/dev/null && { | |
24776 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
24777 test ! -s conftest.err | |
24778 }; then | |
24779 ac_header_preproc=yes | |
24780 else | |
24781 $as_echo "$as_me: failed program was:" >&5 | |
24782 sed 's/^/| /' conftest.$ac_ext >&5 | |
24783 | |
24784 ac_header_preproc=no | |
24785 fi | |
24786 | |
24787 rm -f conftest.err conftest.$ac_ext | |
24788 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24789 $as_echo "$ac_header_preproc" >&6; } | |
24790 | |
24791 # So? What about this header? | |
24792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
24793 yes:no: ) | |
24794 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
24795 $as_echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
24796 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5 | |
24797 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;} | |
24798 ac_header_preproc=yes | |
24799 ;; | |
24800 no:yes:* ) | |
24801 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5 | |
24802 $as_echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;} | |
24803 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5 | |
24804 $as_echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;} | |
24805 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5 | |
24806 $as_echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;} | |
24807 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5 | |
24808 $as_echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
24809 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5 | |
24810 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;} | |
24811 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5 | |
24812 $as_echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;} | |
24813 | |
24814 ;; | |
24815 esac | |
24816 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 | |
24817 $as_echo_n "checking for arpa/inet.h... " >&6; } | |
24818 if test "${ac_cv_header_arpa_inet_h+set}" = set; then | |
24819 $as_echo_n "(cached) " >&6 | |
24820 else | |
24821 ac_cv_header_arpa_inet_h=$ac_header_preproc | |
24822 fi | |
24823 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5 | |
24824 $as_echo "$ac_cv_header_arpa_inet_h" >&6; } | |
24825 | |
24826 fi | |
24827 if test $ac_cv_header_arpa_inet_h = yes; then | |
24828 : | |
24829 else | 13043 else |
24830 ok_so_far=no | 13044 ok_so_far=no |
24831 fi | 13045 fi |
24832 | 13046 |
24833 | 13047 |
24834 fi | 13048 fi |
24835 if test $ok_so_far = yes; then | 13049 if test $ok_so_far = yes; then |
24836 | 13050 |
24837 cat >>confdefs.h <<\_ACEOF | 13051 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h |
24838 #define HAVE_INET_SOCKETS 1 | 13052 |
24839 _ACEOF | 13053 fi |
24840 | |
24841 fi | |
24842 | |
24843 | 13054 |
24844 for ac_header in sys/ioctl.h | 13055 for ac_header in sys/ioctl.h |
24845 do | 13056 do : |
24846 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 13057 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" |
24847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 13058 if test "x$ac_cv_header_sys_ioctl_h" = x""yes; then : |
24848 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
24849 $as_echo_n "checking for $ac_header... " >&6; } | |
24850 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
24851 $as_echo_n "(cached) " >&6 | |
24852 fi | |
24853 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
24854 $as_echo "$as_val"'` | |
24855 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
24856 $as_echo "$ac_res" >&6; } | |
24857 else | |
24858 # Is the header compilable? | |
24859 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
24860 $as_echo_n "checking $ac_header usability... " >&6; } | |
24861 cat >conftest.$ac_ext <<_ACEOF | |
24862 /* confdefs.h. */ | |
24863 _ACEOF | |
24864 cat confdefs.h >>conftest.$ac_ext | |
24865 cat >>conftest.$ac_ext <<_ACEOF | |
24866 /* end confdefs.h. */ | |
24867 $ac_includes_default | |
24868 #include <$ac_header> | |
24869 _ACEOF | |
24870 rm -f conftest.$ac_objext | |
24871 if { (ac_try="$ac_compile" | |
24872 case "(($ac_try" in | |
24873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24874 *) ac_try_echo=$ac_try;; | |
24875 esac | |
24876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24877 $as_echo "$ac_try_echo") >&5 | |
24878 (eval "$ac_compile") 2>conftest.er1 | |
24879 ac_status=$? | |
24880 grep -v '^ *+' conftest.er1 >conftest.err | |
24881 rm -f conftest.er1 | |
24882 cat conftest.err >&5 | |
24883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24884 (exit $ac_status); } && { | |
24885 test -z "$ac_c_werror_flag" || | |
24886 test ! -s conftest.err | |
24887 } && test -s conftest.$ac_objext; then | |
24888 ac_header_compiler=yes | |
24889 else | |
24890 $as_echo "$as_me: failed program was:" >&5 | |
24891 sed 's/^/| /' conftest.$ac_ext >&5 | |
24892 | |
24893 ac_header_compiler=no | |
24894 fi | |
24895 | |
24896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
24897 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
24898 $as_echo "$ac_header_compiler" >&6; } | |
24899 | |
24900 # Is the header present? | |
24901 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
24902 $as_echo_n "checking $ac_header presence... " >&6; } | |
24903 cat >conftest.$ac_ext <<_ACEOF | |
24904 /* confdefs.h. */ | |
24905 _ACEOF | |
24906 cat confdefs.h >>conftest.$ac_ext | |
24907 cat >>conftest.$ac_ext <<_ACEOF | |
24908 /* end confdefs.h. */ | |
24909 #include <$ac_header> | |
24910 _ACEOF | |
24911 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
24912 case "(($ac_try" in | |
24913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24914 *) ac_try_echo=$ac_try;; | |
24915 esac | |
24916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
24917 $as_echo "$ac_try_echo") >&5 | |
24918 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
24919 ac_status=$? | |
24920 grep -v '^ *+' conftest.er1 >conftest.err | |
24921 rm -f conftest.er1 | |
24922 cat conftest.err >&5 | |
24923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24924 (exit $ac_status); } >/dev/null && { | |
24925 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
24926 test ! -s conftest.err | |
24927 }; then | |
24928 ac_header_preproc=yes | |
24929 else | |
24930 $as_echo "$as_me: failed program was:" >&5 | |
24931 sed 's/^/| /' conftest.$ac_ext >&5 | |
24932 | |
24933 ac_header_preproc=no | |
24934 fi | |
24935 | |
24936 rm -f conftest.err conftest.$ac_ext | |
24937 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24938 $as_echo "$ac_header_preproc" >&6; } | |
24939 | |
24940 # So? What about this header? | |
24941 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
24942 yes:no: ) | |
24943 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
24944 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
24945 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
24946 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
24947 ac_header_preproc=yes | |
24948 ;; | |
24949 no:yes:* ) | |
24950 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
24951 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
24952 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
24953 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
24954 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
24955 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
24956 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
24957 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
24958 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
24959 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
24960 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
24961 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
24962 | |
24963 ;; | |
24964 esac | |
24965 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
24966 $as_echo_n "checking for $ac_header... " >&6; } | |
24967 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
24968 $as_echo_n "(cached) " >&6 | |
24969 else | |
24970 eval "$as_ac_Header=\$ac_header_preproc" | |
24971 fi | |
24972 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
24973 $as_echo "$as_val"'` | |
24974 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
24975 $as_echo "$ac_res" >&6; } | |
24976 | |
24977 fi | |
24978 if test `eval 'as_val=${'$as_ac_Header'} | |
24979 $as_echo "$as_val"'` = yes; then | |
24980 cat >>confdefs.h <<_ACEOF | 13059 cat >>confdefs.h <<_ACEOF |
24981 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 13060 #define HAVE_SYS_IOCTL_H 1 |
24982 _ACEOF | 13061 _ACEOF |
24983 | 13062 |
24984 fi | 13063 fi |
24985 | 13064 |
24986 done | 13065 done |
24987 | 13066 |
24988 | 13067 |
24989 if test -f /usr/lpp/X11/bin/smt.exp; then | 13068 if test -f /usr/lpp/X11/bin/smt.exp; then |
24990 | 13069 |
24991 cat >>confdefs.h <<\_ACEOF | 13070 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h |
24992 #define HAVE_AIX_SMT_EXP 1 | 13071 |
24993 _ACEOF | 13072 fi |
24994 | 13073 |
24995 fi | 13074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5 |
24996 | |
24997 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5 | |
24998 $as_echo_n "checking whether system supports dynamic ptys... " >&6; } | 13075 $as_echo_n "checking whether system supports dynamic ptys... " >&6; } |
24999 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then | 13076 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then |
25000 { $as_echo "$as_me:$LINENO: result: yes" >&5 | 13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
25001 $as_echo "yes" >&6; } | 13078 $as_echo "yes" >&6; } |
25002 | 13079 |
25003 cat >>confdefs.h <<\_ACEOF | 13080 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h |
25004 #define HAVE_DEV_PTMX 1 | 13081 |
25005 _ACEOF | 13082 else |
25006 | 13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
25007 else | |
25008 { $as_echo "$as_me:$LINENO: result: no" >&5 | |
25009 $as_echo "no" >&6; } | 13084 $as_echo "no" >&6; } |
25010 fi | 13085 fi |
25011 | 13086 |
25012 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5 | 13087 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
25013 $as_echo_n "checking for pid_t... " >&6; } | 13088 if test "x$ac_cv_type_pid_t" = x""yes; then : |
25014 if test "${ac_cv_type_pid_t+set}" = set; then | 13089 |
13090 else | |
13091 | |
13092 cat >>confdefs.h <<_ACEOF | |
13093 #define pid_t int | |
13094 _ACEOF | |
13095 | |
13096 fi | |
13097 | |
13098 for ac_header in vfork.h | |
13099 do : | |
13100 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" | |
13101 if test "x$ac_cv_header_vfork_h" = x""yes; then : | |
13102 cat >>confdefs.h <<_ACEOF | |
13103 #define HAVE_VFORK_H 1 | |
13104 _ACEOF | |
13105 | |
13106 fi | |
13107 | |
13108 done | |
13109 | |
13110 for ac_func in fork vfork | |
13111 do : | |
13112 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13113 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
13114 eval as_val=\$$as_ac_var | |
13115 if test "x$as_val" = x""yes; then : | |
13116 cat >>confdefs.h <<_ACEOF | |
13117 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13118 _ACEOF | |
13119 | |
13120 fi | |
13121 done | |
13122 | |
13123 if test "x$ac_cv_func_fork" = xyes; then | |
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 | |
13125 $as_echo_n "checking for working fork... " >&6; } | |
13126 if test "${ac_cv_func_fork_works+set}" = set; then : | |
25015 $as_echo_n "(cached) " >&6 | 13127 $as_echo_n "(cached) " >&6 |
25016 else | 13128 else |
25017 ac_cv_type_pid_t=no | 13129 if test "$cross_compiling" = yes; then : |
25018 cat >conftest.$ac_ext <<_ACEOF | 13130 ac_cv_func_fork_works=cross |
25019 /* confdefs.h. */ | 13131 else |
25020 _ACEOF | 13132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25021 cat confdefs.h >>conftest.$ac_ext | |
25022 cat >>conftest.$ac_ext <<_ACEOF | |
25023 /* end confdefs.h. */ | 13133 /* end confdefs.h. */ |
25024 $ac_includes_default | 13134 $ac_includes_default |
25025 int | 13135 int |
25026 main () | 13136 main () |
25027 { | 13137 { |
25028 if (sizeof (pid_t)) | 13138 |
25029 return 0; | 13139 /* By Ruediger Kuhlmann. */ |
13140 return fork () < 0; | |
13141 | |
25030 ; | 13142 ; |
25031 return 0; | 13143 return 0; |
25032 } | 13144 } |
25033 _ACEOF | 13145 _ACEOF |
25034 rm -f conftest.$ac_objext | 13146 if ac_fn_c_try_run "$LINENO"; then : |
25035 if { (ac_try="$ac_compile" | |
25036 case "(($ac_try" in | |
25037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25038 *) ac_try_echo=$ac_try;; | |
25039 esac | |
25040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25041 $as_echo "$ac_try_echo") >&5 | |
25042 (eval "$ac_compile") 2>conftest.er1 | |
25043 ac_status=$? | |
25044 grep -v '^ *+' conftest.er1 >conftest.err | |
25045 rm -f conftest.er1 | |
25046 cat conftest.err >&5 | |
25047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25048 (exit $ac_status); } && { | |
25049 test -z "$ac_c_werror_flag" || | |
25050 test ! -s conftest.err | |
25051 } && test -s conftest.$ac_objext; then | |
25052 cat >conftest.$ac_ext <<_ACEOF | |
25053 /* confdefs.h. */ | |
25054 _ACEOF | |
25055 cat confdefs.h >>conftest.$ac_ext | |
25056 cat >>conftest.$ac_ext <<_ACEOF | |
25057 /* end confdefs.h. */ | |
25058 $ac_includes_default | |
25059 int | |
25060 main () | |
25061 { | |
25062 if (sizeof ((pid_t))) | |
25063 return 0; | |
25064 ; | |
25065 return 0; | |
25066 } | |
25067 _ACEOF | |
25068 rm -f conftest.$ac_objext | |
25069 if { (ac_try="$ac_compile" | |
25070 case "(($ac_try" in | |
25071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25072 *) ac_try_echo=$ac_try;; | |
25073 esac | |
25074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25075 $as_echo "$ac_try_echo") >&5 | |
25076 (eval "$ac_compile") 2>conftest.er1 | |
25077 ac_status=$? | |
25078 grep -v '^ *+' conftest.er1 >conftest.err | |
25079 rm -f conftest.er1 | |
25080 cat conftest.err >&5 | |
25081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25082 (exit $ac_status); } && { | |
25083 test -z "$ac_c_werror_flag" || | |
25084 test ! -s conftest.err | |
25085 } && test -s conftest.$ac_objext; then | |
25086 : | |
25087 else | |
25088 $as_echo "$as_me: failed program was:" >&5 | |
25089 sed 's/^/| /' conftest.$ac_ext >&5 | |
25090 | |
25091 ac_cv_type_pid_t=yes | |
25092 fi | |
25093 | |
25094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
25095 else | |
25096 $as_echo "$as_me: failed program was:" >&5 | |
25097 sed 's/^/| /' conftest.$ac_ext >&5 | |
25098 | |
25099 | |
25100 fi | |
25101 | |
25102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
25103 fi | |
25104 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | |
25105 $as_echo "$ac_cv_type_pid_t" >&6; } | |
25106 if test $ac_cv_type_pid_t = yes; then | |
25107 : | |
25108 else | |
25109 | |
25110 cat >>confdefs.h <<_ACEOF | |
25111 #define pid_t int | |
25112 _ACEOF | |
25113 | |
25114 fi | |
25115 | |
25116 | |
25117 for ac_header in vfork.h | |
25118 do | |
25119 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
25120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
25121 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
25122 $as_echo_n "checking for $ac_header... " >&6; } | |
25123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
25124 $as_echo_n "(cached) " >&6 | |
25125 fi | |
25126 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
25127 $as_echo "$as_val"'` | |
25128 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
25129 $as_echo "$ac_res" >&6; } | |
25130 else | |
25131 # Is the header compilable? | |
25132 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
25133 $as_echo_n "checking $ac_header usability... " >&6; } | |
25134 cat >conftest.$ac_ext <<_ACEOF | |
25135 /* confdefs.h. */ | |
25136 _ACEOF | |
25137 cat confdefs.h >>conftest.$ac_ext | |
25138 cat >>conftest.$ac_ext <<_ACEOF | |
25139 /* end confdefs.h. */ | |
25140 $ac_includes_default | |
25141 #include <$ac_header> | |
25142 _ACEOF | |
25143 rm -f conftest.$ac_objext | |
25144 if { (ac_try="$ac_compile" | |
25145 case "(($ac_try" in | |
25146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25147 *) ac_try_echo=$ac_try;; | |
25148 esac | |
25149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25150 $as_echo "$ac_try_echo") >&5 | |
25151 (eval "$ac_compile") 2>conftest.er1 | |
25152 ac_status=$? | |
25153 grep -v '^ *+' conftest.er1 >conftest.err | |
25154 rm -f conftest.er1 | |
25155 cat conftest.err >&5 | |
25156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25157 (exit $ac_status); } && { | |
25158 test -z "$ac_c_werror_flag" || | |
25159 test ! -s conftest.err | |
25160 } && test -s conftest.$ac_objext; then | |
25161 ac_header_compiler=yes | |
25162 else | |
25163 $as_echo "$as_me: failed program was:" >&5 | |
25164 sed 's/^/| /' conftest.$ac_ext >&5 | |
25165 | |
25166 ac_header_compiler=no | |
25167 fi | |
25168 | |
25169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
25170 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
25171 $as_echo "$ac_header_compiler" >&6; } | |
25172 | |
25173 # Is the header present? | |
25174 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
25175 $as_echo_n "checking $ac_header presence... " >&6; } | |
25176 cat >conftest.$ac_ext <<_ACEOF | |
25177 /* confdefs.h. */ | |
25178 _ACEOF | |
25179 cat confdefs.h >>conftest.$ac_ext | |
25180 cat >>conftest.$ac_ext <<_ACEOF | |
25181 /* end confdefs.h. */ | |
25182 #include <$ac_header> | |
25183 _ACEOF | |
25184 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
25185 case "(($ac_try" in | |
25186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25187 *) ac_try_echo=$ac_try;; | |
25188 esac | |
25189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25190 $as_echo "$ac_try_echo") >&5 | |
25191 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
25192 ac_status=$? | |
25193 grep -v '^ *+' conftest.er1 >conftest.err | |
25194 rm -f conftest.er1 | |
25195 cat conftest.err >&5 | |
25196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25197 (exit $ac_status); } >/dev/null && { | |
25198 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
25199 test ! -s conftest.err | |
25200 }; then | |
25201 ac_header_preproc=yes | |
25202 else | |
25203 $as_echo "$as_me: failed program was:" >&5 | |
25204 sed 's/^/| /' conftest.$ac_ext >&5 | |
25205 | |
25206 ac_header_preproc=no | |
25207 fi | |
25208 | |
25209 rm -f conftest.err conftest.$ac_ext | |
25210 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
25211 $as_echo "$ac_header_preproc" >&6; } | |
25212 | |
25213 # So? What about this header? | |
25214 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
25215 yes:no: ) | |
25216 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
25217 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
25218 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
25219 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
25220 ac_header_preproc=yes | |
25221 ;; | |
25222 no:yes:* ) | |
25223 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
25224 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
25225 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
25226 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
25227 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
25228 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
25229 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
25230 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
25231 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
25232 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
25233 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
25234 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
25235 | |
25236 ;; | |
25237 esac | |
25238 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
25239 $as_echo_n "checking for $ac_header... " >&6; } | |
25240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
25241 $as_echo_n "(cached) " >&6 | |
25242 else | |
25243 eval "$as_ac_Header=\$ac_header_preproc" | |
25244 fi | |
25245 ac_res=`eval 'as_val=${'$as_ac_Header'} | |
25246 $as_echo "$as_val"'` | |
25247 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
25248 $as_echo "$ac_res" >&6; } | |
25249 | |
25250 fi | |
25251 if test `eval 'as_val=${'$as_ac_Header'} | |
25252 $as_echo "$as_val"'` = yes; then | |
25253 cat >>confdefs.h <<_ACEOF | |
25254 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
25255 _ACEOF | |
25256 | |
25257 fi | |
25258 | |
25259 done | |
25260 | |
25261 | |
25262 | |
25263 for ac_func in fork vfork | |
25264 do | |
25265 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
25266 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
25267 $as_echo_n "checking for $ac_func... " >&6; } | |
25268 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
25269 $as_echo_n "(cached) " >&6 | |
25270 else | |
25271 cat >conftest.$ac_ext <<_ACEOF | |
25272 /* confdefs.h. */ | |
25273 _ACEOF | |
25274 cat confdefs.h >>conftest.$ac_ext | |
25275 cat >>conftest.$ac_ext <<_ACEOF | |
25276 /* end confdefs.h. */ | |
25277 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
25278 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25279 #define $ac_func innocuous_$ac_func | |
25280 | |
25281 /* System header to define __stub macros and hopefully few prototypes, | |
25282 which can conflict with char $ac_func (); below. | |
25283 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25284 <limits.h> exists even on freestanding compilers. */ | |
25285 | |
25286 #ifdef __STDC__ | |
25287 # include <limits.h> | |
25288 #else | |
25289 # include <assert.h> | |
25290 #endif | |
25291 | |
25292 #undef $ac_func | |
25293 | |
25294 /* Override any GCC internal prototype to avoid an error. | |
25295 Use char because int might match the return type of a GCC | |
25296 builtin and then its argument prototype would still apply. */ | |
25297 #ifdef __cplusplus | |
25298 extern "C" | |
25299 #endif | |
25300 char $ac_func (); | |
25301 /* The GNU C library defines this for functions which it implements | |
25302 to always fail with ENOSYS. Some functions are actually named | |
25303 something starting with __ and the normal name is an alias. */ | |
25304 #if defined __stub_$ac_func || defined __stub___$ac_func | |
25305 choke me | |
25306 #endif | |
25307 | |
25308 int | |
25309 main () | |
25310 { | |
25311 return $ac_func (); | |
25312 ; | |
25313 return 0; | |
25314 } | |
25315 _ACEOF | |
25316 rm -f conftest.$ac_objext conftest$ac_exeext | |
25317 if { (ac_try="$ac_link" | |
25318 case "(($ac_try" in | |
25319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25320 *) ac_try_echo=$ac_try;; | |
25321 esac | |
25322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25323 $as_echo "$ac_try_echo") >&5 | |
25324 (eval "$ac_link") 2>conftest.er1 | |
25325 ac_status=$? | |
25326 grep -v '^ *+' conftest.er1 >conftest.err | |
25327 rm -f conftest.er1 | |
25328 cat conftest.err >&5 | |
25329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25330 (exit $ac_status); } && { | |
25331 test -z "$ac_c_werror_flag" || | |
25332 test ! -s conftest.err | |
25333 } && test -s conftest$ac_exeext && { | |
25334 test "$cross_compiling" = yes || | |
25335 $as_test_x conftest$ac_exeext | |
25336 }; then | |
25337 eval "$as_ac_var=yes" | |
25338 else | |
25339 $as_echo "$as_me: failed program was:" >&5 | |
25340 sed 's/^/| /' conftest.$ac_ext >&5 | |
25341 | |
25342 eval "$as_ac_var=no" | |
25343 fi | |
25344 | |
25345 rm -rf conftest.dSYM | |
25346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
25347 conftest$ac_exeext conftest.$ac_ext | |
25348 fi | |
25349 ac_res=`eval 'as_val=${'$as_ac_var'} | |
25350 $as_echo "$as_val"'` | |
25351 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
25352 $as_echo "$ac_res" >&6; } | |
25353 if test `eval 'as_val=${'$as_ac_var'} | |
25354 $as_echo "$as_val"'` = yes; then | |
25355 cat >>confdefs.h <<_ACEOF | |
25356 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
25357 _ACEOF | |
25358 | |
25359 fi | |
25360 done | |
25361 | |
25362 if test "x$ac_cv_func_fork" = xyes; then | |
25363 { $as_echo "$as_me:$LINENO: checking for working fork" >&5 | |
25364 $as_echo_n "checking for working fork... " >&6; } | |
25365 if test "${ac_cv_func_fork_works+set}" = set; then | |
25366 $as_echo_n "(cached) " >&6 | |
25367 else | |
25368 if test "$cross_compiling" = yes; then | |
25369 ac_cv_func_fork_works=cross | |
25370 else | |
25371 cat >conftest.$ac_ext <<_ACEOF | |
25372 /* confdefs.h. */ | |
25373 _ACEOF | |
25374 cat confdefs.h >>conftest.$ac_ext | |
25375 cat >>conftest.$ac_ext <<_ACEOF | |
25376 /* end confdefs.h. */ | |
25377 $ac_includes_default | |
25378 int | |
25379 main () | |
25380 { | |
25381 | |
25382 /* By Ruediger Kuhlmann. */ | |
25383 return fork () < 0; | |
25384 | |
25385 ; | |
25386 return 0; | |
25387 } | |
25388 _ACEOF | |
25389 rm -f conftest$ac_exeext | |
25390 if { (ac_try="$ac_link" | |
25391 case "(($ac_try" in | |
25392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25393 *) ac_try_echo=$ac_try;; | |
25394 esac | |
25395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25396 $as_echo "$ac_try_echo") >&5 | |
25397 (eval "$ac_link") 2>&5 | |
25398 ac_status=$? | |
25399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25400 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
25401 { (case "(($ac_try" in | |
25402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25403 *) ac_try_echo=$ac_try;; | |
25404 esac | |
25405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25406 $as_echo "$ac_try_echo") >&5 | |
25407 (eval "$ac_try") 2>&5 | |
25408 ac_status=$? | |
25409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25410 (exit $ac_status); }; }; then | |
25411 ac_cv_func_fork_works=yes | 13147 ac_cv_func_fork_works=yes |
25412 else | 13148 else |
25413 $as_echo "$as_me: program exited with status $ac_status" >&5 | 13149 ac_cv_func_fork_works=no |
25414 $as_echo "$as_me: failed program was:" >&5 | 13150 fi |
25415 sed 's/^/| /' conftest.$ac_ext >&5 | 13151 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
25416 | 13152 conftest.$ac_objext conftest.beam conftest.$ac_ext |
25417 ( exit $ac_status ) | 13153 fi |
25418 ac_cv_func_fork_works=no | 13154 |
25419 fi | 13155 fi |
25420 rm -rf conftest.dSYM | 13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 |
25421 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
25422 fi | |
25423 | |
25424 | |
25425 fi | |
25426 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 | |
25427 $as_echo "$ac_cv_func_fork_works" >&6; } | 13157 $as_echo "$ac_cv_func_fork_works" >&6; } |
25428 | 13158 |
25429 else | 13159 else |
25430 ac_cv_func_fork_works=$ac_cv_func_fork | 13160 ac_cv_func_fork_works=$ac_cv_func_fork |
25431 fi | 13161 fi |
25437 ;; | 13167 ;; |
25438 *) | 13168 *) |
25439 ac_cv_func_fork_works=yes | 13169 ac_cv_func_fork_works=yes |
25440 ;; | 13170 ;; |
25441 esac | 13171 esac |
25442 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 | 13172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
25443 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | 13173 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} |
25444 fi | 13174 fi |
25445 ac_cv_func_vfork_works=$ac_cv_func_vfork | 13175 ac_cv_func_vfork_works=$ac_cv_func_vfork |
25446 if test "x$ac_cv_func_vfork" = xyes; then | 13176 if test "x$ac_cv_func_vfork" = xyes; then |
25447 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5 | 13177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 |
25448 $as_echo_n "checking for working vfork... " >&6; } | 13178 $as_echo_n "checking for working vfork... " >&6; } |
25449 if test "${ac_cv_func_vfork_works+set}" = set; then | 13179 if test "${ac_cv_func_vfork_works+set}" = set; then : |
25450 $as_echo_n "(cached) " >&6 | 13180 $as_echo_n "(cached) " >&6 |
25451 else | 13181 else |
25452 if test "$cross_compiling" = yes; then | 13182 if test "$cross_compiling" = yes; then : |
25453 ac_cv_func_vfork_works=cross | 13183 ac_cv_func_vfork_works=cross |
25454 else | 13184 else |
25455 cat >conftest.$ac_ext <<_ACEOF | 13185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25456 /* confdefs.h. */ | |
25457 _ACEOF | |
25458 cat confdefs.h >>conftest.$ac_ext | |
25459 cat >>conftest.$ac_ext <<_ACEOF | |
25460 /* end confdefs.h. */ | 13186 /* end confdefs.h. */ |
25461 /* Thanks to Paul Eggert for this test. */ | 13187 /* Thanks to Paul Eggert for this test. */ |
25462 $ac_includes_default | 13188 $ac_includes_default |
25463 #include <sys/wait.h> | 13189 #include <sys/wait.h> |
25464 #ifdef HAVE_VFORK_H | 13190 #ifdef HAVE_VFORK_H |
25546 || fstat(fileno(stdout), &st) != 0 | 13272 || fstat(fileno(stdout), &st) != 0 |
25547 ); | 13273 ); |
25548 } | 13274 } |
25549 } | 13275 } |
25550 _ACEOF | 13276 _ACEOF |
25551 rm -f conftest$ac_exeext | 13277 if ac_fn_c_try_run "$LINENO"; then : |
25552 if { (ac_try="$ac_link" | |
25553 case "(($ac_try" in | |
25554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25555 *) ac_try_echo=$ac_try;; | |
25556 esac | |
25557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25558 $as_echo "$ac_try_echo") >&5 | |
25559 (eval "$ac_link") 2>&5 | |
25560 ac_status=$? | |
25561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25562 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
25563 { (case "(($ac_try" in | |
25564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25565 *) ac_try_echo=$ac_try;; | |
25566 esac | |
25567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25568 $as_echo "$ac_try_echo") >&5 | |
25569 (eval "$ac_try") 2>&5 | |
25570 ac_status=$? | |
25571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25572 (exit $ac_status); }; }; then | |
25573 ac_cv_func_vfork_works=yes | 13278 ac_cv_func_vfork_works=yes |
25574 else | 13279 else |
25575 $as_echo "$as_me: program exited with status $ac_status" >&5 | 13280 ac_cv_func_vfork_works=no |
25576 $as_echo "$as_me: failed program was:" >&5 | 13281 fi |
25577 sed 's/^/| /' conftest.$ac_ext >&5 | 13282 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
25578 | 13283 conftest.$ac_objext conftest.beam conftest.$ac_ext |
25579 ( exit $ac_status ) | 13284 fi |
25580 ac_cv_func_vfork_works=no | 13285 |
25581 fi | 13286 fi |
25582 rm -rf conftest.dSYM | 13287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 |
25583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
25584 fi | |
25585 | |
25586 | |
25587 fi | |
25588 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 | |
25589 $as_echo "$ac_cv_func_vfork_works" >&6; } | 13288 $as_echo "$ac_cv_func_vfork_works" >&6; } |
25590 | 13289 |
25591 fi; | 13290 fi; |
25592 if test "x$ac_cv_func_fork_works" = xcross; then | 13291 if test "x$ac_cv_func_fork_works" = xcross; then |
25593 ac_cv_func_vfork_works=$ac_cv_func_vfork | 13292 ac_cv_func_vfork_works=$ac_cv_func_vfork |
25594 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 | 13293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
25595 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | 13294 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} |
25596 fi | 13295 fi |
25597 | 13296 |
25598 if test "x$ac_cv_func_vfork_works" = xyes; then | 13297 if test "x$ac_cv_func_vfork_works" = xyes; then |
25599 | 13298 |
25600 cat >>confdefs.h <<\_ACEOF | 13299 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h |
25601 #define HAVE_WORKING_VFORK 1 | 13300 |
25602 _ACEOF | 13301 else |
25603 | 13302 |
25604 else | 13303 $as_echo "#define vfork fork" >>confdefs.h |
25605 | |
25606 cat >>confdefs.h <<\_ACEOF | |
25607 #define vfork fork | |
25608 _ACEOF | |
25609 | 13304 |
25610 fi | 13305 fi |
25611 if test "x$ac_cv_func_fork_works" = xyes; then | 13306 if test "x$ac_cv_func_fork_works" = xyes; then |
25612 | 13307 |
25613 cat >>confdefs.h <<\_ACEOF | 13308 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h |
25614 #define HAVE_WORKING_FORK 1 | 13309 |
25615 _ACEOF | 13310 fi |
25616 | 13311 |
25617 fi | 13312 |
25618 | 13313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 |
25619 | |
25620 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 | |
25621 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } | 13314 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } |
25622 if test "${emacs_cv_langinfo_codeset+set}" = set; then | 13315 if test "${emacs_cv_langinfo_codeset+set}" = set; then : |
25623 $as_echo_n "(cached) " >&6 | 13316 $as_echo_n "(cached) " >&6 |
25624 else | 13317 else |
25625 cat >conftest.$ac_ext <<_ACEOF | 13318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25626 /* confdefs.h. */ | |
25627 _ACEOF | |
25628 cat confdefs.h >>conftest.$ac_ext | |
25629 cat >>conftest.$ac_ext <<_ACEOF | |
25630 /* end confdefs.h. */ | 13319 /* end confdefs.h. */ |
25631 #include <langinfo.h> | 13320 #include <langinfo.h> |
25632 int | 13321 int |
25633 main () | 13322 main () |
25634 { | 13323 { |
25635 char* cs = nl_langinfo(CODESET); | 13324 char* cs = nl_langinfo(CODESET); |
25636 ; | 13325 ; |
25637 return 0; | 13326 return 0; |
25638 } | 13327 } |
25639 _ACEOF | 13328 _ACEOF |
25640 rm -f conftest.$ac_objext conftest$ac_exeext | 13329 if ac_fn_c_try_link "$LINENO"; then : |
25641 if { (ac_try="$ac_link" | |
25642 case "(($ac_try" in | |
25643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25644 *) ac_try_echo=$ac_try;; | |
25645 esac | |
25646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25647 $as_echo "$ac_try_echo") >&5 | |
25648 (eval "$ac_link") 2>conftest.er1 | |
25649 ac_status=$? | |
25650 grep -v '^ *+' conftest.er1 >conftest.err | |
25651 rm -f conftest.er1 | |
25652 cat conftest.err >&5 | |
25653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25654 (exit $ac_status); } && { | |
25655 test -z "$ac_c_werror_flag" || | |
25656 test ! -s conftest.err | |
25657 } && test -s conftest$ac_exeext && { | |
25658 test "$cross_compiling" = yes || | |
25659 $as_test_x conftest$ac_exeext | |
25660 }; then | |
25661 emacs_cv_langinfo_codeset=yes | 13330 emacs_cv_langinfo_codeset=yes |
25662 else | 13331 else |
25663 $as_echo "$as_me: failed program was:" >&5 | 13332 emacs_cv_langinfo_codeset=no |
25664 sed 's/^/| /' conftest.$ac_ext >&5 | 13333 fi |
25665 | 13334 rm -f core conftest.err conftest.$ac_objext \ |
25666 emacs_cv_langinfo_codeset=no | 13335 conftest$ac_exeext conftest.$ac_ext |
25667 fi | 13336 |
25668 | 13337 fi |
25669 rm -rf conftest.dSYM | 13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5 |
25670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
25671 conftest$ac_exeext conftest.$ac_ext | |
25672 | |
25673 fi | |
25674 { $as_echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5 | |
25675 $as_echo "$emacs_cv_langinfo_codeset" >&6; } | 13339 $as_echo "$emacs_cv_langinfo_codeset" >&6; } |
25676 if test $emacs_cv_langinfo_codeset = yes; then | 13340 if test $emacs_cv_langinfo_codeset = yes; then |
25677 | 13341 |
25678 cat >>confdefs.h <<\_ACEOF | 13342 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h |
25679 #define HAVE_LANGINFO_CODESET 1 | 13343 |
25680 _ACEOF | 13344 fi |
25681 | 13345 |
25682 fi | 13346 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
25683 | 13347 if test "x$ac_cv_type_size_t" = x""yes; then : |
25684 { $as_echo "$as_me:$LINENO: checking for size_t" >&5 | |
25685 $as_echo_n "checking for size_t... " >&6; } | |
25686 if test "${ac_cv_type_size_t+set}" = set; then | |
25687 $as_echo_n "(cached) " >&6 | |
25688 else | |
25689 ac_cv_type_size_t=no | |
25690 cat >conftest.$ac_ext <<_ACEOF | |
25691 /* confdefs.h. */ | |
25692 _ACEOF | |
25693 cat confdefs.h >>conftest.$ac_ext | |
25694 cat >>conftest.$ac_ext <<_ACEOF | |
25695 /* end confdefs.h. */ | |
25696 $ac_includes_default | |
25697 int | |
25698 main () | |
25699 { | |
25700 if (sizeof (size_t)) | |
25701 return 0; | |
25702 ; | |
25703 return 0; | |
25704 } | |
25705 _ACEOF | |
25706 rm -f conftest.$ac_objext | |
25707 if { (ac_try="$ac_compile" | |
25708 case "(($ac_try" in | |
25709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25710 *) ac_try_echo=$ac_try;; | |
25711 esac | |
25712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25713 $as_echo "$ac_try_echo") >&5 | |
25714 (eval "$ac_compile") 2>conftest.er1 | |
25715 ac_status=$? | |
25716 grep -v '^ *+' conftest.er1 >conftest.err | |
25717 rm -f conftest.er1 | |
25718 cat conftest.err >&5 | |
25719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25720 (exit $ac_status); } && { | |
25721 test -z "$ac_c_werror_flag" || | |
25722 test ! -s conftest.err | |
25723 } && test -s conftest.$ac_objext; then | |
25724 cat >conftest.$ac_ext <<_ACEOF | |
25725 /* confdefs.h. */ | |
25726 _ACEOF | |
25727 cat confdefs.h >>conftest.$ac_ext | |
25728 cat >>conftest.$ac_ext <<_ACEOF | |
25729 /* end confdefs.h. */ | |
25730 $ac_includes_default | |
25731 int | |
25732 main () | |
25733 { | |
25734 if (sizeof ((size_t))) | |
25735 return 0; | |
25736 ; | |
25737 return 0; | |
25738 } | |
25739 _ACEOF | |
25740 rm -f conftest.$ac_objext | |
25741 if { (ac_try="$ac_compile" | |
25742 case "(($ac_try" in | |
25743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25744 *) ac_try_echo=$ac_try;; | |
25745 esac | |
25746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25747 $as_echo "$ac_try_echo") >&5 | |
25748 (eval "$ac_compile") 2>conftest.er1 | |
25749 ac_status=$? | |
25750 grep -v '^ *+' conftest.er1 >conftest.err | |
25751 rm -f conftest.er1 | |
25752 cat conftest.err >&5 | |
25753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25754 (exit $ac_status); } && { | |
25755 test -z "$ac_c_werror_flag" || | |
25756 test ! -s conftest.err | |
25757 } && test -s conftest.$ac_objext; then | |
25758 : | |
25759 else | |
25760 $as_echo "$as_me: failed program was:" >&5 | |
25761 sed 's/^/| /' conftest.$ac_ext >&5 | |
25762 | |
25763 ac_cv_type_size_t=yes | |
25764 fi | |
25765 | |
25766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
25767 else | |
25768 $as_echo "$as_me: failed program was:" >&5 | |
25769 sed 's/^/| /' conftest.$ac_ext >&5 | |
25770 | |
25771 | |
25772 fi | |
25773 | |
25774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
25775 fi | |
25776 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
25777 $as_echo "$ac_cv_type_size_t" >&6; } | |
25778 if test $ac_cv_type_size_t = yes; then | |
25779 | 13348 |
25780 cat >>confdefs.h <<_ACEOF | 13349 cat >>confdefs.h <<_ACEOF |
25781 #define HAVE_SIZE_T 1 | 13350 #define HAVE_SIZE_T 1 |
25782 _ACEOF | 13351 _ACEOF |
25783 | 13352 |
25784 | 13353 |
25785 fi | 13354 fi |
25786 | 13355 |
25787 | 13356 |
25788 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5 | 13357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5 |
25789 $as_echo_n "checking for mbstate_t... " >&6; } | 13358 $as_echo_n "checking for mbstate_t... " >&6; } |
25790 if test "${ac_cv_type_mbstate_t+set}" = set; then | 13359 if test "${ac_cv_type_mbstate_t+set}" = set; then : |
25791 $as_echo_n "(cached) " >&6 | 13360 $as_echo_n "(cached) " >&6 |
25792 else | 13361 else |
25793 cat >conftest.$ac_ext <<_ACEOF | 13362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25794 /* confdefs.h. */ | |
25795 _ACEOF | |
25796 cat confdefs.h >>conftest.$ac_ext | |
25797 cat >>conftest.$ac_ext <<_ACEOF | |
25798 /* end confdefs.h. */ | 13363 /* end confdefs.h. */ |
25799 $ac_includes_default | 13364 $ac_includes_default |
25800 # include <wchar.h> | 13365 # include <wchar.h> |
25801 int | 13366 int |
25802 main () | 13367 main () |
25804 mbstate_t x; return sizeof x; | 13369 mbstate_t x; return sizeof x; |
25805 ; | 13370 ; |
25806 return 0; | 13371 return 0; |
25807 } | 13372 } |
25808 _ACEOF | 13373 _ACEOF |
25809 rm -f conftest.$ac_objext | 13374 if ac_fn_c_try_compile "$LINENO"; then : |
25810 if { (ac_try="$ac_compile" | |
25811 case "(($ac_try" in | |
25812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25813 *) ac_try_echo=$ac_try;; | |
25814 esac | |
25815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25816 $as_echo "$ac_try_echo") >&5 | |
25817 (eval "$ac_compile") 2>conftest.er1 | |
25818 ac_status=$? | |
25819 grep -v '^ *+' conftest.er1 >conftest.err | |
25820 rm -f conftest.er1 | |
25821 cat conftest.err >&5 | |
25822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25823 (exit $ac_status); } && { | |
25824 test -z "$ac_c_werror_flag" || | |
25825 test ! -s conftest.err | |
25826 } && test -s conftest.$ac_objext; then | |
25827 ac_cv_type_mbstate_t=yes | 13375 ac_cv_type_mbstate_t=yes |
25828 else | 13376 else |
25829 $as_echo "$as_me: failed program was:" >&5 | 13377 ac_cv_type_mbstate_t=no |
25830 sed 's/^/| /' conftest.$ac_ext >&5 | 13378 fi |
25831 | |
25832 ac_cv_type_mbstate_t=no | |
25833 fi | |
25834 | |
25835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 13379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
25836 fi | 13380 fi |
25837 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5 | 13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5 |
25838 $as_echo "$ac_cv_type_mbstate_t" >&6; } | 13382 $as_echo "$ac_cv_type_mbstate_t" >&6; } |
25839 if test $ac_cv_type_mbstate_t = yes; then | 13383 if test $ac_cv_type_mbstate_t = yes; then |
25840 | 13384 |
25841 cat >>confdefs.h <<\_ACEOF | 13385 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h |
25842 #define HAVE_MBSTATE_T 1 | |
25843 _ACEOF | |
25844 | 13386 |
25845 else | 13387 else |
25846 | 13388 |
25847 cat >>confdefs.h <<\_ACEOF | 13389 $as_echo "#define mbstate_t int" >>confdefs.h |
25848 #define mbstate_t int | |
25849 _ACEOF | |
25850 | 13390 |
25851 fi | 13391 fi |
25852 | 13392 |
25853 { $as_echo "$as_me:$LINENO: checking for C restrict keyword" >&5 | 13393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5 |
25854 $as_echo_n "checking for C restrict keyword... " >&6; } | 13394 $as_echo_n "checking for C restrict keyword... " >&6; } |
25855 if test "${emacs_cv_c_restrict+set}" = set; then | 13395 if test "${emacs_cv_c_restrict+set}" = set; then : |
25856 $as_echo_n "(cached) " >&6 | 13396 $as_echo_n "(cached) " >&6 |
25857 else | 13397 else |
25858 cat >conftest.$ac_ext <<_ACEOF | 13398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25859 /* confdefs.h. */ | |
25860 _ACEOF | |
25861 cat confdefs.h >>conftest.$ac_ext | |
25862 cat >>conftest.$ac_ext <<_ACEOF | |
25863 /* end confdefs.h. */ | 13399 /* end confdefs.h. */ |
25864 void fred (int *restrict x); | 13400 void fred (int *restrict x); |
25865 int | 13401 int |
25866 main () | 13402 main () |
25867 { | 13403 { |
25868 | 13404 |
25869 ; | 13405 ; |
25870 return 0; | 13406 return 0; |
25871 } | 13407 } |
25872 _ACEOF | 13408 _ACEOF |
25873 rm -f conftest.$ac_objext | 13409 if ac_fn_c_try_compile "$LINENO"; then : |
25874 if { (ac_try="$ac_compile" | |
25875 case "(($ac_try" in | |
25876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25877 *) ac_try_echo=$ac_try;; | |
25878 esac | |
25879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25880 $as_echo "$ac_try_echo") >&5 | |
25881 (eval "$ac_compile") 2>conftest.er1 | |
25882 ac_status=$? | |
25883 grep -v '^ *+' conftest.er1 >conftest.err | |
25884 rm -f conftest.er1 | |
25885 cat conftest.err >&5 | |
25886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25887 (exit $ac_status); } && { | |
25888 test -z "$ac_c_werror_flag" || | |
25889 test ! -s conftest.err | |
25890 } && test -s conftest.$ac_objext; then | |
25891 emacs_cv_c_restrict=yes | 13410 emacs_cv_c_restrict=yes |
25892 else | 13411 else |
25893 $as_echo "$as_me: failed program was:" >&5 | 13412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25894 sed 's/^/| /' conftest.$ac_ext >&5 | |
25895 | |
25896 cat >conftest.$ac_ext <<_ACEOF | |
25897 /* confdefs.h. */ | |
25898 _ACEOF | |
25899 cat confdefs.h >>conftest.$ac_ext | |
25900 cat >>conftest.$ac_ext <<_ACEOF | |
25901 /* end confdefs.h. */ | 13413 /* end confdefs.h. */ |
25902 void fred (int *__restrict x); | 13414 void fred (int *__restrict x); |
25903 int | 13415 int |
25904 main () | 13416 main () |
25905 { | 13417 { |
25906 | 13418 |
25907 ; | 13419 ; |
25908 return 0; | 13420 return 0; |
25909 } | 13421 } |
25910 _ACEOF | 13422 _ACEOF |
25911 rm -f conftest.$ac_objext | 13423 if ac_fn_c_try_compile "$LINENO"; then : |
25912 if { (ac_try="$ac_compile" | |
25913 case "(($ac_try" in | |
25914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25915 *) ac_try_echo=$ac_try;; | |
25916 esac | |
25917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25918 $as_echo "$ac_try_echo") >&5 | |
25919 (eval "$ac_compile") 2>conftest.er1 | |
25920 ac_status=$? | |
25921 grep -v '^ *+' conftest.er1 >conftest.err | |
25922 rm -f conftest.er1 | |
25923 cat conftest.err >&5 | |
25924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25925 (exit $ac_status); } && { | |
25926 test -z "$ac_c_werror_flag" || | |
25927 test ! -s conftest.err | |
25928 } && test -s conftest.$ac_objext; then | |
25929 emacs_cv_c_restrict=__restrict | 13424 emacs_cv_c_restrict=__restrict |
25930 else | 13425 else |
25931 $as_echo "$as_me: failed program was:" >&5 | 13426 emacs_cv_c_restrict=no |
25932 sed 's/^/| /' conftest.$ac_ext >&5 | 13427 fi |
25933 | |
25934 emacs_cv_c_restrict=no | |
25935 fi | |
25936 | |
25937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 13428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
25938 fi | 13429 fi |
25939 | |
25940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 13430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
25941 fi | 13431 fi |
25942 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5 | 13432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict" >&5 |
25943 $as_echo "$emacs_cv_c_restrict" >&6; } | 13433 $as_echo "$emacs_cv_c_restrict" >&6; } |
25944 case "$emacs_cv_c_restrict" in | 13434 case "$emacs_cv_c_restrict" in |
25945 yes) emacs_restrict=restrict;; | 13435 yes) emacs_restrict=restrict;; |
25946 no) emacs_restrict="";; | 13436 no) emacs_restrict="";; |
25947 *) emacs_restrict="$emacs_cv_c_restrict";; | 13437 *) emacs_restrict="$emacs_cv_c_restrict";; |
25952 #define __restrict $emacs_restrict | 13442 #define __restrict $emacs_restrict |
25953 _ACEOF | 13443 _ACEOF |
25954 | 13444 |
25955 fi | 13445 fi |
25956 | 13446 |
25957 { $as_echo "$as_me:$LINENO: checking for C restricted array declarations" >&5 | 13447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5 |
25958 $as_echo_n "checking for C restricted array declarations... " >&6; } | 13448 $as_echo_n "checking for C restricted array declarations... " >&6; } |
25959 if test "${emacs_cv_c_restrict_arr+set}" = set; then | 13449 if test "${emacs_cv_c_restrict_arr+set}" = set; then : |
25960 $as_echo_n "(cached) " >&6 | 13450 $as_echo_n "(cached) " >&6 |
25961 else | 13451 else |
25962 cat >conftest.$ac_ext <<_ACEOF | 13452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
25963 /* confdefs.h. */ | |
25964 _ACEOF | |
25965 cat confdefs.h >>conftest.$ac_ext | |
25966 cat >>conftest.$ac_ext <<_ACEOF | |
25967 /* end confdefs.h. */ | 13453 /* end confdefs.h. */ |
25968 void fred (int x[__restrict]); | 13454 void fred (int x[__restrict]); |
25969 int | 13455 int |
25970 main () | 13456 main () |
25971 { | 13457 { |
25972 | 13458 |
25973 ; | 13459 ; |
25974 return 0; | 13460 return 0; |
25975 } | 13461 } |
25976 _ACEOF | 13462 _ACEOF |
25977 rm -f conftest.$ac_objext | 13463 if ac_fn_c_try_compile "$LINENO"; then : |
25978 if { (ac_try="$ac_compile" | |
25979 case "(($ac_try" in | |
25980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
25981 *) ac_try_echo=$ac_try;; | |
25982 esac | |
25983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
25984 $as_echo "$ac_try_echo") >&5 | |
25985 (eval "$ac_compile") 2>conftest.er1 | |
25986 ac_status=$? | |
25987 grep -v '^ *+' conftest.er1 >conftest.err | |
25988 rm -f conftest.er1 | |
25989 cat conftest.err >&5 | |
25990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25991 (exit $ac_status); } && { | |
25992 test -z "$ac_c_werror_flag" || | |
25993 test ! -s conftest.err | |
25994 } && test -s conftest.$ac_objext; then | |
25995 emacs_cv_c_restrict_arr=yes | 13464 emacs_cv_c_restrict_arr=yes |
25996 else | 13465 else |
25997 $as_echo "$as_me: failed program was:" >&5 | 13466 emacs_cv_c_restrict_arr=no |
25998 sed 's/^/| /' conftest.$ac_ext >&5 | 13467 fi |
25999 | |
26000 emacs_cv_c_restrict_arr=no | |
26001 fi | |
26002 | |
26003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 13468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
26004 fi | 13469 fi |
26005 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5 | 13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5 |
26006 $as_echo "$emacs_cv_c_restrict_arr" >&6; } | 13471 $as_echo "$emacs_cv_c_restrict_arr" >&6; } |
26007 if test "$emacs_cv_c_restrict_arr" = yes; then | 13472 if test "$emacs_cv_c_restrict_arr" = yes; then |
26008 | 13473 |
26009 cat >>confdefs.h <<\_ACEOF | 13474 $as_echo "#define __restrict_arr __restrict" >>confdefs.h |
26010 #define __restrict_arr __restrict | |
26011 _ACEOF | |
26012 | 13475 |
26013 fi | 13476 fi |
26014 | 13477 |
26015 | 13478 |
26016 | 13479 |
26020 | 13483 |
26021 #### Find out which version of Emacs this is. | 13484 #### Find out which version of Emacs this is. |
26022 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \ | 13485 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \ |
26023 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` | 13486 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` |
26024 if test x"${version}" = x; then | 13487 if test x"${version}" = x; then |
26025 { { $as_echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5 | 13488 as_fn_error "can't find current emacs version in \`${srcdir}/lisp/version.el'." "$LINENO" 5 |
26026 $as_echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;} | |
26027 { (exit 1); exit 1; }; } | |
26028 fi | 13489 fi |
26029 if test x"${version}" != x"$PACKAGE_VERSION"; then | 13490 if test x"${version}" != x"$PACKAGE_VERSION"; then |
26030 { $as_echo "$as_me:$LINENO: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5 | 13491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5 |
26031 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;} | 13492 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;} |
26032 fi | 13493 fi |
26033 | 13494 |
26034 ### Specify what sort of things we'll be editing into Makefile and config.h. | 13495 ### Specify what sort of things we'll be editing into Makefile and config.h. |
26035 ### Use configuration here uncanonicalized to avoid exceeding size limits. | 13496 ### Use configuration here uncanonicalized to avoid exceeding size limits. |
26109 | 13570 |
26110 XMENU_OBJ= | 13571 XMENU_OBJ= |
26111 XOBJ= | 13572 XOBJ= |
26112 if test "${HAVE_X_WINDOWS}" = "yes" ; then | 13573 if test "${HAVE_X_WINDOWS}" = "yes" ; then |
26113 | 13574 |
26114 cat >>confdefs.h <<\_ACEOF | 13575 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h |
26115 #define HAVE_X_WINDOWS 1 | |
26116 _ACEOF | |
26117 | 13576 |
26118 XMENU_OBJ=xmenu.o | 13577 XMENU_OBJ=xmenu.o |
26119 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o" | 13578 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o" |
26120 fi | 13579 fi |
26121 | 13580 |
26124 WIDGET_OBJ= | 13583 WIDGET_OBJ= |
26125 MOTIF_LIBW= | 13584 MOTIF_LIBW= |
26126 if test "${USE_X_TOOLKIT}" != "none" ; then | 13585 if test "${USE_X_TOOLKIT}" != "none" ; then |
26127 WIDGET_OBJ=widget.o | 13586 WIDGET_OBJ=widget.o |
26128 | 13587 |
26129 cat >>confdefs.h <<\_ACEOF | 13588 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h |
26130 #define USE_X_TOOLKIT 1 | |
26131 _ACEOF | |
26132 | 13589 |
26133 if test "${USE_X_TOOLKIT}" = "LUCID"; then | 13590 if test "${USE_X_TOOLKIT}" = "LUCID"; then |
26134 | 13591 |
26135 cat >>confdefs.h <<\_ACEOF | 13592 $as_echo "#define USE_LUCID 1" >>confdefs.h |
26136 #define USE_LUCID 1 | |
26137 _ACEOF | |
26138 | 13593 |
26139 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then | 13594 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then |
26140 | 13595 |
26141 cat >>confdefs.h <<\_ACEOF | 13596 $as_echo "#define USE_MOTIF 1" >>confdefs.h |
26142 #define USE_MOTIF 1 | |
26143 _ACEOF | |
26144 | 13597 |
26145 MOTIF_LIBW=-lXm | 13598 MOTIF_LIBW=-lXm |
26146 case "$opsys" in | 13599 case "$opsys" in |
26147 gnu-linux) | 13600 gnu-linux) |
26148 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed. | 13601 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed. |
26183 ## The X Menu stuff is present in the X10 distribution, but missing | 13636 ## The X Menu stuff is present in the X10 distribution, but missing |
26184 ## from X11. If we have X10, just use the installed library; | 13637 ## from X11. If we have X10, just use the installed library; |
26185 ## otherwise, use our own copy. | 13638 ## otherwise, use our own copy. |
26186 if test "${HAVE_X11}" = "yes" ; then | 13639 if test "${HAVE_X11}" = "yes" ; then |
26187 | 13640 |
26188 cat >>confdefs.h <<\_ACEOF | 13641 $as_echo "#define HAVE_X11 1" >>confdefs.h |
26189 #define HAVE_X11 1 | |
26190 _ACEOF | |
26191 | 13642 |
26192 | 13643 |
26193 if test "$USE_X_TOOLKIT" = "none"; then | 13644 if test "$USE_X_TOOLKIT" = "none"; then |
26194 OLDXMENU="\${oldXMenudir}libXMenu11.a" | 13645 OLDXMENU="\${oldXMenudir}libXMenu11.a" |
26195 else | 13646 else |
26212 | 13663 |
26213 | 13664 |
26214 | 13665 |
26215 if test "${HAVE_MENUS}" = "yes" ; then | 13666 if test "${HAVE_MENUS}" = "yes" ; then |
26216 | 13667 |
26217 cat >>confdefs.h <<\_ACEOF | 13668 $as_echo "#define HAVE_MENUS 1" >>confdefs.h |
26218 #define HAVE_MENUS 1 | |
26219 _ACEOF | |
26220 | 13669 |
26221 fi | 13670 fi |
26222 if test "${GNU_MALLOC}" = "yes" ; then | 13671 if test "${GNU_MALLOC}" = "yes" ; then |
26223 | 13672 |
26224 cat >>confdefs.h <<\_ACEOF | 13673 $as_echo "#define GNU_MALLOC 1" >>confdefs.h |
26225 #define GNU_MALLOC 1 | |
26226 _ACEOF | |
26227 | 13674 |
26228 fi | 13675 fi |
26229 if test "${REL_ALLOC}" = "yes" ; then | 13676 if test "${REL_ALLOC}" = "yes" ; then |
26230 | 13677 |
26231 cat >>confdefs.h <<\_ACEOF | 13678 $as_echo "#define REL_ALLOC 1" >>confdefs.h |
26232 #define REL_ALLOC 1 | |
26233 _ACEOF | |
26234 | 13679 |
26235 fi | 13680 fi |
26236 | 13681 |
26237 | 13682 |
26238 if test "$opsys" = "cygwin"; then | 13683 if test "$opsys" = "cygwin"; then |
26268 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra" | 13713 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra" |
26269 ;; | 13714 ;; |
26270 | 13715 |
26271 *) LD_SWITCH_SYSTEM_TEMACS= ;; | 13716 *) LD_SWITCH_SYSTEM_TEMACS= ;; |
26272 esac | 13717 esac |
26273 | |
26274 | |
26275 | 13718 |
26276 | 13719 |
26277 | 13720 |
26278 | 13721 |
26279 | 13722 |
26376 ## Check if the C preprocessor will convert `..' to `. .'. If so, set | 13819 ## Check if the C preprocessor will convert `..' to `. .'. If so, set |
26377 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile | 13820 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile |
26378 ## from Makefile.c can correctly provide the arg `-traditional' to the | 13821 ## from Makefile.c can correctly provide the arg `-traditional' to the |
26379 ## C preprocessor. | 13822 ## C preprocessor. |
26380 | 13823 |
26381 cat >conftest.$ac_ext <<_ACEOF | 13824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
26382 /* confdefs.h. */ | |
26383 _ACEOF | |
26384 cat confdefs.h >>conftest.$ac_ext | |
26385 cat >>conftest.$ac_ext <<_ACEOF | |
26386 /* end confdefs.h. */ | 13825 /* end confdefs.h. */ |
26387 yes..yes | 13826 yes..yes |
26388 _ACEOF | 13827 _ACEOF |
26389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 13828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
26390 $EGREP "yes..yes" >/dev/null 2>&1; then | 13829 $EGREP "yes..yes" >/dev/null 2>&1; then : |
26391 CPP_NEED_TRADITIONAL=no | 13830 CPP_NEED_TRADITIONAL=no |
26392 else | 13831 else |
26393 CPP_NEED_TRADITIONAL=yes | 13832 CPP_NEED_TRADITIONAL=yes |
26394 fi | 13833 fi |
26395 rm -f conftest* | 13834 rm -f conftest* |
26424 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | 13863 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
26425 eval ac_val=\$$ac_var | 13864 eval ac_val=\$$ac_var |
26426 case $ac_val in #( | 13865 case $ac_val in #( |
26427 *${as_nl}*) | 13866 *${as_nl}*) |
26428 case $ac_var in #( | 13867 case $ac_var in #( |
26429 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | 13868 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
26430 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | 13869 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
26431 esac | 13870 esac |
26432 case $ac_var in #( | 13871 case $ac_var in #( |
26433 _ | IFS | as_nl) ;; #( | 13872 _ | IFS | as_nl) ;; #( |
26434 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | 13873 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
26435 *) $as_unset $ac_var ;; | 13874 *) { eval $ac_var=; unset $ac_var;} ;; |
26436 esac ;; | 13875 esac ;; |
26437 esac | 13876 esac |
26438 done | 13877 done |
26439 | 13878 |
26440 (set) 2>&1 | | 13879 (set) 2>&1 | |
26441 case $as_nl`(ac_space=' '; set) 2>&1` in #( | 13880 case $as_nl`(ac_space=' '; set) 2>&1` in #( |
26442 *${as_nl}ac_space=\ *) | 13881 *${as_nl}ac_space=\ *) |
26443 # `set' does not quote correctly, so add quotes (double-quote | 13882 # `set' does not quote correctly, so add quotes: double-quote |
26444 # substitution turns \\\\ into \\, and sed turns \\ into \). | 13883 # substitution turns \\\\ into \\, and sed turns \\ into \. |
26445 sed -n \ | 13884 sed -n \ |
26446 "s/'/'\\\\''/g; | 13885 "s/'/'\\\\''/g; |
26447 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | 13886 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
26448 ;; #( | 13887 ;; #( |
26449 *) | 13888 *) |
26462 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | 13901 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
26463 :end' >>confcache | 13902 :end' >>confcache |
26464 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | 13903 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
26465 if test -w "$cache_file"; then | 13904 if test -w "$cache_file"; then |
26466 test "x$cache_file" != "x/dev/null" && | 13905 test "x$cache_file" != "x/dev/null" && |
26467 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 | 13906 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
26468 $as_echo "$as_me: updating cache $cache_file" >&6;} | 13907 $as_echo "$as_me: updating cache $cache_file" >&6;} |
26469 cat confcache >$cache_file | 13908 cat confcache >$cache_file |
26470 else | 13909 else |
26471 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 | 13910 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
26472 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | 13911 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
26473 fi | 13912 fi |
26474 fi | 13913 fi |
26475 rm -f confcache | 13914 rm -f confcache |
26476 | 13915 |
26486 # 1. Remove the extension, and $U if already installed. | 13925 # 1. Remove the extension, and $U if already installed. |
26487 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | 13926 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
26488 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | 13927 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
26489 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | 13928 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
26490 # will be set to the directory where LIBOBJS objects are built. | 13929 # will be set to the directory where LIBOBJS objects are built. |
26491 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | 13930 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
26492 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | 13931 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
26493 done | 13932 done |
26494 LIBOBJS=$ac_libobjs | 13933 LIBOBJS=$ac_libobjs |
26495 | 13934 |
26496 LTLIBOBJS=$ac_ltlibobjs | 13935 LTLIBOBJS=$ac_ltlibobjs |
26497 | 13936 |
26499 | 13938 |
26500 : ${CONFIG_STATUS=./config.status} | 13939 : ${CONFIG_STATUS=./config.status} |
26501 ac_write_fail=0 | 13940 ac_write_fail=0 |
26502 ac_clean_files_save=$ac_clean_files | 13941 ac_clean_files_save=$ac_clean_files |
26503 ac_clean_files="$ac_clean_files $CONFIG_STATUS" | 13942 ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
26504 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | 13943 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
26505 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | 13944 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
26506 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 13945 as_write_fail=0 |
13946 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
26507 #! $SHELL | 13947 #! $SHELL |
26508 # Generated by $as_me. | 13948 # Generated by $as_me. |
26509 # Run this file to recreate the current configuration. | 13949 # Run this file to recreate the current configuration. |
26510 # Compiler output produced by configure, useful for debugging | 13950 # Compiler output produced by configure, useful for debugging |
26511 # configure, is in config.log if it exists. | 13951 # configure, is in config.log if it exists. |
26512 | 13952 |
26513 debug=false | 13953 debug=false |
26514 ac_cs_recheck=false | 13954 ac_cs_recheck=false |
26515 ac_cs_silent=false | 13955 ac_cs_silent=false |
13956 | |
26516 SHELL=\${CONFIG_SHELL-$SHELL} | 13957 SHELL=\${CONFIG_SHELL-$SHELL} |
26517 _ACEOF | 13958 export SHELL |
26518 | 13959 _ASEOF |
26519 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 13960 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
26520 ## --------------------- ## | 13961 ## -------------------- ## |
26521 ## M4sh Initialization. ## | 13962 ## M4sh Initialization. ## |
26522 ## --------------------- ## | 13963 ## -------------------- ## |
26523 | 13964 |
26524 # Be more Bourne compatible | 13965 # Be more Bourne compatible |
26525 DUALCASE=1; export DUALCASE # for MKS sh | 13966 DUALCASE=1; export DUALCASE # for MKS sh |
26526 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | 13967 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
26527 emulate sh | 13968 emulate sh |
26528 NULLCMD=: | 13969 NULLCMD=: |
26529 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | 13970 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
26530 # is contrary to our usage. Disable this feature. | 13971 # is contrary to our usage. Disable this feature. |
26531 alias -g '${1+"$@"}'='"$@"' | 13972 alias -g '${1+"$@"}'='"$@"' |
26532 setopt NO_GLOB_SUBST | 13973 setopt NO_GLOB_SUBST |
26533 else | 13974 else |
26534 case `(set -o) 2>/dev/null` in | 13975 case `(set -o) 2>/dev/null` in #( |
26535 *posix*) set -o posix ;; | 13976 *posix*) : |
13977 set -o posix ;; #( | |
13978 *) : | |
13979 ;; | |
26536 esac | 13980 esac |
26537 | 13981 fi |
26538 fi | 13982 |
26539 | |
26540 | |
26541 | |
26542 | |
26543 # PATH needs CR | |
26544 # Avoid depending upon Character Ranges. | |
26545 as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
26546 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
26547 as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
26548 as_cr_digits='0123456789' | |
26549 as_cr_alnum=$as_cr_Letters$as_cr_digits | |
26550 | 13983 |
26551 as_nl=' | 13984 as_nl=' |
26552 ' | 13985 ' |
26553 export as_nl | 13986 export as_nl |
26554 # Printing a long string crashes Solaris 7 /usr/bin/printf. | 13987 # Printing a long string crashes Solaris 7 /usr/bin/printf. |
26555 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | 13988 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
26556 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | 13989 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
26557 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | 13990 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
26558 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | 13991 # Prefer a ksh shell builtin over an external printf program on Solaris, |
13992 # but without wasting forks for bash or zsh. | |
13993 if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
13994 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
13995 as_echo='print -r --' | |
13996 as_echo_n='print -rn --' | |
13997 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
26559 as_echo='printf %s\n' | 13998 as_echo='printf %s\n' |
26560 as_echo_n='printf %s' | 13999 as_echo_n='printf %s' |
26561 else | 14000 else |
26562 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | 14001 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
26563 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | 14002 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
26564 as_echo_n='/usr/ucb/echo -n' | 14003 as_echo_n='/usr/ucb/echo -n' |
26565 else | 14004 else |
26566 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | 14005 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
26567 as_echo_n_body='eval | 14006 as_echo_n_body='eval |
26568 arg=$1; | 14007 arg=$1; |
26569 case $arg in | 14008 case $arg in #( |
26570 *"$as_nl"*) | 14009 *"$as_nl"*) |
26571 expr "X$arg" : "X\\(.*\\)$as_nl"; | 14010 expr "X$arg" : "X\\(.*\\)$as_nl"; |
26572 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | 14011 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
26573 esac; | 14012 esac; |
26574 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | 14013 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
26587 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | 14026 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
26588 PATH_SEPARATOR=';' | 14027 PATH_SEPARATOR=';' |
26589 } | 14028 } |
26590 fi | 14029 fi |
26591 | 14030 |
26592 # Support unset when possible. | |
26593 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
26594 as_unset=unset | |
26595 else | |
26596 as_unset=false | |
26597 fi | |
26598 | |
26599 | 14031 |
26600 # IFS | 14032 # IFS |
26601 # We need space, tab and new line, in precisely that order. Quoting is | 14033 # We need space, tab and new line, in precisely that order. Quoting is |
26602 # there to prevent editors from complaining about space-tab. | 14034 # there to prevent editors from complaining about space-tab. |
26603 # (If _AS_PATH_WALK were called with IFS unset, it would disable word | 14035 # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
26604 # splitting by setting IFS to empty value.) | 14036 # splitting by setting IFS to empty value.) |
26605 IFS=" "" $as_nl" | 14037 IFS=" "" $as_nl" |
26606 | 14038 |
26607 # Find who we are. Look in the path if we contain no directory separator. | 14039 # Find who we are. Look in the path if we contain no directory separator. |
26608 case $0 in | 14040 case $0 in #(( |
26609 *[\\/]* ) as_myself=$0 ;; | 14041 *[\\/]* ) as_myself=$0 ;; |
26610 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 14042 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
26611 for as_dir in $PATH | 14043 for as_dir in $PATH |
26612 do | 14044 do |
26613 IFS=$as_save_IFS | 14045 IFS=$as_save_IFS |
26614 test -z "$as_dir" && as_dir=. | 14046 test -z "$as_dir" && as_dir=. |
26615 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | 14047 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
26616 done | 14048 done |
26617 IFS=$as_save_IFS | 14049 IFS=$as_save_IFS |
26618 | 14050 |
26619 ;; | 14051 ;; |
26620 esac | 14052 esac |
26621 # We did not find ourselves, most probably we were run as `sh COMMAND' | 14053 # We did not find ourselves, most probably we were run as `sh COMMAND' |
26623 if test "x$as_myself" = x; then | 14055 if test "x$as_myself" = x; then |
26624 as_myself=$0 | 14056 as_myself=$0 |
26625 fi | 14057 fi |
26626 if test ! -f "$as_myself"; then | 14058 if test ! -f "$as_myself"; then |
26627 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | 14059 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
26628 { (exit 1); exit 1; } | 14060 exit 1 |
26629 fi | 14061 fi |
26630 | 14062 |
26631 # Work around bugs in pre-3.0 UWIN ksh. | 14063 # Unset variables that we do not need and which cause bugs (e.g. in |
26632 for as_var in ENV MAIL MAILPATH | 14064 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
26633 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | 14065 # suppresses any "Segmentation fault" message there. '((' could |
14066 # trigger a bug in pdksh 5.2.14. | |
14067 for as_var in BASH_ENV ENV MAIL MAILPATH | |
14068 do eval test x\${$as_var+set} = xset \ | |
14069 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
26634 done | 14070 done |
26635 PS1='$ ' | 14071 PS1='$ ' |
26636 PS2='> ' | 14072 PS2='> ' |
26637 PS4='+ ' | 14073 PS4='+ ' |
26638 | 14074 |
26640 LC_ALL=C | 14076 LC_ALL=C |
26641 export LC_ALL | 14077 export LC_ALL |
26642 LANGUAGE=C | 14078 LANGUAGE=C |
26643 export LANGUAGE | 14079 export LANGUAGE |
26644 | 14080 |
26645 # Required to use basename. | 14081 # CDPATH. |
14082 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
14083 | |
14084 | |
14085 # as_fn_error ERROR [LINENO LOG_FD] | |
14086 # --------------------------------- | |
14087 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
14088 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
14089 # script with status $?, using 1 if that was 0. | |
14090 as_fn_error () | |
14091 { | |
14092 as_status=$?; test $as_status -eq 0 && as_status=1 | |
14093 if test "$3"; then | |
14094 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
14095 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
14096 fi | |
14097 $as_echo "$as_me: error: $1" >&2 | |
14098 as_fn_exit $as_status | |
14099 } # as_fn_error | |
14100 | |
14101 | |
14102 # as_fn_set_status STATUS | |
14103 # ----------------------- | |
14104 # Set $? to STATUS, without forking. | |
14105 as_fn_set_status () | |
14106 { | |
14107 return $1 | |
14108 } # as_fn_set_status | |
14109 | |
14110 # as_fn_exit STATUS | |
14111 # ----------------- | |
14112 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
14113 as_fn_exit () | |
14114 { | |
14115 set +e | |
14116 as_fn_set_status $1 | |
14117 exit $1 | |
14118 } # as_fn_exit | |
14119 | |
14120 # as_fn_unset VAR | |
14121 # --------------- | |
14122 # Portably unset VAR. | |
14123 as_fn_unset () | |
14124 { | |
14125 { eval $1=; unset $1;} | |
14126 } | |
14127 as_unset=as_fn_unset | |
14128 # as_fn_append VAR VALUE | |
14129 # ---------------------- | |
14130 # Append the text in VALUE to the end of the definition contained in VAR. Take | |
14131 # advantage of any shell optimizations that allow amortized linear growth over | |
14132 # repeated appends, instead of the typical quadratic growth present in naive | |
14133 # implementations. | |
14134 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
14135 eval 'as_fn_append () | |
14136 { | |
14137 eval $1+=\$2 | |
14138 }' | |
14139 else | |
14140 as_fn_append () | |
14141 { | |
14142 eval $1=\$$1\$2 | |
14143 } | |
14144 fi # as_fn_append | |
14145 | |
14146 # as_fn_arith ARG... | |
14147 # ------------------ | |
14148 # Perform arithmetic evaluation on the ARGs, and store the result in the | |
14149 # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
14150 # must be portable across $(()) and expr. | |
14151 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
14152 eval 'as_fn_arith () | |
14153 { | |
14154 as_val=$(( $* )) | |
14155 }' | |
14156 else | |
14157 as_fn_arith () | |
14158 { | |
14159 as_val=`expr "$@" || test $? -eq 1` | |
14160 } | |
14161 fi # as_fn_arith | |
14162 | |
14163 | |
26646 if expr a : '\(a\)' >/dev/null 2>&1 && | 14164 if expr a : '\(a\)' >/dev/null 2>&1 && |
26647 test "X`expr 00001 : '.*\(...\)'`" = X001; then | 14165 test "X`expr 00001 : '.*\(...\)'`" = X001; then |
26648 as_expr=expr | 14166 as_expr=expr |
26649 else | 14167 else |
26650 as_expr=false | 14168 as_expr=false |
26654 as_basename=basename | 14172 as_basename=basename |
26655 else | 14173 else |
26656 as_basename=false | 14174 as_basename=false |
26657 fi | 14175 fi |
26658 | 14176 |
26659 | 14177 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
26660 # Name of the executable. | 14178 as_dirname=dirname |
14179 else | |
14180 as_dirname=false | |
14181 fi | |
14182 | |
26661 as_me=`$as_basename -- "$0" || | 14183 as_me=`$as_basename -- "$0" || |
26662 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | 14184 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
26663 X"$0" : 'X\(//\)$' \| \ | 14185 X"$0" : 'X\(//\)$' \| \ |
26664 X"$0" : 'X\(/\)' \| . 2>/dev/null || | 14186 X"$0" : 'X\(/\)' \| . 2>/dev/null || |
26665 $as_echo X/"$0" | | 14187 $as_echo X/"$0" | |
26675 s//\1/ | 14197 s//\1/ |
26676 q | 14198 q |
26677 } | 14199 } |
26678 s/.*/./; q'` | 14200 s/.*/./; q'` |
26679 | 14201 |
26680 # CDPATH. | 14202 # Avoid depending upon Character Ranges. |
26681 $as_unset CDPATH | 14203 as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
26682 | 14204 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
26683 | 14205 as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
26684 | 14206 as_cr_digits='0123456789' |
26685 as_lineno_1=$LINENO | 14207 as_cr_alnum=$as_cr_Letters$as_cr_digits |
26686 as_lineno_2=$LINENO | |
26687 test "x$as_lineno_1" != "x$as_lineno_2" && | |
26688 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
26689 | |
26690 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
26691 # uniformly replaced by the line number. The first 'sed' inserts a | |
26692 # line-number line after each line using $LINENO; the second 'sed' | |
26693 # does the real work. The second script uses 'N' to pair each | |
26694 # line-number line with the line containing $LINENO, and appends | |
26695 # trailing '-' during substitution so that $LINENO is not a special | |
26696 # case at line end. | |
26697 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
26698 # scripts with optimization help from Paolo Bonzini. Blame Lee | |
26699 # E. McMahon (1931-1989) for sed's syntax. :-) | |
26700 sed -n ' | |
26701 p | |
26702 /[$]LINENO/= | |
26703 ' <$as_myself | | |
26704 sed ' | |
26705 s/[$]LINENO.*/&-/ | |
26706 t lineno | |
26707 b | |
26708 :lineno | |
26709 N | |
26710 :loop | |
26711 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
26712 t loop | |
26713 s/-\n.*// | |
26714 ' >$as_me.lineno && | |
26715 chmod +x "$as_me.lineno" || | |
26716 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
26717 { (exit 1); exit 1; }; } | |
26718 | |
26719 # Don't try to exec as it changes $[0], causing all sort of problems | |
26720 # (the dirname of $[0] is not the place where we might find the | |
26721 # original and so on. Autoconf is especially sensitive to this). | |
26722 . "./$as_me.lineno" | |
26723 # Exit status is that of the last command. | |
26724 exit | |
26725 } | |
26726 | |
26727 | |
26728 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
26729 as_dirname=dirname | |
26730 else | |
26731 as_dirname=false | |
26732 fi | |
26733 | 14208 |
26734 ECHO_C= ECHO_N= ECHO_T= | 14209 ECHO_C= ECHO_N= ECHO_T= |
26735 case `echo -n x` in | 14210 case `echo -n x` in #((((( |
26736 -n*) | 14211 -n*) |
26737 case `echo 'x\c'` in | 14212 case `echo 'xy\c'` in |
26738 *c*) ECHO_T=' ';; # ECHO_T is single tab character. | 14213 *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
26739 *) ECHO_C='\c';; | 14214 xy) ECHO_C='\c';; |
14215 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
14216 ECHO_T=' ';; | |
26740 esac;; | 14217 esac;; |
26741 *) | 14218 *) |
26742 ECHO_N='-n';; | 14219 ECHO_N='-n';; |
26743 esac | 14220 esac |
26744 if expr a : '\(a\)' >/dev/null 2>&1 && | |
26745 test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
26746 as_expr=expr | |
26747 else | |
26748 as_expr=false | |
26749 fi | |
26750 | 14221 |
26751 rm -f conf$$ conf$$.exe conf$$.file | 14222 rm -f conf$$ conf$$.exe conf$$.file |
26752 if test -d conf$$.dir; then | 14223 if test -d conf$$.dir; then |
26753 rm -f conf$$.dir/conf$$.file | 14224 rm -f conf$$.dir/conf$$.file |
26754 else | 14225 else |
26773 as_ln_s='cp -p' | 14244 as_ln_s='cp -p' |
26774 fi | 14245 fi |
26775 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | 14246 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
26776 rmdir conf$$.dir 2>/dev/null | 14247 rmdir conf$$.dir 2>/dev/null |
26777 | 14248 |
14249 | |
14250 # as_fn_mkdir_p | |
14251 # ------------- | |
14252 # Create "$as_dir" as a directory, including parents if necessary. | |
14253 as_fn_mkdir_p () | |
14254 { | |
14255 | |
14256 case $as_dir in #( | |
14257 -*) as_dir=./$as_dir;; | |
14258 esac | |
14259 test -d "$as_dir" || eval $as_mkdir_p || { | |
14260 as_dirs= | |
14261 while :; do | |
14262 case $as_dir in #( | |
14263 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
14264 *) as_qdir=$as_dir;; | |
14265 esac | |
14266 as_dirs="'$as_qdir' $as_dirs" | |
14267 as_dir=`$as_dirname -- "$as_dir" || | |
14268 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14269 X"$as_dir" : 'X\(//\)[^/]' \| \ | |
14270 X"$as_dir" : 'X\(//\)$' \| \ | |
14271 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
14272 $as_echo X"$as_dir" | | |
14273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14274 s//\1/ | |
14275 q | |
14276 } | |
14277 /^X\(\/\/\)[^/].*/{ | |
14278 s//\1/ | |
14279 q | |
14280 } | |
14281 /^X\(\/\/\)$/{ | |
14282 s//\1/ | |
14283 q | |
14284 } | |
14285 /^X\(\/\).*/{ | |
14286 s//\1/ | |
14287 q | |
14288 } | |
14289 s/.*/./; q'` | |
14290 test -d "$as_dir" && break | |
14291 done | |
14292 test -z "$as_dirs" || eval "mkdir $as_dirs" | |
14293 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
14294 | |
14295 | |
14296 } # as_fn_mkdir_p | |
26778 if mkdir -p . 2>/dev/null; then | 14297 if mkdir -p . 2>/dev/null; then |
26779 as_mkdir_p=: | 14298 as_mkdir_p='mkdir -p "$as_dir"' |
26780 else | 14299 else |
26781 test -d ./-p && rmdir ./-p | 14300 test -d ./-p && rmdir ./-p |
26782 as_mkdir_p=false | 14301 as_mkdir_p=false |
26783 fi | 14302 fi |
26784 | 14303 |
26793 as_test_x=' | 14312 as_test_x=' |
26794 eval sh -c '\'' | 14313 eval sh -c '\'' |
26795 if test -d "$1"; then | 14314 if test -d "$1"; then |
26796 test -d "$1/."; | 14315 test -d "$1/."; |
26797 else | 14316 else |
26798 case $1 in | 14317 case $1 in #( |
26799 -*)set "./$1";; | 14318 -*)set "./$1";; |
26800 esac; | 14319 esac; |
26801 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | 14320 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
26802 ???[sx]*):;;*)false;;esac;fi | 14321 ???[sx]*):;;*)false;;esac;fi |
26803 '\'' sh | 14322 '\'' sh |
26804 ' | 14323 ' |
26805 fi | 14324 fi |
26806 as_executable_p=$as_test_x | 14325 as_executable_p=$as_test_x |
26811 # Sed expression to map a string onto a valid variable name. | 14330 # Sed expression to map a string onto a valid variable name. |
26812 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | 14331 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
26813 | 14332 |
26814 | 14333 |
26815 exec 6>&1 | 14334 exec 6>&1 |
26816 | 14335 ## ----------------------------------- ## |
26817 # Save the log message, to keep $[0] and so on meaningful, and to | 14336 ## Main body of $CONFIG_STATUS script. ## |
14337 ## ----------------------------------- ## | |
14338 _ASEOF | |
14339 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
14340 | |
14341 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
14342 # Save the log message, to keep $0 and so on meaningful, and to | |
26818 # report actual input values of CONFIG_FILES etc. instead of their | 14343 # report actual input values of CONFIG_FILES etc. instead of their |
26819 # values after options handling. | 14344 # values after options handling. |
26820 ac_log=" | 14345 ac_log=" |
26821 This file was extended by emacs $as_me 24.0.50, which was | 14346 This file was extended by emacs $as_me 24.0.50, which was |
26822 generated by GNU Autoconf 2.62. Invocation command line was | 14347 generated by GNU Autoconf 2.65. Invocation command line was |
26823 | 14348 |
26824 CONFIG_FILES = $CONFIG_FILES | 14349 CONFIG_FILES = $CONFIG_FILES |
26825 CONFIG_HEADERS = $CONFIG_HEADERS | 14350 CONFIG_HEADERS = $CONFIG_HEADERS |
26826 CONFIG_LINKS = $CONFIG_LINKS | 14351 CONFIG_LINKS = $CONFIG_LINKS |
26827 CONFIG_COMMANDS = $CONFIG_COMMANDS | 14352 CONFIG_COMMANDS = $CONFIG_COMMANDS |
26830 on `(hostname || uname -n) 2>/dev/null | sed 1q` | 14355 on `(hostname || uname -n) 2>/dev/null | sed 1q` |
26831 " | 14356 " |
26832 | 14357 |
26833 _ACEOF | 14358 _ACEOF |
26834 | 14359 |
14360 case $ac_config_files in *" | |
14361 "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
14362 esac | |
14363 | |
14364 case $ac_config_headers in *" | |
14365 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
14366 esac | |
14367 | |
14368 | |
26835 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 14369 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
26836 # Files that config.status was made for. | 14370 # Files that config.status was made for. |
26837 config_files="$ac_config_files" | 14371 config_files="$ac_config_files" |
26838 config_headers="$ac_config_headers" | 14372 config_headers="$ac_config_headers" |
26839 config_commands="$ac_config_commands" | 14373 config_commands="$ac_config_commands" |
26840 | 14374 |
26841 _ACEOF | 14375 _ACEOF |
26842 | 14376 |
26843 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 14377 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
26844 ac_cs_usage="\ | 14378 ac_cs_usage="\ |
26845 \`$as_me' instantiates files from templates according to the | 14379 \`$as_me' instantiates files and other configuration actions |
26846 current configuration. | 14380 from templates according to the current configuration. Unless the files |
26847 | 14381 and actions are specified as TAGs, all are instantiated by default. |
26848 Usage: $0 [OPTIONS] [FILE]... | 14382 |
14383 Usage: $0 [OPTION]... [TAG]... | |
26849 | 14384 |
26850 -h, --help print this help, then exit | 14385 -h, --help print this help, then exit |
26851 -V, --version print version number and configuration settings, then exit | 14386 -V, --version print version number and configuration settings, then exit |
26852 -q, --quiet do not print progress messages | 14387 --config print configuration, then exit |
14388 -q, --quiet, --silent | |
14389 do not print progress messages | |
26853 -d, --debug don't remove temporary files | 14390 -d, --debug don't remove temporary files |
26854 --recheck update $as_me by reconfiguring in the same conditions | 14391 --recheck update $as_me by reconfiguring in the same conditions |
26855 --file=FILE[:TEMPLATE] | 14392 --file=FILE[:TEMPLATE] |
26856 instantiate the configuration file FILE | 14393 instantiate the configuration file FILE |
26857 --header=FILE[:TEMPLATE] | 14394 --header=FILE[:TEMPLATE] |
26858 instantiate the configuration header FILE | 14395 instantiate the configuration header FILE |
26859 | 14396 |
26860 Configuration files: | 14397 Configuration files: |
26861 $config_files | 14398 $config_files |
26862 | 14399 |
26864 $config_headers | 14401 $config_headers |
26865 | 14402 |
26866 Configuration commands: | 14403 Configuration commands: |
26867 $config_commands | 14404 $config_commands |
26868 | 14405 |
26869 Report bugs to <bug-autoconf@gnu.org>." | 14406 Report bugs to the package provider." |
26870 | 14407 |
26871 _ACEOF | 14408 _ACEOF |
26872 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 14409 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
14410 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
26873 ac_cs_version="\\ | 14411 ac_cs_version="\\ |
26874 emacs config.status 24.0.50 | 14412 emacs config.status 24.0.50 |
26875 configured by $0, generated by GNU Autoconf 2.62, | 14413 configured by $0, generated by GNU Autoconf 2.65, |
26876 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | 14414 with options \\"\$ac_cs_config\\" |
26877 | 14415 |
26878 Copyright (C) 2008 Free Software Foundation, Inc. | 14416 Copyright (C) 2009 Free Software Foundation, Inc. |
26879 This config.status script is free software; the Free Software Foundation | 14417 This config.status script is free software; the Free Software Foundation |
26880 gives unlimited permission to copy, distribute and modify it." | 14418 gives unlimited permission to copy, distribute and modify it." |
26881 | 14419 |
26882 ac_pwd='$ac_pwd' | 14420 ac_pwd='$ac_pwd' |
26883 srcdir='$srcdir' | 14421 srcdir='$srcdir' |
26907 # Handling of the options. | 14445 # Handling of the options. |
26908 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | 14446 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
26909 ac_cs_recheck=: ;; | 14447 ac_cs_recheck=: ;; |
26910 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | 14448 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
26911 $as_echo "$ac_cs_version"; exit ;; | 14449 $as_echo "$ac_cs_version"; exit ;; |
14450 --config | --confi | --conf | --con | --co | --c ) | |
14451 $as_echo "$ac_cs_config"; exit ;; | |
26912 --debug | --debu | --deb | --de | --d | -d ) | 14452 --debug | --debu | --deb | --de | --d | -d ) |
26913 debug=: ;; | 14453 debug=: ;; |
26914 --file | --fil | --fi | --f ) | 14454 --file | --fil | --fi | --f ) |
26915 $ac_shift | 14455 $ac_shift |
26916 case $ac_optarg in | 14456 case $ac_optarg in |
26917 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | 14457 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
26918 esac | 14458 esac |
26919 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" | 14459 as_fn_append CONFIG_FILES " '$ac_optarg'" |
26920 ac_need_defaults=false;; | 14460 ac_need_defaults=false;; |
26921 --header | --heade | --head | --hea ) | 14461 --header | --heade | --head | --hea ) |
26922 $ac_shift | 14462 $ac_shift |
26923 case $ac_optarg in | 14463 case $ac_optarg in |
26924 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | 14464 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
26925 esac | 14465 esac |
26926 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" | 14466 as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
26927 ac_need_defaults=false;; | 14467 ac_need_defaults=false;; |
26928 --he | --h) | 14468 --he | --h) |
26929 # Conflict between --help and --header | 14469 # Conflict between --help and --header |
26930 { $as_echo "$as_me: error: ambiguous option: $1 | 14470 as_fn_error "ambiguous option: \`$1' |
26931 Try \`$0 --help' for more information." >&2 | 14471 Try \`$0 --help' for more information.";; |
26932 { (exit 1); exit 1; }; };; | |
26933 --help | --hel | -h ) | 14472 --help | --hel | -h ) |
26934 $as_echo "$ac_cs_usage"; exit ;; | 14473 $as_echo "$ac_cs_usage"; exit ;; |
26935 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 14474 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
26936 | -silent | --silent | --silen | --sile | --sil | --si | --s) | 14475 | -silent | --silent | --silen | --sile | --sil | --si | --s) |
26937 ac_cs_silent=: ;; | 14476 ac_cs_silent=: ;; |
26938 | 14477 |
26939 # This is an error. | 14478 # This is an error. |
26940 -*) { $as_echo "$as_me: error: unrecognized option: $1 | 14479 -*) as_fn_error "unrecognized option: \`$1' |
26941 Try \`$0 --help' for more information." >&2 | 14480 Try \`$0 --help' for more information." ;; |
26942 { (exit 1); exit 1; }; } ;; | 14481 |
26943 | 14482 *) as_fn_append ac_config_targets " $1" |
26944 *) ac_config_targets="$ac_config_targets $1" | |
26945 ac_need_defaults=false ;; | 14483 ac_need_defaults=false ;; |
26946 | 14484 |
26947 esac | 14485 esac |
26948 shift | 14486 shift |
26949 done | 14487 done |
27004 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;; | 14542 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;; |
27005 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;; | 14543 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;; |
27006 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;; | 14544 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;; |
27007 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | 14545 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
27008 | 14546 |
27009 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | 14547 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
27010 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
27011 { (exit 1); exit 1; }; };; | |
27012 esac | 14548 esac |
27013 done | 14549 done |
27014 | 14550 |
27015 | 14551 |
27016 # If the user did not use the arguments to specify the items to instantiate, | 14552 # If the user did not use the arguments to specify the items to instantiate, |
27033 { | 14569 { |
27034 tmp= | 14570 tmp= |
27035 trap 'exit_status=$? | 14571 trap 'exit_status=$? |
27036 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | 14572 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
27037 ' 0 | 14573 ' 0 |
27038 trap '{ (exit 1); exit 1; }' 1 2 13 15 | 14574 trap 'as_fn_exit 1' 1 2 13 15 |
27039 } | 14575 } |
27040 # Create a (secure) tmp directory for tmp files. | 14576 # Create a (secure) tmp directory for tmp files. |
27041 | 14577 |
27042 { | 14578 { |
27043 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | 14579 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
27044 test -n "$tmp" && test -d "$tmp" | 14580 test -n "$tmp" && test -d "$tmp" |
27045 } || | 14581 } || |
27046 { | 14582 { |
27047 tmp=./conf$$-$RANDOM | 14583 tmp=./conf$$-$RANDOM |
27048 (umask 077 && mkdir "$tmp") | 14584 (umask 077 && mkdir "$tmp") |
27049 } || | 14585 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 |
27050 { | |
27051 $as_echo "$as_me: cannot create a temporary directory in ." >&2 | |
27052 { (exit 1); exit 1; } | |
27053 } | |
27054 | 14586 |
27055 # Set up the scripts for CONFIG_FILES section. | 14587 # Set up the scripts for CONFIG_FILES section. |
27056 # No need to generate them if there are no CONFIG_FILES. | 14588 # No need to generate them if there are no CONFIG_FILES. |
27057 # This happens for instance with `./config.status config.h'. | 14589 # This happens for instance with `./config.status config.h'. |
27058 if test -n "$CONFIG_FILES"; then | 14590 if test -n "$CONFIG_FILES"; then |
27059 | 14591 |
27060 | 14592 |
27061 ac_cr=' | 14593 ac_cr=`echo X | tr X '\015'` |
27062 ' | 14594 # On cygwin, bash can eat \r inside `` if the user requested igncr. |
14595 # But we know of no other shell where ac_cr would be empty at this | |
14596 # point, so we can use a bashism as a fallback. | |
14597 if test "x$ac_cr" = x; then | |
14598 eval ac_cr=\$\'\\r\' | |
14599 fi | |
27063 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | 14600 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
27064 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | 14601 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
27065 ac_cs_awk_cr='\\r' | 14602 ac_cs_awk_cr='\r' |
27066 else | 14603 else |
27067 ac_cs_awk_cr=$ac_cr | 14604 ac_cs_awk_cr=$ac_cr |
27068 fi | 14605 fi |
27069 | 14606 |
27070 echo 'BEGIN {' >"$tmp/subs1.awk" && | 14607 echo 'BEGIN {' >"$tmp/subs1.awk" && |
27074 { | 14611 { |
27075 echo "cat >conf$$subs.awk <<_ACEOF" && | 14612 echo "cat >conf$$subs.awk <<_ACEOF" && |
27076 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | 14613 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
27077 echo "_ACEOF" | 14614 echo "_ACEOF" |
27078 } >conf$$subs.sh || | 14615 } >conf$$subs.sh || |
27079 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | 14616 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
27080 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
27081 { (exit 1); exit 1; }; } | |
27082 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | 14617 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
27083 ac_delim='%!_!# ' | 14618 ac_delim='%!_!# ' |
27084 for ac_last_try in false false false false false :; do | 14619 for ac_last_try in false false false false false :; do |
27085 . ./conf$$subs.sh || | 14620 . ./conf$$subs.sh || |
27086 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | 14621 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
27087 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | 14622 |
27088 { (exit 1); exit 1; }; } | 14623 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
27089 | 14624 if test $ac_delim_n = $ac_delim_num; then |
27090 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then | |
27091 break | 14625 break |
27092 elif $ac_last_try; then | 14626 elif $ac_last_try; then |
27093 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | 14627 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
27094 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
27095 { (exit 1); exit 1; }; } | |
27096 else | 14628 else |
27097 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | 14629 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
27098 fi | 14630 fi |
27099 done | 14631 done |
27100 rm -f conf$$subs.sh | 14632 rm -f conf$$subs.sh |
27112 t repl | 14644 t repl |
27113 s/'"$ac_delim"'$// | 14645 s/'"$ac_delim"'$// |
27114 t delim | 14646 t delim |
27115 :nl | 14647 :nl |
27116 h | 14648 h |
27117 s/\(.\{148\}\).*/\1/ | 14649 s/\(.\{148\}\)..*/\1/ |
27118 t more1 | 14650 t more1 |
27119 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | 14651 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
27120 p | 14652 p |
27121 n | 14653 n |
27122 b repl | 14654 b repl |
27126 g | 14658 g |
27127 s/.\{148\}// | 14659 s/.\{148\}// |
27128 t nl | 14660 t nl |
27129 :delim | 14661 :delim |
27130 h | 14662 h |
27131 s/\(.\{148\}\).*/\1/ | 14663 s/\(.\{148\}\)..*/\1/ |
27132 t more2 | 14664 t more2 |
27133 s/["\\]/\\&/g; s/^/"/; s/$/"/ | 14665 s/["\\]/\\&/g; s/^/"/; s/$/"/ |
27134 p | 14666 p |
27135 b | 14667 b |
27136 :more2 | 14668 :more2 |
27179 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | 14711 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
27180 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | 14712 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
27181 else | 14713 else |
27182 cat | 14714 cat |
27183 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | 14715 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
27184 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 | 14716 || as_fn_error "could not setup config files machinery" "$LINENO" 5 |
27185 $as_echo "$as_me: error: could not setup config files machinery" >&2;} | |
27186 { (exit 1); exit 1; }; } | |
27187 _ACEOF | 14717 _ACEOF |
27188 | 14718 |
27189 # VPATH may cause trouble with some makes, so we remove $(srcdir), | 14719 # VPATH may cause trouble with some makes, so we remove $(srcdir), |
27190 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | 14720 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
27191 # trailing colons and then remove the whole line if VPATH becomes empty | 14721 # trailing colons and then remove the whole line if VPATH becomes empty |
27222 for ac_last_try in false false :; do | 14752 for ac_last_try in false false :; do |
27223 ac_t=`sed -n "/$ac_delim/p" confdefs.h` | 14753 ac_t=`sed -n "/$ac_delim/p" confdefs.h` |
27224 if test -z "$ac_t"; then | 14754 if test -z "$ac_t"; then |
27225 break | 14755 break |
27226 elif $ac_last_try; then | 14756 elif $ac_last_try; then |
27227 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 | 14757 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 |
27228 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} | |
27229 { (exit 1); exit 1; }; } | |
27230 else | 14758 else |
27231 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | 14759 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
27232 fi | 14760 fi |
27233 done | 14761 done |
27234 | 14762 |
27290 defundef = substr(arg[1], 2) | 14818 defundef = substr(arg[1], 2) |
27291 mac1 = arg[2] | 14819 mac1 = arg[2] |
27292 } | 14820 } |
27293 split(mac1, mac2, "(") #) | 14821 split(mac1, mac2, "(") #) |
27294 macro = mac2[1] | 14822 macro = mac2[1] |
14823 prefix = substr(line, 1, index(line, defundef) - 1) | |
27295 if (D_is_set[macro]) { | 14824 if (D_is_set[macro]) { |
27296 # Preserve the white space surrounding the "#". | 14825 # Preserve the white space surrounding the "#". |
27297 prefix = substr(line, 1, index(line, defundef) - 1) | |
27298 print prefix "define", macro P[macro] D[macro] | 14826 print prefix "define", macro P[macro] D[macro] |
27299 next | 14827 next |
27300 } else { | 14828 } else { |
27301 # Replace #undef with comments. This is necessary, for example, | 14829 # Replace #undef with comments. This is necessary, for example, |
27302 # in the case of _POSIX_SOURCE, which is predefined and required | 14830 # in the case of _POSIX_SOURCE, which is predefined and required |
27303 # on some systems where configure will not decide to define it. | 14831 # on some systems where configure will not decide to define it. |
27304 if (defundef == "undef") { | 14832 if (defundef == "undef") { |
27305 print "/*", line, "*/" | 14833 print "/*", prefix defundef, macro, "*/" |
27306 next | 14834 next |
27307 } | 14835 } |
27308 } | 14836 } |
27309 } | 14837 } |
27310 { print } | 14838 { print } |
27311 _ACAWK | 14839 _ACAWK |
27312 _ACEOF | 14840 _ACEOF |
27313 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 14841 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
27314 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 | 14842 as_fn_error "could not setup config headers machinery" "$LINENO" 5 |
27315 $as_echo "$as_me: error: could not setup config headers machinery" >&2;} | |
27316 { (exit 1); exit 1; }; } | |
27317 fi # test -n "$CONFIG_HEADERS" | 14843 fi # test -n "$CONFIG_HEADERS" |
27318 | 14844 |
27319 | 14845 |
27320 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | 14846 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
27321 shift | 14847 shift |
27324 case $ac_tag in | 14850 case $ac_tag in |
27325 :[FHLC]) ac_mode=$ac_tag; continue;; | 14851 :[FHLC]) ac_mode=$ac_tag; continue;; |
27326 esac | 14852 esac |
27327 case $ac_mode$ac_tag in | 14853 case $ac_mode$ac_tag in |
27328 :[FHL]*:*);; | 14854 :[FHL]*:*);; |
27329 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 | 14855 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; |
27330 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;} | |
27331 { (exit 1); exit 1; }; };; | |
27332 :[FH]-) ac_tag=-:-;; | 14856 :[FH]-) ac_tag=-:-;; |
27333 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | 14857 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
27334 esac | 14858 esac |
27335 ac_save_IFS=$IFS | 14859 ac_save_IFS=$IFS |
27336 IFS=: | 14860 IFS=: |
27354 test -f "$ac_f" || | 14878 test -f "$ac_f" || |
27355 case $ac_f in | 14879 case $ac_f in |
27356 [\\/$]*) false;; | 14880 [\\/$]*) false;; |
27357 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | 14881 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
27358 esac || | 14882 esac || |
27359 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | 14883 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
27360 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
27361 { (exit 1); exit 1; }; };; | |
27362 esac | 14884 esac |
27363 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | 14885 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
27364 ac_file_inputs="$ac_file_inputs '$ac_f'" | 14886 as_fn_append ac_file_inputs " '$ac_f'" |
27365 done | 14887 done |
27366 | 14888 |
27367 # Let's still pretend it is `configure' which instantiates (i.e., don't | 14889 # Let's still pretend it is `configure' which instantiates (i.e., don't |
27368 # use $as_me), people would be surprised to read: | 14890 # use $as_me), people would be surprised to read: |
27369 # /* config.h. Generated by config.status. */ | 14891 # /* config.h. Generated by config.status. */ |
27370 configure_input='Generated from '` | 14892 configure_input='Generated from '` |
27371 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | 14893 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
27372 `' by configure.' | 14894 `' by configure.' |
27373 if test x"$ac_file" != x-; then | 14895 if test x"$ac_file" != x-; then |
27374 configure_input="$ac_file. $configure_input" | 14896 configure_input="$ac_file. $configure_input" |
27375 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 | 14897 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
27376 $as_echo "$as_me: creating $ac_file" >&6;} | 14898 $as_echo "$as_me: creating $ac_file" >&6;} |
27377 fi | 14899 fi |
27378 # Neutralize special characters interpreted by sed in replacement strings. | 14900 # Neutralize special characters interpreted by sed in replacement strings. |
27379 case $configure_input in #( | 14901 case $configure_input in #( |
27380 *\&* | *\|* | *\\* ) | 14902 *\&* | *\|* | *\\* ) |
27383 *) ac_sed_conf_input=$configure_input;; | 14905 *) ac_sed_conf_input=$configure_input;; |
27384 esac | 14906 esac |
27385 | 14907 |
27386 case $ac_tag in | 14908 case $ac_tag in |
27387 *:-:* | *:-) cat >"$tmp/stdin" \ | 14909 *:-:* | *:-) cat >"$tmp/stdin" \ |
27388 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | 14910 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; |
27389 $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
27390 { (exit 1); exit 1; }; } ;; | |
27391 esac | 14911 esac |
27392 ;; | 14912 ;; |
27393 esac | 14913 esac |
27394 | 14914 |
27395 ac_dir=`$as_dirname -- "$ac_file" || | 14915 ac_dir=`$as_dirname -- "$ac_file" || |
27413 /^X\(\/\).*/{ | 14933 /^X\(\/\).*/{ |
27414 s//\1/ | 14934 s//\1/ |
27415 q | 14935 q |
27416 } | 14936 } |
27417 s/.*/./; q'` | 14937 s/.*/./; q'` |
27418 { as_dir="$ac_dir" | 14938 as_dir="$ac_dir"; as_fn_mkdir_p |
27419 case $as_dir in #( | |
27420 -*) as_dir=./$as_dir;; | |
27421 esac | |
27422 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
27423 as_dirs= | |
27424 while :; do | |
27425 case $as_dir in #( | |
27426 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
27427 *) as_qdir=$as_dir;; | |
27428 esac | |
27429 as_dirs="'$as_qdir' $as_dirs" | |
27430 as_dir=`$as_dirname -- "$as_dir" || | |
27431 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
27432 X"$as_dir" : 'X\(//\)[^/]' \| \ | |
27433 X"$as_dir" : 'X\(//\)$' \| \ | |
27434 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
27435 $as_echo X"$as_dir" | | |
27436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
27437 s//\1/ | |
27438 q | |
27439 } | |
27440 /^X\(\/\/\)[^/].*/{ | |
27441 s//\1/ | |
27442 q | |
27443 } | |
27444 /^X\(\/\/\)$/{ | |
27445 s//\1/ | |
27446 q | |
27447 } | |
27448 /^X\(\/\).*/{ | |
27449 s//\1/ | |
27450 q | |
27451 } | |
27452 s/.*/./; q'` | |
27453 test -d "$as_dir" && break | |
27454 done | |
27455 test -z "$as_dirs" || eval "mkdir $as_dirs" | |
27456 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
27457 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
27458 { (exit 1); exit 1; }; }; } | |
27459 ac_builddir=. | 14939 ac_builddir=. |
27460 | 14940 |
27461 case "$ac_dir" in | 14941 case "$ac_dir" in |
27462 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | 14942 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
27463 *) | 14943 *) |
27505 | 14985 |
27506 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 14986 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
27507 # If the template does not know about datarootdir, expand it. | 14987 # If the template does not know about datarootdir, expand it. |
27508 # FIXME: This hack should be removed a few years after 2.60. | 14988 # FIXME: This hack should be removed a few years after 2.60. |
27509 ac_datarootdir_hack=; ac_datarootdir_seen= | 14989 ac_datarootdir_hack=; ac_datarootdir_seen= |
27510 | |
27511 ac_sed_dataroot=' | 14990 ac_sed_dataroot=' |
27512 /datarootdir/ { | 14991 /datarootdir/ { |
27513 p | 14992 p |
27514 q | 14993 q |
27515 } | 14994 } |
27516 /@datadir@/p | 14995 /@datadir@/p |
27517 /@docdir@/p | 14996 /@docdir@/p |
27518 /@infodir@/p | 14997 /@infodir@/p |
27519 /@localedir@/p | 14998 /@localedir@/p |
27520 /@mandir@/p | 14999 /@mandir@/p' |
27521 ' | |
27522 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | 15000 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
27523 *datarootdir*) ac_datarootdir_seen=yes;; | 15001 *datarootdir*) ac_datarootdir_seen=yes;; |
27524 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | 15002 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
27525 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | 15003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
27526 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | 15004 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
27527 _ACEOF | 15005 _ACEOF |
27528 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 15006 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
27529 ac_datarootdir_hack=' | 15007 ac_datarootdir_hack=' |
27530 s&@datadir@&$datadir&g | 15008 s&@datadir@&$datadir&g |
27531 s&@docdir@&$docdir&g | 15009 s&@docdir@&$docdir&g |
27532 s&@infodir@&$infodir&g | 15010 s&@infodir@&$infodir&g |
27533 s&@localedir@&$localedir&g | 15011 s&@localedir@&$localedir&g |
27534 s&@mandir@&$mandir&g | 15012 s&@mandir@&$mandir&g |
27535 s&\\\${datarootdir}&$datarootdir&g' ;; | 15013 s&\\\${datarootdir}&$datarootdir&g' ;; |
27536 esac | 15014 esac |
27537 _ACEOF | 15015 _ACEOF |
27538 | 15016 |
27539 # Neutralize VPATH when `$srcdir' = `.'. | 15017 # Neutralize VPATH when `$srcdir' = `.'. |
27540 # Shell code in configure.ac might set extrasub. | 15018 # Shell code in configure.ac might set extrasub. |
27558 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | 15036 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
27559 s&@INSTALL@&$ac_INSTALL&;t t | 15037 s&@INSTALL@&$ac_INSTALL&;t t |
27560 $ac_datarootdir_hack | 15038 $ac_datarootdir_hack |
27561 " | 15039 " |
27562 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | 15040 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ |
27563 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | 15041 || as_fn_error "could not create $ac_file" "$LINENO" 5 |
27564 $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
27565 { (exit 1); exit 1; }; } | |
27566 | 15042 |
27567 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | 15043 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
27568 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | 15044 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
27569 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | 15045 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
27570 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | 15046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
27571 which seems to be undefined. Please make sure it is defined." >&5 | 15047 which seems to be undefined. Please make sure it is defined." >&5 |
27572 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | 15048 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
27573 which seems to be undefined. Please make sure it is defined." >&2;} | 15049 which seems to be undefined. Please make sure it is defined." >&2;} |
27574 | 15050 |
27575 rm -f "$tmp/stdin" | 15051 rm -f "$tmp/stdin" |
27576 case $ac_file in | 15052 case $ac_file in |
27577 -) cat "$tmp/out" && rm -f "$tmp/out";; | 15053 -) cat "$tmp/out" && rm -f "$tmp/out";; |
27578 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | 15054 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
27579 esac \ | 15055 esac \ |
27580 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | 15056 || as_fn_error "could not create $ac_file" "$LINENO" 5 |
27581 $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
27582 { (exit 1); exit 1; }; } | |
27583 ;; | 15057 ;; |
27584 :H) | 15058 :H) |
27585 # | 15059 # |
27586 # CONFIG_HEADER | 15060 # CONFIG_HEADER |
27587 # | 15061 # |
27588 if test x"$ac_file" != x-; then | 15062 if test x"$ac_file" != x-; then |
27589 { | 15063 { |
27590 $as_echo "/* $configure_input */" \ | 15064 $as_echo "/* $configure_input */" \ |
27591 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | 15065 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" |
27592 } >"$tmp/config.h" \ | 15066 } >"$tmp/config.h" \ |
27593 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | 15067 || as_fn_error "could not create $ac_file" "$LINENO" 5 |
27594 $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
27595 { (exit 1); exit 1; }; } | |
27596 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | 15068 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
27597 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | 15069 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
27598 $as_echo "$as_me: $ac_file is unchanged" >&6;} | 15070 $as_echo "$as_me: $ac_file is unchanged" >&6;} |
27599 else | 15071 else |
27600 rm -f "$ac_file" | 15072 rm -f "$ac_file" |
27601 mv "$tmp/config.h" "$ac_file" \ | 15073 mv "$tmp/config.h" "$ac_file" \ |
27602 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | 15074 || as_fn_error "could not create $ac_file" "$LINENO" 5 |
27603 $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
27604 { (exit 1); exit 1; }; } | |
27605 fi | 15075 fi |
27606 else | 15076 else |
27607 $as_echo "/* $configure_input */" \ | 15077 $as_echo "/* $configure_input */" \ |
27608 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | 15078 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ |
27609 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 | 15079 || as_fn_error "could not create -" "$LINENO" 5 |
27610 $as_echo "$as_me: error: could not create -" >&2;} | |
27611 { (exit 1); exit 1; }; } | |
27612 fi | 15080 fi |
27613 ;; | 15081 ;; |
27614 | 15082 |
27615 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 | 15083 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
27616 $as_echo "$as_me: executing $ac_file commands" >&6;} | 15084 $as_echo "$as_me: executing $ac_file commands" >&6;} |
27617 ;; | 15085 ;; |
27618 esac | 15086 esac |
27619 | 15087 |
27620 | 15088 |
27681 | 15149 |
27682 esac | 15150 esac |
27683 done # for ac_tag | 15151 done # for ac_tag |
27684 | 15152 |
27685 | 15153 |
27686 { (exit 0); exit 0; } | 15154 as_fn_exit 0 |
27687 _ACEOF | 15155 _ACEOF |
27688 chmod +x $CONFIG_STATUS | |
27689 ac_clean_files=$ac_clean_files_save | 15156 ac_clean_files=$ac_clean_files_save |
27690 | 15157 |
27691 test $ac_write_fail = 0 || | 15158 test $ac_write_fail = 0 || |
27692 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 | 15159 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
27693 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} | |
27694 { (exit 1); exit 1; }; } | |
27695 | 15160 |
27696 | 15161 |
27697 # configure is writing to config.log, and then calls config.status. | 15162 # configure is writing to config.log, and then calls config.status. |
27698 # config.status does its own redirection, appending to config.log. | 15163 # config.status does its own redirection, appending to config.log. |
27699 # Unfortunately, on DOS this fails, as config.log is still kept open | 15164 # Unfortunately, on DOS this fails, as config.log is still kept open |
27710 exec 5>/dev/null | 15175 exec 5>/dev/null |
27711 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | 15176 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
27712 exec 5>>config.log | 15177 exec 5>>config.log |
27713 # Use ||, not &&, to avoid exiting from the if with $? = 1, which | 15178 # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
27714 # would make configure fail if this is the last instruction. | 15179 # would make configure fail if this is the last instruction. |
27715 $ac_cs_success || { (exit 1); exit 1; } | 15180 $ac_cs_success || as_fn_exit $? |
27716 fi | 15181 fi |
27717 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | 15182 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
27718 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5 | 15183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
27719 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;} | 15184 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
27720 fi | 15185 fi |
27721 | 15186 |
27722 | 15187 |