comparison src/auto/configure @ 2158:29df04ae0fad vim73

Switched from autoconf 2.63 to 2.65.
author Bram Moolenaar <bram@vim.org>
date Sat, 15 May 2010 15:04:53 +0200
parents 8ef9da918a98
children 733f0dc510c3 5028c4d6d825
comparison
equal deleted inserted replaced
2156:e8ef654038c4 2158:29df04ae0fad
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.63. 3 # Generated by GNU Autoconf 2.65.
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= 550 PACKAGE_NAME=
596 PACKAGE_TARNAME= 551 PACKAGE_TARNAME=
597 PACKAGE_VERSION= 552 PACKAGE_VERSION=
598 PACKAGE_STRING= 553 PACKAGE_STRING=
599 PACKAGE_BUGREPORT= 554 PACKAGE_BUGREPORT=
555 PACKAGE_URL=
600 556
601 ac_unique_file="vim.h" 557 ac_unique_file="vim.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>
761 sbindir 717 sbindir
762 bindir 718 bindir
763 program_transform_name 719 program_transform_name
764 prefix 720 prefix
765 exec_prefix 721 exec_prefix
722 PACKAGE_URL
766 PACKAGE_BUGREPORT 723 PACKAGE_BUGREPORT
767 PACKAGE_STRING 724 PACKAGE_STRING
768 PACKAGE_VERSION 725 PACKAGE_VERSION
769 PACKAGE_TARNAME 726 PACKAGE_TARNAME
770 PACKAGE_NAME 727 PACKAGE_NAME
943 900
944 -disable-* | --disable-*) 901 -disable-* | --disable-*)
945 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 902 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
946 # Reject names that are not valid shell variable names. 903 # Reject names that are not valid shell variable names.
947 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 904 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
948 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 905 as_fn_error "invalid feature name: $ac_useropt"
949 { (exit 1); exit 1; }; }
950 ac_useropt_orig=$ac_useropt 906 ac_useropt_orig=$ac_useropt
951 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 907 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
952 case $ac_user_opts in 908 case $ac_user_opts in
953 *" 909 *"
954 "enable_$ac_useropt" 910 "enable_$ac_useropt"
970 926
971 -enable-* | --enable-*) 927 -enable-* | --enable-*)
972 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 928 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
973 # Reject names that are not valid shell variable names. 929 # Reject names that are not valid shell variable names.
974 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 930 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
975 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 931 as_fn_error "invalid feature name: $ac_useropt"
976 { (exit 1); exit 1; }; }
977 ac_useropt_orig=$ac_useropt 932 ac_useropt_orig=$ac_useropt
978 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 933 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
979 case $ac_user_opts in 934 case $ac_user_opts in
980 *" 935 *"
981 "enable_$ac_useropt" 936 "enable_$ac_useropt"
1175 1130
1176 -with-* | --with-*) 1131 -with-* | --with-*)
1177 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1132 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1178 # Reject names that are not valid shell variable names. 1133 # Reject names that are not valid shell variable names.
1179 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1134 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1180 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1135 as_fn_error "invalid package name: $ac_useropt"
1181 { (exit 1); exit 1; }; }
1182 ac_useropt_orig=$ac_useropt 1136 ac_useropt_orig=$ac_useropt
1183 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1137 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1184 case $ac_user_opts in 1138 case $ac_user_opts in
1185 *" 1139 *"
1186 "with_$ac_useropt" 1140 "with_$ac_useropt"
1192 1146
1193 -without-* | --without-*) 1147 -without-* | --without-*)
1194 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1148 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1195 # Reject names that are not valid shell variable names. 1149 # Reject names that are not valid shell variable names.
1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1150 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1151 as_fn_error "invalid package name: $ac_useropt"
1198 { (exit 1); exit 1; }; }
1199 ac_useropt_orig=$ac_useropt 1152 ac_useropt_orig=$ac_useropt
1200 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1153 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1201 case $ac_user_opts in 1154 case $ac_user_opts in
1202 *" 1155 *"
1203 "with_$ac_useropt" 1156 "with_$ac_useropt"
1223 ac_prev=x_libraries ;; 1176 ac_prev=x_libraries ;;
1224 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1177 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1225 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1178 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1226 x_libraries=$ac_optarg ;; 1179 x_libraries=$ac_optarg ;;
1227 1180
1228 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1181 -*) as_fn_error "unrecognized option: \`$ac_option'
1229 Try \`$0 --help' for more information." >&2 1182 Try \`$0 --help' for more information."
1230 { (exit 1); exit 1; }; }
1231 ;; 1183 ;;
1232 1184
1233 *=*) 1185 *=*)
1234 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1186 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1235 # Reject names that are not valid shell variable names. 1187 # Reject names that are not valid shell variable names.
1236 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1188 case $ac_envvar in #(
1237 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1189 '' | [0-9]* | *[!_$as_cr_alnum]* )
1238 { (exit 1); exit 1; }; } 1190 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1191 esac
1239 eval $ac_envvar=\$ac_optarg 1192 eval $ac_envvar=\$ac_optarg
1240 export $ac_envvar ;; 1193 export $ac_envvar ;;
1241 1194
1242 *) 1195 *)
1243 # FIXME: should be removed in autoconf 3.0. 1196 # FIXME: should be removed in autoconf 3.0.
1250 esac 1203 esac
1251 done 1204 done
1252 1205
1253 if test -n "$ac_prev"; then 1206 if test -n "$ac_prev"; then
1254 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1207 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1255 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1208 as_fn_error "missing argument to $ac_option"
1256 { (exit 1); exit 1; }; }
1257 fi 1209 fi
1258 1210
1259 if test -n "$ac_unrecognized_opts"; then 1211 if test -n "$ac_unrecognized_opts"; then
1260 case $enable_option_checking in 1212 case $enable_option_checking in
1261 no) ;; 1213 no) ;;
1262 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 1214 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1263 { (exit 1); exit 1; }; } ;;
1264 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1215 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1265 esac 1216 esac
1266 fi 1217 fi
1267 1218
1268 # Check all directory arguments for consistency. 1219 # Check all directory arguments for consistency.
1281 # Be sure to have absolute directory names. 1232 # Be sure to have absolute directory names.
1282 case $ac_val in 1233 case $ac_val in
1283 [\\/$]* | ?:[\\/]* ) continue;; 1234 [\\/$]* | ?:[\\/]* ) continue;;
1284 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1235 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1285 esac 1236 esac
1286 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1237 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1287 { (exit 1); exit 1; }; }
1288 done 1238 done
1289 1239
1290 # There might be people who depend on the old broken behavior: `$host' 1240 # There might be people who depend on the old broken behavior: `$host'
1291 # used to hold the argument of --host etc. 1241 # used to hold the argument of --host etc.
1292 # FIXME: To remove some day. 1242 # FIXME: To remove some day.
1312 1262
1313 1263
1314 ac_pwd=`pwd` && test -n "$ac_pwd" && 1264 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1315 ac_ls_di=`ls -di .` && 1265 ac_ls_di=`ls -di .` &&
1316 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1266 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1317 { $as_echo "$as_me: error: working directory cannot be determined" >&2 1267 as_fn_error "working directory cannot be determined"
1318 { (exit 1); exit 1; }; }
1319 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1268 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1320 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1269 as_fn_error "pwd does not report name of working directory"
1321 { (exit 1); exit 1; }; }
1322 1270
1323 1271
1324 # Find the source files, if location was not specified. 1272 # Find the source files, if location was not specified.
1325 if test -z "$srcdir"; then 1273 if test -z "$srcdir"; then
1326 ac_srcdir_defaulted=yes 1274 ac_srcdir_defaulted=yes
1355 else 1303 else
1356 ac_srcdir_defaulted=no 1304 ac_srcdir_defaulted=no
1357 fi 1305 fi
1358 if test ! -r "$srcdir/$ac_unique_file"; then 1306 if test ! -r "$srcdir/$ac_unique_file"; then
1359 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1307 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1360 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1308 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1361 { (exit 1); exit 1; }; }
1362 fi 1309 fi
1363 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1310 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1364 ac_abs_confdir=`( 1311 ac_abs_confdir=`(
1365 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1312 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1366 { (exit 1); exit 1; }; }
1367 pwd)` 1313 pwd)`
1368 # When building in place, set srcdir=. 1314 # When building in place, set srcdir=.
1369 if test "$ac_abs_confdir" = "$ac_pwd"; then 1315 if test "$ac_abs_confdir" = "$ac_pwd"; then
1370 srcdir=. 1316 srcdir=.
1371 fi 1317 fi
1523 CC C compiler command 1469 CC C compiler command
1524 CFLAGS C compiler flags 1470 CFLAGS C compiler flags
1525 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1471 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1526 nonstandard directory <lib dir> 1472 nonstandard directory <lib dir>
1527 LIBS libraries to pass to the linker, e.g. -l<library> 1473 LIBS libraries to pass to the linker, e.g. -l<library>
1528 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1474 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1529 you have headers in a nonstandard directory <include dir> 1475 you have headers in a nonstandard directory <include dir>
1530 CPP C preprocessor 1476 CPP C preprocessor
1531 XMKMF Path to xmkmf, Makefile generator for X Window System 1477 XMKMF Path to xmkmf, Makefile generator for X Window System
1532 1478
1533 Use these variables to override the choices made by `configure' or to help 1479 Use these variables to override the choices made by `configure' or to help
1534 it to find libraries and programs with nonstandard names/locations. 1480 it to find libraries and programs with nonstandard names/locations.
1535 1481
1482 Report bugs to the package provider.
1536 _ACEOF 1483 _ACEOF
1537 ac_status=$? 1484 ac_status=$?
1538 fi 1485 fi
1539 1486
1540 if test "$ac_init_help" = "recursive"; then 1487 if test "$ac_init_help" = "recursive"; then
1594 1541
1595 test -n "$ac_init_help" && exit $ac_status 1542 test -n "$ac_init_help" && exit $ac_status
1596 if $ac_init_version; then 1543 if $ac_init_version; then
1597 cat <<\_ACEOF 1544 cat <<\_ACEOF
1598 configure 1545 configure
1599 generated by GNU Autoconf 2.63 1546 generated by GNU Autoconf 2.65
1600 1547
1601 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 1548 Copyright (C) 2009 Free Software Foundation, Inc.
1602 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1603 This configure script is free software; the Free Software Foundation 1549 This configure script is free software; the Free Software Foundation
1604 gives unlimited permission to copy, distribute and modify it. 1550 gives unlimited permission to copy, distribute and modify it.
1605 _ACEOF 1551 _ACEOF
1606 exit 1552 exit
1607 fi 1553 fi
1554
1555 ## ------------------------ ##
1556 ## Autoconf initialization. ##
1557 ## ------------------------ ##
1558
1559 # ac_fn_c_try_compile LINENO
1560 # --------------------------
1561 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1562 ac_fn_c_try_compile ()
1563 {
1564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1565 rm -f conftest.$ac_objext
1566 if { { ac_try="$ac_compile"
1567 case "(($ac_try" in
1568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1569 *) ac_try_echo=$ac_try;;
1570 esac
1571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1572 $as_echo "$ac_try_echo"; } >&5
1573 (eval "$ac_compile") 2>conftest.err
1574 ac_status=$?
1575 if test -s conftest.err; then
1576 grep -v '^ *+' conftest.err >conftest.er1
1577 cat conftest.er1 >&5
1578 mv -f conftest.er1 conftest.err
1579 fi
1580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1581 test $ac_status = 0; } && {
1582 test -z "$ac_c_werror_flag" ||
1583 test ! -s conftest.err
1584 } && test -s conftest.$ac_objext; then :
1585 ac_retval=0
1586 else
1587 $as_echo "$as_me: failed program was:" >&5
1588 sed 's/^/| /' conftest.$ac_ext >&5
1589
1590 ac_retval=1
1591 fi
1592 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1593 as_fn_set_status $ac_retval
1594
1595 } # ac_fn_c_try_compile
1596
1597 # ac_fn_c_try_cpp LINENO
1598 # ----------------------
1599 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1600 ac_fn_c_try_cpp ()
1601 {
1602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1603 if { { ac_try="$ac_cpp conftest.$ac_ext"
1604 case "(($ac_try" in
1605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1606 *) ac_try_echo=$ac_try;;
1607 esac
1608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1609 $as_echo "$ac_try_echo"; } >&5
1610 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1611 ac_status=$?
1612 if test -s conftest.err; then
1613 grep -v '^ *+' conftest.err >conftest.er1
1614 cat conftest.er1 >&5
1615 mv -f conftest.er1 conftest.err
1616 fi
1617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1618 test $ac_status = 0; } >/dev/null && {
1619 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1620 test ! -s conftest.err
1621 }; then :
1622 ac_retval=0
1623 else
1624 $as_echo "$as_me: failed program was:" >&5
1625 sed 's/^/| /' conftest.$ac_ext >&5
1626
1627 ac_retval=1
1628 fi
1629 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1630 as_fn_set_status $ac_retval
1631
1632 } # ac_fn_c_try_cpp
1633
1634 # ac_fn_c_try_link LINENO
1635 # -----------------------
1636 # Try to link conftest.$ac_ext, and return whether this succeeded.
1637 ac_fn_c_try_link ()
1638 {
1639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640 rm -f conftest.$ac_objext conftest$ac_exeext
1641 if { { ac_try="$ac_link"
1642 case "(($ac_try" in
1643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1644 *) ac_try_echo=$ac_try;;
1645 esac
1646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1647 $as_echo "$ac_try_echo"; } >&5
1648 (eval "$ac_link") 2>conftest.err
1649 ac_status=$?
1650 if test -s conftest.err; then
1651 grep -v '^ *+' conftest.err >conftest.er1
1652 cat conftest.er1 >&5
1653 mv -f conftest.er1 conftest.err
1654 fi
1655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1656 test $ac_status = 0; } && {
1657 test -z "$ac_c_werror_flag" ||
1658 test ! -s conftest.err
1659 } && test -s conftest$ac_exeext && {
1660 test "$cross_compiling" = yes ||
1661 $as_test_x conftest$ac_exeext
1662 }; then :
1663 ac_retval=0
1664 else
1665 $as_echo "$as_me: failed program was:" >&5
1666 sed 's/^/| /' conftest.$ac_ext >&5
1667
1668 ac_retval=1
1669 fi
1670 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1671 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1672 # interfere with the next link command; also delete a directory that is
1673 # left behind by Apple's compiler. We do this before executing the actions.
1674 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1675 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1676 as_fn_set_status $ac_retval
1677
1678 } # ac_fn_c_try_link
1679
1680 # ac_fn_c_try_run LINENO
1681 # ----------------------
1682 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1683 # that executables *can* be run.
1684 ac_fn_c_try_run ()
1685 {
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 if { { ac_try="$ac_link"
1688 case "(($ac_try" in
1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690 *) ac_try_echo=$ac_try;;
1691 esac
1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693 $as_echo "$ac_try_echo"; } >&5
1694 (eval "$ac_link") 2>&5
1695 ac_status=$?
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1698 { { case "(($ac_try" in
1699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700 *) ac_try_echo=$ac_try;;
1701 esac
1702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703 $as_echo "$ac_try_echo"; } >&5
1704 (eval "$ac_try") 2>&5
1705 ac_status=$?
1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; }; }; then :
1708 ac_retval=0
1709 else
1710 $as_echo "$as_me: program exited with status $ac_status" >&5
1711 $as_echo "$as_me: failed program was:" >&5
1712 sed 's/^/| /' conftest.$ac_ext >&5
1713
1714 ac_retval=$ac_status
1715 fi
1716 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1717 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1718 as_fn_set_status $ac_retval
1719
1720 } # ac_fn_c_try_run
1721
1722 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1723 # -------------------------------------------------------
1724 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1725 # the include files in INCLUDES and setting the cache variable VAR
1726 # accordingly.
1727 ac_fn_c_check_header_mongrel ()
1728 {
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1732 $as_echo_n "checking for $2... " >&6; }
1733 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1734 $as_echo_n "(cached) " >&6
1735 fi
1736 eval ac_res=\$$3
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1738 $as_echo "$ac_res" >&6; }
1739 else
1740 # Is the header compilable?
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1742 $as_echo_n "checking $2 usability... " >&6; }
1743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744 /* end confdefs.h. */
1745 $4
1746 #include <$2>
1747 _ACEOF
1748 if ac_fn_c_try_compile "$LINENO"; then :
1749 ac_header_compiler=yes
1750 else
1751 ac_header_compiler=no
1752 fi
1753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1755 $as_echo "$ac_header_compiler" >&6; }
1756
1757 # Is the header present?
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1759 $as_echo_n "checking $2 presence... " >&6; }
1760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1761 /* end confdefs.h. */
1762 #include <$2>
1763 _ACEOF
1764 if ac_fn_c_try_cpp "$LINENO"; then :
1765 ac_header_preproc=yes
1766 else
1767 ac_header_preproc=no
1768 fi
1769 rm -f conftest.err conftest.$ac_ext
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1771 $as_echo "$ac_header_preproc" >&6; }
1772
1773 # So? What about this header?
1774 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1775 yes:no: )
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1777 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1779 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1780 ;;
1781 no:yes:* )
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1783 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1785 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1787 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1789 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1791 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1792 ;;
1793 esac
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1795 $as_echo_n "checking for $2... " >&6; }
1796 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1797 $as_echo_n "(cached) " >&6
1798 else
1799 eval "$3=\$ac_header_compiler"
1800 fi
1801 eval ac_res=\$$3
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1803 $as_echo "$ac_res" >&6; }
1804 fi
1805 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1806
1807 } # ac_fn_c_check_header_mongrel
1808
1809 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1810 # -------------------------------------------------------
1811 # Tests whether HEADER exists and can be compiled using the include files in
1812 # INCLUDES, setting the cache variable VAR accordingly.
1813 ac_fn_c_check_header_compile ()
1814 {
1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1817 $as_echo_n "checking for $2... " >&6; }
1818 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1819 $as_echo_n "(cached) " >&6
1820 else
1821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822 /* end confdefs.h. */
1823 $4
1824 #include <$2>
1825 _ACEOF
1826 if ac_fn_c_try_compile "$LINENO"; then :
1827 eval "$3=yes"
1828 else
1829 eval "$3=no"
1830 fi
1831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1832 fi
1833 eval ac_res=\$$3
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1835 $as_echo "$ac_res" >&6; }
1836 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1837
1838 } # ac_fn_c_check_header_compile
1839
1840 # ac_fn_c_check_func LINENO FUNC VAR
1841 # ----------------------------------
1842 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1843 ac_fn_c_check_func ()
1844 {
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1847 $as_echo_n "checking for $2... " >&6; }
1848 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1849 $as_echo_n "(cached) " >&6
1850 else
1851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1852 /* end confdefs.h. */
1853 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1855 #define $2 innocuous_$2
1856
1857 /* System header to define __stub macros and hopefully few prototypes,
1858 which can conflict with char $2 (); below.
1859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1860 <limits.h> exists even on freestanding compilers. */
1861
1862 #ifdef __STDC__
1863 # include <limits.h>
1864 #else
1865 # include <assert.h>
1866 #endif
1867
1868 #undef $2
1869
1870 /* Override any GCC internal prototype to avoid an error.
1871 Use char because int might match the return type of a GCC
1872 builtin and then its argument prototype would still apply. */
1873 #ifdef __cplusplus
1874 extern "C"
1875 #endif
1876 char $2 ();
1877 /* The GNU C library defines this for functions which it implements
1878 to always fail with ENOSYS. Some functions are actually named
1879 something starting with __ and the normal name is an alias. */
1880 #if defined __stub_$2 || defined __stub___$2
1881 choke me
1882 #endif
1883
1884 int
1885 main ()
1886 {
1887 return $2 ();
1888 ;
1889 return 0;
1890 }
1891 _ACEOF
1892 if ac_fn_c_try_link "$LINENO"; then :
1893 eval "$3=yes"
1894 else
1895 eval "$3=no"
1896 fi
1897 rm -f core conftest.err conftest.$ac_objext \
1898 conftest$ac_exeext conftest.$ac_ext
1899 fi
1900 eval ac_res=\$$3
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902 $as_echo "$ac_res" >&6; }
1903 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1904
1905 } # ac_fn_c_check_func
1906
1907 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1908 # -------------------------------------------
1909 # Tests whether TYPE exists after having included INCLUDES, setting cache
1910 # variable VAR accordingly.
1911 ac_fn_c_check_type ()
1912 {
1913 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1915 $as_echo_n "checking for $2... " >&6; }
1916 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1917 $as_echo_n "(cached) " >&6
1918 else
1919 eval "$3=no"
1920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921 /* end confdefs.h. */
1922 $4
1923 int
1924 main ()
1925 {
1926 if (sizeof ($2))
1927 return 0;
1928 ;
1929 return 0;
1930 }
1931 _ACEOF
1932 if ac_fn_c_try_compile "$LINENO"; then :
1933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934 /* end confdefs.h. */
1935 $4
1936 int
1937 main ()
1938 {
1939 if (sizeof (($2)))
1940 return 0;
1941 ;
1942 return 0;
1943 }
1944 _ACEOF
1945 if ac_fn_c_try_compile "$LINENO"; then :
1946
1947 else
1948 eval "$3=yes"
1949 fi
1950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1951 fi
1952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1953 fi
1954 eval ac_res=\$$3
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956 $as_echo "$ac_res" >&6; }
1957 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1958
1959 } # ac_fn_c_check_type
1608 cat >auto/config.log <<_ACEOF 1960 cat >auto/config.log <<_ACEOF
1609 This file contains any messages produced by compilers while 1961 This file contains any messages produced by compilers while
1610 running configure, to aid debugging if configure makes a mistake. 1962 running configure, to aid debugging if configure makes a mistake.
1611 1963
1612 It was created by $as_me, which was 1964 It was created by $as_me, which was
1613 generated by GNU Autoconf 2.63. Invocation command line was 1965 generated by GNU Autoconf 2.65. Invocation command line was
1614 1966
1615 $ $0 $@ 1967 $ $0 $@
1616 1968
1617 _ACEOF 1969 _ACEOF
1618 exec 5>>auto/config.log 1970 exec 5>>auto/config.log
1644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1645 for as_dir in $PATH 1997 for as_dir in $PATH
1646 do 1998 do
1647 IFS=$as_save_IFS 1999 IFS=$as_save_IFS
1648 test -z "$as_dir" && as_dir=. 2000 test -z "$as_dir" && as_dir=.
1649 $as_echo "PATH: $as_dir" 2001 $as_echo "PATH: $as_dir"
1650 done 2002 done
1651 IFS=$as_save_IFS 2003 IFS=$as_save_IFS
1652 2004
1653 } >&5 2005 } >&5
1654 2006
1655 cat >&5 <<_ACEOF 2007 cat >&5 <<_ACEOF
1682 continue ;; 2034 continue ;;
1683 *\'*) 2035 *\'*)
1684 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2036 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1685 esac 2037 esac
1686 case $ac_pass in 2038 case $ac_pass in
1687 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 2039 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1688 2) 2040 2)
1689 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 2041 as_fn_append ac_configure_args1 " '$ac_arg'"
1690 if test $ac_must_keep_next = true; then 2042 if test $ac_must_keep_next = true; then
1691 ac_must_keep_next=false # Got value, back to normal. 2043 ac_must_keep_next=false # Got value, back to normal.
1692 else 2044 else
1693 case $ac_arg in 2045 case $ac_arg in
1694 *=* | --config-cache | -C | -disable-* | --disable-* \ 2046 *=* | --config-cache | -C | -disable-* | --disable-* \
1700 esac 2052 esac
1701 ;; 2053 ;;
1702 -* ) ac_must_keep_next=true ;; 2054 -* ) ac_must_keep_next=true ;;
1703 esac 2055 esac
1704 fi 2056 fi
1705 ac_configure_args="$ac_configure_args '$ac_arg'" 2057 as_fn_append ac_configure_args " '$ac_arg'"
1706 ;; 2058 ;;
1707 esac 2059 esac
1708 done 2060 done
1709 done 2061 done
1710 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 2062 { ac_configure_args0=; unset ac_configure_args0;}
1711 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 2063 { ac_configure_args1=; unset ac_configure_args1;}
1712 2064
1713 # When interrupted or exit'd, cleanup temporary files, and complete 2065 # When interrupted or exit'd, cleanup temporary files, and complete
1714 # config.log. We remove comments because anyway the quotes in there 2066 # config.log. We remove comments because anyway the quotes in there
1715 # would cause problems or look ugly. 2067 # would cause problems or look ugly.
1716 # WARNING: Use '\'' to represent an apostrophe within the trap. 2068 # WARNING: Use '\'' to represent an apostrophe within the trap.
1731 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2083 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1732 eval ac_val=\$$ac_var 2084 eval ac_val=\$$ac_var
1733 case $ac_val in #( 2085 case $ac_val in #(
1734 *${as_nl}*) 2086 *${as_nl}*)
1735 case $ac_var in #( 2087 case $ac_var in #(
1736 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 2088 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1737 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2089 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1738 esac 2090 esac
1739 case $ac_var in #( 2091 case $ac_var in #(
1740 _ | IFS | as_nl) ;; #( 2092 _ | IFS | as_nl) ;; #(
1741 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2093 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1742 *) $as_unset $ac_var ;; 2094 *) { eval $ac_var=; unset $ac_var;} ;;
1743 esac ;; 2095 esac ;;
1744 esac 2096 esac
1745 done 2097 done
1746 (set) 2>&1 | 2098 (set) 2>&1 |
1747 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2099 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1809 rm -f core *.core core.conftest.* && 2161 rm -f core *.core core.conftest.* &&
1810 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2162 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1811 exit $exit_status 2163 exit $exit_status
1812 ' 0 2164 ' 0
1813 for ac_signal in 1 2 13 15; do 2165 for ac_signal in 1 2 13 15; do
1814 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 2166 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1815 done 2167 done
1816 ac_signal=0 2168 ac_signal=0
1817 2169
1818 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2170 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1819 rm -f -r conftest* confdefs.h 2171 rm -f -r conftest* confdefs.h
1820 2172
2173 $as_echo "/* confdefs.h */" > confdefs.h
2174
1821 # Predefined preprocessor variables. 2175 # Predefined preprocessor variables.
1822 2176
1823 cat >>confdefs.h <<_ACEOF 2177 cat >>confdefs.h <<_ACEOF
1824 #define PACKAGE_NAME "$PACKAGE_NAME" 2178 #define PACKAGE_NAME "$PACKAGE_NAME"
1825 _ACEOF 2179 _ACEOF
1826 2180
1827
1828 cat >>confdefs.h <<_ACEOF 2181 cat >>confdefs.h <<_ACEOF
1829 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2182 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1830 _ACEOF 2183 _ACEOF
1831 2184
1832
1833 cat >>confdefs.h <<_ACEOF 2185 cat >>confdefs.h <<_ACEOF
1834 #define PACKAGE_VERSION "$PACKAGE_VERSION" 2186 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1835 _ACEOF 2187 _ACEOF
1836 2188
1837
1838 cat >>confdefs.h <<_ACEOF 2189 cat >>confdefs.h <<_ACEOF
1839 #define PACKAGE_STRING "$PACKAGE_STRING" 2190 #define PACKAGE_STRING "$PACKAGE_STRING"
1840 _ACEOF 2191 _ACEOF
1841 2192
1842
1843 cat >>confdefs.h <<_ACEOF 2193 cat >>confdefs.h <<_ACEOF
1844 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2194 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2195 _ACEOF
2196
2197 cat >>confdefs.h <<_ACEOF
2198 #define PACKAGE_URL "$PACKAGE_URL"
1845 _ACEOF 2199 _ACEOF
1846 2200
1847 2201
1848 # Let the site file select an alternate cache file if it wants to. 2202 # Let the site file select an alternate cache file if it wants to.
1849 # Prefer an explicitly selected file to automatically selected ones. 2203 # Prefer an explicitly selected file to automatically selected ones.
1859 ac_site_file2=$ac_default_prefix/etc/config.site 2213 ac_site_file2=$ac_default_prefix/etc/config.site
1860 fi 2214 fi
1861 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2215 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1862 do 2216 do
1863 test "x$ac_site_file" = xNONE && continue 2217 test "x$ac_site_file" = xNONE && continue
1864 if test -r "$ac_site_file"; then 2218 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1865 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 2219 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1866 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 2220 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1867 sed 's/^/| /' "$ac_site_file" >&5 2221 sed 's/^/| /' "$ac_site_file" >&5
1868 . "$ac_site_file" 2222 . "$ac_site_file"
1869 fi 2223 fi
1870 done 2224 done
1871 2225
1872 if test -r "$cache_file"; then 2226 if test -r "$cache_file"; then
1873 # Some versions of bash will fail to source /dev/null (special 2227 # Some versions of bash will fail to source /dev/null (special files
1874 # files actually), so we avoid doing that. 2228 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1875 if test -f "$cache_file"; then 2229 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1876 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 2230 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1877 $as_echo "$as_me: loading cache $cache_file" >&6;} 2231 $as_echo "$as_me: loading cache $cache_file" >&6;}
1878 case $cache_file in 2232 case $cache_file in
1879 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2233 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1880 *) . "./$cache_file";; 2234 *) . "./$cache_file";;
1881 esac 2235 esac
1882 fi 2236 fi
1883 else 2237 else
1884 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 2238 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1885 $as_echo "$as_me: creating cache $cache_file" >&6;} 2239 $as_echo "$as_me: creating cache $cache_file" >&6;}
1886 >$cache_file 2240 >$cache_file
1887 fi 2241 fi
1888 2242
1889 # Check that the precious variables saved in the cache have kept the same 2243 # Check that the precious variables saved in the cache have kept the same
1894 eval ac_new_set=\$ac_env_${ac_var}_set 2248 eval ac_new_set=\$ac_env_${ac_var}_set
1895 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2249 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1896 eval ac_new_val=\$ac_env_${ac_var}_value 2250 eval ac_new_val=\$ac_env_${ac_var}_value
1897 case $ac_old_set,$ac_new_set in 2251 case $ac_old_set,$ac_new_set in
1898 set,) 2252 set,)
1899 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2253 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1900 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2254 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1901 ac_cache_corrupted=: ;; 2255 ac_cache_corrupted=: ;;
1902 ,set) 2256 ,set)
1903 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 2257 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1904 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2258 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1905 ac_cache_corrupted=: ;; 2259 ac_cache_corrupted=: ;;
1906 ,);; 2260 ,);;
1907 *) 2261 *)
1908 if test "x$ac_old_val" != "x$ac_new_val"; then 2262 if test "x$ac_old_val" != "x$ac_new_val"; then
1909 # differences in whitespace do not lead to failure. 2263 # differences in whitespace do not lead to failure.
1910 ac_old_val_w=`echo x $ac_old_val` 2264 ac_old_val_w=`echo x $ac_old_val`
1911 ac_new_val_w=`echo x $ac_new_val` 2265 ac_new_val_w=`echo x $ac_new_val`
1912 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2266 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1913 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 2267 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1914 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2268 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1915 ac_cache_corrupted=: 2269 ac_cache_corrupted=:
1916 else 2270 else
1917 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2271 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1918 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2272 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1919 eval $ac_var=\$ac_old_val 2273 eval $ac_var=\$ac_old_val
1920 fi 2274 fi
1921 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 2275 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1922 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2276 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1923 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 2277 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1924 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2278 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1925 fi;; 2279 fi;;
1926 esac 2280 esac
1927 # Pass precious variables to config.status. 2281 # Pass precious variables to config.status.
1928 if test "$ac_new_set" = set; then 2282 if test "$ac_new_set" = set; then
1930 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2284 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1931 *) ac_arg=$ac_var=$ac_new_val ;; 2285 *) ac_arg=$ac_var=$ac_new_val ;;
1932 esac 2286 esac
1933 case " $ac_configure_args " in 2287 case " $ac_configure_args " in
1934 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2288 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1935 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2289 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1936 esac 2290 esac
1937 fi 2291 fi
1938 done 2292 done
1939 if $ac_cache_corrupted; then 2293 if $ac_cache_corrupted; then
1940 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2294 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1941 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2295 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1942 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2296 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1943 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2297 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1944 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 2298 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1945 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2299 fi
1946 { (exit 1); exit 1; }; } 2300 ## -------------------- ##
1947 fi 2301 ## Main body of script. ##
1948 2302 ## -------------------- ##
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964 2303
1965 ac_ext=c 2304 ac_ext=c
1966 ac_cpp='$CPP $CPPFLAGS' 2305 ac_cpp='$CPP $CPPFLAGS'
1967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1970 2309
1971 2310
1972 ac_config_headers="$ac_config_headers auto/config.h:config.h.in" 2311 ac_config_headers="$ac_config_headers auto/config.h:config.h.in"
1973 2312
1974 2313
1975 cat >>confdefs.h <<\_ACEOF 2314 $as_echo "#define UNIX 1" >>confdefs.h
1976 #define UNIX 1 2315
1977 _ACEOF 2316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1978
1979 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1980 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2317 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
1981 set x ${MAKE-make} 2318 set x ${MAKE-make}
1982 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2319 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1983 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2320 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
1984 $as_echo_n "(cached) " >&6 2321 $as_echo_n "(cached) " >&6
1985 else 2322 else
1986 cat >conftest.make <<\_ACEOF 2323 cat >conftest.make <<\_ACEOF
1987 SHELL = /bin/sh 2324 SHELL = /bin/sh
1988 all: 2325 all:
1996 eval ac_cv_prog_make_${ac_make}_set=no;; 2333 eval ac_cv_prog_make_${ac_make}_set=no;;
1997 esac 2334 esac
1998 rm -f conftest.make 2335 rm -f conftest.make
1999 fi 2336 fi
2000 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2337 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2001 { $as_echo "$as_me:$LINENO: result: yes" >&5 2338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2002 $as_echo "yes" >&6; } 2339 $as_echo "yes" >&6; }
2003 SET_MAKE= 2340 SET_MAKE=
2004 else 2341 else
2005 { $as_echo "$as_me:$LINENO: result: no" >&5 2342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2006 $as_echo "no" >&6; } 2343 $as_echo "no" >&6; }
2007 SET_MAKE="MAKE=${MAKE-make}" 2344 SET_MAKE="MAKE=${MAKE-make}"
2008 fi 2345 fi
2009 2346
2010 2347
2014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2015 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2016 if test -n "$ac_tool_prefix"; then 2353 if test -n "$ac_tool_prefix"; then
2017 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2354 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2018 set dummy ${ac_tool_prefix}gcc; ac_word=$2 2355 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2019 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2020 $as_echo_n "checking for $ac_word... " >&6; } 2357 $as_echo_n "checking for $ac_word... " >&6; }
2021 if test "${ac_cv_prog_CC+set}" = set; then 2358 if test "${ac_cv_prog_CC+set}" = set; then :
2022 $as_echo_n "(cached) " >&6 2359 $as_echo_n "(cached) " >&6
2023 else 2360 else
2024 if test -n "$CC"; then 2361 if test -n "$CC"; then
2025 ac_cv_prog_CC="$CC" # Let the user override the test. 2362 ac_cv_prog_CC="$CC" # Let the user override the test.
2026 else 2363 else
2027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2028 for as_dir in $PATH 2365 for as_dir in $PATH
2029 do 2366 do
2030 IFS=$as_save_IFS 2367 IFS=$as_save_IFS
2031 test -z "$as_dir" && as_dir=. 2368 test -z "$as_dir" && as_dir=.
2032 for ac_exec_ext in '' $ac_executable_extensions; do 2369 for ac_exec_ext in '' $ac_executable_extensions; do
2033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2034 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2371 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2035 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2036 break 2 2373 break 2
2037 fi 2374 fi
2038 done 2375 done
2039 done 2376 done
2040 IFS=$as_save_IFS 2377 IFS=$as_save_IFS
2041 2378
2042 fi 2379 fi
2043 fi 2380 fi
2044 CC=$ac_cv_prog_CC 2381 CC=$ac_cv_prog_CC
2045 if test -n "$CC"; then 2382 if test -n "$CC"; then
2046 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2047 $as_echo "$CC" >&6; } 2384 $as_echo "$CC" >&6; }
2048 else 2385 else
2049 { $as_echo "$as_me:$LINENO: result: no" >&5 2386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2050 $as_echo "no" >&6; } 2387 $as_echo "no" >&6; }
2051 fi 2388 fi
2052 2389
2053 2390
2054 fi 2391 fi
2055 if test -z "$ac_cv_prog_CC"; then 2392 if test -z "$ac_cv_prog_CC"; then
2056 ac_ct_CC=$CC 2393 ac_ct_CC=$CC
2057 # Extract the first word of "gcc", so it can be a program name with args. 2394 # Extract the first word of "gcc", so it can be a program name with args.
2058 set dummy gcc; ac_word=$2 2395 set dummy gcc; ac_word=$2
2059 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2060 $as_echo_n "checking for $ac_word... " >&6; } 2397 $as_echo_n "checking for $ac_word... " >&6; }
2061 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2398 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2062 $as_echo_n "(cached) " >&6 2399 $as_echo_n "(cached) " >&6
2063 else 2400 else
2064 if test -n "$ac_ct_CC"; then 2401 if test -n "$ac_ct_CC"; then
2065 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2402 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2066 else 2403 else
2067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2068 for as_dir in $PATH 2405 for as_dir in $PATH
2069 do 2406 do
2070 IFS=$as_save_IFS 2407 IFS=$as_save_IFS
2071 test -z "$as_dir" && as_dir=. 2408 test -z "$as_dir" && as_dir=.
2072 for ac_exec_ext in '' $ac_executable_extensions; do 2409 for ac_exec_ext in '' $ac_executable_extensions; do
2073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2074 ac_cv_prog_ac_ct_CC="gcc" 2411 ac_cv_prog_ac_ct_CC="gcc"
2075 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2076 break 2 2413 break 2
2077 fi 2414 fi
2078 done 2415 done
2079 done 2416 done
2080 IFS=$as_save_IFS 2417 IFS=$as_save_IFS
2081 2418
2082 fi 2419 fi
2083 fi 2420 fi
2084 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2421 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2085 if test -n "$ac_ct_CC"; then 2422 if test -n "$ac_ct_CC"; then
2086 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2087 $as_echo "$ac_ct_CC" >&6; } 2424 $as_echo "$ac_ct_CC" >&6; }
2088 else 2425 else
2089 { $as_echo "$as_me:$LINENO: result: no" >&5 2426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2090 $as_echo "no" >&6; } 2427 $as_echo "no" >&6; }
2091 fi 2428 fi
2092 2429
2093 if test "x$ac_ct_CC" = x; then 2430 if test "x$ac_ct_CC" = x; then
2094 CC="" 2431 CC=""
2095 else 2432 else
2096 case $cross_compiling:$ac_tool_warned in 2433 case $cross_compiling:$ac_tool_warned in
2097 yes:) 2434 yes:)
2098 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2099 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2436 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2100 ac_tool_warned=yes ;; 2437 ac_tool_warned=yes ;;
2101 esac 2438 esac
2102 CC=$ac_ct_CC 2439 CC=$ac_ct_CC
2103 fi 2440 fi
2107 2444
2108 if test -z "$CC"; then 2445 if test -z "$CC"; then
2109 if test -n "$ac_tool_prefix"; then 2446 if test -n "$ac_tool_prefix"; then
2110 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2447 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2111 set dummy ${ac_tool_prefix}cc; ac_word=$2 2448 set dummy ${ac_tool_prefix}cc; ac_word=$2
2112 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2113 $as_echo_n "checking for $ac_word... " >&6; } 2450 $as_echo_n "checking for $ac_word... " >&6; }
2114 if test "${ac_cv_prog_CC+set}" = set; then 2451 if test "${ac_cv_prog_CC+set}" = set; then :
2115 $as_echo_n "(cached) " >&6 2452 $as_echo_n "(cached) " >&6
2116 else 2453 else
2117 if test -n "$CC"; then 2454 if test -n "$CC"; then
2118 ac_cv_prog_CC="$CC" # Let the user override the test. 2455 ac_cv_prog_CC="$CC" # Let the user override the test.
2119 else 2456 else
2120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2121 for as_dir in $PATH 2458 for as_dir in $PATH
2122 do 2459 do
2123 IFS=$as_save_IFS 2460 IFS=$as_save_IFS
2124 test -z "$as_dir" && as_dir=. 2461 test -z "$as_dir" && as_dir=.
2125 for ac_exec_ext in '' $ac_executable_extensions; do 2462 for ac_exec_ext in '' $ac_executable_extensions; do
2126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2127 ac_cv_prog_CC="${ac_tool_prefix}cc" 2464 ac_cv_prog_CC="${ac_tool_prefix}cc"
2128 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2129 break 2 2466 break 2
2130 fi 2467 fi
2131 done 2468 done
2132 done 2469 done
2133 IFS=$as_save_IFS 2470 IFS=$as_save_IFS
2134 2471
2135 fi 2472 fi
2136 fi 2473 fi
2137 CC=$ac_cv_prog_CC 2474 CC=$ac_cv_prog_CC
2138 if test -n "$CC"; then 2475 if test -n "$CC"; then
2139 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2140 $as_echo "$CC" >&6; } 2477 $as_echo "$CC" >&6; }
2141 else 2478 else
2142 { $as_echo "$as_me:$LINENO: result: no" >&5 2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2143 $as_echo "no" >&6; } 2480 $as_echo "no" >&6; }
2144 fi 2481 fi
2145 2482
2146 2483
2147 fi 2484 fi
2148 fi 2485 fi
2149 if test -z "$CC"; then 2486 if test -z "$CC"; then
2150 # Extract the first word of "cc", so it can be a program name with args. 2487 # Extract the first word of "cc", so it can be a program name with args.
2151 set dummy cc; ac_word=$2 2488 set dummy cc; ac_word=$2
2152 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2153 $as_echo_n "checking for $ac_word... " >&6; } 2490 $as_echo_n "checking for $ac_word... " >&6; }
2154 if test "${ac_cv_prog_CC+set}" = set; then 2491 if test "${ac_cv_prog_CC+set}" = set; then :
2155 $as_echo_n "(cached) " >&6 2492 $as_echo_n "(cached) " >&6
2156 else 2493 else
2157 if test -n "$CC"; then 2494 if test -n "$CC"; then
2158 ac_cv_prog_CC="$CC" # Let the user override the test. 2495 ac_cv_prog_CC="$CC" # Let the user override the test.
2159 else 2496 else
2161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2162 for as_dir in $PATH 2499 for as_dir in $PATH
2163 do 2500 do
2164 IFS=$as_save_IFS 2501 IFS=$as_save_IFS
2165 test -z "$as_dir" && as_dir=. 2502 test -z "$as_dir" && as_dir=.
2166 for ac_exec_ext in '' $ac_executable_extensions; do 2503 for ac_exec_ext in '' $ac_executable_extensions; do
2167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2168 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2505 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2169 ac_prog_rejected=yes 2506 ac_prog_rejected=yes
2170 continue 2507 continue
2171 fi 2508 fi
2172 ac_cv_prog_CC="cc" 2509 ac_cv_prog_CC="cc"
2173 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2174 break 2 2511 break 2
2175 fi 2512 fi
2176 done 2513 done
2177 done 2514 done
2178 IFS=$as_save_IFS 2515 IFS=$as_save_IFS
2179 2516
2180 if test $ac_prog_rejected = yes; then 2517 if test $ac_prog_rejected = yes; then
2181 # We found a bogon in the path, so make sure we never use it. 2518 # We found a bogon in the path, so make sure we never use it.
2182 set dummy $ac_cv_prog_CC 2519 set dummy $ac_cv_prog_CC
2191 fi 2528 fi
2192 fi 2529 fi
2193 fi 2530 fi
2194 CC=$ac_cv_prog_CC 2531 CC=$ac_cv_prog_CC
2195 if test -n "$CC"; then 2532 if test -n "$CC"; then
2196 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2197 $as_echo "$CC" >&6; } 2534 $as_echo "$CC" >&6; }
2198 else 2535 else
2199 { $as_echo "$as_me:$LINENO: result: no" >&5 2536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2200 $as_echo "no" >&6; } 2537 $as_echo "no" >&6; }
2201 fi 2538 fi
2202 2539
2203 2540
2204 fi 2541 fi
2206 if test -n "$ac_tool_prefix"; then 2543 if test -n "$ac_tool_prefix"; then
2207 for ac_prog in cl.exe 2544 for ac_prog in cl.exe
2208 do 2545 do
2209 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2546 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2210 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2547 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2211 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2212 $as_echo_n "checking for $ac_word... " >&6; } 2549 $as_echo_n "checking for $ac_word... " >&6; }
2213 if test "${ac_cv_prog_CC+set}" = set; then 2550 if test "${ac_cv_prog_CC+set}" = set; then :
2214 $as_echo_n "(cached) " >&6 2551 $as_echo_n "(cached) " >&6
2215 else 2552 else
2216 if test -n "$CC"; then 2553 if test -n "$CC"; then
2217 ac_cv_prog_CC="$CC" # Let the user override the test. 2554 ac_cv_prog_CC="$CC" # Let the user override the test.
2218 else 2555 else
2219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2220 for as_dir in $PATH 2557 for as_dir in $PATH
2221 do 2558 do
2222 IFS=$as_save_IFS 2559 IFS=$as_save_IFS
2223 test -z "$as_dir" && as_dir=. 2560 test -z "$as_dir" && as_dir=.
2224 for ac_exec_ext in '' $ac_executable_extensions; do 2561 for ac_exec_ext in '' $ac_executable_extensions; do
2225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2226 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2563 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2227 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2228 break 2 2565 break 2
2229 fi 2566 fi
2230 done 2567 done
2231 done 2568 done
2232 IFS=$as_save_IFS 2569 IFS=$as_save_IFS
2233 2570
2234 fi 2571 fi
2235 fi 2572 fi
2236 CC=$ac_cv_prog_CC 2573 CC=$ac_cv_prog_CC
2237 if test -n "$CC"; then 2574 if test -n "$CC"; then
2238 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2239 $as_echo "$CC" >&6; } 2576 $as_echo "$CC" >&6; }
2240 else 2577 else
2241 { $as_echo "$as_me:$LINENO: result: no" >&5 2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2242 $as_echo "no" >&6; } 2579 $as_echo "no" >&6; }
2243 fi 2580 fi
2244 2581
2245 2582
2246 test -n "$CC" && break 2583 test -n "$CC" && break
2250 ac_ct_CC=$CC 2587 ac_ct_CC=$CC
2251 for ac_prog in cl.exe 2588 for ac_prog in cl.exe
2252 do 2589 do
2253 # Extract the first word of "$ac_prog", so it can be a program name with args. 2590 # Extract the first word of "$ac_prog", so it can be a program name with args.
2254 set dummy $ac_prog; ac_word=$2 2591 set dummy $ac_prog; ac_word=$2
2255 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2256 $as_echo_n "checking for $ac_word... " >&6; } 2593 $as_echo_n "checking for $ac_word... " >&6; }
2257 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2594 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2258 $as_echo_n "(cached) " >&6 2595 $as_echo_n "(cached) " >&6
2259 else 2596 else
2260 if test -n "$ac_ct_CC"; then 2597 if test -n "$ac_ct_CC"; then
2261 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2598 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2262 else 2599 else
2263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2264 for as_dir in $PATH 2601 for as_dir in $PATH
2265 do 2602 do
2266 IFS=$as_save_IFS 2603 IFS=$as_save_IFS
2267 test -z "$as_dir" && as_dir=. 2604 test -z "$as_dir" && as_dir=.
2268 for ac_exec_ext in '' $ac_executable_extensions; do 2605 for ac_exec_ext in '' $ac_executable_extensions; do
2269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2270 ac_cv_prog_ac_ct_CC="$ac_prog" 2607 ac_cv_prog_ac_ct_CC="$ac_prog"
2271 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2272 break 2 2609 break 2
2273 fi 2610 fi
2274 done 2611 done
2275 done 2612 done
2276 IFS=$as_save_IFS 2613 IFS=$as_save_IFS
2277 2614
2278 fi 2615 fi
2279 fi 2616 fi
2280 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2617 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2281 if test -n "$ac_ct_CC"; then 2618 if test -n "$ac_ct_CC"; then
2282 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2283 $as_echo "$ac_ct_CC" >&6; } 2620 $as_echo "$ac_ct_CC" >&6; }
2284 else 2621 else
2285 { $as_echo "$as_me:$LINENO: result: no" >&5 2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2286 $as_echo "no" >&6; } 2623 $as_echo "no" >&6; }
2287 fi 2624 fi
2288 2625
2289 2626
2290 test -n "$ac_ct_CC" && break 2627 test -n "$ac_ct_CC" && break
2293 if test "x$ac_ct_CC" = x; then 2630 if test "x$ac_ct_CC" = x; then
2294 CC="" 2631 CC=""
2295 else 2632 else
2296 case $cross_compiling:$ac_tool_warned in 2633 case $cross_compiling:$ac_tool_warned in
2297 yes:) 2634 yes:)
2298 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2299 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2636 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2300 ac_tool_warned=yes ;; 2637 ac_tool_warned=yes ;;
2301 esac 2638 esac
2302 CC=$ac_ct_CC 2639 CC=$ac_ct_CC
2303 fi 2640 fi
2304 fi 2641 fi
2305 2642
2306 fi 2643 fi
2307 2644
2308 2645
2309 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2646 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2310 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2311 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2648 as_fn_error "no acceptable C compiler found in \$PATH
2312 See \`config.log' for more details." >&5 2649 See \`config.log' for more details." "$LINENO" 5; }
2313 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2314 See \`config.log' for more details." >&2;}
2315 { (exit 1); exit 1; }; }; }
2316 2650
2317 # Provide some information about the compiler. 2651 # Provide some information about the compiler.
2318 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 2652 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2319 set X $ac_compile 2653 set X $ac_compile
2320 ac_compiler=$2 2654 ac_compiler=$2
2321 { (ac_try="$ac_compiler --version >&5" 2655 for ac_option in --version -v -V -qversion; do
2656 { { ac_try="$ac_compiler $ac_option >&5"
2322 case "(($ac_try" in 2657 case "(($ac_try" in
2323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2324 *) ac_try_echo=$ac_try;; 2659 *) ac_try_echo=$ac_try;;
2325 esac 2660 esac
2326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2327 $as_echo "$ac_try_echo") >&5 2662 $as_echo "$ac_try_echo"; } >&5
2328 (eval "$ac_compiler --version >&5") 2>&5 2663 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2329 ac_status=$? 2664 ac_status=$?
2330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2665 if test -s conftest.err; then
2331 (exit $ac_status); } 2666 sed '10a\
2332 { (ac_try="$ac_compiler -v >&5" 2667 ... rest of stderr output deleted ...
2333 case "(($ac_try" in 2668 10q' conftest.err >conftest.er1
2334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2669 cat conftest.er1 >&5
2335 *) ac_try_echo=$ac_try;; 2670 fi
2336 esac 2671 rm -f conftest.er1 conftest.err
2337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2338 $as_echo "$ac_try_echo") >&5 2673 test $ac_status = 0; }
2339 (eval "$ac_compiler -v >&5") 2>&5 2674 done
2340 ac_status=$? 2675
2341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2342 (exit $ac_status); }
2343 { (ac_try="$ac_compiler -V >&5"
2344 case "(($ac_try" in
2345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2346 *) ac_try_echo=$ac_try;;
2347 esac
2348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2349 $as_echo "$ac_try_echo") >&5
2350 (eval "$ac_compiler -V >&5") 2>&5
2351 ac_status=$?
2352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353 (exit $ac_status); }
2354
2355 cat >conftest.$ac_ext <<_ACEOF
2356 /* confdefs.h. */
2357 _ACEOF
2358 cat confdefs.h >>conftest.$ac_ext
2359 cat >>conftest.$ac_ext <<_ACEOF
2360 /* end confdefs.h. */ 2677 /* end confdefs.h. */
2361 2678
2362 int 2679 int
2363 main () 2680 main ()
2364 { 2681 {
2370 ac_clean_files_save=$ac_clean_files 2687 ac_clean_files_save=$ac_clean_files
2371 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2688 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2372 # Try to create an executable without -o first, disregard a.out. 2689 # Try to create an executable without -o first, disregard a.out.
2373 # It will help us diagnose broken compilers, and finding out an intuition 2690 # It will help us diagnose broken compilers, and finding out an intuition
2374 # of exeext. 2691 # of exeext.
2375 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2376 $as_echo_n "checking for C compiler default output file name... " >&6; } 2693 $as_echo_n "checking whether the C compiler works... " >&6; }
2377 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2694 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2378 2695
2379 # The possible output files: 2696 # The possible output files:
2380 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2697 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2381 2698
2387 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2704 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2388 esac 2705 esac
2389 done 2706 done
2390 rm -f $ac_rmfiles 2707 rm -f $ac_rmfiles
2391 2708
2392 if { (ac_try="$ac_link_default" 2709 if { { ac_try="$ac_link_default"
2393 case "(($ac_try" in 2710 case "(($ac_try" in
2394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2395 *) ac_try_echo=$ac_try;; 2712 *) ac_try_echo=$ac_try;;
2396 esac 2713 esac
2397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2398 $as_echo "$ac_try_echo") >&5 2715 $as_echo "$ac_try_echo"; } >&5
2399 (eval "$ac_link_default") 2>&5 2716 (eval "$ac_link_default") 2>&5
2400 ac_status=$? 2717 ac_status=$?
2401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2402 (exit $ac_status); }; then 2719 test $ac_status = 0; }; then :
2403 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2720 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2404 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2721 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2405 # in a Makefile. We should not override ac_cv_exeext if it was cached, 2722 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2406 # so that the user can short-circuit this test for compilers unknown to 2723 # so that the user can short-circuit this test for compilers unknown to
2407 # Autoconf. 2724 # Autoconf.
2414 [ab].out ) 2731 [ab].out )
2415 # We found the default executable, but exeext='' is most 2732 # We found the default executable, but exeext='' is most
2416 # certainly right. 2733 # certainly right.
2417 break;; 2734 break;;
2418 *.* ) 2735 *.* )
2419 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2736 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2420 then :; else 2737 then :; else
2421 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2738 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2422 fi 2739 fi
2423 # We set ac_cv_exeext here because the later test for it is not 2740 # We set ac_cv_exeext here because the later test for it is not
2424 # safe: cross compilers may not add the suffix if given an `-o' 2741 # safe: cross compilers may not add the suffix if given an `-o'
2433 test "$ac_cv_exeext" = no && ac_cv_exeext= 2750 test "$ac_cv_exeext" = no && ac_cv_exeext=
2434 2751
2435 else 2752 else
2436 ac_file='' 2753 ac_file=''
2437 fi 2754 fi
2438 2755 if test -z "$ac_file"; then :
2439 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2757 $as_echo "no" >&6; }
2758 $as_echo "$as_me: failed program was:" >&5
2759 sed 's/^/| /' conftest.$ac_ext >&5
2760
2761 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2762 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2763 { as_fn_set_status 77
2764 as_fn_error "C compiler cannot create executables
2765 See \`config.log' for more details." "$LINENO" 5; }; }
2766 else
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2768 $as_echo "yes" >&6; }
2769 fi
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2771 $as_echo_n "checking for C compiler default output file name... " >&6; }
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2440 $as_echo "$ac_file" >&6; } 2773 $as_echo "$ac_file" >&6; }
2441 if test -z "$ac_file"; then
2442 $as_echo "$as_me: failed program was:" >&5
2443 sed 's/^/| /' conftest.$ac_ext >&5
2444
2445 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2446 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2447 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2448 See \`config.log' for more details." >&5
2449 $as_echo "$as_me: error: C compiler cannot create executables
2450 See \`config.log' for more details." >&2;}
2451 { (exit 77); exit 77; }; }; }
2452 fi
2453
2454 ac_exeext=$ac_cv_exeext 2774 ac_exeext=$ac_cv_exeext
2455
2456 # Check that the compiler produces executables we can run. If not, either
2457 # the compiler is broken, or we cross compile.
2458 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2459 $as_echo_n "checking whether the C compiler works... " >&6; }
2460 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2461 # If not cross compiling, check that we can run a simple program.
2462 if test "$cross_compiling" != yes; then
2463 if { ac_try='./$ac_file'
2464 { (case "(($ac_try" in
2465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2466 *) ac_try_echo=$ac_try;;
2467 esac
2468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2469 $as_echo "$ac_try_echo") >&5
2470 (eval "$ac_try") 2>&5
2471 ac_status=$?
2472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); }; }; then
2474 cross_compiling=no
2475 else
2476 if test "$cross_compiling" = maybe; then
2477 cross_compiling=yes
2478 else
2479 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2480 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2481 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2482 If you meant to cross compile, use \`--host'.
2483 See \`config.log' for more details." >&5
2484 $as_echo "$as_me: error: cannot run C compiled programs.
2485 If you meant to cross compile, use \`--host'.
2486 See \`config.log' for more details." >&2;}
2487 { (exit 1); exit 1; }; }; }
2488 fi
2489 fi
2490 fi
2491 { $as_echo "$as_me:$LINENO: result: yes" >&5
2492 $as_echo "yes" >&6; }
2493 2775
2494 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2776 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2495 ac_clean_files=$ac_clean_files_save 2777 ac_clean_files=$ac_clean_files_save
2496 # Check that the compiler produces executables we can run. If not, either 2778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2497 # the compiler is broken, or we cross compile.
2498 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2499 $as_echo_n "checking whether we are cross compiling... " >&6; }
2500 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2501 $as_echo "$cross_compiling" >&6; }
2502
2503 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2504 $as_echo_n "checking for suffix of executables... " >&6; } 2779 $as_echo_n "checking for suffix of executables... " >&6; }
2505 if { (ac_try="$ac_link" 2780 if { { ac_try="$ac_link"
2506 case "(($ac_try" in 2781 case "(($ac_try" in
2507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2508 *) ac_try_echo=$ac_try;; 2783 *) ac_try_echo=$ac_try;;
2509 esac 2784 esac
2510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2511 $as_echo "$ac_try_echo") >&5 2786 $as_echo "$ac_try_echo"; } >&5
2512 (eval "$ac_link") 2>&5 2787 (eval "$ac_link") 2>&5
2513 ac_status=$? 2788 ac_status=$?
2514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2515 (exit $ac_status); }; then 2790 test $ac_status = 0; }; then :
2516 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2791 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2517 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2792 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2518 # work properly (i.e., refer to `conftest.exe'), while it won't with 2793 # work properly (i.e., refer to `conftest.exe'), while it won't with
2519 # `rm'. 2794 # `rm'.
2520 for ac_file in conftest.exe conftest conftest.*; do 2795 for ac_file in conftest.exe conftest conftest.*; do
2525 break;; 2800 break;;
2526 * ) break;; 2801 * ) break;;
2527 esac 2802 esac
2528 done 2803 done
2529 else 2804 else
2530 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2805 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2531 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2806 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2532 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2807 as_fn_error "cannot compute suffix of executables: cannot compile and link
2533 See \`config.log' for more details." >&5 2808 See \`config.log' for more details." "$LINENO" 5; }
2534 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2809 fi
2535 See \`config.log' for more details." >&2;} 2810 rm -f conftest conftest$ac_cv_exeext
2536 { (exit 1); exit 1; }; }; } 2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2537 fi
2538
2539 rm -f conftest$ac_cv_exeext
2540 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2541 $as_echo "$ac_cv_exeext" >&6; } 2812 $as_echo "$ac_cv_exeext" >&6; }
2542 2813
2543 rm -f conftest.$ac_ext 2814 rm -f conftest.$ac_ext
2544 EXEEXT=$ac_cv_exeext 2815 EXEEXT=$ac_cv_exeext
2545 ac_exeext=$EXEEXT 2816 ac_exeext=$EXEEXT
2546 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 2817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2547 $as_echo_n "checking for suffix of object files... " >&6; } 2818 /* end confdefs.h. */
2548 if test "${ac_cv_objext+set}" = set; then 2819 #include <stdio.h>
2549 $as_echo_n "(cached) " >&6
2550 else
2551 cat >conftest.$ac_ext <<_ACEOF
2552 /* confdefs.h. */
2553 _ACEOF
2554 cat confdefs.h >>conftest.$ac_ext
2555 cat >>conftest.$ac_ext <<_ACEOF
2556 /* end confdefs.h. */
2557
2558 int 2820 int
2559 main () 2821 main ()
2560 { 2822 {
2823 FILE *f = fopen ("conftest.out", "w");
2824 return ferror (f) || fclose (f) != 0;
2561 2825
2562 ; 2826 ;
2563 return 0; 2827 return 0;
2564 } 2828 }
2565 _ACEOF 2829 _ACEOF
2566 rm -f conftest.o conftest.obj 2830 ac_clean_files="$ac_clean_files conftest.out"
2567 if { (ac_try="$ac_compile" 2831 # Check that the compiler produces executables we can run. If not, either
2832 # the compiler is broken, or we cross compile.
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2834 $as_echo_n "checking whether we are cross compiling... " >&6; }
2835 if test "$cross_compiling" != yes; then
2836 { { ac_try="$ac_link"
2568 case "(($ac_try" in 2837 case "(($ac_try" in
2569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2570 *) ac_try_echo=$ac_try;; 2839 *) ac_try_echo=$ac_try;;
2571 esac 2840 esac
2572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2573 $as_echo "$ac_try_echo") >&5 2842 $as_echo "$ac_try_echo"; } >&5
2843 (eval "$ac_link") 2>&5
2844 ac_status=$?
2845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2846 test $ac_status = 0; }
2847 if { ac_try='./conftest$ac_cv_exeext'
2848 { { case "(($ac_try" in
2849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2850 *) ac_try_echo=$ac_try;;
2851 esac
2852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2853 $as_echo "$ac_try_echo"; } >&5
2854 (eval "$ac_try") 2>&5
2855 ac_status=$?
2856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2857 test $ac_status = 0; }; }; then
2858 cross_compiling=no
2859 else
2860 if test "$cross_compiling" = maybe; then
2861 cross_compiling=yes
2862 else
2863 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2864 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2865 as_fn_error "cannot run C compiled programs.
2866 If you meant to cross compile, use \`--host'.
2867 See \`config.log' for more details." "$LINENO" 5; }
2868 fi
2869 fi
2870 fi
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2872 $as_echo "$cross_compiling" >&6; }
2873
2874 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2875 ac_clean_files=$ac_clean_files_save
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2877 $as_echo_n "checking for suffix of object files... " >&6; }
2878 if test "${ac_cv_objext+set}" = set; then :
2879 $as_echo_n "(cached) " >&6
2880 else
2881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2882 /* end confdefs.h. */
2883
2884 int
2885 main ()
2886 {
2887
2888 ;
2889 return 0;
2890 }
2891 _ACEOF
2892 rm -f conftest.o conftest.obj
2893 if { { ac_try="$ac_compile"
2894 case "(($ac_try" in
2895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2896 *) ac_try_echo=$ac_try;;
2897 esac
2898 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2899 $as_echo "$ac_try_echo"; } >&5
2574 (eval "$ac_compile") 2>&5 2900 (eval "$ac_compile") 2>&5
2575 ac_status=$? 2901 ac_status=$?
2576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2577 (exit $ac_status); }; then 2903 test $ac_status = 0; }; then :
2578 for ac_file in conftest.o conftest.obj conftest.*; do 2904 for ac_file in conftest.o conftest.obj conftest.*; do
2579 test -f "$ac_file" || continue; 2905 test -f "$ac_file" || continue;
2580 case $ac_file in 2906 case $ac_file in
2581 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2907 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2582 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2908 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2585 done 2911 done
2586 else 2912 else
2587 $as_echo "$as_me: failed program was:" >&5 2913 $as_echo "$as_me: failed program was:" >&5
2588 sed 's/^/| /' conftest.$ac_ext >&5 2914 sed 's/^/| /' conftest.$ac_ext >&5
2589 2915
2590 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2916 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2917 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2592 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2918 as_fn_error "cannot compute suffix of object files: cannot compile
2593 See \`config.log' for more details." >&5 2919 See \`config.log' for more details." "$LINENO" 5; }
2594 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 2920 fi
2595 See \`config.log' for more details." >&2;}
2596 { (exit 1); exit 1; }; }; }
2597 fi
2598
2599 rm -f conftest.$ac_cv_objext conftest.$ac_ext 2921 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2600 fi 2922 fi
2601 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2602 $as_echo "$ac_cv_objext" >&6; } 2924 $as_echo "$ac_cv_objext" >&6; }
2603 OBJEXT=$ac_cv_objext 2925 OBJEXT=$ac_cv_objext
2604 ac_objext=$OBJEXT 2926 ac_objext=$OBJEXT
2605 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2606 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2928 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2607 if test "${ac_cv_c_compiler_gnu+set}" = set; then 2929 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2608 $as_echo_n "(cached) " >&6 2930 $as_echo_n "(cached) " >&6
2609 else 2931 else
2610 cat >conftest.$ac_ext <<_ACEOF 2932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2611 /* confdefs.h. */
2612 _ACEOF
2613 cat confdefs.h >>conftest.$ac_ext
2614 cat >>conftest.$ac_ext <<_ACEOF
2615 /* end confdefs.h. */ 2933 /* end confdefs.h. */
2616 2934
2617 int 2935 int
2618 main () 2936 main ()
2619 { 2937 {
2623 2941
2624 ; 2942 ;
2625 return 0; 2943 return 0;
2626 } 2944 }
2627 _ACEOF 2945 _ACEOF
2628 rm -f conftest.$ac_objext 2946 if ac_fn_c_try_compile "$LINENO"; then :
2629 if { (ac_try="$ac_compile"
2630 case "(($ac_try" in
2631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2632 *) ac_try_echo=$ac_try;;
2633 esac
2634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2635 $as_echo "$ac_try_echo") >&5
2636 (eval "$ac_compile") 2>conftest.er1
2637 ac_status=$?
2638 grep -v '^ *+' conftest.er1 >conftest.err
2639 rm -f conftest.er1
2640 cat conftest.err >&5
2641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); } && {
2643 test -z "$ac_c_werror_flag" ||
2644 test ! -s conftest.err
2645 } && test -s conftest.$ac_objext; then
2646 ac_compiler_gnu=yes 2947 ac_compiler_gnu=yes
2647 else 2948 else
2648 $as_echo "$as_me: failed program was:" >&5 2949 ac_compiler_gnu=no
2649 sed 's/^/| /' conftest.$ac_ext >&5 2950 fi
2650
2651 ac_compiler_gnu=no
2652 fi
2653
2654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2655 ac_cv_c_compiler_gnu=$ac_compiler_gnu 2952 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2656 2953
2657 fi 2954 fi
2658 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2659 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 2956 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2660 if test $ac_compiler_gnu = yes; then 2957 if test $ac_compiler_gnu = yes; then
2661 GCC=yes 2958 GCC=yes
2662 else 2959 else
2663 GCC= 2960 GCC=
2664 fi 2961 fi
2665 ac_test_CFLAGS=${CFLAGS+set} 2962 ac_test_CFLAGS=${CFLAGS+set}
2666 ac_save_CFLAGS=$CFLAGS 2963 ac_save_CFLAGS=$CFLAGS
2667 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2668 $as_echo_n "checking whether $CC accepts -g... " >&6; } 2965 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2669 if test "${ac_cv_prog_cc_g+set}" = set; then 2966 if test "${ac_cv_prog_cc_g+set}" = set; then :
2670 $as_echo_n "(cached) " >&6 2967 $as_echo_n "(cached) " >&6
2671 else 2968 else
2672 ac_save_c_werror_flag=$ac_c_werror_flag 2969 ac_save_c_werror_flag=$ac_c_werror_flag
2673 ac_c_werror_flag=yes 2970 ac_c_werror_flag=yes
2674 ac_cv_prog_cc_g=no 2971 ac_cv_prog_cc_g=no
2675 CFLAGS="-g" 2972 CFLAGS="-g"
2676 cat >conftest.$ac_ext <<_ACEOF 2973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2677 /* confdefs.h. */
2678 _ACEOF
2679 cat confdefs.h >>conftest.$ac_ext
2680 cat >>conftest.$ac_ext <<_ACEOF
2681 /* end confdefs.h. */ 2974 /* end confdefs.h. */
2682 2975
2683 int 2976 int
2684 main () 2977 main ()
2685 { 2978 {
2686 2979
2687 ; 2980 ;
2688 return 0; 2981 return 0;
2689 } 2982 }
2690 _ACEOF 2983 _ACEOF
2691 rm -f conftest.$ac_objext 2984 if ac_fn_c_try_compile "$LINENO"; then :
2692 if { (ac_try="$ac_compile"
2693 case "(($ac_try" in
2694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2695 *) ac_try_echo=$ac_try;;
2696 esac
2697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2698 $as_echo "$ac_try_echo") >&5
2699 (eval "$ac_compile") 2>conftest.er1
2700 ac_status=$?
2701 grep -v '^ *+' conftest.er1 >conftest.err
2702 rm -f conftest.er1
2703 cat conftest.err >&5
2704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); } && {
2706 test -z "$ac_c_werror_flag" ||
2707 test ! -s conftest.err
2708 } && test -s conftest.$ac_objext; then
2709 ac_cv_prog_cc_g=yes 2985 ac_cv_prog_cc_g=yes
2710 else 2986 else
2711 $as_echo "$as_me: failed program was:" >&5 2987 CFLAGS=""
2712 sed 's/^/| /' conftest.$ac_ext >&5 2988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2713
2714 CFLAGS=""
2715 cat >conftest.$ac_ext <<_ACEOF
2716 /* confdefs.h. */
2717 _ACEOF
2718 cat confdefs.h >>conftest.$ac_ext
2719 cat >>conftest.$ac_ext <<_ACEOF
2720 /* end confdefs.h. */ 2989 /* end confdefs.h. */
2721 2990
2722 int 2991 int
2723 main () 2992 main ()
2724 { 2993 {
2725 2994
2726 ; 2995 ;
2727 return 0; 2996 return 0;
2728 } 2997 }
2729 _ACEOF 2998 _ACEOF
2730 rm -f conftest.$ac_objext 2999 if ac_fn_c_try_compile "$LINENO"; then :
2731 if { (ac_try="$ac_compile" 3000
2732 case "(($ac_try" in 3001 else
2733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3002 ac_c_werror_flag=$ac_save_c_werror_flag
2734 *) ac_try_echo=$ac_try;;
2735 esac
2736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2737 $as_echo "$ac_try_echo") >&5
2738 (eval "$ac_compile") 2>conftest.er1
2739 ac_status=$?
2740 grep -v '^ *+' conftest.er1 >conftest.err
2741 rm -f conftest.er1
2742 cat conftest.err >&5
2743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); } && {
2745 test -z "$ac_c_werror_flag" ||
2746 test ! -s conftest.err
2747 } && test -s conftest.$ac_objext; then
2748 :
2749 else
2750 $as_echo "$as_me: failed program was:" >&5
2751 sed 's/^/| /' conftest.$ac_ext >&5
2752
2753 ac_c_werror_flag=$ac_save_c_werror_flag
2754 CFLAGS="-g" 3003 CFLAGS="-g"
2755 cat >conftest.$ac_ext <<_ACEOF 3004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2756 /* confdefs.h. */
2757 _ACEOF
2758 cat confdefs.h >>conftest.$ac_ext
2759 cat >>conftest.$ac_ext <<_ACEOF
2760 /* end confdefs.h. */ 3005 /* end confdefs.h. */
2761 3006
2762 int 3007 int
2763 main () 3008 main ()
2764 { 3009 {
2765 3010
2766 ; 3011 ;
2767 return 0; 3012 return 0;
2768 } 3013 }
2769 _ACEOF 3014 _ACEOF
2770 rm -f conftest.$ac_objext 3015 if ac_fn_c_try_compile "$LINENO"; then :
2771 if { (ac_try="$ac_compile"
2772 case "(($ac_try" in
2773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2774 *) ac_try_echo=$ac_try;;
2775 esac
2776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2777 $as_echo "$ac_try_echo") >&5
2778 (eval "$ac_compile") 2>conftest.er1
2779 ac_status=$?
2780 grep -v '^ *+' conftest.er1 >conftest.err
2781 rm -f conftest.er1
2782 cat conftest.err >&5
2783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); } && {
2785 test -z "$ac_c_werror_flag" ||
2786 test ! -s conftest.err
2787 } && test -s conftest.$ac_objext; then
2788 ac_cv_prog_cc_g=yes 3016 ac_cv_prog_cc_g=yes
2789 else 3017 fi
2790 $as_echo "$as_me: failed program was:" >&5
2791 sed 's/^/| /' conftest.$ac_ext >&5
2792
2793
2794 fi
2795
2796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2797 fi 3019 fi
2798
2799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2800 fi 3021 fi
2801
2802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2803 ac_c_werror_flag=$ac_save_c_werror_flag 3023 ac_c_werror_flag=$ac_save_c_werror_flag
2804 fi 3024 fi
2805 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2806 $as_echo "$ac_cv_prog_cc_g" >&6; } 3026 $as_echo "$ac_cv_prog_cc_g" >&6; }
2807 if test "$ac_test_CFLAGS" = set; then 3027 if test "$ac_test_CFLAGS" = set; then
2808 CFLAGS=$ac_save_CFLAGS 3028 CFLAGS=$ac_save_CFLAGS
2809 elif test $ac_cv_prog_cc_g = yes; then 3029 elif test $ac_cv_prog_cc_g = yes; then
2810 if test "$GCC" = yes; then 3030 if test "$GCC" = yes; then
2817 CFLAGS="-O2" 3037 CFLAGS="-O2"
2818 else 3038 else
2819 CFLAGS= 3039 CFLAGS=
2820 fi 3040 fi
2821 fi 3041 fi
2822 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2823 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3043 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2824 if test "${ac_cv_prog_cc_c89+set}" = set; then 3044 if test "${ac_cv_prog_cc_c89+set}" = set; then :
2825 $as_echo_n "(cached) " >&6 3045 $as_echo_n "(cached) " >&6
2826 else 3046 else
2827 ac_cv_prog_cc_c89=no 3047 ac_cv_prog_cc_c89=no
2828 ac_save_CC=$CC 3048 ac_save_CC=$CC
2829 cat >conftest.$ac_ext <<_ACEOF 3049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2830 /* confdefs.h. */
2831 _ACEOF
2832 cat confdefs.h >>conftest.$ac_ext
2833 cat >>conftest.$ac_ext <<_ACEOF
2834 /* end confdefs.h. */ 3050 /* end confdefs.h. */
2835 #include <stdarg.h> 3051 #include <stdarg.h>
2836 #include <stdio.h> 3052 #include <stdio.h>
2837 #include <sys/types.h> 3053 #include <sys/types.h>
2838 #include <sys/stat.h> 3054 #include <sys/stat.h>
2885 _ACEOF 3101 _ACEOF
2886 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3102 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2887 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3103 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2888 do 3104 do
2889 CC="$ac_save_CC $ac_arg" 3105 CC="$ac_save_CC $ac_arg"
2890 rm -f conftest.$ac_objext 3106 if ac_fn_c_try_compile "$LINENO"; then :
2891 if { (ac_try="$ac_compile"
2892 case "(($ac_try" in
2893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894 *) ac_try_echo=$ac_try;;
2895 esac
2896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2897 $as_echo "$ac_try_echo") >&5
2898 (eval "$ac_compile") 2>conftest.er1
2899 ac_status=$?
2900 grep -v '^ *+' conftest.er1 >conftest.err
2901 rm -f conftest.er1
2902 cat conftest.err >&5
2903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 (exit $ac_status); } && {
2905 test -z "$ac_c_werror_flag" ||
2906 test ! -s conftest.err
2907 } && test -s conftest.$ac_objext; then
2908 ac_cv_prog_cc_c89=$ac_arg 3107 ac_cv_prog_cc_c89=$ac_arg
2909 else 3108 fi
2910 $as_echo "$as_me: failed program was:" >&5
2911 sed 's/^/| /' conftest.$ac_ext >&5
2912
2913
2914 fi
2915
2916 rm -f core conftest.err conftest.$ac_objext 3109 rm -f core conftest.err conftest.$ac_objext
2917 test "x$ac_cv_prog_cc_c89" != "xno" && break 3110 test "x$ac_cv_prog_cc_c89" != "xno" && break
2918 done 3111 done
2919 rm -f conftest.$ac_ext 3112 rm -f conftest.$ac_ext
2920 CC=$ac_save_CC 3113 CC=$ac_save_CC
2921 3114
2922 fi 3115 fi
2923 # AC_CACHE_VAL 3116 # AC_CACHE_VAL
2924 case "x$ac_cv_prog_cc_c89" in 3117 case "x$ac_cv_prog_cc_c89" in
2925 x) 3118 x)
2926 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2927 $as_echo "none needed" >&6; } ;; 3120 $as_echo "none needed" >&6; } ;;
2928 xno) 3121 xno)
2929 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2930 $as_echo "unsupported" >&6; } ;; 3123 $as_echo "unsupported" >&6; } ;;
2931 *) 3124 *)
2932 CC="$CC $ac_cv_prog_cc_c89" 3125 CC="$CC $ac_cv_prog_cc_c89"
2933 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2934 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3127 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2935 esac 3128 esac
2936 3129 if test "x$ac_cv_prog_cc_c89" != xno; then :
3130
3131 fi
2937 3132
2938 ac_ext=c 3133 ac_ext=c
2939 ac_cpp='$CPP $CPPFLAGS' 3134 ac_cpp='$CPP $CPPFLAGS'
2940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2943 ac_ext=c 3138 ac_ext=c
2944 ac_cpp='$CPP $CPPFLAGS' 3139 ac_cpp='$CPP $CPPFLAGS'
2945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2947 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2948 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
2949 $as_echo_n "checking how to run the C preprocessor... " >&6; } 3144 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2950 # On Suns, sometimes $CPP names a directory. 3145 # On Suns, sometimes $CPP names a directory.
2951 if test -n "$CPP" && test -d "$CPP"; then 3146 if test -n "$CPP" && test -d "$CPP"; then
2952 CPP= 3147 CPP=
2953 fi 3148 fi
2954 if test -z "$CPP"; then 3149 if test -z "$CPP"; then
2955 if test "${ac_cv_prog_CPP+set}" = set; then 3150 if test "${ac_cv_prog_CPP+set}" = set; then :
2956 $as_echo_n "(cached) " >&6 3151 $as_echo_n "(cached) " >&6
2957 else 3152 else
2958 # Double quotes because CPP needs to be expanded 3153 # Double quotes because CPP needs to be expanded
2959 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3154 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2960 do 3155 do
2965 # with a fresh cross-compiler works. 3160 # with a fresh cross-compiler works.
2966 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3161 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2967 # <limits.h> exists even on freestanding compilers. 3162 # <limits.h> exists even on freestanding compilers.
2968 # On the NeXT, cc -E runs the code through the compiler's parser, 3163 # On the NeXT, cc -E runs the code through the compiler's parser,
2969 # not just through cpp. "Syntax error" is here to catch this case. 3164 # not just through cpp. "Syntax error" is here to catch this case.
2970 cat >conftest.$ac_ext <<_ACEOF 3165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2971 /* confdefs.h. */
2972 _ACEOF
2973 cat confdefs.h >>conftest.$ac_ext
2974 cat >>conftest.$ac_ext <<_ACEOF
2975 /* end confdefs.h. */ 3166 /* end confdefs.h. */
2976 #ifdef __STDC__ 3167 #ifdef __STDC__
2977 # include <limits.h> 3168 # include <limits.h>
2978 #else 3169 #else
2979 # include <assert.h> 3170 # include <assert.h>
2980 #endif 3171 #endif
2981 Syntax error 3172 Syntax error
2982 _ACEOF 3173 _ACEOF
2983 if { (ac_try="$ac_cpp conftest.$ac_ext" 3174 if ac_fn_c_try_cpp "$LINENO"; then :
2984 case "(($ac_try" in 3175
2985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3176 else
2986 *) ac_try_echo=$ac_try;;
2987 esac
2988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2989 $as_echo "$ac_try_echo") >&5
2990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2991 ac_status=$?
2992 grep -v '^ *+' conftest.er1 >conftest.err
2993 rm -f conftest.er1
2994 cat conftest.err >&5
2995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996 (exit $ac_status); } >/dev/null && {
2997 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2998 test ! -s conftest.err
2999 }; then
3000 :
3001 else
3002 $as_echo "$as_me: failed program was:" >&5
3003 sed 's/^/| /' conftest.$ac_ext >&5
3004
3005 # Broken: fails on valid input. 3177 # Broken: fails on valid input.
3006 continue 3178 continue
3007 fi 3179 fi
3008
3009 rm -f conftest.err conftest.$ac_ext 3180 rm -f conftest.err conftest.$ac_ext
3010 3181
3011 # OK, works on sane cases. Now check whether nonexistent headers 3182 # OK, works on sane cases. Now check whether nonexistent headers
3012 # can be detected and how. 3183 # can be detected and how.
3013 cat >conftest.$ac_ext <<_ACEOF 3184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3014 /* confdefs.h. */
3015 _ACEOF
3016 cat confdefs.h >>conftest.$ac_ext
3017 cat >>conftest.$ac_ext <<_ACEOF
3018 /* end confdefs.h. */ 3185 /* end confdefs.h. */
3019 #include <ac_nonexistent.h> 3186 #include <ac_nonexistent.h>
3020 _ACEOF 3187 _ACEOF
3021 if { (ac_try="$ac_cpp conftest.$ac_ext" 3188 if ac_fn_c_try_cpp "$LINENO"; then :
3022 case "(($ac_try" in
3023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024 *) ac_try_echo=$ac_try;;
3025 esac
3026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3027 $as_echo "$ac_try_echo") >&5
3028 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3029 ac_status=$?
3030 grep -v '^ *+' conftest.er1 >conftest.err
3031 rm -f conftest.er1
3032 cat conftest.err >&5
3033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); } >/dev/null && {
3035 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3036 test ! -s conftest.err
3037 }; then
3038 # Broken: success on invalid input. 3189 # Broken: success on invalid input.
3039 continue 3190 continue
3040 else 3191 else
3041 $as_echo "$as_me: failed program was:" >&5
3042 sed 's/^/| /' conftest.$ac_ext >&5
3043
3044 # Passes both tests. 3192 # Passes both tests.
3045 ac_preproc_ok=: 3193 ac_preproc_ok=:
3046 break 3194 break
3047 fi 3195 fi
3048
3049 rm -f conftest.err conftest.$ac_ext 3196 rm -f conftest.err conftest.$ac_ext
3050 3197
3051 done 3198 done
3052 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3199 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3053 rm -f conftest.err conftest.$ac_ext 3200 rm -f conftest.err conftest.$ac_ext
3054 if $ac_preproc_ok; then 3201 if $ac_preproc_ok; then :
3055 break 3202 break
3056 fi 3203 fi
3057 3204
3058 done 3205 done
3059 ac_cv_prog_CPP=$CPP 3206 ac_cv_prog_CPP=$CPP
3061 fi 3208 fi
3062 CPP=$ac_cv_prog_CPP 3209 CPP=$ac_cv_prog_CPP
3063 else 3210 else
3064 ac_cv_prog_CPP=$CPP 3211 ac_cv_prog_CPP=$CPP
3065 fi 3212 fi
3066 { $as_echo "$as_me:$LINENO: result: $CPP" >&5 3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3067 $as_echo "$CPP" >&6; } 3214 $as_echo "$CPP" >&6; }
3068 ac_preproc_ok=false 3215 ac_preproc_ok=false
3069 for ac_c_preproc_warn_flag in '' yes 3216 for ac_c_preproc_warn_flag in '' yes
3070 do 3217 do
3071 # Use a header file that comes with gcc, so configuring glibc 3218 # Use a header file that comes with gcc, so configuring glibc
3072 # with a fresh cross-compiler works. 3219 # with a fresh cross-compiler works.
3073 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3220 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3074 # <limits.h> exists even on freestanding compilers. 3221 # <limits.h> exists even on freestanding compilers.
3075 # On the NeXT, cc -E runs the code through the compiler's parser, 3222 # On the NeXT, cc -E runs the code through the compiler's parser,
3076 # not just through cpp. "Syntax error" is here to catch this case. 3223 # not just through cpp. "Syntax error" is here to catch this case.
3077 cat >conftest.$ac_ext <<_ACEOF 3224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3078 /* confdefs.h. */
3079 _ACEOF
3080 cat confdefs.h >>conftest.$ac_ext
3081 cat >>conftest.$ac_ext <<_ACEOF
3082 /* end confdefs.h. */ 3225 /* end confdefs.h. */
3083 #ifdef __STDC__ 3226 #ifdef __STDC__
3084 # include <limits.h> 3227 # include <limits.h>
3085 #else 3228 #else
3086 # include <assert.h> 3229 # include <assert.h>
3087 #endif 3230 #endif
3088 Syntax error 3231 Syntax error
3089 _ACEOF 3232 _ACEOF
3090 if { (ac_try="$ac_cpp conftest.$ac_ext" 3233 if ac_fn_c_try_cpp "$LINENO"; then :
3091 case "(($ac_try" in 3234
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3235 else
3093 *) ac_try_echo=$ac_try;;
3094 esac
3095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3096 $as_echo "$ac_try_echo") >&5
3097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3098 ac_status=$?
3099 grep -v '^ *+' conftest.er1 >conftest.err
3100 rm -f conftest.er1
3101 cat conftest.err >&5
3102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); } >/dev/null && {
3104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3105 test ! -s conftest.err
3106 }; then
3107 :
3108 else
3109 $as_echo "$as_me: failed program was:" >&5
3110 sed 's/^/| /' conftest.$ac_ext >&5
3111
3112 # Broken: fails on valid input. 3236 # Broken: fails on valid input.
3113 continue 3237 continue
3114 fi 3238 fi
3115
3116 rm -f conftest.err conftest.$ac_ext 3239 rm -f conftest.err conftest.$ac_ext
3117 3240
3118 # OK, works on sane cases. Now check whether nonexistent headers 3241 # OK, works on sane cases. Now check whether nonexistent headers
3119 # can be detected and how. 3242 # can be detected and how.
3120 cat >conftest.$ac_ext <<_ACEOF 3243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3121 /* confdefs.h. */
3122 _ACEOF
3123 cat confdefs.h >>conftest.$ac_ext
3124 cat >>conftest.$ac_ext <<_ACEOF
3125 /* end confdefs.h. */ 3244 /* end confdefs.h. */
3126 #include <ac_nonexistent.h> 3245 #include <ac_nonexistent.h>
3127 _ACEOF 3246 _ACEOF
3128 if { (ac_try="$ac_cpp conftest.$ac_ext" 3247 if ac_fn_c_try_cpp "$LINENO"; then :
3129 case "(($ac_try" in
3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131 *) ac_try_echo=$ac_try;;
3132 esac
3133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3134 $as_echo "$ac_try_echo") >&5
3135 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3136 ac_status=$?
3137 grep -v '^ *+' conftest.er1 >conftest.err
3138 rm -f conftest.er1
3139 cat conftest.err >&5
3140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); } >/dev/null && {
3142 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3143 test ! -s conftest.err
3144 }; then
3145 # Broken: success on invalid input. 3248 # Broken: success on invalid input.
3146 continue 3249 continue
3147 else 3250 else
3148 $as_echo "$as_me: failed program was:" >&5
3149 sed 's/^/| /' conftest.$ac_ext >&5
3150
3151 # Passes both tests. 3251 # Passes both tests.
3152 ac_preproc_ok=: 3252 ac_preproc_ok=:
3153 break 3253 break
3154 fi 3254 fi
3155
3156 rm -f conftest.err conftest.$ac_ext 3255 rm -f conftest.err conftest.$ac_ext
3157 3256
3158 done 3257 done
3159 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3258 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3160 rm -f conftest.err conftest.$ac_ext 3259 rm -f conftest.err conftest.$ac_ext
3161 if $ac_preproc_ok; then 3260 if $ac_preproc_ok; then :
3162 : 3261
3163 else 3262 else
3164 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3263 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3165 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3264 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3166 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3265 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3167 See \`config.log' for more details." >&5 3266 See \`config.log' for more details." "$LINENO" 5; }
3168 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3169 See \`config.log' for more details." >&2;}
3170 { (exit 1); exit 1; }; }; }
3171 fi 3267 fi
3172 3268
3173 ac_ext=c 3269 ac_ext=c
3174 ac_cpp='$CPP $CPPFLAGS' 3270 ac_cpp='$CPP $CPPFLAGS'
3175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3177 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3178 3274
3179 3275
3180 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3181 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3277 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3182 if test "${ac_cv_path_GREP+set}" = set; then 3278 if test "${ac_cv_path_GREP+set}" = set; then :
3183 $as_echo_n "(cached) " >&6 3279 $as_echo_n "(cached) " >&6
3184 else 3280 else
3185 if test -z "$GREP"; then 3281 if test -z "$GREP"; then
3186 ac_path_GREP_found=false 3282 ac_path_GREP_found=false
3187 # Loop through the user's path and test for each of PROGNAME-LIST 3283 # Loop through the user's path and test for each of PROGNAME-LIST
3188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3189 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3285 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3190 do 3286 do
3191 IFS=$as_save_IFS 3287 IFS=$as_save_IFS
3192 test -z "$as_dir" && as_dir=. 3288 test -z "$as_dir" && as_dir=.
3193 for ac_prog in grep ggrep; do 3289 for ac_prog in grep ggrep; do
3194 for ac_exec_ext in '' $ac_executable_extensions; do 3290 for ac_exec_ext in '' $ac_executable_extensions; do
3195 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3291 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3196 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3292 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3197 # Check for GNU ac_path_GREP and select it if it is found. 3293 # Check for GNU ac_path_GREP and select it if it is found.
3198 # Check for GNU $ac_path_GREP 3294 # Check for GNU $ac_path_GREP
3208 mv "conftest.tmp" "conftest.in" 3304 mv "conftest.tmp" "conftest.in"
3209 cp "conftest.in" "conftest.nl" 3305 cp "conftest.in" "conftest.nl"
3210 $as_echo 'GREP' >> "conftest.nl" 3306 $as_echo 'GREP' >> "conftest.nl"
3211 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3307 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3212 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3308 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3213 ac_count=`expr $ac_count + 1` 3309 as_fn_arith $ac_count + 1 && ac_count=$as_val
3214 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3310 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3215 # Best one so far, save it but keep looking for a better one 3311 # Best one so far, save it but keep looking for a better one
3216 ac_cv_path_GREP="$ac_path_GREP" 3312 ac_cv_path_GREP="$ac_path_GREP"
3217 ac_path_GREP_max=$ac_count 3313 ac_path_GREP_max=$ac_count
3218 fi 3314 fi
3223 esac 3319 esac
3224 3320
3225 $ac_path_GREP_found && break 3 3321 $ac_path_GREP_found && break 3
3226 done 3322 done
3227 done 3323 done
3228 done 3324 done
3229 IFS=$as_save_IFS 3325 IFS=$as_save_IFS
3230 if test -z "$ac_cv_path_GREP"; then 3326 if test -z "$ac_cv_path_GREP"; then
3231 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3327 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3232 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3233 { (exit 1); exit 1; }; }
3234 fi 3328 fi
3235 else 3329 else
3236 ac_cv_path_GREP=$GREP 3330 ac_cv_path_GREP=$GREP
3237 fi 3331 fi
3238 3332
3239 fi 3333 fi
3240 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3241 $as_echo "$ac_cv_path_GREP" >&6; } 3335 $as_echo "$ac_cv_path_GREP" >&6; }
3242 GREP="$ac_cv_path_GREP" 3336 GREP="$ac_cv_path_GREP"
3243 3337
3244 3338
3245 { $as_echo "$as_me:$LINENO: checking for egrep" >&5 3339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3246 $as_echo_n "checking for egrep... " >&6; } 3340 $as_echo_n "checking for egrep... " >&6; }
3247 if test "${ac_cv_path_EGREP+set}" = set; then 3341 if test "${ac_cv_path_EGREP+set}" = set; then :
3248 $as_echo_n "(cached) " >&6 3342 $as_echo_n "(cached) " >&6
3249 else 3343 else
3250 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3344 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3251 then ac_cv_path_EGREP="$GREP -E" 3345 then ac_cv_path_EGREP="$GREP -E"
3252 else 3346 else
3256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3257 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3351 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3258 do 3352 do
3259 IFS=$as_save_IFS 3353 IFS=$as_save_IFS
3260 test -z "$as_dir" && as_dir=. 3354 test -z "$as_dir" && as_dir=.
3261 for ac_prog in egrep; do 3355 for ac_prog in egrep; do
3262 for ac_exec_ext in '' $ac_executable_extensions; do 3356 for ac_exec_ext in '' $ac_executable_extensions; do
3263 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3357 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3264 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3358 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3265 # Check for GNU ac_path_EGREP and select it if it is found. 3359 # Check for GNU ac_path_EGREP and select it if it is found.
3266 # Check for GNU $ac_path_EGREP 3360 # Check for GNU $ac_path_EGREP
3276 mv "conftest.tmp" "conftest.in" 3370 mv "conftest.tmp" "conftest.in"
3277 cp "conftest.in" "conftest.nl" 3371 cp "conftest.in" "conftest.nl"
3278 $as_echo 'EGREP' >> "conftest.nl" 3372 $as_echo 'EGREP' >> "conftest.nl"
3279 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3373 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3280 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3374 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3281 ac_count=`expr $ac_count + 1` 3375 as_fn_arith $ac_count + 1 && ac_count=$as_val
3282 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3376 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3283 # Best one so far, save it but keep looking for a better one 3377 # Best one so far, save it but keep looking for a better one
3284 ac_cv_path_EGREP="$ac_path_EGREP" 3378 ac_cv_path_EGREP="$ac_path_EGREP"
3285 ac_path_EGREP_max=$ac_count 3379 ac_path_EGREP_max=$ac_count
3286 fi 3380 fi
3291 esac 3385 esac
3292 3386
3293 $ac_path_EGREP_found && break 3 3387 $ac_path_EGREP_found && break 3
3294 done 3388 done
3295 done 3389 done
3296 done 3390 done
3297 IFS=$as_save_IFS 3391 IFS=$as_save_IFS
3298 if test -z "$ac_cv_path_EGREP"; then 3392 if test -z "$ac_cv_path_EGREP"; then
3299 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3393 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3300 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3301 { (exit 1); exit 1; }; }
3302 fi 3394 fi
3303 else 3395 else
3304 ac_cv_path_EGREP=$EGREP 3396 ac_cv_path_EGREP=$EGREP
3305 fi 3397 fi
3306 3398
3307 fi 3399 fi
3308 fi 3400 fi
3309 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3310 $as_echo "$ac_cv_path_EGREP" >&6; } 3402 $as_echo "$ac_cv_path_EGREP" >&6; }
3311 EGREP="$ac_cv_path_EGREP" 3403 EGREP="$ac_cv_path_EGREP"
3312 3404
3313 3405
3314 cat >conftest.$ac_ext <<_ACEOF 3406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3315 /* confdefs.h. */ 3407 /* end confdefs.h. */
3316 _ACEOF 3408
3317 cat confdefs.h >>conftest.$ac_ext 3409 _ACEOF
3318 cat >>conftest.$ac_ext <<_ACEOF 3410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3319 /* end confdefs.h. */ 3411 $EGREP "" >/dev/null 2>&1; then :
3320 3412
3321 _ACEOF 3413 fi
3322 rm -f conftest* 3414 rm -f conftest*
3323 { $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5 3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3324 $as_echo_n "checking for library containing strerror... " >&6; } 3416 $as_echo_n "checking for library containing strerror... " >&6; }
3325 if test "${ac_cv_search_strerror+set}" = set; then 3417 if test "${ac_cv_search_strerror+set}" = set; then :
3326 $as_echo_n "(cached) " >&6 3418 $as_echo_n "(cached) " >&6
3327 else 3419 else
3328 ac_func_search_save_LIBS=$LIBS 3420 ac_func_search_save_LIBS=$LIBS
3329 cat >conftest.$ac_ext <<_ACEOF 3421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3330 /* confdefs.h. */
3331 _ACEOF
3332 cat confdefs.h >>conftest.$ac_ext
3333 cat >>conftest.$ac_ext <<_ACEOF
3334 /* end confdefs.h. */ 3422 /* end confdefs.h. */
3335 3423
3336 /* Override any GCC internal prototype to avoid an error. 3424 /* Override any GCC internal prototype to avoid an error.
3337 Use char because int might match the return type of a GCC 3425 Use char because int might match the return type of a GCC
3338 builtin and then its argument prototype would still apply. */ 3426 builtin and then its argument prototype would still apply. */
3353 ac_res="none required" 3441 ac_res="none required"
3354 else 3442 else
3355 ac_res=-l$ac_lib 3443 ac_res=-l$ac_lib
3356 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3444 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3357 fi 3445 fi
3358 rm -f conftest.$ac_objext conftest$ac_exeext 3446 if ac_fn_c_try_link "$LINENO"; then :
3359 if { (ac_try="$ac_link"
3360 case "(($ac_try" in
3361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3362 *) ac_try_echo=$ac_try;;
3363 esac
3364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3365 $as_echo "$ac_try_echo") >&5
3366 (eval "$ac_link") 2>conftest.er1
3367 ac_status=$?
3368 grep -v '^ *+' conftest.er1 >conftest.err
3369 rm -f conftest.er1
3370 cat conftest.err >&5
3371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); } && {
3373 test -z "$ac_c_werror_flag" ||
3374 test ! -s conftest.err
3375 } && test -s conftest$ac_exeext && {
3376 test "$cross_compiling" = yes ||
3377 $as_test_x conftest$ac_exeext
3378 }; then
3379 ac_cv_search_strerror=$ac_res 3447 ac_cv_search_strerror=$ac_res
3380 else 3448 fi
3381 $as_echo "$as_me: failed program was:" >&5 3449 rm -f core conftest.err conftest.$ac_objext \
3382 sed 's/^/| /' conftest.$ac_ext >&5 3450 conftest$ac_exeext
3383 3451 if test "${ac_cv_search_strerror+set}" = set; then :
3384
3385 fi
3386
3387 rm -rf conftest.dSYM
3388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3389 conftest$ac_exeext
3390 if test "${ac_cv_search_strerror+set}" = set; then
3391 break 3452 break
3392 fi 3453 fi
3393 done 3454 done
3394 if test "${ac_cv_search_strerror+set}" = set; then 3455 if test "${ac_cv_search_strerror+set}" = set; then :
3395 : 3456
3396 else 3457 else
3397 ac_cv_search_strerror=no 3458 ac_cv_search_strerror=no
3398 fi 3459 fi
3399 rm conftest.$ac_ext 3460 rm conftest.$ac_ext
3400 LIBS=$ac_func_search_save_LIBS 3461 LIBS=$ac_func_search_save_LIBS
3401 fi 3462 fi
3402 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3403 $as_echo "$ac_cv_search_strerror" >&6; } 3464 $as_echo "$ac_cv_search_strerror" >&6; }
3404 ac_res=$ac_cv_search_strerror 3465 ac_res=$ac_cv_search_strerror
3405 if test "$ac_res" != no; then 3466 if test "$ac_res" != no; then :
3406 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 3467 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3407 3468
3408 fi 3469 fi
3409 for ac_prog in gawk mawk nawk awk 3470 for ac_prog in gawk mawk nawk awk
3410 do 3471 do
3411 # Extract the first word of "$ac_prog", so it can be a program name with args. 3472 # Extract the first word of "$ac_prog", so it can be a program name with args.
3412 set dummy $ac_prog; ac_word=$2 3473 set dummy $ac_prog; ac_word=$2
3413 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3414 $as_echo_n "checking for $ac_word... " >&6; } 3475 $as_echo_n "checking for $ac_word... " >&6; }
3415 if test "${ac_cv_prog_AWK+set}" = set; then 3476 if test "${ac_cv_prog_AWK+set}" = set; then :
3416 $as_echo_n "(cached) " >&6 3477 $as_echo_n "(cached) " >&6
3417 else 3478 else
3418 if test -n "$AWK"; then 3479 if test -n "$AWK"; then
3419 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3480 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3420 else 3481 else
3421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3422 for as_dir in $PATH 3483 for as_dir in $PATH
3423 do 3484 do
3424 IFS=$as_save_IFS 3485 IFS=$as_save_IFS
3425 test -z "$as_dir" && as_dir=. 3486 test -z "$as_dir" && as_dir=.
3426 for ac_exec_ext in '' $ac_executable_extensions; do 3487 for ac_exec_ext in '' $ac_executable_extensions; do
3427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3428 ac_cv_prog_AWK="$ac_prog" 3489 ac_cv_prog_AWK="$ac_prog"
3429 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3430 break 2 3491 break 2
3431 fi 3492 fi
3432 done 3493 done
3433 done 3494 done
3434 IFS=$as_save_IFS 3495 IFS=$as_save_IFS
3435 3496
3436 fi 3497 fi
3437 fi 3498 fi
3438 AWK=$ac_cv_prog_AWK 3499 AWK=$ac_cv_prog_AWK
3439 if test -n "$AWK"; then 3500 if test -n "$AWK"; then
3440 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3441 $as_echo "$AWK" >&6; } 3502 $as_echo "$AWK" >&6; }
3442 else 3503 else
3443 { $as_echo "$as_me:$LINENO: result: no" >&5 3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3444 $as_echo "no" >&6; } 3505 $as_echo "no" >&6; }
3445 fi 3506 fi
3446 3507
3447 3508
3448 test -n "$AWK" && break 3509 test -n "$AWK" && break
3449 done 3510 done
3450 3511
3451 # Extract the first word of "strip", so it can be a program name with args. 3512 # Extract the first word of "strip", so it can be a program name with args.
3452 set dummy strip; ac_word=$2 3513 set dummy strip; ac_word=$2
3453 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3454 $as_echo_n "checking for $ac_word... " >&6; } 3515 $as_echo_n "checking for $ac_word... " >&6; }
3455 if test "${ac_cv_prog_STRIP+set}" = set; then 3516 if test "${ac_cv_prog_STRIP+set}" = set; then :
3456 $as_echo_n "(cached) " >&6 3517 $as_echo_n "(cached) " >&6
3457 else 3518 else
3458 if test -n "$STRIP"; then 3519 if test -n "$STRIP"; then
3459 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3520 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3460 else 3521 else
3461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3462 for as_dir in $PATH 3523 for as_dir in $PATH
3463 do 3524 do
3464 IFS=$as_save_IFS 3525 IFS=$as_save_IFS
3465 test -z "$as_dir" && as_dir=. 3526 test -z "$as_dir" && as_dir=.
3466 for ac_exec_ext in '' $ac_executable_extensions; do 3527 for ac_exec_ext in '' $ac_executable_extensions; do
3467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3468 ac_cv_prog_STRIP="strip" 3529 ac_cv_prog_STRIP="strip"
3469 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3470 break 2 3531 break 2
3471 fi 3532 fi
3472 done 3533 done
3473 done 3534 done
3474 IFS=$as_save_IFS 3535 IFS=$as_save_IFS
3475 3536
3476 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" 3537 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3477 fi 3538 fi
3478 fi 3539 fi
3479 STRIP=$ac_cv_prog_STRIP 3540 STRIP=$ac_cv_prog_STRIP
3480 if test -n "$STRIP"; then 3541 if test -n "$STRIP"; then
3481 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3482 $as_echo "$STRIP" >&6; } 3543 $as_echo "$STRIP" >&6; }
3483 else 3544 else
3484 { $as_echo "$as_me:$LINENO: result: no" >&5 3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3485 $as_echo "no" >&6; } 3546 $as_echo "no" >&6; }
3486 fi 3547 fi
3487 3548
3488 3549
3489 3550
3490 3551
3491 3552
3492 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3493 $as_echo_n "checking for ANSI C header files... " >&6; } 3554 $as_echo_n "checking for ANSI C header files... " >&6; }
3494 if test "${ac_cv_header_stdc+set}" = set; then 3555 if test "${ac_cv_header_stdc+set}" = set; then :
3495 $as_echo_n "(cached) " >&6 3556 $as_echo_n "(cached) " >&6
3496 else 3557 else
3497 cat >conftest.$ac_ext <<_ACEOF 3558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3498 /* confdefs.h. */
3499 _ACEOF
3500 cat confdefs.h >>conftest.$ac_ext
3501 cat >>conftest.$ac_ext <<_ACEOF
3502 /* end confdefs.h. */ 3559 /* end confdefs.h. */
3503 #include <stdlib.h> 3560 #include <stdlib.h>
3504 #include <stdarg.h> 3561 #include <stdarg.h>
3505 #include <string.h> 3562 #include <string.h>
3506 #include <float.h> 3563 #include <float.h>
3511 3568
3512 ; 3569 ;
3513 return 0; 3570 return 0;
3514 } 3571 }
3515 _ACEOF 3572 _ACEOF
3516 rm -f conftest.$ac_objext 3573 if ac_fn_c_try_compile "$LINENO"; then :
3517 if { (ac_try="$ac_compile"
3518 case "(($ac_try" in
3519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3520 *) ac_try_echo=$ac_try;;
3521 esac
3522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3523 $as_echo "$ac_try_echo") >&5
3524 (eval "$ac_compile") 2>conftest.er1
3525 ac_status=$?
3526 grep -v '^ *+' conftest.er1 >conftest.err
3527 rm -f conftest.er1
3528 cat conftest.err >&5
3529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); } && {
3531 test -z "$ac_c_werror_flag" ||
3532 test ! -s conftest.err
3533 } && test -s conftest.$ac_objext; then
3534 ac_cv_header_stdc=yes 3574 ac_cv_header_stdc=yes
3535 else 3575 else
3536 $as_echo "$as_me: failed program was:" >&5 3576 ac_cv_header_stdc=no
3537 sed 's/^/| /' conftest.$ac_ext >&5 3577 fi
3538
3539 ac_cv_header_stdc=no
3540 fi
3541
3542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3543 3579
3544 if test $ac_cv_header_stdc = yes; then 3580 if test $ac_cv_header_stdc = yes; then
3545 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3581 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3546 cat >conftest.$ac_ext <<_ACEOF 3582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3547 /* confdefs.h. */
3548 _ACEOF
3549 cat confdefs.h >>conftest.$ac_ext
3550 cat >>conftest.$ac_ext <<_ACEOF
3551 /* end confdefs.h. */ 3583 /* end confdefs.h. */
3552 #include <string.h> 3584 #include <string.h>
3553 3585
3554 _ACEOF 3586 _ACEOF
3555 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3556 $EGREP "memchr" >/dev/null 2>&1; then 3588 $EGREP "memchr" >/dev/null 2>&1; then :
3557 : 3589
3558 else 3590 else
3559 ac_cv_header_stdc=no 3591 ac_cv_header_stdc=no
3560 fi 3592 fi
3561 rm -f conftest* 3593 rm -f conftest*
3562 3594
3563 fi 3595 fi
3564 3596
3565 if test $ac_cv_header_stdc = yes; then 3597 if test $ac_cv_header_stdc = yes; then
3566 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3598 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3567 cat >conftest.$ac_ext <<_ACEOF 3599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568 /* confdefs.h. */
3569 _ACEOF
3570 cat confdefs.h >>conftest.$ac_ext
3571 cat >>conftest.$ac_ext <<_ACEOF
3572 /* end confdefs.h. */ 3600 /* end confdefs.h. */
3573 #include <stdlib.h> 3601 #include <stdlib.h>
3574 3602
3575 _ACEOF 3603 _ACEOF
3576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3577 $EGREP "free" >/dev/null 2>&1; then 3605 $EGREP "free" >/dev/null 2>&1; then :
3578 : 3606
3579 else 3607 else
3580 ac_cv_header_stdc=no 3608 ac_cv_header_stdc=no
3581 fi 3609 fi
3582 rm -f conftest* 3610 rm -f conftest*
3583 3611
3584 fi 3612 fi
3585 3613
3586 if test $ac_cv_header_stdc = yes; then 3614 if test $ac_cv_header_stdc = yes; then
3587 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3615 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3588 if test "$cross_compiling" = yes; then 3616 if test "$cross_compiling" = yes; then :
3589 : 3617 :
3590 else 3618 else
3591 cat >conftest.$ac_ext <<_ACEOF 3619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3592 /* confdefs.h. */
3593 _ACEOF
3594 cat confdefs.h >>conftest.$ac_ext
3595 cat >>conftest.$ac_ext <<_ACEOF
3596 /* end confdefs.h. */ 3620 /* end confdefs.h. */
3597 #include <ctype.h> 3621 #include <ctype.h>
3598 #include <stdlib.h> 3622 #include <stdlib.h>
3599 #if ((' ' & 0x0FF) == 0x020) 3623 #if ((' ' & 0x0FF) == 0x020)
3600 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3624 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3617 || toupper (i) != TOUPPER (i)) 3641 || toupper (i) != TOUPPER (i))
3618 return 2; 3642 return 2;
3619 return 0; 3643 return 0;
3620 } 3644 }
3621 _ACEOF 3645 _ACEOF
3622 rm -f conftest$ac_exeext 3646 if ac_fn_c_try_run "$LINENO"; then :
3623 if { (ac_try="$ac_link" 3647
3624 case "(($ac_try" in 3648 else
3625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3649 ac_cv_header_stdc=no
3626 *) ac_try_echo=$ac_try;; 3650 fi
3627 esac 3651 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3652 conftest.$ac_objext conftest.beam conftest.$ac_ext
3629 $as_echo "$ac_try_echo") >&5 3653 fi
3630 (eval "$ac_link") 2>&5 3654
3631 ac_status=$? 3655 fi
3632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3656 fi
3633 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3634 { (case "(($ac_try" in
3635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3636 *) ac_try_echo=$ac_try;;
3637 esac
3638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3639 $as_echo "$ac_try_echo") >&5
3640 (eval "$ac_try") 2>&5
3641 ac_status=$?
3642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); }; }; then
3644 :
3645 else
3646 $as_echo "$as_me: program exited with status $ac_status" >&5
3647 $as_echo "$as_me: failed program was:" >&5
3648 sed 's/^/| /' conftest.$ac_ext >&5
3649
3650 ( exit $ac_status )
3651 ac_cv_header_stdc=no
3652 fi
3653 rm -rf conftest.dSYM
3654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3655 fi
3656
3657
3658 fi
3659 fi
3660 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3661 $as_echo "$ac_cv_header_stdc" >&6; } 3658 $as_echo "$ac_cv_header_stdc" >&6; }
3662 if test $ac_cv_header_stdc = yes; then 3659 if test $ac_cv_header_stdc = yes; then
3663 3660
3664 cat >>confdefs.h <<\_ACEOF 3661 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3665 #define STDC_HEADERS 1 3662
3666 _ACEOF 3663 fi
3667 3664
3668 fi 3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
3669
3670 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3671 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 3666 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
3672 if test "${ac_cv_header_sys_wait_h+set}" = set; then 3667 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
3673 $as_echo_n "(cached) " >&6 3668 $as_echo_n "(cached) " >&6
3674 else 3669 else
3675 cat >conftest.$ac_ext <<_ACEOF 3670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3676 /* confdefs.h. */
3677 _ACEOF
3678 cat confdefs.h >>conftest.$ac_ext
3679 cat >>conftest.$ac_ext <<_ACEOF
3680 /* end confdefs.h. */ 3671 /* end confdefs.h. */
3681 #include <sys/types.h> 3672 #include <sys/types.h>
3682 #include <sys/wait.h> 3673 #include <sys/wait.h>
3683 #ifndef WEXITSTATUS 3674 #ifndef WEXITSTATUS
3684 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 3675 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
3695 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 3686 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3696 ; 3687 ;
3697 return 0; 3688 return 0;
3698 } 3689 }
3699 _ACEOF 3690 _ACEOF
3700 rm -f conftest.$ac_objext 3691 if ac_fn_c_try_compile "$LINENO"; then :
3701 if { (ac_try="$ac_compile"
3702 case "(($ac_try" in
3703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3704 *) ac_try_echo=$ac_try;;
3705 esac
3706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3707 $as_echo "$ac_try_echo") >&5
3708 (eval "$ac_compile") 2>conftest.er1
3709 ac_status=$?
3710 grep -v '^ *+' conftest.er1 >conftest.err
3711 rm -f conftest.er1
3712 cat conftest.err >&5
3713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 (exit $ac_status); } && {
3715 test -z "$ac_c_werror_flag" ||
3716 test ! -s conftest.err
3717 } && test -s conftest.$ac_objext; then
3718 ac_cv_header_sys_wait_h=yes 3692 ac_cv_header_sys_wait_h=yes
3719 else 3693 else
3720 $as_echo "$as_me: failed program was:" >&5 3694 ac_cv_header_sys_wait_h=no
3721 sed 's/^/| /' conftest.$ac_ext >&5 3695 fi
3722
3723 ac_cv_header_sys_wait_h=no
3724 fi
3725
3726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3727 fi 3697 fi
3728 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
3729 $as_echo "$ac_cv_header_sys_wait_h" >&6; } 3699 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
3730 if test $ac_cv_header_sys_wait_h = yes; then 3700 if test $ac_cv_header_sys_wait_h = yes; then
3731 3701
3732 cat >>confdefs.h <<\_ACEOF 3702 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
3733 #define HAVE_SYS_WAIT_H 1
3734 _ACEOF
3735 3703
3736 fi 3704 fi
3737 3705
3738 3706
3739 if test -z "$CFLAGS"; then 3707 if test -z "$CFLAGS"; then
3755 fi 3723 fi
3756 fi 3724 fi
3757 fi 3725 fi
3758 3726
3759 if test "$cross_compiling" = yes; then 3727 if test "$cross_compiling" = yes; then
3760 { $as_echo "$as_me:$LINENO: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5 3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5
3761 $as_echo "cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; } 3729 $as_echo "cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; }
3762 fi 3730 fi
3763 3731
3764 test "$GCC" = yes && CPP_MM=M; 3732 test "$GCC" = yes && CPP_MM=M;
3765 3733
3766 if test -f ./toolcheck; then 3734 if test -f ./toolcheck; then
3767 { $as_echo "$as_me:$LINENO: checking for buggy tools..." >&5 3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for buggy tools..." >&5
3768 $as_echo "$as_me: checking for buggy tools..." >&6;} 3736 $as_echo "$as_me: checking for buggy tools..." >&6;}
3769 sh ./toolcheck 1>&6 3737 sh ./toolcheck 1>&6
3770 fi 3738 fi
3771 3739
3772 OS_EXTRA_SRC=""; OS_EXTRA_OBJ="" 3740 OS_EXTRA_SRC=""; OS_EXTRA_OBJ=""
3773 3741
3774 { $as_echo "$as_me:$LINENO: checking for BeOS" >&5 3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BeOS" >&5
3775 $as_echo_n "checking for BeOS... " >&6; } 3743 $as_echo_n "checking for BeOS... " >&6; }
3776 case `uname` in 3744 case `uname` in
3777 BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o 3745 BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o
3778 BEOS=yes; { $as_echo "$as_me:$LINENO: result: yes" >&5 3746 BEOS=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3779 $as_echo "yes" >&6; };; 3747 $as_echo "yes" >&6; };;
3780 *) BEOS=no; { $as_echo "$as_me:$LINENO: result: no" >&5 3748 *) BEOS=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3781 $as_echo "no" >&6; };; 3749 $as_echo "no" >&6; };;
3782 esac 3750 esac
3783 3751
3784 { $as_echo "$as_me:$LINENO: checking for QNX" >&5 3752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QNX" >&5
3785 $as_echo_n "checking for QNX... " >&6; } 3753 $as_echo_n "checking for QNX... " >&6; }
3786 case `uname` in 3754 case `uname` in
3787 QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o 3755 QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o
3788 test -z "$with_x" && with_x=no 3756 test -z "$with_x" && with_x=no
3789 QNX=yes; { $as_echo "$as_me:$LINENO: result: yes" >&5 3757 QNX=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3790 $as_echo "yes" >&6; };; 3758 $as_echo "yes" >&6; };;
3791 *) QNX=no; { $as_echo "$as_me:$LINENO: result: no" >&5 3759 *) QNX=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3792 $as_echo "no" >&6; };; 3760 $as_echo "no" >&6; };;
3793 esac 3761 esac
3794 3762
3795 { $as_echo "$as_me:$LINENO: checking for Darwin (Mac OS X)" >&5 3763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Darwin (Mac OS X)" >&5
3796 $as_echo_n "checking for Darwin (Mac OS X)... " >&6; } 3764 $as_echo_n "checking for Darwin (Mac OS X)... " >&6; }
3797 if test "`(uname) 2>/dev/null`" = Darwin; then 3765 if test "`(uname) 2>/dev/null`" = Darwin; then
3798 { $as_echo "$as_me:$LINENO: result: yes" >&5 3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3799 $as_echo "yes" >&6; } 3767 $as_echo "yes" >&6; }
3800 3768
3801 { $as_echo "$as_me:$LINENO: checking --disable-darwin argument" >&5 3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-darwin argument" >&5
3802 $as_echo_n "checking --disable-darwin argument... " >&6; } 3770 $as_echo_n "checking --disable-darwin argument... " >&6; }
3803 # Check whether --enable-darwin was given. 3771 # Check whether --enable-darwin was given.
3804 if test "${enable_darwin+set}" = set; then 3772 if test "${enable_darwin+set}" = set; then :
3805 enableval=$enable_darwin; 3773 enableval=$enable_darwin;
3806 else 3774 else
3807 enable_darwin="yes" 3775 enable_darwin="yes"
3808 fi 3776 fi
3809 3777
3810 if test "$enable_darwin" = "yes"; then 3778 if test "$enable_darwin" = "yes"; then
3811 { $as_echo "$as_me:$LINENO: result: no" >&5 3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3812 $as_echo "no" >&6; } 3780 $as_echo "no" >&6; }
3813 { $as_echo "$as_me:$LINENO: checking if Darwin files are there" >&5 3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Darwin files are there" >&5
3814 $as_echo_n "checking if Darwin files are there... " >&6; } 3782 $as_echo_n "checking if Darwin files are there... " >&6; }
3815 if test -f os_macosx.c; then 3783 if test -f os_macosx.c; then
3816 { $as_echo "$as_me:$LINENO: result: yes" >&5 3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3817 $as_echo "yes" >&6; } 3785 $as_echo "yes" >&6; }
3818 else 3786 else
3819 { $as_echo "$as_me:$LINENO: result: no, Darwin support disabled" >&5 3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, Darwin support disabled" >&5
3820 $as_echo "no, Darwin support disabled" >&6; } 3788 $as_echo "no, Darwin support disabled" >&6; }
3821 enable_darwin=no 3789 enable_darwin=no
3822 fi 3790 fi
3823 else 3791 else
3824 { $as_echo "$as_me:$LINENO: result: yes, Darwin support excluded" >&5 3792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, Darwin support excluded" >&5
3825 $as_echo "yes, Darwin support excluded" >&6; } 3793 $as_echo "yes, Darwin support excluded" >&6; }
3826 fi 3794 fi
3827 3795
3828 { $as_echo "$as_me:$LINENO: checking --with-mac-arch argument" >&5 3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-mac-arch argument" >&5
3829 $as_echo_n "checking --with-mac-arch argument... " >&6; } 3797 $as_echo_n "checking --with-mac-arch argument... " >&6; }
3830 3798
3831 # Check whether --with-mac-arch was given. 3799 # Check whether --with-mac-arch was given.
3832 if test "${with_mac_arch+set}" = set; then 3800 if test "${with_mac_arch+set}" = set; then :
3833 withval=$with_mac_arch; MACARCH="$withval"; { $as_echo "$as_me:$LINENO: result: $MACARCH" >&5 3801 withval=$with_mac_arch; MACARCH="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACARCH" >&5
3834 $as_echo "$MACARCH" >&6; } 3802 $as_echo "$MACARCH" >&6; }
3835 else 3803 else
3836 MACARCH="current"; { $as_echo "$as_me:$LINENO: result: defaulting to $MACARCH" >&5 3804 MACARCH="current"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $MACARCH" >&5
3837 $as_echo "defaulting to $MACARCH" >&6; } 3805 $as_echo "defaulting to $MACARCH" >&6; }
3838 fi 3806 fi
3839 3807
3840 3808
3841 { $as_echo "$as_me:$LINENO: checking --with-developer-dir argument" >&5 3809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-developer-dir argument" >&5
3842 $as_echo_n "checking --with-developer-dir argument... " >&6; } 3810 $as_echo_n "checking --with-developer-dir argument... " >&6; }
3843 3811
3844 # Check whether --with-developer-dir was given. 3812 # Check whether --with-developer-dir was given.
3845 if test "${with_developer_dir+set}" = set; then 3813 if test "${with_developer_dir+set}" = set; then :
3846 withval=$with_developer_dir; DEVELOPER_DIR="$withval"; { $as_echo "$as_me:$LINENO: result: $DEVELOPER_DIR" >&5 3814 withval=$with_developer_dir; DEVELOPER_DIR="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5
3847 $as_echo "$DEVELOPER_DIR" >&6; } 3815 $as_echo "$DEVELOPER_DIR" >&6; }
3848 else 3816 else
3849 DEVELOPER_DIR=""; { $as_echo "$as_me:$LINENO: result: not present" >&5 3817 DEVELOPER_DIR=""; { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present" >&5
3850 $as_echo "not present" >&6; } 3818 $as_echo "not present" >&6; }
3851 fi 3819 fi
3852 3820
3853 3821
3854 if test "x$DEVELOPER_DIR" = "x"; then 3822 if test "x$DEVELOPER_DIR" = "x"; then
3855 # Extract the first word of "xcode-select", so it can be a program name with args. 3823 # Extract the first word of "xcode-select", so it can be a program name with args.
3856 set dummy xcode-select; ac_word=$2 3824 set dummy xcode-select; ac_word=$2
3857 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3858 $as_echo_n "checking for $ac_word... " >&6; } 3826 $as_echo_n "checking for $ac_word... " >&6; }
3859 if test "${ac_cv_path_XCODE_SELECT+set}" = set; then 3827 if test "${ac_cv_path_XCODE_SELECT+set}" = set; then :
3860 $as_echo_n "(cached) " >&6 3828 $as_echo_n "(cached) " >&6
3861 else 3829 else
3862 case $XCODE_SELECT in 3830 case $XCODE_SELECT in
3863 [\\/]* | ?:[\\/]*) 3831 [\\/]* | ?:[\\/]*)
3864 ac_cv_path_XCODE_SELECT="$XCODE_SELECT" # Let the user override the test with a path. 3832 ac_cv_path_XCODE_SELECT="$XCODE_SELECT" # Let the user override the test with a path.
3867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3868 for as_dir in $PATH 3836 for as_dir in $PATH
3869 do 3837 do
3870 IFS=$as_save_IFS 3838 IFS=$as_save_IFS
3871 test -z "$as_dir" && as_dir=. 3839 test -z "$as_dir" && as_dir=.
3872 for ac_exec_ext in '' $ac_executable_extensions; do 3840 for ac_exec_ext in '' $ac_executable_extensions; do
3873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3874 ac_cv_path_XCODE_SELECT="$as_dir/$ac_word$ac_exec_ext" 3842 ac_cv_path_XCODE_SELECT="$as_dir/$ac_word$ac_exec_ext"
3875 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3876 break 2 3844 break 2
3877 fi 3845 fi
3878 done 3846 done
3879 done 3847 done
3880 IFS=$as_save_IFS 3848 IFS=$as_save_IFS
3881 3849
3882 ;; 3850 ;;
3883 esac 3851 esac
3884 fi 3852 fi
3885 XCODE_SELECT=$ac_cv_path_XCODE_SELECT 3853 XCODE_SELECT=$ac_cv_path_XCODE_SELECT
3886 if test -n "$XCODE_SELECT"; then 3854 if test -n "$XCODE_SELECT"; then
3887 { $as_echo "$as_me:$LINENO: result: $XCODE_SELECT" >&5 3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODE_SELECT" >&5
3888 $as_echo "$XCODE_SELECT" >&6; } 3856 $as_echo "$XCODE_SELECT" >&6; }
3889 else 3857 else
3890 { $as_echo "$as_me:$LINENO: result: no" >&5 3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3891 $as_echo "no" >&6; } 3859 $as_echo "no" >&6; }
3892 fi 3860 fi
3893 3861
3894 3862
3895 if test "x$XCODE_SELECT" != "x"; then 3863 if test "x$XCODE_SELECT" != "x"; then
3896 { $as_echo "$as_me:$LINENO: checking for developer dir using xcode-select" >&5 3864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for developer dir using xcode-select" >&5
3897 $as_echo_n "checking for developer dir using xcode-select... " >&6; } 3865 $as_echo_n "checking for developer dir using xcode-select... " >&6; }
3898 DEVELOPER_DIR=`$XCODE_SELECT -print-path` 3866 DEVELOPER_DIR=`$XCODE_SELECT -print-path`
3899 { $as_echo "$as_me:$LINENO: result: $DEVELOPER_DIR" >&5 3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5
3900 $as_echo "$DEVELOPER_DIR" >&6; } 3868 $as_echo "$DEVELOPER_DIR" >&6; }
3901 else 3869 else
3902 DEVELOPER_DIR=/Developer 3870 DEVELOPER_DIR=/Developer
3903 fi 3871 fi
3904 fi 3872 fi
3905 3873
3906 if test "x$MACARCH" = "xboth"; then 3874 if test "x$MACARCH" = "xboth"; then
3907 { $as_echo "$as_me:$LINENO: checking for 10.4 universal SDK" >&5 3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 10.4 universal SDK" >&5
3908 $as_echo_n "checking for 10.4 universal SDK... " >&6; } 3876 $as_echo_n "checking for 10.4 universal SDK... " >&6; }
3909 save_cppflags="$CPPFLAGS" 3877 save_cppflags="$CPPFLAGS"
3910 save_cflags="$CFLAGS" 3878 save_cflags="$CFLAGS"
3911 save_ldflags="$LDFLAGS" 3879 save_ldflags="$LDFLAGS"
3912 CFLAGS="$CFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" 3880 CFLAGS="$CFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
3913 cat >conftest.$ac_ext <<_ACEOF 3881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3914 /* confdefs.h. */
3915 _ACEOF
3916 cat confdefs.h >>conftest.$ac_ext
3917 cat >>conftest.$ac_ext <<_ACEOF
3918 /* end confdefs.h. */ 3882 /* end confdefs.h. */
3919 3883
3920 int 3884 int
3921 main () 3885 main ()
3922 { 3886 {
3923 3887
3924 ; 3888 ;
3925 return 0; 3889 return 0;
3926 } 3890 }
3927 _ACEOF 3891 _ACEOF
3928 rm -f conftest.$ac_objext conftest$ac_exeext 3892 if ac_fn_c_try_link "$LINENO"; then :
3929 if { (ac_try="$ac_link" 3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
3930 case "(($ac_try" in
3931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3932 *) ac_try_echo=$ac_try;;
3933 esac
3934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3935 $as_echo "$ac_try_echo") >&5
3936 (eval "$ac_link") 2>conftest.er1
3937 ac_status=$?
3938 grep -v '^ *+' conftest.er1 >conftest.err
3939 rm -f conftest.er1
3940 cat conftest.err >&5
3941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 (exit $ac_status); } && {
3943 test -z "$ac_c_werror_flag" ||
3944 test ! -s conftest.err
3945 } && test -s conftest$ac_exeext && {
3946 test "$cross_compiling" = yes ||
3947 $as_test_x conftest$ac_exeext
3948 }; then
3949 { $as_echo "$as_me:$LINENO: result: found" >&5
3950 $as_echo "found" >&6; } 3894 $as_echo "found" >&6; }
3951 else 3895 else
3952 $as_echo "$as_me: failed program was:" >&5 3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
3953 sed 's/^/| /' conftest.$ac_ext >&5
3954
3955 { $as_echo "$as_me:$LINENO: result: not found" >&5
3956 $as_echo "not found" >&6; } 3897 $as_echo "not found" >&6; }
3957 CFLAGS="$save_cflags" 3898 CFLAGS="$save_cflags"
3958 { $as_echo "$as_me:$LINENO: checking if Intel architecture is supported" >&5 3899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Intel architecture is supported" >&5
3959 $as_echo_n "checking if Intel architecture is supported... " >&6; } 3900 $as_echo_n "checking if Intel architecture is supported... " >&6; }
3960 CPPFLAGS="$CPPFLAGS -arch i386" 3901 CPPFLAGS="$CPPFLAGS -arch i386"
3961 LDFLAGS="$save_ldflags -arch i386" 3902 LDFLAGS="$save_ldflags -arch i386"
3962 cat >conftest.$ac_ext <<_ACEOF 3903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3963 /* confdefs.h. */
3964 _ACEOF
3965 cat confdefs.h >>conftest.$ac_ext
3966 cat >>conftest.$ac_ext <<_ACEOF
3967 /* end confdefs.h. */ 3904 /* end confdefs.h. */
3968 3905
3969 int 3906 int
3970 main () 3907 main ()
3971 { 3908 {
3972 3909
3973 ; 3910 ;
3974 return 0; 3911 return 0;
3975 } 3912 }
3976 _ACEOF 3913 _ACEOF
3977 rm -f conftest.$ac_objext conftest$ac_exeext 3914 if ac_fn_c_try_link "$LINENO"; then :
3978 if { (ac_try="$ac_link" 3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3979 case "(($ac_try" in
3980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3981 *) ac_try_echo=$ac_try;;
3982 esac
3983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3984 $as_echo "$ac_try_echo") >&5
3985 (eval "$ac_link") 2>conftest.er1
3986 ac_status=$?
3987 grep -v '^ *+' conftest.er1 >conftest.err
3988 rm -f conftest.er1
3989 cat conftest.err >&5
3990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); } && {
3992 test -z "$ac_c_werror_flag" ||
3993 test ! -s conftest.err
3994 } && test -s conftest$ac_exeext && {
3995 test "$cross_compiling" = yes ||
3996 $as_test_x conftest$ac_exeext
3997 }; then
3998 { $as_echo "$as_me:$LINENO: result: yes" >&5
3999 $as_echo "yes" >&6; }; MACARCH="intel" 3916 $as_echo "yes" >&6; }; MACARCH="intel"
4000 else 3917 else
4001 $as_echo "$as_me: failed program was:" >&5 3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4002 sed 's/^/| /' conftest.$ac_ext >&5
4003
4004 { $as_echo "$as_me:$LINENO: result: no" >&5
4005 $as_echo "no" >&6; } 3919 $as_echo "no" >&6; }
4006 MACARCH="ppc" 3920 MACARCH="ppc"
4007 CPPFLAGS="$save_cppflags -arch ppc" 3921 CPPFLAGS="$save_cppflags -arch ppc"
4008 LDFLAGS="$save_ldflags -arch ppc" 3922 LDFLAGS="$save_ldflags -arch ppc"
4009 fi 3923 fi
4010 3924 rm -f core conftest.err conftest.$ac_objext \
4011 rm -rf conftest.dSYM 3925 conftest$ac_exeext conftest.$ac_ext
4012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3926 fi
4013 conftest$ac_exeext conftest.$ac_ext 3927 rm -f core conftest.err conftest.$ac_objext \
4014 fi 3928 conftest$ac_exeext conftest.$ac_ext
4015
4016 rm -rf conftest.dSYM
4017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4018 conftest$ac_exeext conftest.$ac_ext
4019 elif test "x$MACARCH" = "xintel"; then 3929 elif test "x$MACARCH" = "xintel"; then
4020 CPPFLAGS="$CPPFLAGS -arch intel" 3930 CPPFLAGS="$CPPFLAGS -arch intel"
4021 LDFLAGS="$LDFLAGS -arch intel" 3931 LDFLAGS="$LDFLAGS -arch intel"
4022 elif test "x$MACARCH" = "xppc"; then 3932 elif test "x$MACARCH" = "xppc"; then
4023 CPPFLAGS="$CPPFLAGS -arch ppc" 3933 CPPFLAGS="$CPPFLAGS -arch ppc"
4034 else 3944 else
4035 CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/Headers/FlatCarbon" 3945 CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/Headers/FlatCarbon"
4036 fi 3946 fi
4037 3947
4038 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 3948 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3949 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4049 inttypes.h stdint.h unistd.h 3950 inttypes.h stdint.h unistd.h
4050 do 3951 do :
4051 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3952 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4052 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 3953 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4053 $as_echo_n "checking for $ac_header... " >&6; } 3954 "
4054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3955 eval as_val=\$$as_ac_Header
4055 $as_echo_n "(cached) " >&6 3956 if test "x$as_val" = x""yes; then :
4056 else
4057 cat >conftest.$ac_ext <<_ACEOF
4058 /* confdefs.h. */
4059 _ACEOF
4060 cat confdefs.h >>conftest.$ac_ext
4061 cat >>conftest.$ac_ext <<_ACEOF
4062 /* end confdefs.h. */
4063 $ac_includes_default
4064
4065 #include <$ac_header>
4066 _ACEOF
4067 rm -f conftest.$ac_objext
4068 if { (ac_try="$ac_compile"
4069 case "(($ac_try" in
4070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4071 *) ac_try_echo=$ac_try;;
4072 esac
4073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4074 $as_echo "$ac_try_echo") >&5
4075 (eval "$ac_compile") 2>conftest.er1
4076 ac_status=$?
4077 grep -v '^ *+' conftest.er1 >conftest.err
4078 rm -f conftest.er1
4079 cat conftest.err >&5
4080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); } && {
4082 test -z "$ac_c_werror_flag" ||
4083 test ! -s conftest.err
4084 } && test -s conftest.$ac_objext; then
4085 eval "$as_ac_Header=yes"
4086 else
4087 $as_echo "$as_me: failed program was:" >&5
4088 sed 's/^/| /' conftest.$ac_ext >&5
4089
4090 eval "$as_ac_Header=no"
4091 fi
4092
4093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4094 fi
4095 ac_res=`eval 'as_val=${'$as_ac_Header'}
4096 $as_echo "$as_val"'`
4097 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4098 $as_echo "$ac_res" >&6; }
4099 as_val=`eval 'as_val=${'$as_ac_Header'}
4100 $as_echo "$as_val"'`
4101 if test "x$as_val" = x""yes; then
4102 cat >>confdefs.h <<_ACEOF 3957 cat >>confdefs.h <<_ACEOF
4103 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3958 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4104 _ACEOF 3959 _ACEOF
4105 3960
4106 fi 3961 fi
4107 3962
4108 done 3963 done
4109 3964
4110 3965
4111 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then 3966 ac_fn_c_check_header_mongrel "$LINENO" "Carbon/Carbon.h" "ac_cv_header_Carbon_Carbon_h" "$ac_includes_default"
4112 { $as_echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5 3967 if test "x$ac_cv_header_Carbon_Carbon_h" = x""yes; then :
4113 $as_echo_n "checking for Carbon/Carbon.h... " >&6; }
4114 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4115 $as_echo_n "(cached) " >&6
4116 fi
4117 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
4118 $as_echo "$ac_cv_header_Carbon_Carbon_h" >&6; }
4119 else
4120 # Is the header compilable?
4121 { $as_echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
4122 $as_echo_n "checking Carbon/Carbon.h usability... " >&6; }
4123 cat >conftest.$ac_ext <<_ACEOF
4124 /* confdefs.h. */
4125 _ACEOF
4126 cat confdefs.h >>conftest.$ac_ext
4127 cat >>conftest.$ac_ext <<_ACEOF
4128 /* end confdefs.h. */
4129 $ac_includes_default
4130 #include <Carbon/Carbon.h>
4131 _ACEOF
4132 rm -f conftest.$ac_objext
4133 if { (ac_try="$ac_compile"
4134 case "(($ac_try" in
4135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4136 *) ac_try_echo=$ac_try;;
4137 esac
4138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4139 $as_echo "$ac_try_echo") >&5
4140 (eval "$ac_compile") 2>conftest.er1
4141 ac_status=$?
4142 grep -v '^ *+' conftest.er1 >conftest.err
4143 rm -f conftest.er1
4144 cat conftest.err >&5
4145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); } && {
4147 test -z "$ac_c_werror_flag" ||
4148 test ! -s conftest.err
4149 } && test -s conftest.$ac_objext; then
4150 ac_header_compiler=yes
4151 else
4152 $as_echo "$as_me: failed program was:" >&5
4153 sed 's/^/| /' conftest.$ac_ext >&5
4154
4155 ac_header_compiler=no
4156 fi
4157
4158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4159 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4160 $as_echo "$ac_header_compiler" >&6; }
4161
4162 # Is the header present?
4163 { $as_echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
4164 $as_echo_n "checking Carbon/Carbon.h presence... " >&6; }
4165 cat >conftest.$ac_ext <<_ACEOF
4166 /* confdefs.h. */
4167 _ACEOF
4168 cat confdefs.h >>conftest.$ac_ext
4169 cat >>conftest.$ac_ext <<_ACEOF
4170 /* end confdefs.h. */
4171 #include <Carbon/Carbon.h>
4172 _ACEOF
4173 if { (ac_try="$ac_cpp conftest.$ac_ext"
4174 case "(($ac_try" in
4175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4176 *) ac_try_echo=$ac_try;;
4177 esac
4178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4179 $as_echo "$ac_try_echo") >&5
4180 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4181 ac_status=$?
4182 grep -v '^ *+' conftest.er1 >conftest.err
4183 rm -f conftest.er1
4184 cat conftest.err >&5
4185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); } >/dev/null && {
4187 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4188 test ! -s conftest.err
4189 }; then
4190 ac_header_preproc=yes
4191 else
4192 $as_echo "$as_me: failed program was:" >&5
4193 sed 's/^/| /' conftest.$ac_ext >&5
4194
4195 ac_header_preproc=no
4196 fi
4197
4198 rm -f conftest.err conftest.$ac_ext
4199 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4200 $as_echo "$ac_header_preproc" >&6; }
4201
4202 # So? What about this header?
4203 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4204 yes:no: )
4205 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
4206 $as_echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4207 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
4208 $as_echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
4209 ac_header_preproc=yes
4210 ;;
4211 no:yes:* )
4212 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
4213 $as_echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
4214 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
4215 $as_echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
4216 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
4217 $as_echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
4218 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
4219 $as_echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
4220 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
4221 $as_echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
4222 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
4223 $as_echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
4224
4225 ;;
4226 esac
4227 { $as_echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
4228 $as_echo_n "checking for Carbon/Carbon.h... " >&6; }
4229 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4230 $as_echo_n "(cached) " >&6
4231 else
4232 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
4233 fi
4234 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
4235 $as_echo "$ac_cv_header_Carbon_Carbon_h" >&6; }
4236
4237 fi
4238 if test "x$ac_cv_header_Carbon_Carbon_h" = x""yes; then
4239 CARBON=yes 3968 CARBON=yes
4240 fi 3969 fi
4241 3970
4242 3971
4243 if test "x$CARBON" = "xyes"; then 3972 if test "x$CARBON" = "xyes"; then
4250 if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then 3979 if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then
4251 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'` 3980 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'`
4252 fi 3981 fi
4253 3982
4254 else 3983 else
4255 { $as_echo "$as_me:$LINENO: result: no" >&5 3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4256 $as_echo "no" >&6; } 3985 $as_echo "no" >&6; }
4257 fi 3986 fi
4258 3987
4259 3988
4260 3989
4261 3990
4262 if test "$cross_compiling" = no; then 3991 if test "$cross_compiling" = no; then
4263 { $as_echo "$as_me:$LINENO: checking --with-local-dir argument" >&5 3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-local-dir argument" >&5
4264 $as_echo_n "checking --with-local-dir argument... " >&6; } 3993 $as_echo_n "checking --with-local-dir argument... " >&6; }
4265 have_local_include='' 3994 have_local_include=''
4266 have_local_lib='' 3995 have_local_lib=''
4267 3996
4268 # Check whether --with-local-dir was given. 3997 # Check whether --with-local-dir was given.
4269 if test "${with_local_dir+set}" = set; then 3998 if test "${with_local_dir+set}" = set; then :
4270 withval=$with_local_dir; 3999 withval=$with_local_dir;
4271 local_dir="$withval" 4000 local_dir="$withval"
4272 case "$withval" in 4001 case "$withval" in
4273 */*) ;; 4002 */*) ;;
4274 no) 4003 no)
4275 # avoid adding local dir to LDFLAGS and CPPFLAGS 4004 # avoid adding local dir to LDFLAGS and CPPFLAGS
4276 have_local_dir=yes 4005 have_local_dir=yes
4277 have_local_lib=yes 4006 have_local_lib=yes
4278 ;; 4007 ;;
4279 *) { { $as_echo "$as_me:$LINENO: error: must pass path argument to --with-local-dir" >&5 4008 *) as_fn_error "must pass path argument to --with-local-dir" "$LINENO" 5 ;;
4280 $as_echo "$as_me: error: must pass path argument to --with-local-dir" >&2;}
4281 { (exit 1); exit 1; }; } ;;
4282 esac 4009 esac
4283 { $as_echo "$as_me:$LINENO: result: $local_dir" >&5 4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $local_dir" >&5
4284 $as_echo "$local_dir" >&6; } 4011 $as_echo "$local_dir" >&6; }
4285 4012
4286 else 4013 else
4287 4014
4288 local_dir=/usr/local 4015 local_dir=/usr/local
4289 { $as_echo "$as_me:$LINENO: result: Defaulting to $local_dir" >&5 4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $local_dir" >&5
4290 $as_echo "Defaulting to $local_dir" >&6; } 4017 $as_echo "Defaulting to $local_dir" >&6; }
4291 4018
4292 fi 4019 fi
4293 4020
4294 if test "$GCC" = yes -a "$local_dir" != no; then 4021 if test "$GCC" = yes -a "$local_dir" != no; then
4309 CPPFLAGS="$CPPFLAGS -I${local_dir}/include" 4036 CPPFLAGS="$CPPFLAGS -I${local_dir}/include"
4310 fi 4037 fi
4311 fi 4038 fi
4312 fi 4039 fi
4313 4040
4314 { $as_echo "$as_me:$LINENO: checking --with-vim-name argument" >&5 4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-vim-name argument" >&5
4315 $as_echo_n "checking --with-vim-name argument... " >&6; } 4042 $as_echo_n "checking --with-vim-name argument... " >&6; }
4316 4043
4317 # Check whether --with-vim-name was given. 4044 # Check whether --with-vim-name was given.
4318 if test "${with_vim_name+set}" = set; then 4045 if test "${with_vim_name+set}" = set; then :
4319 withval=$with_vim_name; VIMNAME="$withval"; { $as_echo "$as_me:$LINENO: result: $VIMNAME" >&5 4046 withval=$with_vim_name; VIMNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIMNAME" >&5
4320 $as_echo "$VIMNAME" >&6; } 4047 $as_echo "$VIMNAME" >&6; }
4321 else 4048 else
4322 VIMNAME="vim"; { $as_echo "$as_me:$LINENO: result: Defaulting to $VIMNAME" >&5 4049 VIMNAME="vim"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $VIMNAME" >&5
4323 $as_echo "Defaulting to $VIMNAME" >&6; } 4050 $as_echo "Defaulting to $VIMNAME" >&6; }
4324 fi 4051 fi
4325 4052
4326 4053
4327 { $as_echo "$as_me:$LINENO: checking --with-ex-name argument" >&5 4054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ex-name argument" >&5
4328 $as_echo_n "checking --with-ex-name argument... " >&6; } 4055 $as_echo_n "checking --with-ex-name argument... " >&6; }
4329 4056
4330 # Check whether --with-ex-name was given. 4057 # Check whether --with-ex-name was given.
4331 if test "${with_ex_name+set}" = set; then 4058 if test "${with_ex_name+set}" = set; then :
4332 withval=$with_ex_name; EXNAME="$withval"; { $as_echo "$as_me:$LINENO: result: $EXNAME" >&5 4059 withval=$with_ex_name; EXNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXNAME" >&5
4333 $as_echo "$EXNAME" >&6; } 4060 $as_echo "$EXNAME" >&6; }
4334 else 4061 else
4335 EXNAME="ex"; { $as_echo "$as_me:$LINENO: result: Defaulting to ex" >&5 4062 EXNAME="ex"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to ex" >&5
4336 $as_echo "Defaulting to ex" >&6; } 4063 $as_echo "Defaulting to ex" >&6; }
4337 fi 4064 fi
4338 4065
4339 4066
4340 { $as_echo "$as_me:$LINENO: checking --with-view-name argument" >&5 4067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-view-name argument" >&5
4341 $as_echo_n "checking --with-view-name argument... " >&6; } 4068 $as_echo_n "checking --with-view-name argument... " >&6; }
4342 4069
4343 # Check whether --with-view-name was given. 4070 # Check whether --with-view-name was given.
4344 if test "${with_view_name+set}" = set; then 4071 if test "${with_view_name+set}" = set; then :
4345 withval=$with_view_name; VIEWNAME="$withval"; { $as_echo "$as_me:$LINENO: result: $VIEWNAME" >&5 4072 withval=$with_view_name; VIEWNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIEWNAME" >&5
4346 $as_echo "$VIEWNAME" >&6; } 4073 $as_echo "$VIEWNAME" >&6; }
4347 else 4074 else
4348 VIEWNAME="view"; { $as_echo "$as_me:$LINENO: result: Defaulting to view" >&5 4075 VIEWNAME="view"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to view" >&5
4349 $as_echo "Defaulting to view" >&6; } 4076 $as_echo "Defaulting to view" >&6; }
4350 fi 4077 fi
4351 4078
4352 4079
4353 4080
4354 { $as_echo "$as_me:$LINENO: checking --with-global-runtime argument" >&5 4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-global-runtime argument" >&5
4355 $as_echo_n "checking --with-global-runtime argument... " >&6; } 4082 $as_echo_n "checking --with-global-runtime argument... " >&6; }
4356 4083
4357 # Check whether --with-global-runtime was given. 4084 # Check whether --with-global-runtime was given.
4358 if test "${with_global_runtime+set}" = set; then 4085 if test "${with_global_runtime+set}" = set; then :
4359 withval=$with_global_runtime; { $as_echo "$as_me:$LINENO: result: $withval" >&5 4086 withval=$with_global_runtime; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
4360 $as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF 4087 $as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4361 #define RUNTIME_GLOBAL "$withval" 4088 #define RUNTIME_GLOBAL "$withval"
4362 _ACEOF 4089 _ACEOF
4363 4090
4364 else 4091 else
4365 { $as_echo "$as_me:$LINENO: result: no" >&5 4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4366 $as_echo "no" >&6; } 4093 $as_echo "no" >&6; }
4367 fi 4094 fi
4368 4095
4369 4096
4370 { $as_echo "$as_me:$LINENO: checking --with-modified-by argument" >&5 4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-modified-by argument" >&5
4371 $as_echo_n "checking --with-modified-by argument... " >&6; } 4098 $as_echo_n "checking --with-modified-by argument... " >&6; }
4372 4099
4373 # Check whether --with-modified-by was given. 4100 # Check whether --with-modified-by was given.
4374 if test "${with_modified_by+set}" = set; then 4101 if test "${with_modified_by+set}" = set; then :
4375 withval=$with_modified_by; { $as_echo "$as_me:$LINENO: result: $withval" >&5 4102 withval=$with_modified_by; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
4376 $as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF 4103 $as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4377 #define MODIFIED_BY "$withval" 4104 #define MODIFIED_BY "$withval"
4378 _ACEOF 4105 _ACEOF
4379 4106
4380 else 4107 else
4381 { $as_echo "$as_me:$LINENO: result: no" >&5 4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4382 $as_echo "no" >&6; } 4109 $as_echo "no" >&6; }
4383 fi 4110 fi
4384 4111
4385 4112
4386 { $as_echo "$as_me:$LINENO: checking if character set is EBCDIC" >&5 4113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if character set is EBCDIC" >&5
4387 $as_echo_n "checking if character set is EBCDIC... " >&6; } 4114 $as_echo_n "checking if character set is EBCDIC... " >&6; }
4388 cat >conftest.$ac_ext <<_ACEOF 4115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4389 /* confdefs.h. */
4390 _ACEOF
4391 cat confdefs.h >>conftest.$ac_ext
4392 cat >>conftest.$ac_ext <<_ACEOF
4393 /* end confdefs.h. */ 4116 /* end confdefs.h. */
4394 4117
4395 int 4118 int
4396 main () 4119 main ()
4397 { 4120 {
4404 #endif 4127 #endif
4405 ; 4128 ;
4406 return 0; 4129 return 0;
4407 } 4130 }
4408 _ACEOF 4131 _ACEOF
4409 rm -f conftest.$ac_objext 4132 if ac_fn_c_try_compile "$LINENO"; then :
4410 if { (ac_try="$ac_compile"
4411 case "(($ac_try" in
4412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4413 *) ac_try_echo=$ac_try;;
4414 esac
4415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4416 $as_echo "$ac_try_echo") >&5
4417 (eval "$ac_compile") 2>conftest.er1
4418 ac_status=$?
4419 grep -v '^ *+' conftest.er1 >conftest.err
4420 rm -f conftest.er1
4421 cat conftest.err >&5
4422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); } && {
4424 test -z "$ac_c_werror_flag" ||
4425 test ! -s conftest.err
4426 } && test -s conftest.$ac_objext; then
4427 # TryCompile action if true 4133 # TryCompile action if true
4428 cf_cv_ebcdic=yes 4134 cf_cv_ebcdic=yes
4429 else 4135 else
4430 $as_echo "$as_me: failed program was:" >&5 4136 # TryCompile action if false
4431 sed 's/^/| /' conftest.$ac_ext >&5
4432
4433 # TryCompile action if false
4434 cf_cv_ebcdic=no 4137 cf_cv_ebcdic=no
4435 fi 4138 fi
4436
4437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4438 # end of TryCompile ]) 4140 # end of TryCompile ])
4439 # end of CacheVal CvEbcdic 4141 # end of CacheVal CvEbcdic
4440 { $as_echo "$as_me:$LINENO: result: $cf_cv_ebcdic" >&5 4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_cv_ebcdic" >&5
4441 $as_echo "$cf_cv_ebcdic" >&6; } 4143 $as_echo "$cf_cv_ebcdic" >&6; }
4442 case "$cf_cv_ebcdic" in #(vi 4144 case "$cf_cv_ebcdic" in #(vi
4443 yes) cat >>confdefs.h <<\_ACEOF 4145 yes) $as_echo "#define EBCDIC 1" >>confdefs.h
4444 #define EBCDIC 1
4445 _ACEOF
4446 4146
4447 line_break='"\\n"' 4147 line_break='"\\n"'
4448 ;; 4148 ;;
4449 *) line_break='"\\012"';; 4149 *) line_break='"\\012"';;
4450 esac 4150 esac
4451 4151
4452 4152
4453 if test "$cf_cv_ebcdic" = "yes"; then 4153 if test "$cf_cv_ebcdic" = "yes"; then
4454 { $as_echo "$as_me:$LINENO: checking for OS/390 Unix" >&5 4154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OS/390 Unix" >&5
4455 $as_echo_n "checking for OS/390 Unix... " >&6; } 4155 $as_echo_n "checking for OS/390 Unix... " >&6; }
4456 case `uname` in 4156 case `uname` in
4457 OS/390) OS390Unix="yes"; 4157 OS/390) OS390Unix="yes";
4458 if test "$CC" = "cc"; then 4158 if test "$CC" = "cc"; then
4459 ccm="$_CC_CCMODE" 4159 ccm="$_CC_CCMODE"
4476 echo " and then call configure again." 4176 echo " and then call configure again."
4477 echo "------------------------------------------" 4177 echo "------------------------------------------"
4478 exit 1 4178 exit 1
4479 fi 4179 fi
4480 CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO" 4180 CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
4481 { $as_echo "$as_me:$LINENO: result: yes" >&5 4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4482 $as_echo "yes" >&6; } 4182 $as_echo "yes" >&6; }
4483 ;; 4183 ;;
4484 *) OS390Unix="no"; 4184 *) OS390Unix="no";
4485 { $as_echo "$as_me:$LINENO: result: no" >&5 4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4486 $as_echo "no" >&6; } 4186 $as_echo "no" >&6; }
4487 ;; 4187 ;;
4488 esac 4188 esac
4489 fi 4189 fi
4490 4190
4491 { $as_echo "$as_me:$LINENO: checking --disable-selinux argument" >&5 4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-selinux argument" >&5
4492 $as_echo_n "checking --disable-selinux argument... " >&6; } 4192 $as_echo_n "checking --disable-selinux argument... " >&6; }
4493 # Check whether --enable-selinux was given. 4193 # Check whether --enable-selinux was given.
4494 if test "${enable_selinux+set}" = set; then 4194 if test "${enable_selinux+set}" = set; then :
4495 enableval=$enable_selinux; 4195 enableval=$enable_selinux;
4496 else 4196 else
4497 enable_selinux="yes" 4197 enable_selinux="yes"
4498 fi 4198 fi
4499 4199
4500 if test "$enable_selinux" = "yes"; then 4200 if test "$enable_selinux" = "yes"; then
4501 { $as_echo "$as_me:$LINENO: result: no" >&5 4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4502 $as_echo "no" >&6; } 4202 $as_echo "no" >&6; }
4503 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5 4203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
4504 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } 4204 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
4505 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then 4205 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then :
4506 $as_echo_n "(cached) " >&6 4206 $as_echo_n "(cached) " >&6
4507 else 4207 else
4508 ac_check_lib_save_LIBS=$LIBS 4208 ac_check_lib_save_LIBS=$LIBS
4509 LIBS="-lselinux $LIBS" 4209 LIBS="-lselinux $LIBS"
4510 cat >conftest.$ac_ext <<_ACEOF 4210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4511 /* confdefs.h. */
4512 _ACEOF
4513 cat confdefs.h >>conftest.$ac_ext
4514 cat >>conftest.$ac_ext <<_ACEOF
4515 /* end confdefs.h. */ 4211 /* end confdefs.h. */
4516 4212
4517 /* Override any GCC internal prototype to avoid an error. 4213 /* Override any GCC internal prototype to avoid an error.
4518 Use char because int might match the return type of a GCC 4214 Use char because int might match the return type of a GCC
4519 builtin and then its argument prototype would still apply. */ 4215 builtin and then its argument prototype would still apply. */
4527 return is_selinux_enabled (); 4223 return is_selinux_enabled ();
4528 ; 4224 ;
4529 return 0; 4225 return 0;
4530 } 4226 }
4531 _ACEOF 4227 _ACEOF
4532 rm -f conftest.$ac_objext conftest$ac_exeext 4228 if ac_fn_c_try_link "$LINENO"; then :
4533 if { (ac_try="$ac_link"
4534 case "(($ac_try" in
4535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4536 *) ac_try_echo=$ac_try;;
4537 esac
4538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4539 $as_echo "$ac_try_echo") >&5
4540 (eval "$ac_link") 2>conftest.er1
4541 ac_status=$?
4542 grep -v '^ *+' conftest.er1 >conftest.err
4543 rm -f conftest.er1
4544 cat conftest.err >&5
4545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); } && {
4547 test -z "$ac_c_werror_flag" ||
4548 test ! -s conftest.err
4549 } && test -s conftest$ac_exeext && {
4550 test "$cross_compiling" = yes ||
4551 $as_test_x conftest$ac_exeext
4552 }; then
4553 ac_cv_lib_selinux_is_selinux_enabled=yes 4229 ac_cv_lib_selinux_is_selinux_enabled=yes
4554 else 4230 else
4555 $as_echo "$as_me: failed program was:" >&5 4231 ac_cv_lib_selinux_is_selinux_enabled=no
4556 sed 's/^/| /' conftest.$ac_ext >&5 4232 fi
4557 4233 rm -f core conftest.err conftest.$ac_objext \
4558 ac_cv_lib_selinux_is_selinux_enabled=no 4234 conftest$ac_exeext conftest.$ac_ext
4559 fi
4560
4561 rm -rf conftest.dSYM
4562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4563 conftest$ac_exeext conftest.$ac_ext
4564 LIBS=$ac_check_lib_save_LIBS 4235 LIBS=$ac_check_lib_save_LIBS
4565 fi 4236 fi
4566 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
4567 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } 4238 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
4568 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then 4239 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then :
4569 LIBS="$LIBS -lselinux" 4240 LIBS="$LIBS -lselinux"
4570 cat >>confdefs.h <<\_ACEOF 4241 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
4571 #define HAVE_SELINUX 1 4242
4572 _ACEOF 4243 fi
4573 4244
4574 fi 4245 else
4575 4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4576 else
4577 { $as_echo "$as_me:$LINENO: result: yes" >&5
4578 $as_echo "yes" >&6; } 4247 $as_echo "yes" >&6; }
4579 fi 4248 fi
4580 4249
4581 4250
4582 { $as_echo "$as_me:$LINENO: checking --with-features argument" >&5 4251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-features argument" >&5
4583 $as_echo_n "checking --with-features argument... " >&6; } 4252 $as_echo_n "checking --with-features argument... " >&6; }
4584 4253
4585 # Check whether --with-features was given. 4254 # Check whether --with-features was given.
4586 if test "${with_features+set}" = set; then 4255 if test "${with_features+set}" = set; then :
4587 withval=$with_features; features="$withval"; { $as_echo "$as_me:$LINENO: result: $features" >&5 4256 withval=$with_features; features="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $features" >&5
4588 $as_echo "$features" >&6; } 4257 $as_echo "$features" >&6; }
4589 else 4258 else
4590 features="normal"; { $as_echo "$as_me:$LINENO: result: Defaulting to normal" >&5 4259 features="normal"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to normal" >&5
4591 $as_echo "Defaulting to normal" >&6; } 4260 $as_echo "Defaulting to normal" >&6; }
4592 fi 4261 fi
4593 4262
4594 4263
4595 dovimdiff="" 4264 dovimdiff=""
4596 dogvimdiff="" 4265 dogvimdiff=""
4597 case "$features" in 4266 case "$features" in
4598 tiny) cat >>confdefs.h <<\_ACEOF 4267 tiny) $as_echo "#define FEAT_TINY 1" >>confdefs.h
4599 #define FEAT_TINY 1
4600 _ACEOF
4601 ;; 4268 ;;
4602 small) cat >>confdefs.h <<\_ACEOF 4269 small) $as_echo "#define FEAT_SMALL 1" >>confdefs.h
4603 #define FEAT_SMALL 1
4604 _ACEOF
4605 ;; 4270 ;;
4606 normal) cat >>confdefs.h <<\_ACEOF 4271 normal) $as_echo "#define FEAT_NORMAL 1" >>confdefs.h
4607 #define FEAT_NORMAL 1
4608 _ACEOF
4609 dovimdiff="installvimdiff"; 4272 dovimdiff="installvimdiff";
4610 dogvimdiff="installgvimdiff" ;; 4273 dogvimdiff="installgvimdiff" ;;
4611 big) cat >>confdefs.h <<\_ACEOF 4274 big) $as_echo "#define FEAT_BIG 1" >>confdefs.h
4612 #define FEAT_BIG 1
4613 _ACEOF
4614 dovimdiff="installvimdiff"; 4275 dovimdiff="installvimdiff";
4615 dogvimdiff="installgvimdiff" ;; 4276 dogvimdiff="installgvimdiff" ;;
4616 huge) cat >>confdefs.h <<\_ACEOF 4277 huge) $as_echo "#define FEAT_HUGE 1" >>confdefs.h
4617 #define FEAT_HUGE 1
4618 _ACEOF
4619 dovimdiff="installvimdiff"; 4278 dovimdiff="installvimdiff";
4620 dogvimdiff="installgvimdiff" ;; 4279 dogvimdiff="installgvimdiff" ;;
4621 *) { $as_echo "$as_me:$LINENO: result: Sorry, $features is not supported" >&5 4280 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $features is not supported" >&5
4622 $as_echo "Sorry, $features is not supported" >&6; } ;; 4281 $as_echo "Sorry, $features is not supported" >&6; } ;;
4623 esac 4282 esac
4624 4283
4625 4284
4626 4285
4627 4286
4628 { $as_echo "$as_me:$LINENO: checking --with-compiledby argument" >&5 4287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-compiledby argument" >&5
4629 $as_echo_n "checking --with-compiledby argument... " >&6; } 4288 $as_echo_n "checking --with-compiledby argument... " >&6; }
4630 4289
4631 # Check whether --with-compiledby was given. 4290 # Check whether --with-compiledby was given.
4632 if test "${with_compiledby+set}" = set; then 4291 if test "${with_compiledby+set}" = set; then :
4633 withval=$with_compiledby; compiledby="$withval"; { $as_echo "$as_me:$LINENO: result: $withval" >&5 4292 withval=$with_compiledby; compiledby="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
4634 $as_echo "$withval" >&6; } 4293 $as_echo "$withval" >&6; }
4635 else 4294 else
4636 compiledby=""; { $as_echo "$as_me:$LINENO: result: no" >&5 4295 compiledby=""; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4637 $as_echo "no" >&6; } 4296 $as_echo "no" >&6; }
4638 fi 4297 fi
4639 4298
4640 4299
4641 4300
4642 { $as_echo "$as_me:$LINENO: checking --disable-xsmp argument" >&5 4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp argument" >&5
4643 $as_echo_n "checking --disable-xsmp argument... " >&6; } 4302 $as_echo_n "checking --disable-xsmp argument... " >&6; }
4644 # Check whether --enable-xsmp was given. 4303 # Check whether --enable-xsmp was given.
4645 if test "${enable_xsmp+set}" = set; then 4304 if test "${enable_xsmp+set}" = set; then :
4646 enableval=$enable_xsmp; 4305 enableval=$enable_xsmp;
4647 else 4306 else
4648 enable_xsmp="yes" 4307 enable_xsmp="yes"
4649 fi 4308 fi
4650 4309
4651 4310
4652 if test "$enable_xsmp" = "yes"; then 4311 if test "$enable_xsmp" = "yes"; then
4653 { $as_echo "$as_me:$LINENO: result: no" >&5 4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4654 $as_echo "no" >&6; } 4313 $as_echo "no" >&6; }
4655 { $as_echo "$as_me:$LINENO: checking --disable-xsmp-interact argument" >&5 4314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp-interact argument" >&5
4656 $as_echo_n "checking --disable-xsmp-interact argument... " >&6; } 4315 $as_echo_n "checking --disable-xsmp-interact argument... " >&6; }
4657 # Check whether --enable-xsmp-interact was given. 4316 # Check whether --enable-xsmp-interact was given.
4658 if test "${enable_xsmp_interact+set}" = set; then 4317 if test "${enable_xsmp_interact+set}" = set; then :
4659 enableval=$enable_xsmp_interact; 4318 enableval=$enable_xsmp_interact;
4660 else 4319 else
4661 enable_xsmp_interact="yes" 4320 enable_xsmp_interact="yes"
4662 fi 4321 fi
4663 4322
4664 if test "$enable_xsmp_interact" = "yes"; then 4323 if test "$enable_xsmp_interact" = "yes"; then
4665 { $as_echo "$as_me:$LINENO: result: no" >&5 4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4666 $as_echo "no" >&6; } 4325 $as_echo "no" >&6; }
4667 cat >>confdefs.h <<\_ACEOF 4326 $as_echo "#define USE_XSMP_INTERACT 1" >>confdefs.h
4668 #define USE_XSMP_INTERACT 1
4669 _ACEOF
4670 4327
4671 else 4328 else
4672 { $as_echo "$as_me:$LINENO: result: yes" >&5 4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4673 $as_echo "yes" >&6; } 4330 $as_echo "yes" >&6; }
4674 fi 4331 fi
4675 else 4332 else
4676 { $as_echo "$as_me:$LINENO: result: yes" >&5 4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4677 $as_echo "yes" >&6; } 4334 $as_echo "yes" >&6; }
4678 fi 4335 fi
4679 4336
4680 { $as_echo "$as_me:$LINENO: checking --enable-mzschemeinterp argument" >&5 4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-mzschemeinterp argument" >&5
4681 $as_echo_n "checking --enable-mzschemeinterp argument... " >&6; } 4338 $as_echo_n "checking --enable-mzschemeinterp argument... " >&6; }
4682 # Check whether --enable-mzschemeinterp was given. 4339 # Check whether --enable-mzschemeinterp was given.
4683 if test "${enable_mzschemeinterp+set}" = set; then 4340 if test "${enable_mzschemeinterp+set}" = set; then :
4684 enableval=$enable_mzschemeinterp; 4341 enableval=$enable_mzschemeinterp;
4685 else 4342 else
4686 enable_mzschemeinterp="no" 4343 enable_mzschemeinterp="no"
4687 fi 4344 fi
4688 4345
4689 { $as_echo "$as_me:$LINENO: result: $enable_mzschemeinterp" >&5 4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_mzschemeinterp" >&5
4690 $as_echo "$enable_mzschemeinterp" >&6; } 4347 $as_echo "$enable_mzschemeinterp" >&6; }
4691 4348
4692 if test "$enable_mzschemeinterp" = "yes"; then 4349 if test "$enable_mzschemeinterp" = "yes"; then
4693 4350
4694 4351
4695 { $as_echo "$as_me:$LINENO: checking --with-plthome argument" >&5 4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-plthome argument" >&5
4696 $as_echo_n "checking --with-plthome argument... " >&6; } 4353 $as_echo_n "checking --with-plthome argument... " >&6; }
4697 4354
4698 # Check whether --with-plthome was given. 4355 # Check whether --with-plthome was given.
4699 if test "${with_plthome+set}" = set; then 4356 if test "${with_plthome+set}" = set; then :
4700 withval=$with_plthome; with_plthome="$withval"; { $as_echo "$as_me:$LINENO: result: $with_plthome" >&5 4357 withval=$with_plthome; with_plthome="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_plthome" >&5
4701 $as_echo "$with_plthome" >&6; } 4358 $as_echo "$with_plthome" >&6; }
4702 else 4359 else
4703 with_plthome="";{ $as_echo "$as_me:$LINENO: result: \"no\"" >&5 4360 with_plthome="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5
4704 $as_echo "\"no\"" >&6; } 4361 $as_echo "\"no\"" >&6; }
4705 fi 4362 fi
4706 4363
4707 4364
4708 if test "X$with_plthome" != "X"; then 4365 if test "X$with_plthome" != "X"; then
4709 vi_cv_path_mzscheme_pfx="$with_plthome" 4366 vi_cv_path_mzscheme_pfx="$with_plthome"
4710 else 4367 else
4711 { $as_echo "$as_me:$LINENO: checking PLTHOME environment var" >&5 4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PLTHOME environment var" >&5
4712 $as_echo_n "checking PLTHOME environment var... " >&6; } 4369 $as_echo_n "checking PLTHOME environment var... " >&6; }
4713 if test "X$PLTHOME" != "X"; then 4370 if test "X$PLTHOME" != "X"; then
4714 { $as_echo "$as_me:$LINENO: result: \"$PLTHOME\"" >&5 4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$PLTHOME\"" >&5
4715 $as_echo "\"$PLTHOME\"" >&6; } 4372 $as_echo "\"$PLTHOME\"" >&6; }
4716 vi_cv_path_mzscheme_pfx="$PLTHOME" 4373 vi_cv_path_mzscheme_pfx="$PLTHOME"
4717 else 4374 else
4718 { $as_echo "$as_me:$LINENO: result: not set" >&5 4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
4719 $as_echo "not set" >&6; } 4376 $as_echo "not set" >&6; }
4720 # Extract the first word of "mzscheme", so it can be a program name with args. 4377 # Extract the first word of "mzscheme", so it can be a program name with args.
4721 set dummy mzscheme; ac_word=$2 4378 set dummy mzscheme; ac_word=$2
4722 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4723 $as_echo_n "checking for $ac_word... " >&6; } 4380 $as_echo_n "checking for $ac_word... " >&6; }
4724 if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then 4381 if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then :
4725 $as_echo_n "(cached) " >&6 4382 $as_echo_n "(cached) " >&6
4726 else 4383 else
4727 case $vi_cv_path_mzscheme in 4384 case $vi_cv_path_mzscheme in
4728 [\\/]* | ?:[\\/]*) 4385 [\\/]* | ?:[\\/]*)
4729 ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path. 4386 ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path.
4732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4733 for as_dir in $PATH 4390 for as_dir in $PATH
4734 do 4391 do
4735 IFS=$as_save_IFS 4392 IFS=$as_save_IFS
4736 test -z "$as_dir" && as_dir=. 4393 test -z "$as_dir" && as_dir=.
4737 for ac_exec_ext in '' $ac_executable_extensions; do 4394 for ac_exec_ext in '' $ac_executable_extensions; do
4738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4739 ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext" 4396 ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext"
4740 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4741 break 2 4398 break 2
4742 fi 4399 fi
4743 done 4400 done
4744 done 4401 done
4745 IFS=$as_save_IFS 4402 IFS=$as_save_IFS
4746 4403
4747 ;; 4404 ;;
4748 esac 4405 esac
4749 fi 4406 fi
4750 vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme 4407 vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme
4751 if test -n "$vi_cv_path_mzscheme"; then 4408 if test -n "$vi_cv_path_mzscheme"; then
4752 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme" >&5 4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme" >&5
4753 $as_echo "$vi_cv_path_mzscheme" >&6; } 4410 $as_echo "$vi_cv_path_mzscheme" >&6; }
4754 else 4411 else
4755 { $as_echo "$as_me:$LINENO: result: no" >&5 4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4756 $as_echo "no" >&6; } 4413 $as_echo "no" >&6; }
4757 fi 4414 fi
4758 4415
4759 4416
4760 4417
4764 vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'` 4421 vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
4765 fi 4422 fi
4766 fi 4423 fi
4767 4424
4768 if test "X$vi_cv_path_mzscheme" != "X"; then 4425 if test "X$vi_cv_path_mzscheme" != "X"; then
4769 { $as_echo "$as_me:$LINENO: checking MzScheme install prefix" >&5 4426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MzScheme install prefix" >&5
4770 $as_echo_n "checking MzScheme install prefix... " >&6; } 4427 $as_echo_n "checking MzScheme install prefix... " >&6; }
4771 if test "${vi_cv_path_mzscheme_pfx+set}" = set; then 4428 if test "${vi_cv_path_mzscheme_pfx+set}" = set; then :
4772 $as_echo_n "(cached) " >&6 4429 $as_echo_n "(cached) " >&6
4773 else 4430 else
4774 echo "(display (simplify-path \ 4431 echo "(display (simplify-path \
4775 (build-path (call-with-values \ 4432 (build-path (call-with-values \
4776 (lambda () (split-path (find-system-path (quote exec-file)))) \ 4433 (lambda () (split-path (find-system-path (quote exec-file)))) \
4777 (lambda (base name must-be-dir?) base)) (quote up))))" > mzdirs.scm 4434 (lambda (base name must-be-dir?) base)) (quote up))))" > mzdirs.scm
4778 vi_cv_path_mzscheme_pfx=`${vi_cv_path_mzscheme} -r mzdirs.scm | \ 4435 vi_cv_path_mzscheme_pfx=`${vi_cv_path_mzscheme} -r mzdirs.scm | \
4779 sed -e 's+/$++'` 4436 sed -e 's+/$++'`
4780 fi 4437 fi
4781 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5 4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme_pfx" >&5
4782 $as_echo "$vi_cv_path_mzscheme_pfx" >&6; } 4439 $as_echo "$vi_cv_path_mzscheme_pfx" >&6; }
4783 rm -f mzdirs.scm 4440 rm -f mzdirs.scm
4784 fi 4441 fi
4785 fi 4442 fi
4786 fi 4443 fi
4787 4444
4788 SCHEME_INC= 4445 SCHEME_INC=
4789 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then 4446 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4790 { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5 4447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
4791 $as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... " >&6; } 4448 $as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... " >&6; }
4792 if test -f $vi_cv_path_mzscheme_pfx/include/scheme.h; then 4449 if test -f $vi_cv_path_mzscheme_pfx/include/scheme.h; then
4793 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include 4450 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include
4794 { $as_echo "$as_me:$LINENO: result: yes" >&5 4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4795 $as_echo "yes" >&6; } 4452 $as_echo "yes" >&6; }
4796 else 4453 else
4797 { $as_echo "$as_me:$LINENO: result: no" >&5 4454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4798 $as_echo "no" >&6; } 4455 $as_echo "no" >&6; }
4799 { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt" >&5 4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt" >&5
4800 $as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt... " >&6; } 4457 $as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt... " >&6; }
4801 if test -f $vi_cv_path_mzscheme_pfx/include/plt/scheme.h; then 4458 if test -f $vi_cv_path_mzscheme_pfx/include/plt/scheme.h; then
4802 { $as_echo "$as_me:$LINENO: result: yes" >&5 4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4803 $as_echo "yes" >&6; } 4460 $as_echo "yes" >&6; }
4804 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/plt 4461 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/plt
4805 else 4462 else
4806 { $as_echo "$as_me:$LINENO: result: no" >&5 4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4807 $as_echo "no" >&6; } 4464 $as_echo "no" >&6; }
4808 { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in /usr/include/plt/" >&5 4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/plt/" >&5
4809 $as_echo_n "checking if scheme.h can be found in /usr/include/plt/... " >&6; } 4466 $as_echo_n "checking if scheme.h can be found in /usr/include/plt/... " >&6; }
4810 if test -f /usr/include/plt/scheme.h; then 4467 if test -f /usr/include/plt/scheme.h; then
4811 { $as_echo "$as_me:$LINENO: result: yes" >&5 4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4812 $as_echo "yes" >&6; } 4469 $as_echo "yes" >&6; }
4813 SCHEME_INC=/usr/include/plt 4470 SCHEME_INC=/usr/include/plt
4814 else 4471 else
4815 { $as_echo "$as_me:$LINENO: result: no" >&5 4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4816 $as_echo "no" >&6; } 4473 $as_echo "no" >&6; }
4817 vi_cv_path_mzscheme_pfx= 4474 vi_cv_path_mzscheme_pfx=
4818 fi 4475 fi
4819 fi 4476 fi
4820 fi 4477 fi
4853 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -I${SCHEME_INC} \ 4510 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -I${SCHEME_INC} \
4854 -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects\"'" 4511 -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects\"'"
4855 MZSCHEME_SRC="if_mzsch.c" 4512 MZSCHEME_SRC="if_mzsch.c"
4856 MZSCHEME_OBJ="objects/if_mzsch.o" 4513 MZSCHEME_OBJ="objects/if_mzsch.o"
4857 MZSCHEME_PRO="if_mzsch.pro" 4514 MZSCHEME_PRO="if_mzsch.pro"
4858 cat >>confdefs.h <<\_ACEOF 4515 $as_echo "#define FEAT_MZSCHEME 1" >>confdefs.h
4859 #define FEAT_MZSCHEME 1 4516
4860 _ACEOF 4517 fi
4861 4518
4862 fi 4519
4863 4520
4864 4521
4865 4522
4866 4523
4867 4524
4868 4525 fi
4869 4526
4870 fi 4527
4871 4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-perlinterp argument" >&5
4872
4873 { $as_echo "$as_me:$LINENO: checking --enable-perlinterp argument" >&5
4874 $as_echo_n "checking --enable-perlinterp argument... " >&6; } 4529 $as_echo_n "checking --enable-perlinterp argument... " >&6; }
4875 # Check whether --enable-perlinterp was given. 4530 # Check whether --enable-perlinterp was given.
4876 if test "${enable_perlinterp+set}" = set; then 4531 if test "${enable_perlinterp+set}" = set; then :
4877 enableval=$enable_perlinterp; 4532 enableval=$enable_perlinterp;
4878 else 4533 else
4879 enable_perlinterp="no" 4534 enable_perlinterp="no"
4880 fi 4535 fi
4881 4536
4882 { $as_echo "$as_me:$LINENO: result: $enable_perlinterp" >&5 4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perlinterp" >&5
4883 $as_echo "$enable_perlinterp" >&6; } 4538 $as_echo "$enable_perlinterp" >&6; }
4884 if test "$enable_perlinterp" = "yes"; then 4539 if test "$enable_perlinterp" = "yes"; then
4885 4540
4886 # Extract the first word of "perl", so it can be a program name with args. 4541 # Extract the first word of "perl", so it can be a program name with args.
4887 set dummy perl; ac_word=$2 4542 set dummy perl; ac_word=$2
4888 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4889 $as_echo_n "checking for $ac_word... " >&6; } 4544 $as_echo_n "checking for $ac_word... " >&6; }
4890 if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then 4545 if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then :
4891 $as_echo_n "(cached) " >&6 4546 $as_echo_n "(cached) " >&6
4892 else 4547 else
4893 case $vi_cv_path_perl in 4548 case $vi_cv_path_perl in
4894 [\\/]* | ?:[\\/]*) 4549 [\\/]* | ?:[\\/]*)
4895 ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path. 4550 ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path.
4898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4899 for as_dir in $PATH 4554 for as_dir in $PATH
4900 do 4555 do
4901 IFS=$as_save_IFS 4556 IFS=$as_save_IFS
4902 test -z "$as_dir" && as_dir=. 4557 test -z "$as_dir" && as_dir=.
4903 for ac_exec_ext in '' $ac_executable_extensions; do 4558 for ac_exec_ext in '' $ac_executable_extensions; do
4904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4905 ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext" 4560 ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext"
4906 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4907 break 2 4562 break 2
4908 fi 4563 fi
4909 done 4564 done
4910 done 4565 done
4911 IFS=$as_save_IFS 4566 IFS=$as_save_IFS
4912 4567
4913 ;; 4568 ;;
4914 esac 4569 esac
4915 fi 4570 fi
4916 vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl 4571 vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl
4917 if test -n "$vi_cv_path_perl"; then 4572 if test -n "$vi_cv_path_perl"; then
4918 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5 4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_perl" >&5
4919 $as_echo "$vi_cv_path_perl" >&6; } 4574 $as_echo "$vi_cv_path_perl" >&6; }
4920 else 4575 else
4921 { $as_echo "$as_me:$LINENO: result: no" >&5 4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4922 $as_echo "no" >&6; } 4577 $as_echo "no" >&6; }
4923 fi 4578 fi
4924 4579
4925 4580
4926 if test "X$vi_cv_path_perl" != "X"; then 4581 if test "X$vi_cv_path_perl" != "X"; then
4927 { $as_echo "$as_me:$LINENO: checking Perl version" >&5 4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Perl version" >&5
4928 $as_echo_n "checking Perl version... " >&6; } 4583 $as_echo_n "checking Perl version... " >&6; }
4929 if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then 4584 if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then
4930 eval `$vi_cv_path_perl -V:usethreads` 4585 eval `$vi_cv_path_perl -V:usethreads`
4931 if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then 4586 if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
4932 badthreads=no 4587 badthreads=no
4935 eval `$vi_cv_path_perl -V:use5005threads` 4590 eval `$vi_cv_path_perl -V:use5005threads`
4936 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then 4591 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
4937 badthreads=no 4592 badthreads=no
4938 else 4593 else
4939 badthreads=yes 4594 badthreads=yes
4940 { $as_echo "$as_me:$LINENO: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5 4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
4941 $as_echo ">>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; } 4596 $as_echo ">>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; }
4942 fi 4597 fi
4943 else 4598 else
4944 badthreads=yes 4599 badthreads=yes
4945 { $as_echo "$as_me:$LINENO: result: >>> Perl 5.5 with threads cannot be used <<<" >&5 4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
4946 $as_echo ">>> Perl 5.5 with threads cannot be used <<<" >&6; } 4601 $as_echo ">>> Perl 5.5 with threads cannot be used <<<" >&6; }
4947 fi 4602 fi
4948 fi 4603 fi
4949 if test $badthreads = no; then 4604 if test $badthreads = no; then
4950 { $as_echo "$as_me:$LINENO: result: OK" >&5 4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
4951 $as_echo "OK" >&6; } 4606 $as_echo "OK" >&6; }
4952 eval `$vi_cv_path_perl -V:shrpenv` 4607 eval `$vi_cv_path_perl -V:shrpenv`
4953 if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04 4608 if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
4954 shrpenv="" 4609 shrpenv=""
4955 fi 4610 fi
4961 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \ 4616 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
4962 -e 's/-bE:perl.exp//' -e 's/-lc //'` 4617 -e 's/-bE:perl.exp//' -e 's/-lc //'`
4963 perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \ 4618 perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
4964 -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'` 4619 -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
4965 4620
4966 { $as_echo "$as_me:$LINENO: checking if compile and link flags for Perl are sane" >&5 4621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Perl are sane" >&5
4967 $as_echo_n "checking if compile and link flags for Perl are sane... " >&6; } 4622 $as_echo_n "checking if compile and link flags for Perl are sane... " >&6; }
4968 cflags_save=$CFLAGS 4623 cflags_save=$CFLAGS
4969 libs_save=$LIBS 4624 libs_save=$LIBS
4970 ldflags_save=$LDFLAGS 4625 ldflags_save=$LDFLAGS
4971 CFLAGS="$CFLAGS $perlcppflags" 4626 CFLAGS="$CFLAGS $perlcppflags"
4972 LIBS="$LIBS $perllibs" 4627 LIBS="$LIBS $perllibs"
4973 LDFLAGS="$perlldflags $LDFLAGS" 4628 LDFLAGS="$perlldflags $LDFLAGS"
4974 cat >conftest.$ac_ext <<_ACEOF 4629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4975 /* confdefs.h. */
4976 _ACEOF
4977 cat confdefs.h >>conftest.$ac_ext
4978 cat >>conftest.$ac_ext <<_ACEOF
4979 /* end confdefs.h. */ 4630 /* end confdefs.h. */
4980 4631
4981 int 4632 int
4982 main () 4633 main ()
4983 { 4634 {
4984 4635
4985 ; 4636 ;
4986 return 0; 4637 return 0;
4987 } 4638 }
4988 _ACEOF 4639 _ACEOF
4989 rm -f conftest.$ac_objext conftest$ac_exeext 4640 if ac_fn_c_try_link "$LINENO"; then :
4990 if { (ac_try="$ac_link" 4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4991 case "(($ac_try" in
4992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4993 *) ac_try_echo=$ac_try;;
4994 esac
4995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4996 $as_echo "$ac_try_echo") >&5
4997 (eval "$ac_link") 2>conftest.er1
4998 ac_status=$?
4999 grep -v '^ *+' conftest.er1 >conftest.err
5000 rm -f conftest.er1
5001 cat conftest.err >&5
5002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003 (exit $ac_status); } && {
5004 test -z "$ac_c_werror_flag" ||
5005 test ! -s conftest.err
5006 } && test -s conftest$ac_exeext && {
5007 test "$cross_compiling" = yes ||
5008 $as_test_x conftest$ac_exeext
5009 }; then
5010 { $as_echo "$as_me:$LINENO: result: yes" >&5
5011 $as_echo "yes" >&6; }; perl_ok=yes 4642 $as_echo "yes" >&6; }; perl_ok=yes
5012 else 4643 else
5013 $as_echo "$as_me: failed program was:" >&5 4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PERL DISABLED" >&5
5014 sed 's/^/| /' conftest.$ac_ext >&5
5015
5016 { $as_echo "$as_me:$LINENO: result: no: PERL DISABLED" >&5
5017 $as_echo "no: PERL DISABLED" >&6; }; perl_ok=no 4645 $as_echo "no: PERL DISABLED" >&6; }; perl_ok=no
5018 fi 4646 fi
5019 4647 rm -f core conftest.err conftest.$ac_objext \
5020 rm -rf conftest.dSYM 4648 conftest$ac_exeext conftest.$ac_ext
5021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5022 conftest$ac_exeext conftest.$ac_ext
5023 CFLAGS=$cflags_save 4649 CFLAGS=$cflags_save
5024 LIBS=$libs_save 4650 LIBS=$libs_save
5025 LDFLAGS=$ldflags_save 4651 LDFLAGS=$ldflags_save
5026 if test $perl_ok = yes; then 4652 if test $perl_ok = yes; then
5027 if test "X$perlcppflags" != "X"; then 4653 if test "X$perlcppflags" != "X"; then
5032 fi 4658 fi
5033 PERL_LIBS=$perllibs 4659 PERL_LIBS=$perllibs
5034 PERL_SRC="auto/if_perl.c if_perlsfio.c" 4660 PERL_SRC="auto/if_perl.c if_perlsfio.c"
5035 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o" 4661 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
5036 PERL_PRO="if_perl.pro if_perlsfio.pro" 4662 PERL_PRO="if_perl.pro if_perlsfio.pro"
5037 cat >>confdefs.h <<\_ACEOF 4663 $as_echo "#define FEAT_PERL 1" >>confdefs.h
5038 #define FEAT_PERL 1
5039 _ACEOF
5040 4664
5041 fi 4665 fi
5042 fi 4666 fi
5043 else 4667 else
5044 { $as_echo "$as_me:$LINENO: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5 4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
5045 $as_echo ">>> too old; need Perl version 5.003_01 or later <<<" >&6; } 4669 $as_echo ">>> too old; need Perl version 5.003_01 or later <<<" >&6; }
5046 fi 4670 fi
5047 fi 4671 fi
5048 4672
5049 if test "x$MACOSX" = "xyes"; then 4673 if test "x$MACOSX" = "xyes"; then
5071 4695
5072 4696
5073 4697
5074 4698
5075 4699
5076 { $as_echo "$as_me:$LINENO: checking --enable-pythoninterp argument" >&5 4700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-pythoninterp argument" >&5
5077 $as_echo_n "checking --enable-pythoninterp argument... " >&6; } 4701 $as_echo_n "checking --enable-pythoninterp argument... " >&6; }
5078 # Check whether --enable-pythoninterp was given. 4702 # Check whether --enable-pythoninterp was given.
5079 if test "${enable_pythoninterp+set}" = set; then 4703 if test "${enable_pythoninterp+set}" = set; then :
5080 enableval=$enable_pythoninterp; 4704 enableval=$enable_pythoninterp;
5081 else 4705 else
5082 enable_pythoninterp="no" 4706 enable_pythoninterp="no"
5083 fi 4707 fi
5084 4708
5085 { $as_echo "$as_me:$LINENO: result: $enable_pythoninterp" >&5 4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_pythoninterp" >&5
5086 $as_echo "$enable_pythoninterp" >&6; } 4710 $as_echo "$enable_pythoninterp" >&6; }
5087 if test "$enable_pythoninterp" = "yes"; then 4711 if test "$enable_pythoninterp" = "yes"; then
5088 # Extract the first word of "python", so it can be a program name with args. 4712 # Extract the first word of "python", so it can be a program name with args.
5089 set dummy python; ac_word=$2 4713 set dummy python; ac_word=$2
5090 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5091 $as_echo_n "checking for $ac_word... " >&6; } 4715 $as_echo_n "checking for $ac_word... " >&6; }
5092 if test "${ac_cv_path_vi_cv_path_python+set}" = set; then 4716 if test "${ac_cv_path_vi_cv_path_python+set}" = set; then :
5093 $as_echo_n "(cached) " >&6 4717 $as_echo_n "(cached) " >&6
5094 else 4718 else
5095 case $vi_cv_path_python in 4719 case $vi_cv_path_python in
5096 [\\/]* | ?:[\\/]*) 4720 [\\/]* | ?:[\\/]*)
5097 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path. 4721 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
5100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5101 for as_dir in $PATH 4725 for as_dir in $PATH
5102 do 4726 do
5103 IFS=$as_save_IFS 4727 IFS=$as_save_IFS
5104 test -z "$as_dir" && as_dir=. 4728 test -z "$as_dir" && as_dir=.
5105 for ac_exec_ext in '' $ac_executable_extensions; do 4729 for ac_exec_ext in '' $ac_executable_extensions; do
5106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5107 ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext" 4731 ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
5108 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5109 break 2 4733 break 2
5110 fi 4734 fi
5111 done 4735 done
5112 done 4736 done
5113 IFS=$as_save_IFS 4737 IFS=$as_save_IFS
5114 4738
5115 ;; 4739 ;;
5116 esac 4740 esac
5117 fi 4741 fi
5118 vi_cv_path_python=$ac_cv_path_vi_cv_path_python 4742 vi_cv_path_python=$ac_cv_path_vi_cv_path_python
5119 if test -n "$vi_cv_path_python"; then 4743 if test -n "$vi_cv_path_python"; then
5120 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python" >&5 4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python" >&5
5121 $as_echo "$vi_cv_path_python" >&6; } 4745 $as_echo "$vi_cv_path_python" >&6; }
5122 else 4746 else
5123 { $as_echo "$as_me:$LINENO: result: no" >&5 4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5124 $as_echo "no" >&6; } 4748 $as_echo "no" >&6; }
5125 fi 4749 fi
5126 4750
5127 4751
5128 if test "X$vi_cv_path_python" != "X"; then 4752 if test "X$vi_cv_path_python" != "X"; then
5129 4753
5130 { $as_echo "$as_me:$LINENO: checking Python version" >&5 4754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5
5131 $as_echo_n "checking Python version... " >&6; } 4755 $as_echo_n "checking Python version... " >&6; }
5132 if test "${vi_cv_var_python_version+set}" = set; then 4756 if test "${vi_cv_var_python_version+set}" = set; then :
5133 $as_echo_n "(cached) " >&6 4757 $as_echo_n "(cached) " >&6
5134 else 4758 else
5135 vi_cv_var_python_version=` 4759 vi_cv_var_python_version=`
5136 ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'` 4760 ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
5137 4761
5138 fi 4762 fi
5139 { $as_echo "$as_me:$LINENO: result: $vi_cv_var_python_version" >&5 4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python_version" >&5
5140 $as_echo "$vi_cv_var_python_version" >&6; } 4764 $as_echo "$vi_cv_var_python_version" >&6; }
5141 4765
5142 { $as_echo "$as_me:$LINENO: checking Python is 1.4 or better" >&5 4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python is 1.4 or better" >&5
5143 $as_echo_n "checking Python is 1.4 or better... " >&6; } 4767 $as_echo_n "checking Python is 1.4 or better... " >&6; }
5144 if ${vi_cv_path_python} -c \ 4768 if ${vi_cv_path_python} -c \
5145 "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)" 4769 "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)"
5146 then 4770 then
5147 { $as_echo "$as_me:$LINENO: result: yep" >&5 4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yep" >&5
5148 $as_echo "yep" >&6; } 4772 $as_echo "yep" >&6; }
5149 4773
5150 { $as_echo "$as_me:$LINENO: checking Python's install prefix" >&5 4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5
5151 $as_echo_n "checking Python's install prefix... " >&6; } 4775 $as_echo_n "checking Python's install prefix... " >&6; }
5152 if test "${vi_cv_path_python_pfx+set}" = set; then 4776 if test "${vi_cv_path_python_pfx+set}" = set; then :
5153 $as_echo_n "(cached) " >&6 4777 $as_echo_n "(cached) " >&6
5154 else 4778 else
5155 vi_cv_path_python_pfx=` 4779 vi_cv_path_python_pfx=`
5156 ${vi_cv_path_python} -c \ 4780 ${vi_cv_path_python} -c \
5157 "import sys; print sys.prefix"` 4781 "import sys; print sys.prefix"`
5158 fi 4782 fi
5159 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_pfx" >&5 4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_pfx" >&5
5160 $as_echo "$vi_cv_path_python_pfx" >&6; } 4784 $as_echo "$vi_cv_path_python_pfx" >&6; }
5161 4785
5162 { $as_echo "$as_me:$LINENO: checking Python's execution prefix" >&5 4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5
5163 $as_echo_n "checking Python's execution prefix... " >&6; } 4787 $as_echo_n "checking Python's execution prefix... " >&6; }
5164 if test "${vi_cv_path_python_epfx+set}" = set; then 4788 if test "${vi_cv_path_python_epfx+set}" = set; then :
5165 $as_echo_n "(cached) " >&6 4789 $as_echo_n "(cached) " >&6
5166 else 4790 else
5167 vi_cv_path_python_epfx=` 4791 vi_cv_path_python_epfx=`
5168 ${vi_cv_path_python} -c \ 4792 ${vi_cv_path_python} -c \
5169 "import sys; print sys.exec_prefix"` 4793 "import sys; print sys.exec_prefix"`
5170 fi 4794 fi
5171 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_epfx" >&5 4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_epfx" >&5
5172 $as_echo "$vi_cv_path_python_epfx" >&6; } 4796 $as_echo "$vi_cv_path_python_epfx" >&6; }
5173 4797
5174 4798
5175 if test "${vi_cv_path_pythonpath+set}" = set; then 4799 if test "${vi_cv_path_pythonpath+set}" = set; then :
5176 $as_echo_n "(cached) " >&6 4800 $as_echo_n "(cached) " >&6
5177 else 4801 else
5178 vi_cv_path_pythonpath=` 4802 vi_cv_path_pythonpath=`
5179 unset PYTHONPATH; 4803 unset PYTHONPATH;
5180 ${vi_cv_path_python} -c \ 4804 ${vi_cv_path_python} -c \
5183 4807
5184 4808
5185 4809
5186 4810
5187 # Check whether --with-python-config-dir was given. 4811 # Check whether --with-python-config-dir was given.
5188 if test "${with_python_config_dir+set}" = set; then 4812 if test "${with_python_config_dir+set}" = set; then :
5189 withval=$with_python_config_dir; vi_cv_path_python_conf="${withval}" 4813 withval=$with_python_config_dir; vi_cv_path_python_conf="${withval}"
5190 fi 4814 fi
5191 4815
5192 4816
5193 { $as_echo "$as_me:$LINENO: checking Python's configuration directory" >&5 4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5
5194 $as_echo_n "checking Python's configuration directory... " >&6; } 4818 $as_echo_n "checking Python's configuration directory... " >&6; }
5195 if test "${vi_cv_path_python_conf+set}" = set; then 4819 if test "${vi_cv_path_python_conf+set}" = set; then :
5196 $as_echo_n "(cached) " >&6 4820 $as_echo_n "(cached) " >&6
5197 else 4821 else
5198 4822
5199 vi_cv_path_python_conf= 4823 vi_cv_path_python_conf=
5200 for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do 4824 for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
5205 fi 4829 fi
5206 done 4830 done
5207 done 4831 done
5208 4832
5209 fi 4833 fi
5210 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_conf" >&5 4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_conf" >&5
5211 $as_echo "$vi_cv_path_python_conf" >&6; } 4835 $as_echo "$vi_cv_path_python_conf" >&6; }
5212 4836
5213 PYTHON_CONFDIR="${vi_cv_path_python_conf}" 4837 PYTHON_CONFDIR="${vi_cv_path_python_conf}"
5214 4838
5215 if test "X$PYTHON_CONFDIR" = "X"; then 4839 if test "X$PYTHON_CONFDIR" = "X"; then
5216 { $as_echo "$as_me:$LINENO: result: can't find it!" >&5 4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5
5217 $as_echo "can't find it!" >&6; } 4841 $as_echo "can't find it!" >&6; }
5218 else 4842 else
5219 4843
5220 if test "${vi_cv_path_python_plibs+set}" = set; then 4844 if test "${vi_cv_path_python_plibs+set}" = set; then :
5221 $as_echo_n "(cached) " >&6 4845 $as_echo_n "(cached) " >&6
5222 else 4846 else
5223 4847
5224 pwd=`pwd` 4848 pwd=`pwd`
5225 tmp_mkf="$pwd/config-PyMake$$" 4849 tmp_mkf="$pwd/config-PyMake$$"
5263 if test "${vi_cv_var_python_version}" = "1.4"; then 4887 if test "${vi_cv_var_python_version}" = "1.4"; then
5264 PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o" 4888 PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o"
5265 fi 4889 fi
5266 PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'" 4890 PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
5267 4891
5268 { $as_echo "$as_me:$LINENO: checking if -pthread should be used" >&5 4892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5
5269 $as_echo_n "checking if -pthread should be used... " >&6; } 4893 $as_echo_n "checking if -pthread should be used... " >&6; }
5270 threadsafe_flag= 4894 threadsafe_flag=
5271 thread_lib= 4895 thread_lib=
5272 if test "`(uname) 2>/dev/null`" != Darwin; then 4896 if test "`(uname) 2>/dev/null`" != Darwin; then
5273 test "$GCC" = yes && threadsafe_flag="-pthread" 4897 test "$GCC" = yes && threadsafe_flag="-pthread"
5279 libs_save_old=$LIBS 4903 libs_save_old=$LIBS
5280 if test -n "$threadsafe_flag"; then 4904 if test -n "$threadsafe_flag"; then
5281 cflags_save=$CFLAGS 4905 cflags_save=$CFLAGS
5282 CFLAGS="$CFLAGS $threadsafe_flag" 4906 CFLAGS="$CFLAGS $threadsafe_flag"
5283 LIBS="$LIBS $thread_lib" 4907 LIBS="$LIBS $thread_lib"
5284 cat >conftest.$ac_ext <<_ACEOF 4908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5285 /* confdefs.h. */
5286 _ACEOF
5287 cat confdefs.h >>conftest.$ac_ext
5288 cat >>conftest.$ac_ext <<_ACEOF
5289 /* end confdefs.h. */ 4909 /* end confdefs.h. */
5290 4910
5291 int 4911 int
5292 main () 4912 main ()
5293 { 4913 {
5294 4914
5295 ; 4915 ;
5296 return 0; 4916 return 0;
5297 } 4917 }
5298 _ACEOF 4918 _ACEOF
5299 rm -f conftest.$ac_objext conftest$ac_exeext 4919 if ac_fn_c_try_link "$LINENO"; then :
5300 if { (ac_try="$ac_link" 4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5301 case "(($ac_try" in
5302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5303 *) ac_try_echo=$ac_try;;
5304 esac
5305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5306 $as_echo "$ac_try_echo") >&5
5307 (eval "$ac_link") 2>conftest.er1
5308 ac_status=$?
5309 grep -v '^ *+' conftest.er1 >conftest.err
5310 rm -f conftest.er1
5311 cat conftest.err >&5
5312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); } && {
5314 test -z "$ac_c_werror_flag" ||
5315 test ! -s conftest.err
5316 } && test -s conftest$ac_exeext && {
5317 test "$cross_compiling" = yes ||
5318 $as_test_x conftest$ac_exeext
5319 }; then
5320 { $as_echo "$as_me:$LINENO: result: yes" >&5
5321 $as_echo "yes" >&6; }; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag" 4921 $as_echo "yes" >&6; }; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag"
5322 else 4922 else
5323 $as_echo "$as_me: failed program was:" >&5 4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5324 sed 's/^/| /' conftest.$ac_ext >&5
5325
5326 { $as_echo "$as_me:$LINENO: result: no" >&5
5327 $as_echo "no" >&6; }; LIBS=$libs_save_old 4924 $as_echo "no" >&6; }; LIBS=$libs_save_old
5328 4925
5329 fi 4926 fi
5330 4927 rm -f core conftest.err conftest.$ac_objext \
5331 rm -rf conftest.dSYM 4928 conftest$ac_exeext conftest.$ac_ext
5332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5333 conftest$ac_exeext conftest.$ac_ext
5334 CFLAGS=$cflags_save 4929 CFLAGS=$cflags_save
5335 else 4930 else
5336 { $as_echo "$as_me:$LINENO: result: no" >&5 4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5337 $as_echo "no" >&6; } 4932 $as_echo "no" >&6; }
5338 fi 4933 fi
5339 4934
5340 { $as_echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5 4935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python are sane" >&5
5341 $as_echo_n "checking if compile and link flags for Python are sane... " >&6; } 4936 $as_echo_n "checking if compile and link flags for Python are sane... " >&6; }
5342 cflags_save=$CFLAGS 4937 cflags_save=$CFLAGS
5343 libs_save=$LIBS 4938 libs_save=$LIBS
5344 CFLAGS="$CFLAGS $PYTHON_CFLAGS" 4939 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
5345 LIBS="$LIBS $PYTHON_LIBS" 4940 LIBS="$LIBS $PYTHON_LIBS"
5346 cat >conftest.$ac_ext <<_ACEOF 4941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5347 /* confdefs.h. */
5348 _ACEOF
5349 cat confdefs.h >>conftest.$ac_ext
5350 cat >>conftest.$ac_ext <<_ACEOF
5351 /* end confdefs.h. */ 4942 /* end confdefs.h. */
5352 4943
5353 int 4944 int
5354 main () 4945 main ()
5355 { 4946 {
5356 4947
5357 ; 4948 ;
5358 return 0; 4949 return 0;
5359 } 4950 }
5360 _ACEOF 4951 _ACEOF
5361 rm -f conftest.$ac_objext conftest$ac_exeext 4952 if ac_fn_c_try_link "$LINENO"; then :
5362 if { (ac_try="$ac_link" 4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5363 case "(($ac_try" in
5364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5365 *) ac_try_echo=$ac_try;;
5366 esac
5367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5368 $as_echo "$ac_try_echo") >&5
5369 (eval "$ac_link") 2>conftest.er1
5370 ac_status=$?
5371 grep -v '^ *+' conftest.er1 >conftest.err
5372 rm -f conftest.er1
5373 cat conftest.err >&5
5374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375 (exit $ac_status); } && {
5376 test -z "$ac_c_werror_flag" ||
5377 test ! -s conftest.err
5378 } && test -s conftest$ac_exeext && {
5379 test "$cross_compiling" = yes ||
5380 $as_test_x conftest$ac_exeext
5381 }; then
5382 { $as_echo "$as_me:$LINENO: result: yes" >&5
5383 $as_echo "yes" >&6; }; python_ok=yes 4954 $as_echo "yes" >&6; }; python_ok=yes
5384 else 4955 else
5385 $as_echo "$as_me: failed program was:" >&5 4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON DISABLED" >&5
5386 sed 's/^/| /' conftest.$ac_ext >&5
5387
5388 { $as_echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5
5389 $as_echo "no: PYTHON DISABLED" >&6; }; python_ok=no 4957 $as_echo "no: PYTHON DISABLED" >&6; }; python_ok=no
5390 fi 4958 fi
5391 4959 rm -f core conftest.err conftest.$ac_objext \
5392 rm -rf conftest.dSYM 4960 conftest$ac_exeext conftest.$ac_ext
5393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5394 conftest$ac_exeext conftest.$ac_ext
5395 CFLAGS=$cflags_save 4961 CFLAGS=$cflags_save
5396 LIBS=$libs_save 4962 LIBS=$libs_save
5397 if test $python_ok = yes; then 4963 if test $python_ok = yes; then
5398 cat >>confdefs.h <<\_ACEOF 4964 $as_echo "#define FEAT_PYTHON 1" >>confdefs.h
5399 #define FEAT_PYTHON 1
5400 _ACEOF
5401 4965
5402 else 4966 else
5403 LIBS=$libs_save_old 4967 LIBS=$libs_save_old
5404 PYTHON_SRC= 4968 PYTHON_SRC=
5405 PYTHON_OBJ= 4969 PYTHON_OBJ=
5407 PYTHON_CFLAGS= 4971 PYTHON_CFLAGS=
5408 fi 4972 fi
5409 4973
5410 fi 4974 fi
5411 else 4975 else
5412 { $as_echo "$as_me:$LINENO: result: too old" >&5 4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old" >&5
5413 $as_echo "too old" >&6; } 4977 $as_echo "too old" >&6; }
5414 fi 4978 fi
5415 fi 4979 fi
5416 fi 4980 fi
5417 4981
5419 4983
5420 4984
5421 4985
5422 4986
5423 4987
5424 { $as_echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5 4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-tclinterp argument" >&5
5425 $as_echo_n "checking --enable-tclinterp argument... " >&6; } 4989 $as_echo_n "checking --enable-tclinterp argument... " >&6; }
5426 # Check whether --enable-tclinterp was given. 4990 # Check whether --enable-tclinterp was given.
5427 if test "${enable_tclinterp+set}" = set; then 4991 if test "${enable_tclinterp+set}" = set; then :
5428 enableval=$enable_tclinterp; 4992 enableval=$enable_tclinterp;
5429 else 4993 else
5430 enable_tclinterp="no" 4994 enable_tclinterp="no"
5431 fi 4995 fi
5432 4996
5433 { $as_echo "$as_me:$LINENO: result: $enable_tclinterp" >&5 4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_tclinterp" >&5
5434 $as_echo "$enable_tclinterp" >&6; } 4998 $as_echo "$enable_tclinterp" >&6; }
5435 4999
5436 if test "$enable_tclinterp" = "yes"; then 5000 if test "$enable_tclinterp" = "yes"; then
5437 5001
5438 { $as_echo "$as_me:$LINENO: checking --with-tclsh argument" >&5 5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tclsh argument" >&5
5439 $as_echo_n "checking --with-tclsh argument... " >&6; } 5003 $as_echo_n "checking --with-tclsh argument... " >&6; }
5440 5004
5441 # Check whether --with-tclsh was given. 5005 # Check whether --with-tclsh was given.
5442 if test "${with_tclsh+set}" = set; then 5006 if test "${with_tclsh+set}" = set; then :
5443 withval=$with_tclsh; tclsh_name="$withval"; { $as_echo "$as_me:$LINENO: result: $tclsh_name" >&5 5007 withval=$with_tclsh; tclsh_name="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclsh_name" >&5
5444 $as_echo "$tclsh_name" >&6; } 5008 $as_echo "$tclsh_name" >&6; }
5445 else 5009 else
5446 tclsh_name="tclsh8.5"; { $as_echo "$as_me:$LINENO: result: no" >&5 5010 tclsh_name="tclsh8.5"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5447 $as_echo "no" >&6; } 5011 $as_echo "no" >&6; }
5448 fi 5012 fi
5449 5013
5450 # Extract the first word of "$tclsh_name", so it can be a program name with args. 5014 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5451 set dummy $tclsh_name; ac_word=$2 5015 set dummy $tclsh_name; ac_word=$2
5452 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5453 $as_echo_n "checking for $ac_word... " >&6; } 5017 $as_echo_n "checking for $ac_word... " >&6; }
5454 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then 5018 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then :
5455 $as_echo_n "(cached) " >&6 5019 $as_echo_n "(cached) " >&6
5456 else 5020 else
5457 case $vi_cv_path_tcl in 5021 case $vi_cv_path_tcl in
5458 [\\/]* | ?:[\\/]*) 5022 [\\/]* | ?:[\\/]*)
5459 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 5023 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5463 for as_dir in $PATH 5027 for as_dir in $PATH
5464 do 5028 do
5465 IFS=$as_save_IFS 5029 IFS=$as_save_IFS
5466 test -z "$as_dir" && as_dir=. 5030 test -z "$as_dir" && as_dir=.
5467 for ac_exec_ext in '' $ac_executable_extensions; do 5031 for ac_exec_ext in '' $ac_executable_extensions; do
5468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5469 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 5033 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5470 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5471 break 2 5035 break 2
5472 fi 5036 fi
5473 done 5037 done
5474 done 5038 done
5475 IFS=$as_save_IFS 5039 IFS=$as_save_IFS
5476 5040
5477 ;; 5041 ;;
5478 esac 5042 esac
5479 fi 5043 fi
5480 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 5044 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5481 if test -n "$vi_cv_path_tcl"; then 5045 if test -n "$vi_cv_path_tcl"; then
5482 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
5483 $as_echo "$vi_cv_path_tcl" >&6; } 5047 $as_echo "$vi_cv_path_tcl" >&6; }
5484 else 5048 else
5485 { $as_echo "$as_me:$LINENO: result: no" >&5 5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5486 $as_echo "no" >&6; } 5050 $as_echo "no" >&6; }
5487 fi 5051 fi
5488 5052
5489 5053
5490 5054
5491 5055
5492 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then 5056 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then
5493 tclsh_name="tclsh8.4" 5057 tclsh_name="tclsh8.4"
5494 # Extract the first word of "$tclsh_name", so it can be a program name with args. 5058 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5495 set dummy $tclsh_name; ac_word=$2 5059 set dummy $tclsh_name; ac_word=$2
5496 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5497 $as_echo_n "checking for $ac_word... " >&6; } 5061 $as_echo_n "checking for $ac_word... " >&6; }
5498 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then 5062 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then :
5499 $as_echo_n "(cached) " >&6 5063 $as_echo_n "(cached) " >&6
5500 else 5064 else
5501 case $vi_cv_path_tcl in 5065 case $vi_cv_path_tcl in
5502 [\\/]* | ?:[\\/]*) 5066 [\\/]* | ?:[\\/]*)
5503 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 5067 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507 for as_dir in $PATH 5071 for as_dir in $PATH
5508 do 5072 do
5509 IFS=$as_save_IFS 5073 IFS=$as_save_IFS
5510 test -z "$as_dir" && as_dir=. 5074 test -z "$as_dir" && as_dir=.
5511 for ac_exec_ext in '' $ac_executable_extensions; do 5075 for ac_exec_ext in '' $ac_executable_extensions; do
5512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5513 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 5077 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5514 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5515 break 2 5079 break 2
5516 fi 5080 fi
5517 done 5081 done
5518 done 5082 done
5519 IFS=$as_save_IFS 5083 IFS=$as_save_IFS
5520 5084
5521 ;; 5085 ;;
5522 esac 5086 esac
5523 fi 5087 fi
5524 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 5088 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5525 if test -n "$vi_cv_path_tcl"; then 5089 if test -n "$vi_cv_path_tcl"; then
5526 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
5527 $as_echo "$vi_cv_path_tcl" >&6; } 5091 $as_echo "$vi_cv_path_tcl" >&6; }
5528 else 5092 else
5529 { $as_echo "$as_me:$LINENO: result: no" >&5 5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5530 $as_echo "no" >&6; } 5094 $as_echo "no" >&6; }
5531 fi 5095 fi
5532 5096
5533 5097
5534 fi 5098 fi
5535 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then 5099 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
5536 tclsh_name="tclsh8.2" 5100 tclsh_name="tclsh8.2"
5537 # Extract the first word of "$tclsh_name", so it can be a program name with args. 5101 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5538 set dummy $tclsh_name; ac_word=$2 5102 set dummy $tclsh_name; ac_word=$2
5539 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5540 $as_echo_n "checking for $ac_word... " >&6; } 5104 $as_echo_n "checking for $ac_word... " >&6; }
5541 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then 5105 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then :
5542 $as_echo_n "(cached) " >&6 5106 $as_echo_n "(cached) " >&6
5543 else 5107 else
5544 case $vi_cv_path_tcl in 5108 case $vi_cv_path_tcl in
5545 [\\/]* | ?:[\\/]*) 5109 [\\/]* | ?:[\\/]*)
5546 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 5110 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5550 for as_dir in $PATH 5114 for as_dir in $PATH
5551 do 5115 do
5552 IFS=$as_save_IFS 5116 IFS=$as_save_IFS
5553 test -z "$as_dir" && as_dir=. 5117 test -z "$as_dir" && as_dir=.
5554 for ac_exec_ext in '' $ac_executable_extensions; do 5118 for ac_exec_ext in '' $ac_executable_extensions; do
5555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5556 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 5120 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5557 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5558 break 2 5122 break 2
5559 fi 5123 fi
5560 done 5124 done
5561 done 5125 done
5562 IFS=$as_save_IFS 5126 IFS=$as_save_IFS
5563 5127
5564 ;; 5128 ;;
5565 esac 5129 esac
5566 fi 5130 fi
5567 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 5131 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5568 if test -n "$vi_cv_path_tcl"; then 5132 if test -n "$vi_cv_path_tcl"; then
5569 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
5570 $as_echo "$vi_cv_path_tcl" >&6; } 5134 $as_echo "$vi_cv_path_tcl" >&6; }
5571 else 5135 else
5572 { $as_echo "$as_me:$LINENO: result: no" >&5 5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5573 $as_echo "no" >&6; } 5137 $as_echo "no" >&6; }
5574 fi 5138 fi
5575 5139
5576 5140
5577 fi 5141 fi
5578 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then 5142 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
5579 tclsh_name="tclsh8.0" 5143 tclsh_name="tclsh8.0"
5580 # Extract the first word of "$tclsh_name", so it can be a program name with args. 5144 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5581 set dummy $tclsh_name; ac_word=$2 5145 set dummy $tclsh_name; ac_word=$2
5582 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5583 $as_echo_n "checking for $ac_word... " >&6; } 5147 $as_echo_n "checking for $ac_word... " >&6; }
5584 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then 5148 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then :
5585 $as_echo_n "(cached) " >&6 5149 $as_echo_n "(cached) " >&6
5586 else 5150 else
5587 case $vi_cv_path_tcl in 5151 case $vi_cv_path_tcl in
5588 [\\/]* | ?:[\\/]*) 5152 [\\/]* | ?:[\\/]*)
5589 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 5153 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5593 for as_dir in $PATH 5157 for as_dir in $PATH
5594 do 5158 do
5595 IFS=$as_save_IFS 5159 IFS=$as_save_IFS
5596 test -z "$as_dir" && as_dir=. 5160 test -z "$as_dir" && as_dir=.
5597 for ac_exec_ext in '' $ac_executable_extensions; do 5161 for ac_exec_ext in '' $ac_executable_extensions; do
5598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5599 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 5163 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5600 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5601 break 2 5165 break 2
5602 fi 5166 fi
5603 done 5167 done
5604 done 5168 done
5605 IFS=$as_save_IFS 5169 IFS=$as_save_IFS
5606 5170
5607 ;; 5171 ;;
5608 esac 5172 esac
5609 fi 5173 fi
5610 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 5174 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5611 if test -n "$vi_cv_path_tcl"; then 5175 if test -n "$vi_cv_path_tcl"; then
5612 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
5613 $as_echo "$vi_cv_path_tcl" >&6; } 5177 $as_echo "$vi_cv_path_tcl" >&6; }
5614 else 5178 else
5615 { $as_echo "$as_me:$LINENO: result: no" >&5 5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5616 $as_echo "no" >&6; } 5180 $as_echo "no" >&6; }
5617 fi 5181 fi
5618 5182
5619 5183
5620 fi 5184 fi
5621 if test "X$vi_cv_path_tcl" = "X"; then 5185 if test "X$vi_cv_path_tcl" = "X"; then
5622 tclsh_name="tclsh" 5186 tclsh_name="tclsh"
5623 # Extract the first word of "$tclsh_name", so it can be a program name with args. 5187 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5624 set dummy $tclsh_name; ac_word=$2 5188 set dummy $tclsh_name; ac_word=$2
5625 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5626 $as_echo_n "checking for $ac_word... " >&6; } 5190 $as_echo_n "checking for $ac_word... " >&6; }
5627 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then 5191 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then :
5628 $as_echo_n "(cached) " >&6 5192 $as_echo_n "(cached) " >&6
5629 else 5193 else
5630 case $vi_cv_path_tcl in 5194 case $vi_cv_path_tcl in
5631 [\\/]* | ?:[\\/]*) 5195 [\\/]* | ?:[\\/]*)
5632 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 5196 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5636 for as_dir in $PATH 5200 for as_dir in $PATH
5637 do 5201 do
5638 IFS=$as_save_IFS 5202 IFS=$as_save_IFS
5639 test -z "$as_dir" && as_dir=. 5203 test -z "$as_dir" && as_dir=.
5640 for ac_exec_ext in '' $ac_executable_extensions; do 5204 for ac_exec_ext in '' $ac_executable_extensions; do
5641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5642 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 5206 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5643 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5644 break 2 5208 break 2
5645 fi 5209 fi
5646 done 5210 done
5647 done 5211 done
5648 IFS=$as_save_IFS 5212 IFS=$as_save_IFS
5649 5213
5650 ;; 5214 ;;
5651 esac 5215 esac
5652 fi 5216 fi
5653 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 5217 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5654 if test -n "$vi_cv_path_tcl"; then 5218 if test -n "$vi_cv_path_tcl"; then
5655 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
5656 $as_echo "$vi_cv_path_tcl" >&6; } 5220 $as_echo "$vi_cv_path_tcl" >&6; }
5657 else 5221 else
5658 { $as_echo "$as_me:$LINENO: result: no" >&5 5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5659 $as_echo "no" >&6; } 5223 $as_echo "no" >&6; }
5660 fi 5224 fi
5661 5225
5662 5226
5663 fi 5227 fi
5664 if test "X$vi_cv_path_tcl" != "X"; then 5228 if test "X$vi_cv_path_tcl" != "X"; then
5665 { $as_echo "$as_me:$LINENO: checking Tcl version" >&5 5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Tcl version" >&5
5666 $as_echo_n "checking Tcl version... " >&6; } 5230 $as_echo_n "checking Tcl version... " >&6; }
5667 if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then 5231 if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then
5668 tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -` 5232 tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -`
5669 { $as_echo "$as_me:$LINENO: result: $tclver - OK" >&5 5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclver - OK" >&5
5670 $as_echo "$tclver - OK" >&6; }; 5234 $as_echo "$tclver - OK" >&6; };
5671 tclloc=`echo 'set l [info library];set i [string last lib $l];incr i -2;puts [string range $l 0 $i]' | $vi_cv_path_tcl -` 5235 tclloc=`echo 'set l [info library];set i [string last lib $l];incr i -2;puts [string range $l 0 $i]' | $vi_cv_path_tcl -`
5672 5236
5673 { $as_echo "$as_me:$LINENO: checking for location of Tcl include" >&5 5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Tcl include" >&5
5674 $as_echo_n "checking for location of Tcl include... " >&6; } 5238 $as_echo_n "checking for location of Tcl include... " >&6; }
5675 if test "x$MACOSX" != "xyes"; then 5239 if test "x$MACOSX" != "xyes"; then
5676 tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver" 5240 tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver"
5677 else 5241 else
5678 tclinc="/System/Library/Frameworks/Tcl.framework/Headers" 5242 tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
5679 fi 5243 fi
5680 TCL_INC= 5244 TCL_INC=
5681 for try in $tclinc; do 5245 for try in $tclinc; do
5682 if test -f "$try/tcl.h"; then 5246 if test -f "$try/tcl.h"; then
5683 { $as_echo "$as_me:$LINENO: result: $try/tcl.h" >&5 5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tcl.h" >&5
5684 $as_echo "$try/tcl.h" >&6; } 5248 $as_echo "$try/tcl.h" >&6; }
5685 TCL_INC=$try 5249 TCL_INC=$try
5686 break 5250 break
5687 fi 5251 fi
5688 done 5252 done
5689 if test -z "$TCL_INC"; then 5253 if test -z "$TCL_INC"; then
5690 { $as_echo "$as_me:$LINENO: result: <not found>" >&5 5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
5691 $as_echo "<not found>" >&6; } 5255 $as_echo "<not found>" >&6; }
5692 SKIP_TCL=YES 5256 SKIP_TCL=YES
5693 fi 5257 fi
5694 if test -z "$SKIP_TCL"; then 5258 if test -z "$SKIP_TCL"; then
5695 { $as_echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5 5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of tclConfig.sh script" >&5
5696 $as_echo_n "checking for location of tclConfig.sh script... " >&6; } 5260 $as_echo_n "checking for location of tclConfig.sh script... " >&6; }
5697 if test "x$MACOSX" != "xyes"; then 5261 if test "x$MACOSX" != "xyes"; then
5698 tclcnf=`echo $tclinc | sed s/include/lib/g` 5262 tclcnf=`echo $tclinc | sed s/include/lib/g`
5699 tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`" 5263 tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`"
5700 else 5264 else
5701 tclcnf="/System/Library/Frameworks/Tcl.framework" 5265 tclcnf="/System/Library/Frameworks/Tcl.framework"
5702 fi 5266 fi
5703 for try in $tclcnf; do 5267 for try in $tclcnf; do
5704 if test -f $try/tclConfig.sh; then 5268 if test -f $try/tclConfig.sh; then
5705 { $as_echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5 5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tclConfig.sh" >&5
5706 $as_echo "$try/tclConfig.sh" >&6; } 5270 $as_echo "$try/tclConfig.sh" >&6; }
5707 . $try/tclConfig.sh 5271 . $try/tclConfig.sh
5708 TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"` 5272 TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
5709 TCL_DEFS=`echo $TCL_DEFS | sed -e 's/\\\\ /\\\\X/g' | tr ' ' '\012' | sed -e '/^[^-]/d' -e '/^-[^D]/d' -e '/-D[^_]/d' -e 's/-D_/ -D_/' | tr '\012' ' ' | sed -e 's/\\\\X/\\\\ /g'` 5273 TCL_DEFS=`echo $TCL_DEFS | sed -e 's/\\\\ /\\\\X/g' | tr ' ' '\012' | sed -e '/^[^-]/d' -e '/^-[^D]/d' -e '/-D[^_]/d' -e 's/-D_/ -D_/' | tr '\012' ' ' | sed -e 's/\\\\X/\\\\ /g'`
5710 break 5274 break
5711 fi 5275 fi
5712 done 5276 done
5713 if test -z "$TCL_LIBS"; then 5277 if test -z "$TCL_LIBS"; then
5714 { $as_echo "$as_me:$LINENO: result: <not found>" >&5 5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
5715 $as_echo "<not found>" >&6; } 5279 $as_echo "<not found>" >&6; }
5716 { $as_echo "$as_me:$LINENO: checking for Tcl library by myself" >&5 5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl library by myself" >&5
5717 $as_echo_n "checking for Tcl library by myself... " >&6; } 5281 $as_echo_n "checking for Tcl library by myself... " >&6; }
5718 tcllib=`echo $tclinc | sed s/include/lib/g` 5282 tcllib=`echo $tclinc | sed s/include/lib/g`
5719 tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`" 5283 tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`"
5720 for ext in .so .a ; do 5284 for ext in .so .a ; do
5721 for ver in "" $tclver ; do 5285 for ver in "" $tclver ; do
5722 for try in $tcllib ; do 5286 for try in $tcllib ; do
5723 trylib=tcl$ver$ext 5287 trylib=tcl$ver$ext
5724 if test -f $try/lib$trylib ; then 5288 if test -f $try/lib$trylib ; then
5725 { $as_echo "$as_me:$LINENO: result: $try/lib$trylib" >&5 5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/lib$trylib" >&5
5726 $as_echo "$try/lib$trylib" >&6; } 5290 $as_echo "$try/lib$trylib" >&6; }
5727 TCL_LIBS="-L$try -ltcl$ver -ldl -lm" 5291 TCL_LIBS="-L$try -ltcl$ver -ldl -lm"
5728 if test "`(uname) 2>/dev/null`" = SunOS && 5292 if test "`(uname) 2>/dev/null`" = SunOS &&
5729 uname -r | grep '^5' >/dev/null; then 5293 uname -r | grep '^5' >/dev/null; then
5730 TCL_LIBS="$TCL_LIBS -R $try" 5294 TCL_LIBS="$TCL_LIBS -R $try"
5733 fi 5297 fi
5734 done 5298 done
5735 done 5299 done
5736 done 5300 done
5737 if test -z "$TCL_LIBS"; then 5301 if test -z "$TCL_LIBS"; then
5738 { $as_echo "$as_me:$LINENO: result: <not found>" >&5 5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
5739 $as_echo "<not found>" >&6; } 5303 $as_echo "<not found>" >&6; }
5740 SKIP_TCL=YES 5304 SKIP_TCL=YES
5741 fi 5305 fi
5742 fi 5306 fi
5743 if test -z "$SKIP_TCL"; then 5307 if test -z "$SKIP_TCL"; then
5744 cat >>confdefs.h <<\_ACEOF 5308 $as_echo "#define FEAT_TCL 1" >>confdefs.h
5745 #define FEAT_TCL 1
5746 _ACEOF
5747 5309
5748 TCL_SRC=if_tcl.c 5310 TCL_SRC=if_tcl.c
5749 TCL_OBJ=objects/if_tcl.o 5311 TCL_OBJ=objects/if_tcl.o
5750 TCL_PRO=if_tcl.pro 5312 TCL_PRO=if_tcl.pro
5751 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS" 5313 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
5752 fi 5314 fi
5753 fi 5315 fi
5754 else 5316 else
5755 { $as_echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5 5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Tcl version 8.0 or later" >&5
5756 $as_echo "too old; need Tcl version 8.0 or later" >&6; } 5318 $as_echo "too old; need Tcl version 8.0 or later" >&6; }
5757 fi 5319 fi
5758 fi 5320 fi
5759 fi 5321 fi
5760 5322
5761 5323
5762 5324
5763 5325
5764 5326
5765 5327
5766 { $as_echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5 5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-rubyinterp argument" >&5
5767 $as_echo_n "checking --enable-rubyinterp argument... " >&6; } 5329 $as_echo_n "checking --enable-rubyinterp argument... " >&6; }
5768 # Check whether --enable-rubyinterp was given. 5330 # Check whether --enable-rubyinterp was given.
5769 if test "${enable_rubyinterp+set}" = set; then 5331 if test "${enable_rubyinterp+set}" = set; then :
5770 enableval=$enable_rubyinterp; 5332 enableval=$enable_rubyinterp;
5771 else 5333 else
5772 enable_rubyinterp="no" 5334 enable_rubyinterp="no"
5773 fi 5335 fi
5774 5336
5775 { $as_echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5 5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_rubyinterp" >&5
5776 $as_echo "$enable_rubyinterp" >&6; } 5338 $as_echo "$enable_rubyinterp" >&6; }
5777 if test "$enable_rubyinterp" = "yes"; then 5339 if test "$enable_rubyinterp" = "yes"; then
5778 { $as_echo "$as_me:$LINENO: checking --with-ruby-command argument" >&5 5340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ruby-command argument" >&5
5779 $as_echo_n "checking --with-ruby-command argument... " >&6; } 5341 $as_echo_n "checking --with-ruby-command argument... " >&6; }
5780 5342
5781 # Check whether --with-ruby-command was given. 5343 # Check whether --with-ruby-command was given.
5782 if test "${with_ruby_command+set}" = set; then 5344 if test "${with_ruby_command+set}" = set; then :
5783 withval=$with_ruby_command; RUBY_CMD="$withval"; { $as_echo "$as_me:$LINENO: result: $RUBY_CMD" >&5 5345 withval=$with_ruby_command; RUBY_CMD="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY_CMD" >&5
5784 $as_echo "$RUBY_CMD" >&6; } 5346 $as_echo "$RUBY_CMD" >&6; }
5785 else 5347 else
5786 RUBY_CMD="ruby"; { $as_echo "$as_me:$LINENO: result: defaulting to $RUBY_CMD" >&5 5348 RUBY_CMD="ruby"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $RUBY_CMD" >&5
5787 $as_echo "defaulting to $RUBY_CMD" >&6; } 5349 $as_echo "defaulting to $RUBY_CMD" >&6; }
5788 fi 5350 fi
5789 5351
5790 5352
5791 # Extract the first word of "$RUBY_CMD", so it can be a program name with args. 5353 # Extract the first word of "$RUBY_CMD", so it can be a program name with args.
5792 set dummy $RUBY_CMD; ac_word=$2 5354 set dummy $RUBY_CMD; ac_word=$2
5793 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5794 $as_echo_n "checking for $ac_word... " >&6; } 5356 $as_echo_n "checking for $ac_word... " >&6; }
5795 if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then 5357 if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then :
5796 $as_echo_n "(cached) " >&6 5358 $as_echo_n "(cached) " >&6
5797 else 5359 else
5798 case $vi_cv_path_ruby in 5360 case $vi_cv_path_ruby in
5799 [\\/]* | ?:[\\/]*) 5361 [\\/]* | ?:[\\/]*)
5800 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path. 5362 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
5803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804 for as_dir in $PATH 5366 for as_dir in $PATH
5805 do 5367 do
5806 IFS=$as_save_IFS 5368 IFS=$as_save_IFS
5807 test -z "$as_dir" && as_dir=. 5369 test -z "$as_dir" && as_dir=.
5808 for ac_exec_ext in '' $ac_executable_extensions; do 5370 for ac_exec_ext in '' $ac_executable_extensions; do
5809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5810 ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext" 5372 ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
5811 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5812 break 2 5374 break 2
5813 fi 5375 fi
5814 done 5376 done
5815 done 5377 done
5816 IFS=$as_save_IFS 5378 IFS=$as_save_IFS
5817 5379
5818 ;; 5380 ;;
5819 esac 5381 esac
5820 fi 5382 fi
5821 vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby 5383 vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
5822 if test -n "$vi_cv_path_ruby"; then 5384 if test -n "$vi_cv_path_ruby"; then
5823 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5 5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_ruby" >&5
5824 $as_echo "$vi_cv_path_ruby" >&6; } 5386 $as_echo "$vi_cv_path_ruby" >&6; }
5825 else 5387 else
5826 { $as_echo "$as_me:$LINENO: result: no" >&5 5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5827 $as_echo "no" >&6; } 5389 $as_echo "no" >&6; }
5828 fi 5390 fi
5829 5391
5830 5392
5831 if test "X$vi_cv_path_ruby" != "X"; then 5393 if test "X$vi_cv_path_ruby" != "X"; then
5832 { $as_echo "$as_me:$LINENO: checking Ruby version" >&5 5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby version" >&5
5833 $as_echo_n "checking Ruby version... " >&6; } 5395 $as_echo_n "checking Ruby version... " >&6; }
5834 if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then 5396 if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
5835 { $as_echo "$as_me:$LINENO: result: OK" >&5 5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
5836 $as_echo "OK" >&6; } 5398 $as_echo "OK" >&6; }
5837 { $as_echo "$as_me:$LINENO: checking Ruby header files" >&5 5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby header files" >&5
5838 $as_echo_n "checking Ruby header files... " >&6; } 5400 $as_echo_n "checking Ruby header files... " >&6; }
5839 rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["rubyhdrdir"] || Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null` 5401 rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["rubyhdrdir"] || Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null`
5840 if test "X$rubyhdrdir" != "X"; then 5402 if test "X$rubyhdrdir" != "X"; then
5841 { $as_echo "$as_me:$LINENO: result: $rubyhdrdir" >&5 5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rubyhdrdir" >&5
5842 $as_echo "$rubyhdrdir" >&6; } 5404 $as_echo "$rubyhdrdir" >&6; }
5843 RUBY_CFLAGS="-I$rubyhdrdir" 5405 RUBY_CFLAGS="-I$rubyhdrdir"
5844 rubyarch=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["arch"]'` 5406 rubyarch=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["arch"]'`
5845 if test -d "$rubyhdrdir/$rubyarch"; then 5407 if test -d "$rubyhdrdir/$rubyarch"; then
5846 RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyhdrdir/$rubyarch" 5408 RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyhdrdir/$rubyarch"
5876 fi 5438 fi
5877 fi 5439 fi
5878 RUBY_SRC="if_ruby.c" 5440 RUBY_SRC="if_ruby.c"
5879 RUBY_OBJ="objects/if_ruby.o" 5441 RUBY_OBJ="objects/if_ruby.o"
5880 RUBY_PRO="if_ruby.pro" 5442 RUBY_PRO="if_ruby.pro"
5881 cat >>confdefs.h <<\_ACEOF 5443 $as_echo "#define FEAT_RUBY 1" >>confdefs.h
5882 #define FEAT_RUBY 1
5883 _ACEOF
5884 5444
5885 else 5445 else
5886 { $as_echo "$as_me:$LINENO: result: not found; disabling Ruby" >&5 5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found; disabling Ruby" >&5
5887 $as_echo "not found; disabling Ruby" >&6; } 5447 $as_echo "not found; disabling Ruby" >&6; }
5888 fi 5448 fi
5889 else 5449 else
5890 { $as_echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5 5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Ruby version 1.6.0 or later" >&5
5891 $as_echo "too old; need Ruby version 1.6.0 or later" >&6; } 5451 $as_echo "too old; need Ruby version 1.6.0 or later" >&6; }
5892 fi 5452 fi
5893 fi 5453 fi
5894 fi 5454 fi
5895 5455
5896 5456
5897 5457
5898 5458
5899 5459
5900 5460
5901 { $as_echo "$as_me:$LINENO: checking --enable-cscope argument" >&5 5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-cscope argument" >&5
5902 $as_echo_n "checking --enable-cscope argument... " >&6; } 5462 $as_echo_n "checking --enable-cscope argument... " >&6; }
5903 # Check whether --enable-cscope was given. 5463 # Check whether --enable-cscope was given.
5904 if test "${enable_cscope+set}" = set; then 5464 if test "${enable_cscope+set}" = set; then :
5905 enableval=$enable_cscope; 5465 enableval=$enable_cscope;
5906 else 5466 else
5907 enable_cscope="no" 5467 enable_cscope="no"
5908 fi 5468 fi
5909 5469
5910 { $as_echo "$as_me:$LINENO: result: $enable_cscope" >&5 5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cscope" >&5
5911 $as_echo "$enable_cscope" >&6; } 5471 $as_echo "$enable_cscope" >&6; }
5912 if test "$enable_cscope" = "yes"; then 5472 if test "$enable_cscope" = "yes"; then
5913 cat >>confdefs.h <<\_ACEOF 5473 $as_echo "#define FEAT_CSCOPE 1" >>confdefs.h
5914 #define FEAT_CSCOPE 1 5474
5915 _ACEOF 5475 fi
5916 5476
5917 fi 5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-workshop argument" >&5
5918
5919 { $as_echo "$as_me:$LINENO: checking --enable-workshop argument" >&5
5920 $as_echo_n "checking --enable-workshop argument... " >&6; } 5478 $as_echo_n "checking --enable-workshop argument... " >&6; }
5921 # Check whether --enable-workshop was given. 5479 # Check whether --enable-workshop was given.
5922 if test "${enable_workshop+set}" = set; then 5480 if test "${enable_workshop+set}" = set; then :
5923 enableval=$enable_workshop; 5481 enableval=$enable_workshop;
5924 else 5482 else
5925 enable_workshop="no" 5483 enable_workshop="no"
5926 fi 5484 fi
5927 5485
5928 { $as_echo "$as_me:$LINENO: result: $enable_workshop" >&5 5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_workshop" >&5
5929 $as_echo "$enable_workshop" >&6; } 5487 $as_echo "$enable_workshop" >&6; }
5930 if test "$enable_workshop" = "yes"; then 5488 if test "$enable_workshop" = "yes"; then
5931 cat >>confdefs.h <<\_ACEOF 5489 $as_echo "#define FEAT_SUN_WORKSHOP 1" >>confdefs.h
5932 #define FEAT_SUN_WORKSHOP 1
5933 _ACEOF
5934 5490
5935 WORKSHOP_SRC="workshop.c integration.c" 5491 WORKSHOP_SRC="workshop.c integration.c"
5936 5492
5937 WORKSHOP_OBJ="objects/workshop.o objects/integration.o" 5493 WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
5938 5494
5939 if test "${enable_gui-xxx}" = xxx; then 5495 if test "${enable_gui-xxx}" = xxx; then
5940 enable_gui=motif 5496 enable_gui=motif
5941 fi 5497 fi
5942 fi 5498 fi
5943 5499
5944 { $as_echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5 5500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-netbeans argument" >&5
5945 $as_echo_n "checking --disable-netbeans argument... " >&6; } 5501 $as_echo_n "checking --disable-netbeans argument... " >&6; }
5946 # Check whether --enable-netbeans was given. 5502 # Check whether --enable-netbeans was given.
5947 if test "${enable_netbeans+set}" = set; then 5503 if test "${enable_netbeans+set}" = set; then :
5948 enableval=$enable_netbeans; 5504 enableval=$enable_netbeans;
5949 else 5505 else
5950 enable_netbeans="yes" 5506 enable_netbeans="yes"
5951 fi 5507 fi
5952 5508
5953 if test "$enable_netbeans" = "yes"; then 5509 if test "$enable_netbeans" = "yes"; then
5954 { $as_echo "$as_me:$LINENO: result: no" >&5 5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5955 $as_echo "no" >&6; } 5511 $as_echo "no" >&6; }
5956 5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
5957 { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5958 $as_echo_n "checking for socket in -lsocket... " >&6; } 5513 $as_echo_n "checking for socket in -lsocket... " >&6; }
5959 if test "${ac_cv_lib_socket_socket+set}" = set; then 5514 if test "${ac_cv_lib_socket_socket+set}" = set; then :
5960 $as_echo_n "(cached) " >&6 5515 $as_echo_n "(cached) " >&6
5961 else 5516 else
5962 ac_check_lib_save_LIBS=$LIBS 5517 ac_check_lib_save_LIBS=$LIBS
5963 LIBS="-lsocket $LIBS" 5518 LIBS="-lsocket $LIBS"
5964 cat >conftest.$ac_ext <<_ACEOF 5519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5965 /* confdefs.h. */
5966 _ACEOF
5967 cat confdefs.h >>conftest.$ac_ext
5968 cat >>conftest.$ac_ext <<_ACEOF
5969 /* end confdefs.h. */ 5520 /* end confdefs.h. */
5970 5521
5971 /* Override any GCC internal prototype to avoid an error. 5522 /* Override any GCC internal prototype to avoid an error.
5972 Use char because int might match the return type of a GCC 5523 Use char because int might match the return type of a GCC
5973 builtin and then its argument prototype would still apply. */ 5524 builtin and then its argument prototype would still apply. */
5981 return socket (); 5532 return socket ();
5982 ; 5533 ;
5983 return 0; 5534 return 0;
5984 } 5535 }
5985 _ACEOF 5536 _ACEOF
5986 rm -f conftest.$ac_objext conftest$ac_exeext 5537 if ac_fn_c_try_link "$LINENO"; then :
5987 if { (ac_try="$ac_link"
5988 case "(($ac_try" in
5989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5990 *) ac_try_echo=$ac_try;;
5991 esac
5992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5993 $as_echo "$ac_try_echo") >&5
5994 (eval "$ac_link") 2>conftest.er1
5995 ac_status=$?
5996 grep -v '^ *+' conftest.er1 >conftest.err
5997 rm -f conftest.er1
5998 cat conftest.err >&5
5999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); } && {
6001 test -z "$ac_c_werror_flag" ||
6002 test ! -s conftest.err
6003 } && test -s conftest$ac_exeext && {
6004 test "$cross_compiling" = yes ||
6005 $as_test_x conftest$ac_exeext
6006 }; then
6007 ac_cv_lib_socket_socket=yes 5538 ac_cv_lib_socket_socket=yes
6008 else 5539 else
6009 $as_echo "$as_me: failed program was:" >&5 5540 ac_cv_lib_socket_socket=no
6010 sed 's/^/| /' conftest.$ac_ext >&5 5541 fi
6011 5542 rm -f core conftest.err conftest.$ac_objext \
6012 ac_cv_lib_socket_socket=no 5543 conftest$ac_exeext conftest.$ac_ext
6013 fi
6014
6015 rm -rf conftest.dSYM
6016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6017 conftest$ac_exeext conftest.$ac_ext
6018 LIBS=$ac_check_lib_save_LIBS 5544 LIBS=$ac_check_lib_save_LIBS
6019 fi 5545 fi
6020 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
6021 $as_echo "$ac_cv_lib_socket_socket" >&6; } 5547 $as_echo "$ac_cv_lib_socket_socket" >&6; }
6022 if test "x$ac_cv_lib_socket_socket" = x""yes; then 5548 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
6023 cat >>confdefs.h <<_ACEOF 5549 cat >>confdefs.h <<_ACEOF
6024 #define HAVE_LIBSOCKET 1 5550 #define HAVE_LIBSOCKET 1
6025 _ACEOF 5551 _ACEOF
6026 5552
6027 LIBS="-lsocket $LIBS" 5553 LIBS="-lsocket $LIBS"
6028 5554
6029 fi 5555 fi
6030 5556
6031 5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
6032 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6033 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 5558 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
6034 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 5559 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
6035 $as_echo_n "(cached) " >&6 5560 $as_echo_n "(cached) " >&6
6036 else 5561 else
6037 ac_check_lib_save_LIBS=$LIBS 5562 ac_check_lib_save_LIBS=$LIBS
6038 LIBS="-lnsl $LIBS" 5563 LIBS="-lnsl $LIBS"
6039 cat >conftest.$ac_ext <<_ACEOF 5564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6040 /* confdefs.h. */
6041 _ACEOF
6042 cat confdefs.h >>conftest.$ac_ext
6043 cat >>conftest.$ac_ext <<_ACEOF
6044 /* end confdefs.h. */ 5565 /* end confdefs.h. */
6045 5566
6046 /* Override any GCC internal prototype to avoid an error. 5567 /* Override any GCC internal prototype to avoid an error.
6047 Use char because int might match the return type of a GCC 5568 Use char because int might match the return type of a GCC
6048 builtin and then its argument prototype would still apply. */ 5569 builtin and then its argument prototype would still apply. */
6056 return gethostbyname (); 5577 return gethostbyname ();
6057 ; 5578 ;
6058 return 0; 5579 return 0;
6059 } 5580 }
6060 _ACEOF 5581 _ACEOF
6061 rm -f conftest.$ac_objext conftest$ac_exeext 5582 if ac_fn_c_try_link "$LINENO"; then :
6062 if { (ac_try="$ac_link"
6063 case "(($ac_try" in
6064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6065 *) ac_try_echo=$ac_try;;
6066 esac
6067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6068 $as_echo "$ac_try_echo") >&5
6069 (eval "$ac_link") 2>conftest.er1
6070 ac_status=$?
6071 grep -v '^ *+' conftest.er1 >conftest.err
6072 rm -f conftest.er1
6073 cat conftest.err >&5
6074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075 (exit $ac_status); } && {
6076 test -z "$ac_c_werror_flag" ||
6077 test ! -s conftest.err
6078 } && test -s conftest$ac_exeext && {
6079 test "$cross_compiling" = yes ||
6080 $as_test_x conftest$ac_exeext
6081 }; then
6082 ac_cv_lib_nsl_gethostbyname=yes 5583 ac_cv_lib_nsl_gethostbyname=yes
6083 else 5584 else
6084 $as_echo "$as_me: failed program was:" >&5 5585 ac_cv_lib_nsl_gethostbyname=no
6085 sed 's/^/| /' conftest.$ac_ext >&5 5586 fi
6086 5587 rm -f core conftest.err conftest.$ac_objext \
6087 ac_cv_lib_nsl_gethostbyname=no 5588 conftest$ac_exeext conftest.$ac_ext
6088 fi
6089
6090 rm -rf conftest.dSYM
6091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6092 conftest$ac_exeext conftest.$ac_ext
6093 LIBS=$ac_check_lib_save_LIBS 5589 LIBS=$ac_check_lib_save_LIBS
6094 fi 5590 fi
6095 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
6096 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 5592 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
6097 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then 5593 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
6098 cat >>confdefs.h <<_ACEOF 5594 cat >>confdefs.h <<_ACEOF
6099 #define HAVE_LIBNSL 1 5595 #define HAVE_LIBNSL 1
6100 _ACEOF 5596 _ACEOF
6101 5597
6102 LIBS="-lnsl $LIBS" 5598 LIBS="-lnsl $LIBS"
6103 5599
6104 fi 5600 fi
6105 5601
6106 { $as_echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5 5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling netbeans integration is possible" >&5
6107 $as_echo_n "checking whether compiling netbeans integration is possible... " >&6; } 5603 $as_echo_n "checking whether compiling netbeans integration is possible... " >&6; }
6108 cat >conftest.$ac_ext <<_ACEOF 5604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6109 /* confdefs.h. */
6110 _ACEOF
6111 cat confdefs.h >>conftest.$ac_ext
6112 cat >>conftest.$ac_ext <<_ACEOF
6113 /* end confdefs.h. */ 5605 /* end confdefs.h. */
6114 5606
6115 #include <stdio.h> 5607 #include <stdio.h>
6116 #include <stdlib.h> 5608 #include <stdlib.h>
6117 #include <stdarg.h> 5609 #include <stdarg.h>
6141 5633
6142 ; 5634 ;
6143 return 0; 5635 return 0;
6144 } 5636 }
6145 _ACEOF 5637 _ACEOF
6146 rm -f conftest.$ac_objext conftest$ac_exeext 5638 if ac_fn_c_try_link "$LINENO"; then :
6147 if { (ac_try="$ac_link" 5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6148 case "(($ac_try" in
6149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6150 *) ac_try_echo=$ac_try;;
6151 esac
6152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6153 $as_echo "$ac_try_echo") >&5
6154 (eval "$ac_link") 2>conftest.er1
6155 ac_status=$?
6156 grep -v '^ *+' conftest.er1 >conftest.err
6157 rm -f conftest.er1
6158 cat conftest.err >&5
6159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); } && {
6161 test -z "$ac_c_werror_flag" ||
6162 test ! -s conftest.err
6163 } && test -s conftest$ac_exeext && {
6164 test "$cross_compiling" = yes ||
6165 $as_test_x conftest$ac_exeext
6166 }; then
6167 { $as_echo "$as_me:$LINENO: result: yes" >&5
6168 $as_echo "yes" >&6; } 5640 $as_echo "yes" >&6; }
6169 else 5641 else
6170 $as_echo "$as_me: failed program was:" >&5 5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6171 sed 's/^/| /' conftest.$ac_ext >&5
6172
6173 { $as_echo "$as_me:$LINENO: result: no" >&5
6174 $as_echo "no" >&6; }; enable_netbeans="no" 5643 $as_echo "no" >&6; }; enable_netbeans="no"
6175 fi 5644 fi
6176 5645 rm -f core conftest.err conftest.$ac_objext \
6177 rm -rf conftest.dSYM 5646 conftest$ac_exeext conftest.$ac_ext
6178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5647 else
6179 conftest$ac_exeext conftest.$ac_ext 5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6180 else
6181 { $as_echo "$as_me:$LINENO: result: yes" >&5
6182 $as_echo "yes" >&6; } 5649 $as_echo "yes" >&6; }
6183 fi 5650 fi
6184 if test "$enable_netbeans" = "yes"; then 5651 if test "$enable_netbeans" = "yes"; then
6185 cat >>confdefs.h <<\_ACEOF 5652 $as_echo "#define FEAT_NETBEANS_INTG 1" >>confdefs.h
6186 #define FEAT_NETBEANS_INTG 1
6187 _ACEOF
6188 5653
6189 NETBEANS_SRC="netbeans.c" 5654 NETBEANS_SRC="netbeans.c"
6190 5655
6191 NETBEANS_OBJ="objects/netbeans.o" 5656 NETBEANS_OBJ="objects/netbeans.o"
6192 5657
6193 fi 5658 fi
6194 5659
6195 { $as_echo "$as_me:$LINENO: checking --enable-sniff argument" >&5 5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-sniff argument" >&5
6196 $as_echo_n "checking --enable-sniff argument... " >&6; } 5661 $as_echo_n "checking --enable-sniff argument... " >&6; }
6197 # Check whether --enable-sniff was given. 5662 # Check whether --enable-sniff was given.
6198 if test "${enable_sniff+set}" = set; then 5663 if test "${enable_sniff+set}" = set; then :
6199 enableval=$enable_sniff; 5664 enableval=$enable_sniff;
6200 else 5665 else
6201 enable_sniff="no" 5666 enable_sniff="no"
6202 fi 5667 fi
6203 5668
6204 { $as_echo "$as_me:$LINENO: result: $enable_sniff" >&5 5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_sniff" >&5
6205 $as_echo "$enable_sniff" >&6; } 5670 $as_echo "$enable_sniff" >&6; }
6206 if test "$enable_sniff" = "yes"; then 5671 if test "$enable_sniff" = "yes"; then
6207 cat >>confdefs.h <<\_ACEOF 5672 $as_echo "#define FEAT_SNIFF 1" >>confdefs.h
6208 #define FEAT_SNIFF 1
6209 _ACEOF
6210 5673
6211 SNIFF_SRC="if_sniff.c" 5674 SNIFF_SRC="if_sniff.c"
6212 5675
6213 SNIFF_OBJ="objects/if_sniff.o" 5676 SNIFF_OBJ="objects/if_sniff.o"
6214 5677
6215 fi 5678 fi
6216 5679
6217 { $as_echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5 5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-multibyte argument" >&5
6218 $as_echo_n "checking --enable-multibyte argument... " >&6; } 5681 $as_echo_n "checking --enable-multibyte argument... " >&6; }
6219 # Check whether --enable-multibyte was given. 5682 # Check whether --enable-multibyte was given.
6220 if test "${enable_multibyte+set}" = set; then 5683 if test "${enable_multibyte+set}" = set; then :
6221 enableval=$enable_multibyte; 5684 enableval=$enable_multibyte;
6222 else 5685 else
6223 enable_multibyte="no" 5686 enable_multibyte="no"
6224 fi 5687 fi
6225 5688
6226 { $as_echo "$as_me:$LINENO: result: $enable_multibyte" >&5 5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multibyte" >&5
6227 $as_echo "$enable_multibyte" >&6; } 5690 $as_echo "$enable_multibyte" >&6; }
6228 if test "$enable_multibyte" = "yes"; then 5691 if test "$enable_multibyte" = "yes"; then
6229 cat >>confdefs.h <<\_ACEOF 5692 $as_echo "#define FEAT_MBYTE 1" >>confdefs.h
6230 #define FEAT_MBYTE 1 5693
6231 _ACEOF 5694 fi
6232 5695
6233 fi 5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-hangulinput argument" >&5
6234
6235 { $as_echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5
6236 $as_echo_n "checking --enable-hangulinput argument... " >&6; } 5697 $as_echo_n "checking --enable-hangulinput argument... " >&6; }
6237 # Check whether --enable-hangulinput was given. 5698 # Check whether --enable-hangulinput was given.
6238 if test "${enable_hangulinput+set}" = set; then 5699 if test "${enable_hangulinput+set}" = set; then :
6239 enableval=$enable_hangulinput; 5700 enableval=$enable_hangulinput;
6240 else 5701 else
6241 enable_hangulinput="no" 5702 enable_hangulinput="no"
6242 fi 5703 fi
6243 5704
6244 { $as_echo "$as_me:$LINENO: result: $enable_hangulinput" >&5 5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_hangulinput" >&5
6245 $as_echo "$enable_hangulinput" >&6; } 5706 $as_echo "$enable_hangulinput" >&6; }
6246 5707
6247 { $as_echo "$as_me:$LINENO: checking --enable-xim argument" >&5 5708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-xim argument" >&5
6248 $as_echo_n "checking --enable-xim argument... " >&6; } 5709 $as_echo_n "checking --enable-xim argument... " >&6; }
6249 # Check whether --enable-xim was given. 5710 # Check whether --enable-xim was given.
6250 if test "${enable_xim+set}" = set; then 5711 if test "${enable_xim+set}" = set; then :
6251 enableval=$enable_xim; { $as_echo "$as_me:$LINENO: result: $enable_xim" >&5 5712 enableval=$enable_xim; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_xim" >&5
6252 $as_echo "$enable_xim" >&6; } 5713 $as_echo "$enable_xim" >&6; }
6253 else 5714 else
6254 enable_xim="auto"; { $as_echo "$as_me:$LINENO: result: defaulting to auto" >&5 5715 enable_xim="auto"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to auto" >&5
6255 $as_echo "defaulting to auto" >&6; } 5716 $as_echo "defaulting to auto" >&6; }
6256 fi 5717 fi
6257 5718
6258 5719
6259 { $as_echo "$as_me:$LINENO: checking --enable-fontset argument" >&5 5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fontset argument" >&5
6260 $as_echo_n "checking --enable-fontset argument... " >&6; } 5721 $as_echo_n "checking --enable-fontset argument... " >&6; }
6261 # Check whether --enable-fontset was given. 5722 # Check whether --enable-fontset was given.
6262 if test "${enable_fontset+set}" = set; then 5723 if test "${enable_fontset+set}" = set; then :
6263 enableval=$enable_fontset; 5724 enableval=$enable_fontset;
6264 else 5725 else
6265 enable_fontset="no" 5726 enable_fontset="no"
6266 fi 5727 fi
6267 5728
6268 { $as_echo "$as_me:$LINENO: result: $enable_fontset" >&5 5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_fontset" >&5
6269 $as_echo "$enable_fontset" >&6; } 5730 $as_echo "$enable_fontset" >&6; }
6270 5731
6271 test -z "$with_x" && with_x=yes 5732 test -z "$with_x" && with_x=yes
6272 test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes 5733 test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes
6273 if test "$with_x" = no; then 5734 if test "$with_x" = no; then
6274 { $as_echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5 5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to: don't HAVE_X11" >&5
6275 $as_echo "defaulting to: don't HAVE_X11" >&6; } 5736 $as_echo "defaulting to: don't HAVE_X11" >&6; }
6276 else 5737 else
6277 5738
6278 # Extract the first word of "xmkmf", so it can be a program name with args. 5739 # Extract the first word of "xmkmf", so it can be a program name with args.
6279 set dummy xmkmf; ac_word=$2 5740 set dummy xmkmf; ac_word=$2
6280 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6281 $as_echo_n "checking for $ac_word... " >&6; } 5742 $as_echo_n "checking for $ac_word... " >&6; }
6282 if test "${ac_cv_path_xmkmfpath+set}" = set; then 5743 if test "${ac_cv_path_xmkmfpath+set}" = set; then :
6283 $as_echo_n "(cached) " >&6 5744 $as_echo_n "(cached) " >&6
6284 else 5745 else
6285 case $xmkmfpath in 5746 case $xmkmfpath in
6286 [\\/]* | ?:[\\/]*) 5747 [\\/]* | ?:[\\/]*)
6287 ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path. 5748 ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path.
6290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6291 for as_dir in $PATH 5752 for as_dir in $PATH
6292 do 5753 do
6293 IFS=$as_save_IFS 5754 IFS=$as_save_IFS
6294 test -z "$as_dir" && as_dir=. 5755 test -z "$as_dir" && as_dir=.
6295 for ac_exec_ext in '' $ac_executable_extensions; do 5756 for ac_exec_ext in '' $ac_executable_extensions; do
6296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6297 ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext" 5758 ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext"
6298 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6299 break 2 5760 break 2
6300 fi 5761 fi
6301 done 5762 done
6302 done 5763 done
6303 IFS=$as_save_IFS 5764 IFS=$as_save_IFS
6304 5765
6305 ;; 5766 ;;
6306 esac 5767 esac
6307 fi 5768 fi
6308 xmkmfpath=$ac_cv_path_xmkmfpath 5769 xmkmfpath=$ac_cv_path_xmkmfpath
6309 if test -n "$xmkmfpath"; then 5770 if test -n "$xmkmfpath"; then
6310 { $as_echo "$as_me:$LINENO: result: $xmkmfpath" >&5 5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmkmfpath" >&5
6311 $as_echo "$xmkmfpath" >&6; } 5772 $as_echo "$xmkmfpath" >&6; }
6312 else 5773 else
6313 { $as_echo "$as_me:$LINENO: result: no" >&5 5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6314 $as_echo "no" >&6; } 5775 $as_echo "no" >&6; }
6315 fi 5776 fi
6316 5777
6317 5778
6318 5779
6319 { $as_echo "$as_me:$LINENO: checking for X" >&5 5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
6320 $as_echo_n "checking for X... " >&6; } 5781 $as_echo_n "checking for X... " >&6; }
6321 5782
6322 5783
6323 # Check whether --with-x was given. 5784 # Check whether --with-x was given.
6324 if test "${with_x+set}" = set; then 5785 if test "${with_x+set}" = set; then :
6325 withval=$with_x; 5786 withval=$with_x;
6326 fi 5787 fi
6327 5788
6328 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. 5789 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6329 if test "x$with_x" = xno; then 5790 if test "x$with_x" = xno; then
6330 # The user explicitly disabled X. 5791 # The user explicitly disabled X.
6331 have_x=disabled 5792 have_x=disabled
6332 else 5793 else
6333 case $x_includes,$x_libraries in #( 5794 case $x_includes,$x_libraries in #(
6334 *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5 5795 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
6335 $as_echo "$as_me: error: cannot use X directory names containing '" >&2;} 5796 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
6336 { (exit 1); exit 1; }; };; #(
6337 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
6338 $as_echo_n "(cached) " >&6 5797 $as_echo_n "(cached) " >&6
6339 else 5798 else
6340 # One or both of the vars are not set, and there is no cached value. 5799 # One or both of the vars are not set, and there is no cached value.
6341 ac_x_includes=no ac_x_libraries=no 5800 ac_x_includes=no ac_x_libraries=no
6342 rm -f -r conftest.dir 5801 rm -f -r conftest.dir
6380 5839
6381 # Standard set of common directories for X headers. 5840 # Standard set of common directories for X headers.
6382 # Check X11 before X11Rn because it is often a symlink to the current release. 5841 # Check X11 before X11Rn because it is often a symlink to the current release.
6383 ac_x_header_dirs=' 5842 ac_x_header_dirs='
6384 /usr/X11/include 5843 /usr/X11/include
5844 /usr/X11R7/include
6385 /usr/X11R6/include 5845 /usr/X11R6/include
6386 /usr/X11R5/include 5846 /usr/X11R5/include
6387 /usr/X11R4/include 5847 /usr/X11R4/include
6388 5848
6389 /usr/include/X11 5849 /usr/include/X11
5850 /usr/include/X11R7
6390 /usr/include/X11R6 5851 /usr/include/X11R6
6391 /usr/include/X11R5 5852 /usr/include/X11R5
6392 /usr/include/X11R4 5853 /usr/include/X11R4
6393 5854
6394 /usr/local/X11/include 5855 /usr/local/X11/include
5856 /usr/local/X11R7/include
6395 /usr/local/X11R6/include 5857 /usr/local/X11R6/include
6396 /usr/local/X11R5/include 5858 /usr/local/X11R5/include
6397 /usr/local/X11R4/include 5859 /usr/local/X11R4/include
6398 5860
6399 /usr/local/include/X11 5861 /usr/local/include/X11
5862 /usr/local/include/X11R7
6400 /usr/local/include/X11R6 5863 /usr/local/include/X11R6
6401 /usr/local/include/X11R5 5864 /usr/local/include/X11R5
6402 /usr/local/include/X11R4 5865 /usr/local/include/X11R4
6403 5866
6404 /usr/X386/include 5867 /usr/X386/include
6416 /usr/openwin/share/include' 5879 /usr/openwin/share/include'
6417 5880
6418 if test "$ac_x_includes" = no; then 5881 if test "$ac_x_includes" = no; then
6419 # Guess where to find include files, by looking for Xlib.h. 5882 # Guess where to find include files, by looking for Xlib.h.
6420 # First, try using that file with no special directory specified. 5883 # First, try using that file with no special directory specified.
6421 cat >conftest.$ac_ext <<_ACEOF 5884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6422 /* confdefs.h. */
6423 _ACEOF
6424 cat confdefs.h >>conftest.$ac_ext
6425 cat >>conftest.$ac_ext <<_ACEOF
6426 /* end confdefs.h. */ 5885 /* end confdefs.h. */
6427 #include <X11/Xlib.h> 5886 #include <X11/Xlib.h>
6428 _ACEOF 5887 _ACEOF
6429 if { (ac_try="$ac_cpp conftest.$ac_ext" 5888 if ac_fn_c_try_cpp "$LINENO"; then :
6430 case "(($ac_try" in
6431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6432 *) ac_try_echo=$ac_try;;
6433 esac
6434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6435 $as_echo "$ac_try_echo") >&5
6436 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6437 ac_status=$?
6438 grep -v '^ *+' conftest.er1 >conftest.err
6439 rm -f conftest.er1
6440 cat conftest.err >&5
6441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442 (exit $ac_status); } >/dev/null && {
6443 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6444 test ! -s conftest.err
6445 }; then
6446 # We can compile using X headers with no special include directory. 5889 # We can compile using X headers with no special include directory.
6447 ac_x_includes= 5890 ac_x_includes=
6448 else 5891 else
6449 $as_echo "$as_me: failed program was:" >&5
6450 sed 's/^/| /' conftest.$ac_ext >&5
6451
6452 for ac_dir in $ac_x_header_dirs; do 5892 for ac_dir in $ac_x_header_dirs; do
6453 if test -r "$ac_dir/X11/Xlib.h"; then 5893 if test -r "$ac_dir/X11/Xlib.h"; then
6454 ac_x_includes=$ac_dir 5894 ac_x_includes=$ac_dir
6455 break 5895 break
6456 fi 5896 fi
6457 done 5897 done
6458 fi 5898 fi
6459
6460 rm -f conftest.err conftest.$ac_ext 5899 rm -f conftest.err conftest.$ac_ext
6461 fi # $ac_x_includes = no 5900 fi # $ac_x_includes = no
6462 5901
6463 if test "$ac_x_libraries" = no; then 5902 if test "$ac_x_libraries" = no; then
6464 # Check for the libraries. 5903 # Check for the libraries.
6465 # See if we find them without any special options. 5904 # See if we find them without any special options.
6466 # Don't add to $LIBS permanently. 5905 # Don't add to $LIBS permanently.
6467 ac_save_LIBS=$LIBS 5906 ac_save_LIBS=$LIBS
6468 LIBS="-lX11 $LIBS" 5907 LIBS="-lX11 $LIBS"
6469 cat >conftest.$ac_ext <<_ACEOF 5908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6470 /* confdefs.h. */
6471 _ACEOF
6472 cat confdefs.h >>conftest.$ac_ext
6473 cat >>conftest.$ac_ext <<_ACEOF
6474 /* end confdefs.h. */ 5909 /* end confdefs.h. */
6475 #include <X11/Xlib.h> 5910 #include <X11/Xlib.h>
6476 int 5911 int
6477 main () 5912 main ()
6478 { 5913 {
6479 XrmInitialize () 5914 XrmInitialize ()
6480 ; 5915 ;
6481 return 0; 5916 return 0;
6482 } 5917 }
6483 _ACEOF 5918 _ACEOF
6484 rm -f conftest.$ac_objext conftest$ac_exeext 5919 if ac_fn_c_try_link "$LINENO"; then :
6485 if { (ac_try="$ac_link"
6486 case "(($ac_try" in
6487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6488 *) ac_try_echo=$ac_try;;
6489 esac
6490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6491 $as_echo "$ac_try_echo") >&5
6492 (eval "$ac_link") 2>conftest.er1
6493 ac_status=$?
6494 grep -v '^ *+' conftest.er1 >conftest.err
6495 rm -f conftest.er1
6496 cat conftest.err >&5
6497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 (exit $ac_status); } && {
6499 test -z "$ac_c_werror_flag" ||
6500 test ! -s conftest.err
6501 } && test -s conftest$ac_exeext && {
6502 test "$cross_compiling" = yes ||
6503 $as_test_x conftest$ac_exeext
6504 }; then
6505 LIBS=$ac_save_LIBS 5920 LIBS=$ac_save_LIBS
6506 # We can link X programs with no special library path. 5921 # We can link X programs with no special library path.
6507 ac_x_libraries= 5922 ac_x_libraries=
6508 else 5923 else
6509 $as_echo "$as_me: failed program was:" >&5 5924 LIBS=$ac_save_LIBS
6510 sed 's/^/| /' conftest.$ac_ext >&5
6511
6512 LIBS=$ac_save_LIBS
6513 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 5925 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6514 do 5926 do
6515 # Don't even attempt the hair of trying to link an X program! 5927 # Don't even attempt the hair of trying to link an X program!
6516 for ac_extension in a so sl dylib la dll; do 5928 for ac_extension in a so sl dylib la dll; do
6517 if test -r "$ac_dir/libX11.$ac_extension"; then 5929 if test -r "$ac_dir/libX11.$ac_extension"; then
6519 break 2 5931 break 2
6520 fi 5932 fi
6521 done 5933 done
6522 done 5934 done
6523 fi 5935 fi
6524 5936 rm -f core conftest.err conftest.$ac_objext \
6525 rm -rf conftest.dSYM 5937 conftest$ac_exeext conftest.$ac_ext
6526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6527 conftest$ac_exeext conftest.$ac_ext
6528 fi # $ac_x_libraries = no 5938 fi # $ac_x_libraries = no
6529 5939
6530 case $ac_x_includes,$ac_x_libraries in #( 5940 case $ac_x_includes,$ac_x_libraries in #(
6531 no,* | *,no | *\'*) 5941 no,* | *,no | *\'*)
6532 # Didn't find X, or a directory has "'" in its name. 5942 # Didn't find X, or a directory has "'" in its name.
6543 esac 5953 esac
6544 eval "$ac_cv_have_x" 5954 eval "$ac_cv_have_x"
6545 fi # $with_x != no 5955 fi # $with_x != no
6546 5956
6547 if test "$have_x" != yes; then 5957 if test "$have_x" != yes; then
6548 { $as_echo "$as_me:$LINENO: result: $have_x" >&5 5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
6549 $as_echo "$have_x" >&6; } 5959 $as_echo "$have_x" >&6; }
6550 no_x=yes 5960 no_x=yes
6551 else 5961 else
6552 # If each of the values was on the command line, it overrides each guess. 5962 # If each of the values was on the command line, it overrides each guess.
6553 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 5963 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6554 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 5964 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6555 # Update the cache value to reflect the command line values. 5965 # Update the cache value to reflect the command line values.
6556 ac_cv_have_x="have_x=yes\ 5966 ac_cv_have_x="have_x=yes\
6557 ac_x_includes='$x_includes'\ 5967 ac_x_includes='$x_includes'\
6558 ac_x_libraries='$x_libraries'" 5968 ac_x_libraries='$x_libraries'"
6559 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
6560 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } 5970 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
6561 fi 5971 fi
6562 5972
6563 if test "$no_x" = yes; then 5973 if test "$no_x" = yes; then
6564 # Not all programs may use this symbol, but it does not hurt to define it. 5974 # Not all programs may use this symbol, but it does not hurt to define it.
6565 5975
6566 cat >>confdefs.h <<\_ACEOF 5976 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
6567 #define X_DISPLAY_MISSING 1
6568 _ACEOF
6569 5977
6570 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 5978 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6571 else 5979 else
6572 if test -n "$x_includes"; then 5980 if test -n "$x_includes"; then
6573 X_CFLAGS="$X_CFLAGS -I$x_includes" 5981 X_CFLAGS="$X_CFLAGS -I$x_includes"
6576 # It would also be nice to do this for all -L options, not just this one. 5984 # It would also be nice to do this for all -L options, not just this one.
6577 if test -n "$x_libraries"; then 5985 if test -n "$x_libraries"; then
6578 X_LIBS="$X_LIBS -L$x_libraries" 5986 X_LIBS="$X_LIBS -L$x_libraries"
6579 # For Solaris; some versions of Sun CC require a space after -R and 5987 # For Solaris; some versions of Sun CC require a space after -R and
6580 # others require no space. Words are not sufficient . . . . 5988 # others require no space. Words are not sufficient . . . .
6581 { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
6582 $as_echo_n "checking whether -R must be followed by a space... " >&6; } 5990 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
6583 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 5991 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6584 ac_xsave_c_werror_flag=$ac_c_werror_flag 5992 ac_xsave_c_werror_flag=$ac_c_werror_flag
6585 ac_c_werror_flag=yes 5993 ac_c_werror_flag=yes
6586 cat >conftest.$ac_ext <<_ACEOF 5994 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. */ 5995 /* end confdefs.h. */
6592 5996
6593 int 5997 int
6594 main () 5998 main ()
6595 { 5999 {
6596 6000
6597 ; 6001 ;
6598 return 0; 6002 return 0;
6599 } 6003 }
6600 _ACEOF 6004 _ACEOF
6601 rm -f conftest.$ac_objext conftest$ac_exeext 6005 if ac_fn_c_try_link "$LINENO"; then :
6602 if { (ac_try="$ac_link" 6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6603 case "(($ac_try" in
6604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6605 *) ac_try_echo=$ac_try;;
6606 esac
6607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6608 $as_echo "$ac_try_echo") >&5
6609 (eval "$ac_link") 2>conftest.er1
6610 ac_status=$?
6611 grep -v '^ *+' conftest.er1 >conftest.err
6612 rm -f conftest.er1
6613 cat conftest.err >&5
6614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615 (exit $ac_status); } && {
6616 test -z "$ac_c_werror_flag" ||
6617 test ! -s conftest.err
6618 } && test -s conftest$ac_exeext && {
6619 test "$cross_compiling" = yes ||
6620 $as_test_x conftest$ac_exeext
6621 }; then
6622 { $as_echo "$as_me:$LINENO: result: no" >&5
6623 $as_echo "no" >&6; } 6007 $as_echo "no" >&6; }
6624 X_LIBS="$X_LIBS -R$x_libraries" 6008 X_LIBS="$X_LIBS -R$x_libraries"
6625 else 6009 else
6626 $as_echo "$as_me: failed program was:" >&5 6010 LIBS="$ac_xsave_LIBS -R $x_libraries"
6627 sed 's/^/| /' conftest.$ac_ext >&5 6011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6628
6629 LIBS="$ac_xsave_LIBS -R $x_libraries"
6630 cat >conftest.$ac_ext <<_ACEOF
6631 /* confdefs.h. */
6632 _ACEOF
6633 cat confdefs.h >>conftest.$ac_ext
6634 cat >>conftest.$ac_ext <<_ACEOF
6635 /* end confdefs.h. */ 6012 /* end confdefs.h. */
6636 6013
6637 int 6014 int
6638 main () 6015 main ()
6639 { 6016 {
6640 6017
6641 ; 6018 ;
6642 return 0; 6019 return 0;
6643 } 6020 }
6644 _ACEOF 6021 _ACEOF
6645 rm -f conftest.$ac_objext conftest$ac_exeext 6022 if ac_fn_c_try_link "$LINENO"; then :
6646 if { (ac_try="$ac_link" 6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6647 case "(($ac_try" in
6648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6649 *) ac_try_echo=$ac_try;;
6650 esac
6651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6652 $as_echo "$ac_try_echo") >&5
6653 (eval "$ac_link") 2>conftest.er1
6654 ac_status=$?
6655 grep -v '^ *+' conftest.er1 >conftest.err
6656 rm -f conftest.er1
6657 cat conftest.err >&5
6658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 (exit $ac_status); } && {
6660 test -z "$ac_c_werror_flag" ||
6661 test ! -s conftest.err
6662 } && test -s conftest$ac_exeext && {
6663 test "$cross_compiling" = yes ||
6664 $as_test_x conftest$ac_exeext
6665 }; then
6666 { $as_echo "$as_me:$LINENO: result: yes" >&5
6667 $as_echo "yes" >&6; } 6024 $as_echo "yes" >&6; }
6668 X_LIBS="$X_LIBS -R $x_libraries" 6025 X_LIBS="$X_LIBS -R $x_libraries"
6669 else 6026 else
6670 $as_echo "$as_me: failed program was:" >&5 6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
6671 sed 's/^/| /' conftest.$ac_ext >&5
6672
6673 { $as_echo "$as_me:$LINENO: result: neither works" >&5
6674 $as_echo "neither works" >&6; } 6028 $as_echo "neither works" >&6; }
6675 fi 6029 fi
6676 6030 rm -f core conftest.err conftest.$ac_objext \
6677 rm -rf conftest.dSYM 6031 conftest$ac_exeext conftest.$ac_ext
6678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6032 fi
6679 conftest$ac_exeext conftest.$ac_ext 6033 rm -f core conftest.err conftest.$ac_objext \
6680 fi 6034 conftest$ac_exeext conftest.$ac_ext
6681
6682 rm -rf conftest.dSYM
6683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6684 conftest$ac_exeext conftest.$ac_ext
6685 ac_c_werror_flag=$ac_xsave_c_werror_flag 6035 ac_c_werror_flag=$ac_xsave_c_werror_flag
6686 LIBS=$ac_xsave_LIBS 6036 LIBS=$ac_xsave_LIBS
6687 fi 6037 fi
6688 6038
6689 # Check for system-dependent libraries X programs must link with. 6039 # Check for system-dependent libraries X programs must link with.
6695 else 6045 else
6696 # Martyn Johnson says this is needed for Ultrix, if the X 6046 # Martyn Johnson says this is needed for Ultrix, if the X
6697 # libraries were built with DECnet support. And Karl Berry says 6047 # libraries were built with DECnet support. And Karl Berry says
6698 # the Alpha needs dnet_stub (dnet does not exist). 6048 # the Alpha needs dnet_stub (dnet does not exist).
6699 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 6049 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6700 cat >conftest.$ac_ext <<_ACEOF 6050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6701 /* confdefs.h. */
6702 _ACEOF
6703 cat confdefs.h >>conftest.$ac_ext
6704 cat >>conftest.$ac_ext <<_ACEOF
6705 /* end confdefs.h. */ 6051 /* end confdefs.h. */
6706 6052
6707 /* Override any GCC internal prototype to avoid an error. 6053 /* Override any GCC internal prototype to avoid an error.
6708 Use char because int might match the return type of a GCC 6054 Use char because int might match the return type of a GCC
6709 builtin and then its argument prototype would still apply. */ 6055 builtin and then its argument prototype would still apply. */
6717 return XOpenDisplay (); 6063 return XOpenDisplay ();
6718 ; 6064 ;
6719 return 0; 6065 return 0;
6720 } 6066 }
6721 _ACEOF 6067 _ACEOF
6722 rm -f conftest.$ac_objext conftest$ac_exeext 6068 if ac_fn_c_try_link "$LINENO"; then :
6723 if { (ac_try="$ac_link" 6069
6724 case "(($ac_try" in 6070 else
6725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
6726 *) ac_try_echo=$ac_try;;
6727 esac
6728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6729 $as_echo "$ac_try_echo") >&5
6730 (eval "$ac_link") 2>conftest.er1
6731 ac_status=$?
6732 grep -v '^ *+' conftest.er1 >conftest.err
6733 rm -f conftest.er1
6734 cat conftest.err >&5
6735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736 (exit $ac_status); } && {
6737 test -z "$ac_c_werror_flag" ||
6738 test ! -s conftest.err
6739 } && test -s conftest$ac_exeext && {
6740 test "$cross_compiling" = yes ||
6741 $as_test_x conftest$ac_exeext
6742 }; then
6743 :
6744 else
6745 $as_echo "$as_me: failed program was:" >&5
6746 sed 's/^/| /' conftest.$ac_ext >&5
6747
6748 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6749 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 6072 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
6750 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then 6073 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
6751 $as_echo_n "(cached) " >&6 6074 $as_echo_n "(cached) " >&6
6752 else 6075 else
6753 ac_check_lib_save_LIBS=$LIBS 6076 ac_check_lib_save_LIBS=$LIBS
6754 LIBS="-ldnet $LIBS" 6077 LIBS="-ldnet $LIBS"
6755 cat >conftest.$ac_ext <<_ACEOF 6078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6756 /* confdefs.h. */
6757 _ACEOF
6758 cat confdefs.h >>conftest.$ac_ext
6759 cat >>conftest.$ac_ext <<_ACEOF
6760 /* end confdefs.h. */ 6079 /* end confdefs.h. */
6761 6080
6762 /* Override any GCC internal prototype to avoid an error. 6081 /* Override any GCC internal prototype to avoid an error.
6763 Use char because int might match the return type of a GCC 6082 Use char because int might match the return type of a GCC
6764 builtin and then its argument prototype would still apply. */ 6083 builtin and then its argument prototype would still apply. */
6772 return dnet_ntoa (); 6091 return dnet_ntoa ();
6773 ; 6092 ;
6774 return 0; 6093 return 0;
6775 } 6094 }
6776 _ACEOF 6095 _ACEOF
6777 rm -f conftest.$ac_objext conftest$ac_exeext 6096 if ac_fn_c_try_link "$LINENO"; then :
6778 if { (ac_try="$ac_link"
6779 case "(($ac_try" in
6780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6781 *) ac_try_echo=$ac_try;;
6782 esac
6783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6784 $as_echo "$ac_try_echo") >&5
6785 (eval "$ac_link") 2>conftest.er1
6786 ac_status=$?
6787 grep -v '^ *+' conftest.er1 >conftest.err
6788 rm -f conftest.er1
6789 cat conftest.err >&5
6790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6791 (exit $ac_status); } && {
6792 test -z "$ac_c_werror_flag" ||
6793 test ! -s conftest.err
6794 } && test -s conftest$ac_exeext && {
6795 test "$cross_compiling" = yes ||
6796 $as_test_x conftest$ac_exeext
6797 }; then
6798 ac_cv_lib_dnet_dnet_ntoa=yes 6097 ac_cv_lib_dnet_dnet_ntoa=yes
6799 else 6098 else
6800 $as_echo "$as_me: failed program was:" >&5 6099 ac_cv_lib_dnet_dnet_ntoa=no
6801 sed 's/^/| /' conftest.$ac_ext >&5 6100 fi
6802 6101 rm -f core conftest.err conftest.$ac_objext \
6803 ac_cv_lib_dnet_dnet_ntoa=no 6102 conftest$ac_exeext conftest.$ac_ext
6804 fi
6805
6806 rm -rf conftest.dSYM
6807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6808 conftest$ac_exeext conftest.$ac_ext
6809 LIBS=$ac_check_lib_save_LIBS 6103 LIBS=$ac_check_lib_save_LIBS
6810 fi 6104 fi
6811 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6812 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 6106 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6813 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then 6107 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
6814 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 6108 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6815 fi 6109 fi
6816 6110
6817 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 6111 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6818 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 6112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
6819 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 6113 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
6820 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then 6114 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
6821 $as_echo_n "(cached) " >&6 6115 $as_echo_n "(cached) " >&6
6822 else 6116 else
6823 ac_check_lib_save_LIBS=$LIBS 6117 ac_check_lib_save_LIBS=$LIBS
6824 LIBS="-ldnet_stub $LIBS" 6118 LIBS="-ldnet_stub $LIBS"
6825 cat >conftest.$ac_ext <<_ACEOF 6119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6826 /* confdefs.h. */
6827 _ACEOF
6828 cat confdefs.h >>conftest.$ac_ext
6829 cat >>conftest.$ac_ext <<_ACEOF
6830 /* end confdefs.h. */ 6120 /* end confdefs.h. */
6831 6121
6832 /* Override any GCC internal prototype to avoid an error. 6122 /* Override any GCC internal prototype to avoid an error.
6833 Use char because int might match the return type of a GCC 6123 Use char because int might match the return type of a GCC
6834 builtin and then its argument prototype would still apply. */ 6124 builtin and then its argument prototype would still apply. */
6842 return dnet_ntoa (); 6132 return dnet_ntoa ();
6843 ; 6133 ;
6844 return 0; 6134 return 0;
6845 } 6135 }
6846 _ACEOF 6136 _ACEOF
6847 rm -f conftest.$ac_objext conftest$ac_exeext 6137 if ac_fn_c_try_link "$LINENO"; then :
6848 if { (ac_try="$ac_link"
6849 case "(($ac_try" in
6850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6851 *) ac_try_echo=$ac_try;;
6852 esac
6853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6854 $as_echo "$ac_try_echo") >&5
6855 (eval "$ac_link") 2>conftest.er1
6856 ac_status=$?
6857 grep -v '^ *+' conftest.er1 >conftest.err
6858 rm -f conftest.er1
6859 cat conftest.err >&5
6860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861 (exit $ac_status); } && {
6862 test -z "$ac_c_werror_flag" ||
6863 test ! -s conftest.err
6864 } && test -s conftest$ac_exeext && {
6865 test "$cross_compiling" = yes ||
6866 $as_test_x conftest$ac_exeext
6867 }; then
6868 ac_cv_lib_dnet_stub_dnet_ntoa=yes 6138 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6869 else 6139 else
6870 $as_echo "$as_me: failed program was:" >&5 6140 ac_cv_lib_dnet_stub_dnet_ntoa=no
6871 sed 's/^/| /' conftest.$ac_ext >&5 6141 fi
6872 6142 rm -f core conftest.err conftest.$ac_objext \
6873 ac_cv_lib_dnet_stub_dnet_ntoa=no 6143 conftest$ac_exeext conftest.$ac_ext
6874 fi
6875
6876 rm -rf conftest.dSYM
6877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6878 conftest$ac_exeext conftest.$ac_ext
6879 LIBS=$ac_check_lib_save_LIBS 6144 LIBS=$ac_check_lib_save_LIBS
6880 fi 6145 fi
6881 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6882 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 6147 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6883 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then 6148 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
6884 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 6149 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6885 fi 6150 fi
6886 6151
6887 fi 6152 fi
6888 fi 6153 fi
6889 6154 rm -f core conftest.err conftest.$ac_objext \
6890 rm -rf conftest.dSYM 6155 conftest$ac_exeext conftest.$ac_ext
6891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6892 conftest$ac_exeext conftest.$ac_ext
6893 LIBS="$ac_xsave_LIBS" 6156 LIBS="$ac_xsave_LIBS"
6894 6157
6895 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 6158 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6896 # to get the SysV transport functions. 6159 # to get the SysV transport functions.
6897 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 6160 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6898 # needs -lnsl. 6161 # needs -lnsl.
6899 # The nsl library prevents programs from opening the X display 6162 # The nsl library prevents programs from opening the X display
6900 # on Irix 5.2, according to T.E. Dickey. 6163 # on Irix 5.2, according to T.E. Dickey.
6901 # The functions gethostbyname, getservbyname, and inet_addr are 6164 # The functions gethostbyname, getservbyname, and inet_addr are
6902 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 6165 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6903 { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5 6166 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
6904 $as_echo_n "checking for gethostbyname... " >&6; } 6167 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
6905 if test "${ac_cv_func_gethostbyname+set}" = set; then 6168
6906 $as_echo_n "(cached) " >&6 6169 fi
6907 else
6908 cat >conftest.$ac_ext <<_ACEOF
6909 /* confdefs.h. */
6910 _ACEOF
6911 cat confdefs.h >>conftest.$ac_ext
6912 cat >>conftest.$ac_ext <<_ACEOF
6913 /* end confdefs.h. */
6914 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6916 #define gethostbyname innocuous_gethostbyname
6917
6918 /* System header to define __stub macros and hopefully few prototypes,
6919 which can conflict with char gethostbyname (); below.
6920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6921 <limits.h> exists even on freestanding compilers. */
6922
6923 #ifdef __STDC__
6924 # include <limits.h>
6925 #else
6926 # include <assert.h>
6927 #endif
6928
6929 #undef gethostbyname
6930
6931 /* Override any GCC internal prototype to avoid an error.
6932 Use char because int might match the return type of a GCC
6933 builtin and then its argument prototype would still apply. */
6934 #ifdef __cplusplus
6935 extern "C"
6936 #endif
6937 char gethostbyname ();
6938 /* The GNU C library defines this for functions which it implements
6939 to always fail with ENOSYS. Some functions are actually named
6940 something starting with __ and the normal name is an alias. */
6941 #if defined __stub_gethostbyname || defined __stub___gethostbyname
6942 choke me
6943 #endif
6944
6945 int
6946 main ()
6947 {
6948 return gethostbyname ();
6949 ;
6950 return 0;
6951 }
6952 _ACEOF
6953 rm -f conftest.$ac_objext conftest$ac_exeext
6954 if { (ac_try="$ac_link"
6955 case "(($ac_try" in
6956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6957 *) ac_try_echo=$ac_try;;
6958 esac
6959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6960 $as_echo "$ac_try_echo") >&5
6961 (eval "$ac_link") 2>conftest.er1
6962 ac_status=$?
6963 grep -v '^ *+' conftest.er1 >conftest.err
6964 rm -f conftest.er1
6965 cat conftest.err >&5
6966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967 (exit $ac_status); } && {
6968 test -z "$ac_c_werror_flag" ||
6969 test ! -s conftest.err
6970 } && test -s conftest$ac_exeext && {
6971 test "$cross_compiling" = yes ||
6972 $as_test_x conftest$ac_exeext
6973 }; then
6974 ac_cv_func_gethostbyname=yes
6975 else
6976 $as_echo "$as_me: failed program was:" >&5
6977 sed 's/^/| /' conftest.$ac_ext >&5
6978
6979 ac_cv_func_gethostbyname=no
6980 fi
6981
6982 rm -rf conftest.dSYM
6983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6984 conftest$ac_exeext conftest.$ac_ext
6985 fi
6986 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6987 $as_echo "$ac_cv_func_gethostbyname" >&6; }
6988 6170
6989 if test $ac_cv_func_gethostbyname = no; then 6171 if test $ac_cv_func_gethostbyname = no; then
6990 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 6172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
6991 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 6173 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
6992 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 6174 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
6993 $as_echo_n "(cached) " >&6 6175 $as_echo_n "(cached) " >&6
6994 else 6176 else
6995 ac_check_lib_save_LIBS=$LIBS 6177 ac_check_lib_save_LIBS=$LIBS
6996 LIBS="-lnsl $LIBS" 6178 LIBS="-lnsl $LIBS"
6997 cat >conftest.$ac_ext <<_ACEOF 6179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6998 /* confdefs.h. */
6999 _ACEOF
7000 cat confdefs.h >>conftest.$ac_ext
7001 cat >>conftest.$ac_ext <<_ACEOF
7002 /* end confdefs.h. */ 6180 /* end confdefs.h. */
7003 6181
7004 /* Override any GCC internal prototype to avoid an error. 6182 /* Override any GCC internal prototype to avoid an error.
7005 Use char because int might match the return type of a GCC 6183 Use char because int might match the return type of a GCC
7006 builtin and then its argument prototype would still apply. */ 6184 builtin and then its argument prototype would still apply. */
7014 return gethostbyname (); 6192 return gethostbyname ();
7015 ; 6193 ;
7016 return 0; 6194 return 0;
7017 } 6195 }
7018 _ACEOF 6196 _ACEOF
7019 rm -f conftest.$ac_objext conftest$ac_exeext 6197 if ac_fn_c_try_link "$LINENO"; then :
7020 if { (ac_try="$ac_link"
7021 case "(($ac_try" in
7022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7023 *) ac_try_echo=$ac_try;;
7024 esac
7025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7026 $as_echo "$ac_try_echo") >&5
7027 (eval "$ac_link") 2>conftest.er1
7028 ac_status=$?
7029 grep -v '^ *+' conftest.er1 >conftest.err
7030 rm -f conftest.er1
7031 cat conftest.err >&5
7032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); } && {
7034 test -z "$ac_c_werror_flag" ||
7035 test ! -s conftest.err
7036 } && test -s conftest$ac_exeext && {
7037 test "$cross_compiling" = yes ||
7038 $as_test_x conftest$ac_exeext
7039 }; then
7040 ac_cv_lib_nsl_gethostbyname=yes 6198 ac_cv_lib_nsl_gethostbyname=yes
7041 else 6199 else
7042 $as_echo "$as_me: failed program was:" >&5 6200 ac_cv_lib_nsl_gethostbyname=no
7043 sed 's/^/| /' conftest.$ac_ext >&5 6201 fi
7044 6202 rm -f core conftest.err conftest.$ac_objext \
7045 ac_cv_lib_nsl_gethostbyname=no 6203 conftest$ac_exeext conftest.$ac_ext
7046 fi
7047
7048 rm -rf conftest.dSYM
7049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7050 conftest$ac_exeext conftest.$ac_ext
7051 LIBS=$ac_check_lib_save_LIBS 6204 LIBS=$ac_check_lib_save_LIBS
7052 fi 6205 fi
7053 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7054 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 6207 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7055 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then 6208 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
7056 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 6209 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7057 fi 6210 fi
7058 6211
7059 if test $ac_cv_lib_nsl_gethostbyname = no; then 6212 if test $ac_cv_lib_nsl_gethostbyname = no; then
7060 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 6213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
7061 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 6214 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7062 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then 6215 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
7063 $as_echo_n "(cached) " >&6 6216 $as_echo_n "(cached) " >&6
7064 else 6217 else
7065 ac_check_lib_save_LIBS=$LIBS 6218 ac_check_lib_save_LIBS=$LIBS
7066 LIBS="-lbsd $LIBS" 6219 LIBS="-lbsd $LIBS"
7067 cat >conftest.$ac_ext <<_ACEOF 6220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7068 /* confdefs.h. */
7069 _ACEOF
7070 cat confdefs.h >>conftest.$ac_ext
7071 cat >>conftest.$ac_ext <<_ACEOF
7072 /* end confdefs.h. */ 6221 /* end confdefs.h. */
7073 6222
7074 /* Override any GCC internal prototype to avoid an error. 6223 /* Override any GCC internal prototype to avoid an error.
7075 Use char because int might match the return type of a GCC 6224 Use char because int might match the return type of a GCC
7076 builtin and then its argument prototype would still apply. */ 6225 builtin and then its argument prototype would still apply. */
7084 return gethostbyname (); 6233 return gethostbyname ();
7085 ; 6234 ;
7086 return 0; 6235 return 0;
7087 } 6236 }
7088 _ACEOF 6237 _ACEOF
7089 rm -f conftest.$ac_objext conftest$ac_exeext 6238 if ac_fn_c_try_link "$LINENO"; then :
7090 if { (ac_try="$ac_link"
7091 case "(($ac_try" in
7092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7093 *) ac_try_echo=$ac_try;;
7094 esac
7095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7096 $as_echo "$ac_try_echo") >&5
7097 (eval "$ac_link") 2>conftest.er1
7098 ac_status=$?
7099 grep -v '^ *+' conftest.er1 >conftest.err
7100 rm -f conftest.er1
7101 cat conftest.err >&5
7102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103 (exit $ac_status); } && {
7104 test -z "$ac_c_werror_flag" ||
7105 test ! -s conftest.err
7106 } && test -s conftest$ac_exeext && {
7107 test "$cross_compiling" = yes ||
7108 $as_test_x conftest$ac_exeext
7109 }; then
7110 ac_cv_lib_bsd_gethostbyname=yes 6239 ac_cv_lib_bsd_gethostbyname=yes
7111 else 6240 else
7112 $as_echo "$as_me: failed program was:" >&5 6241 ac_cv_lib_bsd_gethostbyname=no
7113 sed 's/^/| /' conftest.$ac_ext >&5 6242 fi
7114 6243 rm -f core conftest.err conftest.$ac_objext \
7115 ac_cv_lib_bsd_gethostbyname=no 6244 conftest$ac_exeext conftest.$ac_ext
7116 fi
7117
7118 rm -rf conftest.dSYM
7119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7120 conftest$ac_exeext conftest.$ac_ext
7121 LIBS=$ac_check_lib_save_LIBS 6245 LIBS=$ac_check_lib_save_LIBS
7122 fi 6246 fi
7123 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 6247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
7124 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 6248 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7125 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then 6249 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
7126 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 6250 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7127 fi 6251 fi
7128 6252
7129 fi 6253 fi
7130 fi 6254 fi
7134 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 6258 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7135 # on later versions), says Simon Leinen: it contains gethostby* 6259 # on later versions), says Simon Leinen: it contains gethostby*
7136 # variants that don't use the name server (or something). -lsocket 6260 # variants that don't use the name server (or something). -lsocket
7137 # must be given before -lnsl if both are needed. We assume that 6261 # must be given before -lnsl if both are needed. We assume that
7138 # if connect needs -lnsl, so does gethostbyname. 6262 # if connect needs -lnsl, so does gethostbyname.
7139 { $as_echo "$as_me:$LINENO: checking for connect" >&5 6263 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7140 $as_echo_n "checking for connect... " >&6; } 6264 if test "x$ac_cv_func_connect" = x""yes; then :
7141 if test "${ac_cv_func_connect+set}" = set; then 6265
7142 $as_echo_n "(cached) " >&6 6266 fi
7143 else
7144 cat >conftest.$ac_ext <<_ACEOF
7145 /* confdefs.h. */
7146 _ACEOF
7147 cat confdefs.h >>conftest.$ac_ext
7148 cat >>conftest.$ac_ext <<_ACEOF
7149 /* end confdefs.h. */
7150 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
7151 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7152 #define connect innocuous_connect
7153
7154 /* System header to define __stub macros and hopefully few prototypes,
7155 which can conflict with char connect (); below.
7156 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7157 <limits.h> exists even on freestanding compilers. */
7158
7159 #ifdef __STDC__
7160 # include <limits.h>
7161 #else
7162 # include <assert.h>
7163 #endif
7164
7165 #undef connect
7166
7167 /* Override any GCC internal prototype to avoid an error.
7168 Use char because int might match the return type of a GCC
7169 builtin and then its argument prototype would still apply. */
7170 #ifdef __cplusplus
7171 extern "C"
7172 #endif
7173 char connect ();
7174 /* The GNU C library defines this for functions which it implements
7175 to always fail with ENOSYS. Some functions are actually named
7176 something starting with __ and the normal name is an alias. */
7177 #if defined __stub_connect || defined __stub___connect
7178 choke me
7179 #endif
7180
7181 int
7182 main ()
7183 {
7184 return connect ();
7185 ;
7186 return 0;
7187 }
7188 _ACEOF
7189 rm -f conftest.$ac_objext conftest$ac_exeext
7190 if { (ac_try="$ac_link"
7191 case "(($ac_try" in
7192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7193 *) ac_try_echo=$ac_try;;
7194 esac
7195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7196 $as_echo "$ac_try_echo") >&5
7197 (eval "$ac_link") 2>conftest.er1
7198 ac_status=$?
7199 grep -v '^ *+' conftest.er1 >conftest.err
7200 rm -f conftest.er1
7201 cat conftest.err >&5
7202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203 (exit $ac_status); } && {
7204 test -z "$ac_c_werror_flag" ||
7205 test ! -s conftest.err
7206 } && test -s conftest$ac_exeext && {
7207 test "$cross_compiling" = yes ||
7208 $as_test_x conftest$ac_exeext
7209 }; then
7210 ac_cv_func_connect=yes
7211 else
7212 $as_echo "$as_me: failed program was:" >&5
7213 sed 's/^/| /' conftest.$ac_ext >&5
7214
7215 ac_cv_func_connect=no
7216 fi
7217
7218 rm -rf conftest.dSYM
7219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7220 conftest$ac_exeext conftest.$ac_ext
7221 fi
7222 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7223 $as_echo "$ac_cv_func_connect" >&6; }
7224 6267
7225 if test $ac_cv_func_connect = no; then 6268 if test $ac_cv_func_connect = no; then
7226 { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7227 $as_echo_n "checking for connect in -lsocket... " >&6; } 6270 $as_echo_n "checking for connect in -lsocket... " >&6; }
7228 if test "${ac_cv_lib_socket_connect+set}" = set; then 6271 if test "${ac_cv_lib_socket_connect+set}" = set; then :
7229 $as_echo_n "(cached) " >&6 6272 $as_echo_n "(cached) " >&6
7230 else 6273 else
7231 ac_check_lib_save_LIBS=$LIBS 6274 ac_check_lib_save_LIBS=$LIBS
7232 LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 6275 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7233 cat >conftest.$ac_ext <<_ACEOF 6276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7234 /* confdefs.h. */
7235 _ACEOF
7236 cat confdefs.h >>conftest.$ac_ext
7237 cat >>conftest.$ac_ext <<_ACEOF
7238 /* end confdefs.h. */ 6277 /* end confdefs.h. */
7239 6278
7240 /* Override any GCC internal prototype to avoid an error. 6279 /* Override any GCC internal prototype to avoid an error.
7241 Use char because int might match the return type of a GCC 6280 Use char because int might match the return type of a GCC
7242 builtin and then its argument prototype would still apply. */ 6281 builtin and then its argument prototype would still apply. */
7250 return connect (); 6289 return connect ();
7251 ; 6290 ;
7252 return 0; 6291 return 0;
7253 } 6292 }
7254 _ACEOF 6293 _ACEOF
7255 rm -f conftest.$ac_objext conftest$ac_exeext 6294 if ac_fn_c_try_link "$LINENO"; then :
7256 if { (ac_try="$ac_link"
7257 case "(($ac_try" in
7258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7259 *) ac_try_echo=$ac_try;;
7260 esac
7261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7262 $as_echo "$ac_try_echo") >&5
7263 (eval "$ac_link") 2>conftest.er1
7264 ac_status=$?
7265 grep -v '^ *+' conftest.er1 >conftest.err
7266 rm -f conftest.er1
7267 cat conftest.err >&5
7268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269 (exit $ac_status); } && {
7270 test -z "$ac_c_werror_flag" ||
7271 test ! -s conftest.err
7272 } && test -s conftest$ac_exeext && {
7273 test "$cross_compiling" = yes ||
7274 $as_test_x conftest$ac_exeext
7275 }; then
7276 ac_cv_lib_socket_connect=yes 6295 ac_cv_lib_socket_connect=yes
7277 else 6296 else
7278 $as_echo "$as_me: failed program was:" >&5 6297 ac_cv_lib_socket_connect=no
7279 sed 's/^/| /' conftest.$ac_ext >&5 6298 fi
7280 6299 rm -f core conftest.err conftest.$ac_objext \
7281 ac_cv_lib_socket_connect=no 6300 conftest$ac_exeext conftest.$ac_ext
7282 fi
7283
7284 rm -rf conftest.dSYM
7285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7286 conftest$ac_exeext conftest.$ac_ext
7287 LIBS=$ac_check_lib_save_LIBS 6301 LIBS=$ac_check_lib_save_LIBS
7288 fi 6302 fi
7289 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
7290 $as_echo "$ac_cv_lib_socket_connect" >&6; } 6304 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7291 if test "x$ac_cv_lib_socket_connect" = x""yes; then 6305 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
7292 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 6306 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7293 fi 6307 fi
7294 6308
7295 fi 6309 fi
7296 6310
7297 # Guillermo Gomez says -lposix is necessary on A/UX. 6311 # Guillermo Gomez says -lposix is necessary on A/UX.
7298 { $as_echo "$as_me:$LINENO: checking for remove" >&5 6312 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7299 $as_echo_n "checking for remove... " >&6; } 6313 if test "x$ac_cv_func_remove" = x""yes; then :
7300 if test "${ac_cv_func_remove+set}" = set; then 6314
7301 $as_echo_n "(cached) " >&6 6315 fi
7302 else
7303 cat >conftest.$ac_ext <<_ACEOF
7304 /* confdefs.h. */
7305 _ACEOF
7306 cat confdefs.h >>conftest.$ac_ext
7307 cat >>conftest.$ac_ext <<_ACEOF
7308 /* end confdefs.h. */
7309 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7310 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7311 #define remove innocuous_remove
7312
7313 /* System header to define __stub macros and hopefully few prototypes,
7314 which can conflict with char remove (); below.
7315 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7316 <limits.h> exists even on freestanding compilers. */
7317
7318 #ifdef __STDC__
7319 # include <limits.h>
7320 #else
7321 # include <assert.h>
7322 #endif
7323
7324 #undef remove
7325
7326 /* Override any GCC internal prototype to avoid an error.
7327 Use char because int might match the return type of a GCC
7328 builtin and then its argument prototype would still apply. */
7329 #ifdef __cplusplus
7330 extern "C"
7331 #endif
7332 char remove ();
7333 /* The GNU C library defines this for functions which it implements
7334 to always fail with ENOSYS. Some functions are actually named
7335 something starting with __ and the normal name is an alias. */
7336 #if defined __stub_remove || defined __stub___remove
7337 choke me
7338 #endif
7339
7340 int
7341 main ()
7342 {
7343 return remove ();
7344 ;
7345 return 0;
7346 }
7347 _ACEOF
7348 rm -f conftest.$ac_objext conftest$ac_exeext
7349 if { (ac_try="$ac_link"
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_link") 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_exeext && {
7366 test "$cross_compiling" = yes ||
7367 $as_test_x conftest$ac_exeext
7368 }; then
7369 ac_cv_func_remove=yes
7370 else
7371 $as_echo "$as_me: failed program was:" >&5
7372 sed 's/^/| /' conftest.$ac_ext >&5
7373
7374 ac_cv_func_remove=no
7375 fi
7376
7377 rm -rf conftest.dSYM
7378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7379 conftest$ac_exeext conftest.$ac_ext
7380 fi
7381 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7382 $as_echo "$ac_cv_func_remove" >&6; }
7383 6316
7384 if test $ac_cv_func_remove = no; then 6317 if test $ac_cv_func_remove = no; then
7385 { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5 6318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
7386 $as_echo_n "checking for remove in -lposix... " >&6; } 6319 $as_echo_n "checking for remove in -lposix... " >&6; }
7387 if test "${ac_cv_lib_posix_remove+set}" = set; then 6320 if test "${ac_cv_lib_posix_remove+set}" = set; then :
7388 $as_echo_n "(cached) " >&6 6321 $as_echo_n "(cached) " >&6
7389 else 6322 else
7390 ac_check_lib_save_LIBS=$LIBS 6323 ac_check_lib_save_LIBS=$LIBS
7391 LIBS="-lposix $LIBS" 6324 LIBS="-lposix $LIBS"
7392 cat >conftest.$ac_ext <<_ACEOF 6325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7393 /* confdefs.h. */
7394 _ACEOF
7395 cat confdefs.h >>conftest.$ac_ext
7396 cat >>conftest.$ac_ext <<_ACEOF
7397 /* end confdefs.h. */ 6326 /* end confdefs.h. */
7398 6327
7399 /* Override any GCC internal prototype to avoid an error. 6328 /* Override any GCC internal prototype to avoid an error.
7400 Use char because int might match the return type of a GCC 6329 Use char because int might match the return type of a GCC
7401 builtin and then its argument prototype would still apply. */ 6330 builtin and then its argument prototype would still apply. */
7409 return remove (); 6338 return remove ();
7410 ; 6339 ;
7411 return 0; 6340 return 0;
7412 } 6341 }
7413 _ACEOF 6342 _ACEOF
7414 rm -f conftest.$ac_objext conftest$ac_exeext 6343 if ac_fn_c_try_link "$LINENO"; then :
7415 if { (ac_try="$ac_link"
7416 case "(($ac_try" in
7417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7418 *) ac_try_echo=$ac_try;;
7419 esac
7420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7421 $as_echo "$ac_try_echo") >&5
7422 (eval "$ac_link") 2>conftest.er1
7423 ac_status=$?
7424 grep -v '^ *+' conftest.er1 >conftest.err
7425 rm -f conftest.er1
7426 cat conftest.err >&5
7427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428 (exit $ac_status); } && {
7429 test -z "$ac_c_werror_flag" ||
7430 test ! -s conftest.err
7431 } && test -s conftest$ac_exeext && {
7432 test "$cross_compiling" = yes ||
7433 $as_test_x conftest$ac_exeext
7434 }; then
7435 ac_cv_lib_posix_remove=yes 6344 ac_cv_lib_posix_remove=yes
7436 else 6345 else
7437 $as_echo "$as_me: failed program was:" >&5 6346 ac_cv_lib_posix_remove=no
7438 sed 's/^/| /' conftest.$ac_ext >&5 6347 fi
7439 6348 rm -f core conftest.err conftest.$ac_objext \
7440 ac_cv_lib_posix_remove=no 6349 conftest$ac_exeext conftest.$ac_ext
7441 fi
7442
7443 rm -rf conftest.dSYM
7444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7445 conftest$ac_exeext conftest.$ac_ext
7446 LIBS=$ac_check_lib_save_LIBS 6350 LIBS=$ac_check_lib_save_LIBS
7447 fi 6351 fi
7448 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
7449 $as_echo "$ac_cv_lib_posix_remove" >&6; } 6353 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7450 if test "x$ac_cv_lib_posix_remove" = x""yes; then 6354 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
7451 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 6355 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7452 fi 6356 fi
7453 6357
7454 fi 6358 fi
7455 6359
7456 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 6360 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7457 { $as_echo "$as_me:$LINENO: checking for shmat" >&5 6361 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
7458 $as_echo_n "checking for shmat... " >&6; } 6362 if test "x$ac_cv_func_shmat" = x""yes; then :
7459 if test "${ac_cv_func_shmat+set}" = set; then 6363
7460 $as_echo_n "(cached) " >&6 6364 fi
7461 else
7462 cat >conftest.$ac_ext <<_ACEOF
7463 /* confdefs.h. */
7464 _ACEOF
7465 cat confdefs.h >>conftest.$ac_ext
7466 cat >>conftest.$ac_ext <<_ACEOF
7467 /* end confdefs.h. */
7468 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7469 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7470 #define shmat innocuous_shmat
7471
7472 /* System header to define __stub macros and hopefully few prototypes,
7473 which can conflict with char shmat (); below.
7474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7475 <limits.h> exists even on freestanding compilers. */
7476
7477 #ifdef __STDC__
7478 # include <limits.h>
7479 #else
7480 # include <assert.h>
7481 #endif
7482
7483 #undef shmat
7484
7485 /* Override any GCC internal prototype to avoid an error.
7486 Use char because int might match the return type of a GCC
7487 builtin and then its argument prototype would still apply. */
7488 #ifdef __cplusplus
7489 extern "C"
7490 #endif
7491 char shmat ();
7492 /* The GNU C library defines this for functions which it implements
7493 to always fail with ENOSYS. Some functions are actually named
7494 something starting with __ and the normal name is an alias. */
7495 #if defined __stub_shmat || defined __stub___shmat
7496 choke me
7497 #endif
7498
7499 int
7500 main ()
7501 {
7502 return shmat ();
7503 ;
7504 return 0;
7505 }
7506 _ACEOF
7507 rm -f conftest.$ac_objext conftest$ac_exeext
7508 if { (ac_try="$ac_link"
7509 case "(($ac_try" in
7510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7511 *) ac_try_echo=$ac_try;;
7512 esac
7513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7514 $as_echo "$ac_try_echo") >&5
7515 (eval "$ac_link") 2>conftest.er1
7516 ac_status=$?
7517 grep -v '^ *+' conftest.er1 >conftest.err
7518 rm -f conftest.er1
7519 cat conftest.err >&5
7520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521 (exit $ac_status); } && {
7522 test -z "$ac_c_werror_flag" ||
7523 test ! -s conftest.err
7524 } && test -s conftest$ac_exeext && {
7525 test "$cross_compiling" = yes ||
7526 $as_test_x conftest$ac_exeext
7527 }; then
7528 ac_cv_func_shmat=yes
7529 else
7530 $as_echo "$as_me: failed program was:" >&5
7531 sed 's/^/| /' conftest.$ac_ext >&5
7532
7533 ac_cv_func_shmat=no
7534 fi
7535
7536 rm -rf conftest.dSYM
7537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7538 conftest$ac_exeext conftest.$ac_ext
7539 fi
7540 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7541 $as_echo "$ac_cv_func_shmat" >&6; }
7542 6365
7543 if test $ac_cv_func_shmat = no; then 6366 if test $ac_cv_func_shmat = no; then
7544 { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 6367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
7545 $as_echo_n "checking for shmat in -lipc... " >&6; } 6368 $as_echo_n "checking for shmat in -lipc... " >&6; }
7546 if test "${ac_cv_lib_ipc_shmat+set}" = set; then 6369 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
7547 $as_echo_n "(cached) " >&6 6370 $as_echo_n "(cached) " >&6
7548 else 6371 else
7549 ac_check_lib_save_LIBS=$LIBS 6372 ac_check_lib_save_LIBS=$LIBS
7550 LIBS="-lipc $LIBS" 6373 LIBS="-lipc $LIBS"
7551 cat >conftest.$ac_ext <<_ACEOF 6374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7552 /* confdefs.h. */
7553 _ACEOF
7554 cat confdefs.h >>conftest.$ac_ext
7555 cat >>conftest.$ac_ext <<_ACEOF
7556 /* end confdefs.h. */ 6375 /* end confdefs.h. */
7557 6376
7558 /* Override any GCC internal prototype to avoid an error. 6377 /* Override any GCC internal prototype to avoid an error.
7559 Use char because int might match the return type of a GCC 6378 Use char because int might match the return type of a GCC
7560 builtin and then its argument prototype would still apply. */ 6379 builtin and then its argument prototype would still apply. */
7568 return shmat (); 6387 return shmat ();
7569 ; 6388 ;
7570 return 0; 6389 return 0;
7571 } 6390 }
7572 _ACEOF 6391 _ACEOF
7573 rm -f conftest.$ac_objext conftest$ac_exeext 6392 if ac_fn_c_try_link "$LINENO"; then :
7574 if { (ac_try="$ac_link"
7575 case "(($ac_try" in
7576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7577 *) ac_try_echo=$ac_try;;
7578 esac
7579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7580 $as_echo "$ac_try_echo") >&5
7581 (eval "$ac_link") 2>conftest.er1
7582 ac_status=$?
7583 grep -v '^ *+' conftest.er1 >conftest.err
7584 rm -f conftest.er1
7585 cat conftest.err >&5
7586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); } && {
7588 test -z "$ac_c_werror_flag" ||
7589 test ! -s conftest.err
7590 } && test -s conftest$ac_exeext && {
7591 test "$cross_compiling" = yes ||
7592 $as_test_x conftest$ac_exeext
7593 }; then
7594 ac_cv_lib_ipc_shmat=yes 6393 ac_cv_lib_ipc_shmat=yes
7595 else 6394 else
7596 $as_echo "$as_me: failed program was:" >&5 6395 ac_cv_lib_ipc_shmat=no
7597 sed 's/^/| /' conftest.$ac_ext >&5 6396 fi
7598 6397 rm -f core conftest.err conftest.$ac_objext \
7599 ac_cv_lib_ipc_shmat=no 6398 conftest$ac_exeext conftest.$ac_ext
7600 fi
7601
7602 rm -rf conftest.dSYM
7603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7604 conftest$ac_exeext conftest.$ac_ext
7605 LIBS=$ac_check_lib_save_LIBS 6399 LIBS=$ac_check_lib_save_LIBS
7606 fi 6400 fi
7607 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
7608 $as_echo "$ac_cv_lib_ipc_shmat" >&6; } 6402 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7609 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then 6403 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
7610 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 6404 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7611 fi 6405 fi
7612 6406
7613 fi 6407 fi
7614 fi 6408 fi
7620 # check for ICE first), but we must link in the order -lSM -lICE or 6414 # check for ICE first), but we must link in the order -lSM -lICE or
7621 # we get undefined symbols. So assume we have SM if we have ICE. 6415 # we get undefined symbols. So assume we have SM if we have ICE.
7622 # These have to be linked with before -lX11, unlike the other 6416 # These have to be linked with before -lX11, unlike the other
7623 # libraries we check for below, so use a different variable. 6417 # libraries we check for below, so use a different variable.
7624 # John Interrante, Karl Berry 6418 # John Interrante, Karl Berry
7625 { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 6419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
7626 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 6420 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7627 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then 6421 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
7628 $as_echo_n "(cached) " >&6 6422 $as_echo_n "(cached) " >&6
7629 else 6423 else
7630 ac_check_lib_save_LIBS=$LIBS 6424 ac_check_lib_save_LIBS=$LIBS
7631 LIBS="-lICE $X_EXTRA_LIBS $LIBS" 6425 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7632 cat >conftest.$ac_ext <<_ACEOF 6426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7633 /* confdefs.h. */
7634 _ACEOF
7635 cat confdefs.h >>conftest.$ac_ext
7636 cat >>conftest.$ac_ext <<_ACEOF
7637 /* end confdefs.h. */ 6427 /* end confdefs.h. */
7638 6428
7639 /* Override any GCC internal prototype to avoid an error. 6429 /* Override any GCC internal prototype to avoid an error.
7640 Use char because int might match the return type of a GCC 6430 Use char because int might match the return type of a GCC
7641 builtin and then its argument prototype would still apply. */ 6431 builtin and then its argument prototype would still apply. */
7649 return IceConnectionNumber (); 6439 return IceConnectionNumber ();
7650 ; 6440 ;
7651 return 0; 6441 return 0;
7652 } 6442 }
7653 _ACEOF 6443 _ACEOF
7654 rm -f conftest.$ac_objext conftest$ac_exeext 6444 if ac_fn_c_try_link "$LINENO"; then :
7655 if { (ac_try="$ac_link"
7656 case "(($ac_try" in
7657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7658 *) ac_try_echo=$ac_try;;
7659 esac
7660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7661 $as_echo "$ac_try_echo") >&5
7662 (eval "$ac_link") 2>conftest.er1
7663 ac_status=$?
7664 grep -v '^ *+' conftest.er1 >conftest.err
7665 rm -f conftest.er1
7666 cat conftest.err >&5
7667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668 (exit $ac_status); } && {
7669 test -z "$ac_c_werror_flag" ||
7670 test ! -s conftest.err
7671 } && test -s conftest$ac_exeext && {
7672 test "$cross_compiling" = yes ||
7673 $as_test_x conftest$ac_exeext
7674 }; then
7675 ac_cv_lib_ICE_IceConnectionNumber=yes 6445 ac_cv_lib_ICE_IceConnectionNumber=yes
7676 else 6446 else
7677 $as_echo "$as_me: failed program was:" >&5 6447 ac_cv_lib_ICE_IceConnectionNumber=no
7678 sed 's/^/| /' conftest.$ac_ext >&5 6448 fi
7679 6449 rm -f core conftest.err conftest.$ac_objext \
7680 ac_cv_lib_ICE_IceConnectionNumber=no 6450 conftest$ac_exeext conftest.$ac_ext
7681 fi
7682
7683 rm -rf conftest.dSYM
7684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7685 conftest$ac_exeext conftest.$ac_ext
7686 LIBS=$ac_check_lib_save_LIBS 6451 LIBS=$ac_check_lib_save_LIBS
7687 fi 6452 fi
7688 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7689 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 6454 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7690 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then 6455 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
7691 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 6456 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7692 fi 6457 fi
7693 6458
7694 LDFLAGS=$ac_save_LDFLAGS 6459 LDFLAGS=$ac_save_LDFLAGS
7695 6460
7703 fi 6468 fi
7704 6469
7705 6470
7706 if test -d "$x_includes" && test ! -d "$x_libraries"; then 6471 if test -d "$x_includes" && test ! -d "$x_libraries"; then
7707 x_libraries=`echo "$x_includes" | sed s/include/lib/` 6472 x_libraries=`echo "$x_includes" | sed s/include/lib/`
7708 { $as_echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5 6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X libraries to $x_libraries" >&5
7709 $as_echo "Corrected X libraries to $x_libraries" >&6; } 6474 $as_echo "Corrected X libraries to $x_libraries" >&6; }
7710 X_LIBS="$X_LIBS -L$x_libraries" 6475 X_LIBS="$X_LIBS -L$x_libraries"
7711 if test "`(uname) 2>/dev/null`" = SunOS && 6476 if test "`(uname) 2>/dev/null`" = SunOS &&
7712 uname -r | grep '^5' >/dev/null; then 6477 uname -r | grep '^5' >/dev/null; then
7713 X_LIBS="$X_LIBS -R $x_libraries" 6478 X_LIBS="$X_LIBS -R $x_libraries"
7714 fi 6479 fi
7715 fi 6480 fi
7716 6481
7717 if test -d "$x_libraries" && test ! -d "$x_includes"; then 6482 if test -d "$x_libraries" && test ! -d "$x_includes"; then
7718 x_includes=`echo "$x_libraries" | sed s/lib/include/` 6483 x_includes=`echo "$x_libraries" | sed s/lib/include/`
7719 { $as_echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5 6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X includes to $x_includes" >&5
7720 $as_echo "Corrected X includes to $x_includes" >&6; } 6485 $as_echo "Corrected X includes to $x_includes" >&6; }
7721 X_CFLAGS="$X_CFLAGS -I$x_includes" 6486 X_CFLAGS="$X_CFLAGS -I$x_includes"
7722 fi 6487 fi
7723 6488
7724 X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`" 6489 X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`"
7725 X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`" 6490 X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`"
7726 X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`" 6491 X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
7727 6492
7728 6493
7729 { $as_echo "$as_me:$LINENO: checking if X11 header files can be found" >&5 6494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files can be found" >&5
7730 $as_echo_n "checking if X11 header files can be found... " >&6; } 6495 $as_echo_n "checking if X11 header files can be found... " >&6; }
7731 cflags_save=$CFLAGS 6496 cflags_save=$CFLAGS
7732 CFLAGS="$CFLAGS $X_CFLAGS" 6497 CFLAGS="$CFLAGS $X_CFLAGS"
7733 cat >conftest.$ac_ext <<_ACEOF 6498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7734 /* confdefs.h. */
7735 _ACEOF
7736 cat confdefs.h >>conftest.$ac_ext
7737 cat >>conftest.$ac_ext <<_ACEOF
7738 /* end confdefs.h. */ 6499 /* end confdefs.h. */
7739 #include <X11/Xlib.h> 6500 #include <X11/Xlib.h>
7740 #include <X11/Intrinsic.h> 6501 #include <X11/Intrinsic.h>
7741 int 6502 int
7742 main () 6503 main ()
7744 6505
7745 ; 6506 ;
7746 return 0; 6507 return 0;
7747 } 6508 }
7748 _ACEOF 6509 _ACEOF
7749 rm -f conftest.$ac_objext 6510 if ac_fn_c_try_compile "$LINENO"; then :
7750 if { (ac_try="$ac_compile" 6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7751 case "(($ac_try" in
7752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7753 *) ac_try_echo=$ac_try;;
7754 esac
7755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7756 $as_echo "$ac_try_echo") >&5
7757 (eval "$ac_compile") 2>conftest.er1
7758 ac_status=$?
7759 grep -v '^ *+' conftest.er1 >conftest.err
7760 rm -f conftest.er1
7761 cat conftest.err >&5
7762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 (exit $ac_status); } && {
7764 test -z "$ac_c_werror_flag" ||
7765 test ! -s conftest.err
7766 } && test -s conftest.$ac_objext; then
7767 { $as_echo "$as_me:$LINENO: result: yes" >&5
7768 $as_echo "yes" >&6; } 6512 $as_echo "yes" >&6; }
7769 else 6513 else
7770 $as_echo "$as_me: failed program was:" >&5 6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7771 sed 's/^/| /' conftest.$ac_ext >&5
7772
7773 { $as_echo "$as_me:$LINENO: result: no" >&5
7774 $as_echo "no" >&6; }; no_x=yes 6515 $as_echo "no" >&6; }; no_x=yes
7775 fi 6516 fi
7776
7777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7778 CFLAGS=$cflags_save 6518 CFLAGS=$cflags_save
7779 6519
7780 if test "${no_x-no}" = yes; then 6520 if test "${no_x-no}" = yes; then
7781 with_x=no 6521 with_x=no
7782 else 6522 else
7783 cat >>confdefs.h <<\_ACEOF 6523 $as_echo "#define HAVE_X11 1" >>confdefs.h
7784 #define HAVE_X11 1
7785 _ACEOF
7786 6524
7787 X_LIB="-lXt -lX11"; 6525 X_LIB="-lXt -lX11";
7788 6526
7789 6527
7790 ac_save_LDFLAGS="$LDFLAGS" 6528 ac_save_LDFLAGS="$LDFLAGS"
7791 LDFLAGS="-L$x_libraries $LDFLAGS" 6529 LDFLAGS="-L$x_libraries $LDFLAGS"
7792 6530
7793 { $as_echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5 6531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
7794 $as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; } 6532 $as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; }
7795 if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then 6533 if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then :
7796 $as_echo_n "(cached) " >&6 6534 $as_echo_n "(cached) " >&6
7797 else 6535 else
7798 ac_check_lib_save_LIBS=$LIBS 6536 ac_check_lib_save_LIBS=$LIBS
7799 LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS" 6537 LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
7800 cat >conftest.$ac_ext <<_ACEOF 6538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7801 /* confdefs.h. */
7802 _ACEOF
7803 cat confdefs.h >>conftest.$ac_ext
7804 cat >>conftest.$ac_ext <<_ACEOF
7805 /* end confdefs.h. */ 6539 /* end confdefs.h. */
7806 6540
7807 /* Override any GCC internal prototype to avoid an error. 6541 /* Override any GCC internal prototype to avoid an error.
7808 Use char because int might match the return type of a GCC 6542 Use char because int might match the return type of a GCC
7809 builtin and then its argument prototype would still apply. */ 6543 builtin and then its argument prototype would still apply. */
7817 return _XdmcpAuthDoIt (); 6551 return _XdmcpAuthDoIt ();
7818 ; 6552 ;
7819 return 0; 6553 return 0;
7820 } 6554 }
7821 _ACEOF 6555 _ACEOF
7822 rm -f conftest.$ac_objext conftest$ac_exeext 6556 if ac_fn_c_try_link "$LINENO"; then :
7823 if { (ac_try="$ac_link"
7824 case "(($ac_try" in
7825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7826 *) ac_try_echo=$ac_try;;
7827 esac
7828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7829 $as_echo "$ac_try_echo") >&5
7830 (eval "$ac_link") 2>conftest.er1
7831 ac_status=$?
7832 grep -v '^ *+' conftest.er1 >conftest.err
7833 rm -f conftest.er1
7834 cat conftest.err >&5
7835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836 (exit $ac_status); } && {
7837 test -z "$ac_c_werror_flag" ||
7838 test ! -s conftest.err
7839 } && test -s conftest$ac_exeext && {
7840 test "$cross_compiling" = yes ||
7841 $as_test_x conftest$ac_exeext
7842 }; then
7843 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes 6557 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
7844 else 6558 else
7845 $as_echo "$as_me: failed program was:" >&5 6559 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
7846 sed 's/^/| /' conftest.$ac_ext >&5 6560 fi
7847 6561 rm -f core conftest.err conftest.$ac_objext \
7848 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no 6562 conftest$ac_exeext conftest.$ac_ext
7849 fi
7850
7851 rm -rf conftest.dSYM
7852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7853 conftest$ac_exeext conftest.$ac_ext
7854 LIBS=$ac_check_lib_save_LIBS 6563 LIBS=$ac_check_lib_save_LIBS
7855 fi 6564 fi
7856 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5 6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
7857 $as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; } 6566 $as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; }
7858 if test "x$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" = x""yes; then 6567 if test "x$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" = x""yes; then :
7859 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp" 6568 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
7860 fi 6569 fi
7861 6570
7862 6571
7863 { $as_echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5 6572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceOpenConnection in -lICE" >&5
7864 $as_echo_n "checking for IceOpenConnection in -lICE... " >&6; } 6573 $as_echo_n "checking for IceOpenConnection in -lICE... " >&6; }
7865 if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then 6574 if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then :
7866 $as_echo_n "(cached) " >&6 6575 $as_echo_n "(cached) " >&6
7867 else 6576 else
7868 ac_check_lib_save_LIBS=$LIBS 6577 ac_check_lib_save_LIBS=$LIBS
7869 LIBS="-lICE $X_EXTRA_LIBS $LIBS" 6578 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7870 cat >conftest.$ac_ext <<_ACEOF 6579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7871 /* confdefs.h. */
7872 _ACEOF
7873 cat confdefs.h >>conftest.$ac_ext
7874 cat >>conftest.$ac_ext <<_ACEOF
7875 /* end confdefs.h. */ 6580 /* end confdefs.h. */
7876 6581
7877 /* Override any GCC internal prototype to avoid an error. 6582 /* Override any GCC internal prototype to avoid an error.
7878 Use char because int might match the return type of a GCC 6583 Use char because int might match the return type of a GCC
7879 builtin and then its argument prototype would still apply. */ 6584 builtin and then its argument prototype would still apply. */
7887 return IceOpenConnection (); 6592 return IceOpenConnection ();
7888 ; 6593 ;
7889 return 0; 6594 return 0;
7890 } 6595 }
7891 _ACEOF 6596 _ACEOF
7892 rm -f conftest.$ac_objext conftest$ac_exeext 6597 if ac_fn_c_try_link "$LINENO"; then :
7893 if { (ac_try="$ac_link"
7894 case "(($ac_try" in
7895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7896 *) ac_try_echo=$ac_try;;
7897 esac
7898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7899 $as_echo "$ac_try_echo") >&5
7900 (eval "$ac_link") 2>conftest.er1
7901 ac_status=$?
7902 grep -v '^ *+' conftest.er1 >conftest.err
7903 rm -f conftest.er1
7904 cat conftest.err >&5
7905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906 (exit $ac_status); } && {
7907 test -z "$ac_c_werror_flag" ||
7908 test ! -s conftest.err
7909 } && test -s conftest$ac_exeext && {
7910 test "$cross_compiling" = yes ||
7911 $as_test_x conftest$ac_exeext
7912 }; then
7913 ac_cv_lib_ICE_IceOpenConnection=yes 6598 ac_cv_lib_ICE_IceOpenConnection=yes
7914 else 6599 else
7915 $as_echo "$as_me: failed program was:" >&5 6600 ac_cv_lib_ICE_IceOpenConnection=no
7916 sed 's/^/| /' conftest.$ac_ext >&5 6601 fi
7917 6602 rm -f core conftest.err conftest.$ac_objext \
7918 ac_cv_lib_ICE_IceOpenConnection=no 6603 conftest$ac_exeext conftest.$ac_ext
7919 fi
7920
7921 rm -rf conftest.dSYM
7922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7923 conftest$ac_exeext conftest.$ac_ext
7924 LIBS=$ac_check_lib_save_LIBS 6604 LIBS=$ac_check_lib_save_LIBS
7925 fi 6605 fi
7926 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceOpenConnection" >&5 6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
7927 $as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; } 6607 $as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; }
7928 if test "x$ac_cv_lib_ICE_IceOpenConnection" = x""yes; then 6608 if test "x$ac_cv_lib_ICE_IceOpenConnection" = x""yes; then :
7929 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE" 6609 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE"
7930 fi 6610 fi
7931 6611
7932 6612
7933 LDFLAGS="$X_LIBS $ac_save_LDFLAGS" 6613 LDFLAGS="$X_LIBS $ac_save_LDFLAGS"
7934 { $as_echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5 6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmCreatePixmapFromData in -lXpm" >&5
7935 $as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; } 6615 $as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; }
7936 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then 6616 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then :
7937 $as_echo_n "(cached) " >&6 6617 $as_echo_n "(cached) " >&6
7938 else 6618 else
7939 ac_check_lib_save_LIBS=$LIBS 6619 ac_check_lib_save_LIBS=$LIBS
7940 LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS" 6620 LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
7941 cat >conftest.$ac_ext <<_ACEOF 6621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7942 /* confdefs.h. */
7943 _ACEOF
7944 cat confdefs.h >>conftest.$ac_ext
7945 cat >>conftest.$ac_ext <<_ACEOF
7946 /* end confdefs.h. */ 6622 /* end confdefs.h. */
7947 6623
7948 /* Override any GCC internal prototype to avoid an error. 6624 /* Override any GCC internal prototype to avoid an error.
7949 Use char because int might match the return type of a GCC 6625 Use char because int might match the return type of a GCC
7950 builtin and then its argument prototype would still apply. */ 6626 builtin and then its argument prototype would still apply. */
7958 return XpmCreatePixmapFromData (); 6634 return XpmCreatePixmapFromData ();
7959 ; 6635 ;
7960 return 0; 6636 return 0;
7961 } 6637 }
7962 _ACEOF 6638 _ACEOF
7963 rm -f conftest.$ac_objext conftest$ac_exeext 6639 if ac_fn_c_try_link "$LINENO"; then :
7964 if { (ac_try="$ac_link"
7965 case "(($ac_try" in
7966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7967 *) ac_try_echo=$ac_try;;
7968 esac
7969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7970 $as_echo "$ac_try_echo") >&5
7971 (eval "$ac_link") 2>conftest.er1
7972 ac_status=$?
7973 grep -v '^ *+' conftest.er1 >conftest.err
7974 rm -f conftest.er1
7975 cat conftest.err >&5
7976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); } && {
7978 test -z "$ac_c_werror_flag" ||
7979 test ! -s conftest.err
7980 } && test -s conftest$ac_exeext && {
7981 test "$cross_compiling" = yes ||
7982 $as_test_x conftest$ac_exeext
7983 }; then
7984 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes 6640 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
7985 else 6641 else
7986 $as_echo "$as_me: failed program was:" >&5 6642 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
7987 sed 's/^/| /' conftest.$ac_ext >&5 6643 fi
7988 6644 rm -f core conftest.err conftest.$ac_objext \
7989 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no 6645 conftest$ac_exeext conftest.$ac_ext
7990 fi
7991
7992 rm -rf conftest.dSYM
7993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7994 conftest$ac_exeext conftest.$ac_ext
7995 LIBS=$ac_check_lib_save_LIBS 6646 LIBS=$ac_check_lib_save_LIBS
7996 fi 6647 fi
7997 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5 6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
7998 $as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; } 6649 $as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; }
7999 if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = x""yes; then 6650 if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = x""yes; then :
8000 X_PRE_LIBS="$X_PRE_LIBS -lXpm" 6651 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
8001 fi 6652 fi
8002 6653
8003 6654
8004 { $as_echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5 6655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files implicitly declare return values" >&5
8005 $as_echo_n "checking if X11 header files implicitly declare return values... " >&6; } 6656 $as_echo_n "checking if X11 header files implicitly declare return values... " >&6; }
8006 cflags_save=$CFLAGS 6657 cflags_save=$CFLAGS
8007 CFLAGS="$CFLAGS $X_CFLAGS -Werror" 6658 CFLAGS="$CFLAGS $X_CFLAGS -Werror"
8008 cat >conftest.$ac_ext <<_ACEOF 6659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8009 /* confdefs.h. */
8010 _ACEOF
8011 cat confdefs.h >>conftest.$ac_ext
8012 cat >>conftest.$ac_ext <<_ACEOF
8013 /* end confdefs.h. */ 6660 /* end confdefs.h. */
8014 #include <X11/Xlib.h> 6661 #include <X11/Xlib.h>
8015 int 6662 int
8016 main () 6663 main ()
8017 { 6664 {
8018 6665
8019 ; 6666 ;
8020 return 0; 6667 return 0;
8021 } 6668 }
8022 _ACEOF 6669 _ACEOF
8023 rm -f conftest.$ac_objext 6670 if ac_fn_c_try_compile "$LINENO"; then :
8024 if { (ac_try="$ac_compile" 6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8025 case "(($ac_try" in
8026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8027 *) ac_try_echo=$ac_try;;
8028 esac
8029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8030 $as_echo "$ac_try_echo") >&5
8031 (eval "$ac_compile") 2>conftest.er1
8032 ac_status=$?
8033 grep -v '^ *+' conftest.er1 >conftest.err
8034 rm -f conftest.er1
8035 cat conftest.err >&5
8036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037 (exit $ac_status); } && {
8038 test -z "$ac_c_werror_flag" ||
8039 test ! -s conftest.err
8040 } && test -s conftest.$ac_objext; then
8041 { $as_echo "$as_me:$LINENO: result: no" >&5
8042 $as_echo "no" >&6; } 6672 $as_echo "no" >&6; }
8043 else 6673 else
8044 $as_echo "$as_me: failed program was:" >&5 6674 CFLAGS="$CFLAGS -Wno-implicit-int"
8045 sed 's/^/| /' conftest.$ac_ext >&5 6675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8046
8047 CFLAGS="$CFLAGS -Wno-implicit-int"
8048 cat >conftest.$ac_ext <<_ACEOF
8049 /* confdefs.h. */
8050 _ACEOF
8051 cat confdefs.h >>conftest.$ac_ext
8052 cat >>conftest.$ac_ext <<_ACEOF
8053 /* end confdefs.h. */ 6676 /* end confdefs.h. */
8054 #include <X11/Xlib.h> 6677 #include <X11/Xlib.h>
8055 int 6678 int
8056 main () 6679 main ()
8057 { 6680 {
8058 6681
8059 ; 6682 ;
8060 return 0; 6683 return 0;
8061 } 6684 }
8062 _ACEOF 6685 _ACEOF
8063 rm -f conftest.$ac_objext 6686 if ac_fn_c_try_compile "$LINENO"; then :
8064 if { (ac_try="$ac_compile" 6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8065 case "(($ac_try" in
8066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8067 *) ac_try_echo=$ac_try;;
8068 esac
8069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8070 $as_echo "$ac_try_echo") >&5
8071 (eval "$ac_compile") 2>conftest.er1
8072 ac_status=$?
8073 grep -v '^ *+' conftest.er1 >conftest.err
8074 rm -f conftest.er1
8075 cat conftest.err >&5
8076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077 (exit $ac_status); } && {
8078 test -z "$ac_c_werror_flag" ||
8079 test ! -s conftest.err
8080 } && test -s conftest.$ac_objext; then
8081 { $as_echo "$as_me:$LINENO: result: yes" >&5
8082 $as_echo "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int" 6688 $as_echo "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int"
8083 else 6689 else
8084 $as_echo "$as_me: failed program was:" >&5 6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
8085 sed 's/^/| /' conftest.$ac_ext >&5
8086
8087 { $as_echo "$as_me:$LINENO: result: test failed" >&5
8088 $as_echo "test failed" >&6; } 6691 $as_echo "test failed" >&6; }
8089 6692
8090 fi 6693 fi
8091
8092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8093 6695
8094 fi 6696 fi
8095
8096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8097 CFLAGS=$cflags_save 6698 CFLAGS=$cflags_save
8098 6699
8099 LDFLAGS="$ac_save_LDFLAGS" 6700 LDFLAGS="$ac_save_LDFLAGS"
8100 6701
8101 { $as_echo "$as_me:$LINENO: checking size of wchar_t is 2 bytes" >&5 6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t is 2 bytes" >&5
8102 $as_echo_n "checking size of wchar_t is 2 bytes... " >&6; } 6703 $as_echo_n "checking size of wchar_t is 2 bytes... " >&6; }
8103 if test "${ac_cv_small_wchar_t+set}" = set; then 6704 if test "${ac_cv_small_wchar_t+set}" = set; then :
8104 $as_echo_n "(cached) " >&6 6705 $as_echo_n "(cached) " >&6
8105 else 6706 else
8106 if test "$cross_compiling" = yes; then 6707 if test "$cross_compiling" = yes; then :
8107 { { $as_echo "$as_me:$LINENO: error: failed to compile test program" >&5 6708 as_fn_error "failed to compile test program" "$LINENO" 5
8108 $as_echo "$as_me: error: failed to compile test program" >&2;} 6709 else
8109 { (exit 1); exit 1; }; } 6710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8110 else
8111 cat >conftest.$ac_ext <<_ACEOF
8112 /* confdefs.h. */
8113 _ACEOF
8114 cat confdefs.h >>conftest.$ac_ext
8115 cat >>conftest.$ac_ext <<_ACEOF
8116 /* end confdefs.h. */ 6711 /* end confdefs.h. */
8117 6712
8118 #include <X11/Xlib.h> 6713 #include <X11/Xlib.h>
8119 #if STDC_HEADERS 6714 #if STDC_HEADERS
8120 # include <stdlib.h> 6715 # include <stdlib.h>
8125 if (sizeof(wchar_t) <= 2) 6720 if (sizeof(wchar_t) <= 2)
8126 exit(1); 6721 exit(1);
8127 exit(0); 6722 exit(0);
8128 } 6723 }
8129 _ACEOF 6724 _ACEOF
8130 rm -f conftest$ac_exeext 6725 if ac_fn_c_try_run "$LINENO"; then :
8131 if { (ac_try="$ac_link"
8132 case "(($ac_try" in
8133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8134 *) ac_try_echo=$ac_try;;
8135 esac
8136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8137 $as_echo "$ac_try_echo") >&5
8138 (eval "$ac_link") 2>&5
8139 ac_status=$?
8140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8142 { (case "(($ac_try" in
8143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8144 *) ac_try_echo=$ac_try;;
8145 esac
8146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8147 $as_echo "$ac_try_echo") >&5
8148 (eval "$ac_try") 2>&5
8149 ac_status=$?
8150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); }; }; then
8152 ac_cv_small_wchar_t="no" 6726 ac_cv_small_wchar_t="no"
8153 else 6727 else
8154 $as_echo "$as_me: program exited with status $ac_status" >&5 6728 ac_cv_small_wchar_t="yes"
8155 $as_echo "$as_me: failed program was:" >&5 6729 fi
8156 sed 's/^/| /' conftest.$ac_ext >&5 6730 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8157 6731 conftest.$ac_objext conftest.beam conftest.$ac_ext
8158 ( exit $ac_status ) 6732 fi
8159 ac_cv_small_wchar_t="yes" 6733
8160 fi 6734 fi
8161 rm -rf conftest.dSYM 6735
8162 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_small_wchar_t" >&5
8163 fi
8164
8165
8166 fi
8167
8168 { $as_echo "$as_me:$LINENO: result: $ac_cv_small_wchar_t" >&5
8169 $as_echo "$ac_cv_small_wchar_t" >&6; } 6737 $as_echo "$ac_cv_small_wchar_t" >&6; }
8170 if test "x$ac_cv_small_wchar_t" = "xyes" ; then 6738 if test "x$ac_cv_small_wchar_t" = "xyes" ; then
8171 cat >>confdefs.h <<\_ACEOF 6739 $as_echo "#define SMALL_WCHAR_T 1" >>confdefs.h
8172 #define SMALL_WCHAR_T 1
8173 _ACEOF
8174 6740
8175 fi 6741 fi
8176 6742
8177 fi 6743 fi
8178 fi 6744 fi
8179 6745
8180 test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no 6746 test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
8181 6747
8182 { $as_echo "$as_me:$LINENO: checking --enable-gui argument" >&5 6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-gui argument" >&5
8183 $as_echo_n "checking --enable-gui argument... " >&6; } 6749 $as_echo_n "checking --enable-gui argument... " >&6; }
8184 # Check whether --enable-gui was given. 6750 # Check whether --enable-gui was given.
8185 if test "${enable_gui+set}" = set; then 6751 if test "${enable_gui+set}" = set; then :
8186 enableval=$enable_gui; 6752 enableval=$enable_gui;
8187 else 6753 else
8188 enable_gui="auto" 6754 enable_gui="auto"
8189 fi 6755 fi
8190 6756
8203 GUITYPE=NONE 6769 GUITYPE=NONE
8204 6770
8205 if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then 6771 if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
8206 SKIP_PHOTON= 6772 SKIP_PHOTON=
8207 case "$enable_gui_canon" in 6773 case "$enable_gui_canon" in
8208 no) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5 6774 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5
8209 $as_echo "no GUI support" >&6; } 6775 $as_echo "no GUI support" >&6; }
8210 SKIP_PHOTON=YES ;; 6776 SKIP_PHOTON=YES ;;
8211 yes|"") { $as_echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5 6777 yes|"") { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5
8212 $as_echo "yes - automatic GUI support" >&6; } ;; 6778 $as_echo "yes - automatic GUI support" >&6; } ;;
8213 auto) { $as_echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5 6779 auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - automatic GUI support" >&5
8214 $as_echo "auto - automatic GUI support" >&6; } ;; 6780 $as_echo "auto - automatic GUI support" >&6; } ;;
8215 photon) { $as_echo "$as_me:$LINENO: result: Photon GUI support" >&5 6781 photon) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Photon GUI support" >&5
8216 $as_echo "Photon GUI support" >&6; } ;; 6782 $as_echo "Photon GUI support" >&6; } ;;
8217 *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5 6783 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5
8218 $as_echo "Sorry, $enable_gui GUI is not supported" >&6; } 6784 $as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
8219 SKIP_PHOTON=YES ;; 6785 SKIP_PHOTON=YES ;;
8220 esac 6786 esac
8221 6787
8222 elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then 6788 elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then
8223 SKIP_CARBON= 6789 SKIP_CARBON=
8224 case "$enable_gui_canon" in 6790 case "$enable_gui_canon" in
8225 no) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5 6791 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5
8226 $as_echo "no GUI support" >&6; } 6792 $as_echo "no GUI support" >&6; }
8227 SKIP_CARBON=YES ;; 6793 SKIP_CARBON=YES ;;
8228 yes|"") { $as_echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5 6794 yes|"") { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5
8229 $as_echo "yes - automatic GUI support" >&6; } ;; 6795 $as_echo "yes - automatic GUI support" >&6; } ;;
8230 auto) { $as_echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5 6796 auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - automatic GUI support" >&5
8231 $as_echo "auto - automatic GUI support" >&6; } ;; 6797 $as_echo "auto - automatic GUI support" >&6; } ;;
8232 carbon) { $as_echo "$as_me:$LINENO: result: Carbon GUI support" >&5 6798 carbon) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Carbon GUI support" >&5
8233 $as_echo "Carbon GUI support" >&6; } ;; 6799 $as_echo "Carbon GUI support" >&6; } ;;
8234 *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5 6800 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5
8235 $as_echo "Sorry, $enable_gui GUI is not supported" >&6; } 6801 $as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
8236 SKIP_CARBON=YES ;; 6802 SKIP_CARBON=YES ;;
8237 esac 6803 esac
8238 6804
8239 else 6805 else
8240 6806
8241 case "$enable_gui_canon" in 6807 case "$enable_gui_canon" in
8242 no|none) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5 6808 no|none) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5
8243 $as_echo "no GUI support" >&6; } ;; 6809 $as_echo "no GUI support" >&6; } ;;
8244 yes|""|auto) { $as_echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5 6810 yes|""|auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes/auto - automatic GUI support" >&5
8245 $as_echo "yes/auto - automatic GUI support" >&6; } 6811 $as_echo "yes/auto - automatic GUI support" >&6; }
8246 SKIP_GTK= 6812 SKIP_GTK=
8247 SKIP_GTK2= 6813 SKIP_GTK2=
8248 SKIP_GNOME= 6814 SKIP_GNOME=
8249 SKIP_MOTIF= 6815 SKIP_MOTIF=
8250 SKIP_ATHENA= 6816 SKIP_ATHENA=
8251 SKIP_NEXTAW= 6817 SKIP_NEXTAW=
8252 SKIP_CARBON=;; 6818 SKIP_CARBON=;;
8253 gtk) { $as_echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5 6819 gtk) { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 1.x GUI support" >&5
8254 $as_echo "GTK+ 1.x GUI support" >&6; } 6820 $as_echo "GTK+ 1.x GUI support" >&6; }
8255 SKIP_GTK=;; 6821 SKIP_GTK=;;
8256 gtk2) { $as_echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5 6822 gtk2) { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2.x GUI support" >&5
8257 $as_echo "GTK+ 2.x GUI support" >&6; } 6823 $as_echo "GTK+ 2.x GUI support" >&6; }
8258 SKIP_GTK= 6824 SKIP_GTK=
8259 SKIP_GTK2=;; 6825 SKIP_GTK2=;;
8260 gnome) { $as_echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5 6826 gnome) { $as_echo "$as_me:${as_lineno-$LINENO}: result: GNOME 1.x GUI support" >&5
8261 $as_echo "GNOME 1.x GUI support" >&6; } 6827 $as_echo "GNOME 1.x GUI support" >&6; }
8262 SKIP_GNOME= 6828 SKIP_GNOME=
8263 SKIP_GTK=;; 6829 SKIP_GTK=;;
8264 gnome2) { $as_echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5 6830 gnome2) { $as_echo "$as_me:${as_lineno-$LINENO}: result: GNOME 2.x GUI support" >&5
8265 $as_echo "GNOME 2.x GUI support" >&6; } 6831 $as_echo "GNOME 2.x GUI support" >&6; }
8266 SKIP_GNOME= 6832 SKIP_GNOME=
8267 SKIP_GTK= 6833 SKIP_GTK=
8268 SKIP_GTK2=;; 6834 SKIP_GTK2=;;
8269 motif) { $as_echo "$as_me:$LINENO: result: Motif GUI support" >&5 6835 motif) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Motif GUI support" >&5
8270 $as_echo "Motif GUI support" >&6; } 6836 $as_echo "Motif GUI support" >&6; }
8271 SKIP_MOTIF=;; 6837 SKIP_MOTIF=;;
8272 athena) { $as_echo "$as_me:$LINENO: result: Athena GUI support" >&5 6838 athena) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Athena GUI support" >&5
8273 $as_echo "Athena GUI support" >&6; } 6839 $as_echo "Athena GUI support" >&6; }
8274 SKIP_ATHENA=;; 6840 SKIP_ATHENA=;;
8275 nextaw) { $as_echo "$as_me:$LINENO: result: neXtaw GUI support" >&5 6841 nextaw) { $as_echo "$as_me:${as_lineno-$LINENO}: result: neXtaw GUI support" >&5
8276 $as_echo "neXtaw GUI support" >&6; } 6842 $as_echo "neXtaw GUI support" >&6; }
8277 SKIP_NEXTAW=;; 6843 SKIP_NEXTAW=;;
8278 *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5 6844 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5
8279 $as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;; 6845 $as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;;
8280 esac 6846 esac
8281 6847
8282 fi 6848 fi
8283 6849
8284 if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then 6850 if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then
8285 { $as_echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5 6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK" >&5
8286 $as_echo_n "checking whether or not to look for GTK... " >&6; } 6852 $as_echo_n "checking whether or not to look for GTK... " >&6; }
8287 # Check whether --enable-gtk-check was given. 6853 # Check whether --enable-gtk-check was given.
8288 if test "${enable_gtk_check+set}" = set; then 6854 if test "${enable_gtk_check+set}" = set; then :
8289 enableval=$enable_gtk_check; 6855 enableval=$enable_gtk_check;
8290 else 6856 else
8291 enable_gtk_check="yes" 6857 enable_gtk_check="yes"
8292 fi 6858 fi
8293 6859
8294 { $as_echo "$as_me:$LINENO: result: $enable_gtk_check" >&5 6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_check" >&5
8295 $as_echo "$enable_gtk_check" >&6; } 6861 $as_echo "$enable_gtk_check" >&6; }
8296 if test "x$enable_gtk_check" = "xno"; then 6862 if test "x$enable_gtk_check" = "xno"; then
8297 SKIP_GTK=YES 6863 SKIP_GTK=YES
8298 SKIP_GNOME=YES 6864 SKIP_GNOME=YES
8299 fi 6865 fi
8300 fi 6866 fi
8301 6867
8302 if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \ 6868 if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
8303 -a "$enable_gui_canon" != "gnome2"; then 6869 -a "$enable_gui_canon" != "gnome2"; then
8304 { $as_echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5 6870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK+ 2" >&5
8305 $as_echo_n "checking whether or not to look for GTK+ 2... " >&6; } 6871 $as_echo_n "checking whether or not to look for GTK+ 2... " >&6; }
8306 # Check whether --enable-gtk2-check was given. 6872 # Check whether --enable-gtk2-check was given.
8307 if test "${enable_gtk2_check+set}" = set; then 6873 if test "${enable_gtk2_check+set}" = set; then :
8308 enableval=$enable_gtk2_check; 6874 enableval=$enable_gtk2_check;
8309 else 6875 else
8310 enable_gtk2_check="yes" 6876 enable_gtk2_check="yes"
8311 fi 6877 fi
8312 6878
8313 { $as_echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5 6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk2_check" >&5
8314 $as_echo "$enable_gtk2_check" >&6; } 6880 $as_echo "$enable_gtk2_check" >&6; }
8315 if test "x$enable_gtk2_check" = "xno"; then 6881 if test "x$enable_gtk2_check" = "xno"; then
8316 SKIP_GTK2=YES 6882 SKIP_GTK2=YES
8317 fi 6883 fi
8318 fi 6884 fi
8319 6885
8320 if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \ 6886 if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \
8321 -a "$enable_gui_canon" != "gnome2"; then 6887 -a "$enable_gui_canon" != "gnome2"; then
8322 { $as_echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5 6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GNOME" >&5
8323 $as_echo_n "checking whether or not to look for GNOME... " >&6; } 6889 $as_echo_n "checking whether or not to look for GNOME... " >&6; }
8324 # Check whether --enable-gnome-check was given. 6890 # Check whether --enable-gnome-check was given.
8325 if test "${enable_gnome_check+set}" = set; then 6891 if test "${enable_gnome_check+set}" = set; then :
8326 enableval=$enable_gnome_check; 6892 enableval=$enable_gnome_check;
8327 else 6893 else
8328 enable_gnome_check="no" 6894 enable_gnome_check="no"
8329 fi 6895 fi
8330 6896
8331 { $as_echo "$as_me:$LINENO: result: $enable_gnome_check" >&5 6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnome_check" >&5
8332 $as_echo "$enable_gnome_check" >&6; } 6898 $as_echo "$enable_gnome_check" >&6; }
8333 if test "x$enable_gnome_check" = "xno"; then 6899 if test "x$enable_gnome_check" = "xno"; then
8334 SKIP_GNOME=YES 6900 SKIP_GNOME=YES
8335 fi 6901 fi
8336 fi 6902 fi
8337 6903
8338 if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then 6904 if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
8339 { $as_echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5 6905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Motif" >&5
8340 $as_echo_n "checking whether or not to look for Motif... " >&6; } 6906 $as_echo_n "checking whether or not to look for Motif... " >&6; }
8341 # Check whether --enable-motif-check was given. 6907 # Check whether --enable-motif-check was given.
8342 if test "${enable_motif_check+set}" = set; then 6908 if test "${enable_motif_check+set}" = set; then :
8343 enableval=$enable_motif_check; 6909 enableval=$enable_motif_check;
8344 else 6910 else
8345 enable_motif_check="yes" 6911 enable_motif_check="yes"
8346 fi 6912 fi
8347 6913
8348 { $as_echo "$as_me:$LINENO: result: $enable_motif_check" >&5 6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_motif_check" >&5
8349 $as_echo "$enable_motif_check" >&6; } 6915 $as_echo "$enable_motif_check" >&6; }
8350 if test "x$enable_motif_check" = "xno"; then 6916 if test "x$enable_motif_check" = "xno"; then
8351 SKIP_MOTIF=YES 6917 SKIP_MOTIF=YES
8352 fi 6918 fi
8353 fi 6919 fi
8354 6920
8355 if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then 6921 if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
8356 { $as_echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5 6922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Athena" >&5
8357 $as_echo_n "checking whether or not to look for Athena... " >&6; } 6923 $as_echo_n "checking whether or not to look for Athena... " >&6; }
8358 # Check whether --enable-athena-check was given. 6924 # Check whether --enable-athena-check was given.
8359 if test "${enable_athena_check+set}" = set; then 6925 if test "${enable_athena_check+set}" = set; then :
8360 enableval=$enable_athena_check; 6926 enableval=$enable_athena_check;
8361 else 6927 else
8362 enable_athena_check="yes" 6928 enable_athena_check="yes"
8363 fi 6929 fi
8364 6930
8365 { $as_echo "$as_me:$LINENO: result: $enable_athena_check" >&5 6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_athena_check" >&5
8366 $as_echo "$enable_athena_check" >&6; } 6932 $as_echo "$enable_athena_check" >&6; }
8367 if test "x$enable_athena_check" = "xno"; then 6933 if test "x$enable_athena_check" = "xno"; then
8368 SKIP_ATHENA=YES 6934 SKIP_ATHENA=YES
8369 fi 6935 fi
8370 fi 6936 fi
8371 6937
8372 if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then 6938 if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
8373 { $as_echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5 6939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for neXtaw" >&5
8374 $as_echo_n "checking whether or not to look for neXtaw... " >&6; } 6940 $as_echo_n "checking whether or not to look for neXtaw... " >&6; }
8375 # Check whether --enable-nextaw-check was given. 6941 # Check whether --enable-nextaw-check was given.
8376 if test "${enable_nextaw_check+set}" = set; then 6942 if test "${enable_nextaw_check+set}" = set; then :
8377 enableval=$enable_nextaw_check; 6943 enableval=$enable_nextaw_check;
8378 else 6944 else
8379 enable_nextaw_check="yes" 6945 enable_nextaw_check="yes"
8380 fi 6946 fi
8381 6947
8382 { $as_echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5 6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nextaw_check" >&5
8383 $as_echo "$enable_nextaw_check" >&6; }; 6949 $as_echo "$enable_nextaw_check" >&6; };
8384 if test "x$enable_nextaw_check" = "xno"; then 6950 if test "x$enable_nextaw_check" = "xno"; then
8385 SKIP_NEXTAW=YES 6951 SKIP_NEXTAW=YES
8386 fi 6952 fi
8387 fi 6953 fi
8388 6954
8389 if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then 6955 if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
8390 { $as_echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5 6956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Carbon" >&5
8391 $as_echo_n "checking whether or not to look for Carbon... " >&6; } 6957 $as_echo_n "checking whether or not to look for Carbon... " >&6; }
8392 # Check whether --enable-carbon-check was given. 6958 # Check whether --enable-carbon-check was given.
8393 if test "${enable_carbon_check+set}" = set; then 6959 if test "${enable_carbon_check+set}" = set; then :
8394 enableval=$enable_carbon_check; 6960 enableval=$enable_carbon_check;
8395 else 6961 else
8396 enable_carbon_check="yes" 6962 enable_carbon_check="yes"
8397 fi 6963 fi
8398 6964
8399 { $as_echo "$as_me:$LINENO: result: $enable_carbon_check" >&5 6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_carbon_check" >&5
8400 $as_echo "$enable_carbon_check" >&6; }; 6966 $as_echo "$enable_carbon_check" >&6; };
8401 if test "x$enable_carbon_check" = "xno"; then 6967 if test "x$enable_carbon_check" = "xno"; then
8402 SKIP_CARBON=YES 6968 SKIP_CARBON=YES
8403 fi 6969 fi
8404 fi 6970 fi
8405 6971
8406 6972
8407 if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then 6973 if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
8408 { $as_echo "$as_me:$LINENO: checking for Carbon GUI" >&5 6974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Carbon GUI" >&5
8409 $as_echo_n "checking for Carbon GUI... " >&6; } 6975 $as_echo_n "checking for Carbon GUI... " >&6; }
8410 { $as_echo "$as_me:$LINENO: result: yes" >&5 6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8411 $as_echo "yes" >&6; }; 6977 $as_echo "yes" >&6; };
8412 GUITYPE=CARBONGUI 6978 GUITYPE=CARBONGUI
8413 if test "$VIMNAME" = "vim"; then 6979 if test "$VIMNAME" = "vim"; then
8414 VIMNAME=Vim 6980 VIMNAME=Vim
8415 fi 6981 fi
8438 7004
8439 7005
8440 7006
8441 if test -z "$SKIP_GTK"; then 7007 if test -z "$SKIP_GTK"; then
8442 7008
8443 { $as_echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5 7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-gtk-prefix argument" >&5
8444 $as_echo_n "checking --with-gtk-prefix argument... " >&6; } 7010 $as_echo_n "checking --with-gtk-prefix argument... " >&6; }
8445 7011
8446 # Check whether --with-gtk-prefix was given. 7012 # Check whether --with-gtk-prefix was given.
8447 if test "${with_gtk_prefix+set}" = set; then 7013 if test "${with_gtk_prefix+set}" = set; then :
8448 withval=$with_gtk_prefix; gtk_config_prefix="$withval"; { $as_echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5 7014 withval=$with_gtk_prefix; gtk_config_prefix="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gtk_config_prefix" >&5
8449 $as_echo "$gtk_config_prefix" >&6; } 7015 $as_echo "$gtk_config_prefix" >&6; }
8450 else 7016 else
8451 gtk_config_prefix=""; { $as_echo "$as_me:$LINENO: result: no" >&5 7017 gtk_config_prefix=""; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8452 $as_echo "no" >&6; } 7018 $as_echo "no" >&6; }
8453 fi 7019 fi
8454 7020
8455 7021
8456 { $as_echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5 7022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-gtk-exec-prefix argument" >&5
8457 $as_echo_n "checking --with-gtk-exec-prefix argument... " >&6; } 7023 $as_echo_n "checking --with-gtk-exec-prefix argument... " >&6; }
8458 7024
8459 # Check whether --with-gtk-exec-prefix was given. 7025 # Check whether --with-gtk-exec-prefix was given.
8460 if test "${with_gtk_exec_prefix+set}" = set; then 7026 if test "${with_gtk_exec_prefix+set}" = set; then :
8461 withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"; { $as_echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5 7027 withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gtk_config_prefix" >&5
8462 $as_echo "$gtk_config_prefix" >&6; } 7028 $as_echo "$gtk_config_prefix" >&6; }
8463 else 7029 else
8464 gtk_config_exec_prefix=""; { $as_echo "$as_me:$LINENO: result: no" >&5 7030 gtk_config_exec_prefix=""; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8465 $as_echo "no" >&6; } 7031 $as_echo "no" >&6; }
8466 fi 7032 fi
8467 7033
8468 7034
8469 { $as_echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5 7035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gtktest argument" >&5
8470 $as_echo_n "checking --disable-gtktest argument... " >&6; } 7036 $as_echo_n "checking --disable-gtktest argument... " >&6; }
8471 # Check whether --enable-gtktest was given. 7037 # Check whether --enable-gtktest was given.
8472 if test "${enable_gtktest+set}" = set; then 7038 if test "${enable_gtktest+set}" = set; then :
8473 enableval=$enable_gtktest; 7039 enableval=$enable_gtktest;
8474 else 7040 else
8475 enable_gtktest=yes 7041 enable_gtktest=yes
8476 fi 7042 fi
8477 7043
8478 if test "x$enable_gtktest" = "xyes" ; then 7044 if test "x$enable_gtktest" = "xyes" ; then
8479 { $as_echo "$as_me:$LINENO: result: gtk test enabled" >&5 7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test enabled" >&5
8480 $as_echo "gtk test enabled" >&6; } 7046 $as_echo "gtk test enabled" >&6; }
8481 else 7047 else
8482 { $as_echo "$as_me:$LINENO: result: gtk test disabled" >&5 7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test disabled" >&5
8483 $as_echo "gtk test disabled" >&6; } 7049 $as_echo "gtk test disabled" >&6; }
8484 fi 7050 fi
8485 7051
8486 if test "x$gtk_config_prefix" != "x" ; then 7052 if test "x$gtk_config_prefix" != "x" ; then
8487 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" 7053 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8492 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config 7058 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
8493 fi 7059 fi
8494 if test "X$GTK_CONFIG" = "X"; then 7060 if test "X$GTK_CONFIG" = "X"; then
8495 # Extract the first word of "gtk-config", so it can be a program name with args. 7061 # Extract the first word of "gtk-config", so it can be a program name with args.
8496 set dummy gtk-config; ac_word=$2 7062 set dummy gtk-config; ac_word=$2
8497 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8498 $as_echo_n "checking for $ac_word... " >&6; } 7064 $as_echo_n "checking for $ac_word... " >&6; }
8499 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then 7065 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then :
8500 $as_echo_n "(cached) " >&6 7066 $as_echo_n "(cached) " >&6
8501 else 7067 else
8502 case $GTK_CONFIG in 7068 case $GTK_CONFIG in
8503 [\\/]* | ?:[\\/]*) 7069 [\\/]* | ?:[\\/]*)
8504 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. 7070 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8508 for as_dir in $PATH 7074 for as_dir in $PATH
8509 do 7075 do
8510 IFS=$as_save_IFS 7076 IFS=$as_save_IFS
8511 test -z "$as_dir" && as_dir=. 7077 test -z "$as_dir" && as_dir=.
8512 for ac_exec_ext in '' $ac_executable_extensions; do 7078 for ac_exec_ext in '' $ac_executable_extensions; do
8513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8514 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" 7080 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8515 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8516 break 2 7082 break 2
8517 fi 7083 fi
8518 done 7084 done
8519 done 7085 done
8520 IFS=$as_save_IFS 7086 IFS=$as_save_IFS
8521 7087
8522 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" 7088 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8523 ;; 7089 ;;
8524 esac 7090 esac
8525 fi 7091 fi
8526 GTK_CONFIG=$ac_cv_path_GTK_CONFIG 7092 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
8527 if test -n "$GTK_CONFIG"; then 7093 if test -n "$GTK_CONFIG"; then
8528 { $as_echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CONFIG" >&5
8529 $as_echo "$GTK_CONFIG" >&6; } 7095 $as_echo "$GTK_CONFIG" >&6; }
8530 else 7096 else
8531 { $as_echo "$as_me:$LINENO: result: no" >&5 7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8532 $as_echo "no" >&6; } 7098 $as_echo "no" >&6; }
8533 fi 7099 fi
8534 7100
8535 7101
8536 if test "X$GTK_CONFIG" = "Xno"; then 7102 if test "X$GTK_CONFIG" = "Xno"; then
8537 # Extract the first word of "gtk12-config", so it can be a program name with args. 7103 # Extract the first word of "gtk12-config", so it can be a program name with args.
8538 set dummy gtk12-config; ac_word=$2 7104 set dummy gtk12-config; ac_word=$2
8539 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8540 $as_echo_n "checking for $ac_word... " >&6; } 7106 $as_echo_n "checking for $ac_word... " >&6; }
8541 if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then 7107 if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then :
8542 $as_echo_n "(cached) " >&6 7108 $as_echo_n "(cached) " >&6
8543 else 7109 else
8544 case $GTK12_CONFIG in 7110 case $GTK12_CONFIG in
8545 [\\/]* | ?:[\\/]*) 7111 [\\/]* | ?:[\\/]*)
8546 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path. 7112 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
8549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8550 for as_dir in $PATH 7116 for as_dir in $PATH
8551 do 7117 do
8552 IFS=$as_save_IFS 7118 IFS=$as_save_IFS
8553 test -z "$as_dir" && as_dir=. 7119 test -z "$as_dir" && as_dir=.
8554 for ac_exec_ext in '' $ac_executable_extensions; do 7120 for ac_exec_ext in '' $ac_executable_extensions; do
8555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8556 ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext" 7122 ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8557 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8558 break 2 7124 break 2
8559 fi 7125 fi
8560 done 7126 done
8561 done 7127 done
8562 IFS=$as_save_IFS 7128 IFS=$as_save_IFS
8563 7129
8564 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no" 7130 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
8565 ;; 7131 ;;
8566 esac 7132 esac
8567 fi 7133 fi
8568 GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG 7134 GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
8569 if test -n "$GTK12_CONFIG"; then 7135 if test -n "$GTK12_CONFIG"; then
8570 { $as_echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5 7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK12_CONFIG" >&5
8571 $as_echo "$GTK12_CONFIG" >&6; } 7137 $as_echo "$GTK12_CONFIG" >&6; }
8572 else 7138 else
8573 { $as_echo "$as_me:$LINENO: result: no" >&5 7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8574 $as_echo "no" >&6; } 7140 $as_echo "no" >&6; }
8575 fi 7141 fi
8576 7142
8577 7143
8578 GTK_CONFIG="$GTK12_CONFIG" 7144 GTK_CONFIG="$GTK12_CONFIG"
8579 fi 7145 fi
8580 else 7146 else
8581 { $as_echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5 7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using GTK configuration program $GTK_CONFIG" >&5
8582 $as_echo "Using GTK configuration program $GTK_CONFIG" >&6; } 7148 $as_echo "Using GTK configuration program $GTK_CONFIG" >&6; }
8583 fi 7149 fi
8584 if test "X$PKG_CONFIG" = "X"; then 7150 if test "X$PKG_CONFIG" = "X"; then
8585 # Extract the first word of "pkg-config", so it can be a program name with args. 7151 # Extract the first word of "pkg-config", so it can be a program name with args.
8586 set dummy pkg-config; ac_word=$2 7152 set dummy pkg-config; ac_word=$2
8587 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8588 $as_echo_n "checking for $ac_word... " >&6; } 7154 $as_echo_n "checking for $ac_word... " >&6; }
8589 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 7155 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8590 $as_echo_n "(cached) " >&6 7156 $as_echo_n "(cached) " >&6
8591 else 7157 else
8592 case $PKG_CONFIG in 7158 case $PKG_CONFIG in
8593 [\\/]* | ?:[\\/]*) 7159 [\\/]* | ?:[\\/]*)
8594 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 7160 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8598 for as_dir in $PATH 7164 for as_dir in $PATH
8599 do 7165 do
8600 IFS=$as_save_IFS 7166 IFS=$as_save_IFS
8601 test -z "$as_dir" && as_dir=. 7167 test -z "$as_dir" && as_dir=.
8602 for ac_exec_ext in '' $ac_executable_extensions; do 7168 for ac_exec_ext in '' $ac_executable_extensions; do
8603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8604 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 7170 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8605 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8606 break 2 7172 break 2
8607 fi 7173 fi
8608 done 7174 done
8609 done 7175 done
8610 IFS=$as_save_IFS 7176 IFS=$as_save_IFS
8611 7177
8612 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 7178 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8613 ;; 7179 ;;
8614 esac 7180 esac
8615 fi 7181 fi
8616 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 7182 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8617 if test -n "$PKG_CONFIG"; then 7183 if test -n "$PKG_CONFIG"; then
8618 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8619 $as_echo "$PKG_CONFIG" >&6; } 7185 $as_echo "$PKG_CONFIG" >&6; }
8620 else 7186 else
8621 { $as_echo "$as_me:$LINENO: result: no" >&5 7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8622 $as_echo "no" >&6; } 7188 $as_echo "no" >&6; }
8623 fi 7189 fi
8624 7190
8625 7191
8626 fi 7192 fi
8629 if test "X$SKIP_GTK2" != "XYES"; then 7195 if test "X$SKIP_GTK2" != "XYES"; then
8630 7196
8631 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then 7197 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8632 { 7198 {
8633 min_gtk_version=2.2.0 7199 min_gtk_version=2.2.0
8634 { $as_echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 7200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
8635 $as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } 7201 $as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
8636 no_gtk="" 7202 no_gtk=""
8637 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ 7203 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8638 && $PKG_CONFIG --exists gtk+-2.0; then 7204 && $PKG_CONFIG --exists gtk+-2.0; then
8639 { 7205 {
8669 ac_save_LIBS="$LIBS" 7235 ac_save_LIBS="$LIBS"
8670 CFLAGS="$CFLAGS $GTK_CFLAGS" 7236 CFLAGS="$CFLAGS $GTK_CFLAGS"
8671 LIBS="$LIBS $GTK_LIBS" 7237 LIBS="$LIBS $GTK_LIBS"
8672 7238
8673 rm -f conf.gtktest 7239 rm -f conf.gtktest
8674 if test "$cross_compiling" = yes; then 7240 if test "$cross_compiling" = yes; then :
8675 echo $ac_n "cross compiling; assumed OK... $ac_c" 7241 echo $ac_n "cross compiling; assumed OK... $ac_c"
8676 else 7242 else
8677 cat >conftest.$ac_ext <<_ACEOF 7243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8678 /* confdefs.h. */
8679 _ACEOF
8680 cat confdefs.h >>conftest.$ac_ext
8681 cat >>conftest.$ac_ext <<_ACEOF
8682 /* end confdefs.h. */ 7244 /* end confdefs.h. */
8683 7245
8684 #include <gtk/gtk.h> 7246 #include <gtk/gtk.h>
8685 #include <stdio.h> 7247 #include <stdio.h>
8686 #if STDC_HEADERS 7248 #if STDC_HEADERS
8712 } 7274 }
8713 return 1; 7275 return 1;
8714 } 7276 }
8715 7277
8716 _ACEOF 7278 _ACEOF
8717 rm -f conftest$ac_exeext 7279 if ac_fn_c_try_run "$LINENO"; then :
8718 if { (ac_try="$ac_link" 7280
8719 case "(($ac_try" in 7281 else
8720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7282 no_gtk=yes
8721 *) ac_try_echo=$ac_try;; 7283 fi
8722 esac 7284 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7285 conftest.$ac_objext conftest.beam conftest.$ac_ext
8724 $as_echo "$ac_try_echo") >&5 7286 fi
8725 (eval "$ac_link") 2>&5
8726 ac_status=$?
8727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8729 { (case "(($ac_try" in
8730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8731 *) ac_try_echo=$ac_try;;
8732 esac
8733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8734 $as_echo "$ac_try_echo") >&5
8735 (eval "$ac_try") 2>&5
8736 ac_status=$?
8737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738 (exit $ac_status); }; }; then
8739 :
8740 else
8741 $as_echo "$as_me: program exited with status $ac_status" >&5
8742 $as_echo "$as_me: failed program was:" >&5
8743 sed 's/^/| /' conftest.$ac_ext >&5
8744
8745 ( exit $ac_status )
8746 no_gtk=yes
8747 fi
8748 rm -rf conftest.dSYM
8749 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8750 fi
8751
8752 7287
8753 CFLAGS="$ac_save_CFLAGS" 7288 CFLAGS="$ac_save_CFLAGS"
8754 LIBS="$ac_save_LIBS" 7289 LIBS="$ac_save_LIBS"
8755 } 7290 }
8756 fi 7291 fi
8757 if test "x$no_gtk" = x ; then 7292 if test "x$no_gtk" = x ; then
8758 if test "x$enable_gtktest" = "xyes"; then 7293 if test "x$enable_gtktest" = "xyes"; then
8759 { $as_echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8760 $as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } 7295 $as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8761 else 7296 else
8762 { $as_echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8763 $as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } 7298 $as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8764 fi 7299 fi
8765 GUI_LIB_LOC="$GTK_LIBDIR" 7300 GUI_LIB_LOC="$GTK_LIBDIR"
8766 GTK_LIBNAME="$GTK_LIBS" 7301 GTK_LIBNAME="$GTK_LIBS"
8767 GUI_INC_LOC="$GTK_CFLAGS" 7302 GUI_INC_LOC="$GTK_CFLAGS"
8768 else 7303 else
8769 { 7304 {
8770 { $as_echo "$as_me:$LINENO: result: no" >&5 7305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8771 $as_echo "no" >&6; } 7306 $as_echo "no" >&6; }
8772 GTK_CFLAGS="" 7307 GTK_CFLAGS=""
8773 GTK_LIBS="" 7308 GTK_LIBS=""
8774 : 7309 :
8775 } 7310 }
8797 SKIP_GTK2=YES 7332 SKIP_GTK2=YES
8798 7333
8799 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then 7334 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8800 { 7335 {
8801 min_gtk_version=1.1.16 7336 min_gtk_version=1.1.16
8802 { $as_echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 7337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
8803 $as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } 7338 $as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
8804 no_gtk="" 7339 no_gtk=""
8805 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ 7340 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8806 && $PKG_CONFIG --exists gtk+-2.0; then 7341 && $PKG_CONFIG --exists gtk+-2.0; then
8807 { 7342 {
8837 ac_save_LIBS="$LIBS" 7372 ac_save_LIBS="$LIBS"
8838 CFLAGS="$CFLAGS $GTK_CFLAGS" 7373 CFLAGS="$CFLAGS $GTK_CFLAGS"
8839 LIBS="$LIBS $GTK_LIBS" 7374 LIBS="$LIBS $GTK_LIBS"
8840 7375
8841 rm -f conf.gtktest 7376 rm -f conf.gtktest
8842 if test "$cross_compiling" = yes; then 7377 if test "$cross_compiling" = yes; then :
8843 echo $ac_n "cross compiling; assumed OK... $ac_c" 7378 echo $ac_n "cross compiling; assumed OK... $ac_c"
8844 else 7379 else
8845 cat >conftest.$ac_ext <<_ACEOF 7380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8846 /* confdefs.h. */
8847 _ACEOF
8848 cat confdefs.h >>conftest.$ac_ext
8849 cat >>conftest.$ac_ext <<_ACEOF
8850 /* end confdefs.h. */ 7381 /* end confdefs.h. */
8851 7382
8852 #include <gtk/gtk.h> 7383 #include <gtk/gtk.h>
8853 #include <stdio.h> 7384 #include <stdio.h>
8854 #if STDC_HEADERS 7385 #if STDC_HEADERS
8880 } 7411 }
8881 return 1; 7412 return 1;
8882 } 7413 }
8883 7414
8884 _ACEOF 7415 _ACEOF
8885 rm -f conftest$ac_exeext 7416 if ac_fn_c_try_run "$LINENO"; then :
8886 if { (ac_try="$ac_link" 7417
8887 case "(($ac_try" in 7418 else
8888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7419 no_gtk=yes
8889 *) ac_try_echo=$ac_try;; 7420 fi
8890 esac 7421 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7422 conftest.$ac_objext conftest.beam conftest.$ac_ext
8892 $as_echo "$ac_try_echo") >&5 7423 fi
8893 (eval "$ac_link") 2>&5
8894 ac_status=$?
8895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8897 { (case "(($ac_try" in
8898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8899 *) ac_try_echo=$ac_try;;
8900 esac
8901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8902 $as_echo "$ac_try_echo") >&5
8903 (eval "$ac_try") 2>&5
8904 ac_status=$?
8905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906 (exit $ac_status); }; }; then
8907 :
8908 else
8909 $as_echo "$as_me: program exited with status $ac_status" >&5
8910 $as_echo "$as_me: failed program was:" >&5
8911 sed 's/^/| /' conftest.$ac_ext >&5
8912
8913 ( exit $ac_status )
8914 no_gtk=yes
8915 fi
8916 rm -rf conftest.dSYM
8917 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8918 fi
8919
8920 7424
8921 CFLAGS="$ac_save_CFLAGS" 7425 CFLAGS="$ac_save_CFLAGS"
8922 LIBS="$ac_save_LIBS" 7426 LIBS="$ac_save_LIBS"
8923 } 7427 }
8924 fi 7428 fi
8925 if test "x$no_gtk" = x ; then 7429 if test "x$no_gtk" = x ; then
8926 if test "x$enable_gtktest" = "xyes"; then 7430 if test "x$enable_gtktest" = "xyes"; then
8927 { $as_echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8928 $as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } 7432 $as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8929 else 7433 else
8930 { $as_echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8931 $as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } 7435 $as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8932 fi 7436 fi
8933 GTK_LIBNAME="$GTK_LIBS" 7437 GTK_LIBNAME="$GTK_LIBS"
8934 GUI_INC_LOC="$GTK_CFLAGS" 7438 GUI_INC_LOC="$GTK_CFLAGS"
8935 else 7439 else
8936 { 7440 {
8937 { $as_echo "$as_me:$LINENO: result: no" >&5 7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8938 $as_echo "no" >&6; } 7442 $as_echo "no" >&6; }
8939 GTK_CFLAGS="" 7443 GTK_CFLAGS=""
8940 GTK_LIBS="" 7444 GTK_LIBS=""
8941 : 7445 :
8942 } 7446 }
8961 fi 7465 fi
8962 fi 7466 fi
8963 if test "x$GUITYPE" = "xGTK"; then 7467 if test "x$GUITYPE" = "xGTK"; then
8964 if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \ 7468 if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \
8965 -o "$gtk_major_version" = 1 -a "$gtk_minor_version" = 2 -a "0$gtk_micro_version" -lt 3; then 7469 -o "$gtk_major_version" = 1 -a "$gtk_minor_version" = 2 -a "0$gtk_micro_version" -lt 3; then
8966 { $as_echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5 7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: this GTK version is old; version 1.2.3 or later is recommended" >&5
8967 $as_echo "this GTK version is old; version 1.2.3 or later is recommended" >&6; } 7471 $as_echo "this GTK version is old; version 1.2.3 or later is recommended" >&6; }
8968 else 7472 else
8969 { 7473 {
8970 if test "0$gtk_major_version" -ge 2; then 7474 if test "0$gtk_major_version" -ge 2; then
8971 cat >>confdefs.h <<\_ACEOF 7475 $as_echo "#define HAVE_GTK2 1" >>confdefs.h
8972 #define HAVE_GTK2 1
8973 _ACEOF
8974 7476
8975 if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \ 7477 if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \
8976 || test "0$gtk_minor_version" -ge 2 \ 7478 || test "0$gtk_minor_version" -ge 2 \
8977 || test "0$gtk_major_version" -gt 2; then 7479 || test "0$gtk_major_version" -gt 2; then
8978 cat >>confdefs.h <<\_ACEOF 7480 $as_echo "#define HAVE_GTK_MULTIHEAD 1" >>confdefs.h
8979 #define HAVE_GTK_MULTIHEAD 1
8980 _ACEOF
8981 7481
8982 fi 7482 fi
8983 fi 7483 fi
8984 if test -z "$SKIP_GNOME"; then 7484 if test -z "$SKIP_GNOME"; then
8985 { 7485 {
8988 7488
8989 7489
8990 7490
8991 7491
8992 # Check whether --with-gnome-includes was given. 7492 # Check whether --with-gnome-includes was given.
8993 if test "${with_gnome_includes+set}" = set; then 7493 if test "${with_gnome_includes+set}" = set; then :
8994 withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval" 7494 withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval"
8995 7495
8996 fi 7496 fi
8997 7497
8998 7498
8999 7499
9000 # Check whether --with-gnome-libs was given. 7500 # Check whether --with-gnome-libs was given.
9001 if test "${with_gnome_libs+set}" = set; then 7501 if test "${with_gnome_libs+set}" = set; then :
9002 withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval 7502 withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
9003 7503
9004 fi 7504 fi
9005 7505
9006 7506
9007 7507
9008 # Check whether --with-gnome was given. 7508 # Check whether --with-gnome was given.
9009 if test "${with_gnome+set}" = set; then 7509 if test "${with_gnome+set}" = set; then :
9010 withval=$with_gnome; if test x$withval = xyes; then 7510 withval=$with_gnome; if test x$withval = xyes; then
9011 want_gnome=yes 7511 want_gnome=yes
9012 have_gnome=yes 7512 have_gnome=yes
9013 else 7513 else
9014 if test "x$withval" = xno; then 7514 if test "x$withval" = xno; then
9025 fi 7525 fi
9026 7526
9027 7527
9028 if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then 7528 if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then
9029 { 7529 {
9030 { $as_echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5 7530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgnomeui-2.0" >&5
9031 $as_echo_n "checking for libgnomeui-2.0... " >&6; } 7531 $as_echo_n "checking for libgnomeui-2.0... " >&6; }
9032 if $PKG_CONFIG --exists libgnomeui-2.0; then 7532 if $PKG_CONFIG --exists libgnomeui-2.0; then
9033 { $as_echo "$as_me:$LINENO: result: yes" >&5 7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9034 $as_echo "yes" >&6; } 7534 $as_echo "yes" >&6; }
9035 GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0` 7535 GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0`
9036 GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0` 7536 GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0`
9037 GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0` 7537 GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0`
9038 7538
9039 { $as_echo "$as_me:$LINENO: checking for FreeBSD" >&5 7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD" >&5
9040 $as_echo_n "checking for FreeBSD... " >&6; } 7540 $as_echo_n "checking for FreeBSD... " >&6; }
9041 if test "`(uname) 2>/dev/null`" = FreeBSD; then 7541 if test "`(uname) 2>/dev/null`" = FreeBSD; then
9042 { $as_echo "$as_me:$LINENO: result: yes" >&5 7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9043 $as_echo "yes" >&6; } 7543 $as_echo "yes" >&6; }
9044 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE" 7544 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE"
9045 GNOME_LIBS="$GNOME_LIBS -pthread" 7545 GNOME_LIBS="$GNOME_LIBS -pthread"
9046 else 7546 else
9047 { $as_echo "$as_me:$LINENO: result: no" >&5 7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9048 $as_echo "no" >&6; } 7548 $as_echo "no" >&6; }
9049 fi 7549 fi
9050 have_gnome=yes 7550 have_gnome=yes
9051 else 7551 else
9052 { $as_echo "$as_me:$LINENO: result: not found" >&5 7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9053 $as_echo "not found" >&6; } 7553 $as_echo "not found" >&6; }
9054 if test "x" = xfail; then 7554 if test "x" = xfail; then
9055 { { $as_echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5 7555 as_fn_error "Could not find libgnomeui-2.0 via pkg-config" "$LINENO" 5
9056 $as_echo "$as_me: error: Could not find libgnomeui-2.0 via pkg-config" >&2;}
9057 { (exit 1); exit 1; }; }
9058 fi 7556 fi
9059 fi 7557 fi
9060 } 7558 }
9061 elif test "x$want_gnome" = xyes; then 7559 elif test "x$want_gnome" = xyes; then
9062 { 7560 {
9063 # Extract the first word of "gnome-config", so it can be a program name with args. 7561 # Extract the first word of "gnome-config", so it can be a program name with args.
9064 set dummy gnome-config; ac_word=$2 7562 set dummy gnome-config; ac_word=$2
9065 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9066 $as_echo_n "checking for $ac_word... " >&6; } 7564 $as_echo_n "checking for $ac_word... " >&6; }
9067 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then 7565 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then :
9068 $as_echo_n "(cached) " >&6 7566 $as_echo_n "(cached) " >&6
9069 else 7567 else
9070 case $GNOME_CONFIG in 7568 case $GNOME_CONFIG in
9071 [\\/]* | ?:[\\/]*) 7569 [\\/]* | ?:[\\/]*)
9072 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path. 7570 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
9075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9076 for as_dir in $PATH 7574 for as_dir in $PATH
9077 do 7575 do
9078 IFS=$as_save_IFS 7576 IFS=$as_save_IFS
9079 test -z "$as_dir" && as_dir=. 7577 test -z "$as_dir" && as_dir=.
9080 for ac_exec_ext in '' $ac_executable_extensions; do 7578 for ac_exec_ext in '' $ac_executable_extensions; do
9081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9082 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext" 7580 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9083 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9084 break 2 7582 break 2
9085 fi 7583 fi
9086 done 7584 done
9087 done 7585 done
9088 IFS=$as_save_IFS 7586 IFS=$as_save_IFS
9089 7587
9090 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no" 7588 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
9091 ;; 7589 ;;
9092 esac 7590 esac
9093 fi 7591 fi
9094 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG 7592 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
9095 if test -n "$GNOME_CONFIG"; then 7593 if test -n "$GNOME_CONFIG"; then
9096 { $as_echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5 7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNOME_CONFIG" >&5
9097 $as_echo "$GNOME_CONFIG" >&6; } 7595 $as_echo "$GNOME_CONFIG" >&6; }
9098 else 7596 else
9099 { $as_echo "$as_me:$LINENO: result: no" >&5 7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9100 $as_echo "no" >&6; } 7598 $as_echo "no" >&6; }
9101 fi 7599 fi
9102 7600
9103 7601
9104 if test "$GNOME_CONFIG" = "no"; then 7602 if test "$GNOME_CONFIG" = "no"; then
9105 no_gnome_config="yes" 7603 no_gnome_config="yes"
9106 else 7604 else
9107 { $as_echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5 7605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $GNOME_CONFIG works" >&5
9108 $as_echo_n "checking if $GNOME_CONFIG works... " >&6; } 7606 $as_echo_n "checking if $GNOME_CONFIG works... " >&6; }
9109 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then 7607 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
9110 { $as_echo "$as_me:$LINENO: result: yes" >&5 7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9111 $as_echo "yes" >&6; } 7609 $as_echo "yes" >&6; }
9112 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui`" 7610 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui`"
9113 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`" 7611 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
9114 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`" 7612 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
9115 have_gnome=yes 7613 have_gnome=yes
9116 else 7614 else
9117 { $as_echo "$as_me:$LINENO: result: no" >&5 7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9118 $as_echo "no" >&6; } 7616 $as_echo "no" >&6; }
9119 no_gnome_config="yes" 7617 no_gnome_config="yes"
9120 fi 7618 fi
9121 fi 7619 fi
9122 7620
9129 else 7627 else
9130 gnome_prefix=`eval echo \`echo $libdir\`` 7628 gnome_prefix=`eval echo \`echo $libdir\``
9131 fi 7629 fi
9132 7630
9133 if test "$no_gnome_config" = "yes"; then 7631 if test "$no_gnome_config" = "yes"; then
9134 { $as_echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5 7632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnomeConf.sh file in $gnome_prefix" >&5
9135 $as_echo_n "checking for gnomeConf.sh file in $gnome_prefix... " >&6; } 7633 $as_echo_n "checking for gnomeConf.sh file in $gnome_prefix... " >&6; }
9136 if test -f $gnome_prefix/gnomeConf.sh; then 7634 if test -f $gnome_prefix/gnomeConf.sh; then
9137 { $as_echo "$as_me:$LINENO: result: found" >&5 7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
9138 $as_echo "found" >&6; } 7636 $as_echo "found" >&6; }
9139 echo "loading gnome configuration from" \ 7637 echo "loading gnome configuration from" \
9140 "$gnome_prefix/gnomeConf.sh" 7638 "$gnome_prefix/gnomeConf.sh"
9141 . $gnome_prefix/gnomeConf.sh 7639 . $gnome_prefix/gnomeConf.sh
9142 have_gnome=yes 7640 have_gnome=yes
9143 else 7641 else
9144 { $as_echo "$as_me:$LINENO: result: not found" >&5 7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9145 $as_echo "not found" >&6; } 7643 $as_echo "not found" >&6; }
9146 if test x = xfail; then 7644 if test x = xfail; then
9147 { { $as_echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5 7645 as_fn_error "Could not find the gnomeConf.sh file that is generated by gnome-libs install" "$LINENO" 5
9148 $as_echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
9149 { (exit 1); exit 1; }; }
9150 fi 7646 fi
9151 fi 7647 fi
9152 fi 7648 fi
9153 } 7649 }
9154 fi 7650 fi
9155 7651
9156 if test x$have_gnome = xyes ; then 7652 if test x$have_gnome = xyes ; then
9157 cat >>confdefs.h <<\_ACEOF 7653 $as_echo "#define FEAT_GUI_GNOME 1" >>confdefs.h
9158 #define FEAT_GUI_GNOME 1
9159 _ACEOF
9160 7654
9161 GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR" 7655 GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
9162 GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS" 7656 GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
9163 fi 7657 fi
9164 } 7658 }
9171 7665
9172 if test -z "$SKIP_MOTIF"; then 7666 if test -z "$SKIP_MOTIF"; then
9173 gui_XXX="/usr/XXX/Motif* /usr/Motif*/XXX /usr/XXX /usr/shlib /usr/X11*/XXX /usr/XXX/X11* /usr/dt/XXX /local/Motif*/XXX /local/XXX/Motif* /usr/local/Motif*/XXX /usr/local/XXX/Motif* /usr/local/XXX /usr/local/X11*/XXX /usr/local/LessTif/Motif*/XXX $MOTIFHOME/XXX" 7667 gui_XXX="/usr/XXX/Motif* /usr/Motif*/XXX /usr/XXX /usr/shlib /usr/X11*/XXX /usr/XXX/X11* /usr/dt/XXX /local/Motif*/XXX /local/XXX/Motif* /usr/local/Motif*/XXX /usr/local/XXX/Motif* /usr/local/XXX /usr/local/X11*/XXX /usr/local/LessTif/Motif*/XXX $MOTIFHOME/XXX"
9174 GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`" 7668 GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`"
9175 7669
9176 { $as_echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5 7670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI includes" >&5
9177 $as_echo_n "checking for location of Motif GUI includes... " >&6; } 7671 $as_echo_n "checking for location of Motif GUI includes... " >&6; }
9178 gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC" 7672 gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC"
9179 GUI_INC_LOC= 7673 GUI_INC_LOC=
9180 for try in $gui_includes; do 7674 for try in $gui_includes; do
9181 if test -f "$try/Xm/Xm.h"; then 7675 if test -f "$try/Xm/Xm.h"; then
9183 fi 7677 fi
9184 done 7678 done
9185 if test -n "$GUI_INC_LOC"; then 7679 if test -n "$GUI_INC_LOC"; then
9186 if test "$GUI_INC_LOC" = /usr/include; then 7680 if test "$GUI_INC_LOC" = /usr/include; then
9187 GUI_INC_LOC= 7681 GUI_INC_LOC=
9188 { $as_echo "$as_me:$LINENO: result: in default path" >&5 7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5
9189 $as_echo "in default path" >&6; } 7683 $as_echo "in default path" >&6; }
9190 else 7684 else
9191 { $as_echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5 7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_INC_LOC" >&5
9192 $as_echo "$GUI_INC_LOC" >&6; } 7686 $as_echo "$GUI_INC_LOC" >&6; }
9193 fi 7687 fi
9194 else 7688 else
9195 { $as_echo "$as_me:$LINENO: result: <not found>" >&5 7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
9196 $as_echo "<not found>" >&6; } 7690 $as_echo "<not found>" >&6; }
9197 SKIP_MOTIF=YES 7691 SKIP_MOTIF=YES
9198 fi 7692 fi
9199 fi 7693 fi
9200 7694
9201 7695
9202 if test -z "$SKIP_MOTIF"; then 7696 if test -z "$SKIP_MOTIF"; then
9203 { $as_echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5 7697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-motif-lib argument" >&5
9204 $as_echo_n "checking --with-motif-lib argument... " >&6; } 7698 $as_echo_n "checking --with-motif-lib argument... " >&6; }
9205 7699
9206 # Check whether --with-motif-lib was given. 7700 # Check whether --with-motif-lib was given.
9207 if test "${with_motif_lib+set}" = set; then 7701 if test "${with_motif_lib+set}" = set; then :
9208 withval=$with_motif_lib; MOTIF_LIBNAME="${withval}" 7702 withval=$with_motif_lib; MOTIF_LIBNAME="${withval}"
9209 fi 7703 fi
9210 7704
9211 7705
9212 if test -n "$MOTIF_LIBNAME"; then 7706 if test -n "$MOTIF_LIBNAME"; then
9213 { $as_echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5 7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOTIF_LIBNAME" >&5
9214 $as_echo "$MOTIF_LIBNAME" >&6; } 7708 $as_echo "$MOTIF_LIBNAME" >&6; }
9215 GUI_LIB_LOC= 7709 GUI_LIB_LOC=
9216 else 7710 else
9217 { $as_echo "$as_me:$LINENO: result: no" >&5 7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9218 $as_echo "no" >&6; } 7712 $as_echo "no" >&6; }
9219 7713
9220 GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`" 7714 GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
9221 7715
9222 { $as_echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5 7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI libs" >&5
9223 $as_echo_n "checking for location of Motif GUI libs... " >&6; } 7717 $as_echo_n "checking for location of Motif GUI libs... " >&6; }
9224 gui_libs="`echo $x_libraries|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/lib/g` `echo "$GUI_INC_LOC" | sed s/include/lib/` $GUI_LIB_LOC" 7718 gui_libs="`echo $x_libraries|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/lib/g` `echo "$GUI_INC_LOC" | sed s/include/lib/` $GUI_LIB_LOC"
9225 GUI_LIB_LOC= 7719 GUI_LIB_LOC=
9226 for try in $gui_libs; do 7720 for try in $gui_libs; do
9227 for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do 7721 for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
9231 done 7725 done
9232 done 7726 done
9233 if test -n "$GUI_LIB_LOC"; then 7727 if test -n "$GUI_LIB_LOC"; then
9234 if test "$GUI_LIB_LOC" = /usr/lib; then 7728 if test "$GUI_LIB_LOC" = /usr/lib; then
9235 GUI_LIB_LOC= 7729 GUI_LIB_LOC=
9236 { $as_echo "$as_me:$LINENO: result: in default path" >&5 7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5
9237 $as_echo "in default path" >&6; } 7731 $as_echo "in default path" >&6; }
9238 else 7732 else
9239 if test -n "$GUI_LIB_LOC"; then 7733 if test -n "$GUI_LIB_LOC"; then
9240 { $as_echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5 7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_LIB_LOC" >&5
9241 $as_echo "$GUI_LIB_LOC" >&6; } 7735 $as_echo "$GUI_LIB_LOC" >&6; }
9242 if test "`(uname) 2>/dev/null`" = SunOS && 7736 if test "`(uname) 2>/dev/null`" = SunOS &&
9243 uname -r | grep '^5' >/dev/null; then 7737 uname -r | grep '^5' >/dev/null; then
9244 GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC" 7738 GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
9245 fi 7739 fi
9246 fi 7740 fi
9247 fi 7741 fi
9248 MOTIF_LIBNAME=-lXm 7742 MOTIF_LIBNAME=-lXm
9249 else 7743 else
9250 { $as_echo "$as_me:$LINENO: result: <not found>" >&5 7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
9251 $as_echo "<not found>" >&6; } 7745 $as_echo "<not found>" >&6; }
9252 SKIP_MOTIF=YES 7746 SKIP_MOTIF=YES
9253 fi 7747 fi
9254 fi 7748 fi
9255 fi 7749 fi
9263 7757
9264 7758
9265 GUI_X_LIBS= 7759 GUI_X_LIBS=
9266 7760
9267 if test -z "$SKIP_ATHENA"; then 7761 if test -z "$SKIP_ATHENA"; then
9268 { $as_echo "$as_me:$LINENO: checking if Athena header files can be found" >&5 7762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Athena header files can be found" >&5
9269 $as_echo_n "checking if Athena header files can be found... " >&6; } 7763 $as_echo_n "checking if Athena header files can be found... " >&6; }
9270 cflags_save=$CFLAGS 7764 cflags_save=$CFLAGS
9271 CFLAGS="$CFLAGS $X_CFLAGS" 7765 CFLAGS="$CFLAGS $X_CFLAGS"
9272 cat >conftest.$ac_ext <<_ACEOF 7766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9273 /* confdefs.h. */
9274 _ACEOF
9275 cat confdefs.h >>conftest.$ac_ext
9276 cat >>conftest.$ac_ext <<_ACEOF
9277 /* end confdefs.h. */ 7767 /* end confdefs.h. */
9278 7768
9279 #include <X11/Intrinsic.h> 7769 #include <X11/Intrinsic.h>
9280 #include <X11/Xaw/Paned.h> 7770 #include <X11/Xaw/Paned.h>
9281 int 7771 int
9284 7774
9285 ; 7775 ;
9286 return 0; 7776 return 0;
9287 } 7777 }
9288 _ACEOF 7778 _ACEOF
9289 rm -f conftest.$ac_objext 7779 if ac_fn_c_try_compile "$LINENO"; then :
9290 if { (ac_try="$ac_compile" 7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9291 case "(($ac_try" in
9292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9293 *) ac_try_echo=$ac_try;;
9294 esac
9295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9296 $as_echo "$ac_try_echo") >&5
9297 (eval "$ac_compile") 2>conftest.er1
9298 ac_status=$?
9299 grep -v '^ *+' conftest.er1 >conftest.err
9300 rm -f conftest.er1
9301 cat conftest.err >&5
9302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303 (exit $ac_status); } && {
9304 test -z "$ac_c_werror_flag" ||
9305 test ! -s conftest.err
9306 } && test -s conftest.$ac_objext; then
9307 { $as_echo "$as_me:$LINENO: result: yes" >&5
9308 $as_echo "yes" >&6; } 7781 $as_echo "yes" >&6; }
9309 else 7782 else
9310 $as_echo "$as_me: failed program was:" >&5 7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9311 sed 's/^/| /' conftest.$ac_ext >&5
9312
9313 { $as_echo "$as_me:$LINENO: result: no" >&5
9314 $as_echo "no" >&6; }; SKIP_ATHENA=YES 7784 $as_echo "no" >&6; }; SKIP_ATHENA=YES
9315 fi 7785 fi
9316
9317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9318 CFLAGS=$cflags_save 7787 CFLAGS=$cflags_save
9319 fi 7788 fi
9320 7789
9321 if test -z "$SKIP_ATHENA"; then 7790 if test -z "$SKIP_ATHENA"; then
9322 GUITYPE=ATHENA 7791 GUITYPE=ATHENA
9323 fi 7792 fi
9324 7793
9325 if test -z "$SKIP_NEXTAW"; then 7794 if test -z "$SKIP_NEXTAW"; then
9326 { $as_echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5 7795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if neXtaw header files can be found" >&5
9327 $as_echo_n "checking if neXtaw header files can be found... " >&6; } 7796 $as_echo_n "checking if neXtaw header files can be found... " >&6; }
9328 cflags_save=$CFLAGS 7797 cflags_save=$CFLAGS
9329 CFLAGS="$CFLAGS $X_CFLAGS" 7798 CFLAGS="$CFLAGS $X_CFLAGS"
9330 cat >conftest.$ac_ext <<_ACEOF 7799 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. */ 7800 /* end confdefs.h. */
9336 7801
9337 #include <X11/Intrinsic.h> 7802 #include <X11/Intrinsic.h>
9338 #include <X11/neXtaw/Paned.h> 7803 #include <X11/neXtaw/Paned.h>
9339 int 7804 int
9342 7807
9343 ; 7808 ;
9344 return 0; 7809 return 0;
9345 } 7810 }
9346 _ACEOF 7811 _ACEOF
9347 rm -f conftest.$ac_objext 7812 if ac_fn_c_try_compile "$LINENO"; then :
9348 if { (ac_try="$ac_compile" 7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9349 case "(($ac_try" in
9350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9351 *) ac_try_echo=$ac_try;;
9352 esac
9353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9354 $as_echo "$ac_try_echo") >&5
9355 (eval "$ac_compile") 2>conftest.er1
9356 ac_status=$?
9357 grep -v '^ *+' conftest.er1 >conftest.err
9358 rm -f conftest.er1
9359 cat conftest.err >&5
9360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361 (exit $ac_status); } && {
9362 test -z "$ac_c_werror_flag" ||
9363 test ! -s conftest.err
9364 } && test -s conftest.$ac_objext; then
9365 { $as_echo "$as_me:$LINENO: result: yes" >&5
9366 $as_echo "yes" >&6; } 7814 $as_echo "yes" >&6; }
9367 else 7815 else
9368 $as_echo "$as_me: failed program was:" >&5 7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9369 sed 's/^/| /' conftest.$ac_ext >&5
9370
9371 { $as_echo "$as_me:$LINENO: result: no" >&5
9372 $as_echo "no" >&6; }; SKIP_NEXTAW=YES 7817 $as_echo "no" >&6; }; SKIP_NEXTAW=YES
9373 fi 7818 fi
9374
9375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9376 CFLAGS=$cflags_save 7820 CFLAGS=$cflags_save
9377 fi 7821 fi
9378 7822
9379 if test -z "$SKIP_NEXTAW"; then 7823 if test -z "$SKIP_NEXTAW"; then
9388 GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`" 7832 GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`"
9389 fi 7833 fi
9390 7834
9391 ldflags_save=$LDFLAGS 7835 ldflags_save=$LDFLAGS
9392 LDFLAGS="$X_LIBS $LDFLAGS" 7836 LDFLAGS="$X_LIBS $LDFLAGS"
9393 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 7837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
9394 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; } 7838 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9395 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then 7839 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
9396 $as_echo_n "(cached) " >&6 7840 $as_echo_n "(cached) " >&6
9397 else 7841 else
9398 ac_check_lib_save_LIBS=$LIBS 7842 ac_check_lib_save_LIBS=$LIBS
9399 LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 7843 LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9400 cat >conftest.$ac_ext <<_ACEOF 7844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9401 /* confdefs.h. */
9402 _ACEOF
9403 cat confdefs.h >>conftest.$ac_ext
9404 cat >>conftest.$ac_ext <<_ACEOF
9405 /* end confdefs.h. */ 7845 /* end confdefs.h. */
9406 7846
9407 /* Override any GCC internal prototype to avoid an error. 7847 /* Override any GCC internal prototype to avoid an error.
9408 Use char because int might match the return type of a GCC 7848 Use char because int might match the return type of a GCC
9409 builtin and then its argument prototype would still apply. */ 7849 builtin and then its argument prototype would still apply. */
9417 return XShapeQueryExtension (); 7857 return XShapeQueryExtension ();
9418 ; 7858 ;
9419 return 0; 7859 return 0;
9420 } 7860 }
9421 _ACEOF 7861 _ACEOF
9422 rm -f conftest.$ac_objext conftest$ac_exeext 7862 if ac_fn_c_try_link "$LINENO"; then :
9423 if { (ac_try="$ac_link"
9424 case "(($ac_try" in
9425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9426 *) ac_try_echo=$ac_try;;
9427 esac
9428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9429 $as_echo "$ac_try_echo") >&5
9430 (eval "$ac_link") 2>conftest.er1
9431 ac_status=$?
9432 grep -v '^ *+' conftest.er1 >conftest.err
9433 rm -f conftest.er1
9434 cat conftest.err >&5
9435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436 (exit $ac_status); } && {
9437 test -z "$ac_c_werror_flag" ||
9438 test ! -s conftest.err
9439 } && test -s conftest$ac_exeext && {
9440 test "$cross_compiling" = yes ||
9441 $as_test_x conftest$ac_exeext
9442 }; then
9443 ac_cv_lib_Xext_XShapeQueryExtension=yes 7863 ac_cv_lib_Xext_XShapeQueryExtension=yes
9444 else 7864 else
9445 $as_echo "$as_me: failed program was:" >&5 7865 ac_cv_lib_Xext_XShapeQueryExtension=no
9446 sed 's/^/| /' conftest.$ac_ext >&5 7866 fi
9447 7867 rm -f core conftest.err conftest.$ac_objext \
9448 ac_cv_lib_Xext_XShapeQueryExtension=no 7868 conftest$ac_exeext conftest.$ac_ext
9449 fi
9450
9451 rm -rf conftest.dSYM
9452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9453 conftest$ac_exeext conftest.$ac_ext
9454 LIBS=$ac_check_lib_save_LIBS 7869 LIBS=$ac_check_lib_save_LIBS
9455 fi 7870 fi
9456 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9457 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; } 7872 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9458 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then 7873 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
9459 GUI_X_LIBS="-lXext" 7874 GUI_X_LIBS="-lXext"
9460 fi 7875 fi
9461 7876
9462 { $as_echo "$as_me:$LINENO: checking for wslen in -lw" >&5 7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wslen in -lw" >&5
9463 $as_echo_n "checking for wslen in -lw... " >&6; } 7878 $as_echo_n "checking for wslen in -lw... " >&6; }
9464 if test "${ac_cv_lib_w_wslen+set}" = set; then 7879 if test "${ac_cv_lib_w_wslen+set}" = set; then :
9465 $as_echo_n "(cached) " >&6 7880 $as_echo_n "(cached) " >&6
9466 else 7881 else
9467 ac_check_lib_save_LIBS=$LIBS 7882 ac_check_lib_save_LIBS=$LIBS
9468 LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 7883 LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9469 cat >conftest.$ac_ext <<_ACEOF 7884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9470 /* confdefs.h. */
9471 _ACEOF
9472 cat confdefs.h >>conftest.$ac_ext
9473 cat >>conftest.$ac_ext <<_ACEOF
9474 /* end confdefs.h. */ 7885 /* end confdefs.h. */
9475 7886
9476 /* Override any GCC internal prototype to avoid an error. 7887 /* Override any GCC internal prototype to avoid an error.
9477 Use char because int might match the return type of a GCC 7888 Use char because int might match the return type of a GCC
9478 builtin and then its argument prototype would still apply. */ 7889 builtin and then its argument prototype would still apply. */
9486 return wslen (); 7897 return wslen ();
9487 ; 7898 ;
9488 return 0; 7899 return 0;
9489 } 7900 }
9490 _ACEOF 7901 _ACEOF
9491 rm -f conftest.$ac_objext conftest$ac_exeext 7902 if ac_fn_c_try_link "$LINENO"; then :
9492 if { (ac_try="$ac_link"
9493 case "(($ac_try" in
9494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9495 *) ac_try_echo=$ac_try;;
9496 esac
9497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9498 $as_echo "$ac_try_echo") >&5
9499 (eval "$ac_link") 2>conftest.er1
9500 ac_status=$?
9501 grep -v '^ *+' conftest.er1 >conftest.err
9502 rm -f conftest.er1
9503 cat conftest.err >&5
9504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); } && {
9506 test -z "$ac_c_werror_flag" ||
9507 test ! -s conftest.err
9508 } && test -s conftest$ac_exeext && {
9509 test "$cross_compiling" = yes ||
9510 $as_test_x conftest$ac_exeext
9511 }; then
9512 ac_cv_lib_w_wslen=yes 7903 ac_cv_lib_w_wslen=yes
9513 else 7904 else
9514 $as_echo "$as_me: failed program was:" >&5 7905 ac_cv_lib_w_wslen=no
9515 sed 's/^/| /' conftest.$ac_ext >&5 7906 fi
9516 7907 rm -f core conftest.err conftest.$ac_objext \
9517 ac_cv_lib_w_wslen=no 7908 conftest$ac_exeext conftest.$ac_ext
9518 fi
9519
9520 rm -rf conftest.dSYM
9521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9522 conftest$ac_exeext conftest.$ac_ext
9523 LIBS=$ac_check_lib_save_LIBS 7909 LIBS=$ac_check_lib_save_LIBS
9524 fi 7910 fi
9525 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5 7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wslen" >&5
9526 $as_echo "$ac_cv_lib_w_wslen" >&6; } 7912 $as_echo "$ac_cv_lib_w_wslen" >&6; }
9527 if test "x$ac_cv_lib_w_wslen" = x""yes; then 7913 if test "x$ac_cv_lib_w_wslen" = x""yes; then :
9528 X_EXTRA_LIBS="$X_EXTRA_LIBS -lw" 7914 X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
9529 fi 7915 fi
9530 7916
9531 { $as_echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5 7917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
9532 $as_echo_n "checking for dlsym in -ldl... " >&6; } 7918 $as_echo_n "checking for dlsym in -ldl... " >&6; }
9533 if test "${ac_cv_lib_dl_dlsym+set}" = set; then 7919 if test "${ac_cv_lib_dl_dlsym+set}" = set; then :
9534 $as_echo_n "(cached) " >&6 7920 $as_echo_n "(cached) " >&6
9535 else 7921 else
9536 ac_check_lib_save_LIBS=$LIBS 7922 ac_check_lib_save_LIBS=$LIBS
9537 LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 7923 LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9538 cat >conftest.$ac_ext <<_ACEOF 7924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9539 /* confdefs.h. */
9540 _ACEOF
9541 cat confdefs.h >>conftest.$ac_ext
9542 cat >>conftest.$ac_ext <<_ACEOF
9543 /* end confdefs.h. */ 7925 /* end confdefs.h. */
9544 7926
9545 /* Override any GCC internal prototype to avoid an error. 7927 /* Override any GCC internal prototype to avoid an error.
9546 Use char because int might match the return type of a GCC 7928 Use char because int might match the return type of a GCC
9547 builtin and then its argument prototype would still apply. */ 7929 builtin and then its argument prototype would still apply. */
9555 return dlsym (); 7937 return dlsym ();
9556 ; 7938 ;
9557 return 0; 7939 return 0;
9558 } 7940 }
9559 _ACEOF 7941 _ACEOF
9560 rm -f conftest.$ac_objext conftest$ac_exeext 7942 if ac_fn_c_try_link "$LINENO"; then :
9561 if { (ac_try="$ac_link"
9562 case "(($ac_try" in
9563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9564 *) ac_try_echo=$ac_try;;
9565 esac
9566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9567 $as_echo "$ac_try_echo") >&5
9568 (eval "$ac_link") 2>conftest.er1
9569 ac_status=$?
9570 grep -v '^ *+' conftest.er1 >conftest.err
9571 rm -f conftest.er1
9572 cat conftest.err >&5
9573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574 (exit $ac_status); } && {
9575 test -z "$ac_c_werror_flag" ||
9576 test ! -s conftest.err
9577 } && test -s conftest$ac_exeext && {
9578 test "$cross_compiling" = yes ||
9579 $as_test_x conftest$ac_exeext
9580 }; then
9581 ac_cv_lib_dl_dlsym=yes 7943 ac_cv_lib_dl_dlsym=yes
9582 else 7944 else
9583 $as_echo "$as_me: failed program was:" >&5 7945 ac_cv_lib_dl_dlsym=no
9584 sed 's/^/| /' conftest.$ac_ext >&5 7946 fi
9585 7947 rm -f core conftest.err conftest.$ac_objext \
9586 ac_cv_lib_dl_dlsym=no 7948 conftest$ac_exeext conftest.$ac_ext
9587 fi
9588
9589 rm -rf conftest.dSYM
9590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9591 conftest$ac_exeext conftest.$ac_ext
9592 LIBS=$ac_check_lib_save_LIBS 7949 LIBS=$ac_check_lib_save_LIBS
9593 fi 7950 fi
9594 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5 7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
9595 $as_echo "$ac_cv_lib_dl_dlsym" >&6; } 7952 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
9596 if test "x$ac_cv_lib_dl_dlsym" = x""yes; then 7953 if test "x$ac_cv_lib_dl_dlsym" = x""yes; then :
9597 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl" 7954 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl"
9598 fi 7955 fi
9599 7956
9600 { $as_echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5 7957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuCreateStippledPixmap in -lXmu" >&5
9601 $as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; } 7958 $as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; }
9602 if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then 7959 if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then :
9603 $as_echo_n "(cached) " >&6 7960 $as_echo_n "(cached) " >&6
9604 else 7961 else
9605 ac_check_lib_save_LIBS=$LIBS 7962 ac_check_lib_save_LIBS=$LIBS
9606 LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 7963 LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9607 cat >conftest.$ac_ext <<_ACEOF 7964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9608 /* confdefs.h. */
9609 _ACEOF
9610 cat confdefs.h >>conftest.$ac_ext
9611 cat >>conftest.$ac_ext <<_ACEOF
9612 /* end confdefs.h. */ 7965 /* end confdefs.h. */
9613 7966
9614 /* Override any GCC internal prototype to avoid an error. 7967 /* Override any GCC internal prototype to avoid an error.
9615 Use char because int might match the return type of a GCC 7968 Use char because int might match the return type of a GCC
9616 builtin and then its argument prototype would still apply. */ 7969 builtin and then its argument prototype would still apply. */
9624 return XmuCreateStippledPixmap (); 7977 return XmuCreateStippledPixmap ();
9625 ; 7978 ;
9626 return 0; 7979 return 0;
9627 } 7980 }
9628 _ACEOF 7981 _ACEOF
9629 rm -f conftest.$ac_objext conftest$ac_exeext 7982 if ac_fn_c_try_link "$LINENO"; then :
9630 if { (ac_try="$ac_link"
9631 case "(($ac_try" in
9632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9633 *) ac_try_echo=$ac_try;;
9634 esac
9635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9636 $as_echo "$ac_try_echo") >&5
9637 (eval "$ac_link") 2>conftest.er1
9638 ac_status=$?
9639 grep -v '^ *+' conftest.er1 >conftest.err
9640 rm -f conftest.er1
9641 cat conftest.err >&5
9642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643 (exit $ac_status); } && {
9644 test -z "$ac_c_werror_flag" ||
9645 test ! -s conftest.err
9646 } && test -s conftest$ac_exeext && {
9647 test "$cross_compiling" = yes ||
9648 $as_test_x conftest$ac_exeext
9649 }; then
9650 ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes 7983 ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
9651 else 7984 else
9652 $as_echo "$as_me: failed program was:" >&5 7985 ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
9653 sed 's/^/| /' conftest.$ac_ext >&5 7986 fi
9654 7987 rm -f core conftest.err conftest.$ac_objext \
9655 ac_cv_lib_Xmu_XmuCreateStippledPixmap=no 7988 conftest$ac_exeext conftest.$ac_ext
9656 fi
9657
9658 rm -rf conftest.dSYM
9659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9660 conftest$ac_exeext conftest.$ac_ext
9661 LIBS=$ac_check_lib_save_LIBS 7989 LIBS=$ac_check_lib_save_LIBS
9662 fi 7990 fi
9663 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5 7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
9664 $as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; } 7992 $as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; }
9665 if test "x$ac_cv_lib_Xmu_XmuCreateStippledPixmap" = x""yes; then 7993 if test "x$ac_cv_lib_Xmu_XmuCreateStippledPixmap" = x""yes; then :
9666 GUI_X_LIBS="-lXmu $GUI_X_LIBS" 7994 GUI_X_LIBS="-lXmu $GUI_X_LIBS"
9667 fi 7995 fi
9668 7996
9669 if test -z "$SKIP_MOTIF"; then 7997 if test -z "$SKIP_MOTIF"; then
9670 { $as_echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5 7998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpEndJob in -lXp" >&5
9671 $as_echo_n "checking for XpEndJob in -lXp... " >&6; } 7999 $as_echo_n "checking for XpEndJob in -lXp... " >&6; }
9672 if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then 8000 if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then :
9673 $as_echo_n "(cached) " >&6 8001 $as_echo_n "(cached) " >&6
9674 else 8002 else
9675 ac_check_lib_save_LIBS=$LIBS 8003 ac_check_lib_save_LIBS=$LIBS
9676 LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 8004 LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9677 cat >conftest.$ac_ext <<_ACEOF 8005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9678 /* confdefs.h. */
9679 _ACEOF
9680 cat confdefs.h >>conftest.$ac_ext
9681 cat >>conftest.$ac_ext <<_ACEOF
9682 /* end confdefs.h. */ 8006 /* end confdefs.h. */
9683 8007
9684 /* Override any GCC internal prototype to avoid an error. 8008 /* Override any GCC internal prototype to avoid an error.
9685 Use char because int might match the return type of a GCC 8009 Use char because int might match the return type of a GCC
9686 builtin and then its argument prototype would still apply. */ 8010 builtin and then its argument prototype would still apply. */
9694 return XpEndJob (); 8018 return XpEndJob ();
9695 ; 8019 ;
9696 return 0; 8020 return 0;
9697 } 8021 }
9698 _ACEOF 8022 _ACEOF
9699 rm -f conftest.$ac_objext conftest$ac_exeext 8023 if ac_fn_c_try_link "$LINENO"; then :
9700 if { (ac_try="$ac_link"
9701 case "(($ac_try" in
9702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9703 *) ac_try_echo=$ac_try;;
9704 esac
9705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9706 $as_echo "$ac_try_echo") >&5
9707 (eval "$ac_link") 2>conftest.er1
9708 ac_status=$?
9709 grep -v '^ *+' conftest.er1 >conftest.err
9710 rm -f conftest.er1
9711 cat conftest.err >&5
9712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); } && {
9714 test -z "$ac_c_werror_flag" ||
9715 test ! -s conftest.err
9716 } && test -s conftest$ac_exeext && {
9717 test "$cross_compiling" = yes ||
9718 $as_test_x conftest$ac_exeext
9719 }; then
9720 ac_cv_lib_Xp_XpEndJob=yes 8024 ac_cv_lib_Xp_XpEndJob=yes
9721 else 8025 else
9722 $as_echo "$as_me: failed program was:" >&5 8026 ac_cv_lib_Xp_XpEndJob=no
9723 sed 's/^/| /' conftest.$ac_ext >&5 8027 fi
9724 8028 rm -f core conftest.err conftest.$ac_objext \
9725 ac_cv_lib_Xp_XpEndJob=no 8029 conftest$ac_exeext conftest.$ac_ext
9726 fi
9727
9728 rm -rf conftest.dSYM
9729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9730 conftest$ac_exeext conftest.$ac_ext
9731 LIBS=$ac_check_lib_save_LIBS 8030 LIBS=$ac_check_lib_save_LIBS
9732 fi 8031 fi
9733 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5 8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpEndJob" >&5
9734 $as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; } 8033 $as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; }
9735 if test "x$ac_cv_lib_Xp_XpEndJob" = x""yes; then 8034 if test "x$ac_cv_lib_Xp_XpEndJob" = x""yes; then :
9736 GUI_X_LIBS="-lXp $GUI_X_LIBS" 8035 GUI_X_LIBS="-lXp $GUI_X_LIBS"
9737 fi 8036 fi
9738 8037
9739 fi 8038 fi
9740 LDFLAGS=$ldflags_save 8039 LDFLAGS=$ldflags_save
9741 8040
9742 { $as_echo "$as_me:$LINENO: checking for extra X11 defines" >&5 8041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra X11 defines" >&5
9743 $as_echo_n "checking for extra X11 defines... " >&6; } 8042 $as_echo_n "checking for extra X11 defines... " >&6; }
9744 NARROW_PROTO= 8043 NARROW_PROTO=
9745 rm -fr conftestdir 8044 rm -fr conftestdir
9746 if mkdir conftestdir; then 8045 if mkdir conftestdir; then
9747 cd conftestdir 8046 cd conftestdir
9754 fi 8053 fi
9755 cd .. 8054 cd ..
9756 rm -fr conftestdir 8055 rm -fr conftestdir
9757 fi 8056 fi
9758 if test -z "$NARROW_PROTO"; then 8057 if test -z "$NARROW_PROTO"; then
9759 { $as_echo "$as_me:$LINENO: result: no" >&5 8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9760 $as_echo "no" >&6; } 8059 $as_echo "no" >&6; }
9761 else 8060 else
9762 { $as_echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5 8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NARROW_PROTO" >&5
9763 $as_echo "$NARROW_PROTO" >&6; } 8062 $as_echo "$NARROW_PROTO" >&6; }
9764 fi 8063 fi
9765 8064
9766 fi 8065 fi
9767 8066
9768 if test "$enable_xsmp" = "yes"; then 8067 if test "$enable_xsmp" = "yes"; then
9769 cppflags_save=$CPPFLAGS 8068 cppflags_save=$CPPFLAGS
9770 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 8069 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9771 8070 for ac_header in X11/SM/SMlib.h
9772 for ac_header in X11/SM/SMlib.h 8071 do :
9773 do 8072 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
9774 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8073 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
9775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9776 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9777 $as_echo_n "checking for $ac_header... " >&6; }
9778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9779 $as_echo_n "(cached) " >&6
9780 fi
9781 ac_res=`eval 'as_val=${'$as_ac_Header'}
9782 $as_echo "$as_val"'`
9783 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9784 $as_echo "$ac_res" >&6; }
9785 else
9786 # Is the header compilable?
9787 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9788 $as_echo_n "checking $ac_header usability... " >&6; }
9789 cat >conftest.$ac_ext <<_ACEOF
9790 /* confdefs.h. */
9791 _ACEOF
9792 cat confdefs.h >>conftest.$ac_ext
9793 cat >>conftest.$ac_ext <<_ACEOF
9794 /* end confdefs.h. */
9795 $ac_includes_default
9796 #include <$ac_header>
9797 _ACEOF
9798 rm -f conftest.$ac_objext
9799 if { (ac_try="$ac_compile"
9800 case "(($ac_try" in
9801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9802 *) ac_try_echo=$ac_try;;
9803 esac
9804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9805 $as_echo "$ac_try_echo") >&5
9806 (eval "$ac_compile") 2>conftest.er1
9807 ac_status=$?
9808 grep -v '^ *+' conftest.er1 >conftest.err
9809 rm -f conftest.er1
9810 cat conftest.err >&5
9811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812 (exit $ac_status); } && {
9813 test -z "$ac_c_werror_flag" ||
9814 test ! -s conftest.err
9815 } && test -s conftest.$ac_objext; then
9816 ac_header_compiler=yes
9817 else
9818 $as_echo "$as_me: failed program was:" >&5
9819 sed 's/^/| /' conftest.$ac_ext >&5
9820
9821 ac_header_compiler=no
9822 fi
9823
9824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9825 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9826 $as_echo "$ac_header_compiler" >&6; }
9827
9828 # Is the header present?
9829 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9830 $as_echo_n "checking $ac_header presence... " >&6; }
9831 cat >conftest.$ac_ext <<_ACEOF
9832 /* confdefs.h. */
9833 _ACEOF
9834 cat confdefs.h >>conftest.$ac_ext
9835 cat >>conftest.$ac_ext <<_ACEOF
9836 /* end confdefs.h. */
9837 #include <$ac_header>
9838 _ACEOF
9839 if { (ac_try="$ac_cpp conftest.$ac_ext"
9840 case "(($ac_try" in
9841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9842 *) ac_try_echo=$ac_try;;
9843 esac
9844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9845 $as_echo "$ac_try_echo") >&5
9846 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9847 ac_status=$?
9848 grep -v '^ *+' conftest.er1 >conftest.err
9849 rm -f conftest.er1
9850 cat conftest.err >&5
9851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); } >/dev/null && {
9853 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9854 test ! -s conftest.err
9855 }; then
9856 ac_header_preproc=yes
9857 else
9858 $as_echo "$as_me: failed program was:" >&5
9859 sed 's/^/| /' conftest.$ac_ext >&5
9860
9861 ac_header_preproc=no
9862 fi
9863
9864 rm -f conftest.err conftest.$ac_ext
9865 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9866 $as_echo "$ac_header_preproc" >&6; }
9867
9868 # So? What about this header?
9869 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9870 yes:no: )
9871 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9872 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9873 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9874 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9875 ac_header_preproc=yes
9876 ;;
9877 no:yes:* )
9878 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9879 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9880 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9881 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9882 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9883 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9884 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9885 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9886 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9887 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9888 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9889 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9890
9891 ;;
9892 esac
9893 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9894 $as_echo_n "checking for $ac_header... " >&6; }
9895 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9896 $as_echo_n "(cached) " >&6
9897 else
9898 eval "$as_ac_Header=\$ac_header_preproc"
9899 fi
9900 ac_res=`eval 'as_val=${'$as_ac_Header'}
9901 $as_echo "$as_val"'`
9902 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9903 $as_echo "$ac_res" >&6; }
9904
9905 fi
9906 as_val=`eval 'as_val=${'$as_ac_Header'}
9907 $as_echo "$as_val"'`
9908 if test "x$as_val" = x""yes; then
9909 cat >>confdefs.h <<_ACEOF 8074 cat >>confdefs.h <<_ACEOF
9910 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8075 #define HAVE_X11_SM_SMLIB_H 1
9911 _ACEOF 8076 _ACEOF
9912 8077
9913 fi 8078 fi
9914 8079
9915 done 8080 done
9919 8084
9920 8085
9921 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then 8086 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then
9922 cppflags_save=$CPPFLAGS 8087 cppflags_save=$CPPFLAGS
9923 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 8088 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9924 8089 for ac_header in X11/xpm.h X11/Sunkeysym.h
9925 8090 do :
9926 for ac_header in X11/xpm.h X11/Sunkeysym.h 8091 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9927 do 8092 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9928 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8093 eval as_val=\$$as_ac_Header
9929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8094 if test "x$as_val" = x""yes; then :
9930 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9931 $as_echo_n "checking for $ac_header... " >&6; }
9932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9933 $as_echo_n "(cached) " >&6
9934 fi
9935 ac_res=`eval 'as_val=${'$as_ac_Header'}
9936 $as_echo "$as_val"'`
9937 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9938 $as_echo "$ac_res" >&6; }
9939 else
9940 # Is the header compilable?
9941 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9942 $as_echo_n "checking $ac_header usability... " >&6; }
9943 cat >conftest.$ac_ext <<_ACEOF
9944 /* confdefs.h. */
9945 _ACEOF
9946 cat confdefs.h >>conftest.$ac_ext
9947 cat >>conftest.$ac_ext <<_ACEOF
9948 /* end confdefs.h. */
9949 $ac_includes_default
9950 #include <$ac_header>
9951 _ACEOF
9952 rm -f conftest.$ac_objext
9953 if { (ac_try="$ac_compile"
9954 case "(($ac_try" in
9955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9956 *) ac_try_echo=$ac_try;;
9957 esac
9958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9959 $as_echo "$ac_try_echo") >&5
9960 (eval "$ac_compile") 2>conftest.er1
9961 ac_status=$?
9962 grep -v '^ *+' conftest.er1 >conftest.err
9963 rm -f conftest.er1
9964 cat conftest.err >&5
9965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966 (exit $ac_status); } && {
9967 test -z "$ac_c_werror_flag" ||
9968 test ! -s conftest.err
9969 } && test -s conftest.$ac_objext; then
9970 ac_header_compiler=yes
9971 else
9972 $as_echo "$as_me: failed program was:" >&5
9973 sed 's/^/| /' conftest.$ac_ext >&5
9974
9975 ac_header_compiler=no
9976 fi
9977
9978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9979 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9980 $as_echo "$ac_header_compiler" >&6; }
9981
9982 # Is the header present?
9983 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9984 $as_echo_n "checking $ac_header presence... " >&6; }
9985 cat >conftest.$ac_ext <<_ACEOF
9986 /* confdefs.h. */
9987 _ACEOF
9988 cat confdefs.h >>conftest.$ac_ext
9989 cat >>conftest.$ac_ext <<_ACEOF
9990 /* end confdefs.h. */
9991 #include <$ac_header>
9992 _ACEOF
9993 if { (ac_try="$ac_cpp conftest.$ac_ext"
9994 case "(($ac_try" in
9995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9996 *) ac_try_echo=$ac_try;;
9997 esac
9998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9999 $as_echo "$ac_try_echo") >&5
10000 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10001 ac_status=$?
10002 grep -v '^ *+' conftest.er1 >conftest.err
10003 rm -f conftest.er1
10004 cat conftest.err >&5
10005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); } >/dev/null && {
10007 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10008 test ! -s conftest.err
10009 }; then
10010 ac_header_preproc=yes
10011 else
10012 $as_echo "$as_me: failed program was:" >&5
10013 sed 's/^/| /' conftest.$ac_ext >&5
10014
10015 ac_header_preproc=no
10016 fi
10017
10018 rm -f conftest.err conftest.$ac_ext
10019 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10020 $as_echo "$ac_header_preproc" >&6; }
10021
10022 # So? What about this header?
10023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10024 yes:no: )
10025 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10026 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10027 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10028 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10029 ac_header_preproc=yes
10030 ;;
10031 no:yes:* )
10032 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10033 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10034 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10035 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10036 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10037 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10038 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10039 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10040 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10041 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10042 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10043 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10044
10045 ;;
10046 esac
10047 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10048 $as_echo_n "checking for $ac_header... " >&6; }
10049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10050 $as_echo_n "(cached) " >&6
10051 else
10052 eval "$as_ac_Header=\$ac_header_preproc"
10053 fi
10054 ac_res=`eval 'as_val=${'$as_ac_Header'}
10055 $as_echo "$as_val"'`
10056 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10057 $as_echo "$ac_res" >&6; }
10058
10059 fi
10060 as_val=`eval 'as_val=${'$as_ac_Header'}
10061 $as_echo "$as_val"'`
10062 if test "x$as_val" = x""yes; then
10063 cat >>confdefs.h <<_ACEOF 8095 cat >>confdefs.h <<_ACEOF
10064 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8096 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10065 _ACEOF 8097 _ACEOF
10066 8098
10067 fi 8099 fi
10068 8100
10069 done 8101 done
10070 8102
10071 8103
10072 if test ! "$enable_xim" = "no"; then 8104 if test ! "$enable_xim" = "no"; then
10073 { $as_echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5 8105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XIMText in X11/Xlib.h" >&5
10074 $as_echo_n "checking for XIMText in X11/Xlib.h... " >&6; } 8106 $as_echo_n "checking for XIMText in X11/Xlib.h... " >&6; }
10075 cat >conftest.$ac_ext <<_ACEOF 8107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10076 /* confdefs.h. */
10077 _ACEOF
10078 cat confdefs.h >>conftest.$ac_ext
10079 cat >>conftest.$ac_ext <<_ACEOF
10080 /* end confdefs.h. */ 8108 /* end confdefs.h. */
10081 #include <X11/Xlib.h> 8109 #include <X11/Xlib.h>
10082 _ACEOF 8110 _ACEOF
10083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10084 $EGREP "XIMText" >/dev/null 2>&1; then 8112 $EGREP "XIMText" >/dev/null 2>&1; then :
10085 { $as_echo "$as_me:$LINENO: result: yes" >&5 8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10086 $as_echo "yes" >&6; } 8114 $as_echo "yes" >&6; }
10087 else 8115 else
10088 { $as_echo "$as_me:$LINENO: result: no; xim has been disabled" >&5 8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; xim has been disabled" >&5
10089 $as_echo "no; xim has been disabled" >&6; }; enable_xim = "no" 8117 $as_echo "no; xim has been disabled" >&6; }; enable_xim = "no"
10090 fi 8118 fi
10091 rm -f conftest* 8119 rm -f conftest*
10092 8120
10093 fi 8121 fi
10094 CPPFLAGS=$cppflags_save 8122 CPPFLAGS=$cppflags_save
10095 8123
10096 if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \ 8124 if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
10097 -a "x$GUITYPE" != "xNONE" ; then 8125 -a "x$GUITYPE" != "xNONE" ; then
10098 { $as_echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5 8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: X GUI selected; xim has been enabled" >&5
10099 $as_echo "X GUI selected; xim has been enabled" >&6; } 8127 $as_echo "X GUI selected; xim has been enabled" >&6; }
10100 enable_xim="yes" 8128 enable_xim="yes"
10101 fi 8129 fi
10102 fi 8130 fi
10103 8131
10104 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then 8132 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
10105 cppflags_save=$CPPFLAGS 8133 cppflags_save=$CPPFLAGS
10106 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 8134 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10107 { $as_echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5 8135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/Xmu/Editres.h" >&5
10108 $as_echo_n "checking for X11/Xmu/Editres.h... " >&6; } 8136 $as_echo_n "checking for X11/Xmu/Editres.h... " >&6; }
10109 cat >conftest.$ac_ext <<_ACEOF 8137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10110 /* confdefs.h. */
10111 _ACEOF
10112 cat confdefs.h >>conftest.$ac_ext
10113 cat >>conftest.$ac_ext <<_ACEOF
10114 /* end confdefs.h. */ 8138 /* end confdefs.h. */
10115 8139
10116 #include <X11/Intrinsic.h> 8140 #include <X11/Intrinsic.h>
10117 #include <X11/Xmu/Editres.h> 8141 #include <X11/Xmu/Editres.h>
10118 int 8142 int
10121 int i; i = 0; 8145 int i; i = 0;
10122 ; 8146 ;
10123 return 0; 8147 return 0;
10124 } 8148 }
10125 _ACEOF 8149 _ACEOF
10126 rm -f conftest.$ac_objext 8150 if ac_fn_c_try_compile "$LINENO"; then :
10127 if { (ac_try="$ac_compile" 8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10128 case "(($ac_try" in
10129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10130 *) ac_try_echo=$ac_try;;
10131 esac
10132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10133 $as_echo "$ac_try_echo") >&5
10134 (eval "$ac_compile") 2>conftest.er1
10135 ac_status=$?
10136 grep -v '^ *+' conftest.er1 >conftest.err
10137 rm -f conftest.er1
10138 cat conftest.err >&5
10139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 (exit $ac_status); } && {
10141 test -z "$ac_c_werror_flag" ||
10142 test ! -s conftest.err
10143 } && test -s conftest.$ac_objext; then
10144 { $as_echo "$as_me:$LINENO: result: yes" >&5
10145 $as_echo "yes" >&6; } 8152 $as_echo "yes" >&6; }
10146 cat >>confdefs.h <<\_ACEOF 8153 $as_echo "#define HAVE_X11_XMU_EDITRES_H 1" >>confdefs.h
10147 #define HAVE_X11_XMU_EDITRES_H 1 8154
10148 _ACEOF 8155 else
10149 8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10150 else
10151 $as_echo "$as_me: failed program was:" >&5
10152 sed 's/^/| /' conftest.$ac_ext >&5
10153
10154 { $as_echo "$as_me:$LINENO: result: no" >&5
10155 $as_echo "no" >&6; } 8157 $as_echo "no" >&6; }
10156 fi 8158 fi
10157
10158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10159 CPPFLAGS=$cppflags_save 8160 CPPFLAGS=$cppflags_save
10160 fi 8161 fi
10161 8162
10162 if test -z "$SKIP_MOTIF"; then 8163 if test -z "$SKIP_MOTIF"; then
10163 cppflags_save=$CPPFLAGS 8164 cppflags_save=$CPPFLAGS
10164 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 8165 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10165 8166 for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \
10166
10167
10168
10169
10170
10171
10172 for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \
10173 Xm/UnhighlightT.h Xm/Notebook.h 8167 Xm/UnhighlightT.h Xm/Notebook.h
10174 do 8168 do :
10175 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8169 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8170 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10177 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 8171 eval as_val=\$$as_ac_Header
10178 $as_echo_n "checking for $ac_header... " >&6; } 8172 if test "x$as_val" = x""yes; then :
10179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10180 $as_echo_n "(cached) " >&6
10181 fi
10182 ac_res=`eval 'as_val=${'$as_ac_Header'}
10183 $as_echo "$as_val"'`
10184 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10185 $as_echo "$ac_res" >&6; }
10186 else
10187 # Is the header compilable?
10188 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10189 $as_echo_n "checking $ac_header usability... " >&6; }
10190 cat >conftest.$ac_ext <<_ACEOF
10191 /* confdefs.h. */
10192 _ACEOF
10193 cat confdefs.h >>conftest.$ac_ext
10194 cat >>conftest.$ac_ext <<_ACEOF
10195 /* end confdefs.h. */
10196 $ac_includes_default
10197 #include <$ac_header>
10198 _ACEOF
10199 rm -f conftest.$ac_objext
10200 if { (ac_try="$ac_compile"
10201 case "(($ac_try" in
10202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10203 *) ac_try_echo=$ac_try;;
10204 esac
10205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10206 $as_echo "$ac_try_echo") >&5
10207 (eval "$ac_compile") 2>conftest.er1
10208 ac_status=$?
10209 grep -v '^ *+' conftest.er1 >conftest.err
10210 rm -f conftest.er1
10211 cat conftest.err >&5
10212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); } && {
10214 test -z "$ac_c_werror_flag" ||
10215 test ! -s conftest.err
10216 } && test -s conftest.$ac_objext; then
10217 ac_header_compiler=yes
10218 else
10219 $as_echo "$as_me: failed program was:" >&5
10220 sed 's/^/| /' conftest.$ac_ext >&5
10221
10222 ac_header_compiler=no
10223 fi
10224
10225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10226 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10227 $as_echo "$ac_header_compiler" >&6; }
10228
10229 # Is the header present?
10230 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10231 $as_echo_n "checking $ac_header presence... " >&6; }
10232 cat >conftest.$ac_ext <<_ACEOF
10233 /* confdefs.h. */
10234 _ACEOF
10235 cat confdefs.h >>conftest.$ac_ext
10236 cat >>conftest.$ac_ext <<_ACEOF
10237 /* end confdefs.h. */
10238 #include <$ac_header>
10239 _ACEOF
10240 if { (ac_try="$ac_cpp conftest.$ac_ext"
10241 case "(($ac_try" in
10242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10243 *) ac_try_echo=$ac_try;;
10244 esac
10245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10246 $as_echo "$ac_try_echo") >&5
10247 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10248 ac_status=$?
10249 grep -v '^ *+' conftest.er1 >conftest.err
10250 rm -f conftest.er1
10251 cat conftest.err >&5
10252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); } >/dev/null && {
10254 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10255 test ! -s conftest.err
10256 }; then
10257 ac_header_preproc=yes
10258 else
10259 $as_echo "$as_me: failed program was:" >&5
10260 sed 's/^/| /' conftest.$ac_ext >&5
10261
10262 ac_header_preproc=no
10263 fi
10264
10265 rm -f conftest.err conftest.$ac_ext
10266 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10267 $as_echo "$ac_header_preproc" >&6; }
10268
10269 # So? What about this header?
10270 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10271 yes:no: )
10272 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10273 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10274 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10275 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10276 ac_header_preproc=yes
10277 ;;
10278 no:yes:* )
10279 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10280 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10281 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10282 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10283 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10284 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10285 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10286 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10287 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10288 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10289 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10290 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10291
10292 ;;
10293 esac
10294 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10295 $as_echo_n "checking for $ac_header... " >&6; }
10296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10297 $as_echo_n "(cached) " >&6
10298 else
10299 eval "$as_ac_Header=\$ac_header_preproc"
10300 fi
10301 ac_res=`eval 'as_val=${'$as_ac_Header'}
10302 $as_echo "$as_val"'`
10303 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10304 $as_echo "$ac_res" >&6; }
10305
10306 fi
10307 as_val=`eval 'as_val=${'$as_ac_Header'}
10308 $as_echo "$as_val"'`
10309 if test "x$as_val" = x""yes; then
10310 cat >>confdefs.h <<_ACEOF 8173 cat >>confdefs.h <<_ACEOF
10311 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8174 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10312 _ACEOF 8175 _ACEOF
10313 8176
10314 fi 8177 fi
10315 8178
10316 done 8179 done
10317 8180
10318 8181
10319 if test $ac_cv_header_Xm_XpmP_h = yes; then 8182 if test $ac_cv_header_Xm_XpmP_h = yes; then
10320 { $as_echo "$as_me:$LINENO: checking for XpmAttributes_21 in Xm/XpmP.h" >&5 8183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
10321 $as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; } 8184 $as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; }
10322 cat >conftest.$ac_ext <<_ACEOF 8185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10323 /* confdefs.h. */
10324 _ACEOF
10325 cat confdefs.h >>conftest.$ac_ext
10326 cat >>conftest.$ac_ext <<_ACEOF
10327 /* end confdefs.h. */ 8186 /* end confdefs.h. */
10328 #include <Xm/XpmP.h> 8187 #include <Xm/XpmP.h>
10329 int 8188 int
10330 main () 8189 main ()
10331 { 8190 {
10332 XpmAttributes_21 attr; 8191 XpmAttributes_21 attr;
10333 ; 8192 ;
10334 return 0; 8193 return 0;
10335 } 8194 }
10336 _ACEOF 8195 _ACEOF
10337 rm -f conftest.$ac_objext 8196 if ac_fn_c_try_compile "$LINENO"; then :
10338 if { (ac_try="$ac_compile" 8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10339 case "(($ac_try" in 8198 $as_echo "yes" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes_21" >>confdefs.h
10340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8199
10341 *) ac_try_echo=$ac_try;; 8200 else
10342 esac 8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8202 $as_echo "no" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h
10344 $as_echo "$ac_try_echo") >&5 8203
10345 (eval "$ac_compile") 2>conftest.er1 8204
10346 ac_status=$? 8205 fi
10347 grep -v '^ *+' conftest.er1 >conftest.err
10348 rm -f conftest.er1
10349 cat conftest.err >&5
10350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351 (exit $ac_status); } && {
10352 test -z "$ac_c_werror_flag" ||
10353 test ! -s conftest.err
10354 } && test -s conftest.$ac_objext; then
10355 { $as_echo "$as_me:$LINENO: result: yes" >&5
10356 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10357 #define XPMATTRIBUTES_TYPE XpmAttributes_21
10358 _ACEOF
10359
10360 else
10361 $as_echo "$as_me: failed program was:" >&5
10362 sed 's/^/| /' conftest.$ac_ext >&5
10363
10364 { $as_echo "$as_me:$LINENO: result: no" >&5
10365 $as_echo "no" >&6; }; cat >>confdefs.h <<\_ACEOF
10366 #define XPMATTRIBUTES_TYPE XpmAttributes
10367 _ACEOF
10368
10369
10370 fi
10371
10372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10373 else 8207 else
10374 cat >>confdefs.h <<\_ACEOF 8208 $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h
10375 #define XPMATTRIBUTES_TYPE XpmAttributes
10376 _ACEOF
10377 8209
10378 fi 8210 fi
10379 CPPFLAGS=$cppflags_save 8211 CPPFLAGS=$cppflags_save
10380 fi 8212 fi
10381 8213
10382 if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then 8214 if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
10383 { $as_echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5 8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; xim has been disabled" >&5
10384 $as_echo "no GUI selected; xim has been disabled" >&6; } 8216 $as_echo "no GUI selected; xim has been disabled" >&6; }
10385 enable_xim="no" 8217 enable_xim="no"
10386 fi 8218 fi
10387 if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then 8219 if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
10388 { $as_echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5 8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; fontset has been disabled" >&5
10389 $as_echo "no GUI selected; fontset has been disabled" >&6; } 8221 $as_echo "no GUI selected; fontset has been disabled" >&6; }
10390 enable_fontset="no" 8222 enable_fontset="no"
10391 fi 8223 fi
10392 if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then 8224 if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then
10393 { $as_echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5 8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
10394 $as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; } 8226 $as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; }
10395 enable_fontset="no" 8227 enable_fontset="no"
10396 fi 8228 fi
10397 8229
10398 if test -z "$SKIP_PHOTON"; then 8230 if test -z "$SKIP_PHOTON"; then
10403 8235
10404 8236
10405 8237
10406 8238
10407 if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then 8239 if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
10408 { { $as_echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5 8240 as_fn_error "cannot use workshop without Motif" "$LINENO" 5
10409 $as_echo "$as_me: error: cannot use workshop without Motif" >&2;}
10410 { (exit 1); exit 1; }; }
10411 fi 8241 fi
10412 8242
10413 if test "$enable_xim" = "yes"; then 8243 if test "$enable_xim" = "yes"; then
10414 cat >>confdefs.h <<\_ACEOF 8244 $as_echo "#define FEAT_XIM 1" >>confdefs.h
10415 #define FEAT_XIM 1
10416 _ACEOF
10417 8245
10418 fi 8246 fi
10419 if test "$enable_fontset" = "yes"; then 8247 if test "$enable_fontset" = "yes"; then
10420 cat >>confdefs.h <<\_ACEOF 8248 $as_echo "#define FEAT_XFONTSET 1" >>confdefs.h
10421 #define FEAT_XFONTSET 1
10422 _ACEOF
10423 8249
10424 fi 8250 fi
10425 8251
10426 8252
10427 8253
10428 8254
10429 if test "$enable_hangulinput" = "yes"; then 8255 if test "$enable_hangulinput" = "yes"; then
10430 if test "x$GUITYPE" = "xNONE"; then 8256 if test "x$GUITYPE" = "xNONE"; then
10431 { $as_echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5 8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; hangul input has been disabled" >&5
10432 $as_echo "no GUI selected; hangul input has been disabled" >&6; } 8258 $as_echo "no GUI selected; hangul input has been disabled" >&6; }
10433 enable_hangulinput=no 8259 enable_hangulinput=no
10434 else 8260 else
10435 cat >>confdefs.h <<\_ACEOF 8261 $as_echo "#define FEAT_HANGULIN 1" >>confdefs.h
10436 #define FEAT_HANGULIN 1
10437 _ACEOF
10438 8262
10439 HANGULIN_SRC=hangulin.c 8263 HANGULIN_SRC=hangulin.c
10440 8264
10441 HANGULIN_OBJ=objects/hangulin.o 8265 HANGULIN_OBJ=objects/hangulin.o
10442 8266
10443 fi 8267 fi
10444 fi 8268 fi
10445 8269
10446 8270
10447 { $as_echo "$as_me:$LINENO: checking whether toupper is broken" >&5 8271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether toupper is broken" >&5
10448 $as_echo_n "checking whether toupper is broken... " >&6; } 8272 $as_echo_n "checking whether toupper is broken... " >&6; }
10449 if test "${vim_cv_toupper_broken+set}" = set; then 8273 if test "${vim_cv_toupper_broken+set}" = set; then :
10450 $as_echo_n "(cached) " >&6 8274 $as_echo_n "(cached) " >&6
10451 else 8275 else
10452 8276
10453 if test "$cross_compiling" = yes; then 8277 if test "$cross_compiling" = yes; then :
10454 8278
10455 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&5 8279 as_fn_error "cross-compiling: please set 'vim_cv_toupper_broken'" "$LINENO" 5
10456 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&2;} 8280
10457 { (exit 1); exit 1; }; } 8281 else
10458 8282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10459 else 8283 /* end confdefs.h. */
10460 cat >conftest.$ac_ext <<_ACEOF
10461 8284
10462 #include "confdefs.h" 8285 #include "confdefs.h"
10463 #include <ctype.h> 8286 #include <ctype.h>
10464 #if STDC_HEADERS 8287 #if STDC_HEADERS
10465 # include <stdlib.h> 8288 # include <stdlib.h>
10466 # include <stddef.h> 8289 # include <stddef.h>
10467 #endif 8290 #endif
10468 main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); } 8291 main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
10469 8292
10470 _ACEOF 8293 _ACEOF
10471 rm -f conftest$ac_exeext 8294 if ac_fn_c_try_run "$LINENO"; then :
10472 if { (ac_try="$ac_link"
10473 case "(($ac_try" in
10474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10475 *) ac_try_echo=$ac_try;;
10476 esac
10477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10478 $as_echo "$ac_try_echo") >&5
10479 (eval "$ac_link") 2>&5
10480 ac_status=$?
10481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10483 { (case "(($ac_try" in
10484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10485 *) ac_try_echo=$ac_try;;
10486 esac
10487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10488 $as_echo "$ac_try_echo") >&5
10489 (eval "$ac_try") 2>&5
10490 ac_status=$?
10491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492 (exit $ac_status); }; }; then
10493 8295
10494 vim_cv_toupper_broken=yes 8296 vim_cv_toupper_broken=yes
10495 8297
10496 else 8298 else
10497 $as_echo "$as_me: program exited with status $ac_status" >&5
10498 $as_echo "$as_me: failed program was:" >&5
10499 sed 's/^/| /' conftest.$ac_ext >&5
10500
10501 ( exit $ac_status )
10502 8299
10503 vim_cv_toupper_broken=no 8300 vim_cv_toupper_broken=no
10504 8301
10505 fi 8302 fi
10506 rm -rf conftest.dSYM 8303 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10507 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8304 conftest.$ac_objext conftest.beam conftest.$ac_ext
10508 fi 8305 fi
10509 8306
10510 8307 fi
10511 fi 8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_toupper_broken" >&5
10512 { $as_echo "$as_me:$LINENO: result: $vim_cv_toupper_broken" >&5
10513 $as_echo "$vim_cv_toupper_broken" >&6; } 8309 $as_echo "$vim_cv_toupper_broken" >&6; }
10514 8310
10515 if test "x$vim_cv_toupper_broken" = "xyes" ; then 8311 if test "x$vim_cv_toupper_broken" = "xyes" ; then
10516 cat >>confdefs.h <<\_ACEOF 8312 $as_echo "#define BROKEN_TOUPPER 1" >>confdefs.h
10517 #define BROKEN_TOUPPER 1 8313
10518 _ACEOF 8314 fi
10519 8315
10520 fi 8316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __DATE__ and __TIME__ work" >&5
10521
10522 { $as_echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5
10523 $as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; } 8317 $as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; }
10524 cat >conftest.$ac_ext <<_ACEOF 8318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10525 /* confdefs.h. */
10526 _ACEOF
10527 cat confdefs.h >>conftest.$ac_ext
10528 cat >>conftest.$ac_ext <<_ACEOF
10529 /* end confdefs.h. */ 8319 /* end confdefs.h. */
10530 #include <stdio.h> 8320 #include <stdio.h>
10531 int 8321 int
10532 main () 8322 main ()
10533 { 8323 {
10534 printf("(" __DATE__ " " __TIME__ ")"); 8324 printf("(" __DATE__ " " __TIME__ ")");
10535 ; 8325 ;
10536 return 0; 8326 return 0;
10537 } 8327 }
10538 _ACEOF 8328 _ACEOF
10539 rm -f conftest.$ac_objext 8329 if ac_fn_c_try_compile "$LINENO"; then :
10540 if { (ac_try="$ac_compile" 8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10541 case "(($ac_try" in 8331 $as_echo "yes" >&6; }; $as_echo "#define HAVE_DATE_TIME 1" >>confdefs.h
10542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8332
10543 *) ac_try_echo=$ac_try;; 8333 else
10544 esac 8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10546 $as_echo "$ac_try_echo") >&5
10547 (eval "$ac_compile") 2>conftest.er1
10548 ac_status=$?
10549 grep -v '^ *+' conftest.er1 >conftest.err
10550 rm -f conftest.er1
10551 cat conftest.err >&5
10552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553 (exit $ac_status); } && {
10554 test -z "$ac_c_werror_flag" ||
10555 test ! -s conftest.err
10556 } && test -s conftest.$ac_objext; then
10557 { $as_echo "$as_me:$LINENO: result: yes" >&5
10558 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10559 #define HAVE_DATE_TIME 1
10560 _ACEOF
10561
10562 else
10563 $as_echo "$as_me: failed program was:" >&5
10564 sed 's/^/| /' conftest.$ac_ext >&5
10565
10566 { $as_echo "$as_me:$LINENO: result: no" >&5
10567 $as_echo "no" >&6; } 8335 $as_echo "no" >&6; }
10568 fi 8336 fi
10569
10570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10571 8338
10572 { $as_echo "$as_me:$LINENO: checking whether __attribute__((unused)) is allowed" >&5 8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((unused)) is allowed" >&5
10573 $as_echo_n "checking whether __attribute__((unused)) is allowed... " >&6; } 8340 $as_echo_n "checking whether __attribute__((unused)) is allowed... " >&6; }
10574 cat >conftest.$ac_ext <<_ACEOF 8341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10575 /* confdefs.h. */
10576 _ACEOF
10577 cat confdefs.h >>conftest.$ac_ext
10578 cat >>conftest.$ac_ext <<_ACEOF
10579 /* end confdefs.h. */ 8342 /* end confdefs.h. */
10580 #include <stdio.h> 8343 #include <stdio.h>
10581 int 8344 int
10582 main () 8345 main ()
10583 { 8346 {
10584 int x __attribute__((unused)); 8347 int x __attribute__((unused));
10585 ; 8348 ;
10586 return 0; 8349 return 0;
10587 } 8350 }
10588 _ACEOF 8351 _ACEOF
10589 rm -f conftest.$ac_objext 8352 if ac_fn_c_try_compile "$LINENO"; then :
10590 if { (ac_try="$ac_compile" 8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10591 case "(($ac_try" in 8354 $as_echo "yes" >&6; }; $as_echo "#define HAVE_ATTRIBUTE_UNUSED 1" >>confdefs.h
10592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8355
10593 *) ac_try_echo=$ac_try;; 8356 else
10594 esac 8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10596 $as_echo "$ac_try_echo") >&5
10597 (eval "$ac_compile") 2>conftest.er1
10598 ac_status=$?
10599 grep -v '^ *+' conftest.er1 >conftest.err
10600 rm -f conftest.er1
10601 cat conftest.err >&5
10602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603 (exit $ac_status); } && {
10604 test -z "$ac_c_werror_flag" ||
10605 test ! -s conftest.err
10606 } && test -s conftest.$ac_objext; then
10607 { $as_echo "$as_me:$LINENO: result: yes" >&5
10608 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10609 #define HAVE_ATTRIBUTE_UNUSED 1
10610 _ACEOF
10611
10612 else
10613 $as_echo "$as_me: failed program was:" >&5
10614 sed 's/^/| /' conftest.$ac_ext >&5
10615
10616 { $as_echo "$as_me:$LINENO: result: no" >&5
10617 $as_echo "no" >&6; } 8358 $as_echo "no" >&6; }
10618 fi 8359 fi
10619
10620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10621 8361
10622 if test "${ac_cv_header_elf_h+set}" = set; then 8362 ac_fn_c_check_header_mongrel "$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default"
10623 { $as_echo "$as_me:$LINENO: checking for elf.h" >&5 8363 if test "x$ac_cv_header_elf_h" = x""yes; then :
10624 $as_echo_n "checking for elf.h... " >&6; }
10625 if test "${ac_cv_header_elf_h+set}" = set; then
10626 $as_echo_n "(cached) " >&6
10627 fi
10628 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10629 $as_echo "$ac_cv_header_elf_h" >&6; }
10630 else
10631 # Is the header compilable?
10632 { $as_echo "$as_me:$LINENO: checking elf.h usability" >&5
10633 $as_echo_n "checking elf.h usability... " >&6; }
10634 cat >conftest.$ac_ext <<_ACEOF
10635 /* confdefs.h. */
10636 _ACEOF
10637 cat confdefs.h >>conftest.$ac_ext
10638 cat >>conftest.$ac_ext <<_ACEOF
10639 /* end confdefs.h. */
10640 $ac_includes_default
10641 #include <elf.h>
10642 _ACEOF
10643 rm -f conftest.$ac_objext
10644 if { (ac_try="$ac_compile"
10645 case "(($ac_try" in
10646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10647 *) ac_try_echo=$ac_try;;
10648 esac
10649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10650 $as_echo "$ac_try_echo") >&5
10651 (eval "$ac_compile") 2>conftest.er1
10652 ac_status=$?
10653 grep -v '^ *+' conftest.er1 >conftest.err
10654 rm -f conftest.er1
10655 cat conftest.err >&5
10656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657 (exit $ac_status); } && {
10658 test -z "$ac_c_werror_flag" ||
10659 test ! -s conftest.err
10660 } && test -s conftest.$ac_objext; then
10661 ac_header_compiler=yes
10662 else
10663 $as_echo "$as_me: failed program was:" >&5
10664 sed 's/^/| /' conftest.$ac_ext >&5
10665
10666 ac_header_compiler=no
10667 fi
10668
10669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10670 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10671 $as_echo "$ac_header_compiler" >&6; }
10672
10673 # Is the header present?
10674 { $as_echo "$as_me:$LINENO: checking elf.h presence" >&5
10675 $as_echo_n "checking elf.h presence... " >&6; }
10676 cat >conftest.$ac_ext <<_ACEOF
10677 /* confdefs.h. */
10678 _ACEOF
10679 cat confdefs.h >>conftest.$ac_ext
10680 cat >>conftest.$ac_ext <<_ACEOF
10681 /* end confdefs.h. */
10682 #include <elf.h>
10683 _ACEOF
10684 if { (ac_try="$ac_cpp conftest.$ac_ext"
10685 case "(($ac_try" in
10686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10687 *) ac_try_echo=$ac_try;;
10688 esac
10689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10690 $as_echo "$ac_try_echo") >&5
10691 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10692 ac_status=$?
10693 grep -v '^ *+' conftest.er1 >conftest.err
10694 rm -f conftest.er1
10695 cat conftest.err >&5
10696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697 (exit $ac_status); } >/dev/null && {
10698 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10699 test ! -s conftest.err
10700 }; then
10701 ac_header_preproc=yes
10702 else
10703 $as_echo "$as_me: failed program was:" >&5
10704 sed 's/^/| /' conftest.$ac_ext >&5
10705
10706 ac_header_preproc=no
10707 fi
10708
10709 rm -f conftest.err conftest.$ac_ext
10710 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10711 $as_echo "$ac_header_preproc" >&6; }
10712
10713 # So? What about this header?
10714 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10715 yes:no: )
10716 { $as_echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5
10717 $as_echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10718 { $as_echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5
10719 $as_echo "$as_me: WARNING: elf.h: proceeding with the compiler's result" >&2;}
10720 ac_header_preproc=yes
10721 ;;
10722 no:yes:* )
10723 { $as_echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5
10724 $as_echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;}
10725 { $as_echo "$as_me:$LINENO: WARNING: elf.h: check for missing prerequisite headers?" >&5
10726 $as_echo "$as_me: WARNING: elf.h: check for missing prerequisite headers?" >&2;}
10727 { $as_echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5
10728 $as_echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;}
10729 { $as_echo "$as_me:$LINENO: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&5
10730 $as_echo "$as_me: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&2;}
10731 { $as_echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5
10732 $as_echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;}
10733 { $as_echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5
10734 $as_echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;}
10735
10736 ;;
10737 esac
10738 { $as_echo "$as_me:$LINENO: checking for elf.h" >&5
10739 $as_echo_n "checking for elf.h... " >&6; }
10740 if test "${ac_cv_header_elf_h+set}" = set; then
10741 $as_echo_n "(cached) " >&6
10742 else
10743 ac_cv_header_elf_h=$ac_header_preproc
10744 fi
10745 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10746 $as_echo "$ac_cv_header_elf_h" >&6; }
10747
10748 fi
10749 if test "x$ac_cv_header_elf_h" = x""yes; then
10750 HAS_ELF=1 8364 HAS_ELF=1
10751 fi 8365 fi
10752 8366
10753 8367
10754 if test "$HAS_ELF" = 1; then 8368 if test "$HAS_ELF" = 1; then
10755 8369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lelf" >&5
10756 { $as_echo "$as_me:$LINENO: checking for main in -lelf" >&5
10757 $as_echo_n "checking for main in -lelf... " >&6; } 8370 $as_echo_n "checking for main in -lelf... " >&6; }
10758 if test "${ac_cv_lib_elf_main+set}" = set; then 8371 if test "${ac_cv_lib_elf_main+set}" = set; then :
10759 $as_echo_n "(cached) " >&6 8372 $as_echo_n "(cached) " >&6
10760 else 8373 else
10761 ac_check_lib_save_LIBS=$LIBS 8374 ac_check_lib_save_LIBS=$LIBS
10762 LIBS="-lelf $LIBS" 8375 LIBS="-lelf $LIBS"
10763 cat >conftest.$ac_ext <<_ACEOF 8376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10764 /* confdefs.h. */
10765 _ACEOF
10766 cat confdefs.h >>conftest.$ac_ext
10767 cat >>conftest.$ac_ext <<_ACEOF
10768 /* end confdefs.h. */ 8377 /* end confdefs.h. */
10769 8378
10770 8379
10771 int 8380 int
10772 main () 8381 main ()
10774 return main (); 8383 return main ();
10775 ; 8384 ;
10776 return 0; 8385 return 0;
10777 } 8386 }
10778 _ACEOF 8387 _ACEOF
10779 rm -f conftest.$ac_objext conftest$ac_exeext 8388 if ac_fn_c_try_link "$LINENO"; then :
10780 if { (ac_try="$ac_link"
10781 case "(($ac_try" in
10782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10783 *) ac_try_echo=$ac_try;;
10784 esac
10785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10786 $as_echo "$ac_try_echo") >&5
10787 (eval "$ac_link") 2>conftest.er1
10788 ac_status=$?
10789 grep -v '^ *+' conftest.er1 >conftest.err
10790 rm -f conftest.er1
10791 cat conftest.err >&5
10792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793 (exit $ac_status); } && {
10794 test -z "$ac_c_werror_flag" ||
10795 test ! -s conftest.err
10796 } && test -s conftest$ac_exeext && {
10797 test "$cross_compiling" = yes ||
10798 $as_test_x conftest$ac_exeext
10799 }; then
10800 ac_cv_lib_elf_main=yes 8389 ac_cv_lib_elf_main=yes
10801 else 8390 else
10802 $as_echo "$as_me: failed program was:" >&5 8391 ac_cv_lib_elf_main=no
10803 sed 's/^/| /' conftest.$ac_ext >&5 8392 fi
10804 8393 rm -f core conftest.err conftest.$ac_objext \
10805 ac_cv_lib_elf_main=no 8394 conftest$ac_exeext conftest.$ac_ext
10806 fi
10807
10808 rm -rf conftest.dSYM
10809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10810 conftest$ac_exeext conftest.$ac_ext
10811 LIBS=$ac_check_lib_save_LIBS 8395 LIBS=$ac_check_lib_save_LIBS
10812 fi 8396 fi
10813 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5 8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_main" >&5
10814 $as_echo "$ac_cv_lib_elf_main" >&6; } 8398 $as_echo "$ac_cv_lib_elf_main" >&6; }
10815 if test "x$ac_cv_lib_elf_main" = x""yes; then 8399 if test "x$ac_cv_lib_elf_main" = x""yes; then :
10816 cat >>confdefs.h <<_ACEOF 8400 cat >>confdefs.h <<_ACEOF
10817 #define HAVE_LIBELF 1 8401 #define HAVE_LIBELF 1
10818 _ACEOF 8402 _ACEOF
10819 8403
10820 LIBS="-lelf $LIBS" 8404 LIBS="-lelf $LIBS"
10821 8405
10822 fi 8406 fi
10823 8407
10824 fi 8408 fi
10825
10826
10827
10828
10829
10830 8409
10831 ac_header_dirent=no 8410 ac_header_dirent=no
10832 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 8411 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10833 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 8412 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10834 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 8413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
10835 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 8414 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
10837 $as_echo_n "(cached) " >&6 8416 $as_echo_n "(cached) " >&6
10838 else 8417 else
10839 cat >conftest.$ac_ext <<_ACEOF 8418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10840 /* confdefs.h. */
10841 _ACEOF
10842 cat confdefs.h >>conftest.$ac_ext
10843 cat >>conftest.$ac_ext <<_ACEOF
10844 /* end confdefs.h. */ 8419 /* end confdefs.h. */
10845 #include <sys/types.h> 8420 #include <sys/types.h>
10846 #include <$ac_hdr> 8421 #include <$ac_hdr>
10847 8422
10848 int 8423 int
10852 return 0; 8427 return 0;
10853 ; 8428 ;
10854 return 0; 8429 return 0;
10855 } 8430 }
10856 _ACEOF 8431 _ACEOF
10857 rm -f conftest.$ac_objext 8432 if ac_fn_c_try_compile "$LINENO"; then :
10858 if { (ac_try="$ac_compile"
10859 case "(($ac_try" in
10860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10861 *) ac_try_echo=$ac_try;;
10862 esac
10863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10864 $as_echo "$ac_try_echo") >&5
10865 (eval "$ac_compile") 2>conftest.er1
10866 ac_status=$?
10867 grep -v '^ *+' conftest.er1 >conftest.err
10868 rm -f conftest.er1
10869 cat conftest.err >&5
10870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871 (exit $ac_status); } && {
10872 test -z "$ac_c_werror_flag" ||
10873 test ! -s conftest.err
10874 } && test -s conftest.$ac_objext; then
10875 eval "$as_ac_Header=yes" 8433 eval "$as_ac_Header=yes"
10876 else 8434 else
10877 $as_echo "$as_me: failed program was:" >&5 8435 eval "$as_ac_Header=no"
10878 sed 's/^/| /' conftest.$ac_ext >&5 8436 fi
10879
10880 eval "$as_ac_Header=no"
10881 fi
10882
10883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10884 fi 8438 fi
10885 ac_res=`eval 'as_val=${'$as_ac_Header'} 8439 eval ac_res=\$$as_ac_Header
10886 $as_echo "$as_val"'` 8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10887 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10888 $as_echo "$ac_res" >&6; } 8441 $as_echo "$ac_res" >&6; }
10889 as_val=`eval 'as_val=${'$as_ac_Header'} 8442 eval as_val=\$$as_ac_Header
10890 $as_echo "$as_val"'` 8443 if test "x$as_val" = x""yes; then :
10891 if test "x$as_val" = x""yes; then
10892 cat >>confdefs.h <<_ACEOF 8444 cat >>confdefs.h <<_ACEOF
10893 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 8445 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10894 _ACEOF 8446 _ACEOF
10895 8447
10896 ac_header_dirent=$ac_hdr; break 8448 ac_header_dirent=$ac_hdr; break
10897 fi 8449 fi
10898 8450
10899 done 8451 done
10900 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 8452 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10901 if test $ac_header_dirent = dirent.h; then 8453 if test $ac_header_dirent = dirent.h; then
10902 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 8454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10903 $as_echo_n "checking for library containing opendir... " >&6; } 8455 $as_echo_n "checking for library containing opendir... " >&6; }
10904 if test "${ac_cv_search_opendir+set}" = set; then 8456 if test "${ac_cv_search_opendir+set}" = set; then :
10905 $as_echo_n "(cached) " >&6 8457 $as_echo_n "(cached) " >&6
10906 else 8458 else
10907 ac_func_search_save_LIBS=$LIBS 8459 ac_func_search_save_LIBS=$LIBS
10908 cat >conftest.$ac_ext <<_ACEOF 8460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10909 /* confdefs.h. */
10910 _ACEOF
10911 cat confdefs.h >>conftest.$ac_ext
10912 cat >>conftest.$ac_ext <<_ACEOF
10913 /* end confdefs.h. */ 8461 /* end confdefs.h. */
10914 8462
10915 /* Override any GCC internal prototype to avoid an error. 8463 /* Override any GCC internal prototype to avoid an error.
10916 Use char because int might match the return type of a GCC 8464 Use char because int might match the return type of a GCC
10917 builtin and then its argument prototype would still apply. */ 8465 builtin and then its argument prototype would still apply. */
10932 ac_res="none required" 8480 ac_res="none required"
10933 else 8481 else
10934 ac_res=-l$ac_lib 8482 ac_res=-l$ac_lib
10935 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8483 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10936 fi 8484 fi
10937 rm -f conftest.$ac_objext conftest$ac_exeext 8485 if ac_fn_c_try_link "$LINENO"; then :
10938 if { (ac_try="$ac_link"
10939 case "(($ac_try" in
10940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10941 *) ac_try_echo=$ac_try;;
10942 esac
10943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10944 $as_echo "$ac_try_echo") >&5
10945 (eval "$ac_link") 2>conftest.er1
10946 ac_status=$?
10947 grep -v '^ *+' conftest.er1 >conftest.err
10948 rm -f conftest.er1
10949 cat conftest.err >&5
10950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); } && {
10952 test -z "$ac_c_werror_flag" ||
10953 test ! -s conftest.err
10954 } && test -s conftest$ac_exeext && {
10955 test "$cross_compiling" = yes ||
10956 $as_test_x conftest$ac_exeext
10957 }; then
10958 ac_cv_search_opendir=$ac_res 8486 ac_cv_search_opendir=$ac_res
10959 else 8487 fi
10960 $as_echo "$as_me: failed program was:" >&5 8488 rm -f core conftest.err conftest.$ac_objext \
10961 sed 's/^/| /' conftest.$ac_ext >&5 8489 conftest$ac_exeext
10962 8490 if test "${ac_cv_search_opendir+set}" = set; then :
10963
10964 fi
10965
10966 rm -rf conftest.dSYM
10967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10968 conftest$ac_exeext
10969 if test "${ac_cv_search_opendir+set}" = set; then
10970 break 8491 break
10971 fi 8492 fi
10972 done 8493 done
10973 if test "${ac_cv_search_opendir+set}" = set; then 8494 if test "${ac_cv_search_opendir+set}" = set; then :
10974 : 8495
10975 else 8496 else
10976 ac_cv_search_opendir=no 8497 ac_cv_search_opendir=no
10977 fi 8498 fi
10978 rm conftest.$ac_ext 8499 rm conftest.$ac_ext
10979 LIBS=$ac_func_search_save_LIBS 8500 LIBS=$ac_func_search_save_LIBS
10980 fi 8501 fi
10981 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
10982 $as_echo "$ac_cv_search_opendir" >&6; } 8503 $as_echo "$ac_cv_search_opendir" >&6; }
10983 ac_res=$ac_cv_search_opendir 8504 ac_res=$ac_cv_search_opendir
10984 if test "$ac_res" != no; then 8505 if test "$ac_res" != no; then :
10985 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8506 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10986 8507
10987 fi 8508 fi
10988 8509
10989 else 8510 else
10990 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 8511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10991 $as_echo_n "checking for library containing opendir... " >&6; } 8512 $as_echo_n "checking for library containing opendir... " >&6; }
10992 if test "${ac_cv_search_opendir+set}" = set; then 8513 if test "${ac_cv_search_opendir+set}" = set; then :
10993 $as_echo_n "(cached) " >&6 8514 $as_echo_n "(cached) " >&6
10994 else 8515 else
10995 ac_func_search_save_LIBS=$LIBS 8516 ac_func_search_save_LIBS=$LIBS
10996 cat >conftest.$ac_ext <<_ACEOF 8517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10997 /* confdefs.h. */
10998 _ACEOF
10999 cat confdefs.h >>conftest.$ac_ext
11000 cat >>conftest.$ac_ext <<_ACEOF
11001 /* end confdefs.h. */ 8518 /* end confdefs.h. */
11002 8519
11003 /* Override any GCC internal prototype to avoid an error. 8520 /* Override any GCC internal prototype to avoid an error.
11004 Use char because int might match the return type of a GCC 8521 Use char because int might match the return type of a GCC
11005 builtin and then its argument prototype would still apply. */ 8522 builtin and then its argument prototype would still apply. */
11020 ac_res="none required" 8537 ac_res="none required"
11021 else 8538 else
11022 ac_res=-l$ac_lib 8539 ac_res=-l$ac_lib
11023 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8540 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11024 fi 8541 fi
11025 rm -f conftest.$ac_objext conftest$ac_exeext 8542 if ac_fn_c_try_link "$LINENO"; then :
11026 if { (ac_try="$ac_link"
11027 case "(($ac_try" in
11028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11029 *) ac_try_echo=$ac_try;;
11030 esac
11031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11032 $as_echo "$ac_try_echo") >&5
11033 (eval "$ac_link") 2>conftest.er1
11034 ac_status=$?
11035 grep -v '^ *+' conftest.er1 >conftest.err
11036 rm -f conftest.er1
11037 cat conftest.err >&5
11038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039 (exit $ac_status); } && {
11040 test -z "$ac_c_werror_flag" ||
11041 test ! -s conftest.err
11042 } && test -s conftest$ac_exeext && {
11043 test "$cross_compiling" = yes ||
11044 $as_test_x conftest$ac_exeext
11045 }; then
11046 ac_cv_search_opendir=$ac_res 8543 ac_cv_search_opendir=$ac_res
11047 else 8544 fi
11048 $as_echo "$as_me: failed program was:" >&5 8545 rm -f core conftest.err conftest.$ac_objext \
11049 sed 's/^/| /' conftest.$ac_ext >&5 8546 conftest$ac_exeext
11050 8547 if test "${ac_cv_search_opendir+set}" = set; then :
11051
11052 fi
11053
11054 rm -rf conftest.dSYM
11055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11056 conftest$ac_exeext
11057 if test "${ac_cv_search_opendir+set}" = set; then
11058 break 8548 break
11059 fi 8549 fi
11060 done 8550 done
11061 if test "${ac_cv_search_opendir+set}" = set; then 8551 if test "${ac_cv_search_opendir+set}" = set; then :
11062 : 8552
11063 else 8553 else
11064 ac_cv_search_opendir=no 8554 ac_cv_search_opendir=no
11065 fi 8555 fi
11066 rm conftest.$ac_ext 8556 rm conftest.$ac_ext
11067 LIBS=$ac_func_search_save_LIBS 8557 LIBS=$ac_func_search_save_LIBS
11068 fi 8558 fi
11069 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11070 $as_echo "$ac_cv_search_opendir" >&6; } 8560 $as_echo "$ac_cv_search_opendir" >&6; }
11071 ac_res=$ac_cv_search_opendir 8561 ac_res=$ac_cv_search_opendir
11072 if test "$ac_res" != no; then 8562 if test "$ac_res" != no; then :
11073 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8563 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11074 8564
11075 fi 8565 fi
11076 8566
11077 fi 8567 fi
11078 8568
11079 8569
11080 if test $ac_cv_header_sys_wait_h = no; then 8570 if test $ac_cv_header_sys_wait_h = no; then
11081 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5 8571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that defines union wait" >&5
11082 $as_echo_n "checking for sys/wait.h that defines union wait... " >&6; } 8572 $as_echo_n "checking for sys/wait.h that defines union wait... " >&6; }
11083 cat >conftest.$ac_ext <<_ACEOF 8573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11084 /* confdefs.h. */
11085 _ACEOF
11086 cat confdefs.h >>conftest.$ac_ext
11087 cat >>conftest.$ac_ext <<_ACEOF
11088 /* end confdefs.h. */ 8574 /* end confdefs.h. */
11089 #include <sys/wait.h> 8575 #include <sys/wait.h>
11090 int 8576 int
11091 main () 8577 main ()
11092 { 8578 {
11093 union wait xx, yy; xx = yy 8579 union wait xx, yy; xx = yy
11094 ; 8580 ;
11095 return 0; 8581 return 0;
11096 } 8582 }
11097 _ACEOF 8583 _ACEOF
11098 rm -f conftest.$ac_objext 8584 if ac_fn_c_try_compile "$LINENO"; then :
11099 if { (ac_try="$ac_compile" 8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11100 case "(($ac_try" in
11101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11102 *) ac_try_echo=$ac_try;;
11103 esac
11104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11105 $as_echo "$ac_try_echo") >&5
11106 (eval "$ac_compile") 2>conftest.er1
11107 ac_status=$?
11108 grep -v '^ *+' conftest.er1 >conftest.err
11109 rm -f conftest.er1
11110 cat conftest.err >&5
11111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); } && {
11113 test -z "$ac_c_werror_flag" ||
11114 test ! -s conftest.err
11115 } && test -s conftest.$ac_objext; then
11116 { $as_echo "$as_me:$LINENO: result: yes" >&5
11117 $as_echo "yes" >&6; } 8586 $as_echo "yes" >&6; }
11118 cat >>confdefs.h <<\_ACEOF 8587 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
11119 #define HAVE_SYS_WAIT_H 1 8588
11120 _ACEOF 8589 $as_echo "#define HAVE_UNION_WAIT 1" >>confdefs.h
11121 8590
11122 cat >>confdefs.h <<\_ACEOF 8591 else
11123 #define HAVE_UNION_WAIT 1 8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11124 _ACEOF
11125
11126 else
11127 $as_echo "$as_me: failed program was:" >&5
11128 sed 's/^/| /' conftest.$ac_ext >&5
11129
11130 { $as_echo "$as_me:$LINENO: result: no" >&5
11131 $as_echo "no" >&6; } 8593 $as_echo "no" >&6; }
11132 fi 8594 fi
11133
11134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11135 fi 8596 fi
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176 8597
11177 for ac_header in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \ 8598 for ac_header in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \
11178 termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h sys/types.h termio.h \ 8599 termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h sys/types.h termio.h \
11179 iconv.h langinfo.h math.h unistd.h stropts.h errno.h \ 8600 iconv.h langinfo.h math.h unistd.h stropts.h errno.h \
11180 sys/resource.h sys/systeminfo.h locale.h \ 8601 sys/resource.h sys/systeminfo.h locale.h \
11181 sys/stream.h termios.h libc.h sys/statfs.h \ 8602 sys/stream.h termios.h libc.h sys/statfs.h \
11182 poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \ 8603 poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \
11183 libgen.h util/debug.h util/msg18n.h frame.h \ 8604 libgen.h util/debug.h util/msg18n.h frame.h \
11184 sys/acl.h sys/access.h sys/sysinfo.h wchar.h wctype.h 8605 sys/acl.h sys/access.h sys/sysinfo.h wchar.h wctype.h
11185 do 8606 do :
11186 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8607 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8608 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11188 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 8609 eval as_val=\$$as_ac_Header
11189 $as_echo_n "checking for $ac_header... " >&6; } 8610 if test "x$as_val" = x""yes; then :
11190 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11191 $as_echo_n "(cached) " >&6
11192 fi
11193 ac_res=`eval 'as_val=${'$as_ac_Header'}
11194 $as_echo "$as_val"'`
11195 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11196 $as_echo "$ac_res" >&6; }
11197 else
11198 # Is the header compilable?
11199 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11200 $as_echo_n "checking $ac_header usability... " >&6; }
11201 cat >conftest.$ac_ext <<_ACEOF
11202 /* confdefs.h. */
11203 _ACEOF
11204 cat confdefs.h >>conftest.$ac_ext
11205 cat >>conftest.$ac_ext <<_ACEOF
11206 /* end confdefs.h. */
11207 $ac_includes_default
11208 #include <$ac_header>
11209 _ACEOF
11210 rm -f conftest.$ac_objext
11211 if { (ac_try="$ac_compile"
11212 case "(($ac_try" in
11213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11214 *) ac_try_echo=$ac_try;;
11215 esac
11216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11217 $as_echo "$ac_try_echo") >&5
11218 (eval "$ac_compile") 2>conftest.er1
11219 ac_status=$?
11220 grep -v '^ *+' conftest.er1 >conftest.err
11221 rm -f conftest.er1
11222 cat conftest.err >&5
11223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224 (exit $ac_status); } && {
11225 test -z "$ac_c_werror_flag" ||
11226 test ! -s conftest.err
11227 } && test -s conftest.$ac_objext; then
11228 ac_header_compiler=yes
11229 else
11230 $as_echo "$as_me: failed program was:" >&5
11231 sed 's/^/| /' conftest.$ac_ext >&5
11232
11233 ac_header_compiler=no
11234 fi
11235
11236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11237 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11238 $as_echo "$ac_header_compiler" >&6; }
11239
11240 # Is the header present?
11241 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11242 $as_echo_n "checking $ac_header presence... " >&6; }
11243 cat >conftest.$ac_ext <<_ACEOF
11244 /* confdefs.h. */
11245 _ACEOF
11246 cat confdefs.h >>conftest.$ac_ext
11247 cat >>conftest.$ac_ext <<_ACEOF
11248 /* end confdefs.h. */
11249 #include <$ac_header>
11250 _ACEOF
11251 if { (ac_try="$ac_cpp conftest.$ac_ext"
11252 case "(($ac_try" in
11253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11254 *) ac_try_echo=$ac_try;;
11255 esac
11256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11257 $as_echo "$ac_try_echo") >&5
11258 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11259 ac_status=$?
11260 grep -v '^ *+' conftest.er1 >conftest.err
11261 rm -f conftest.er1
11262 cat conftest.err >&5
11263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); } >/dev/null && {
11265 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11266 test ! -s conftest.err
11267 }; then
11268 ac_header_preproc=yes
11269 else
11270 $as_echo "$as_me: failed program was:" >&5
11271 sed 's/^/| /' conftest.$ac_ext >&5
11272
11273 ac_header_preproc=no
11274 fi
11275
11276 rm -f conftest.err conftest.$ac_ext
11277 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11278 $as_echo "$ac_header_preproc" >&6; }
11279
11280 # So? What about this header?
11281 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11282 yes:no: )
11283 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11284 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11285 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11286 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11287 ac_header_preproc=yes
11288 ;;
11289 no:yes:* )
11290 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11291 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11292 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11293 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11294 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11295 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11296 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11297 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11298 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11299 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11300 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11301 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11302
11303 ;;
11304 esac
11305 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11306 $as_echo_n "checking for $ac_header... " >&6; }
11307 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11308 $as_echo_n "(cached) " >&6
11309 else
11310 eval "$as_ac_Header=\$ac_header_preproc"
11311 fi
11312 ac_res=`eval 'as_val=${'$as_ac_Header'}
11313 $as_echo "$as_val"'`
11314 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11315 $as_echo "$ac_res" >&6; }
11316
11317 fi
11318 as_val=`eval 'as_val=${'$as_ac_Header'}
11319 $as_echo "$as_val"'`
11320 if test "x$as_val" = x""yes; then
11321 cat >>confdefs.h <<_ACEOF 8611 cat >>confdefs.h <<_ACEOF
11322 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8612 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11323 _ACEOF 8613 _ACEOF
11324 8614
11325 fi 8615 fi
11326 8616
11327 done 8617 done
11328 8618
11329 8619
11330
11331 for ac_header in sys/ptem.h 8620 for ac_header in sys/ptem.h
11332 do 8621 do :
11333 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8622 ac_fn_c_check_header_compile "$LINENO" "sys/ptem.h" "ac_cv_header_sys_ptem_h" "#if defined HAVE_SYS_STREAM_H
11334 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11335 $as_echo_n "checking for $ac_header... " >&6; }
11336 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11337 $as_echo_n "(cached) " >&6
11338 else
11339 cat >conftest.$ac_ext <<_ACEOF
11340 /* confdefs.h. */
11341 _ACEOF
11342 cat confdefs.h >>conftest.$ac_ext
11343 cat >>conftest.$ac_ext <<_ACEOF
11344 /* end confdefs.h. */
11345 #if defined HAVE_SYS_STREAM_H
11346 # include <sys/stream.h> 8623 # include <sys/stream.h>
11347 #endif 8624 #endif
11348 8625 "
11349 #include <$ac_header> 8626 if test "x$ac_cv_header_sys_ptem_h" = x""yes; then :
11350 _ACEOF
11351 rm -f conftest.$ac_objext
11352 if { (ac_try="$ac_compile"
11353 case "(($ac_try" in
11354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11355 *) ac_try_echo=$ac_try;;
11356 esac
11357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11358 $as_echo "$ac_try_echo") >&5
11359 (eval "$ac_compile") 2>conftest.er1
11360 ac_status=$?
11361 grep -v '^ *+' conftest.er1 >conftest.err
11362 rm -f conftest.er1
11363 cat conftest.err >&5
11364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365 (exit $ac_status); } && {
11366 test -z "$ac_c_werror_flag" ||
11367 test ! -s conftest.err
11368 } && test -s conftest.$ac_objext; then
11369 eval "$as_ac_Header=yes"
11370 else
11371 $as_echo "$as_me: failed program was:" >&5
11372 sed 's/^/| /' conftest.$ac_ext >&5
11373
11374 eval "$as_ac_Header=no"
11375 fi
11376
11377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11378 fi
11379 ac_res=`eval 'as_val=${'$as_ac_Header'}
11380 $as_echo "$as_val"'`
11381 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11382 $as_echo "$ac_res" >&6; }
11383 as_val=`eval 'as_val=${'$as_ac_Header'}
11384 $as_echo "$as_val"'`
11385 if test "x$as_val" = x""yes; then
11386 cat >>confdefs.h <<_ACEOF 8627 cat >>confdefs.h <<_ACEOF
11387 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8628 #define HAVE_SYS_PTEM_H 1
11388 _ACEOF 8629 _ACEOF
11389 8630
11390 fi 8631 fi
11391 8632
11392 done 8633 done
11393 8634
11394 8635
11395
11396 for ac_header in sys/sysctl.h 8636 for ac_header in sys/sysctl.h
11397 do 8637 do :
11398 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8638 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#if defined HAVE_SYS_PARAM_H
11399 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11400 $as_echo_n "checking for $ac_header... " >&6; }
11401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11402 $as_echo_n "(cached) " >&6
11403 else
11404 cat >conftest.$ac_ext <<_ACEOF
11405 /* confdefs.h. */
11406 _ACEOF
11407 cat confdefs.h >>conftest.$ac_ext
11408 cat >>conftest.$ac_ext <<_ACEOF
11409 /* end confdefs.h. */
11410 #if defined HAVE_SYS_PARAM_H
11411 # include <sys/param.h> 8639 # include <sys/param.h>
11412 #endif 8640 #endif
11413 8641 "
11414 #include <$ac_header> 8642 if test "x$ac_cv_header_sys_sysctl_h" = x""yes; then :
11415 _ACEOF
11416 rm -f conftest.$ac_objext
11417 if { (ac_try="$ac_compile"
11418 case "(($ac_try" in
11419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11420 *) ac_try_echo=$ac_try;;
11421 esac
11422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11423 $as_echo "$ac_try_echo") >&5
11424 (eval "$ac_compile") 2>conftest.er1
11425 ac_status=$?
11426 grep -v '^ *+' conftest.er1 >conftest.err
11427 rm -f conftest.er1
11428 cat conftest.err >&5
11429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11430 (exit $ac_status); } && {
11431 test -z "$ac_c_werror_flag" ||
11432 test ! -s conftest.err
11433 } && test -s conftest.$ac_objext; then
11434 eval "$as_ac_Header=yes"
11435 else
11436 $as_echo "$as_me: failed program was:" >&5
11437 sed 's/^/| /' conftest.$ac_ext >&5
11438
11439 eval "$as_ac_Header=no"
11440 fi
11441
11442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11443 fi
11444 ac_res=`eval 'as_val=${'$as_ac_Header'}
11445 $as_echo "$as_val"'`
11446 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11447 $as_echo "$ac_res" >&6; }
11448 as_val=`eval 'as_val=${'$as_ac_Header'}
11449 $as_echo "$as_val"'`
11450 if test "x$as_val" = x""yes; then
11451 cat >>confdefs.h <<_ACEOF 8643 cat >>confdefs.h <<_ACEOF
11452 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8644 #define HAVE_SYS_SYSCTL_H 1
11453 _ACEOF 8645 _ACEOF
11454 8646
11455 fi 8647 fi
11456 8648
11457 done 8649 done
11458 8650
11459 8651
11460 8652
11461 { $as_echo "$as_me:$LINENO: checking for pthread_np.h" >&5 8653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_np.h" >&5
11462 $as_echo_n "checking for pthread_np.h... " >&6; } 8654 $as_echo_n "checking for pthread_np.h... " >&6; }
11463 cat >conftest.$ac_ext <<_ACEOF 8655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11464 /* confdefs.h. */
11465 _ACEOF
11466 cat confdefs.h >>conftest.$ac_ext
11467 cat >>conftest.$ac_ext <<_ACEOF
11468 /* end confdefs.h. */ 8656 /* end confdefs.h. */
11469 8657
11470 #include <pthread.h> 8658 #include <pthread.h>
11471 #include <pthread_np.h> 8659 #include <pthread_np.h>
11472 int 8660 int
11475 int i; i = 0; 8663 int i; i = 0;
11476 ; 8664 ;
11477 return 0; 8665 return 0;
11478 } 8666 }
11479 _ACEOF 8667 _ACEOF
11480 rm -f conftest.$ac_objext 8668 if ac_fn_c_try_compile "$LINENO"; then :
11481 if { (ac_try="$ac_compile" 8669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11482 case "(($ac_try" in
11483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11484 *) ac_try_echo=$ac_try;;
11485 esac
11486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11487 $as_echo "$ac_try_echo") >&5
11488 (eval "$ac_compile") 2>conftest.er1
11489 ac_status=$?
11490 grep -v '^ *+' conftest.er1 >conftest.err
11491 rm -f conftest.er1
11492 cat conftest.err >&5
11493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494 (exit $ac_status); } && {
11495 test -z "$ac_c_werror_flag" ||
11496 test ! -s conftest.err
11497 } && test -s conftest.$ac_objext; then
11498 { $as_echo "$as_me:$LINENO: result: yes" >&5
11499 $as_echo "yes" >&6; } 8670 $as_echo "yes" >&6; }
11500 cat >>confdefs.h <<\_ACEOF 8671 $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
11501 #define HAVE_PTHREAD_NP_H 1 8672
11502 _ACEOF 8673 else
11503 8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11504 else
11505 $as_echo "$as_me: failed program was:" >&5
11506 sed 's/^/| /' conftest.$ac_ext >&5
11507
11508 { $as_echo "$as_me:$LINENO: result: no" >&5
11509 $as_echo "no" >&6; } 8675 $as_echo "no" >&6; }
11510 fi 8676 fi
11511
11512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11513 8678
11514
11515 for ac_header in strings.h 8679 for ac_header in strings.h
11516 do 8680 do :
11517 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8681 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
11518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8682 if test "x$ac_cv_header_strings_h" = x""yes; then :
11519 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11520 $as_echo_n "checking for $ac_header... " >&6; }
11521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11522 $as_echo_n "(cached) " >&6
11523 fi
11524 ac_res=`eval 'as_val=${'$as_ac_Header'}
11525 $as_echo "$as_val"'`
11526 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11527 $as_echo "$ac_res" >&6; }
11528 else
11529 # Is the header compilable?
11530 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11531 $as_echo_n "checking $ac_header usability... " >&6; }
11532 cat >conftest.$ac_ext <<_ACEOF
11533 /* confdefs.h. */
11534 _ACEOF
11535 cat confdefs.h >>conftest.$ac_ext
11536 cat >>conftest.$ac_ext <<_ACEOF
11537 /* end confdefs.h. */
11538 $ac_includes_default
11539 #include <$ac_header>
11540 _ACEOF
11541 rm -f conftest.$ac_objext
11542 if { (ac_try="$ac_compile"
11543 case "(($ac_try" in
11544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11545 *) ac_try_echo=$ac_try;;
11546 esac
11547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11548 $as_echo "$ac_try_echo") >&5
11549 (eval "$ac_compile") 2>conftest.er1
11550 ac_status=$?
11551 grep -v '^ *+' conftest.er1 >conftest.err
11552 rm -f conftest.er1
11553 cat conftest.err >&5
11554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555 (exit $ac_status); } && {
11556 test -z "$ac_c_werror_flag" ||
11557 test ! -s conftest.err
11558 } && test -s conftest.$ac_objext; then
11559 ac_header_compiler=yes
11560 else
11561 $as_echo "$as_me: failed program was:" >&5
11562 sed 's/^/| /' conftest.$ac_ext >&5
11563
11564 ac_header_compiler=no
11565 fi
11566
11567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11568 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11569 $as_echo "$ac_header_compiler" >&6; }
11570
11571 # Is the header present?
11572 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11573 $as_echo_n "checking $ac_header presence... " >&6; }
11574 cat >conftest.$ac_ext <<_ACEOF
11575 /* confdefs.h. */
11576 _ACEOF
11577 cat confdefs.h >>conftest.$ac_ext
11578 cat >>conftest.$ac_ext <<_ACEOF
11579 /* end confdefs.h. */
11580 #include <$ac_header>
11581 _ACEOF
11582 if { (ac_try="$ac_cpp conftest.$ac_ext"
11583 case "(($ac_try" in
11584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11585 *) ac_try_echo=$ac_try;;
11586 esac
11587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11588 $as_echo "$ac_try_echo") >&5
11589 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11590 ac_status=$?
11591 grep -v '^ *+' conftest.er1 >conftest.err
11592 rm -f conftest.er1
11593 cat conftest.err >&5
11594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 (exit $ac_status); } >/dev/null && {
11596 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11597 test ! -s conftest.err
11598 }; then
11599 ac_header_preproc=yes
11600 else
11601 $as_echo "$as_me: failed program was:" >&5
11602 sed 's/^/| /' conftest.$ac_ext >&5
11603
11604 ac_header_preproc=no
11605 fi
11606
11607 rm -f conftest.err conftest.$ac_ext
11608 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11609 $as_echo "$ac_header_preproc" >&6; }
11610
11611 # So? What about this header?
11612 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11613 yes:no: )
11614 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11615 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11616 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11617 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11618 ac_header_preproc=yes
11619 ;;
11620 no:yes:* )
11621 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11622 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11623 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11624 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11625 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11626 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11627 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11628 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11629 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11630 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11631 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11632 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11633
11634 ;;
11635 esac
11636 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11637 $as_echo_n "checking for $ac_header... " >&6; }
11638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11639 $as_echo_n "(cached) " >&6
11640 else
11641 eval "$as_ac_Header=\$ac_header_preproc"
11642 fi
11643 ac_res=`eval 'as_val=${'$as_ac_Header'}
11644 $as_echo "$as_val"'`
11645 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11646 $as_echo "$ac_res" >&6; }
11647
11648 fi
11649 as_val=`eval 'as_val=${'$as_ac_Header'}
11650 $as_echo "$as_val"'`
11651 if test "x$as_val" = x""yes; then
11652 cat >>confdefs.h <<_ACEOF 8683 cat >>confdefs.h <<_ACEOF
11653 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8684 #define HAVE_STRINGS_H 1
11654 _ACEOF 8685 _ACEOF
11655 8686
11656 fi 8687 fi
11657 8688
11658 done 8689 done
11659 8690
11660 if test "x$MACOSX" = "xyes"; then 8691 if test "x$MACOSX" = "xyes"; then
11661 cat >>confdefs.h <<\_ACEOF 8692 $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h
11662 #define NO_STRINGS_WITH_STRING_H 1 8693
11663 _ACEOF 8694 else
11664 8695
11665 else 8696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strings.h can be included after string.h" >&5
11666
11667 { $as_echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5
11668 $as_echo_n "checking if strings.h can be included after string.h... " >&6; } 8697 $as_echo_n "checking if strings.h can be included after string.h... " >&6; }
11669 cppflags_save=$CPPFLAGS 8698 cppflags_save=$CPPFLAGS
11670 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 8699 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11671 cat >conftest.$ac_ext <<_ACEOF 8700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11672 /* confdefs.h. */
11673 _ACEOF
11674 cat confdefs.h >>conftest.$ac_ext
11675 cat >>conftest.$ac_ext <<_ACEOF
11676 /* end confdefs.h. */ 8701 /* end confdefs.h. */
11677 8702
11678 #if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO) 8703 #if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
11679 # define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */ 8704 # define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */
11680 /* but don't do it on AIX 5.1 (Uribarri) */ 8705 /* but don't do it on AIX 5.1 (Uribarri) */
11695 int i; i = 0; 8720 int i; i = 0;
11696 ; 8721 ;
11697 return 0; 8722 return 0;
11698 } 8723 }
11699 _ACEOF 8724 _ACEOF
11700 rm -f conftest.$ac_objext 8725 if ac_fn_c_try_compile "$LINENO"; then :
11701 if { (ac_try="$ac_compile" 8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11702 case "(($ac_try" in
11703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11704 *) ac_try_echo=$ac_try;;
11705 esac
11706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11707 $as_echo "$ac_try_echo") >&5
11708 (eval "$ac_compile") 2>conftest.er1
11709 ac_status=$?
11710 grep -v '^ *+' conftest.er1 >conftest.err
11711 rm -f conftest.er1
11712 cat conftest.err >&5
11713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714 (exit $ac_status); } && {
11715 test -z "$ac_c_werror_flag" ||
11716 test ! -s conftest.err
11717 } && test -s conftest.$ac_objext; then
11718 { $as_echo "$as_me:$LINENO: result: yes" >&5
11719 $as_echo "yes" >&6; } 8727 $as_echo "yes" >&6; }
11720 else 8728 else
11721 $as_echo "$as_me: failed program was:" >&5 8729 $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h
11722 sed 's/^/| /' conftest.$ac_ext >&5 8730
11723 8731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11724 cat >>confdefs.h <<\_ACEOF
11725 #define NO_STRINGS_WITH_STRING_H 1
11726 _ACEOF
11727
11728 { $as_echo "$as_me:$LINENO: result: no" >&5
11729 $as_echo "no" >&6; } 8732 $as_echo "no" >&6; }
11730 fi 8733 fi
11731
11732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11733 CPPFLAGS=$cppflags_save 8735 CPPFLAGS=$cppflags_save
11734 fi 8736 fi
11735 8737
11736 if test $ac_cv_c_compiler_gnu = yes; then 8738 if test $ac_cv_c_compiler_gnu = yes; then
11737 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 8739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
11738 $as_echo_n "checking whether $CC needs -traditional... " >&6; } 8740 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
11739 if test "${ac_cv_prog_gcc_traditional+set}" = set; then 8741 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
11740 $as_echo_n "(cached) " >&6 8742 $as_echo_n "(cached) " >&6
11741 else 8743 else
11742 ac_pattern="Autoconf.*'x'" 8744 ac_pattern="Autoconf.*'x'"
11743 cat >conftest.$ac_ext <<_ACEOF 8745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11744 /* confdefs.h. */
11745 _ACEOF
11746 cat confdefs.h >>conftest.$ac_ext
11747 cat >>conftest.$ac_ext <<_ACEOF
11748 /* end confdefs.h. */ 8746 /* end confdefs.h. */
11749 #include <sgtty.h> 8747 #include <sgtty.h>
11750 Autoconf TIOCGETP 8748 Autoconf TIOCGETP
11751 _ACEOF 8749 _ACEOF
11752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11753 $EGREP "$ac_pattern" >/dev/null 2>&1; then 8751 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
11754 ac_cv_prog_gcc_traditional=yes 8752 ac_cv_prog_gcc_traditional=yes
11755 else 8753 else
11756 ac_cv_prog_gcc_traditional=no 8754 ac_cv_prog_gcc_traditional=no
11757 fi 8755 fi
11758 rm -f conftest* 8756 rm -f conftest*
11759 8757
11760 8758
11761 if test $ac_cv_prog_gcc_traditional = no; then 8759 if test $ac_cv_prog_gcc_traditional = no; then
11762 cat >conftest.$ac_ext <<_ACEOF 8760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11763 /* confdefs.h. */
11764 _ACEOF
11765 cat confdefs.h >>conftest.$ac_ext
11766 cat >>conftest.$ac_ext <<_ACEOF
11767 /* end confdefs.h. */ 8761 /* end confdefs.h. */
11768 #include <termio.h> 8762 #include <termio.h>
11769 Autoconf TCGETA 8763 Autoconf TCGETA
11770 _ACEOF 8764 _ACEOF
11771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11772 $EGREP "$ac_pattern" >/dev/null 2>&1; then 8766 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
11773 ac_cv_prog_gcc_traditional=yes 8767 ac_cv_prog_gcc_traditional=yes
11774 fi 8768 fi
11775 rm -f conftest* 8769 rm -f conftest*
11776 8770
11777 fi 8771 fi
11778 fi 8772 fi
11779 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
11780 $as_echo "$ac_cv_prog_gcc_traditional" >&6; } 8774 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
11781 if test $ac_cv_prog_gcc_traditional = yes; then 8775 if test $ac_cv_prog_gcc_traditional = yes; then
11782 CC="$CC -traditional" 8776 CC="$CC -traditional"
11783 fi 8777 fi
11784 fi 8778 fi
11785 8779
11786 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 8780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11787 $as_echo_n "checking for an ANSI C-conforming const... " >&6; } 8781 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11788 if test "${ac_cv_c_const+set}" = set; then 8782 if test "${ac_cv_c_const+set}" = set; then :
11789 $as_echo_n "(cached) " >&6 8783 $as_echo_n "(cached) " >&6
11790 else 8784 else
11791 cat >conftest.$ac_ext <<_ACEOF 8785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11792 /* confdefs.h. */
11793 _ACEOF
11794 cat confdefs.h >>conftest.$ac_ext
11795 cat >>conftest.$ac_ext <<_ACEOF
11796 /* end confdefs.h. */ 8786 /* end confdefs.h. */
11797 8787
11798 int 8788 int
11799 main () 8789 main ()
11800 { 8790 {
11850 8840
11851 ; 8841 ;
11852 return 0; 8842 return 0;
11853 } 8843 }
11854 _ACEOF 8844 _ACEOF
11855 rm -f conftest.$ac_objext 8845 if ac_fn_c_try_compile "$LINENO"; then :
11856 if { (ac_try="$ac_compile"
11857 case "(($ac_try" in
11858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11859 *) ac_try_echo=$ac_try;;
11860 esac
11861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11862 $as_echo "$ac_try_echo") >&5
11863 (eval "$ac_compile") 2>conftest.er1
11864 ac_status=$?
11865 grep -v '^ *+' conftest.er1 >conftest.err
11866 rm -f conftest.er1
11867 cat conftest.err >&5
11868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869 (exit $ac_status); } && {
11870 test -z "$ac_c_werror_flag" ||
11871 test ! -s conftest.err
11872 } && test -s conftest.$ac_objext; then
11873 ac_cv_c_const=yes 8846 ac_cv_c_const=yes
11874 else 8847 else
11875 $as_echo "$as_me: failed program was:" >&5 8848 ac_cv_c_const=no
11876 sed 's/^/| /' conftest.$ac_ext >&5 8849 fi
11877
11878 ac_cv_c_const=no
11879 fi
11880
11881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11882 fi 8851 fi
11883 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11884 $as_echo "$ac_cv_c_const" >&6; } 8853 $as_echo "$ac_cv_c_const" >&6; }
11885 if test $ac_cv_c_const = no; then 8854 if test $ac_cv_c_const = no; then
11886 8855
11887 cat >>confdefs.h <<\_ACEOF 8856 $as_echo "#define const /**/" >>confdefs.h
11888 #define const /**/ 8857
11889 _ACEOF 8858 fi
11890 8859
11891 fi 8860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
11892
11893 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
11894 $as_echo_n "checking for working volatile... " >&6; } 8861 $as_echo_n "checking for working volatile... " >&6; }
11895 if test "${ac_cv_c_volatile+set}" = set; then 8862 if test "${ac_cv_c_volatile+set}" = set; then :
11896 $as_echo_n "(cached) " >&6 8863 $as_echo_n "(cached) " >&6
11897 else 8864 else
11898 cat >conftest.$ac_ext <<_ACEOF 8865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11899 /* confdefs.h. */
11900 _ACEOF
11901 cat confdefs.h >>conftest.$ac_ext
11902 cat >>conftest.$ac_ext <<_ACEOF
11903 /* end confdefs.h. */ 8866 /* end confdefs.h. */
11904 8867
11905 int 8868 int
11906 main () 8869 main ()
11907 { 8870 {
11911 return !x && !y; 8874 return !x && !y;
11912 ; 8875 ;
11913 return 0; 8876 return 0;
11914 } 8877 }
11915 _ACEOF 8878 _ACEOF
11916 rm -f conftest.$ac_objext 8879 if ac_fn_c_try_compile "$LINENO"; then :
11917 if { (ac_try="$ac_compile"
11918 case "(($ac_try" in
11919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11920 *) ac_try_echo=$ac_try;;
11921 esac
11922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11923 $as_echo "$ac_try_echo") >&5
11924 (eval "$ac_compile") 2>conftest.er1
11925 ac_status=$?
11926 grep -v '^ *+' conftest.er1 >conftest.err
11927 rm -f conftest.er1
11928 cat conftest.err >&5
11929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930 (exit $ac_status); } && {
11931 test -z "$ac_c_werror_flag" ||
11932 test ! -s conftest.err
11933 } && test -s conftest.$ac_objext; then
11934 ac_cv_c_volatile=yes 8880 ac_cv_c_volatile=yes
11935 else 8881 else
11936 $as_echo "$as_me: failed program was:" >&5 8882 ac_cv_c_volatile=no
11937 sed 's/^/| /' conftest.$ac_ext >&5 8883 fi
11938
11939 ac_cv_c_volatile=no
11940 fi
11941
11942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11943 fi 8885 fi
11944 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5 8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
11945 $as_echo "$ac_cv_c_volatile" >&6; } 8887 $as_echo "$ac_cv_c_volatile" >&6; }
11946 if test $ac_cv_c_volatile = no; then 8888 if test $ac_cv_c_volatile = no; then
11947 8889
11948 cat >>confdefs.h <<\_ACEOF 8890 $as_echo "#define volatile /**/" >>confdefs.h
11949 #define volatile /**/ 8891
11950 _ACEOF 8892 fi
11951 8893
11952 fi 8894 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
11953 8895 if test "x$ac_cv_type_mode_t" = x""yes; then :
11954 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5 8896
11955 $as_echo_n "checking for mode_t... " >&6; }
11956 if test "${ac_cv_type_mode_t+set}" = set; then
11957 $as_echo_n "(cached) " >&6
11958 else
11959 ac_cv_type_mode_t=no
11960 cat >conftest.$ac_ext <<_ACEOF
11961 /* confdefs.h. */
11962 _ACEOF
11963 cat confdefs.h >>conftest.$ac_ext
11964 cat >>conftest.$ac_ext <<_ACEOF
11965 /* end confdefs.h. */
11966 $ac_includes_default
11967 int
11968 main ()
11969 {
11970 if (sizeof (mode_t))
11971 return 0;
11972 ;
11973 return 0;
11974 }
11975 _ACEOF
11976 rm -f conftest.$ac_objext
11977 if { (ac_try="$ac_compile"
11978 case "(($ac_try" in
11979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11980 *) ac_try_echo=$ac_try;;
11981 esac
11982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11983 $as_echo "$ac_try_echo") >&5
11984 (eval "$ac_compile") 2>conftest.er1
11985 ac_status=$?
11986 grep -v '^ *+' conftest.er1 >conftest.err
11987 rm -f conftest.er1
11988 cat conftest.err >&5
11989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990 (exit $ac_status); } && {
11991 test -z "$ac_c_werror_flag" ||
11992 test ! -s conftest.err
11993 } && test -s conftest.$ac_objext; then
11994 cat >conftest.$ac_ext <<_ACEOF
11995 /* confdefs.h. */
11996 _ACEOF
11997 cat confdefs.h >>conftest.$ac_ext
11998 cat >>conftest.$ac_ext <<_ACEOF
11999 /* end confdefs.h. */
12000 $ac_includes_default
12001 int
12002 main ()
12003 {
12004 if (sizeof ((mode_t)))
12005 return 0;
12006 ;
12007 return 0;
12008 }
12009 _ACEOF
12010 rm -f conftest.$ac_objext
12011 if { (ac_try="$ac_compile"
12012 case "(($ac_try" in
12013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12014 *) ac_try_echo=$ac_try;;
12015 esac
12016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12017 $as_echo "$ac_try_echo") >&5
12018 (eval "$ac_compile") 2>conftest.er1
12019 ac_status=$?
12020 grep -v '^ *+' conftest.er1 >conftest.err
12021 rm -f conftest.er1
12022 cat conftest.err >&5
12023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024 (exit $ac_status); } && {
12025 test -z "$ac_c_werror_flag" ||
12026 test ! -s conftest.err
12027 } && test -s conftest.$ac_objext; then
12028 :
12029 else
12030 $as_echo "$as_me: failed program was:" >&5
12031 sed 's/^/| /' conftest.$ac_ext >&5
12032
12033 ac_cv_type_mode_t=yes
12034 fi
12035
12036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12037 else
12038 $as_echo "$as_me: failed program was:" >&5
12039 sed 's/^/| /' conftest.$ac_ext >&5
12040
12041
12042 fi
12043
12044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12045 fi
12046 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
12047 $as_echo "$ac_cv_type_mode_t" >&6; }
12048 if test "x$ac_cv_type_mode_t" = x""yes; then
12049 :
12050 else 8897 else
12051 8898
12052 cat >>confdefs.h <<_ACEOF 8899 cat >>confdefs.h <<_ACEOF
12053 #define mode_t int 8900 #define mode_t int
12054 _ACEOF 8901 _ACEOF
12055 8902
12056 fi 8903 fi
12057 8904
12058 { $as_echo "$as_me:$LINENO: checking for off_t" >&5 8905 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
12059 $as_echo_n "checking for off_t... " >&6; } 8906 if test "x$ac_cv_type_off_t" = x""yes; then :
12060 if test "${ac_cv_type_off_t+set}" = set; then 8907
12061 $as_echo_n "(cached) " >&6
12062 else
12063 ac_cv_type_off_t=no
12064 cat >conftest.$ac_ext <<_ACEOF
12065 /* confdefs.h. */
12066 _ACEOF
12067 cat confdefs.h >>conftest.$ac_ext
12068 cat >>conftest.$ac_ext <<_ACEOF
12069 /* end confdefs.h. */
12070 $ac_includes_default
12071 int
12072 main ()
12073 {
12074 if (sizeof (off_t))
12075 return 0;
12076 ;
12077 return 0;
12078 }
12079 _ACEOF
12080 rm -f conftest.$ac_objext
12081 if { (ac_try="$ac_compile"
12082 case "(($ac_try" in
12083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12084 *) ac_try_echo=$ac_try;;
12085 esac
12086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12087 $as_echo "$ac_try_echo") >&5
12088 (eval "$ac_compile") 2>conftest.er1
12089 ac_status=$?
12090 grep -v '^ *+' conftest.er1 >conftest.err
12091 rm -f conftest.er1
12092 cat conftest.err >&5
12093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); } && {
12095 test -z "$ac_c_werror_flag" ||
12096 test ! -s conftest.err
12097 } && test -s conftest.$ac_objext; then
12098 cat >conftest.$ac_ext <<_ACEOF
12099 /* confdefs.h. */
12100 _ACEOF
12101 cat confdefs.h >>conftest.$ac_ext
12102 cat >>conftest.$ac_ext <<_ACEOF
12103 /* end confdefs.h. */
12104 $ac_includes_default
12105 int
12106 main ()
12107 {
12108 if (sizeof ((off_t)))
12109 return 0;
12110 ;
12111 return 0;
12112 }
12113 _ACEOF
12114 rm -f conftest.$ac_objext
12115 if { (ac_try="$ac_compile"
12116 case "(($ac_try" in
12117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12118 *) ac_try_echo=$ac_try;;
12119 esac
12120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12121 $as_echo "$ac_try_echo") >&5
12122 (eval "$ac_compile") 2>conftest.er1
12123 ac_status=$?
12124 grep -v '^ *+' conftest.er1 >conftest.err
12125 rm -f conftest.er1
12126 cat conftest.err >&5
12127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); } && {
12129 test -z "$ac_c_werror_flag" ||
12130 test ! -s conftest.err
12131 } && test -s conftest.$ac_objext; then
12132 :
12133 else
12134 $as_echo "$as_me: failed program was:" >&5
12135 sed 's/^/| /' conftest.$ac_ext >&5
12136
12137 ac_cv_type_off_t=yes
12138 fi
12139
12140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12141 else
12142 $as_echo "$as_me: failed program was:" >&5
12143 sed 's/^/| /' conftest.$ac_ext >&5
12144
12145
12146 fi
12147
12148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12149 fi
12150 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
12151 $as_echo "$ac_cv_type_off_t" >&6; }
12152 if test "x$ac_cv_type_off_t" = x""yes; then
12153 :
12154 else 8908 else
12155 8909
12156 cat >>confdefs.h <<_ACEOF 8910 cat >>confdefs.h <<_ACEOF
12157 #define off_t long int 8911 #define off_t long int
12158 _ACEOF 8912 _ACEOF
12159 8913
12160 fi 8914 fi
12161 8915
12162 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5 8916 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12163 $as_echo_n "checking for pid_t... " >&6; } 8917 if test "x$ac_cv_type_pid_t" = x""yes; then :
12164 if test "${ac_cv_type_pid_t+set}" = set; then 8918
12165 $as_echo_n "(cached) " >&6
12166 else
12167 ac_cv_type_pid_t=no
12168 cat >conftest.$ac_ext <<_ACEOF
12169 /* confdefs.h. */
12170 _ACEOF
12171 cat confdefs.h >>conftest.$ac_ext
12172 cat >>conftest.$ac_ext <<_ACEOF
12173 /* end confdefs.h. */
12174 $ac_includes_default
12175 int
12176 main ()
12177 {
12178 if (sizeof (pid_t))
12179 return 0;
12180 ;
12181 return 0;
12182 }
12183 _ACEOF
12184 rm -f conftest.$ac_objext
12185 if { (ac_try="$ac_compile"
12186 case "(($ac_try" in
12187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12188 *) ac_try_echo=$ac_try;;
12189 esac
12190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12191 $as_echo "$ac_try_echo") >&5
12192 (eval "$ac_compile") 2>conftest.er1
12193 ac_status=$?
12194 grep -v '^ *+' conftest.er1 >conftest.err
12195 rm -f conftest.er1
12196 cat conftest.err >&5
12197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); } && {
12199 test -z "$ac_c_werror_flag" ||
12200 test ! -s conftest.err
12201 } && test -s conftest.$ac_objext; then
12202 cat >conftest.$ac_ext <<_ACEOF
12203 /* confdefs.h. */
12204 _ACEOF
12205 cat confdefs.h >>conftest.$ac_ext
12206 cat >>conftest.$ac_ext <<_ACEOF
12207 /* end confdefs.h. */
12208 $ac_includes_default
12209 int
12210 main ()
12211 {
12212 if (sizeof ((pid_t)))
12213 return 0;
12214 ;
12215 return 0;
12216 }
12217 _ACEOF
12218 rm -f conftest.$ac_objext
12219 if { (ac_try="$ac_compile"
12220 case "(($ac_try" in
12221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12222 *) ac_try_echo=$ac_try;;
12223 esac
12224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12225 $as_echo "$ac_try_echo") >&5
12226 (eval "$ac_compile") 2>conftest.er1
12227 ac_status=$?
12228 grep -v '^ *+' conftest.er1 >conftest.err
12229 rm -f conftest.er1
12230 cat conftest.err >&5
12231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232 (exit $ac_status); } && {
12233 test -z "$ac_c_werror_flag" ||
12234 test ! -s conftest.err
12235 } && test -s conftest.$ac_objext; then
12236 :
12237 else
12238 $as_echo "$as_me: failed program was:" >&5
12239 sed 's/^/| /' conftest.$ac_ext >&5
12240
12241 ac_cv_type_pid_t=yes
12242 fi
12243
12244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12245 else
12246 $as_echo "$as_me: failed program was:" >&5
12247 sed 's/^/| /' conftest.$ac_ext >&5
12248
12249
12250 fi
12251
12252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12253 fi
12254 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
12255 $as_echo "$ac_cv_type_pid_t" >&6; }
12256 if test "x$ac_cv_type_pid_t" = x""yes; then
12257 :
12258 else 8919 else
12259 8920
12260 cat >>confdefs.h <<_ACEOF 8921 cat >>confdefs.h <<_ACEOF
12261 #define pid_t int 8922 #define pid_t int
12262 _ACEOF 8923 _ACEOF
12263 8924
12264 fi 8925 fi
12265 8926
12266 { $as_echo "$as_me:$LINENO: checking for size_t" >&5 8927 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12267 $as_echo_n "checking for size_t... " >&6; } 8928 if test "x$ac_cv_type_size_t" = x""yes; then :
12268 if test "${ac_cv_type_size_t+set}" = set; then 8929
12269 $as_echo_n "(cached) " >&6
12270 else
12271 ac_cv_type_size_t=no
12272 cat >conftest.$ac_ext <<_ACEOF
12273 /* confdefs.h. */
12274 _ACEOF
12275 cat confdefs.h >>conftest.$ac_ext
12276 cat >>conftest.$ac_ext <<_ACEOF
12277 /* end confdefs.h. */
12278 $ac_includes_default
12279 int
12280 main ()
12281 {
12282 if (sizeof (size_t))
12283 return 0;
12284 ;
12285 return 0;
12286 }
12287 _ACEOF
12288 rm -f conftest.$ac_objext
12289 if { (ac_try="$ac_compile"
12290 case "(($ac_try" in
12291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12292 *) ac_try_echo=$ac_try;;
12293 esac
12294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12295 $as_echo "$ac_try_echo") >&5
12296 (eval "$ac_compile") 2>conftest.er1
12297 ac_status=$?
12298 grep -v '^ *+' conftest.er1 >conftest.err
12299 rm -f conftest.er1
12300 cat conftest.err >&5
12301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); } && {
12303 test -z "$ac_c_werror_flag" ||
12304 test ! -s conftest.err
12305 } && test -s conftest.$ac_objext; then
12306 cat >conftest.$ac_ext <<_ACEOF
12307 /* confdefs.h. */
12308 _ACEOF
12309 cat confdefs.h >>conftest.$ac_ext
12310 cat >>conftest.$ac_ext <<_ACEOF
12311 /* end confdefs.h. */
12312 $ac_includes_default
12313 int
12314 main ()
12315 {
12316 if (sizeof ((size_t)))
12317 return 0;
12318 ;
12319 return 0;
12320 }
12321 _ACEOF
12322 rm -f conftest.$ac_objext
12323 if { (ac_try="$ac_compile"
12324 case "(($ac_try" in
12325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12326 *) ac_try_echo=$ac_try;;
12327 esac
12328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12329 $as_echo "$ac_try_echo") >&5
12330 (eval "$ac_compile") 2>conftest.er1
12331 ac_status=$?
12332 grep -v '^ *+' conftest.er1 >conftest.err
12333 rm -f conftest.er1
12334 cat conftest.err >&5
12335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); } && {
12337 test -z "$ac_c_werror_flag" ||
12338 test ! -s conftest.err
12339 } && test -s conftest.$ac_objext; then
12340 :
12341 else
12342 $as_echo "$as_me: failed program was:" >&5
12343 sed 's/^/| /' conftest.$ac_ext >&5
12344
12345 ac_cv_type_size_t=yes
12346 fi
12347
12348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12349 else
12350 $as_echo "$as_me: failed program was:" >&5
12351 sed 's/^/| /' conftest.$ac_ext >&5
12352
12353
12354 fi
12355
12356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12357 fi
12358 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12359 $as_echo "$ac_cv_type_size_t" >&6; }
12360 if test "x$ac_cv_type_size_t" = x""yes; then
12361 :
12362 else 8930 else
12363 8931
12364 cat >>confdefs.h <<_ACEOF 8932 cat >>confdefs.h <<_ACEOF
12365 #define size_t unsigned int 8933 #define size_t unsigned int
12366 _ACEOF 8934 _ACEOF
12367 8935
12368 fi 8936 fi
12369 8937
12370 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 8938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
12371 $as_echo_n "checking for uid_t in sys/types.h... " >&6; } 8939 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
12372 if test "${ac_cv_type_uid_t+set}" = set; then 8940 if test "${ac_cv_type_uid_t+set}" = set; then :
12373 $as_echo_n "(cached) " >&6 8941 $as_echo_n "(cached) " >&6
12374 else 8942 else
12375 cat >conftest.$ac_ext <<_ACEOF 8943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12376 /* confdefs.h. */
12377 _ACEOF
12378 cat confdefs.h >>conftest.$ac_ext
12379 cat >>conftest.$ac_ext <<_ACEOF
12380 /* end confdefs.h. */ 8944 /* end confdefs.h. */
12381 #include <sys/types.h> 8945 #include <sys/types.h>
12382 8946
12383 _ACEOF 8947 _ACEOF
12384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12385 $EGREP "uid_t" >/dev/null 2>&1; then 8949 $EGREP "uid_t" >/dev/null 2>&1; then :
12386 ac_cv_type_uid_t=yes 8950 ac_cv_type_uid_t=yes
12387 else 8951 else
12388 ac_cv_type_uid_t=no 8952 ac_cv_type_uid_t=no
12389 fi 8953 fi
12390 rm -f conftest* 8954 rm -f conftest*
12391 8955
12392 fi 8956 fi
12393 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
12394 $as_echo "$ac_cv_type_uid_t" >&6; } 8958 $as_echo "$ac_cv_type_uid_t" >&6; }
12395 if test $ac_cv_type_uid_t = no; then 8959 if test $ac_cv_type_uid_t = no; then
12396 8960
12397 cat >>confdefs.h <<\_ACEOF 8961 $as_echo "#define uid_t int" >>confdefs.h
12398 #define uid_t int 8962
12399 _ACEOF 8963
12400 8964 $as_echo "#define gid_t int" >>confdefs.h
12401 8965
12402 cat >>confdefs.h <<\_ACEOF 8966 fi
12403 #define gid_t int 8967
12404 _ACEOF 8968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
12405
12406 fi
12407
12408 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
12409 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 8969 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12410 if test "${ac_cv_header_time+set}" = set; then 8970 if test "${ac_cv_header_time+set}" = set; then :
12411 $as_echo_n "(cached) " >&6 8971 $as_echo_n "(cached) " >&6
12412 else 8972 else
12413 cat >conftest.$ac_ext <<_ACEOF 8973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12414 /* confdefs.h. */
12415 _ACEOF
12416 cat confdefs.h >>conftest.$ac_ext
12417 cat >>conftest.$ac_ext <<_ACEOF
12418 /* end confdefs.h. */ 8974 /* end confdefs.h. */
12419 #include <sys/types.h> 8975 #include <sys/types.h>
12420 #include <sys/time.h> 8976 #include <sys/time.h>
12421 #include <time.h> 8977 #include <time.h>
12422 8978
12427 return 0; 8983 return 0;
12428 ; 8984 ;
12429 return 0; 8985 return 0;
12430 } 8986 }
12431 _ACEOF 8987 _ACEOF
12432 rm -f conftest.$ac_objext 8988 if ac_fn_c_try_compile "$LINENO"; then :
12433 if { (ac_try="$ac_compile"
12434 case "(($ac_try" in
12435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12436 *) ac_try_echo=$ac_try;;
12437 esac
12438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12439 $as_echo "$ac_try_echo") >&5
12440 (eval "$ac_compile") 2>conftest.er1
12441 ac_status=$?
12442 grep -v '^ *+' conftest.er1 >conftest.err
12443 rm -f conftest.er1
12444 cat conftest.err >&5
12445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446 (exit $ac_status); } && {
12447 test -z "$ac_c_werror_flag" ||
12448 test ! -s conftest.err
12449 } && test -s conftest.$ac_objext; then
12450 ac_cv_header_time=yes 8989 ac_cv_header_time=yes
12451 else 8990 else
12452 $as_echo "$as_me: failed program was:" >&5 8991 ac_cv_header_time=no
12453 sed 's/^/| /' conftest.$ac_ext >&5 8992 fi
12454
12455 ac_cv_header_time=no
12456 fi
12457
12458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12459 fi 8994 fi
12460 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 8995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
12461 $as_echo "$ac_cv_header_time" >&6; } 8996 $as_echo "$ac_cv_header_time" >&6; }
12462 if test $ac_cv_header_time = yes; then 8997 if test $ac_cv_header_time = yes; then
12463 8998
12464 cat >>confdefs.h <<\_ACEOF 8999 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
12465 #define TIME_WITH_SYS_TIME 1 9000
12466 _ACEOF 9001 fi
12467 9002
12468 fi 9003 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
12469 9004 if test "x$ac_cv_type_ino_t" = x""yes; then :
12470 { $as_echo "$as_me:$LINENO: checking for ino_t" >&5 9005
12471 $as_echo_n "checking for ino_t... " >&6; }
12472 if test "${ac_cv_type_ino_t+set}" = set; then
12473 $as_echo_n "(cached) " >&6
12474 else
12475 ac_cv_type_ino_t=no
12476 cat >conftest.$ac_ext <<_ACEOF
12477 /* confdefs.h. */
12478 _ACEOF
12479 cat confdefs.h >>conftest.$ac_ext
12480 cat >>conftest.$ac_ext <<_ACEOF
12481 /* end confdefs.h. */
12482 $ac_includes_default
12483 int
12484 main ()
12485 {
12486 if (sizeof (ino_t))
12487 return 0;
12488 ;
12489 return 0;
12490 }
12491 _ACEOF
12492 rm -f conftest.$ac_objext
12493 if { (ac_try="$ac_compile"
12494 case "(($ac_try" in
12495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12496 *) ac_try_echo=$ac_try;;
12497 esac
12498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12499 $as_echo "$ac_try_echo") >&5
12500 (eval "$ac_compile") 2>conftest.er1
12501 ac_status=$?
12502 grep -v '^ *+' conftest.er1 >conftest.err
12503 rm -f conftest.er1
12504 cat conftest.err >&5
12505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506 (exit $ac_status); } && {
12507 test -z "$ac_c_werror_flag" ||
12508 test ! -s conftest.err
12509 } && test -s conftest.$ac_objext; then
12510 cat >conftest.$ac_ext <<_ACEOF
12511 /* confdefs.h. */
12512 _ACEOF
12513 cat confdefs.h >>conftest.$ac_ext
12514 cat >>conftest.$ac_ext <<_ACEOF
12515 /* end confdefs.h. */
12516 $ac_includes_default
12517 int
12518 main ()
12519 {
12520 if (sizeof ((ino_t)))
12521 return 0;
12522 ;
12523 return 0;
12524 }
12525 _ACEOF
12526 rm -f conftest.$ac_objext
12527 if { (ac_try="$ac_compile"
12528 case "(($ac_try" in
12529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12530 *) ac_try_echo=$ac_try;;
12531 esac
12532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12533 $as_echo "$ac_try_echo") >&5
12534 (eval "$ac_compile") 2>conftest.er1
12535 ac_status=$?
12536 grep -v '^ *+' conftest.er1 >conftest.err
12537 rm -f conftest.er1
12538 cat conftest.err >&5
12539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); } && {
12541 test -z "$ac_c_werror_flag" ||
12542 test ! -s conftest.err
12543 } && test -s conftest.$ac_objext; then
12544 :
12545 else
12546 $as_echo "$as_me: failed program was:" >&5
12547 sed 's/^/| /' conftest.$ac_ext >&5
12548
12549 ac_cv_type_ino_t=yes
12550 fi
12551
12552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12553 else
12554 $as_echo "$as_me: failed program was:" >&5
12555 sed 's/^/| /' conftest.$ac_ext >&5
12556
12557
12558 fi
12559
12560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12561 fi
12562 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
12563 $as_echo "$ac_cv_type_ino_t" >&6; }
12564 if test "x$ac_cv_type_ino_t" = x""yes; then
12565 :
12566 else 9006 else
12567 9007
12568 cat >>confdefs.h <<_ACEOF 9008 cat >>confdefs.h <<_ACEOF
12569 #define ino_t long 9009 #define ino_t long
12570 _ACEOF 9010 _ACEOF
12571 9011
12572 fi 9012 fi
12573 9013
12574 { $as_echo "$as_me:$LINENO: checking for dev_t" >&5 9014 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
12575 $as_echo_n "checking for dev_t... " >&6; } 9015 if test "x$ac_cv_type_dev_t" = x""yes; then :
12576 if test "${ac_cv_type_dev_t+set}" = set; then 9016
12577 $as_echo_n "(cached) " >&6
12578 else
12579 ac_cv_type_dev_t=no
12580 cat >conftest.$ac_ext <<_ACEOF
12581 /* confdefs.h. */
12582 _ACEOF
12583 cat confdefs.h >>conftest.$ac_ext
12584 cat >>conftest.$ac_ext <<_ACEOF
12585 /* end confdefs.h. */
12586 $ac_includes_default
12587 int
12588 main ()
12589 {
12590 if (sizeof (dev_t))
12591 return 0;
12592 ;
12593 return 0;
12594 }
12595 _ACEOF
12596 rm -f conftest.$ac_objext
12597 if { (ac_try="$ac_compile"
12598 case "(($ac_try" in
12599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12600 *) ac_try_echo=$ac_try;;
12601 esac
12602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12603 $as_echo "$ac_try_echo") >&5
12604 (eval "$ac_compile") 2>conftest.er1
12605 ac_status=$?
12606 grep -v '^ *+' conftest.er1 >conftest.err
12607 rm -f conftest.er1
12608 cat conftest.err >&5
12609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610 (exit $ac_status); } && {
12611 test -z "$ac_c_werror_flag" ||
12612 test ! -s conftest.err
12613 } && test -s conftest.$ac_objext; then
12614 cat >conftest.$ac_ext <<_ACEOF
12615 /* confdefs.h. */
12616 _ACEOF
12617 cat confdefs.h >>conftest.$ac_ext
12618 cat >>conftest.$ac_ext <<_ACEOF
12619 /* end confdefs.h. */
12620 $ac_includes_default
12621 int
12622 main ()
12623 {
12624 if (sizeof ((dev_t)))
12625 return 0;
12626 ;
12627 return 0;
12628 }
12629 _ACEOF
12630 rm -f conftest.$ac_objext
12631 if { (ac_try="$ac_compile"
12632 case "(($ac_try" in
12633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12634 *) ac_try_echo=$ac_try;;
12635 esac
12636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12637 $as_echo "$ac_try_echo") >&5
12638 (eval "$ac_compile") 2>conftest.er1
12639 ac_status=$?
12640 grep -v '^ *+' conftest.er1 >conftest.err
12641 rm -f conftest.er1
12642 cat conftest.err >&5
12643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); } && {
12645 test -z "$ac_c_werror_flag" ||
12646 test ! -s conftest.err
12647 } && test -s conftest.$ac_objext; then
12648 :
12649 else
12650 $as_echo "$as_me: failed program was:" >&5
12651 sed 's/^/| /' conftest.$ac_ext >&5
12652
12653 ac_cv_type_dev_t=yes
12654 fi
12655
12656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12657 else
12658 $as_echo "$as_me: failed program was:" >&5
12659 sed 's/^/| /' conftest.$ac_ext >&5
12660
12661
12662 fi
12663
12664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12665 fi
12666 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
12667 $as_echo "$ac_cv_type_dev_t" >&6; }
12668 if test "x$ac_cv_type_dev_t" = x""yes; then
12669 :
12670 else 9017 else
12671 9018
12672 cat >>confdefs.h <<_ACEOF 9019 cat >>confdefs.h <<_ACEOF
12673 #define dev_t unsigned 9020 #define dev_t unsigned
12674 _ACEOF 9021 _ACEOF
12675 9022
12676 fi 9023 fi
12677 9024
12678 9025
12679 { $as_echo "$as_me:$LINENO: checking for rlim_t" >&5 9026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rlim_t" >&5
12680 $as_echo_n "checking for rlim_t... " >&6; } 9027 $as_echo_n "checking for rlim_t... " >&6; }
12681 if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then 9028 if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
12682 { $as_echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5 9029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_rlim_t" >&5
12683 $as_echo "(cached) $ac_cv_type_rlim_t" >&6; } 9030 $as_echo "(cached) $ac_cv_type_rlim_t" >&6; }
12684 else 9031 else
12685 cat >conftest.$ac_ext <<_ACEOF 9032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12686 /* confdefs.h. */
12687 _ACEOF
12688 cat confdefs.h >>conftest.$ac_ext
12689 cat >>conftest.$ac_ext <<_ACEOF
12690 /* end confdefs.h. */ 9033 /* end confdefs.h. */
12691 9034
12692 #include <sys/types.h> 9035 #include <sys/types.h>
12693 #if STDC_HEADERS 9036 #if STDC_HEADERS
12694 # include <stdlib.h> 9037 # include <stdlib.h>
12698 # include <sys/resource.h> 9041 # include <sys/resource.h>
12699 #endif 9042 #endif
12700 9043
12701 _ACEOF 9044 _ACEOF
12702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12703 $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 9046 $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
12704 ac_cv_type_rlim_t=yes 9047 ac_cv_type_rlim_t=yes
12705 else 9048 else
12706 ac_cv_type_rlim_t=no 9049 ac_cv_type_rlim_t=no
12707 fi 9050 fi
12708 rm -f conftest* 9051 rm -f conftest*
12709 9052
12710 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5 9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_rlim_t" >&5
12711 $as_echo "$ac_cv_type_rlim_t" >&6; } 9054 $as_echo "$ac_cv_type_rlim_t" >&6; }
12712 fi 9055 fi
12713 if test $ac_cv_type_rlim_t = no; then 9056 if test $ac_cv_type_rlim_t = no; then
12714 cat >> confdefs.h <<\EOF 9057 cat >> confdefs.h <<\EOF
12715 #define rlim_t unsigned long 9058 #define rlim_t unsigned long
12716 EOF 9059 EOF
12717 fi 9060 fi
12718 9061
12719 { $as_echo "$as_me:$LINENO: checking for stack_t" >&5 9062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stack_t" >&5
12720 $as_echo_n "checking for stack_t... " >&6; } 9063 $as_echo_n "checking for stack_t... " >&6; }
12721 if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then 9064 if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
12722 { $as_echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5 9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_stack_t" >&5
12723 $as_echo "(cached) $ac_cv_type_stack_t" >&6; } 9066 $as_echo "(cached) $ac_cv_type_stack_t" >&6; }
12724 else 9067 else
12725 cat >conftest.$ac_ext <<_ACEOF 9068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12726 /* confdefs.h. */
12727 _ACEOF
12728 cat confdefs.h >>conftest.$ac_ext
12729 cat >>conftest.$ac_ext <<_ACEOF
12730 /* end confdefs.h. */ 9069 /* end confdefs.h. */
12731 9070
12732 #include <sys/types.h> 9071 #include <sys/types.h>
12733 #if STDC_HEADERS 9072 #if STDC_HEADERS
12734 # include <stdlib.h> 9073 # include <stdlib.h>
12736 #endif 9075 #endif
12737 #include <signal.h> 9076 #include <signal.h>
12738 9077
12739 _ACEOF 9078 _ACEOF
12740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12741 $EGREP "stack_t" >/dev/null 2>&1; then 9080 $EGREP "stack_t" >/dev/null 2>&1; then :
12742 ac_cv_type_stack_t=yes 9081 ac_cv_type_stack_t=yes
12743 else 9082 else
12744 ac_cv_type_stack_t=no 9083 ac_cv_type_stack_t=no
12745 fi 9084 fi
12746 rm -f conftest* 9085 rm -f conftest*
12747 9086
12748 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5 9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_stack_t" >&5
12749 $as_echo "$ac_cv_type_stack_t" >&6; } 9088 $as_echo "$ac_cv_type_stack_t" >&6; }
12750 fi 9089 fi
12751 if test $ac_cv_type_stack_t = no; then 9090 if test $ac_cv_type_stack_t = no; then
12752 cat >> confdefs.h <<\EOF 9091 cat >> confdefs.h <<\EOF
12753 #define stack_t struct sigaltstack 9092 #define stack_t struct sigaltstack
12754 EOF 9093 EOF
12755 fi 9094 fi
12756 9095
12757 { $as_echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5 9096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stack_t has an ss_base field" >&5
12758 $as_echo_n "checking whether stack_t has an ss_base field... " >&6; } 9097 $as_echo_n "checking whether stack_t has an ss_base field... " >&6; }
12759 cat >conftest.$ac_ext <<_ACEOF 9098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12760 /* confdefs.h. */
12761 _ACEOF
12762 cat confdefs.h >>conftest.$ac_ext
12763 cat >>conftest.$ac_ext <<_ACEOF
12764 /* end confdefs.h. */ 9099 /* end confdefs.h. */
12765 9100
12766 #include <sys/types.h> 9101 #include <sys/types.h>
12767 #if STDC_HEADERS 9102 #if STDC_HEADERS
12768 # include <stdlib.h> 9103 # include <stdlib.h>
12777 stack_t sigstk; sigstk.ss_base = 0; 9112 stack_t sigstk; sigstk.ss_base = 0;
12778 ; 9113 ;
12779 return 0; 9114 return 0;
12780 } 9115 }
12781 _ACEOF 9116 _ACEOF
12782 rm -f conftest.$ac_objext 9117 if ac_fn_c_try_compile "$LINENO"; then :
12783 if { (ac_try="$ac_compile" 9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12784 case "(($ac_try" in 9119 $as_echo "yes" >&6; }; $as_echo "#define HAVE_SS_BASE 1" >>confdefs.h
12785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9120
12786 *) ac_try_echo=$ac_try;; 9121 else
12787 esac 9122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12789 $as_echo "$ac_try_echo") >&5
12790 (eval "$ac_compile") 2>conftest.er1
12791 ac_status=$?
12792 grep -v '^ *+' conftest.er1 >conftest.err
12793 rm -f conftest.er1
12794 cat conftest.err >&5
12795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796 (exit $ac_status); } && {
12797 test -z "$ac_c_werror_flag" ||
12798 test ! -s conftest.err
12799 } && test -s conftest.$ac_objext; then
12800 { $as_echo "$as_me:$LINENO: result: yes" >&5
12801 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12802 #define HAVE_SS_BASE 1
12803 _ACEOF
12804
12805 else
12806 $as_echo "$as_me: failed program was:" >&5
12807 sed 's/^/| /' conftest.$ac_ext >&5
12808
12809 { $as_echo "$as_me:$LINENO: result: no" >&5
12810 $as_echo "no" >&6; } 9123 $as_echo "no" >&6; }
12811 fi 9124 fi
12812
12813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12814 9126
12815 olibs="$LIBS" 9127 olibs="$LIBS"
12816 { $as_echo "$as_me:$LINENO: checking --with-tlib argument" >&5 9128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tlib argument" >&5
12817 $as_echo_n "checking --with-tlib argument... " >&6; } 9129 $as_echo_n "checking --with-tlib argument... " >&6; }
12818 9130
12819 # Check whether --with-tlib was given. 9131 # Check whether --with-tlib was given.
12820 if test "${with_tlib+set}" = set; then 9132 if test "${with_tlib+set}" = set; then :
12821 withval=$with_tlib; 9133 withval=$with_tlib;
12822 fi 9134 fi
12823 9135
12824 if test -n "$with_tlib"; then 9136 if test -n "$with_tlib"; then
12825 { $as_echo "$as_me:$LINENO: result: $with_tlib" >&5 9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tlib" >&5
12826 $as_echo "$with_tlib" >&6; } 9138 $as_echo "$with_tlib" >&6; }
12827 LIBS="$LIBS -l$with_tlib" 9139 LIBS="$LIBS -l$with_tlib"
12828 { $as_echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5 9140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking with $with_tlib library" >&5
12829 $as_echo_n "checking for linking with $with_tlib library... " >&6; } 9141 $as_echo_n "checking for linking with $with_tlib library... " >&6; }
12830 cat >conftest.$ac_ext <<_ACEOF 9142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12831 /* confdefs.h. */
12832 _ACEOF
12833 cat confdefs.h >>conftest.$ac_ext
12834 cat >>conftest.$ac_ext <<_ACEOF
12835 /* end confdefs.h. */ 9143 /* end confdefs.h. */
12836 9144
12837 int 9145 int
12838 main () 9146 main ()
12839 { 9147 {
12840 9148
12841 ; 9149 ;
12842 return 0; 9150 return 0;
12843 } 9151 }
12844 _ACEOF 9152 _ACEOF
12845 rm -f conftest.$ac_objext conftest$ac_exeext 9153 if ac_fn_c_try_link "$LINENO"; then :
12846 if { (ac_try="$ac_link" 9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
12847 case "(($ac_try" in
12848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12849 *) ac_try_echo=$ac_try;;
12850 esac
12851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12852 $as_echo "$ac_try_echo") >&5
12853 (eval "$ac_link") 2>conftest.er1
12854 ac_status=$?
12855 grep -v '^ *+' conftest.er1 >conftest.err
12856 rm -f conftest.er1
12857 cat conftest.err >&5
12858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); } && {
12860 test -z "$ac_c_werror_flag" ||
12861 test ! -s conftest.err
12862 } && test -s conftest$ac_exeext && {
12863 test "$cross_compiling" = yes ||
12864 $as_test_x conftest$ac_exeext
12865 }; then
12866 { $as_echo "$as_me:$LINENO: result: OK" >&5
12867 $as_echo "OK" >&6; } 9155 $as_echo "OK" >&6; }
12868 else 9156 else
12869 $as_echo "$as_me: failed program was:" >&5 9157 as_fn_error "FAILED" "$LINENO" 5
12870 sed 's/^/| /' conftest.$ac_ext >&5 9158 fi
12871 9159 rm -f core conftest.err conftest.$ac_objext \
12872 { { $as_echo "$as_me:$LINENO: error: FAILED" >&5 9160 conftest$ac_exeext conftest.$ac_ext
12873 $as_echo "$as_me: error: FAILED" >&2;}
12874 { (exit 1); exit 1; }; }
12875 fi
12876
12877 rm -rf conftest.dSYM
12878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12879 conftest$ac_exeext conftest.$ac_ext
12880 olibs="$LIBS" 9161 olibs="$LIBS"
12881 else 9162 else
12882 { $as_echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5 9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: empty: automatic terminal library selection" >&5
12883 $as_echo "empty: automatic terminal library selection" >&6; } 9164 $as_echo "empty: automatic terminal library selection" >&6; }
12884 case "`uname -s 2>/dev/null`" in 9165 case "`uname -s 2>/dev/null`" in
12885 OSF1|SCO_SV) tlibs="ncurses curses termlib termcap";; 9166 OSF1|SCO_SV) tlibs="ncurses curses termlib termcap";;
12886 *) tlibs="ncurses termlib termcap curses";; 9167 *) tlibs="ncurses termlib termcap curses";;
12887 esac 9168 esac
12888 for libname in $tlibs; do 9169 for libname in $tlibs; do
12889 9170 as_ac_Lib=`$as_echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
12890 as_ac_Lib=`$as_echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh` 9171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -l${libname}" >&5
12891 { $as_echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5
12892 $as_echo_n "checking for tgetent in -l${libname}... " >&6; } 9172 $as_echo_n "checking for tgetent in -l${libname}... " >&6; }
12893 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then 9173 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
12894 $as_echo_n "(cached) " >&6 9174 $as_echo_n "(cached) " >&6
12895 else 9175 else
12896 ac_check_lib_save_LIBS=$LIBS 9176 ac_check_lib_save_LIBS=$LIBS
12897 LIBS="-l${libname} $LIBS" 9177 LIBS="-l${libname} $LIBS"
12898 cat >conftest.$ac_ext <<_ACEOF 9178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12899 /* confdefs.h. */
12900 _ACEOF
12901 cat confdefs.h >>conftest.$ac_ext
12902 cat >>conftest.$ac_ext <<_ACEOF
12903 /* end confdefs.h. */ 9179 /* end confdefs.h. */
12904 9180
12905 /* Override any GCC internal prototype to avoid an error. 9181 /* Override any GCC internal prototype to avoid an error.
12906 Use char because int might match the return type of a GCC 9182 Use char because int might match the return type of a GCC
12907 builtin and then its argument prototype would still apply. */ 9183 builtin and then its argument prototype would still apply. */
12915 return tgetent (); 9191 return tgetent ();
12916 ; 9192 ;
12917 return 0; 9193 return 0;
12918 } 9194 }
12919 _ACEOF 9195 _ACEOF
12920 rm -f conftest.$ac_objext conftest$ac_exeext 9196 if ac_fn_c_try_link "$LINENO"; then :
12921 if { (ac_try="$ac_link"
12922 case "(($ac_try" in
12923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12924 *) ac_try_echo=$ac_try;;
12925 esac
12926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12927 $as_echo "$ac_try_echo") >&5
12928 (eval "$ac_link") 2>conftest.er1
12929 ac_status=$?
12930 grep -v '^ *+' conftest.er1 >conftest.err
12931 rm -f conftest.er1
12932 cat conftest.err >&5
12933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934 (exit $ac_status); } && {
12935 test -z "$ac_c_werror_flag" ||
12936 test ! -s conftest.err
12937 } && test -s conftest$ac_exeext && {
12938 test "$cross_compiling" = yes ||
12939 $as_test_x conftest$ac_exeext
12940 }; then
12941 eval "$as_ac_Lib=yes" 9197 eval "$as_ac_Lib=yes"
12942 else 9198 else
12943 $as_echo "$as_me: failed program was:" >&5 9199 eval "$as_ac_Lib=no"
12944 sed 's/^/| /' conftest.$ac_ext >&5 9200 fi
12945 9201 rm -f core conftest.err conftest.$ac_objext \
12946 eval "$as_ac_Lib=no" 9202 conftest$ac_exeext conftest.$ac_ext
12947 fi
12948
12949 rm -rf conftest.dSYM
12950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12951 conftest$ac_exeext conftest.$ac_ext
12952 LIBS=$ac_check_lib_save_LIBS 9203 LIBS=$ac_check_lib_save_LIBS
12953 fi 9204 fi
12954 ac_res=`eval 'as_val=${'$as_ac_Lib'} 9205 eval ac_res=\$$as_ac_Lib
12955 $as_echo "$as_val"'` 9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12956 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12957 $as_echo "$ac_res" >&6; } 9207 $as_echo "$ac_res" >&6; }
12958 as_val=`eval 'as_val=${'$as_ac_Lib'} 9208 eval as_val=\$$as_ac_Lib
12959 $as_echo "$as_val"'` 9209 if test "x$as_val" = x""yes; then :
12960 if test "x$as_val" = x""yes; then
12961 cat >>confdefs.h <<_ACEOF 9210 cat >>confdefs.h <<_ACEOF
12962 #define `$as_echo "HAVE_LIB${libname}" | $as_tr_cpp` 1 9211 #define `$as_echo "HAVE_LIB${libname}" | $as_tr_cpp` 1
12963 _ACEOF 9212 _ACEOF
12964 9213
12965 LIBS="-l${libname} $LIBS" 9214 LIBS="-l${libname} $LIBS"
12966 9215
12967 fi 9216 fi
12968 9217
12969 if test "x$olibs" != "x$LIBS"; then 9218 if test "x$olibs" != "x$LIBS"; then
12970 if test "$cross_compiling" = yes; then 9219 if test "$cross_compiling" = yes; then :
12971 res="FAIL" 9220 res="FAIL"
12972 else 9221 else
12973 cat >conftest.$ac_ext <<_ACEOF 9222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12974 /* confdefs.h. */
12975 _ACEOF
12976 cat confdefs.h >>conftest.$ac_ext
12977 cat >>conftest.$ac_ext <<_ACEOF
12978 /* end confdefs.h. */ 9223 /* end confdefs.h. */
12979 9224
12980 #ifdef HAVE_TERMCAP_H 9225 #ifdef HAVE_TERMCAP_H
12981 # include <termcap.h> 9226 # include <termcap.h>
12982 #endif 9227 #endif
12984 # include <stdlib.h> 9229 # include <stdlib.h>
12985 # include <stddef.h> 9230 # include <stddef.h>
12986 #endif 9231 #endif
12987 main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); } 9232 main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
12988 _ACEOF 9233 _ACEOF
12989 rm -f conftest$ac_exeext 9234 if ac_fn_c_try_run "$LINENO"; then :
12990 if { (ac_try="$ac_link"
12991 case "(($ac_try" in
12992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12993 *) ac_try_echo=$ac_try;;
12994 esac
12995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12996 $as_echo "$ac_try_echo") >&5
12997 (eval "$ac_link") 2>&5
12998 ac_status=$?
12999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13001 { (case "(($ac_try" in
13002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13003 *) ac_try_echo=$ac_try;;
13004 esac
13005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13006 $as_echo "$ac_try_echo") >&5
13007 (eval "$ac_try") 2>&5
13008 ac_status=$?
13009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010 (exit $ac_status); }; }; then
13011 res="OK" 9235 res="OK"
13012 else 9236 else
13013 $as_echo "$as_me: program exited with status $ac_status" >&5 9237 res="FAIL"
13014 $as_echo "$as_me: failed program was:" >&5 9238 fi
13015 sed 's/^/| /' conftest.$ac_ext >&5 9239 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13016 9240 conftest.$ac_objext conftest.beam conftest.$ac_ext
13017 ( exit $ac_status ) 9241 fi
13018 res="FAIL"
13019 fi
13020 rm -rf conftest.dSYM
13021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13022 fi
13023
13024 9242
13025 if test "$res" = "OK"; then 9243 if test "$res" = "OK"; then
13026 break 9244 break
13027 fi 9245 fi
13028 { $as_echo "$as_me:$LINENO: result: $libname library is not usable" >&5 9246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libname library is not usable" >&5
13029 $as_echo "$libname library is not usable" >&6; } 9247 $as_echo "$libname library is not usable" >&6; }
13030 LIBS="$olibs" 9248 LIBS="$olibs"
13031 fi 9249 fi
13032 done 9250 done
13033 if test "x$olibs" = "x$LIBS"; then 9251 if test "x$olibs" = "x$LIBS"; then
13034 { $as_echo "$as_me:$LINENO: result: no terminal library found" >&5 9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no terminal library found" >&5
13035 $as_echo "no terminal library found" >&6; } 9253 $as_echo "no terminal library found" >&6; }
13036 fi 9254 fi
13037 fi 9255 fi
13038 9256
13039 if test "x$olibs" = "x$LIBS"; then 9257 if test "x$olibs" = "x$LIBS"; then
13040 { $as_echo "$as_me:$LINENO: checking for tgetent()" >&5 9258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent()" >&5
13041 $as_echo_n "checking for tgetent()... " >&6; } 9259 $as_echo_n "checking for tgetent()... " >&6; }
13042 cat >conftest.$ac_ext <<_ACEOF 9260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13043 /* confdefs.h. */
13044 _ACEOF
13045 cat confdefs.h >>conftest.$ac_ext
13046 cat >>conftest.$ac_ext <<_ACEOF
13047 /* end confdefs.h. */ 9261 /* end confdefs.h. */
13048 9262
13049 int 9263 int
13050 main () 9264 main ()
13051 { 9265 {
13052 char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); 9266 char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
13053 ; 9267 ;
13054 return 0; 9268 return 0;
13055 } 9269 }
13056 _ACEOF 9270 _ACEOF
13057 rm -f conftest.$ac_objext conftest$ac_exeext 9271 if ac_fn_c_try_link "$LINENO"; then :
13058 if { (ac_try="$ac_link" 9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13059 case "(($ac_try" in
13060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13061 *) ac_try_echo=$ac_try;;
13062 esac
13063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13064 $as_echo "$ac_try_echo") >&5
13065 (eval "$ac_link") 2>conftest.er1
13066 ac_status=$?
13067 grep -v '^ *+' conftest.er1 >conftest.err
13068 rm -f conftest.er1
13069 cat conftest.err >&5
13070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071 (exit $ac_status); } && {
13072 test -z "$ac_c_werror_flag" ||
13073 test ! -s conftest.err
13074 } && test -s conftest$ac_exeext && {
13075 test "$cross_compiling" = yes ||
13076 $as_test_x conftest$ac_exeext
13077 }; then
13078 { $as_echo "$as_me:$LINENO: result: yes" >&5
13079 $as_echo "yes" >&6; } 9273 $as_echo "yes" >&6; }
13080 else 9274 else
13081 $as_echo "$as_me: failed program was:" >&5 9275 as_fn_error "NOT FOUND!
13082 sed 's/^/| /' conftest.$ac_ext >&5
13083
13084 { { $as_echo "$as_me:$LINENO: error: NOT FOUND!
13085 You need to install a terminal library; for example ncurses. 9276 You need to install a terminal library; for example ncurses.
13086 Or specify the name of the library with --with-tlib." >&5 9277 Or specify the name of the library with --with-tlib." "$LINENO" 5
13087 $as_echo "$as_me: error: NOT FOUND! 9278 fi
13088 You need to install a terminal library; for example ncurses. 9279 rm -f core conftest.err conftest.$ac_objext \
13089 Or specify the name of the library with --with-tlib." >&2;} 9280 conftest$ac_exeext conftest.$ac_ext
13090 { (exit 1); exit 1; }; } 9281 fi
13091 fi 9282
13092 9283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we talk terminfo" >&5
13093 rm -rf conftest.dSYM
13094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13095 conftest$ac_exeext conftest.$ac_ext
13096 fi
13097
13098 { $as_echo "$as_me:$LINENO: checking whether we talk terminfo" >&5
13099 $as_echo_n "checking whether we talk terminfo... " >&6; } 9284 $as_echo_n "checking whether we talk terminfo... " >&6; }
13100 if test "${vim_cv_terminfo+set}" = set; then 9285 if test "${vim_cv_terminfo+set}" = set; then :
13101 $as_echo_n "(cached) " >&6 9286 $as_echo_n "(cached) " >&6
13102 else 9287 else
13103 9288
13104 if test "$cross_compiling" = yes; then 9289 if test "$cross_compiling" = yes; then :
13105 9290
13106 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_terminfo'" >&5 9291 as_fn_error "cross-compiling: please set 'vim_cv_terminfo'" "$LINENO" 5
13107 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_terminfo'" >&2;} 9292
13108 { (exit 1); exit 1; }; } 9293 else
13109 9294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13110 else 9295 /* end confdefs.h. */
13111 cat >conftest.$ac_ext <<_ACEOF
13112 9296
13113 #include "confdefs.h" 9297 #include "confdefs.h"
13114 #ifdef HAVE_TERMCAP_H 9298 #ifdef HAVE_TERMCAP_H
13115 # include <termcap.h> 9299 # include <termcap.h>
13116 #endif 9300 #endif
13123 #endif 9307 #endif
13124 main() 9308 main()
13125 {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); } 9309 {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
13126 9310
13127 _ACEOF 9311 _ACEOF
13128 rm -f conftest$ac_exeext 9312 if ac_fn_c_try_run "$LINENO"; then :
13129 if { (ac_try="$ac_link"
13130 case "(($ac_try" in
13131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13132 *) ac_try_echo=$ac_try;;
13133 esac
13134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13135 $as_echo "$ac_try_echo") >&5
13136 (eval "$ac_link") 2>&5
13137 ac_status=$?
13138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13140 { (case "(($ac_try" in
13141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13142 *) ac_try_echo=$ac_try;;
13143 esac
13144 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13145 $as_echo "$ac_try_echo") >&5
13146 (eval "$ac_try") 2>&5
13147 ac_status=$?
13148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149 (exit $ac_status); }; }; then
13150 9313
13151 vim_cv_terminfo=no 9314 vim_cv_terminfo=no
13152 9315
13153 else 9316 else
13154 $as_echo "$as_me: program exited with status $ac_status" >&5
13155 $as_echo "$as_me: failed program was:" >&5
13156 sed 's/^/| /' conftest.$ac_ext >&5
13157
13158 ( exit $ac_status )
13159 9317
13160 vim_cv_terminfo=yes 9318 vim_cv_terminfo=yes
13161 9319
13162 fi 9320 fi
13163 rm -rf conftest.dSYM 9321 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13164 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9322 conftest.$ac_objext conftest.beam conftest.$ac_ext
13165 fi 9323 fi
13166 9324
13167 9325
13168 9326 fi
13169 fi 9327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_terminfo" >&5
13170 { $as_echo "$as_me:$LINENO: result: $vim_cv_terminfo" >&5
13171 $as_echo "$vim_cv_terminfo" >&6; } 9328 $as_echo "$vim_cv_terminfo" >&6; }
13172 9329
13173 if test "x$vim_cv_terminfo" = "xyes" ; then 9330 if test "x$vim_cv_terminfo" = "xyes" ; then
13174 cat >>confdefs.h <<\_ACEOF 9331 $as_echo "#define TERMINFO 1" >>confdefs.h
13175 #define TERMINFO 1
13176 _ACEOF
13177 9332
13178 fi 9333 fi
13179 9334
13180 if test "x$olibs" != "x$LIBS"; then 9335 if test "x$olibs" != "x$LIBS"; then
13181 { $as_echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5 9336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what tgetent() returns for an unknown terminal" >&5
13182 $as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; } 9337 $as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; }
13183 if test "${vim_cv_tgent+set}" = set; then 9338 if test "${vim_cv_tgent+set}" = set; then :
13184 $as_echo_n "(cached) " >&6 9339 $as_echo_n "(cached) " >&6
13185 else 9340 else
13186 9341
13187 if test "$cross_compiling" = yes; then 9342 if test "$cross_compiling" = yes; then :
13188 9343
13189 { { $as_echo "$as_me:$LINENO: error: failed to compile test program." >&5 9344 as_fn_error "failed to compile test program." "$LINENO" 5
13190 $as_echo "$as_me: error: failed to compile test program." >&2;} 9345
13191 { (exit 1); exit 1; }; } 9346 else
13192 9347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13193 else 9348 /* end confdefs.h. */
13194 cat >conftest.$ac_ext <<_ACEOF
13195 9349
13196 #include "confdefs.h" 9350 #include "confdefs.h"
13197 #ifdef HAVE_TERMCAP_H 9351 #ifdef HAVE_TERMCAP_H
13198 # include <termcap.h> 9352 # include <termcap.h>
13199 #endif 9353 #endif
13203 #endif 9357 #endif
13204 main() 9358 main()
13205 {char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); } 9359 {char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
13206 9360
13207 _ACEOF 9361 _ACEOF
13208 rm -f conftest$ac_exeext 9362 if ac_fn_c_try_run "$LINENO"; then :
13209 if { (ac_try="$ac_link"
13210 case "(($ac_try" in
13211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13212 *) ac_try_echo=$ac_try;;
13213 esac
13214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13215 $as_echo "$ac_try_echo") >&5
13216 (eval "$ac_link") 2>&5
13217 ac_status=$?
13218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13220 { (case "(($ac_try" in
13221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13222 *) ac_try_echo=$ac_try;;
13223 esac
13224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13225 $as_echo "$ac_try_echo") >&5
13226 (eval "$ac_try") 2>&5
13227 ac_status=$?
13228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229 (exit $ac_status); }; }; then
13230 9363
13231 vim_cv_tgent=zero 9364 vim_cv_tgent=zero
13232 9365
13233 else 9366 else
13234 $as_echo "$as_me: program exited with status $ac_status" >&5
13235 $as_echo "$as_me: failed program was:" >&5
13236 sed 's/^/| /' conftest.$ac_ext >&5
13237
13238 ( exit $ac_status )
13239 9367
13240 vim_cv_tgent=non-zero 9368 vim_cv_tgent=non-zero
13241 9369
13242 fi 9370 fi
13243 rm -rf conftest.dSYM 9371 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13244 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9372 conftest.$ac_objext conftest.beam conftest.$ac_ext
13245 fi 9373 fi
13246 9374
13247 9375
13248 9376 fi
13249 fi 9377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tgent" >&5
13250 { $as_echo "$as_me:$LINENO: result: $vim_cv_tgent" >&5
13251 $as_echo "$vim_cv_tgent" >&6; } 9378 $as_echo "$vim_cv_tgent" >&6; }
13252 9379
13253 if test "x$vim_cv_tgent" = "xzero" ; then 9380 if test "x$vim_cv_tgent" = "xzero" ; then
13254 cat >>confdefs.h <<\_ACEOF 9381 $as_echo "#define TGETENT_ZERO_ERR 0" >>confdefs.h
13255 #define TGETENT_ZERO_ERR 0 9382
13256 _ACEOF 9383 fi
13257 9384 fi
13258 fi 9385
13259 fi 9386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains ospeed" >&5
13260
13261 { $as_echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5
13262 $as_echo_n "checking whether termcap.h contains ospeed... " >&6; } 9387 $as_echo_n "checking whether termcap.h contains ospeed... " >&6; }
13263 cat >conftest.$ac_ext <<_ACEOF 9388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13264 /* confdefs.h. */
13265 _ACEOF
13266 cat confdefs.h >>conftest.$ac_ext
13267 cat >>conftest.$ac_ext <<_ACEOF
13268 /* end confdefs.h. */ 9389 /* end confdefs.h. */
13269 9390
13270 #ifdef HAVE_TERMCAP_H 9391 #ifdef HAVE_TERMCAP_H
13271 # include <termcap.h> 9392 # include <termcap.h>
13272 #endif 9393 #endif
13277 ospeed = 20000 9398 ospeed = 20000
13278 ; 9399 ;
13279 return 0; 9400 return 0;
13280 } 9401 }
13281 _ACEOF 9402 _ACEOF
13282 rm -f conftest.$ac_objext conftest$ac_exeext 9403 if ac_fn_c_try_link "$LINENO"; then :
13283 if { (ac_try="$ac_link" 9404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13284 case "(($ac_try" in 9405 $as_echo "yes" >&6; }; $as_echo "#define HAVE_OSPEED 1" >>confdefs.h
13285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9406
13286 *) ac_try_echo=$ac_try;; 9407 else
13287 esac 9408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13289 $as_echo "$ac_try_echo") >&5
13290 (eval "$ac_link") 2>conftest.er1
13291 ac_status=$?
13292 grep -v '^ *+' conftest.er1 >conftest.err
13293 rm -f conftest.er1
13294 cat conftest.err >&5
13295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13296 (exit $ac_status); } && {
13297 test -z "$ac_c_werror_flag" ||
13298 test ! -s conftest.err
13299 } && test -s conftest$ac_exeext && {
13300 test "$cross_compiling" = yes ||
13301 $as_test_x conftest$ac_exeext
13302 }; then
13303 { $as_echo "$as_me:$LINENO: result: yes" >&5
13304 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13305 #define HAVE_OSPEED 1
13306 _ACEOF
13307
13308 else
13309 $as_echo "$as_me: failed program was:" >&5
13310 sed 's/^/| /' conftest.$ac_ext >&5
13311
13312 { $as_echo "$as_me:$LINENO: result: no" >&5
13313 $as_echo "no" >&6; } 9409 $as_echo "no" >&6; }
13314 { $as_echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5 9410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ospeed can be extern" >&5
13315 $as_echo_n "checking whether ospeed can be extern... " >&6; } 9411 $as_echo_n "checking whether ospeed can be extern... " >&6; }
13316 cat >conftest.$ac_ext <<_ACEOF 9412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13317 /* confdefs.h. */
13318 _ACEOF
13319 cat confdefs.h >>conftest.$ac_ext
13320 cat >>conftest.$ac_ext <<_ACEOF
13321 /* end confdefs.h. */ 9413 /* end confdefs.h. */
13322 9414
13323 #ifdef HAVE_TERMCAP_H 9415 #ifdef HAVE_TERMCAP_H
13324 # include <termcap.h> 9416 # include <termcap.h>
13325 #endif 9417 #endif
13331 ospeed = 20000 9423 ospeed = 20000
13332 ; 9424 ;
13333 return 0; 9425 return 0;
13334 } 9426 }
13335 _ACEOF 9427 _ACEOF
13336 rm -f conftest.$ac_objext conftest$ac_exeext 9428 if ac_fn_c_try_link "$LINENO"; then :
13337 if { (ac_try="$ac_link" 9429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13338 case "(($ac_try" in 9430 $as_echo "yes" >&6; }; $as_echo "#define OSPEED_EXTERN 1" >>confdefs.h
13339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9431
13340 *) ac_try_echo=$ac_try;; 9432 else
13341 esac 9433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13343 $as_echo "$ac_try_echo") >&5
13344 (eval "$ac_link") 2>conftest.er1
13345 ac_status=$?
13346 grep -v '^ *+' conftest.er1 >conftest.err
13347 rm -f conftest.er1
13348 cat conftest.err >&5
13349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350 (exit $ac_status); } && {
13351 test -z "$ac_c_werror_flag" ||
13352 test ! -s conftest.err
13353 } && test -s conftest$ac_exeext && {
13354 test "$cross_compiling" = yes ||
13355 $as_test_x conftest$ac_exeext
13356 }; then
13357 { $as_echo "$as_me:$LINENO: result: yes" >&5
13358 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13359 #define OSPEED_EXTERN 1
13360 _ACEOF
13361
13362 else
13363 $as_echo "$as_me: failed program was:" >&5
13364 sed 's/^/| /' conftest.$ac_ext >&5
13365
13366 { $as_echo "$as_me:$LINENO: result: no" >&5
13367 $as_echo "no" >&6; } 9434 $as_echo "no" >&6; }
13368 fi 9435 fi
13369 9436 rm -f core conftest.err conftest.$ac_objext \
13370 rm -rf conftest.dSYM 9437 conftest$ac_exeext conftest.$ac_ext
13371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9438
13372 conftest$ac_exeext conftest.$ac_ext 9439 fi
13373 9440 rm -f core conftest.err conftest.$ac_objext \
13374 fi 9441 conftest$ac_exeext conftest.$ac_ext
13375 9442
13376 rm -rf conftest.dSYM 9443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains UP, BC and PC" >&5
13377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13378 conftest$ac_exeext conftest.$ac_ext
13379
13380 { $as_echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5
13381 $as_echo_n "checking whether termcap.h contains UP, BC and PC... " >&6; } 9444 $as_echo_n "checking whether termcap.h contains UP, BC and PC... " >&6; }
13382 cat >conftest.$ac_ext <<_ACEOF 9445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13383 /* confdefs.h. */
13384 _ACEOF
13385 cat confdefs.h >>conftest.$ac_ext
13386 cat >>conftest.$ac_ext <<_ACEOF
13387 /* end confdefs.h. */ 9446 /* end confdefs.h. */
13388 9447
13389 #ifdef HAVE_TERMCAP_H 9448 #ifdef HAVE_TERMCAP_H
13390 # include <termcap.h> 9449 # include <termcap.h>
13391 #endif 9450 #endif
13396 if (UP == 0 && BC == 0) PC = 1 9455 if (UP == 0 && BC == 0) PC = 1
13397 ; 9456 ;
13398 return 0; 9457 return 0;
13399 } 9458 }
13400 _ACEOF 9459 _ACEOF
13401 rm -f conftest.$ac_objext conftest$ac_exeext 9460 if ac_fn_c_try_link "$LINENO"; then :
13402 if { (ac_try="$ac_link" 9461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13403 case "(($ac_try" in 9462 $as_echo "yes" >&6; }; $as_echo "#define HAVE_UP_BC_PC 1" >>confdefs.h
13404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9463
13405 *) ac_try_echo=$ac_try;; 9464 else
13406 esac 9465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13408 $as_echo "$ac_try_echo") >&5
13409 (eval "$ac_link") 2>conftest.er1
13410 ac_status=$?
13411 grep -v '^ *+' conftest.er1 >conftest.err
13412 rm -f conftest.er1
13413 cat conftest.err >&5
13414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415 (exit $ac_status); } && {
13416 test -z "$ac_c_werror_flag" ||
13417 test ! -s conftest.err
13418 } && test -s conftest$ac_exeext && {
13419 test "$cross_compiling" = yes ||
13420 $as_test_x conftest$ac_exeext
13421 }; then
13422 { $as_echo "$as_me:$LINENO: result: yes" >&5
13423 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13424 #define HAVE_UP_BC_PC 1
13425 _ACEOF
13426
13427 else
13428 $as_echo "$as_me: failed program was:" >&5
13429 sed 's/^/| /' conftest.$ac_ext >&5
13430
13431 { $as_echo "$as_me:$LINENO: result: no" >&5
13432 $as_echo "no" >&6; } 9466 $as_echo "no" >&6; }
13433 { $as_echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5 9467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UP, BC and PC can be extern" >&5
13434 $as_echo_n "checking whether UP, BC and PC can be extern... " >&6; } 9468 $as_echo_n "checking whether UP, BC and PC can be extern... " >&6; }
13435 cat >conftest.$ac_ext <<_ACEOF 9469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13436 /* confdefs.h. */
13437 _ACEOF
13438 cat confdefs.h >>conftest.$ac_ext
13439 cat >>conftest.$ac_ext <<_ACEOF
13440 /* end confdefs.h. */ 9470 /* end confdefs.h. */
13441 9471
13442 #ifdef HAVE_TERMCAP_H 9472 #ifdef HAVE_TERMCAP_H
13443 # include <termcap.h> 9473 # include <termcap.h>
13444 #endif 9474 #endif
13450 if (UP == 0 && BC == 0) PC = 1 9480 if (UP == 0 && BC == 0) PC = 1
13451 ; 9481 ;
13452 return 0; 9482 return 0;
13453 } 9483 }
13454 _ACEOF 9484 _ACEOF
13455 rm -f conftest.$ac_objext conftest$ac_exeext 9485 if ac_fn_c_try_link "$LINENO"; then :
13456 if { (ac_try="$ac_link" 9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13457 case "(($ac_try" in 9487 $as_echo "yes" >&6; }; $as_echo "#define UP_BC_PC_EXTERN 1" >>confdefs.h
13458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9488
13459 *) ac_try_echo=$ac_try;; 9489 else
13460 esac 9490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13462 $as_echo "$ac_try_echo") >&5
13463 (eval "$ac_link") 2>conftest.er1
13464 ac_status=$?
13465 grep -v '^ *+' conftest.er1 >conftest.err
13466 rm -f conftest.er1
13467 cat conftest.err >&5
13468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469 (exit $ac_status); } && {
13470 test -z "$ac_c_werror_flag" ||
13471 test ! -s conftest.err
13472 } && test -s conftest$ac_exeext && {
13473 test "$cross_compiling" = yes ||
13474 $as_test_x conftest$ac_exeext
13475 }; then
13476 { $as_echo "$as_me:$LINENO: result: yes" >&5
13477 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13478 #define UP_BC_PC_EXTERN 1
13479 _ACEOF
13480
13481 else
13482 $as_echo "$as_me: failed program was:" >&5
13483 sed 's/^/| /' conftest.$ac_ext >&5
13484
13485 { $as_echo "$as_me:$LINENO: result: no" >&5
13486 $as_echo "no" >&6; } 9491 $as_echo "no" >&6; }
13487 fi 9492 fi
13488 9493 rm -f core conftest.err conftest.$ac_objext \
13489 rm -rf conftest.dSYM 9494 conftest$ac_exeext conftest.$ac_ext
13490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9495
13491 conftest$ac_exeext conftest.$ac_ext 9496 fi
13492 9497 rm -f core conftest.err conftest.$ac_objext \
13493 fi 9498 conftest$ac_exeext conftest.$ac_ext
13494 9499
13495 rm -rf conftest.dSYM 9500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tputs() uses outfuntype" >&5
13496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13497 conftest$ac_exeext conftest.$ac_ext
13498
13499 { $as_echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5
13500 $as_echo_n "checking whether tputs() uses outfuntype... " >&6; } 9501 $as_echo_n "checking whether tputs() uses outfuntype... " >&6; }
13501 cat >conftest.$ac_ext <<_ACEOF 9502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13502 /* confdefs.h. */
13503 _ACEOF
13504 cat confdefs.h >>conftest.$ac_ext
13505 cat >>conftest.$ac_ext <<_ACEOF
13506 /* end confdefs.h. */ 9503 /* end confdefs.h. */
13507 9504
13508 #ifdef HAVE_TERMCAP_H 9505 #ifdef HAVE_TERMCAP_H
13509 # include <termcap.h> 9506 # include <termcap.h>
13510 #endif 9507 #endif
13515 extern int xx(); tputs("test", 1, (outfuntype)xx) 9512 extern int xx(); tputs("test", 1, (outfuntype)xx)
13516 ; 9513 ;
13517 return 0; 9514 return 0;
13518 } 9515 }
13519 _ACEOF 9516 _ACEOF
13520 rm -f conftest.$ac_objext 9517 if ac_fn_c_try_compile "$LINENO"; then :
13521 if { (ac_try="$ac_compile" 9518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13522 case "(($ac_try" in 9519 $as_echo "yes" >&6; }; $as_echo "#define HAVE_OUTFUNTYPE 1" >>confdefs.h
13523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9520
13524 *) ac_try_echo=$ac_try;; 9521 else
13525 esac 9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13527 $as_echo "$ac_try_echo") >&5
13528 (eval "$ac_compile") 2>conftest.er1
13529 ac_status=$?
13530 grep -v '^ *+' conftest.er1 >conftest.err
13531 rm -f conftest.er1
13532 cat conftest.err >&5
13533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534 (exit $ac_status); } && {
13535 test -z "$ac_c_werror_flag" ||
13536 test ! -s conftest.err
13537 } && test -s conftest.$ac_objext; then
13538 { $as_echo "$as_me:$LINENO: result: yes" >&5
13539 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13540 #define HAVE_OUTFUNTYPE 1
13541 _ACEOF
13542
13543 else
13544 $as_echo "$as_me: failed program was:" >&5
13545 sed 's/^/| /' conftest.$ac_ext >&5
13546
13547 { $as_echo "$as_me:$LINENO: result: no" >&5
13548 $as_echo "no" >&6; } 9523 $as_echo "no" >&6; }
13549 fi 9524 fi
13550
13551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13552 9526
13553 { $as_echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 9527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5
13554 $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; } 9528 $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
13555 cat >conftest.$ac_ext <<_ACEOF 9529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13556 /* confdefs.h. */
13557 _ACEOF
13558 cat confdefs.h >>conftest.$ac_ext
13559 cat >>conftest.$ac_ext <<_ACEOF
13560 /* end confdefs.h. */ 9530 /* end confdefs.h. */
13561 9531
13562 #include <sys/types.h> 9532 #include <sys/types.h>
13563 #include <sys/time.h> 9533 #include <sys/time.h>
13564 #include <sys/select.h> 9534 #include <sys/select.h>
13568 9538
13569 ; 9539 ;
13570 return 0; 9540 return 0;
13571 } 9541 }
13572 _ACEOF 9542 _ACEOF
13573 rm -f conftest.$ac_objext 9543 if ac_fn_c_try_compile "$LINENO"; then :
13574 if { (ac_try="$ac_compile" 9544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
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 { $as_echo "$as_me:$LINENO: result: yes" >&5
13592 $as_echo "yes" >&6; } 9545 $as_echo "yes" >&6; }
13593 cat >>confdefs.h <<\_ACEOF 9546 $as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h
13594 #define SYS_SELECT_WITH_SYS_TIME 1 9547
13595 _ACEOF 9548 else
13596 9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13597 else
13598 $as_echo "$as_me: failed program was:" >&5
13599 sed 's/^/| /' conftest.$ac_ext >&5
13600
13601 { $as_echo "$as_me:$LINENO: result: no" >&5
13602 $as_echo "no" >&6; } 9550 $as_echo "no" >&6; }
13603 fi 9551 fi
13604
13605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13606 9553
13607 9554
13608 { $as_echo "$as_me:$LINENO: checking for /dev/ptc" >&5 9555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
13609 $as_echo_n "checking for /dev/ptc... " >&6; } 9556 $as_echo_n "checking for /dev/ptc... " >&6; }
13610 if test -r /dev/ptc; then 9557 if test -r /dev/ptc; then
13611 cat >>confdefs.h <<\_ACEOF 9558 $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h
13612 #define HAVE_DEV_PTC 1 9559
13613 _ACEOF 9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13614
13615 { $as_echo "$as_me:$LINENO: result: yes" >&5
13616 $as_echo "yes" >&6; } 9561 $as_echo "yes" >&6; }
13617 else 9562 else
13618 { $as_echo "$as_me:$LINENO: result: no" >&5 9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13619 $as_echo "no" >&6; } 9564 $as_echo "no" >&6; }
13620 fi 9565 fi
13621 9566
13622 { $as_echo "$as_me:$LINENO: checking for SVR4 ptys" >&5 9567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVR4 ptys" >&5
13623 $as_echo_n "checking for SVR4 ptys... " >&6; } 9568 $as_echo_n "checking for SVR4 ptys... " >&6; }
13624 if test -c /dev/ptmx ; then 9569 if test -c /dev/ptmx ; then
13625 cat >conftest.$ac_ext <<_ACEOF 9570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13626 /* confdefs.h. */
13627 _ACEOF
13628 cat confdefs.h >>conftest.$ac_ext
13629 cat >>conftest.$ac_ext <<_ACEOF
13630 /* end confdefs.h. */ 9571 /* end confdefs.h. */
13631 9572
13632 int 9573 int
13633 main () 9574 main ()
13634 { 9575 {
13635 ptsname(0);grantpt(0);unlockpt(0); 9576 ptsname(0);grantpt(0);unlockpt(0);
13636 ; 9577 ;
13637 return 0; 9578 return 0;
13638 } 9579 }
13639 _ACEOF 9580 _ACEOF
13640 rm -f conftest.$ac_objext conftest$ac_exeext 9581 if ac_fn_c_try_link "$LINENO"; then :
13641 if { (ac_try="$ac_link" 9582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13642 case "(($ac_try" in 9583 $as_echo "yes" >&6; }; $as_echo "#define HAVE_SVR4_PTYS 1" >>confdefs.h
13643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9584
13644 *) ac_try_echo=$ac_try;; 9585 else
13645 esac 9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13647 $as_echo "$ac_try_echo") >&5
13648 (eval "$ac_link") 2>conftest.er1
13649 ac_status=$?
13650 grep -v '^ *+' conftest.er1 >conftest.err
13651 rm -f conftest.er1
13652 cat conftest.err >&5
13653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654 (exit $ac_status); } && {
13655 test -z "$ac_c_werror_flag" ||
13656 test ! -s conftest.err
13657 } && test -s conftest$ac_exeext && {
13658 test "$cross_compiling" = yes ||
13659 $as_test_x conftest$ac_exeext
13660 }; then
13661 { $as_echo "$as_me:$LINENO: result: yes" >&5
13662 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13663 #define HAVE_SVR4_PTYS 1
13664 _ACEOF
13665
13666 else
13667 $as_echo "$as_me: failed program was:" >&5
13668 sed 's/^/| /' conftest.$ac_ext >&5
13669
13670 { $as_echo "$as_me:$LINENO: result: no" >&5
13671 $as_echo "no" >&6; } 9587 $as_echo "no" >&6; }
13672 fi 9588 fi
13673 9589 rm -f core conftest.err conftest.$ac_objext \
13674 rm -rf conftest.dSYM 9590 conftest$ac_exeext conftest.$ac_ext
13675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9591 else
13676 conftest$ac_exeext conftest.$ac_ext 9592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13677 else
13678 { $as_echo "$as_me:$LINENO: result: no" >&5
13679 $as_echo "no" >&6; } 9593 $as_echo "no" >&6; }
13680 fi 9594 fi
13681 9595
13682 { $as_echo "$as_me:$LINENO: checking for ptyranges" >&5 9596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptyranges" >&5
13683 $as_echo_n "checking for ptyranges... " >&6; } 9597 $as_echo_n "checking for ptyranges... " >&6; }
13684 if test -d /dev/ptym ; then 9598 if test -d /dev/ptym ; then
13685 pdir='/dev/ptym' 9599 pdir='/dev/ptym'
13686 else 9600 else
13687 pdir='/dev' 9601 pdir='/dev'
13688 fi 9602 fi
13689 cat >conftest.$ac_ext <<_ACEOF 9603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13690 /* confdefs.h. */
13691 _ACEOF
13692 cat confdefs.h >>conftest.$ac_ext
13693 cat >>conftest.$ac_ext <<_ACEOF
13694 /* end confdefs.h. */ 9604 /* end confdefs.h. */
13695 #ifdef M_UNIX 9605 #ifdef M_UNIX
13696 yes; 9606 yes;
13697 #endif 9607 #endif
13698 9608
13699 _ACEOF 9609 _ACEOF
13700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13701 $EGREP "yes" >/dev/null 2>&1; then 9611 $EGREP "yes" >/dev/null 2>&1; then :
13702 ptys=`echo /dev/ptyp??` 9612 ptys=`echo /dev/ptyp??`
13703 else 9613 else
13704 ptys=`echo $pdir/pty??` 9614 ptys=`echo $pdir/pty??`
13705 fi 9615 fi
13706 rm -f conftest* 9616 rm -f conftest*
13714 9624
13715 cat >>confdefs.h <<_ACEOF 9625 cat >>confdefs.h <<_ACEOF
13716 #define PTYRANGE1 "$p1" 9626 #define PTYRANGE1 "$p1"
13717 _ACEOF 9627 _ACEOF
13718 9628
13719 { $as_echo "$as_me:$LINENO: result: $p0 / $p1" >&5 9629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p0 / $p1" >&5
13720 $as_echo "$p0 / $p1" >&6; } 9630 $as_echo "$p0 / $p1" >&6; }
13721 else 9631 else
13722 { $as_echo "$as_me:$LINENO: result: don't know" >&5 9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: don't know" >&5
13723 $as_echo "don't know" >&6; } 9633 $as_echo "don't know" >&6; }
13724 fi 9634 fi
13725 9635
13726 rm -f conftest_grp 9636 rm -f conftest_grp
13727 { $as_echo "$as_me:$LINENO: checking default tty permissions/group" >&5 9637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default tty permissions/group" >&5
13728 $as_echo_n "checking default tty permissions/group... " >&6; } 9638 $as_echo_n "checking default tty permissions/group... " >&6; }
13729 if test "${vim_cv_tty_group+set}" = set; then 9639 if test "${vim_cv_tty_group+set}" = set; then :
13730 $as_echo_n "(cached) " >&6 9640 $as_echo_n "(cached) " >&6
13731 else 9641 else
13732 9642
13733 if test "$cross_compiling" = yes; then 9643 if test "$cross_compiling" = yes; then :
13734 9644
13735 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&5 9645 as_fn_error "cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" "$LINENO" 5
13736 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&2;} 9646
13737 { (exit 1); exit 1; }; } 9647 else
13738 9648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13739 else 9649 /* end confdefs.h. */
13740 cat >conftest.$ac_ext <<_ACEOF
13741 9650
13742 #include "confdefs.h" 9651 #include "confdefs.h"
13743 #include <sys/types.h> 9652 #include <sys/types.h>
13744 #if STDC_HEADERS 9653 #if STDC_HEADERS
13745 # include <stdlib.h> 9654 # include <stdlib.h>
13774 fclose(fp); 9683 fclose(fp);
13775 exit(0); 9684 exit(0);
13776 } 9685 }
13777 9686
13778 _ACEOF 9687 _ACEOF
13779 rm -f conftest$ac_exeext 9688 if ac_fn_c_try_run "$LINENO"; then :
13780 if { (ac_try="$ac_link"
13781 case "(($ac_try" in
13782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13783 *) ac_try_echo=$ac_try;;
13784 esac
13785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13786 $as_echo "$ac_try_echo") >&5
13787 (eval "$ac_link") 2>&5
13788 ac_status=$?
13789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13791 { (case "(($ac_try" in
13792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13793 *) ac_try_echo=$ac_try;;
13794 esac
13795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13796 $as_echo "$ac_try_echo") >&5
13797 (eval "$ac_try") 2>&5
13798 ac_status=$?
13799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800 (exit $ac_status); }; }; then
13801 9689
13802 if test -f conftest_grp; then 9690 if test -f conftest_grp; then
13803 vim_cv_tty_group=`cat conftest_grp` 9691 vim_cv_tty_group=`cat conftest_grp`
13804 if test "x$vim_cv_tty_mode" = "x" ; then 9692 if test "x$vim_cv_tty_mode" = "x" ; then
13805 vim_cv_tty_mode=0620 9693 vim_cv_tty_mode=0620
13806 fi 9694 fi
13807 { $as_echo "$as_me:$LINENO: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5 9695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5
13808 $as_echo "pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; } 9696 $as_echo "pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; }
13809 else 9697 else
13810 vim_cv_tty_group=world 9698 vim_cv_tty_group=world
13811 { $as_echo "$as_me:$LINENO: result: ptys are world accessible" >&5 9699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ptys are world accessible" >&5
13812 $as_echo "ptys are world accessible" >&6; } 9700 $as_echo "ptys are world accessible" >&6; }
13813 fi 9701 fi
13814 9702
13815 else 9703 else
13816 $as_echo "$as_me: program exited with status $ac_status" >&5
13817 $as_echo "$as_me: failed program was:" >&5
13818 sed 's/^/| /' conftest.$ac_ext >&5
13819
13820 ( exit $ac_status )
13821 9704
13822 vim_cv_tty_group=world 9705 vim_cv_tty_group=world
13823 { $as_echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessible" >&5 9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't determine - assume ptys are world accessible" >&5
13824 $as_echo "can't determine - assume ptys are world accessible" >&6; } 9707 $as_echo "can't determine - assume ptys are world accessible" >&6; }
13825 9708
13826 fi 9709 fi
13827 rm -rf conftest.dSYM 9710 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13828 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9711 conftest.$ac_objext conftest.beam conftest.$ac_ext
13829 fi 9712 fi
13830 9713
13831 9714
13832 9715 fi
13833 fi 9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tty_group" >&5
13834 { $as_echo "$as_me:$LINENO: result: $vim_cv_tty_group" >&5
13835 $as_echo "$vim_cv_tty_group" >&6; } 9717 $as_echo "$vim_cv_tty_group" >&6; }
13836 rm -f conftest_grp 9718 rm -f conftest_grp
13837 9719
13838 if test "x$vim_cv_tty_group" != "xworld" ; then 9720 if test "x$vim_cv_tty_group" != "xworld" ; then
13839 cat >>confdefs.h <<_ACEOF 9721 cat >>confdefs.h <<_ACEOF
13840 #define PTYGROUP $vim_cv_tty_group 9722 #define PTYGROUP $vim_cv_tty_group
13841 _ACEOF 9723 _ACEOF
13842 9724
13843 if test "x$vim_cv_tty_mode" = "x" ; then 9725 if test "x$vim_cv_tty_mode" = "x" ; then
13844 { { $as_echo "$as_me:$LINENO: error: It seems you're cross compiling and have 'vim_cv_tty_group' set, please also set the environment variable 'vim_cv_tty_mode' to the correct mode (propably 0620)" >&5 9726 as_fn_error "It seems you're cross compiling and have 'vim_cv_tty_group' set, please also set the environment variable 'vim_cv_tty_mode' to the correct mode (propably 0620)" "$LINENO" 5
13845 $as_echo "$as_me: error: It seems you're cross compiling and have 'vim_cv_tty_group' set, please also set the environment variable 'vim_cv_tty_mode' to the correct mode (propably 0620)" >&2;}
13846 { (exit 1); exit 1; }; }
13847 else 9727 else
13848 cat >>confdefs.h <<\_ACEOF 9728 $as_echo "#define PTYMODE 0620" >>confdefs.h
13849 #define PTYMODE 0620 9729
13850 _ACEOF 9730 fi
13851 9731 fi
13852 fi 9732
13853 fi 9733
13854 9734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
13855
13856 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13857 $as_echo_n "checking return type of signal handlers... " >&6; } 9735 $as_echo_n "checking return type of signal handlers... " >&6; }
13858 if test "${ac_cv_type_signal+set}" = set; then 9736 if test "${ac_cv_type_signal+set}" = set; then :
13859 $as_echo_n "(cached) " >&6 9737 $as_echo_n "(cached) " >&6
13860 else 9738 else
13861 cat >conftest.$ac_ext <<_ACEOF 9739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13862 /* confdefs.h. */
13863 _ACEOF
13864 cat confdefs.h >>conftest.$ac_ext
13865 cat >>conftest.$ac_ext <<_ACEOF
13866 /* end confdefs.h. */ 9740 /* end confdefs.h. */
13867 #include <sys/types.h> 9741 #include <sys/types.h>
13868 #include <signal.h> 9742 #include <signal.h>
13869 9743
13870 int 9744 int
13873 return *(signal (0, 0)) (0) == 1; 9747 return *(signal (0, 0)) (0) == 1;
13874 ; 9748 ;
13875 return 0; 9749 return 0;
13876 } 9750 }
13877 _ACEOF 9751 _ACEOF
13878 rm -f conftest.$ac_objext 9752 if ac_fn_c_try_compile "$LINENO"; then :
13879 if { (ac_try="$ac_compile"
13880 case "(($ac_try" in
13881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13882 *) ac_try_echo=$ac_try;;
13883 esac
13884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13885 $as_echo "$ac_try_echo") >&5
13886 (eval "$ac_compile") 2>conftest.er1
13887 ac_status=$?
13888 grep -v '^ *+' conftest.er1 >conftest.err
13889 rm -f conftest.er1
13890 cat conftest.err >&5
13891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892 (exit $ac_status); } && {
13893 test -z "$ac_c_werror_flag" ||
13894 test ! -s conftest.err
13895 } && test -s conftest.$ac_objext; then
13896 ac_cv_type_signal=int 9753 ac_cv_type_signal=int
13897 else 9754 else
13898 $as_echo "$as_me: failed program was:" >&5 9755 ac_cv_type_signal=void
13899 sed 's/^/| /' conftest.$ac_ext >&5 9756 fi
13900
13901 ac_cv_type_signal=void
13902 fi
13903
13904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13905 fi 9758 fi
13906 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 9759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
13907 $as_echo "$ac_cv_type_signal" >&6; } 9760 $as_echo "$ac_cv_type_signal" >&6; }
13908 9761
13909 cat >>confdefs.h <<_ACEOF 9762 cat >>confdefs.h <<_ACEOF
13910 #define RETSIGTYPE $ac_cv_type_signal 9763 #define RETSIGTYPE $ac_cv_type_signal
13911 _ACEOF 9764 _ACEOF
13912 9765
13913 9766
13914 9767
13915 if test $ac_cv_type_signal = void; then 9768 if test $ac_cv_type_signal = void; then
13916 cat >>confdefs.h <<\_ACEOF 9769 $as_echo "#define SIGRETURN return" >>confdefs.h
13917 #define SIGRETURN return 9770
13918 _ACEOF 9771 else
13919 9772 $as_echo "#define SIGRETURN return 0" >>confdefs.h
13920 else 9773
13921 cat >>confdefs.h <<\_ACEOF 9774 fi
13922 #define SIGRETURN return 0 9775
13923 _ACEOF 9776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sigcontext" >&5
13924
13925 fi
13926
13927 { $as_echo "$as_me:$LINENO: checking for struct sigcontext" >&5
13928 $as_echo_n "checking for struct sigcontext... " >&6; } 9777 $as_echo_n "checking for struct sigcontext... " >&6; }
13929 cat >conftest.$ac_ext <<_ACEOF 9778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13930 /* confdefs.h. */
13931 _ACEOF
13932 cat confdefs.h >>conftest.$ac_ext
13933 cat >>conftest.$ac_ext <<_ACEOF
13934 /* end confdefs.h. */ 9779 /* end confdefs.h. */
13935 9780
13936 #include <signal.h> 9781 #include <signal.h>
13937 test_sig() 9782 test_sig()
13938 { 9783 {
13946 9791
13947 ; 9792 ;
13948 return 0; 9793 return 0;
13949 } 9794 }
13950 _ACEOF 9795 _ACEOF
13951 rm -f conftest.$ac_objext 9796 if ac_fn_c_try_compile "$LINENO"; then :
13952 if { (ac_try="$ac_compile" 9797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13953 case "(($ac_try" in
13954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13955 *) ac_try_echo=$ac_try;;
13956 esac
13957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13958 $as_echo "$ac_try_echo") >&5
13959 (eval "$ac_compile") 2>conftest.er1
13960 ac_status=$?
13961 grep -v '^ *+' conftest.er1 >conftest.err
13962 rm -f conftest.er1
13963 cat conftest.err >&5
13964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965 (exit $ac_status); } && {
13966 test -z "$ac_c_werror_flag" ||
13967 test ! -s conftest.err
13968 } && test -s conftest.$ac_objext; then
13969 { $as_echo "$as_me:$LINENO: result: yes" >&5
13970 $as_echo "yes" >&6; } 9798 $as_echo "yes" >&6; }
13971 cat >>confdefs.h <<\_ACEOF 9799 $as_echo "#define HAVE_SIGCONTEXT 1" >>confdefs.h
13972 #define HAVE_SIGCONTEXT 1 9800
13973 _ACEOF 9801 else
13974 9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13975 else
13976 $as_echo "$as_me: failed program was:" >&5
13977 sed 's/^/| /' conftest.$ac_ext >&5
13978
13979 { $as_echo "$as_me:$LINENO: result: no" >&5
13980 $as_echo "no" >&6; } 9803 $as_echo "no" >&6; }
13981 fi 9804 fi
13982
13983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13984 9806
13985 { $as_echo "$as_me:$LINENO: checking getcwd implementation is broken" >&5 9807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking getcwd implementation is broken" >&5
13986 $as_echo_n "checking getcwd implementation is broken... " >&6; } 9808 $as_echo_n "checking getcwd implementation is broken... " >&6; }
13987 if test "${vim_cv_getcwd_broken+set}" = set; then 9809 if test "${vim_cv_getcwd_broken+set}" = set; then :
13988 $as_echo_n "(cached) " >&6 9810 $as_echo_n "(cached) " >&6
13989 else 9811 else
13990 9812
13991 if test "$cross_compiling" = yes; then 9813 if test "$cross_compiling" = yes; then :
13992 9814
13993 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&5 9815 as_fn_error "cross-compiling: please set 'vim_cv_getcwd_broken'" "$LINENO" 5
13994 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&2;} 9816
13995 { (exit 1); exit 1; }; } 9817 else
13996 9818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13997 else 9819 /* end confdefs.h. */
13998 cat >conftest.$ac_ext <<_ACEOF
13999 9820
14000 #include "confdefs.h" 9821 #include "confdefs.h"
14001 #ifdef HAVE_UNISTD_H 9822 #ifdef HAVE_UNISTD_H
14002 #include <unistd.h> 9823 #include <unistd.h>
14003 #endif 9824 #endif
14009 environ = dagger; 9830 environ = dagger;
14010 return getcwd(buffer, 500) ? 0 : 1; 9831 return getcwd(buffer, 500) ? 0 : 1;
14011 } 9832 }
14012 9833
14013 _ACEOF 9834 _ACEOF
14014 rm -f conftest$ac_exeext 9835 if ac_fn_c_try_run "$LINENO"; then :
14015 if { (ac_try="$ac_link"
14016 case "(($ac_try" in
14017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14018 *) ac_try_echo=$ac_try;;
14019 esac
14020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14021 $as_echo "$ac_try_echo") >&5
14022 (eval "$ac_link") 2>&5
14023 ac_status=$?
14024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14026 { (case "(($ac_try" in
14027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14028 *) ac_try_echo=$ac_try;;
14029 esac
14030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14031 $as_echo "$ac_try_echo") >&5
14032 (eval "$ac_try") 2>&5
14033 ac_status=$?
14034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035 (exit $ac_status); }; }; then
14036 9836
14037 vim_cv_getcwd_broken=no 9837 vim_cv_getcwd_broken=no
14038 9838
14039 else 9839 else
14040 $as_echo "$as_me: program exited with status $ac_status" >&5
14041 $as_echo "$as_me: failed program was:" >&5
14042 sed 's/^/| /' conftest.$ac_ext >&5
14043
14044 ( exit $ac_status )
14045 9840
14046 vim_cv_getcwd_broken=yes 9841 vim_cv_getcwd_broken=yes
14047 9842
14048 fi 9843 fi
14049 rm -rf conftest.dSYM 9844 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14050 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9845 conftest.$ac_objext conftest.beam conftest.$ac_ext
14051 fi 9846 fi
14052 9847
14053 9848
14054 9849 fi
14055 fi 9850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_getcwd_broken" >&5
14056 { $as_echo "$as_me:$LINENO: result: $vim_cv_getcwd_broken" >&5
14057 $as_echo "$vim_cv_getcwd_broken" >&6; } 9851 $as_echo "$vim_cv_getcwd_broken" >&6; }
14058 9852
14059 if test "x$vim_cv_getcwd_broken" = "xyes" ; then 9853 if test "x$vim_cv_getcwd_broken" = "xyes" ; then
14060 cat >>confdefs.h <<\_ACEOF 9854 $as_echo "#define BAD_GETCWD 1" >>confdefs.h
14061 #define BAD_GETCWD 1 9855
14062 _ACEOF 9856 fi
14063
14064 fi
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110 9857
14111 for ac_func in bcmp fchdir fchown fsync getcwd getpseudotty \ 9858 for ac_func in bcmp fchdir fchown fsync getcwd getpseudotty \
14112 getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \ 9859 getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
14113 memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \ 9860 memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \
14114 setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \ 9861 setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
14115 sigvec strcasecmp strerror strftime stricmp strncasecmp \ 9862 sigvec strcasecmp strerror strftime stricmp strncasecmp \
14116 strnicmp strpbrk strtol tgetent towlower towupper iswupper \ 9863 strnicmp strpbrk strtol tgetent towlower towupper iswupper \
14117 usleep utime utimes 9864 usleep utime utimes
14118 do 9865 do :
14119 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 9866 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14120 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 9867 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14121 $as_echo_n "checking for $ac_func... " >&6; } 9868 eval as_val=\$$as_ac_var
14122 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 9869 if test "x$as_val" = x""yes; then :
14123 $as_echo_n "(cached) " >&6
14124 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14133 #define $ac_func innocuous_$ac_func
14134
14135 /* System header to define __stub macros and hopefully few prototypes,
14136 which can conflict with char $ac_func (); below.
14137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14138 <limits.h> exists even on freestanding compilers. */
14139
14140 #ifdef __STDC__
14141 # include <limits.h>
14142 #else
14143 # include <assert.h>
14144 #endif
14145
14146 #undef $ac_func
14147
14148 /* Override any GCC internal prototype to avoid an error.
14149 Use char because int might match the return type of a GCC
14150 builtin and then its argument prototype would still apply. */
14151 #ifdef __cplusplus
14152 extern "C"
14153 #endif
14154 char $ac_func ();
14155 /* The GNU C library defines this for functions which it implements
14156 to always fail with ENOSYS. Some functions are actually named
14157 something starting with __ and the normal name is an alias. */
14158 #if defined __stub_$ac_func || defined __stub___$ac_func
14159 choke me
14160 #endif
14161
14162 int
14163 main ()
14164 {
14165 return $ac_func ();
14166 ;
14167 return 0;
14168 }
14169 _ACEOF
14170 rm -f conftest.$ac_objext conftest$ac_exeext
14171 if { (ac_try="$ac_link"
14172 case "(($ac_try" in
14173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14174 *) ac_try_echo=$ac_try;;
14175 esac
14176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14177 $as_echo "$ac_try_echo") >&5
14178 (eval "$ac_link") 2>conftest.er1
14179 ac_status=$?
14180 grep -v '^ *+' conftest.er1 >conftest.err
14181 rm -f conftest.er1
14182 cat conftest.err >&5
14183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); } && {
14185 test -z "$ac_c_werror_flag" ||
14186 test ! -s conftest.err
14187 } && test -s conftest$ac_exeext && {
14188 test "$cross_compiling" = yes ||
14189 $as_test_x conftest$ac_exeext
14190 }; then
14191 eval "$as_ac_var=yes"
14192 else
14193 $as_echo "$as_me: failed program was:" >&5
14194 sed 's/^/| /' conftest.$ac_ext >&5
14195
14196 eval "$as_ac_var=no"
14197 fi
14198
14199 rm -rf conftest.dSYM
14200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14201 conftest$ac_exeext conftest.$ac_ext
14202 fi
14203 ac_res=`eval 'as_val=${'$as_ac_var'}
14204 $as_echo "$as_val"'`
14205 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14206 $as_echo "$ac_res" >&6; }
14207 as_val=`eval 'as_val=${'$as_ac_var'}
14208 $as_echo "$as_val"'`
14209 if test "x$as_val" = x""yes; then
14210 cat >>confdefs.h <<_ACEOF 9870 cat >>confdefs.h <<_ACEOF
14211 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 9871 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14212 _ACEOF 9872 _ACEOF
14213 9873
14214 fi 9874 fi
14215 done 9875 done
14216 9876
14217 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 9877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14218 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 9878 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14219 if test "${ac_cv_sys_largefile_source+set}" = set; then 9879 if test "${ac_cv_sys_largefile_source+set}" = set; then :
14220 $as_echo_n "(cached) " >&6 9880 $as_echo_n "(cached) " >&6
14221 else 9881 else
14222 while :; do 9882 while :; do
14223 cat >conftest.$ac_ext <<_ACEOF 9883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14224 /* confdefs.h. */
14225 _ACEOF
14226 cat confdefs.h >>conftest.$ac_ext
14227 cat >>conftest.$ac_ext <<_ACEOF
14228 /* end confdefs.h. */ 9884 /* end confdefs.h. */
14229 #include <sys/types.h> /* for off_t */ 9885 #include <sys/types.h> /* for off_t */
14230 #include <stdio.h> 9886 #include <stdio.h>
14231 int 9887 int
14232 main () 9888 main ()
14235 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 9891 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14236 ; 9892 ;
14237 return 0; 9893 return 0;
14238 } 9894 }
14239 _ACEOF 9895 _ACEOF
14240 rm -f conftest.$ac_objext conftest$ac_exeext 9896 if ac_fn_c_try_link "$LINENO"; then :
14241 if { (ac_try="$ac_link"
14242 case "(($ac_try" in
14243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14244 *) ac_try_echo=$ac_try;;
14245 esac
14246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14247 $as_echo "$ac_try_echo") >&5
14248 (eval "$ac_link") 2>conftest.er1
14249 ac_status=$?
14250 grep -v '^ *+' conftest.er1 >conftest.err
14251 rm -f conftest.er1
14252 cat conftest.err >&5
14253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); } && {
14255 test -z "$ac_c_werror_flag" ||
14256 test ! -s conftest.err
14257 } && test -s conftest$ac_exeext && {
14258 test "$cross_compiling" = yes ||
14259 $as_test_x conftest$ac_exeext
14260 }; then
14261 ac_cv_sys_largefile_source=no; break 9897 ac_cv_sys_largefile_source=no; break
14262 else 9898 fi
14263 $as_echo "$as_me: failed program was:" >&5 9899 rm -f core conftest.err conftest.$ac_objext \
14264 sed 's/^/| /' conftest.$ac_ext >&5 9900 conftest$ac_exeext conftest.$ac_ext
14265 9901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14266
14267 fi
14268
14269 rm -rf conftest.dSYM
14270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14271 conftest$ac_exeext conftest.$ac_ext
14272 cat >conftest.$ac_ext <<_ACEOF
14273 /* confdefs.h. */
14274 _ACEOF
14275 cat confdefs.h >>conftest.$ac_ext
14276 cat >>conftest.$ac_ext <<_ACEOF
14277 /* end confdefs.h. */ 9902 /* end confdefs.h. */
14278 #define _LARGEFILE_SOURCE 1 9903 #define _LARGEFILE_SOURCE 1
14279 #include <sys/types.h> /* for off_t */ 9904 #include <sys/types.h> /* for off_t */
14280 #include <stdio.h> 9905 #include <stdio.h>
14281 int 9906 int
14285 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 9910 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14286 ; 9911 ;
14287 return 0; 9912 return 0;
14288 } 9913 }
14289 _ACEOF 9914 _ACEOF
14290 rm -f conftest.$ac_objext conftest$ac_exeext 9915 if ac_fn_c_try_link "$LINENO"; then :
14291 if { (ac_try="$ac_link"
14292 case "(($ac_try" in
14293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14294 *) ac_try_echo=$ac_try;;
14295 esac
14296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14297 $as_echo "$ac_try_echo") >&5
14298 (eval "$ac_link") 2>conftest.er1
14299 ac_status=$?
14300 grep -v '^ *+' conftest.er1 >conftest.err
14301 rm -f conftest.er1
14302 cat conftest.err >&5
14303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304 (exit $ac_status); } && {
14305 test -z "$ac_c_werror_flag" ||
14306 test ! -s conftest.err
14307 } && test -s conftest$ac_exeext && {
14308 test "$cross_compiling" = yes ||
14309 $as_test_x conftest$ac_exeext
14310 }; then
14311 ac_cv_sys_largefile_source=1; break 9916 ac_cv_sys_largefile_source=1; break
14312 else 9917 fi
14313 $as_echo "$as_me: failed program was:" >&5 9918 rm -f core conftest.err conftest.$ac_objext \
14314 sed 's/^/| /' conftest.$ac_ext >&5 9919 conftest$ac_exeext conftest.$ac_ext
14315
14316
14317 fi
14318
14319 rm -rf conftest.dSYM
14320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14321 conftest$ac_exeext conftest.$ac_ext
14322 ac_cv_sys_largefile_source=unknown 9920 ac_cv_sys_largefile_source=unknown
14323 break 9921 break
14324 done 9922 done
14325 fi 9923 fi
14326 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14327 $as_echo "$ac_cv_sys_largefile_source" >&6; } 9925 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14328 case $ac_cv_sys_largefile_source in #( 9926 case $ac_cv_sys_largefile_source in #(
14329 no | unknown) ;; 9927 no | unknown) ;;
14330 *) 9928 *)
14331 cat >>confdefs.h <<_ACEOF 9929 cat >>confdefs.h <<_ACEOF
14338 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 9936 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14339 # in glibc 2.1.3, but that breaks too many other things. 9937 # in glibc 2.1.3, but that breaks too many other things.
14340 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 9938 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14341 if test $ac_cv_sys_largefile_source != unknown; then 9939 if test $ac_cv_sys_largefile_source != unknown; then
14342 9940
14343 cat >>confdefs.h <<\_ACEOF 9941 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14344 #define HAVE_FSEEKO 1
14345 _ACEOF
14346 9942
14347 fi 9943 fi
14348 9944
14349 9945
14350 # Check whether --enable-largefile was given. 9946 # Check whether --enable-largefile was given.
14351 if test "${enable_largefile+set}" = set; then 9947 if test "${enable_largefile+set}" = set; then :
14352 enableval=$enable_largefile; 9948 enableval=$enable_largefile;
14353 fi 9949 fi
14354 9950
14355 if test "$enable_largefile" != no; then 9951 if test "$enable_largefile" != no; then
14356 9952
14357 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 9953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
14358 $as_echo_n "checking for special C compiler options needed for large files... " >&6; } 9954 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
14359 if test "${ac_cv_sys_largefile_CC+set}" = set; then 9955 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
14360 $as_echo_n "(cached) " >&6 9956 $as_echo_n "(cached) " >&6
14361 else 9957 else
14362 ac_cv_sys_largefile_CC=no 9958 ac_cv_sys_largefile_CC=no
14363 if test "$GCC" != yes; then 9959 if test "$GCC" != yes; then
14364 ac_save_CC=$CC 9960 ac_save_CC=$CC
14365 while :; do 9961 while :; do
14366 # IRIX 6.2 and later do not support large files by default, 9962 # IRIX 6.2 and later do not support large files by default,
14367 # so use the C compiler's -n32 option if that helps. 9963 # so use the C compiler's -n32 option if that helps.
14368 cat >conftest.$ac_ext <<_ACEOF 9964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14369 /* confdefs.h. */
14370 _ACEOF
14371 cat confdefs.h >>conftest.$ac_ext
14372 cat >>conftest.$ac_ext <<_ACEOF
14373 /* end confdefs.h. */ 9965 /* end confdefs.h. */
14374 #include <sys/types.h> 9966 #include <sys/types.h>
14375 /* Check that off_t can represent 2**63 - 1 correctly. 9967 /* Check that off_t can represent 2**63 - 1 correctly.
14376 We can't simply define LARGE_OFF_T to be 9223372036854775807, 9968 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14377 since some C++ compilers masquerading as C compilers 9969 since some C++ compilers masquerading as C compilers
14386 9978
14387 ; 9979 ;
14388 return 0; 9980 return 0;
14389 } 9981 }
14390 _ACEOF 9982 _ACEOF
14391 rm -f conftest.$ac_objext 9983 if ac_fn_c_try_compile "$LINENO"; then :
14392 if { (ac_try="$ac_compile"
14393 case "(($ac_try" in
14394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14395 *) ac_try_echo=$ac_try;;
14396 esac
14397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14398 $as_echo "$ac_try_echo") >&5
14399 (eval "$ac_compile") 2>conftest.er1
14400 ac_status=$?
14401 grep -v '^ *+' conftest.er1 >conftest.err
14402 rm -f conftest.er1
14403 cat conftest.err >&5
14404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14405 (exit $ac_status); } && {
14406 test -z "$ac_c_werror_flag" ||
14407 test ! -s conftest.err
14408 } && test -s conftest.$ac_objext; then
14409 break 9984 break
14410 else 9985 fi
14411 $as_echo "$as_me: failed program was:" >&5
14412 sed 's/^/| /' conftest.$ac_ext >&5
14413
14414
14415 fi
14416
14417 rm -f core conftest.err conftest.$ac_objext 9986 rm -f core conftest.err conftest.$ac_objext
14418 CC="$CC -n32" 9987 CC="$CC -n32"
14419 rm -f conftest.$ac_objext 9988 if ac_fn_c_try_compile "$LINENO"; then :
14420 if { (ac_try="$ac_compile"
14421 case "(($ac_try" in
14422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14423 *) ac_try_echo=$ac_try;;
14424 esac
14425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14426 $as_echo "$ac_try_echo") >&5
14427 (eval "$ac_compile") 2>conftest.er1
14428 ac_status=$?
14429 grep -v '^ *+' conftest.er1 >conftest.err
14430 rm -f conftest.er1
14431 cat conftest.err >&5
14432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); } && {
14434 test -z "$ac_c_werror_flag" ||
14435 test ! -s conftest.err
14436 } && test -s conftest.$ac_objext; then
14437 ac_cv_sys_largefile_CC=' -n32'; break 9989 ac_cv_sys_largefile_CC=' -n32'; break
14438 else 9990 fi
14439 $as_echo "$as_me: failed program was:" >&5
14440 sed 's/^/| /' conftest.$ac_ext >&5
14441
14442
14443 fi
14444
14445 rm -f core conftest.err conftest.$ac_objext 9991 rm -f core conftest.err conftest.$ac_objext
14446 break 9992 break
14447 done 9993 done
14448 CC=$ac_save_CC 9994 CC=$ac_save_CC
14449 rm -f conftest.$ac_ext 9995 rm -f conftest.$ac_ext
14450 fi 9996 fi
14451 fi 9997 fi
14452 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
14453 $as_echo "$ac_cv_sys_largefile_CC" >&6; } 9999 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
14454 if test "$ac_cv_sys_largefile_CC" != no; then 10000 if test "$ac_cv_sys_largefile_CC" != no; then
14455 CC=$CC$ac_cv_sys_largefile_CC 10001 CC=$CC$ac_cv_sys_largefile_CC
14456 fi 10002 fi
14457 10003
14458 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 10004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14459 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 10005 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
14460 if test "${ac_cv_sys_file_offset_bits+set}" = set; then 10006 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
14461 $as_echo_n "(cached) " >&6 10007 $as_echo_n "(cached) " >&6
14462 else 10008 else
14463 while :; do 10009 while :; do
14464 cat >conftest.$ac_ext <<_ACEOF 10010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14465 /* confdefs.h. */
14466 _ACEOF
14467 cat confdefs.h >>conftest.$ac_ext
14468 cat >>conftest.$ac_ext <<_ACEOF
14469 /* end confdefs.h. */ 10011 /* end confdefs.h. */
14470 #include <sys/types.h> 10012 #include <sys/types.h>
14471 /* Check that off_t can represent 2**63 - 1 correctly. 10013 /* Check that off_t can represent 2**63 - 1 correctly.
14472 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10014 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14473 since some C++ compilers masquerading as C compilers 10015 since some C++ compilers masquerading as C compilers
14482 10024
14483 ; 10025 ;
14484 return 0; 10026 return 0;
14485 } 10027 }
14486 _ACEOF 10028 _ACEOF
14487 rm -f conftest.$ac_objext 10029 if ac_fn_c_try_compile "$LINENO"; then :
14488 if { (ac_try="$ac_compile"
14489 case "(($ac_try" in
14490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14491 *) ac_try_echo=$ac_try;;
14492 esac
14493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14494 $as_echo "$ac_try_echo") >&5
14495 (eval "$ac_compile") 2>conftest.er1
14496 ac_status=$?
14497 grep -v '^ *+' conftest.er1 >conftest.err
14498 rm -f conftest.er1
14499 cat conftest.err >&5
14500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14501 (exit $ac_status); } && {
14502 test -z "$ac_c_werror_flag" ||
14503 test ! -s conftest.err
14504 } && test -s conftest.$ac_objext; then
14505 ac_cv_sys_file_offset_bits=no; break 10030 ac_cv_sys_file_offset_bits=no; break
14506 else 10031 fi
14507 $as_echo "$as_me: failed program was:" >&5
14508 sed 's/^/| /' conftest.$ac_ext >&5
14509
14510
14511 fi
14512
14513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14514 cat >conftest.$ac_ext <<_ACEOF 10033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14515 /* confdefs.h. */
14516 _ACEOF
14517 cat confdefs.h >>conftest.$ac_ext
14518 cat >>conftest.$ac_ext <<_ACEOF
14519 /* end confdefs.h. */ 10034 /* end confdefs.h. */
14520 #define _FILE_OFFSET_BITS 64 10035 #define _FILE_OFFSET_BITS 64
14521 #include <sys/types.h> 10036 #include <sys/types.h>
14522 /* Check that off_t can represent 2**63 - 1 correctly. 10037 /* Check that off_t can represent 2**63 - 1 correctly.
14523 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10038 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14533 10048
14534 ; 10049 ;
14535 return 0; 10050 return 0;
14536 } 10051 }
14537 _ACEOF 10052 _ACEOF
14538 rm -f conftest.$ac_objext 10053 if ac_fn_c_try_compile "$LINENO"; then :
14539 if { (ac_try="$ac_compile"
14540 case "(($ac_try" in
14541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14542 *) ac_try_echo=$ac_try;;
14543 esac
14544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14545 $as_echo "$ac_try_echo") >&5
14546 (eval "$ac_compile") 2>conftest.er1
14547 ac_status=$?
14548 grep -v '^ *+' conftest.er1 >conftest.err
14549 rm -f conftest.er1
14550 cat conftest.err >&5
14551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552 (exit $ac_status); } && {
14553 test -z "$ac_c_werror_flag" ||
14554 test ! -s conftest.err
14555 } && test -s conftest.$ac_objext; then
14556 ac_cv_sys_file_offset_bits=64; break 10054 ac_cv_sys_file_offset_bits=64; break
14557 else 10055 fi
14558 $as_echo "$as_me: failed program was:" >&5
14559 sed 's/^/| /' conftest.$ac_ext >&5
14560
14561
14562 fi
14563
14564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14565 ac_cv_sys_file_offset_bits=unknown 10057 ac_cv_sys_file_offset_bits=unknown
14566 break 10058 break
14567 done 10059 done
14568 fi 10060 fi
14569 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 10061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
14570 $as_echo "$ac_cv_sys_file_offset_bits" >&6; } 10062 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
14571 case $ac_cv_sys_file_offset_bits in #( 10063 case $ac_cv_sys_file_offset_bits in #(
14572 no | unknown) ;; 10064 no | unknown) ;;
14573 *) 10065 *)
14574 cat >>confdefs.h <<_ACEOF 10066 cat >>confdefs.h <<_ACEOF
14576 _ACEOF 10068 _ACEOF
14577 ;; 10069 ;;
14578 esac 10070 esac
14579 rm -rf conftest* 10071 rm -rf conftest*
14580 if test $ac_cv_sys_file_offset_bits = unknown; then 10072 if test $ac_cv_sys_file_offset_bits = unknown; then
14581 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 10073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
14582 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 10074 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
14583 if test "${ac_cv_sys_large_files+set}" = set; then 10075 if test "${ac_cv_sys_large_files+set}" = set; then :
14584 $as_echo_n "(cached) " >&6 10076 $as_echo_n "(cached) " >&6
14585 else 10077 else
14586 while :; do 10078 while :; do
14587 cat >conftest.$ac_ext <<_ACEOF 10079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14588 /* confdefs.h. */
14589 _ACEOF
14590 cat confdefs.h >>conftest.$ac_ext
14591 cat >>conftest.$ac_ext <<_ACEOF
14592 /* end confdefs.h. */ 10080 /* end confdefs.h. */
14593 #include <sys/types.h> 10081 #include <sys/types.h>
14594 /* Check that off_t can represent 2**63 - 1 correctly. 10082 /* Check that off_t can represent 2**63 - 1 correctly.
14595 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10083 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14596 since some C++ compilers masquerading as C compilers 10084 since some C++ compilers masquerading as C compilers
14605 10093
14606 ; 10094 ;
14607 return 0; 10095 return 0;
14608 } 10096 }
14609 _ACEOF 10097 _ACEOF
14610 rm -f conftest.$ac_objext 10098 if ac_fn_c_try_compile "$LINENO"; then :
14611 if { (ac_try="$ac_compile"
14612 case "(($ac_try" in
14613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14614 *) ac_try_echo=$ac_try;;
14615 esac
14616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14617 $as_echo "$ac_try_echo") >&5
14618 (eval "$ac_compile") 2>conftest.er1
14619 ac_status=$?
14620 grep -v '^ *+' conftest.er1 >conftest.err
14621 rm -f conftest.er1
14622 cat conftest.err >&5
14623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624 (exit $ac_status); } && {
14625 test -z "$ac_c_werror_flag" ||
14626 test ! -s conftest.err
14627 } && test -s conftest.$ac_objext; then
14628 ac_cv_sys_large_files=no; break 10099 ac_cv_sys_large_files=no; break
14629 else 10100 fi
14630 $as_echo "$as_me: failed program was:" >&5
14631 sed 's/^/| /' conftest.$ac_ext >&5
14632
14633
14634 fi
14635
14636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14637 cat >conftest.$ac_ext <<_ACEOF 10102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14638 /* confdefs.h. */
14639 _ACEOF
14640 cat confdefs.h >>conftest.$ac_ext
14641 cat >>conftest.$ac_ext <<_ACEOF
14642 /* end confdefs.h. */ 10103 /* end confdefs.h. */
14643 #define _LARGE_FILES 1 10104 #define _LARGE_FILES 1
14644 #include <sys/types.h> 10105 #include <sys/types.h>
14645 /* Check that off_t can represent 2**63 - 1 correctly. 10106 /* Check that off_t can represent 2**63 - 1 correctly.
14646 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10107 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14656 10117
14657 ; 10118 ;
14658 return 0; 10119 return 0;
14659 } 10120 }
14660 _ACEOF 10121 _ACEOF
14661 rm -f conftest.$ac_objext 10122 if ac_fn_c_try_compile "$LINENO"; then :
14662 if { (ac_try="$ac_compile"
14663 case "(($ac_try" in
14664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14665 *) ac_try_echo=$ac_try;;
14666 esac
14667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14668 $as_echo "$ac_try_echo") >&5
14669 (eval "$ac_compile") 2>conftest.er1
14670 ac_status=$?
14671 grep -v '^ *+' conftest.er1 >conftest.err
14672 rm -f conftest.er1
14673 cat conftest.err >&5
14674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675 (exit $ac_status); } && {
14676 test -z "$ac_c_werror_flag" ||
14677 test ! -s conftest.err
14678 } && test -s conftest.$ac_objext; then
14679 ac_cv_sys_large_files=1; break 10123 ac_cv_sys_large_files=1; break
14680 else 10124 fi
14681 $as_echo "$as_me: failed program was:" >&5
14682 sed 's/^/| /' conftest.$ac_ext >&5
14683
14684
14685 fi
14686
14687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14688 ac_cv_sys_large_files=unknown 10126 ac_cv_sys_large_files=unknown
14689 break 10127 break
14690 done 10128 done
14691 fi 10129 fi
14692 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 10130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
14693 $as_echo "$ac_cv_sys_large_files" >&6; } 10131 $as_echo "$ac_cv_sys_large_files" >&6; }
14694 case $ac_cv_sys_large_files in #( 10132 case $ac_cv_sys_large_files in #(
14695 no | unknown) ;; 10133 no | unknown) ;;
14696 *) 10134 *)
14697 cat >>confdefs.h <<_ACEOF 10135 cat >>confdefs.h <<_ACEOF
14702 rm -rf conftest* 10140 rm -rf conftest*
14703 fi 10141 fi
14704 fi 10142 fi
14705 10143
14706 10144
14707 { $as_echo "$as_me:$LINENO: checking for st_blksize" >&5 10145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_blksize" >&5
14708 $as_echo_n "checking for st_blksize... " >&6; } 10146 $as_echo_n "checking for st_blksize... " >&6; }
14709 cat >conftest.$ac_ext <<_ACEOF 10147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14710 /* confdefs.h. */
14711 _ACEOF
14712 cat confdefs.h >>conftest.$ac_ext
14713 cat >>conftest.$ac_ext <<_ACEOF
14714 /* end confdefs.h. */ 10148 /* end confdefs.h. */
14715 #include <sys/types.h> 10149 #include <sys/types.h>
14716 #include <sys/stat.h> 10150 #include <sys/stat.h>
14717 int 10151 int
14718 main () 10152 main ()
14724 n = (int)st.st_blksize; 10158 n = (int)st.st_blksize;
14725 ; 10159 ;
14726 return 0; 10160 return 0;
14727 } 10161 }
14728 _ACEOF 10162 _ACEOF
14729 rm -f conftest.$ac_objext 10163 if ac_fn_c_try_compile "$LINENO"; then :
14730 if { (ac_try="$ac_compile" 10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14731 case "(($ac_try" in 10165 $as_echo "yes" >&6; }; $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
14732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10166
14733 *) ac_try_echo=$ac_try;; 10167 else
14734 esac 10168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14736 $as_echo "$ac_try_echo") >&5
14737 (eval "$ac_compile") 2>conftest.er1
14738 ac_status=$?
14739 grep -v '^ *+' conftest.er1 >conftest.err
14740 rm -f conftest.er1
14741 cat conftest.err >&5
14742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743 (exit $ac_status); } && {
14744 test -z "$ac_c_werror_flag" ||
14745 test ! -s conftest.err
14746 } && test -s conftest.$ac_objext; then
14747 { $as_echo "$as_me:$LINENO: result: yes" >&5
14748 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14749 #define HAVE_ST_BLKSIZE 1
14750 _ACEOF
14751
14752 else
14753 $as_echo "$as_me: failed program was:" >&5
14754 sed 's/^/| /' conftest.$ac_ext >&5
14755
14756 { $as_echo "$as_me:$LINENO: result: no" >&5
14757 $as_echo "no" >&6; } 10169 $as_echo "no" >&6; }
14758 fi 10170 fi
14759
14760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14761 10172
14762 { $as_echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5 10173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat() ignores a trailing slash" >&5
14763 $as_echo_n "checking whether stat() ignores a trailing slash... " >&6; } 10174 $as_echo_n "checking whether stat() ignores a trailing slash... " >&6; }
14764 if test "${vim_cv_stat_ignores_slash+set}" = set; then 10175 if test "${vim_cv_stat_ignores_slash+set}" = set; then :
14765 $as_echo_n "(cached) " >&6 10176 $as_echo_n "(cached) " >&6
14766 else 10177 else
14767 10178
14768 if test "$cross_compiling" = yes; then 10179 if test "$cross_compiling" = yes; then :
14769 10180
14770 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&5 10181 as_fn_error "cross-compiling: please set 'vim_cv_stat_ignores_slash'" "$LINENO" 5
14771 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&2;} 10182
14772 { (exit 1); exit 1; }; } 10183 else
14773 10184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14774 else 10185 /* end confdefs.h. */
14775 cat >conftest.$ac_ext <<_ACEOF
14776 10186
14777 #include "confdefs.h" 10187 #include "confdefs.h"
14778 #if STDC_HEADERS 10188 #if STDC_HEADERS
14779 # include <stdlib.h> 10189 # include <stdlib.h>
14780 # include <stddef.h> 10190 # include <stddef.h>
14782 #include <sys/types.h> 10192 #include <sys/types.h>
14783 #include <sys/stat.h> 10193 #include <sys/stat.h>
14784 main() {struct stat st; exit(stat("configure/", &st) != 0); } 10194 main() {struct stat st; exit(stat("configure/", &st) != 0); }
14785 10195
14786 _ACEOF 10196 _ACEOF
14787 rm -f conftest$ac_exeext 10197 if ac_fn_c_try_run "$LINENO"; then :
14788 if { (ac_try="$ac_link"
14789 case "(($ac_try" in
14790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14791 *) ac_try_echo=$ac_try;;
14792 esac
14793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14794 $as_echo "$ac_try_echo") >&5
14795 (eval "$ac_link") 2>&5
14796 ac_status=$?
14797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14798 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14799 { (case "(($ac_try" in
14800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14801 *) ac_try_echo=$ac_try;;
14802 esac
14803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14804 $as_echo "$ac_try_echo") >&5
14805 (eval "$ac_try") 2>&5
14806 ac_status=$?
14807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808 (exit $ac_status); }; }; then
14809 10198
14810 vim_cv_stat_ignores_slash=yes 10199 vim_cv_stat_ignores_slash=yes
14811 10200
14812 else 10201 else
14813 $as_echo "$as_me: program exited with status $ac_status" >&5
14814 $as_echo "$as_me: failed program was:" >&5
14815 sed 's/^/| /' conftest.$ac_ext >&5
14816
14817 ( exit $ac_status )
14818 10202
14819 vim_cv_stat_ignores_slash=no 10203 vim_cv_stat_ignores_slash=no
14820 10204
14821 fi 10205 fi
14822 rm -rf conftest.dSYM 10206 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14823 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10207 conftest.$ac_objext conftest.beam conftest.$ac_ext
14824 fi 10208 fi
14825 10209
14826 10210
14827 10211 fi
14828 fi 10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_stat_ignores_slash" >&5
14829 { $as_echo "$as_me:$LINENO: result: $vim_cv_stat_ignores_slash" >&5
14830 $as_echo "$vim_cv_stat_ignores_slash" >&6; } 10213 $as_echo "$vim_cv_stat_ignores_slash" >&6; }
14831 10214
14832 if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then 10215 if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then
14833 cat >>confdefs.h <<\_ACEOF 10216 $as_echo "#define STAT_IGNORES_SLASH 1" >>confdefs.h
14834 #define STAT_IGNORES_SLASH 1 10217
14835 _ACEOF 10218 fi
14836 10219
14837 fi 10220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open()" >&5
14838
14839 { $as_echo "$as_me:$LINENO: checking for iconv_open()" >&5
14840 $as_echo_n "checking for iconv_open()... " >&6; } 10221 $as_echo_n "checking for iconv_open()... " >&6; }
14841 save_LIBS="$LIBS" 10222 save_LIBS="$LIBS"
14842 LIBS="$LIBS -liconv" 10223 LIBS="$LIBS -liconv"
14843 cat >conftest.$ac_ext <<_ACEOF 10224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14844 /* confdefs.h. */
14845 _ACEOF
14846 cat confdefs.h >>conftest.$ac_ext
14847 cat >>conftest.$ac_ext <<_ACEOF
14848 /* end confdefs.h. */ 10225 /* end confdefs.h. */
14849 10226
14850 #ifdef HAVE_ICONV_H 10227 #ifdef HAVE_ICONV_H
14851 # include <iconv.h> 10228 # include <iconv.h>
14852 #endif 10229 #endif
14857 iconv_open("fr", "to"); 10234 iconv_open("fr", "to");
14858 ; 10235 ;
14859 return 0; 10236 return 0;
14860 } 10237 }
14861 _ACEOF 10238 _ACEOF
14862 rm -f conftest.$ac_objext conftest$ac_exeext 10239 if ac_fn_c_try_link "$LINENO"; then :
14863 if { (ac_try="$ac_link" 10240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; with -liconv" >&5
14864 case "(($ac_try" in 10241 $as_echo "yes; with -liconv" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10242
14866 *) ac_try_echo=$ac_try;; 10243 else
14867 esac 10244 LIBS="$save_LIBS"
14868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14869 $as_echo "$ac_try_echo") >&5
14870 (eval "$ac_link") 2>conftest.er1
14871 ac_status=$?
14872 grep -v '^ *+' conftest.er1 >conftest.err
14873 rm -f conftest.er1
14874 cat conftest.err >&5
14875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876 (exit $ac_status); } && {
14877 test -z "$ac_c_werror_flag" ||
14878 test ! -s conftest.err
14879 } && test -s conftest$ac_exeext && {
14880 test "$cross_compiling" = yes ||
14881 $as_test_x conftest$ac_exeext
14882 }; then
14883 { $as_echo "$as_me:$LINENO: result: yes; with -liconv" >&5
14884 $as_echo "yes; with -liconv" >&6; }; cat >>confdefs.h <<\_ACEOF
14885 #define HAVE_ICONV 1
14886 _ACEOF
14887
14888 else
14889 $as_echo "$as_me: failed program was:" >&5
14890 sed 's/^/| /' conftest.$ac_ext >&5
14891
14892 LIBS="$save_LIBS"
14893 cat >conftest.$ac_ext <<_ACEOF
14894 /* confdefs.h. */
14895 _ACEOF
14896 cat confdefs.h >>conftest.$ac_ext
14897 cat >>conftest.$ac_ext <<_ACEOF
14898 /* end confdefs.h. */ 10246 /* end confdefs.h. */
14899 10247
14900 #ifdef HAVE_ICONV_H 10248 #ifdef HAVE_ICONV_H
14901 # include <iconv.h> 10249 # include <iconv.h>
14902 #endif 10250 #endif
14907 iconv_open("fr", "to"); 10255 iconv_open("fr", "to");
14908 ; 10256 ;
14909 return 0; 10257 return 0;
14910 } 10258 }
14911 _ACEOF 10259 _ACEOF
14912 rm -f conftest.$ac_objext conftest$ac_exeext 10260 if ac_fn_c_try_link "$LINENO"; then :
14913 if { (ac_try="$ac_link" 10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14914 case "(($ac_try" in 10262 $as_echo "yes" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10263
14916 *) ac_try_echo=$ac_try;; 10264 else
14917 esac 10265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14919 $as_echo "$ac_try_echo") >&5
14920 (eval "$ac_link") 2>conftest.er1
14921 ac_status=$?
14922 grep -v '^ *+' conftest.er1 >conftest.err
14923 rm -f conftest.er1
14924 cat conftest.err >&5
14925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926 (exit $ac_status); } && {
14927 test -z "$ac_c_werror_flag" ||
14928 test ! -s conftest.err
14929 } && test -s conftest$ac_exeext && {
14930 test "$cross_compiling" = yes ||
14931 $as_test_x conftest$ac_exeext
14932 }; then
14933 { $as_echo "$as_me:$LINENO: result: yes" >&5
14934 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14935 #define HAVE_ICONV 1
14936 _ACEOF
14937
14938 else
14939 $as_echo "$as_me: failed program was:" >&5
14940 sed 's/^/| /' conftest.$ac_ext >&5
14941
14942 { $as_echo "$as_me:$LINENO: result: no" >&5
14943 $as_echo "no" >&6; } 10266 $as_echo "no" >&6; }
14944 fi 10267 fi
14945 10268 rm -f core conftest.err conftest.$ac_objext \
14946 rm -rf conftest.dSYM 10269 conftest$ac_exeext conftest.$ac_ext
14947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10270 fi
14948 conftest$ac_exeext conftest.$ac_ext 10271 rm -f core conftest.err conftest.$ac_objext \
14949 fi 10272 conftest$ac_exeext conftest.$ac_ext
14950 10273
14951 rm -rf conftest.dSYM 10274
14952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo(CODESET)" >&5
14953 conftest$ac_exeext conftest.$ac_ext
14954
14955
14956 { $as_echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5
14957 $as_echo_n "checking for nl_langinfo(CODESET)... " >&6; } 10276 $as_echo_n "checking for nl_langinfo(CODESET)... " >&6; }
14958 cat >conftest.$ac_ext <<_ACEOF 10277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14959 /* confdefs.h. */
14960 _ACEOF
14961 cat confdefs.h >>conftest.$ac_ext
14962 cat >>conftest.$ac_ext <<_ACEOF
14963 /* end confdefs.h. */ 10278 /* end confdefs.h. */
14964 10279
14965 #ifdef HAVE_LANGINFO_H 10280 #ifdef HAVE_LANGINFO_H
14966 # include <langinfo.h> 10281 # include <langinfo.h>
14967 #endif 10282 #endif
14972 char *cs = nl_langinfo(CODESET); 10287 char *cs = nl_langinfo(CODESET);
14973 ; 10288 ;
14974 return 0; 10289 return 0;
14975 } 10290 }
14976 _ACEOF 10291 _ACEOF
14977 rm -f conftest.$ac_objext conftest$ac_exeext 10292 if ac_fn_c_try_link "$LINENO"; then :
14978 if { (ac_try="$ac_link" 10293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14979 case "(($ac_try" in 10294 $as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_LANGINFO_CODESET 1" >>confdefs.h
14980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10295
14981 *) ac_try_echo=$ac_try;; 10296 else
14982 esac 10297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14984 $as_echo "$ac_try_echo") >&5
14985 (eval "$ac_link") 2>conftest.er1
14986 ac_status=$?
14987 grep -v '^ *+' conftest.er1 >conftest.err
14988 rm -f conftest.er1
14989 cat conftest.err >&5
14990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991 (exit $ac_status); } && {
14992 test -z "$ac_c_werror_flag" ||
14993 test ! -s conftest.err
14994 } && test -s conftest$ac_exeext && {
14995 test "$cross_compiling" = yes ||
14996 $as_test_x conftest$ac_exeext
14997 }; then
14998 { $as_echo "$as_me:$LINENO: result: yes" >&5
14999 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15000 #define HAVE_NL_LANGINFO_CODESET 1
15001 _ACEOF
15002
15003 else
15004 $as_echo "$as_me: failed program was:" >&5
15005 sed 's/^/| /' conftest.$ac_ext >&5
15006
15007 { $as_echo "$as_me:$LINENO: result: no" >&5
15008 $as_echo "no" >&6; } 10298 $as_echo "no" >&6; }
15009 fi 10299 fi
15010 10300 rm -f core conftest.err conftest.$ac_objext \
15011 rm -rf conftest.dSYM 10301 conftest$ac_exeext conftest.$ac_ext
15012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10302
15013 conftest$ac_exeext conftest.$ac_ext 10303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod in -lm" >&5
15014
15015
15016 { $as_echo "$as_me:$LINENO: checking for strtod in -lm" >&5
15017 $as_echo_n "checking for strtod in -lm... " >&6; } 10304 $as_echo_n "checking for strtod in -lm... " >&6; }
15018 if test "${ac_cv_lib_m_strtod+set}" = set; then 10305 if test "${ac_cv_lib_m_strtod+set}" = set; then :
15019 $as_echo_n "(cached) " >&6 10306 $as_echo_n "(cached) " >&6
15020 else 10307 else
15021 ac_check_lib_save_LIBS=$LIBS 10308 ac_check_lib_save_LIBS=$LIBS
15022 LIBS="-lm $LIBS" 10309 LIBS="-lm $LIBS"
15023 cat >conftest.$ac_ext <<_ACEOF 10310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15024 /* confdefs.h. */
15025 _ACEOF
15026 cat confdefs.h >>conftest.$ac_ext
15027 cat >>conftest.$ac_ext <<_ACEOF
15028 /* end confdefs.h. */ 10311 /* end confdefs.h. */
15029 10312
15030 /* Override any GCC internal prototype to avoid an error. 10313 /* Override any GCC internal prototype to avoid an error.
15031 Use char because int might match the return type of a GCC 10314 Use char because int might match the return type of a GCC
15032 builtin and then its argument prototype would still apply. */ 10315 builtin and then its argument prototype would still apply. */
15040 return strtod (); 10323 return strtod ();
15041 ; 10324 ;
15042 return 0; 10325 return 0;
15043 } 10326 }
15044 _ACEOF 10327 _ACEOF
15045 rm -f conftest.$ac_objext conftest$ac_exeext 10328 if ac_fn_c_try_link "$LINENO"; then :
15046 if { (ac_try="$ac_link"
15047 case "(($ac_try" in
15048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15049 *) ac_try_echo=$ac_try;;
15050 esac
15051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15052 $as_echo "$ac_try_echo") >&5
15053 (eval "$ac_link") 2>conftest.er1
15054 ac_status=$?
15055 grep -v '^ *+' conftest.er1 >conftest.err
15056 rm -f conftest.er1
15057 cat conftest.err >&5
15058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15059 (exit $ac_status); } && {
15060 test -z "$ac_c_werror_flag" ||
15061 test ! -s conftest.err
15062 } && test -s conftest$ac_exeext && {
15063 test "$cross_compiling" = yes ||
15064 $as_test_x conftest$ac_exeext
15065 }; then
15066 ac_cv_lib_m_strtod=yes 10329 ac_cv_lib_m_strtod=yes
15067 else 10330 else
15068 $as_echo "$as_me: failed program was:" >&5 10331 ac_cv_lib_m_strtod=no
15069 sed 's/^/| /' conftest.$ac_ext >&5 10332 fi
15070 10333 rm -f core conftest.err conftest.$ac_objext \
15071 ac_cv_lib_m_strtod=no 10334 conftest$ac_exeext conftest.$ac_ext
15072 fi
15073
15074 rm -rf conftest.dSYM
15075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15076 conftest$ac_exeext conftest.$ac_ext
15077 LIBS=$ac_check_lib_save_LIBS 10335 LIBS=$ac_check_lib_save_LIBS
15078 fi 10336 fi
15079 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_strtod" >&5 10337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_strtod" >&5
15080 $as_echo "$ac_cv_lib_m_strtod" >&6; } 10338 $as_echo "$ac_cv_lib_m_strtod" >&6; }
15081 if test "x$ac_cv_lib_m_strtod" = x""yes; then 10339 if test "x$ac_cv_lib_m_strtod" = x""yes; then :
15082 cat >>confdefs.h <<_ACEOF 10340 cat >>confdefs.h <<_ACEOF
15083 #define HAVE_LIBM 1 10341 #define HAVE_LIBM 1
15084 _ACEOF 10342 _ACEOF
15085 10343
15086 LIBS="-lm $LIBS" 10344 LIBS="-lm $LIBS"
15087 10345
15088 fi 10346 fi
15089 10347
15090 { $as_echo "$as_me:$LINENO: checking for strtod() and other floating point functions" >&5 10348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod() and other floating point functions" >&5
15091 $as_echo_n "checking for strtod() and other floating point functions... " >&6; } 10349 $as_echo_n "checking for strtod() and other floating point functions... " >&6; }
15092 cat >conftest.$ac_ext <<_ACEOF 10350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15093 /* confdefs.h. */
15094 _ACEOF
15095 cat confdefs.h >>conftest.$ac_ext
15096 cat >>conftest.$ac_ext <<_ACEOF
15097 /* end confdefs.h. */ 10351 /* end confdefs.h. */
15098 10352
15099 #ifdef HAVE_MATH_H 10353 #ifdef HAVE_MATH_H
15100 # include <math.h> 10354 # include <math.h>
15101 #endif 10355 #endif
15121 10375
15122 ; 10376 ;
15123 return 0; 10377 return 0;
15124 } 10378 }
15125 _ACEOF 10379 _ACEOF
15126 rm -f conftest.$ac_objext conftest$ac_exeext 10380 if ac_fn_c_try_link "$LINENO"; then :
15127 if { (ac_try="$ac_link" 10381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15128 case "(($ac_try" in 10382 $as_echo "yes" >&6; }; $as_echo "#define HAVE_FLOAT_FUNCS 1" >>confdefs.h
15129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10383
15130 *) ac_try_echo=$ac_try;; 10384 else
15131 esac 10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15133 $as_echo "$ac_try_echo") >&5
15134 (eval "$ac_link") 2>conftest.er1
15135 ac_status=$?
15136 grep -v '^ *+' conftest.er1 >conftest.err
15137 rm -f conftest.er1
15138 cat conftest.err >&5
15139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140 (exit $ac_status); } && {
15141 test -z "$ac_c_werror_flag" ||
15142 test ! -s conftest.err
15143 } && test -s conftest$ac_exeext && {
15144 test "$cross_compiling" = yes ||
15145 $as_test_x conftest$ac_exeext
15146 }; then
15147 { $as_echo "$as_me:$LINENO: result: yes" >&5
15148 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15149 #define HAVE_FLOAT_FUNCS 1
15150 _ACEOF
15151
15152 else
15153 $as_echo "$as_me: failed program was:" >&5
15154 sed 's/^/| /' conftest.$ac_ext >&5
15155
15156 { $as_echo "$as_me:$LINENO: result: no" >&5
15157 $as_echo "no" >&6; } 10386 $as_echo "no" >&6; }
15158 fi 10387 fi
15159 10388 rm -f core conftest.err conftest.$ac_objext \
15160 rm -rf conftest.dSYM 10389 conftest$ac_exeext conftest.$ac_ext
15161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10390
15162 conftest$ac_exeext conftest.$ac_ext 10391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-acl argument" >&5
15163
15164 { $as_echo "$as_me:$LINENO: checking --disable-acl argument" >&5
15165 $as_echo_n "checking --disable-acl argument... " >&6; } 10392 $as_echo_n "checking --disable-acl argument... " >&6; }
15166 # Check whether --enable-acl was given. 10393 # Check whether --enable-acl was given.
15167 if test "${enable_acl+set}" = set; then 10394 if test "${enable_acl+set}" = set; then :
15168 enableval=$enable_acl; 10395 enableval=$enable_acl;
15169 else 10396 else
15170 enable_acl="yes" 10397 enable_acl="yes"
15171 fi 10398 fi
15172 10399
15173 if test "$enable_acl" = "yes"; then 10400 if test "$enable_acl" = "yes"; then
15174 { $as_echo "$as_me:$LINENO: result: no" >&5 10401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15175 $as_echo "no" >&6; } 10402 $as_echo "no" >&6; }
15176 { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5 10403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lposix1e" >&5
15177 $as_echo_n "checking for acl_get_file in -lposix1e... " >&6; } 10404 $as_echo_n "checking for acl_get_file in -lposix1e... " >&6; }
15178 if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then 10405 if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then :
15179 $as_echo_n "(cached) " >&6 10406 $as_echo_n "(cached) " >&6
15180 else 10407 else
15181 ac_check_lib_save_LIBS=$LIBS 10408 ac_check_lib_save_LIBS=$LIBS
15182 LIBS="-lposix1e $LIBS" 10409 LIBS="-lposix1e $LIBS"
15183 cat >conftest.$ac_ext <<_ACEOF 10410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15184 /* confdefs.h. */
15185 _ACEOF
15186 cat confdefs.h >>conftest.$ac_ext
15187 cat >>conftest.$ac_ext <<_ACEOF
15188 /* end confdefs.h. */ 10411 /* end confdefs.h. */
15189 10412
15190 /* Override any GCC internal prototype to avoid an error. 10413 /* Override any GCC internal prototype to avoid an error.
15191 Use char because int might match the return type of a GCC 10414 Use char because int might match the return type of a GCC
15192 builtin and then its argument prototype would still apply. */ 10415 builtin and then its argument prototype would still apply. */
15200 return acl_get_file (); 10423 return acl_get_file ();
15201 ; 10424 ;
15202 return 0; 10425 return 0;
15203 } 10426 }
15204 _ACEOF 10427 _ACEOF
15205 rm -f conftest.$ac_objext conftest$ac_exeext 10428 if ac_fn_c_try_link "$LINENO"; then :
15206 if { (ac_try="$ac_link"
15207 case "(($ac_try" in
15208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15209 *) ac_try_echo=$ac_try;;
15210 esac
15211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15212 $as_echo "$ac_try_echo") >&5
15213 (eval "$ac_link") 2>conftest.er1
15214 ac_status=$?
15215 grep -v '^ *+' conftest.er1 >conftest.err
15216 rm -f conftest.er1
15217 cat conftest.err >&5
15218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); } && {
15220 test -z "$ac_c_werror_flag" ||
15221 test ! -s conftest.err
15222 } && test -s conftest$ac_exeext && {
15223 test "$cross_compiling" = yes ||
15224 $as_test_x conftest$ac_exeext
15225 }; then
15226 ac_cv_lib_posix1e_acl_get_file=yes 10429 ac_cv_lib_posix1e_acl_get_file=yes
15227 else 10430 else
15228 $as_echo "$as_me: failed program was:" >&5 10431 ac_cv_lib_posix1e_acl_get_file=no
15229 sed 's/^/| /' conftest.$ac_ext >&5 10432 fi
15230 10433 rm -f core conftest.err conftest.$ac_objext \
15231 ac_cv_lib_posix1e_acl_get_file=no 10434 conftest$ac_exeext conftest.$ac_ext
15232 fi
15233
15234 rm -rf conftest.dSYM
15235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15236 conftest$ac_exeext conftest.$ac_ext
15237 LIBS=$ac_check_lib_save_LIBS 10435 LIBS=$ac_check_lib_save_LIBS
15238 fi 10436 fi
15239 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5 10437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix1e_acl_get_file" >&5
15240 $as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; } 10438 $as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; }
15241 if test "x$ac_cv_lib_posix1e_acl_get_file" = x""yes; then 10439 if test "x$ac_cv_lib_posix1e_acl_get_file" = x""yes; then :
15242 LIBS="$LIBS -lposix1e" 10440 LIBS="$LIBS -lposix1e"
15243 else 10441 else
15244 { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5 10442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
15245 $as_echo_n "checking for acl_get_file in -lacl... " >&6; } 10443 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
15246 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then 10444 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then :
15247 $as_echo_n "(cached) " >&6 10445 $as_echo_n "(cached) " >&6
15248 else 10446 else
15249 ac_check_lib_save_LIBS=$LIBS 10447 ac_check_lib_save_LIBS=$LIBS
15250 LIBS="-lacl $LIBS" 10448 LIBS="-lacl $LIBS"
15251 cat >conftest.$ac_ext <<_ACEOF 10449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15252 /* confdefs.h. */
15253 _ACEOF
15254 cat confdefs.h >>conftest.$ac_ext
15255 cat >>conftest.$ac_ext <<_ACEOF
15256 /* end confdefs.h. */ 10450 /* end confdefs.h. */
15257 10451
15258 /* Override any GCC internal prototype to avoid an error. 10452 /* Override any GCC internal prototype to avoid an error.
15259 Use char because int might match the return type of a GCC 10453 Use char because int might match the return type of a GCC
15260 builtin and then its argument prototype would still apply. */ 10454 builtin and then its argument prototype would still apply. */
15268 return acl_get_file (); 10462 return acl_get_file ();
15269 ; 10463 ;
15270 return 0; 10464 return 0;
15271 } 10465 }
15272 _ACEOF 10466 _ACEOF
15273 rm -f conftest.$ac_objext conftest$ac_exeext 10467 if ac_fn_c_try_link "$LINENO"; then :
15274 if { (ac_try="$ac_link"
15275 case "(($ac_try" in
15276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15277 *) ac_try_echo=$ac_try;;
15278 esac
15279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15280 $as_echo "$ac_try_echo") >&5
15281 (eval "$ac_link") 2>conftest.er1
15282 ac_status=$?
15283 grep -v '^ *+' conftest.er1 >conftest.err
15284 rm -f conftest.er1
15285 cat conftest.err >&5
15286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287 (exit $ac_status); } && {
15288 test -z "$ac_c_werror_flag" ||
15289 test ! -s conftest.err
15290 } && test -s conftest$ac_exeext && {
15291 test "$cross_compiling" = yes ||
15292 $as_test_x conftest$ac_exeext
15293 }; then
15294 ac_cv_lib_acl_acl_get_file=yes 10468 ac_cv_lib_acl_acl_get_file=yes
15295 else 10469 else
15296 $as_echo "$as_me: failed program was:" >&5 10470 ac_cv_lib_acl_acl_get_file=no
15297 sed 's/^/| /' conftest.$ac_ext >&5 10471 fi
15298 10472 rm -f core conftest.err conftest.$ac_objext \
15299 ac_cv_lib_acl_acl_get_file=no 10473 conftest$ac_exeext conftest.$ac_ext
15300 fi
15301
15302 rm -rf conftest.dSYM
15303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15304 conftest$ac_exeext conftest.$ac_ext
15305 LIBS=$ac_check_lib_save_LIBS 10474 LIBS=$ac_check_lib_save_LIBS
15306 fi 10475 fi
15307 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5 10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
15308 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; } 10477 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
15309 if test "x$ac_cv_lib_acl_acl_get_file" = x""yes; then 10478 if test "x$ac_cv_lib_acl_acl_get_file" = x""yes; then :
15310 LIBS="$LIBS -lacl" 10479 LIBS="$LIBS -lacl"
15311 { $as_echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5 10480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgetxattr in -lattr" >&5
15312 $as_echo_n "checking for fgetxattr in -lattr... " >&6; } 10481 $as_echo_n "checking for fgetxattr in -lattr... " >&6; }
15313 if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then 10482 if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then :
15314 $as_echo_n "(cached) " >&6 10483 $as_echo_n "(cached) " >&6
15315 else 10484 else
15316 ac_check_lib_save_LIBS=$LIBS 10485 ac_check_lib_save_LIBS=$LIBS
15317 LIBS="-lattr $LIBS" 10486 LIBS="-lattr $LIBS"
15318 cat >conftest.$ac_ext <<_ACEOF 10487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15319 /* confdefs.h. */
15320 _ACEOF
15321 cat confdefs.h >>conftest.$ac_ext
15322 cat >>conftest.$ac_ext <<_ACEOF
15323 /* end confdefs.h. */ 10488 /* end confdefs.h. */
15324 10489
15325 /* Override any GCC internal prototype to avoid an error. 10490 /* Override any GCC internal prototype to avoid an error.
15326 Use char because int might match the return type of a GCC 10491 Use char because int might match the return type of a GCC
15327 builtin and then its argument prototype would still apply. */ 10492 builtin and then its argument prototype would still apply. */
15335 return fgetxattr (); 10500 return fgetxattr ();
15336 ; 10501 ;
15337 return 0; 10502 return 0;
15338 } 10503 }
15339 _ACEOF 10504 _ACEOF
15340 rm -f conftest.$ac_objext conftest$ac_exeext 10505 if ac_fn_c_try_link "$LINENO"; then :
15341 if { (ac_try="$ac_link"
15342 case "(($ac_try" in
15343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15344 *) ac_try_echo=$ac_try;;
15345 esac
15346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15347 $as_echo "$ac_try_echo") >&5
15348 (eval "$ac_link") 2>conftest.er1
15349 ac_status=$?
15350 grep -v '^ *+' conftest.er1 >conftest.err
15351 rm -f conftest.er1
15352 cat conftest.err >&5
15353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354 (exit $ac_status); } && {
15355 test -z "$ac_c_werror_flag" ||
15356 test ! -s conftest.err
15357 } && test -s conftest$ac_exeext && {
15358 test "$cross_compiling" = yes ||
15359 $as_test_x conftest$ac_exeext
15360 }; then
15361 ac_cv_lib_attr_fgetxattr=yes 10506 ac_cv_lib_attr_fgetxattr=yes
15362 else 10507 else
15363 $as_echo "$as_me: failed program was:" >&5 10508 ac_cv_lib_attr_fgetxattr=no
15364 sed 's/^/| /' conftest.$ac_ext >&5 10509 fi
15365 10510 rm -f core conftest.err conftest.$ac_objext \
15366 ac_cv_lib_attr_fgetxattr=no 10511 conftest$ac_exeext conftest.$ac_ext
15367 fi
15368
15369 rm -rf conftest.dSYM
15370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15371 conftest$ac_exeext conftest.$ac_ext
15372 LIBS=$ac_check_lib_save_LIBS 10512 LIBS=$ac_check_lib_save_LIBS
15373 fi 10513 fi
15374 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5 10514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_fgetxattr" >&5
15375 $as_echo "$ac_cv_lib_attr_fgetxattr" >&6; } 10515 $as_echo "$ac_cv_lib_attr_fgetxattr" >&6; }
15376 if test "x$ac_cv_lib_attr_fgetxattr" = x""yes; then 10516 if test "x$ac_cv_lib_attr_fgetxattr" = x""yes; then :
15377 LIBS="$LIBS -lattr" 10517 LIBS="$LIBS -lattr"
15378 fi 10518 fi
15379 10519
15380 fi 10520 fi
15381 10521
15382 fi 10522 fi
15383 10523
15384 10524
15385 { $as_echo "$as_me:$LINENO: checking for POSIX ACL support" >&5 10525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX ACL support" >&5
15386 $as_echo_n "checking for POSIX ACL support... " >&6; } 10526 $as_echo_n "checking for POSIX ACL support... " >&6; }
15387 cat >conftest.$ac_ext <<_ACEOF 10527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15388 /* confdefs.h. */
15389 _ACEOF
15390 cat confdefs.h >>conftest.$ac_ext
15391 cat >>conftest.$ac_ext <<_ACEOF
15392 /* end confdefs.h. */ 10528 /* end confdefs.h. */
15393 10529
15394 #include <sys/types.h> 10530 #include <sys/types.h>
15395 #ifdef HAVE_SYS_ACL_H 10531 #ifdef HAVE_SYS_ACL_H
15396 # include <sys/acl.h> 10532 # include <sys/acl.h>
15404 acl_free(acl); 10540 acl_free(acl);
15405 ; 10541 ;
15406 return 0; 10542 return 0;
15407 } 10543 }
15408 _ACEOF 10544 _ACEOF
15409 rm -f conftest.$ac_objext conftest$ac_exeext 10545 if ac_fn_c_try_link "$LINENO"; then :
15410 if { (ac_try="$ac_link" 10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15411 case "(($ac_try" in 10547 $as_echo "yes" >&6; }; $as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h
15412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10548
15413 *) ac_try_echo=$ac_try;; 10549 else
15414 esac 10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15416 $as_echo "$ac_try_echo") >&5
15417 (eval "$ac_link") 2>conftest.er1
15418 ac_status=$?
15419 grep -v '^ *+' conftest.er1 >conftest.err
15420 rm -f conftest.er1
15421 cat conftest.err >&5
15422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423 (exit $ac_status); } && {
15424 test -z "$ac_c_werror_flag" ||
15425 test ! -s conftest.err
15426 } && test -s conftest$ac_exeext && {
15427 test "$cross_compiling" = yes ||
15428 $as_test_x conftest$ac_exeext
15429 }; then
15430 { $as_echo "$as_me:$LINENO: result: yes" >&5
15431 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15432 #define HAVE_POSIX_ACL 1
15433 _ACEOF
15434
15435 else
15436 $as_echo "$as_me: failed program was:" >&5
15437 sed 's/^/| /' conftest.$ac_ext >&5
15438
15439 { $as_echo "$as_me:$LINENO: result: no" >&5
15440 $as_echo "no" >&6; } 10551 $as_echo "no" >&6; }
15441 fi 10552 fi
15442 10553 rm -f core conftest.err conftest.$ac_objext \
15443 rm -rf conftest.dSYM 10554 conftest$ac_exeext conftest.$ac_ext
15444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10555
15445 conftest$ac_exeext conftest.$ac_ext 10556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris ACL support" >&5
15446
15447 { $as_echo "$as_me:$LINENO: checking for Solaris ACL support" >&5
15448 $as_echo_n "checking for Solaris ACL support... " >&6; } 10557 $as_echo_n "checking for Solaris ACL support... " >&6; }
15449 cat >conftest.$ac_ext <<_ACEOF 10558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15450 /* confdefs.h. */
15451 _ACEOF
15452 cat confdefs.h >>conftest.$ac_ext
15453 cat >>conftest.$ac_ext <<_ACEOF
15454 /* end confdefs.h. */ 10559 /* end confdefs.h. */
15455 10560
15456 #ifdef HAVE_SYS_ACL_H 10561 #ifdef HAVE_SYS_ACL_H
15457 # include <sys/acl.h> 10562 # include <sys/acl.h>
15458 #endif 10563 #endif
15463 10568
15464 ; 10569 ;
15465 return 0; 10570 return 0;
15466 } 10571 }
15467 _ACEOF 10572 _ACEOF
15468 rm -f conftest.$ac_objext conftest$ac_exeext 10573 if ac_fn_c_try_link "$LINENO"; then :
15469 if { (ac_try="$ac_link" 10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15470 case "(($ac_try" in 10575 $as_echo "yes" >&6; }; $as_echo "#define HAVE_SOLARIS_ACL 1" >>confdefs.h
15471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10576
15472 *) ac_try_echo=$ac_try;; 10577 else
15473 esac 10578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15475 $as_echo "$ac_try_echo") >&5
15476 (eval "$ac_link") 2>conftest.er1
15477 ac_status=$?
15478 grep -v '^ *+' conftest.er1 >conftest.err
15479 rm -f conftest.er1
15480 cat conftest.err >&5
15481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482 (exit $ac_status); } && {
15483 test -z "$ac_c_werror_flag" ||
15484 test ! -s conftest.err
15485 } && test -s conftest$ac_exeext && {
15486 test "$cross_compiling" = yes ||
15487 $as_test_x conftest$ac_exeext
15488 }; then
15489 { $as_echo "$as_me:$LINENO: result: yes" >&5
15490 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15491 #define HAVE_SOLARIS_ACL 1
15492 _ACEOF
15493
15494 else
15495 $as_echo "$as_me: failed program was:" >&5
15496 sed 's/^/| /' conftest.$ac_ext >&5
15497
15498 { $as_echo "$as_me:$LINENO: result: no" >&5
15499 $as_echo "no" >&6; } 10579 $as_echo "no" >&6; }
15500 fi 10580 fi
15501 10581 rm -f core conftest.err conftest.$ac_objext \
15502 rm -rf conftest.dSYM 10582 conftest$ac_exeext conftest.$ac_ext
15503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10583
15504 conftest$ac_exeext conftest.$ac_ext 10584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX ACL support" >&5
15505
15506 { $as_echo "$as_me:$LINENO: checking for AIX ACL support" >&5
15507 $as_echo_n "checking for AIX ACL support... " >&6; } 10585 $as_echo_n "checking for AIX ACL support... " >&6; }
15508 cat >conftest.$ac_ext <<_ACEOF 10586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15509 /* confdefs.h. */
15510 _ACEOF
15511 cat confdefs.h >>conftest.$ac_ext
15512 cat >>conftest.$ac_ext <<_ACEOF
15513 /* end confdefs.h. */ 10587 /* end confdefs.h. */
15514 10588
15515 #if STDC_HEADERS 10589 #if STDC_HEADERS
15516 # include <stdlib.h> 10590 # include <stdlib.h>
15517 # include <stddef.h> 10591 # include <stddef.h>
15537 10611
15538 ; 10612 ;
15539 return 0; 10613 return 0;
15540 } 10614 }
15541 _ACEOF 10615 _ACEOF
15542 rm -f conftest.$ac_objext conftest$ac_exeext 10616 if ac_fn_c_try_link "$LINENO"; then :
15543 if { (ac_try="$ac_link" 10617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15544 case "(($ac_try" in 10618 $as_echo "yes" >&6; }; $as_echo "#define HAVE_AIX_ACL 1" >>confdefs.h
15545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10619
15546 *) ac_try_echo=$ac_try;; 10620 else
15547 esac 10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15549 $as_echo "$ac_try_echo") >&5
15550 (eval "$ac_link") 2>conftest.er1
15551 ac_status=$?
15552 grep -v '^ *+' conftest.er1 >conftest.err
15553 rm -f conftest.er1
15554 cat conftest.err >&5
15555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556 (exit $ac_status); } && {
15557 test -z "$ac_c_werror_flag" ||
15558 test ! -s conftest.err
15559 } && test -s conftest$ac_exeext && {
15560 test "$cross_compiling" = yes ||
15561 $as_test_x conftest$ac_exeext
15562 }; then
15563 { $as_echo "$as_me:$LINENO: result: yes" >&5
15564 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15565 #define HAVE_AIX_ACL 1
15566 _ACEOF
15567
15568 else
15569 $as_echo "$as_me: failed program was:" >&5
15570 sed 's/^/| /' conftest.$ac_ext >&5
15571
15572 { $as_echo "$as_me:$LINENO: result: no" >&5
15573 $as_echo "no" >&6; } 10622 $as_echo "no" >&6; }
15574 fi 10623 fi
15575 10624 rm -f core conftest.err conftest.$ac_objext \
15576 rm -rf conftest.dSYM 10625 conftest$ac_exeext conftest.$ac_ext
15577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10626 else
15578 conftest$ac_exeext conftest.$ac_ext 10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15579 else
15580 { $as_echo "$as_me:$LINENO: result: yes" >&5
15581 $as_echo "yes" >&6; } 10628 $as_echo "yes" >&6; }
15582 fi 10629 fi
15583 10630
15584 { $as_echo "$as_me:$LINENO: checking --disable-gpm argument" >&5 10631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gpm argument" >&5
15585 $as_echo_n "checking --disable-gpm argument... " >&6; } 10632 $as_echo_n "checking --disable-gpm argument... " >&6; }
15586 # Check whether --enable-gpm was given. 10633 # Check whether --enable-gpm was given.
15587 if test "${enable_gpm+set}" = set; then 10634 if test "${enable_gpm+set}" = set; then :
15588 enableval=$enable_gpm; 10635 enableval=$enable_gpm;
15589 else 10636 else
15590 enable_gpm="yes" 10637 enable_gpm="yes"
15591 fi 10638 fi
15592 10639
15593 10640
15594 if test "$enable_gpm" = "yes"; then 10641 if test "$enable_gpm" = "yes"; then
15595 { $as_echo "$as_me:$LINENO: result: no" >&5 10642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15596 $as_echo "no" >&6; } 10643 $as_echo "no" >&6; }
15597 { $as_echo "$as_me:$LINENO: checking for gpm" >&5 10644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gpm" >&5
15598 $as_echo_n "checking for gpm... " >&6; } 10645 $as_echo_n "checking for gpm... " >&6; }
15599 if test "${vi_cv_have_gpm+set}" = set; then 10646 if test "${vi_cv_have_gpm+set}" = set; then :
15600 $as_echo_n "(cached) " >&6 10647 $as_echo_n "(cached) " >&6
15601 else 10648 else
15602 olibs="$LIBS" ; LIBS="-lgpm" 10649 olibs="$LIBS" ; LIBS="-lgpm"
15603 cat >conftest.$ac_ext <<_ACEOF 10650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15604 /* confdefs.h. */
15605 _ACEOF
15606 cat confdefs.h >>conftest.$ac_ext
15607 cat >>conftest.$ac_ext <<_ACEOF
15608 /* end confdefs.h. */ 10651 /* end confdefs.h. */
15609 #include <gpm.h> 10652 #include <gpm.h>
15610 #include <linux/keyboard.h> 10653 #include <linux/keyboard.h>
15611 int 10654 int
15612 main () 10655 main ()
15614 Gpm_GetLibVersion(NULL); 10657 Gpm_GetLibVersion(NULL);
15615 ; 10658 ;
15616 return 0; 10659 return 0;
15617 } 10660 }
15618 _ACEOF 10661 _ACEOF
15619 rm -f conftest.$ac_objext conftest$ac_exeext 10662 if ac_fn_c_try_link "$LINENO"; then :
15620 if { (ac_try="$ac_link"
15621 case "(($ac_try" in
15622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15623 *) ac_try_echo=$ac_try;;
15624 esac
15625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15626 $as_echo "$ac_try_echo") >&5
15627 (eval "$ac_link") 2>conftest.er1
15628 ac_status=$?
15629 grep -v '^ *+' conftest.er1 >conftest.err
15630 rm -f conftest.er1
15631 cat conftest.err >&5
15632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); } && {
15634 test -z "$ac_c_werror_flag" ||
15635 test ! -s conftest.err
15636 } && test -s conftest$ac_exeext && {
15637 test "$cross_compiling" = yes ||
15638 $as_test_x conftest$ac_exeext
15639 }; then
15640 vi_cv_have_gpm=yes 10663 vi_cv_have_gpm=yes
15641 else 10664 else
15642 $as_echo "$as_me: failed program was:" >&5 10665 vi_cv_have_gpm=no
15643 sed 's/^/| /' conftest.$ac_ext >&5 10666 fi
15644 10667 rm -f core conftest.err conftest.$ac_objext \
15645 vi_cv_have_gpm=no 10668 conftest$ac_exeext conftest.$ac_ext
15646 fi
15647
15648 rm -rf conftest.dSYM
15649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15650 conftest$ac_exeext conftest.$ac_ext
15651 LIBS="$olibs" 10669 LIBS="$olibs"
15652 10670
15653 fi 10671 fi
15654 { $as_echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5 10672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_gpm" >&5
15655 $as_echo "$vi_cv_have_gpm" >&6; } 10673 $as_echo "$vi_cv_have_gpm" >&6; }
15656 if test $vi_cv_have_gpm = yes; then 10674 if test $vi_cv_have_gpm = yes; then
15657 LIBS="$LIBS -lgpm" 10675 LIBS="$LIBS -lgpm"
15658 cat >>confdefs.h <<\_ACEOF 10676 $as_echo "#define HAVE_GPM 1" >>confdefs.h
15659 #define HAVE_GPM 1 10677
15660 _ACEOF 10678 fi
15661 10679 else
15662 fi 10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15663 else
15664 { $as_echo "$as_me:$LINENO: result: yes" >&5
15665 $as_echo "yes" >&6; } 10681 $as_echo "yes" >&6; }
15666 fi 10682 fi
15667 10683
15668 { $as_echo "$as_me:$LINENO: checking --disable-sysmouse argument" >&5 10684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-sysmouse argument" >&5
15669 $as_echo_n "checking --disable-sysmouse argument... " >&6; } 10685 $as_echo_n "checking --disable-sysmouse argument... " >&6; }
15670 # Check whether --enable-sysmouse was given. 10686 # Check whether --enable-sysmouse was given.
15671 if test "${enable_sysmouse+set}" = set; then 10687 if test "${enable_sysmouse+set}" = set; then :
15672 enableval=$enable_sysmouse; 10688 enableval=$enable_sysmouse;
15673 else 10689 else
15674 enable_sysmouse="yes" 10690 enable_sysmouse="yes"
15675 fi 10691 fi
15676 10692
15677 10693
15678 if test "$enable_sysmouse" = "yes"; then 10694 if test "$enable_sysmouse" = "yes"; then
15679 { $as_echo "$as_me:$LINENO: result: no" >&5 10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15680 $as_echo "no" >&6; } 10696 $as_echo "no" >&6; }
15681 { $as_echo "$as_me:$LINENO: checking for sysmouse" >&5 10697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysmouse" >&5
15682 $as_echo_n "checking for sysmouse... " >&6; } 10698 $as_echo_n "checking for sysmouse... " >&6; }
15683 if test "${vi_cv_have_sysmouse+set}" = set; then 10699 if test "${vi_cv_have_sysmouse+set}" = set; then :
15684 $as_echo_n "(cached) " >&6 10700 $as_echo_n "(cached) " >&6
15685 else 10701 else
15686 cat >conftest.$ac_ext <<_ACEOF 10702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15687 /* confdefs.h. */
15688 _ACEOF
15689 cat confdefs.h >>conftest.$ac_ext
15690 cat >>conftest.$ac_ext <<_ACEOF
15691 /* end confdefs.h. */ 10703 /* end confdefs.h. */
15692 #include <sys/consio.h> 10704 #include <sys/consio.h>
15693 #include <signal.h> 10705 #include <signal.h>
15694 #include <sys/fbio.h> 10706 #include <sys/fbio.h>
15695 int 10707 int
15702 mouse.u.mode.signal = SIGUSR2; 10714 mouse.u.mode.signal = SIGUSR2;
15703 ; 10715 ;
15704 return 0; 10716 return 0;
15705 } 10717 }
15706 _ACEOF 10718 _ACEOF
15707 rm -f conftest.$ac_objext conftest$ac_exeext 10719 if ac_fn_c_try_link "$LINENO"; then :
15708 if { (ac_try="$ac_link"
15709 case "(($ac_try" in
15710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15711 *) ac_try_echo=$ac_try;;
15712 esac
15713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15714 $as_echo "$ac_try_echo") >&5
15715 (eval "$ac_link") 2>conftest.er1
15716 ac_status=$?
15717 grep -v '^ *+' conftest.er1 >conftest.err
15718 rm -f conftest.er1
15719 cat conftest.err >&5
15720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721 (exit $ac_status); } && {
15722 test -z "$ac_c_werror_flag" ||
15723 test ! -s conftest.err
15724 } && test -s conftest$ac_exeext && {
15725 test "$cross_compiling" = yes ||
15726 $as_test_x conftest$ac_exeext
15727 }; then
15728 vi_cv_have_sysmouse=yes 10720 vi_cv_have_sysmouse=yes
15729 else 10721 else
15730 $as_echo "$as_me: failed program was:" >&5 10722 vi_cv_have_sysmouse=no
15731 sed 's/^/| /' conftest.$ac_ext >&5 10723 fi
15732 10724 rm -f core conftest.err conftest.$ac_objext \
15733 vi_cv_have_sysmouse=no 10725 conftest$ac_exeext conftest.$ac_ext
15734 fi 10726
15735 10727 fi
15736 rm -rf conftest.dSYM 10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_sysmouse" >&5
15737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15738 conftest$ac_exeext conftest.$ac_ext
15739
15740 fi
15741 { $as_echo "$as_me:$LINENO: result: $vi_cv_have_sysmouse" >&5
15742 $as_echo "$vi_cv_have_sysmouse" >&6; } 10729 $as_echo "$vi_cv_have_sysmouse" >&6; }
15743 if test $vi_cv_have_sysmouse = yes; then 10730 if test $vi_cv_have_sysmouse = yes; then
15744 cat >>confdefs.h <<\_ACEOF 10731 $as_echo "#define HAVE_SYSMOUSE 1" >>confdefs.h
15745 #define HAVE_SYSMOUSE 1 10732
15746 _ACEOF 10733 fi
15747 10734 else
15748 fi 10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15749 else
15750 { $as_echo "$as_me:$LINENO: result: yes" >&5
15751 $as_echo "yes" >&6; } 10736 $as_echo "yes" >&6; }
15752 fi 10737 fi
15753 10738
15754 { $as_echo "$as_me:$LINENO: checking for FD_CLOEXEC" >&5 10739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FD_CLOEXEC" >&5
15755 $as_echo_n "checking for FD_CLOEXEC... " >&6; } 10740 $as_echo_n "checking for FD_CLOEXEC... " >&6; }
15756 cat >conftest.$ac_ext <<_ACEOF 10741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15757 /* confdefs.h. */
15758 _ACEOF
15759 cat confdefs.h >>conftest.$ac_ext
15760 cat >>conftest.$ac_ext <<_ACEOF
15761 /* end confdefs.h. */ 10742 /* end confdefs.h. */
15762 #if HAVE_FCNTL_H 10743 #if HAVE_FCNTL_H
15763 # include <fcntl.h> 10744 # include <fcntl.h>
15764 #endif 10745 #endif
15765 int 10746 int
15768 int flag = FD_CLOEXEC; 10749 int flag = FD_CLOEXEC;
15769 ; 10750 ;
15770 return 0; 10751 return 0;
15771 } 10752 }
15772 _ACEOF 10753 _ACEOF
15773 rm -f conftest.$ac_objext 10754 if ac_fn_c_try_compile "$LINENO"; then :
15774 if { (ac_try="$ac_compile" 10755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15775 case "(($ac_try" in 10756 $as_echo "yes" >&6; }; $as_echo "#define HAVE_FD_CLOEXEC 1" >>confdefs.h
15776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10757
15777 *) ac_try_echo=$ac_try;; 10758 else
15778 esac 10759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
15779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15780 $as_echo "$ac_try_echo") >&5
15781 (eval "$ac_compile") 2>conftest.er1
15782 ac_status=$?
15783 grep -v '^ *+' conftest.er1 >conftest.err
15784 rm -f conftest.er1
15785 cat conftest.err >&5
15786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787 (exit $ac_status); } && {
15788 test -z "$ac_c_werror_flag" ||
15789 test ! -s conftest.err
15790 } && test -s conftest.$ac_objext; then
15791 { $as_echo "$as_me:$LINENO: result: yes" >&5
15792 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15793 #define HAVE_FD_CLOEXEC 1
15794 _ACEOF
15795
15796 else
15797 $as_echo "$as_me: failed program was:" >&5
15798 sed 's/^/| /' conftest.$ac_ext >&5
15799
15800 { $as_echo "$as_me:$LINENO: result: not usable" >&5
15801 $as_echo "not usable" >&6; } 10760 $as_echo "not usable" >&6; }
15802 fi 10761 fi
15803
15804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15805 10763
15806 { $as_echo "$as_me:$LINENO: checking for rename" >&5 10764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rename" >&5
15807 $as_echo_n "checking for rename... " >&6; } 10765 $as_echo_n "checking for rename... " >&6; }
15808 cat >conftest.$ac_ext <<_ACEOF 10766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15809 /* confdefs.h. */
15810 _ACEOF
15811 cat confdefs.h >>conftest.$ac_ext
15812 cat >>conftest.$ac_ext <<_ACEOF
15813 /* end confdefs.h. */ 10767 /* end confdefs.h. */
15814 #include <stdio.h> 10768 #include <stdio.h>
15815 int 10769 int
15816 main () 10770 main ()
15817 { 10771 {
15818 rename("this", "that") 10772 rename("this", "that")
15819 ; 10773 ;
15820 return 0; 10774 return 0;
15821 } 10775 }
15822 _ACEOF 10776 _ACEOF
15823 rm -f conftest.$ac_objext conftest$ac_exeext 10777 if ac_fn_c_try_link "$LINENO"; then :
15824 if { (ac_try="$ac_link" 10778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15825 case "(($ac_try" in 10779 $as_echo "yes" >&6; }; $as_echo "#define HAVE_RENAME 1" >>confdefs.h
15826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10780
15827 *) ac_try_echo=$ac_try;; 10781 else
15828 esac 10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15830 $as_echo "$ac_try_echo") >&5
15831 (eval "$ac_link") 2>conftest.er1
15832 ac_status=$?
15833 grep -v '^ *+' conftest.er1 >conftest.err
15834 rm -f conftest.er1
15835 cat conftest.err >&5
15836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837 (exit $ac_status); } && {
15838 test -z "$ac_c_werror_flag" ||
15839 test ! -s conftest.err
15840 } && test -s conftest$ac_exeext && {
15841 test "$cross_compiling" = yes ||
15842 $as_test_x conftest$ac_exeext
15843 }; then
15844 { $as_echo "$as_me:$LINENO: result: yes" >&5
15845 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15846 #define HAVE_RENAME 1
15847 _ACEOF
15848
15849 else
15850 $as_echo "$as_me: failed program was:" >&5
15851 sed 's/^/| /' conftest.$ac_ext >&5
15852
15853 { $as_echo "$as_me:$LINENO: result: no" >&5
15854 $as_echo "no" >&6; } 10783 $as_echo "no" >&6; }
15855 fi 10784 fi
15856 10785 rm -f core conftest.err conftest.$ac_objext \
15857 rm -rf conftest.dSYM 10786 conftest$ac_exeext conftest.$ac_ext
15858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10787
15859 conftest$ac_exeext conftest.$ac_ext 10788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysctl" >&5
15860
15861 { $as_echo "$as_me:$LINENO: checking for sysctl" >&5
15862 $as_echo_n "checking for sysctl... " >&6; } 10789 $as_echo_n "checking for sysctl... " >&6; }
15863 cat >conftest.$ac_ext <<_ACEOF 10790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15864 /* confdefs.h. */
15865 _ACEOF
15866 cat confdefs.h >>conftest.$ac_ext
15867 cat >>conftest.$ac_ext <<_ACEOF
15868 /* end confdefs.h. */ 10791 /* end confdefs.h. */
15869 #include <sys/types.h> 10792 #include <sys/types.h>
15870 #include <sys/sysctl.h> 10793 #include <sys/sysctl.h>
15871 int 10794 int
15872 main () 10795 main ()
15881 10804
15882 ; 10805 ;
15883 return 0; 10806 return 0;
15884 } 10807 }
15885 _ACEOF 10808 _ACEOF
15886 rm -f conftest.$ac_objext 10809 if ac_fn_c_try_compile "$LINENO"; then :
15887 if { (ac_try="$ac_compile" 10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15888 case "(($ac_try" in 10811 $as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCTL 1" >>confdefs.h
15889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10812
15890 *) ac_try_echo=$ac_try;; 10813 else
15891 esac 10814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
15892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15893 $as_echo "$ac_try_echo") >&5
15894 (eval "$ac_compile") 2>conftest.er1
15895 ac_status=$?
15896 grep -v '^ *+' conftest.er1 >conftest.err
15897 rm -f conftest.er1
15898 cat conftest.err >&5
15899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900 (exit $ac_status); } && {
15901 test -z "$ac_c_werror_flag" ||
15902 test ! -s conftest.err
15903 } && test -s conftest.$ac_objext; then
15904 { $as_echo "$as_me:$LINENO: result: yes" >&5
15905 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15906 #define HAVE_SYSCTL 1
15907 _ACEOF
15908
15909 else
15910 $as_echo "$as_me: failed program was:" >&5
15911 sed 's/^/| /' conftest.$ac_ext >&5
15912
15913 { $as_echo "$as_me:$LINENO: result: not usable" >&5
15914 $as_echo "not usable" >&6; } 10815 $as_echo "not usable" >&6; }
15915 fi 10816 fi
15916
15917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15918 10818
15919 { $as_echo "$as_me:$LINENO: checking for sysinfo" >&5 10819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo" >&5
15920 $as_echo_n "checking for sysinfo... " >&6; } 10820 $as_echo_n "checking for sysinfo... " >&6; }
15921 cat >conftest.$ac_ext <<_ACEOF 10821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15922 /* confdefs.h. */
15923 _ACEOF
15924 cat confdefs.h >>conftest.$ac_ext
15925 cat >>conftest.$ac_ext <<_ACEOF
15926 /* end confdefs.h. */ 10822 /* end confdefs.h. */
15927 #include <sys/types.h> 10823 #include <sys/types.h>
15928 #include <sys/sysinfo.h> 10824 #include <sys/sysinfo.h>
15929 int 10825 int
15930 main () 10826 main ()
15937 10833
15938 ; 10834 ;
15939 return 0; 10835 return 0;
15940 } 10836 }
15941 _ACEOF 10837 _ACEOF
15942 rm -f conftest.$ac_objext 10838 if ac_fn_c_try_compile "$LINENO"; then :
15943 if { (ac_try="$ac_compile" 10839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15944 case "(($ac_try" in 10840 $as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO 1" >>confdefs.h
15945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10841
15946 *) ac_try_echo=$ac_try;; 10842 else
15947 esac 10843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
15948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15949 $as_echo "$ac_try_echo") >&5
15950 (eval "$ac_compile") 2>conftest.er1
15951 ac_status=$?
15952 grep -v '^ *+' conftest.er1 >conftest.err
15953 rm -f conftest.er1
15954 cat conftest.err >&5
15955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956 (exit $ac_status); } && {
15957 test -z "$ac_c_werror_flag" ||
15958 test ! -s conftest.err
15959 } && test -s conftest.$ac_objext; then
15960 { $as_echo "$as_me:$LINENO: result: yes" >&5
15961 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15962 #define HAVE_SYSINFO 1
15963 _ACEOF
15964
15965 else
15966 $as_echo "$as_me: failed program was:" >&5
15967 sed 's/^/| /' conftest.$ac_ext >&5
15968
15969 { $as_echo "$as_me:$LINENO: result: not usable" >&5
15970 $as_echo "not usable" >&6; } 10844 $as_echo "not usable" >&6; }
15971 fi 10845 fi
15972
15973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15974 10847
15975 { $as_echo "$as_me:$LINENO: checking for sysinfo.mem_unit" >&5 10848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo.mem_unit" >&5
15976 $as_echo_n "checking for sysinfo.mem_unit... " >&6; } 10849 $as_echo_n "checking for sysinfo.mem_unit... " >&6; }
15977 cat >conftest.$ac_ext <<_ACEOF 10850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15978 /* confdefs.h. */
15979 _ACEOF
15980 cat confdefs.h >>conftest.$ac_ext
15981 cat >>conftest.$ac_ext <<_ACEOF
15982 /* end confdefs.h. */ 10851 /* end confdefs.h. */
15983 #include <sys/types.h> 10852 #include <sys/types.h>
15984 #include <sys/sysinfo.h> 10853 #include <sys/sysinfo.h>
15985 int 10854 int
15986 main () 10855 main ()
15990 10859
15991 ; 10860 ;
15992 return 0; 10861 return 0;
15993 } 10862 }
15994 _ACEOF 10863 _ACEOF
15995 rm -f conftest.$ac_objext 10864 if ac_fn_c_try_compile "$LINENO"; then :
15996 if { (ac_try="$ac_compile" 10865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15997 case "(($ac_try" in 10866 $as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO_MEM_UNIT 1" >>confdefs.h
15998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10867
15999 *) ac_try_echo=$ac_try;; 10868 else
16000 esac 10869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16002 $as_echo "$ac_try_echo") >&5
16003 (eval "$ac_compile") 2>conftest.er1
16004 ac_status=$?
16005 grep -v '^ *+' conftest.er1 >conftest.err
16006 rm -f conftest.er1
16007 cat conftest.err >&5
16008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009 (exit $ac_status); } && {
16010 test -z "$ac_c_werror_flag" ||
16011 test ! -s conftest.err
16012 } && test -s conftest.$ac_objext; then
16013 { $as_echo "$as_me:$LINENO: result: yes" >&5
16014 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
16015 #define HAVE_SYSINFO_MEM_UNIT 1
16016 _ACEOF
16017
16018 else
16019 $as_echo "$as_me: failed program was:" >&5
16020 sed 's/^/| /' conftest.$ac_ext >&5
16021
16022 { $as_echo "$as_me:$LINENO: result: no" >&5
16023 $as_echo "no" >&6; } 10870 $as_echo "no" >&6; }
16024 fi 10871 fi
16025
16026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16027 10873
16028 { $as_echo "$as_me:$LINENO: checking for sysconf" >&5 10874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysconf" >&5
16029 $as_echo_n "checking for sysconf... " >&6; } 10875 $as_echo_n "checking for sysconf... " >&6; }
16030 cat >conftest.$ac_ext <<_ACEOF 10876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16031 /* confdefs.h. */
16032 _ACEOF
16033 cat confdefs.h >>conftest.$ac_ext
16034 cat >>conftest.$ac_ext <<_ACEOF
16035 /* end confdefs.h. */ 10877 /* end confdefs.h. */
16036 #include <unistd.h> 10878 #include <unistd.h>
16037 int 10879 int
16038 main () 10880 main ()
16039 { 10881 {
16042 10884
16043 ; 10885 ;
16044 return 0; 10886 return 0;
16045 } 10887 }
16046 _ACEOF 10888 _ACEOF
16047 rm -f conftest.$ac_objext 10889 if ac_fn_c_try_compile "$LINENO"; then :
16048 if { (ac_try="$ac_compile" 10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16049 case "(($ac_try" in 10891 $as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCONF 1" >>confdefs.h
16050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10892
16051 *) ac_try_echo=$ac_try;; 10893 else
16052 esac 10894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
16053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16054 $as_echo "$ac_try_echo") >&5
16055 (eval "$ac_compile") 2>conftest.er1
16056 ac_status=$?
16057 grep -v '^ *+' conftest.er1 >conftest.err
16058 rm -f conftest.er1
16059 cat conftest.err >&5
16060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061 (exit $ac_status); } && {
16062 test -z "$ac_c_werror_flag" ||
16063 test ! -s conftest.err
16064 } && test -s conftest.$ac_objext; then
16065 { $as_echo "$as_me:$LINENO: result: yes" >&5
16066 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
16067 #define HAVE_SYSCONF 1
16068 _ACEOF
16069
16070 else
16071 $as_echo "$as_me: failed program was:" >&5
16072 sed 's/^/| /' conftest.$ac_ext >&5
16073
16074 { $as_echo "$as_me:$LINENO: result: not usable" >&5
16075 $as_echo "not usable" >&6; } 10895 $as_echo "not usable" >&6; }
16076 fi 10896 fi
16077
16078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16079 10898
16080 10899
16081 { $as_echo "$as_me:$LINENO: checking size of int" >&5 10900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16082 $as_echo_n "checking size of int... " >&6; } 10901 $as_echo_n "checking size of int... " >&6; }
16083 if test "${ac_cv_sizeof_int+set}" = set; then 10902 if test "${ac_cv_sizeof_int+set}" = set; then :
16084 $as_echo_n "(cached) " >&6 10903 $as_echo_n "(cached) " >&6
16085 else 10904 else
16086 if test "$cross_compiling" = yes; then 10905 if test "$cross_compiling" = yes; then :
16087 { { $as_echo "$as_me:$LINENO: error: failed to compile test program" >&5 10906 as_fn_error "failed to compile test program" "$LINENO" 5
16088 $as_echo "$as_me: error: failed to compile test program" >&2;} 10907 else
16089 { (exit 1); exit 1; }; } 10908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16090 else
16091 cat >conftest.$ac_ext <<_ACEOF
16092 /* confdefs.h. */
16093 _ACEOF
16094 cat confdefs.h >>conftest.$ac_ext
16095 cat >>conftest.$ac_ext <<_ACEOF
16096 /* end confdefs.h. */ 10909 /* end confdefs.h. */
16097 10910
16098 #include <stdio.h> 10911 #include <stdio.h>
16099 #if STDC_HEADERS 10912 #if STDC_HEADERS
16100 # include <stdlib.h> 10913 # include <stdlib.h>
16106 if (!f) exit(1); 10919 if (!f) exit(1);
16107 fprintf(f, "%d\n", (int)sizeof(int)); 10920 fprintf(f, "%d\n", (int)sizeof(int));
16108 exit(0); 10921 exit(0);
16109 } 10922 }
16110 _ACEOF 10923 _ACEOF
16111 rm -f conftest$ac_exeext 10924 if ac_fn_c_try_run "$LINENO"; then :
16112 if { (ac_try="$ac_link"
16113 case "(($ac_try" in
16114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16115 *) ac_try_echo=$ac_try;;
16116 esac
16117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16118 $as_echo "$ac_try_echo") >&5
16119 (eval "$ac_link") 2>&5
16120 ac_status=$?
16121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16122 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16123 { (case "(($ac_try" in
16124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16125 *) ac_try_echo=$ac_try;;
16126 esac
16127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16128 $as_echo "$ac_try_echo") >&5
16129 (eval "$ac_try") 2>&5
16130 ac_status=$?
16131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16132 (exit $ac_status); }; }; then
16133 ac_cv_sizeof_int=`cat conftestval` 10925 ac_cv_sizeof_int=`cat conftestval`
16134 else 10926 else
16135 $as_echo "$as_me: program exited with status $ac_status" >&5 10927 ac_cv_sizeof_int=0
16136 $as_echo "$as_me: failed program was:" >&5 10928 fi
16137 sed 's/^/| /' conftest.$ac_ext >&5 10929 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16138 10930 conftest.$ac_objext conftest.beam conftest.$ac_ext
16139 ( exit $ac_status ) 10931 fi
16140 ac_cv_sizeof_int=0 10932
16141 fi 10933 fi
16142 rm -rf conftest.dSYM 10934
16143 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16144 fi
16145
16146
16147 fi
16148
16149 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16150 $as_echo "$ac_cv_sizeof_int" >&6; } 10936 $as_echo "$ac_cv_sizeof_int" >&6; }
16151 cat >>confdefs.h <<_ACEOF 10937 cat >>confdefs.h <<_ACEOF
16152 #define SIZEOF_INT $ac_cv_sizeof_int 10938 #define SIZEOF_INT $ac_cv_sizeof_int
16153 _ACEOF 10939 _ACEOF
16154 10940
16174 if (strncmp(buf, "cdedef", 6)) 10960 if (strncmp(buf, "cdedef", 6))
16175 exit(1); 10961 exit(1);
16176 exit(0); /* libc version works properly. */ 10962 exit(0); /* libc version works properly. */
16177 }' 10963 }'
16178 10964
16179 { $as_echo "$as_me:$LINENO: checking whether memmove handles overlaps" >&5 10965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmove handles overlaps" >&5
16180 $as_echo_n "checking whether memmove handles overlaps... " >&6; } 10966 $as_echo_n "checking whether memmove handles overlaps... " >&6; }
16181 if test "${vim_cv_memmove_handles_overlap+set}" = set; then 10967 if test "${vim_cv_memmove_handles_overlap+set}" = set; then :
16182 $as_echo_n "(cached) " >&6 10968 $as_echo_n "(cached) " >&6
16183 else 10969 else
16184 10970
16185 if test "$cross_compiling" = yes; then 10971 if test "$cross_compiling" = yes; then :
16186 10972
16187 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&5 10973 as_fn_error "cross-compiling: please set 'vim_cv_memmove_handles_overlap'" "$LINENO" 5
16188 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&2;} 10974
16189 { (exit 1); exit 1; }; } 10975 else
16190 10976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16191 else 10977 /* end confdefs.h. */
16192 cat >conftest.$ac_ext <<_ACEOF
16193 #define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog 10978 #define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
16194 _ACEOF 10979 _ACEOF
16195 rm -f conftest$ac_exeext 10980 if ac_fn_c_try_run "$LINENO"; then :
16196 if { (ac_try="$ac_link"
16197 case "(($ac_try" in
16198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16199 *) ac_try_echo=$ac_try;;
16200 esac
16201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16202 $as_echo "$ac_try_echo") >&5
16203 (eval "$ac_link") 2>&5
16204 ac_status=$?
16205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16207 { (case "(($ac_try" in
16208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16209 *) ac_try_echo=$ac_try;;
16210 esac
16211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16212 $as_echo "$ac_try_echo") >&5
16213 (eval "$ac_try") 2>&5
16214 ac_status=$?
16215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16216 (exit $ac_status); }; }; then
16217 10981
16218 vim_cv_memmove_handles_overlap=yes 10982 vim_cv_memmove_handles_overlap=yes
16219 10983
16220 else 10984 else
16221 $as_echo "$as_me: program exited with status $ac_status" >&5
16222 $as_echo "$as_me: failed program was:" >&5
16223 sed 's/^/| /' conftest.$ac_ext >&5
16224
16225 ( exit $ac_status )
16226 10985
16227 vim_cv_memmove_handles_overlap=no 10986 vim_cv_memmove_handles_overlap=no
16228 10987
16229 fi 10988 fi
16230 rm -rf conftest.dSYM 10989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16231 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10990 conftest.$ac_objext conftest.beam conftest.$ac_ext
16232 fi 10991 fi
16233 10992
16234 10993
16235 10994 fi
16236 fi 10995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memmove_handles_overlap" >&5
16237 { $as_echo "$as_me:$LINENO: result: $vim_cv_memmove_handles_overlap" >&5
16238 $as_echo "$vim_cv_memmove_handles_overlap" >&6; } 10996 $as_echo "$vim_cv_memmove_handles_overlap" >&6; }
16239 10997
16240 if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then 10998 if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then
16241 cat >>confdefs.h <<\_ACEOF 10999 $as_echo "#define USEMEMMOVE 1" >>confdefs.h
16242 #define USEMEMMOVE 1 11000
16243 _ACEOF 11001 else
16244 11002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bcopy handles overlaps" >&5
16245 else
16246 { $as_echo "$as_me:$LINENO: checking whether bcopy handles overlaps" >&5
16247 $as_echo_n "checking whether bcopy handles overlaps... " >&6; } 11003 $as_echo_n "checking whether bcopy handles overlaps... " >&6; }
16248 if test "${vim_cv_bcopy_handles_overlap+set}" = set; then 11004 if test "${vim_cv_bcopy_handles_overlap+set}" = set; then :
16249 $as_echo_n "(cached) " >&6 11005 $as_echo_n "(cached) " >&6
16250 else 11006 else
16251 11007
16252 if test "$cross_compiling" = yes; then 11008 if test "$cross_compiling" = yes; then :
16253 11009
16254 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&5 11010 as_fn_error "cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" "$LINENO" 5
16255 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&2;} 11011
16256 { (exit 1); exit 1; }; } 11012 else
16257 11013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16258 else 11014 /* end confdefs.h. */
16259 cat >conftest.$ac_ext <<_ACEOF
16260 #define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog 11015 #define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog
16261 _ACEOF 11016 _ACEOF
16262 rm -f conftest$ac_exeext 11017 if ac_fn_c_try_run "$LINENO"; then :
16263 if { (ac_try="$ac_link"
16264 case "(($ac_try" in
16265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16266 *) ac_try_echo=$ac_try;;
16267 esac
16268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16269 $as_echo "$ac_try_echo") >&5
16270 (eval "$ac_link") 2>&5
16271 ac_status=$?
16272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16274 { (case "(($ac_try" in
16275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16276 *) ac_try_echo=$ac_try;;
16277 esac
16278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16279 $as_echo "$ac_try_echo") >&5
16280 (eval "$ac_try") 2>&5
16281 ac_status=$?
16282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283 (exit $ac_status); }; }; then
16284 11018
16285 vim_cv_bcopy_handles_overlap=yes 11019 vim_cv_bcopy_handles_overlap=yes
16286 11020
16287 else 11021 else
16288 $as_echo "$as_me: program exited with status $ac_status" >&5
16289 $as_echo "$as_me: failed program was:" >&5
16290 sed 's/^/| /' conftest.$ac_ext >&5
16291
16292 ( exit $ac_status )
16293 11022
16294 vim_cv_bcopy_handles_overlap=no 11023 vim_cv_bcopy_handles_overlap=no
16295 11024
16296 fi 11025 fi
16297 rm -rf conftest.dSYM 11026 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16298 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11027 conftest.$ac_objext conftest.beam conftest.$ac_ext
16299 fi 11028 fi
16300 11029
16301 11030
16302 11031 fi
16303 fi 11032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_bcopy_handles_overlap" >&5
16304 { $as_echo "$as_me:$LINENO: result: $vim_cv_bcopy_handles_overlap" >&5
16305 $as_echo "$vim_cv_bcopy_handles_overlap" >&6; } 11033 $as_echo "$vim_cv_bcopy_handles_overlap" >&6; }
16306 11034
16307 if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then 11035 if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then
16308 cat >>confdefs.h <<\_ACEOF 11036 $as_echo "#define USEBCOPY 1" >>confdefs.h
16309 #define USEBCOPY 1
16310 _ACEOF
16311 11037
16312 else 11038 else
16313 { $as_echo "$as_me:$LINENO: checking whether memcpy handles overlaps" >&5 11039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memcpy handles overlaps" >&5
16314 $as_echo_n "checking whether memcpy handles overlaps... " >&6; } 11040 $as_echo_n "checking whether memcpy handles overlaps... " >&6; }
16315 if test "${vim_cv_memcpy_handles_overlap+set}" = set; then 11041 if test "${vim_cv_memcpy_handles_overlap+set}" = set; then :
16316 $as_echo_n "(cached) " >&6 11042 $as_echo_n "(cached) " >&6
16317 else 11043 else
16318 11044
16319 if test "$cross_compiling" = yes; then 11045 if test "$cross_compiling" = yes; then :
16320 11046
16321 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&5 11047 as_fn_error "cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" "$LINENO" 5
16322 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&2;} 11048
16323 { (exit 1); exit 1; }; } 11049 else
16324 11050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16325 else 11051 /* end confdefs.h. */
16326 cat >conftest.$ac_ext <<_ACEOF
16327 #define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog 11052 #define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog
16328 _ACEOF 11053 _ACEOF
16329 rm -f conftest$ac_exeext 11054 if ac_fn_c_try_run "$LINENO"; then :
16330 if { (ac_try="$ac_link"
16331 case "(($ac_try" in
16332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16333 *) ac_try_echo=$ac_try;;
16334 esac
16335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16336 $as_echo "$ac_try_echo") >&5
16337 (eval "$ac_link") 2>&5
16338 ac_status=$?
16339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16340 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16341 { (case "(($ac_try" in
16342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16343 *) ac_try_echo=$ac_try;;
16344 esac
16345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16346 $as_echo "$ac_try_echo") >&5
16347 (eval "$ac_try") 2>&5
16348 ac_status=$?
16349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350 (exit $ac_status); }; }; then
16351 11055
16352 vim_cv_memcpy_handles_overlap=yes 11056 vim_cv_memcpy_handles_overlap=yes
16353 11057
16354 else 11058 else
16355 $as_echo "$as_me: program exited with status $ac_status" >&5
16356 $as_echo "$as_me: failed program was:" >&5
16357 sed 's/^/| /' conftest.$ac_ext >&5
16358
16359 ( exit $ac_status )
16360 11059
16361 vim_cv_memcpy_handles_overlap=no 11060 vim_cv_memcpy_handles_overlap=no
16362 11061
16363 fi 11062 fi
16364 rm -rf conftest.dSYM 11063 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16365 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11064 conftest.$ac_objext conftest.beam conftest.$ac_ext
16366 fi 11065 fi
16367 11066
16368 11067
16369 11068 fi
16370 fi 11069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memcpy_handles_overlap" >&5
16371 { $as_echo "$as_me:$LINENO: result: $vim_cv_memcpy_handles_overlap" >&5
16372 $as_echo "$vim_cv_memcpy_handles_overlap" >&6; } 11070 $as_echo "$vim_cv_memcpy_handles_overlap" >&6; }
16373 11071
16374 if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then 11072 if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then
16375 cat >>confdefs.h <<\_ACEOF 11073 $as_echo "#define USEMEMCPY 1" >>confdefs.h
16376 #define USEMEMCPY 1
16377 _ACEOF
16378 11074
16379 fi 11075 fi
16380 fi 11076 fi
16381 fi 11077 fi
16382 11078
16386 cflags_save=$CFLAGS 11082 cflags_save=$CFLAGS
16387 ldflags_save=$LDFLAGS 11083 ldflags_save=$LDFLAGS
16388 if test "x$x_includes" != "xNONE" ; then 11084 if test "x$x_includes" != "xNONE" ; then
16389 CFLAGS="$CFLAGS -I$x_includes" 11085 CFLAGS="$CFLAGS -I$x_includes"
16390 LDFLAGS="$X_LIBS $LDFLAGS -lX11" 11086 LDFLAGS="$X_LIBS $LDFLAGS -lX11"
16391 { $as_echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5 11087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X_LOCALE needed" >&5
16392 $as_echo_n "checking whether X_LOCALE needed... " >&6; } 11088 $as_echo_n "checking whether X_LOCALE needed... " >&6; }
16393 cat >conftest.$ac_ext <<_ACEOF 11089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16394 /* confdefs.h. */
16395 _ACEOF
16396 cat confdefs.h >>conftest.$ac_ext
16397 cat >>conftest.$ac_ext <<_ACEOF
16398 /* end confdefs.h. */ 11090 /* end confdefs.h. */
16399 #include <X11/Xlocale.h> 11091 #include <X11/Xlocale.h>
16400 int 11092 int
16401 main () 11093 main ()
16402 { 11094 {
16403 11095
16404 ; 11096 ;
16405 return 0; 11097 return 0;
16406 } 11098 }
16407 _ACEOF 11099 _ACEOF
16408 rm -f conftest.$ac_objext 11100 if ac_fn_c_try_compile "$LINENO"; then :
16409 if { (ac_try="$ac_compile" 11101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16410 case "(($ac_try" in
16411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16412 *) ac_try_echo=$ac_try;;
16413 esac
16414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16415 $as_echo "$ac_try_echo") >&5
16416 (eval "$ac_compile") 2>conftest.er1
16417 ac_status=$?
16418 grep -v '^ *+' conftest.er1 >conftest.err
16419 rm -f conftest.er1
16420 cat conftest.err >&5
16421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16422 (exit $ac_status); } && {
16423 test -z "$ac_c_werror_flag" ||
16424 test ! -s conftest.err
16425 } && test -s conftest.$ac_objext; then
16426 cat >conftest.$ac_ext <<_ACEOF
16427 /* confdefs.h. */
16428 _ACEOF
16429 cat confdefs.h >>conftest.$ac_ext
16430 cat >>conftest.$ac_ext <<_ACEOF
16431 /* end confdefs.h. */ 11102 /* end confdefs.h. */
16432 11103
16433 /* Override any GCC internal prototype to avoid an error. 11104 /* Override any GCC internal prototype to avoid an error.
16434 Use char because int might match the return type of a GCC 11105 Use char because int might match the return type of a GCC
16435 builtin and then its argument prototype would still apply. */ 11106 builtin and then its argument prototype would still apply. */
16443 return _Xsetlocale (); 11114 return _Xsetlocale ();
16444 ; 11115 ;
16445 return 0; 11116 return 0;
16446 } 11117 }
16447 _ACEOF 11118 _ACEOF
16448 rm -f conftest.$ac_objext conftest$ac_exeext 11119 if ac_fn_c_try_link "$LINENO"; then :
16449 if { (ac_try="$ac_link" 11120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16450 case "(($ac_try" in
16451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16452 *) ac_try_echo=$ac_try;;
16453 esac
16454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16455 $as_echo "$ac_try_echo") >&5
16456 (eval "$ac_link") 2>conftest.er1
16457 ac_status=$?
16458 grep -v '^ *+' conftest.er1 >conftest.err
16459 rm -f conftest.er1
16460 cat conftest.err >&5
16461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16462 (exit $ac_status); } && {
16463 test -z "$ac_c_werror_flag" ||
16464 test ! -s conftest.err
16465 } && test -s conftest$ac_exeext && {
16466 test "$cross_compiling" = yes ||
16467 $as_test_x conftest$ac_exeext
16468 }; then
16469 { $as_echo "$as_me:$LINENO: result: yes" >&5
16470 $as_echo "yes" >&6; } 11121 $as_echo "yes" >&6; }
16471 cat >>confdefs.h <<\_ACEOF 11122 $as_echo "#define X_LOCALE 1" >>confdefs.h
16472 #define X_LOCALE 1 11123
16473 _ACEOF 11124 else
16474 11125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16475 else
16476 $as_echo "$as_me: failed program was:" >&5
16477 sed 's/^/| /' conftest.$ac_ext >&5
16478
16479 { $as_echo "$as_me:$LINENO: result: no" >&5
16480 $as_echo "no" >&6; } 11126 $as_echo "no" >&6; }
16481 fi 11127 fi
16482 11128 rm -f core conftest.err conftest.$ac_objext \
16483 rm -rf conftest.dSYM 11129 conftest$ac_exeext conftest.$ac_ext
16484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11130 else
16485 conftest$ac_exeext conftest.$ac_ext 11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16486 else
16487 $as_echo "$as_me: failed program was:" >&5
16488 sed 's/^/| /' conftest.$ac_ext >&5
16489
16490 { $as_echo "$as_me:$LINENO: result: no" >&5
16491 $as_echo "no" >&6; } 11132 $as_echo "no" >&6; }
16492 fi 11133 fi
16493
16494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16495 fi 11135 fi
16496 CFLAGS=$cflags_save 11136 CFLAGS=$cflags_save
16497 LDFLAGS=$ldflags_save 11137 LDFLAGS=$ldflags_save
16498 fi 11138 fi
16499 11139
16500 { $as_echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5 11140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xpg4_setrunelocale in -lxpg4" >&5
16501 $as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; } 11141 $as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; }
16502 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then 11142 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then :
16503 $as_echo_n "(cached) " >&6 11143 $as_echo_n "(cached) " >&6
16504 else 11144 else
16505 ac_check_lib_save_LIBS=$LIBS 11145 ac_check_lib_save_LIBS=$LIBS
16506 LIBS="-lxpg4 $LIBS" 11146 LIBS="-lxpg4 $LIBS"
16507 cat >conftest.$ac_ext <<_ACEOF 11147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16508 /* confdefs.h. */
16509 _ACEOF
16510 cat confdefs.h >>conftest.$ac_ext
16511 cat >>conftest.$ac_ext <<_ACEOF
16512 /* end confdefs.h. */ 11148 /* end confdefs.h. */
16513 11149
16514 /* Override any GCC internal prototype to avoid an error. 11150 /* Override any GCC internal prototype to avoid an error.
16515 Use char because int might match the return type of a GCC 11151 Use char because int might match the return type of a GCC
16516 builtin and then its argument prototype would still apply. */ 11152 builtin and then its argument prototype would still apply. */
16524 return _xpg4_setrunelocale (); 11160 return _xpg4_setrunelocale ();
16525 ; 11161 ;
16526 return 0; 11162 return 0;
16527 } 11163 }
16528 _ACEOF 11164 _ACEOF
16529 rm -f conftest.$ac_objext conftest$ac_exeext 11165 if ac_fn_c_try_link "$LINENO"; then :
16530 if { (ac_try="$ac_link"
16531 case "(($ac_try" in
16532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16533 *) ac_try_echo=$ac_try;;
16534 esac
16535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16536 $as_echo "$ac_try_echo") >&5
16537 (eval "$ac_link") 2>conftest.er1
16538 ac_status=$?
16539 grep -v '^ *+' conftest.er1 >conftest.err
16540 rm -f conftest.er1
16541 cat conftest.err >&5
16542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16543 (exit $ac_status); } && {
16544 test -z "$ac_c_werror_flag" ||
16545 test ! -s conftest.err
16546 } && test -s conftest$ac_exeext && {
16547 test "$cross_compiling" = yes ||
16548 $as_test_x conftest$ac_exeext
16549 }; then
16550 ac_cv_lib_xpg4__xpg4_setrunelocale=yes 11166 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
16551 else 11167 else
16552 $as_echo "$as_me: failed program was:" >&5 11168 ac_cv_lib_xpg4__xpg4_setrunelocale=no
16553 sed 's/^/| /' conftest.$ac_ext >&5 11169 fi
16554 11170 rm -f core conftest.err conftest.$ac_objext \
16555 ac_cv_lib_xpg4__xpg4_setrunelocale=no 11171 conftest$ac_exeext conftest.$ac_ext
16556 fi
16557
16558 rm -rf conftest.dSYM
16559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16560 conftest$ac_exeext conftest.$ac_ext
16561 LIBS=$ac_check_lib_save_LIBS 11172 LIBS=$ac_check_lib_save_LIBS
16562 fi 11173 fi
16563 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5 11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
16564 $as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; } 11175 $as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
16565 if test "x$ac_cv_lib_xpg4__xpg4_setrunelocale" = x""yes; then 11176 if test "x$ac_cv_lib_xpg4__xpg4_setrunelocale" = x""yes; then :
16566 LIBS="$LIBS -lxpg4" 11177 LIBS="$LIBS -lxpg4"
16567 fi 11178 fi
16568 11179
16569 11180
16570 { $as_echo "$as_me:$LINENO: checking how to create tags" >&5 11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create tags" >&5
16571 $as_echo_n "checking how to create tags... " >&6; } 11182 $as_echo_n "checking how to create tags... " >&6; }
16572 test -f tags && mv tags tags.save 11183 test -f tags && mv tags tags.save
16573 if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then 11184 if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
16574 TAGPRG="ctags -I INIT+ --fields=+S" 11185 TAGPRG="ctags -I INIT+ --fields=+S"
16575 else 11186 else
16581 (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts" 11192 (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
16582 (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs" 11193 (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
16583 (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m" 11194 (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
16584 fi 11195 fi
16585 test -f tags.save && mv tags.save tags 11196 test -f tags.save && mv tags.save tags
16586 { $as_echo "$as_me:$LINENO: result: $TAGPRG" >&5 11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAGPRG" >&5
16587 $as_echo "$TAGPRG" >&6; } 11198 $as_echo "$TAGPRG" >&6; }
16588 11199
16589 { $as_echo "$as_me:$LINENO: checking how to run man with a section nr" >&5 11200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run man with a section nr" >&5
16590 $as_echo_n "checking how to run man with a section nr... " >&6; } 11201 $as_echo_n "checking how to run man with a section nr... " >&6; }
16591 MANDEF="man" 11202 MANDEF="man"
16592 (eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s" 11203 (eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
16593 { $as_echo "$as_me:$LINENO: result: $MANDEF" >&5 11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDEF" >&5
16594 $as_echo "$MANDEF" >&6; } 11205 $as_echo "$MANDEF" >&6; }
16595 if test "$MANDEF" = "man -s"; then 11206 if test "$MANDEF" = "man -s"; then
16596 cat >>confdefs.h <<\_ACEOF 11207 $as_echo "#define USEMAN_S 1" >>confdefs.h
16597 #define USEMAN_S 1 11208
16598 _ACEOF 11209 fi
16599 11210
16600 fi 11211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-nls argument" >&5
16601
16602 { $as_echo "$as_me:$LINENO: checking --disable-nls argument" >&5
16603 $as_echo_n "checking --disable-nls argument... " >&6; } 11212 $as_echo_n "checking --disable-nls argument... " >&6; }
16604 # Check whether --enable-nls was given. 11213 # Check whether --enable-nls was given.
16605 if test "${enable_nls+set}" = set; then 11214 if test "${enable_nls+set}" = set; then :
16606 enableval=$enable_nls; 11215 enableval=$enable_nls;
16607 else 11216 else
16608 enable_nls="yes" 11217 enable_nls="yes"
16609 fi 11218 fi
16610 11219
16611 11220
16612 if test "$enable_nls" = "yes"; then 11221 if test "$enable_nls" = "yes"; then
16613 { $as_echo "$as_me:$LINENO: result: no" >&5 11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16614 $as_echo "no" >&6; } 11223 $as_echo "no" >&6; }
16615 11224
16616 INSTALL_LANGS=install-languages 11225 INSTALL_LANGS=install-languages
16617 11226
16618 INSTALL_TOOL_LANGS=install-tool-languages 11227 INSTALL_TOOL_LANGS=install-tool-languages
16619 11228
16620 11229
16621 # Extract the first word of "msgfmt", so it can be a program name with args. 11230 # Extract the first word of "msgfmt", so it can be a program name with args.
16622 set dummy msgfmt; ac_word=$2 11231 set dummy msgfmt; ac_word=$2
16623 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16624 $as_echo_n "checking for $ac_word... " >&6; } 11233 $as_echo_n "checking for $ac_word... " >&6; }
16625 if test "${ac_cv_prog_MSGFMT+set}" = set; then 11234 if test "${ac_cv_prog_MSGFMT+set}" = set; then :
16626 $as_echo_n "(cached) " >&6 11235 $as_echo_n "(cached) " >&6
16627 else 11236 else
16628 if test -n "$MSGFMT"; then 11237 if test -n "$MSGFMT"; then
16629 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test. 11238 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
16630 else 11239 else
16631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16632 for as_dir in $PATH 11241 for as_dir in $PATH
16633 do 11242 do
16634 IFS=$as_save_IFS 11243 IFS=$as_save_IFS
16635 test -z "$as_dir" && as_dir=. 11244 test -z "$as_dir" && as_dir=.
16636 for ac_exec_ext in '' $ac_executable_extensions; do 11245 for ac_exec_ext in '' $ac_executable_extensions; do
16637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16638 ac_cv_prog_MSGFMT="msgfmt" 11247 ac_cv_prog_MSGFMT="msgfmt"
16639 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16640 break 2 11249 break 2
16641 fi 11250 fi
16642 done 11251 done
16643 done 11252 done
16644 IFS=$as_save_IFS 11253 IFS=$as_save_IFS
16645 11254
16646 fi 11255 fi
16647 fi 11256 fi
16648 MSGFMT=$ac_cv_prog_MSGFMT 11257 MSGFMT=$ac_cv_prog_MSGFMT
16649 if test -n "$MSGFMT"; then 11258 if test -n "$MSGFMT"; then
16650 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5 11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16651 $as_echo "$MSGFMT" >&6; } 11260 $as_echo "$MSGFMT" >&6; }
16652 else 11261 else
16653 { $as_echo "$as_me:$LINENO: result: no" >&5 11262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16654 $as_echo "no" >&6; } 11263 $as_echo "no" >&6; }
16655 fi 11264 fi
16656 11265
16657 11266
16658 { $as_echo "$as_me:$LINENO: checking for NLS" >&5 11267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NLS" >&5
16659 $as_echo_n "checking for NLS... " >&6; } 11268 $as_echo_n "checking for NLS... " >&6; }
16660 if test -f po/Makefile; then 11269 if test -f po/Makefile; then
16661 have_gettext="no" 11270 have_gettext="no"
16662 if test -n "$MSGFMT"; then 11271 if test -n "$MSGFMT"; then
16663 cat >conftest.$ac_ext <<_ACEOF 11272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16664 /* confdefs.h. */
16665 _ACEOF
16666 cat confdefs.h >>conftest.$ac_ext
16667 cat >>conftest.$ac_ext <<_ACEOF
16668 /* end confdefs.h. */ 11273 /* end confdefs.h. */
16669 #include <libintl.h> 11274 #include <libintl.h>
16670 int 11275 int
16671 main () 11276 main ()
16672 { 11277 {
16673 gettext("Test"); 11278 gettext("Test");
16674 ; 11279 ;
16675 return 0; 11280 return 0;
16676 } 11281 }
16677 _ACEOF 11282 _ACEOF
16678 rm -f conftest.$ac_objext conftest$ac_exeext 11283 if ac_fn_c_try_link "$LINENO"; then :
16679 if { (ac_try="$ac_link" 11284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works" >&5
16680 case "(($ac_try" in
16681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16682 *) ac_try_echo=$ac_try;;
16683 esac
16684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16685 $as_echo "$ac_try_echo") >&5
16686 (eval "$ac_link") 2>conftest.er1
16687 ac_status=$?
16688 grep -v '^ *+' conftest.er1 >conftest.err
16689 rm -f conftest.er1
16690 cat conftest.err >&5
16691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692 (exit $ac_status); } && {
16693 test -z "$ac_c_werror_flag" ||
16694 test ! -s conftest.err
16695 } && test -s conftest$ac_exeext && {
16696 test "$cross_compiling" = yes ||
16697 $as_test_x conftest$ac_exeext
16698 }; then
16699 { $as_echo "$as_me:$LINENO: result: gettext() works" >&5
16700 $as_echo "gettext() works" >&6; }; have_gettext="yes" 11285 $as_echo "gettext() works" >&6; }; have_gettext="yes"
16701 else 11286 else
16702 $as_echo "$as_me: failed program was:" >&5 11287 olibs=$LIBS
16703 sed 's/^/| /' conftest.$ac_ext >&5
16704
16705 olibs=$LIBS
16706 LIBS="$LIBS -lintl" 11288 LIBS="$LIBS -lintl"
16707 cat >conftest.$ac_ext <<_ACEOF 11289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16708 /* confdefs.h. */
16709 _ACEOF
16710 cat confdefs.h >>conftest.$ac_ext
16711 cat >>conftest.$ac_ext <<_ACEOF
16712 /* end confdefs.h. */ 11290 /* end confdefs.h. */
16713 #include <libintl.h> 11291 #include <libintl.h>
16714 int 11292 int
16715 main () 11293 main ()
16716 { 11294 {
16717 gettext("Test"); 11295 gettext("Test");
16718 ; 11296 ;
16719 return 0; 11297 return 0;
16720 } 11298 }
16721 _ACEOF 11299 _ACEOF
16722 rm -f conftest.$ac_objext conftest$ac_exeext 11300 if ac_fn_c_try_link "$LINENO"; then :
16723 if { (ac_try="$ac_link" 11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works with -lintl" >&5
16724 case "(($ac_try" in
16725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16726 *) ac_try_echo=$ac_try;;
16727 esac
16728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16729 $as_echo "$ac_try_echo") >&5
16730 (eval "$ac_link") 2>conftest.er1
16731 ac_status=$?
16732 grep -v '^ *+' conftest.er1 >conftest.err
16733 rm -f conftest.er1
16734 cat conftest.err >&5
16735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736 (exit $ac_status); } && {
16737 test -z "$ac_c_werror_flag" ||
16738 test ! -s conftest.err
16739 } && test -s conftest$ac_exeext && {
16740 test "$cross_compiling" = yes ||
16741 $as_test_x conftest$ac_exeext
16742 }; then
16743 { $as_echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5
16744 $as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes" 11302 $as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes"
16745 else 11303 else
16746 $as_echo "$as_me: failed program was:" >&5 11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() doesn't work" >&5
16747 sed 's/^/| /' conftest.$ac_ext >&5
16748
16749 { $as_echo "$as_me:$LINENO: result: gettext() doesn't work" >&5
16750 $as_echo "gettext() doesn't work" >&6; }; 11305 $as_echo "gettext() doesn't work" >&6; };
16751 LIBS=$olibs 11306 LIBS=$olibs
16752 fi 11307 fi
16753 11308 rm -f core conftest.err conftest.$ac_objext \
16754 rm -rf conftest.dSYM 11309 conftest$ac_exeext conftest.$ac_ext
16755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11310 fi
16756 conftest$ac_exeext conftest.$ac_ext 11311 rm -f core conftest.err conftest.$ac_objext \
16757 fi 11312 conftest$ac_exeext conftest.$ac_ext
16758
16759 rm -rf conftest.dSYM
16760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16761 conftest$ac_exeext conftest.$ac_ext
16762 else 11313 else
16763 { $as_echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5 11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: msgfmt not found - disabled" >&5
16764 $as_echo "msgfmt not found - disabled" >&6; }; 11315 $as_echo "msgfmt not found - disabled" >&6; };
16765 fi 11316 fi
16766 if test $have_gettext = "yes"; then 11317 if test $have_gettext = "yes"; then
16767 cat >>confdefs.h <<\_ACEOF 11318 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
16768 #define HAVE_GETTEXT 1
16769 _ACEOF
16770 11319
16771 MAKEMO=yes 11320 MAKEMO=yes
16772 11321
16773 11322 for ac_func in bind_textdomain_codeset
16774 for ac_func in bind_textdomain_codeset 11323 do :
16775 do 11324 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
16776 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11325 if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
16777 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16778 $as_echo_n "checking for $ac_func... " >&6; }
16779 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; 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 as_val=`eval 'as_val=${'$as_ac_var'}
16865 $as_echo "$as_val"'`
16866 if test "x$as_val" = x""yes; then
16867 cat >>confdefs.h <<_ACEOF 11326 cat >>confdefs.h <<_ACEOF
16868 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11327 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
16869 _ACEOF 11328 _ACEOF
16870 11329
16871 fi 11330 fi
16872 done 11331 done
16873 11332
16874 { $as_echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5 11333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _nl_msg_cat_cntr" >&5
16875 $as_echo_n "checking for _nl_msg_cat_cntr... " >&6; } 11334 $as_echo_n "checking for _nl_msg_cat_cntr... " >&6; }
16876 cat >conftest.$ac_ext <<_ACEOF 11335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16877 /* confdefs.h. */
16878 _ACEOF
16879 cat confdefs.h >>conftest.$ac_ext
16880 cat >>conftest.$ac_ext <<_ACEOF
16881 /* end confdefs.h. */ 11336 /* end confdefs.h. */
16882 #include <libintl.h> 11337 #include <libintl.h>
16883 extern int _nl_msg_cat_cntr; 11338 extern int _nl_msg_cat_cntr;
16884 int 11339 int
16885 main () 11340 main ()
16887 ++_nl_msg_cat_cntr; 11342 ++_nl_msg_cat_cntr;
16888 ; 11343 ;
16889 return 0; 11344 return 0;
16890 } 11345 }
16891 _ACEOF 11346 _ACEOF
16892 rm -f conftest.$ac_objext conftest$ac_exeext 11347 if ac_fn_c_try_link "$LINENO"; then :
16893 if { (ac_try="$ac_link" 11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16894 case "(($ac_try" in 11349 $as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_MSG_CAT_CNTR 1" >>confdefs.h
16895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11350
16896 *) ac_try_echo=$ac_try;; 11351 else
16897 esac 11352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16899 $as_echo "$ac_try_echo") >&5
16900 (eval "$ac_link") 2>conftest.er1
16901 ac_status=$?
16902 grep -v '^ *+' conftest.er1 >conftest.err
16903 rm -f conftest.er1
16904 cat conftest.err >&5
16905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906 (exit $ac_status); } && {
16907 test -z "$ac_c_werror_flag" ||
16908 test ! -s conftest.err
16909 } && test -s conftest$ac_exeext && {
16910 test "$cross_compiling" = yes ||
16911 $as_test_x conftest$ac_exeext
16912 }; then
16913 { $as_echo "$as_me:$LINENO: result: yes" >&5
16914 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
16915 #define HAVE_NL_MSG_CAT_CNTR 1
16916 _ACEOF
16917
16918 else
16919 $as_echo "$as_me: failed program was:" >&5
16920 sed 's/^/| /' conftest.$ac_ext >&5
16921
16922 { $as_echo "$as_me:$LINENO: result: no" >&5
16923 $as_echo "no" >&6; } 11353 $as_echo "no" >&6; }
16924 fi 11354 fi
16925 11355 rm -f core conftest.err conftest.$ac_objext \
16926 rm -rf conftest.dSYM 11356 conftest$ac_exeext conftest.$ac_ext
16927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16928 conftest$ac_exeext conftest.$ac_ext
16929 fi 11357 fi
16930 else 11358 else
16931 { $as_echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5 11359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no \"po/Makefile\" - disabled" >&5
16932 $as_echo "no \"po/Makefile\" - disabled" >&6; }; 11360 $as_echo "no \"po/Makefile\" - disabled" >&6; };
16933 fi 11361 fi
16934 else 11362 else
16935 { $as_echo "$as_me:$LINENO: result: yes" >&5 11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16936 $as_echo "yes" >&6; } 11364 $as_echo "yes" >&6; }
16937 fi 11365 fi
16938 11366
16939 if test "${ac_cv_header_dlfcn_h+set}" = set; then 11367 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
16940 { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5 11368 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
16941 $as_echo_n "checking for dlfcn.h... " >&6; }
16942 if test "${ac_cv_header_dlfcn_h+set}" = set; then
16943 $as_echo_n "(cached) " >&6
16944 fi
16945 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
16946 $as_echo "$ac_cv_header_dlfcn_h" >&6; }
16947 else
16948 # Is the header compilable?
16949 { $as_echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
16950 $as_echo_n "checking dlfcn.h usability... " >&6; }
16951 cat >conftest.$ac_ext <<_ACEOF
16952 /* confdefs.h. */
16953 _ACEOF
16954 cat confdefs.h >>conftest.$ac_ext
16955 cat >>conftest.$ac_ext <<_ACEOF
16956 /* end confdefs.h. */
16957 $ac_includes_default
16958 #include <dlfcn.h>
16959 _ACEOF
16960 rm -f conftest.$ac_objext
16961 if { (ac_try="$ac_compile"
16962 case "(($ac_try" in
16963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16964 *) ac_try_echo=$ac_try;;
16965 esac
16966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16967 $as_echo "$ac_try_echo") >&5
16968 (eval "$ac_compile") 2>conftest.er1
16969 ac_status=$?
16970 grep -v '^ *+' conftest.er1 >conftest.err
16971 rm -f conftest.er1
16972 cat conftest.err >&5
16973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974 (exit $ac_status); } && {
16975 test -z "$ac_c_werror_flag" ||
16976 test ! -s conftest.err
16977 } && test -s conftest.$ac_objext; then
16978 ac_header_compiler=yes
16979 else
16980 $as_echo "$as_me: failed program was:" >&5
16981 sed 's/^/| /' conftest.$ac_ext >&5
16982
16983 ac_header_compiler=no
16984 fi
16985
16986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16987 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16988 $as_echo "$ac_header_compiler" >&6; }
16989
16990 # Is the header present?
16991 { $as_echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
16992 $as_echo_n "checking dlfcn.h presence... " >&6; }
16993 cat >conftest.$ac_ext <<_ACEOF
16994 /* confdefs.h. */
16995 _ACEOF
16996 cat confdefs.h >>conftest.$ac_ext
16997 cat >>conftest.$ac_ext <<_ACEOF
16998 /* end confdefs.h. */
16999 #include <dlfcn.h>
17000 _ACEOF
17001 if { (ac_try="$ac_cpp conftest.$ac_ext"
17002 case "(($ac_try" in
17003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17004 *) ac_try_echo=$ac_try;;
17005 esac
17006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17007 $as_echo "$ac_try_echo") >&5
17008 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17009 ac_status=$?
17010 grep -v '^ *+' conftest.er1 >conftest.err
17011 rm -f conftest.er1
17012 cat conftest.err >&5
17013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014 (exit $ac_status); } >/dev/null && {
17015 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17016 test ! -s conftest.err
17017 }; then
17018 ac_header_preproc=yes
17019 else
17020 $as_echo "$as_me: failed program was:" >&5
17021 sed 's/^/| /' conftest.$ac_ext >&5
17022
17023 ac_header_preproc=no
17024 fi
17025
17026 rm -f conftest.err conftest.$ac_ext
17027 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17028 $as_echo "$ac_header_preproc" >&6; }
17029
17030 # So? What about this header?
17031 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17032 yes:no: )
17033 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
17034 $as_echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17035 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
17036 $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
17037 ac_header_preproc=yes
17038 ;;
17039 no:yes:* )
17040 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
17041 $as_echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
17042 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
17043 $as_echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
17044 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
17045 $as_echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
17046 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
17047 $as_echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
17048 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
17049 $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
17050 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
17051 $as_echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
17052
17053 ;;
17054 esac
17055 { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
17056 $as_echo_n "checking for dlfcn.h... " >&6; }
17057 if test "${ac_cv_header_dlfcn_h+set}" = set; then
17058 $as_echo_n "(cached) " >&6
17059 else
17060 ac_cv_header_dlfcn_h=$ac_header_preproc
17061 fi
17062 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
17063 $as_echo "$ac_cv_header_dlfcn_h" >&6; }
17064
17065 fi
17066 if test "x$ac_cv_header_dlfcn_h" = x""yes; then
17067 DLL=dlfcn.h 11369 DLL=dlfcn.h
17068 else 11370 else
17069 if test "${ac_cv_header_dl_h+set}" = set; then 11371 ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default"
17070 { $as_echo "$as_me:$LINENO: checking for dl.h" >&5 11372 if test "x$ac_cv_header_dl_h" = x""yes; then :
17071 $as_echo_n "checking for dl.h... " >&6; }
17072 if test "${ac_cv_header_dl_h+set}" = set; then
17073 $as_echo_n "(cached) " >&6
17074 fi
17075 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
17076 $as_echo "$ac_cv_header_dl_h" >&6; }
17077 else
17078 # Is the header compilable?
17079 { $as_echo "$as_me:$LINENO: checking dl.h usability" >&5
17080 $as_echo_n "checking dl.h usability... " >&6; }
17081 cat >conftest.$ac_ext <<_ACEOF
17082 /* confdefs.h. */
17083 _ACEOF
17084 cat confdefs.h >>conftest.$ac_ext
17085 cat >>conftest.$ac_ext <<_ACEOF
17086 /* end confdefs.h. */
17087 $ac_includes_default
17088 #include <dl.h>
17089 _ACEOF
17090 rm -f conftest.$ac_objext
17091 if { (ac_try="$ac_compile"
17092 case "(($ac_try" in
17093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17094 *) ac_try_echo=$ac_try;;
17095 esac
17096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17097 $as_echo "$ac_try_echo") >&5
17098 (eval "$ac_compile") 2>conftest.er1
17099 ac_status=$?
17100 grep -v '^ *+' conftest.er1 >conftest.err
17101 rm -f conftest.er1
17102 cat conftest.err >&5
17103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); } && {
17105 test -z "$ac_c_werror_flag" ||
17106 test ! -s conftest.err
17107 } && test -s conftest.$ac_objext; then
17108 ac_header_compiler=yes
17109 else
17110 $as_echo "$as_me: failed program was:" >&5
17111 sed 's/^/| /' conftest.$ac_ext >&5
17112
17113 ac_header_compiler=no
17114 fi
17115
17116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17117 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17118 $as_echo "$ac_header_compiler" >&6; }
17119
17120 # Is the header present?
17121 { $as_echo "$as_me:$LINENO: checking dl.h presence" >&5
17122 $as_echo_n "checking dl.h presence... " >&6; }
17123 cat >conftest.$ac_ext <<_ACEOF
17124 /* confdefs.h. */
17125 _ACEOF
17126 cat confdefs.h >>conftest.$ac_ext
17127 cat >>conftest.$ac_ext <<_ACEOF
17128 /* end confdefs.h. */
17129 #include <dl.h>
17130 _ACEOF
17131 if { (ac_try="$ac_cpp conftest.$ac_ext"
17132 case "(($ac_try" in
17133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17134 *) ac_try_echo=$ac_try;;
17135 esac
17136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17137 $as_echo "$ac_try_echo") >&5
17138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17139 ac_status=$?
17140 grep -v '^ *+' conftest.er1 >conftest.err
17141 rm -f conftest.er1
17142 cat conftest.err >&5
17143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144 (exit $ac_status); } >/dev/null && {
17145 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17146 test ! -s conftest.err
17147 }; then
17148 ac_header_preproc=yes
17149 else
17150 $as_echo "$as_me: failed program was:" >&5
17151 sed 's/^/| /' conftest.$ac_ext >&5
17152
17153 ac_header_preproc=no
17154 fi
17155
17156 rm -f conftest.err conftest.$ac_ext
17157 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17158 $as_echo "$ac_header_preproc" >&6; }
17159
17160 # So? What about this header?
17161 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17162 yes:no: )
17163 { $as_echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5
17164 $as_echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17165 { $as_echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5
17166 $as_echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;}
17167 ac_header_preproc=yes
17168 ;;
17169 no:yes:* )
17170 { $as_echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5
17171 $as_echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;}
17172 { $as_echo "$as_me:$LINENO: WARNING: dl.h: check for missing prerequisite headers?" >&5
17173 $as_echo "$as_me: WARNING: dl.h: check for missing prerequisite headers?" >&2;}
17174 { $as_echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5
17175 $as_echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;}
17176 { $as_echo "$as_me:$LINENO: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&5
17177 $as_echo "$as_me: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&2;}
17178 { $as_echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5
17179 $as_echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;}
17180 { $as_echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5
17181 $as_echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;}
17182
17183 ;;
17184 esac
17185 { $as_echo "$as_me:$LINENO: checking for dl.h" >&5
17186 $as_echo_n "checking for dl.h... " >&6; }
17187 if test "${ac_cv_header_dl_h+set}" = set; then
17188 $as_echo_n "(cached) " >&6
17189 else
17190 ac_cv_header_dl_h=$ac_header_preproc
17191 fi
17192 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
17193 $as_echo "$ac_cv_header_dl_h" >&6; }
17194
17195 fi
17196 if test "x$ac_cv_header_dl_h" = x""yes; then
17197 DLL=dl.h 11373 DLL=dl.h
17198 fi 11374 fi
17199 11375
17200 11376
17201 fi 11377 fi
17202 11378
17203 11379
17204 if test x${DLL} = xdlfcn.h; then 11380 if test x${DLL} = xdlfcn.h; then
17205 11381
17206 cat >>confdefs.h <<\_ACEOF 11382 $as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h
17207 #define HAVE_DLFCN_H 1 11383
17208 _ACEOF 11384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen()" >&5
17209
17210 { $as_echo "$as_me:$LINENO: checking for dlopen()" >&5
17211 $as_echo_n "checking for dlopen()... " >&6; } 11385 $as_echo_n "checking for dlopen()... " >&6; }
17212 cat >conftest.$ac_ext <<_ACEOF 11386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17213 /* confdefs.h. */
17214 _ACEOF
17215 cat confdefs.h >>conftest.$ac_ext
17216 cat >>conftest.$ac_ext <<_ACEOF
17217 /* end confdefs.h. */ 11387 /* end confdefs.h. */
17218 11388
17219 int 11389 int
17220 main () 11390 main ()
17221 { 11391 {
17225 11395
17226 ; 11396 ;
17227 return 0; 11397 return 0;
17228 } 11398 }
17229 _ACEOF 11399 _ACEOF
17230 rm -f conftest.$ac_objext conftest$ac_exeext 11400 if ac_fn_c_try_link "$LINENO"; then :
17231 if { (ac_try="$ac_link" 11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17232 case "(($ac_try" in
17233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17234 *) ac_try_echo=$ac_try;;
17235 esac
17236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17237 $as_echo "$ac_try_echo") >&5
17238 (eval "$ac_link") 2>conftest.er1
17239 ac_status=$?
17240 grep -v '^ *+' conftest.er1 >conftest.err
17241 rm -f conftest.er1
17242 cat conftest.err >&5
17243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244 (exit $ac_status); } && {
17245 test -z "$ac_c_werror_flag" ||
17246 test ! -s conftest.err
17247 } && test -s conftest$ac_exeext && {
17248 test "$cross_compiling" = yes ||
17249 $as_test_x conftest$ac_exeext
17250 }; then
17251 { $as_echo "$as_me:$LINENO: result: yes" >&5
17252 $as_echo "yes" >&6; }; 11402 $as_echo "yes" >&6; };
17253 11403
17254 cat >>confdefs.h <<\_ACEOF 11404 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
17255 #define HAVE_DLOPEN 1 11405
17256 _ACEOF 11406 else
17257 11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17258 else
17259 $as_echo "$as_me: failed program was:" >&5
17260 sed 's/^/| /' conftest.$ac_ext >&5
17261
17262 { $as_echo "$as_me:$LINENO: result: no" >&5
17263 $as_echo "no" >&6; }; 11408 $as_echo "no" >&6; };
17264 { $as_echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5 11409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen() in -ldl" >&5
17265 $as_echo_n "checking for dlopen() in -ldl... " >&6; } 11410 $as_echo_n "checking for dlopen() in -ldl... " >&6; }
17266 olibs=$LIBS 11411 olibs=$LIBS
17267 LIBS="$LIBS -ldl" 11412 LIBS="$LIBS -ldl"
17268 cat >conftest.$ac_ext <<_ACEOF 11413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17269 /* confdefs.h. */
17270 _ACEOF
17271 cat confdefs.h >>conftest.$ac_ext
17272 cat >>conftest.$ac_ext <<_ACEOF
17273 /* end confdefs.h. */ 11414 /* end confdefs.h. */
17274 11415
17275 int 11416 int
17276 main () 11417 main ()
17277 { 11418 {
17281 11422
17282 ; 11423 ;
17283 return 0; 11424 return 0;
17284 } 11425 }
17285 _ACEOF 11426 _ACEOF
17286 rm -f conftest.$ac_objext conftest$ac_exeext 11427 if ac_fn_c_try_link "$LINENO"; then :
17287 if { (ac_try="$ac_link" 11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17288 case "(($ac_try" in
17289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17290 *) ac_try_echo=$ac_try;;
17291 esac
17292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17293 $as_echo "$ac_try_echo") >&5
17294 (eval "$ac_link") 2>conftest.er1
17295 ac_status=$?
17296 grep -v '^ *+' conftest.er1 >conftest.err
17297 rm -f conftest.er1
17298 cat conftest.err >&5
17299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300 (exit $ac_status); } && {
17301 test -z "$ac_c_werror_flag" ||
17302 test ! -s conftest.err
17303 } && test -s conftest$ac_exeext && {
17304 test "$cross_compiling" = yes ||
17305 $as_test_x conftest$ac_exeext
17306 }; then
17307 { $as_echo "$as_me:$LINENO: result: yes" >&5
17308 $as_echo "yes" >&6; }; 11429 $as_echo "yes" >&6; };
17309 11430
17310 cat >>confdefs.h <<\_ACEOF 11431 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
17311 #define HAVE_DLOPEN 1 11432
17312 _ACEOF 11433 else
17313 11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17314 else
17315 $as_echo "$as_me: failed program was:" >&5
17316 sed 's/^/| /' conftest.$ac_ext >&5
17317
17318 { $as_echo "$as_me:$LINENO: result: no" >&5
17319 $as_echo "no" >&6; }; 11435 $as_echo "no" >&6; };
17320 LIBS=$olibs 11436 LIBS=$olibs
17321 fi 11437 fi
17322 11438 rm -f core conftest.err conftest.$ac_objext \
17323 rm -rf conftest.dSYM 11439 conftest$ac_exeext conftest.$ac_ext
17324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11440 fi
17325 conftest$ac_exeext conftest.$ac_ext 11441 rm -f core conftest.err conftest.$ac_objext \
17326 fi 11442 conftest$ac_exeext conftest.$ac_ext
17327 11443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym()" >&5
17328 rm -rf conftest.dSYM
17329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17330 conftest$ac_exeext conftest.$ac_ext
17331 { $as_echo "$as_me:$LINENO: checking for dlsym()" >&5
17332 $as_echo_n "checking for dlsym()... " >&6; } 11444 $as_echo_n "checking for dlsym()... " >&6; }
17333 cat >conftest.$ac_ext <<_ACEOF 11445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17334 /* confdefs.h. */
17335 _ACEOF
17336 cat confdefs.h >>conftest.$ac_ext
17337 cat >>conftest.$ac_ext <<_ACEOF
17338 /* end confdefs.h. */ 11446 /* end confdefs.h. */
17339 11447
17340 int 11448 int
17341 main () 11449 main ()
17342 { 11450 {
17346 11454
17347 ; 11455 ;
17348 return 0; 11456 return 0;
17349 } 11457 }
17350 _ACEOF 11458 _ACEOF
17351 rm -f conftest.$ac_objext conftest$ac_exeext 11459 if ac_fn_c_try_link "$LINENO"; then :
17352 if { (ac_try="$ac_link" 11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17353 case "(($ac_try" in
17354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17355 *) ac_try_echo=$ac_try;;
17356 esac
17357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17358 $as_echo "$ac_try_echo") >&5
17359 (eval "$ac_link") 2>conftest.er1
17360 ac_status=$?
17361 grep -v '^ *+' conftest.er1 >conftest.err
17362 rm -f conftest.er1
17363 cat conftest.err >&5
17364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365 (exit $ac_status); } && {
17366 test -z "$ac_c_werror_flag" ||
17367 test ! -s conftest.err
17368 } && test -s conftest$ac_exeext && {
17369 test "$cross_compiling" = yes ||
17370 $as_test_x conftest$ac_exeext
17371 }; then
17372 { $as_echo "$as_me:$LINENO: result: yes" >&5
17373 $as_echo "yes" >&6; }; 11461 $as_echo "yes" >&6; };
17374 11462
17375 cat >>confdefs.h <<\_ACEOF 11463 $as_echo "#define HAVE_DLSYM 1" >>confdefs.h
17376 #define HAVE_DLSYM 1 11464
17377 _ACEOF 11465 else
17378 11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17379 else
17380 $as_echo "$as_me: failed program was:" >&5
17381 sed 's/^/| /' conftest.$ac_ext >&5
17382
17383 { $as_echo "$as_me:$LINENO: result: no" >&5
17384 $as_echo "no" >&6; }; 11467 $as_echo "no" >&6; };
17385 { $as_echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5 11468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym() in -ldl" >&5
17386 $as_echo_n "checking for dlsym() in -ldl... " >&6; } 11469 $as_echo_n "checking for dlsym() in -ldl... " >&6; }
17387 olibs=$LIBS 11470 olibs=$LIBS
17388 LIBS="$LIBS -ldl" 11471 LIBS="$LIBS -ldl"
17389 cat >conftest.$ac_ext <<_ACEOF 11472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17390 /* confdefs.h. */
17391 _ACEOF
17392 cat confdefs.h >>conftest.$ac_ext
17393 cat >>conftest.$ac_ext <<_ACEOF
17394 /* end confdefs.h. */ 11473 /* end confdefs.h. */
17395 11474
17396 int 11475 int
17397 main () 11476 main ()
17398 { 11477 {
17402 11481
17403 ; 11482 ;
17404 return 0; 11483 return 0;
17405 } 11484 }
17406 _ACEOF 11485 _ACEOF
17407 rm -f conftest.$ac_objext conftest$ac_exeext 11486 if ac_fn_c_try_link "$LINENO"; then :
17408 if { (ac_try="$ac_link" 11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17409 case "(($ac_try" in
17410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17411 *) ac_try_echo=$ac_try;;
17412 esac
17413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17414 $as_echo "$ac_try_echo") >&5
17415 (eval "$ac_link") 2>conftest.er1
17416 ac_status=$?
17417 grep -v '^ *+' conftest.er1 >conftest.err
17418 rm -f conftest.er1
17419 cat conftest.err >&5
17420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421 (exit $ac_status); } && {
17422 test -z "$ac_c_werror_flag" ||
17423 test ! -s conftest.err
17424 } && test -s conftest$ac_exeext && {
17425 test "$cross_compiling" = yes ||
17426 $as_test_x conftest$ac_exeext
17427 }; then
17428 { $as_echo "$as_me:$LINENO: result: yes" >&5
17429 $as_echo "yes" >&6; }; 11488 $as_echo "yes" >&6; };
17430 11489
17431 cat >>confdefs.h <<\_ACEOF 11490 $as_echo "#define HAVE_DLSYM 1" >>confdefs.h
17432 #define HAVE_DLSYM 1 11491
17433 _ACEOF 11492 else
17434 11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17435 else
17436 $as_echo "$as_me: failed program was:" >&5
17437 sed 's/^/| /' conftest.$ac_ext >&5
17438
17439 { $as_echo "$as_me:$LINENO: result: no" >&5
17440 $as_echo "no" >&6; }; 11494 $as_echo "no" >&6; };
17441 LIBS=$olibs 11495 LIBS=$olibs
17442 fi 11496 fi
17443 11497 rm -f core conftest.err conftest.$ac_objext \
17444 rm -rf conftest.dSYM 11498 conftest$ac_exeext conftest.$ac_ext
17445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11499 fi
17446 conftest$ac_exeext conftest.$ac_ext 11500 rm -f core conftest.err conftest.$ac_objext \
17447 fi 11501 conftest$ac_exeext conftest.$ac_ext
17448
17449 rm -rf conftest.dSYM
17450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17451 conftest$ac_exeext conftest.$ac_ext
17452 elif test x${DLL} = xdl.h; then 11502 elif test x${DLL} = xdl.h; then
17453 11503
17454 cat >>confdefs.h <<\_ACEOF 11504 $as_echo "#define HAVE_DL_H 1" >>confdefs.h
17455 #define HAVE_DL_H 1 11505
17456 _ACEOF 11506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load()" >&5
17457
17458 { $as_echo "$as_me:$LINENO: checking for shl_load()" >&5
17459 $as_echo_n "checking for shl_load()... " >&6; } 11507 $as_echo_n "checking for shl_load()... " >&6; }
17460 cat >conftest.$ac_ext <<_ACEOF 11508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17461 /* confdefs.h. */
17462 _ACEOF
17463 cat confdefs.h >>conftest.$ac_ext
17464 cat >>conftest.$ac_ext <<_ACEOF
17465 /* end confdefs.h. */ 11509 /* end confdefs.h. */
17466 11510
17467 int 11511 int
17468 main () 11512 main ()
17469 { 11513 {
17473 11517
17474 ; 11518 ;
17475 return 0; 11519 return 0;
17476 } 11520 }
17477 _ACEOF 11521 _ACEOF
17478 rm -f conftest.$ac_objext conftest$ac_exeext 11522 if ac_fn_c_try_link "$LINENO"; then :
17479 if { (ac_try="$ac_link" 11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17480 case "(($ac_try" in
17481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17482 *) ac_try_echo=$ac_try;;
17483 esac
17484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17485 $as_echo "$ac_try_echo") >&5
17486 (eval "$ac_link") 2>conftest.er1
17487 ac_status=$?
17488 grep -v '^ *+' conftest.er1 >conftest.err
17489 rm -f conftest.er1
17490 cat conftest.err >&5
17491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492 (exit $ac_status); } && {
17493 test -z "$ac_c_werror_flag" ||
17494 test ! -s conftest.err
17495 } && test -s conftest$ac_exeext && {
17496 test "$cross_compiling" = yes ||
17497 $as_test_x conftest$ac_exeext
17498 }; then
17499 { $as_echo "$as_me:$LINENO: result: yes" >&5
17500 $as_echo "yes" >&6; }; 11524 $as_echo "yes" >&6; };
17501 11525
17502 cat >>confdefs.h <<\_ACEOF 11526 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
17503 #define HAVE_SHL_LOAD 1 11527
17504 _ACEOF 11528 else
17505 11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17506 else
17507 $as_echo "$as_me: failed program was:" >&5
17508 sed 's/^/| /' conftest.$ac_ext >&5
17509
17510 { $as_echo "$as_me:$LINENO: result: no" >&5
17511 $as_echo "no" >&6; }; 11530 $as_echo "no" >&6; };
17512 { $as_echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5 11531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load() in -ldld" >&5
17513 $as_echo_n "checking for shl_load() in -ldld... " >&6; } 11532 $as_echo_n "checking for shl_load() in -ldld... " >&6; }
17514 olibs=$LIBS 11533 olibs=$LIBS
17515 LIBS="$LIBS -ldld" 11534 LIBS="$LIBS -ldld"
17516 cat >conftest.$ac_ext <<_ACEOF 11535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17517 /* confdefs.h. */
17518 _ACEOF
17519 cat confdefs.h >>conftest.$ac_ext
17520 cat >>conftest.$ac_ext <<_ACEOF
17521 /* end confdefs.h. */ 11536 /* end confdefs.h. */
17522 11537
17523 int 11538 int
17524 main () 11539 main ()
17525 { 11540 {
17529 11544
17530 ; 11545 ;
17531 return 0; 11546 return 0;
17532 } 11547 }
17533 _ACEOF 11548 _ACEOF
17534 rm -f conftest.$ac_objext conftest$ac_exeext 11549 if ac_fn_c_try_link "$LINENO"; then :
17535 if { (ac_try="$ac_link" 11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17536 case "(($ac_try" in
17537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17538 *) ac_try_echo=$ac_try;;
17539 esac
17540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17541 $as_echo "$ac_try_echo") >&5
17542 (eval "$ac_link") 2>conftest.er1
17543 ac_status=$?
17544 grep -v '^ *+' conftest.er1 >conftest.err
17545 rm -f conftest.er1
17546 cat conftest.err >&5
17547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548 (exit $ac_status); } && {
17549 test -z "$ac_c_werror_flag" ||
17550 test ! -s conftest.err
17551 } && test -s conftest$ac_exeext && {
17552 test "$cross_compiling" = yes ||
17553 $as_test_x conftest$ac_exeext
17554 }; then
17555 { $as_echo "$as_me:$LINENO: result: yes" >&5
17556 $as_echo "yes" >&6; }; 11551 $as_echo "yes" >&6; };
17557 11552
17558 cat >>confdefs.h <<\_ACEOF 11553 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
17559 #define HAVE_SHL_LOAD 1 11554
17560 _ACEOF 11555 else
17561 11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17562 else
17563 $as_echo "$as_me: failed program was:" >&5
17564 sed 's/^/| /' conftest.$ac_ext >&5
17565
17566 { $as_echo "$as_me:$LINENO: result: no" >&5
17567 $as_echo "no" >&6; }; 11557 $as_echo "no" >&6; };
17568 LIBS=$olibs 11558 LIBS=$olibs
17569 fi 11559 fi
17570 11560 rm -f core conftest.err conftest.$ac_objext \
17571 rm -rf conftest.dSYM 11561 conftest$ac_exeext conftest.$ac_ext
17572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11562 fi
17573 conftest$ac_exeext conftest.$ac_ext 11563 rm -f core conftest.err conftest.$ac_objext \
17574 fi 11564 conftest$ac_exeext conftest.$ac_ext
17575 11565 fi
17576 rm -rf conftest.dSYM
17577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17578 conftest$ac_exeext conftest.$ac_ext
17579 fi
17580
17581 for ac_header in setjmp.h 11566 for ac_header in setjmp.h
17582 do 11567 do :
17583 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11568 ac_fn_c_check_header_mongrel "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
17584 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11569 if test "x$ac_cv_header_setjmp_h" = x""yes; then :
17585 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17586 $as_echo_n "checking for $ac_header... " >&6; }
17587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17588 $as_echo_n "(cached) " >&6
17589 fi
17590 ac_res=`eval 'as_val=${'$as_ac_Header'}
17591 $as_echo "$as_val"'`
17592 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17593 $as_echo "$ac_res" >&6; }
17594 else
17595 # Is the header compilable?
17596 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17597 $as_echo_n "checking $ac_header usability... " >&6; }
17598 cat >conftest.$ac_ext <<_ACEOF
17599 /* confdefs.h. */
17600 _ACEOF
17601 cat confdefs.h >>conftest.$ac_ext
17602 cat >>conftest.$ac_ext <<_ACEOF
17603 /* end confdefs.h. */
17604 $ac_includes_default
17605 #include <$ac_header>
17606 _ACEOF
17607 rm -f conftest.$ac_objext
17608 if { (ac_try="$ac_compile"
17609 case "(($ac_try" in
17610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17611 *) ac_try_echo=$ac_try;;
17612 esac
17613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17614 $as_echo "$ac_try_echo") >&5
17615 (eval "$ac_compile") 2>conftest.er1
17616 ac_status=$?
17617 grep -v '^ *+' conftest.er1 >conftest.err
17618 rm -f conftest.er1
17619 cat conftest.err >&5
17620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621 (exit $ac_status); } && {
17622 test -z "$ac_c_werror_flag" ||
17623 test ! -s conftest.err
17624 } && test -s conftest.$ac_objext; then
17625 ac_header_compiler=yes
17626 else
17627 $as_echo "$as_me: failed program was:" >&5
17628 sed 's/^/| /' conftest.$ac_ext >&5
17629
17630 ac_header_compiler=no
17631 fi
17632
17633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17634 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17635 $as_echo "$ac_header_compiler" >&6; }
17636
17637 # Is the header present?
17638 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17639 $as_echo_n "checking $ac_header presence... " >&6; }
17640 cat >conftest.$ac_ext <<_ACEOF
17641 /* confdefs.h. */
17642 _ACEOF
17643 cat confdefs.h >>conftest.$ac_ext
17644 cat >>conftest.$ac_ext <<_ACEOF
17645 /* end confdefs.h. */
17646 #include <$ac_header>
17647 _ACEOF
17648 if { (ac_try="$ac_cpp conftest.$ac_ext"
17649 case "(($ac_try" in
17650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17651 *) ac_try_echo=$ac_try;;
17652 esac
17653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17654 $as_echo "$ac_try_echo") >&5
17655 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17656 ac_status=$?
17657 grep -v '^ *+' conftest.er1 >conftest.err
17658 rm -f conftest.er1
17659 cat conftest.err >&5
17660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661 (exit $ac_status); } >/dev/null && {
17662 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17663 test ! -s conftest.err
17664 }; then
17665 ac_header_preproc=yes
17666 else
17667 $as_echo "$as_me: failed program was:" >&5
17668 sed 's/^/| /' conftest.$ac_ext >&5
17669
17670 ac_header_preproc=no
17671 fi
17672
17673 rm -f conftest.err conftest.$ac_ext
17674 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17675 $as_echo "$ac_header_preproc" >&6; }
17676
17677 # So? What about this header?
17678 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17679 yes:no: )
17680 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17681 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17682 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17683 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17684 ac_header_preproc=yes
17685 ;;
17686 no:yes:* )
17687 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17688 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17689 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17690 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17691 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17692 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17693 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17694 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17695 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17696 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17697 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17698 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17699
17700 ;;
17701 esac
17702 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17703 $as_echo_n "checking for $ac_header... " >&6; }
17704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17705 $as_echo_n "(cached) " >&6
17706 else
17707 eval "$as_ac_Header=\$ac_header_preproc"
17708 fi
17709 ac_res=`eval 'as_val=${'$as_ac_Header'}
17710 $as_echo "$as_val"'`
17711 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17712 $as_echo "$ac_res" >&6; }
17713
17714 fi
17715 as_val=`eval 'as_val=${'$as_ac_Header'}
17716 $as_echo "$as_val"'`
17717 if test "x$as_val" = x""yes; then
17718 cat >>confdefs.h <<_ACEOF 11570 cat >>confdefs.h <<_ACEOF
17719 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 11571 #define HAVE_SETJMP_H 1
17720 _ACEOF 11572 _ACEOF
17721 11573
17722 fi 11574 fi
17723 11575
17724 done 11576 done
17731 fi 11583 fi
17732 fi 11584 fi
17733 11585
17734 if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \ 11586 if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \
17735 && test "x$GUITYPE" != "xCARBONGUI"; then 11587 && test "x$GUITYPE" != "xCARBONGUI"; then
17736 { $as_echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5 11588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -framework Carbon" >&5
17737 $as_echo_n "checking whether we need -framework Carbon... " >&6; } 11589 $as_echo_n "checking whether we need -framework Carbon... " >&6; }
17738 if test "x$enable_multibyte" = "xyes" || test "x$features" = "xbig" \ 11590 if test "x$enable_multibyte" = "xyes" || test "x$features" = "xbig" \
17739 || test "x$features" = "xhuge"; then 11591 || test "x$features" = "xhuge"; then
17740 LIBS="$LIBS -framework Carbon" 11592 LIBS="$LIBS -framework Carbon"
17741 { $as_echo "$as_me:$LINENO: result: yes" >&5 11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17742 $as_echo "yes" >&6; } 11594 $as_echo "yes" >&6; }
17743 else 11595 else
17744 { $as_echo "$as_me:$LINENO: result: no" >&5 11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17745 $as_echo "no" >&6; } 11597 $as_echo "no" >&6; }
17746 fi 11598 fi
17747 fi 11599 fi
17748 if test "x$MACARCH" = "xboth"; then 11600 if test "x$MACARCH" = "xboth"; then
17749 LDFLAGS="$LDFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" 11601 LDFLAGS="$LDFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
17750 fi 11602 fi
17751 11603
17752 DEPEND_CFLAGS_FILTER= 11604 DEPEND_CFLAGS_FILTER=
17753 if test "$GCC" = yes; then 11605 if test "$GCC" = yes; then
17754 { $as_echo "$as_me:$LINENO: checking for GCC 3 or later" >&5 11606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC 3 or later" >&5
17755 $as_echo_n "checking for GCC 3 or later... " >&6; } 11607 $as_echo_n "checking for GCC 3 or later... " >&6; }
17756 gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'` 11608 gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'`
17757 if test "$gccmajor" -gt "2"; then 11609 if test "$gccmajor" -gt "2"; then
17758 DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'" 11610 DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
17759 { $as_echo "$as_me:$LINENO: result: yes" >&5 11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17760 $as_echo "yes" >&6; } 11612 $as_echo "yes" >&6; }
17761 else 11613 else
17762 { $as_echo "$as_me:$LINENO: result: no" >&5 11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17763 $as_echo "no" >&6; } 11615 $as_echo "no" >&6; }
17764 fi 11616 fi
17765 { $as_echo "$as_me:$LINENO: checking whether we need -D_FORTIFY_SOURCE=1" >&5 11617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_FORTIFY_SOURCE=1" >&5
17766 $as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; } 11618 $as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; }
17767 if test "$gccmajor" -gt "3"; then 11619 if test "$gccmajor" -gt "3"; then
17768 CFLAGS=`echo "$CFLAGS" | sed -e 's/-Wp,-D_FORTIFY_SOURCE=.//g' -e 's/-D_FORTIFY_SOURCE=.//g' -e 's/$/ -D_FORTIFY_SOURCE=1/'` 11620 CFLAGS=`echo "$CFLAGS" | sed -e 's/-Wp,-D_FORTIFY_SOURCE=.//g' -e 's/-D_FORTIFY_SOURCE=.//g' -e 's/$/ -D_FORTIFY_SOURCE=1/'`
17769 { $as_echo "$as_me:$LINENO: result: yes" >&5 11621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17770 $as_echo "yes" >&6; } 11622 $as_echo "yes" >&6; }
17771 else 11623 else
17772 { $as_echo "$as_me:$LINENO: result: no" >&5 11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17773 $as_echo "no" >&6; } 11625 $as_echo "no" >&6; }
17774 fi 11626 fi
17775 fi 11627 fi
17776 11628
17777 11629
17802 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11654 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17803 eval ac_val=\$$ac_var 11655 eval ac_val=\$$ac_var
17804 case $ac_val in #( 11656 case $ac_val in #(
17805 *${as_nl}*) 11657 *${as_nl}*)
17806 case $ac_var in #( 11658 case $ac_var in #(
17807 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 11659 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17808 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11660 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17809 esac 11661 esac
17810 case $ac_var in #( 11662 case $ac_var in #(
17811 _ | IFS | as_nl) ;; #( 11663 _ | IFS | as_nl) ;; #(
17812 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11664 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17813 *) $as_unset $ac_var ;; 11665 *) { eval $ac_var=; unset $ac_var;} ;;
17814 esac ;; 11666 esac ;;
17815 esac 11667 esac
17816 done 11668 done
17817 11669
17818 (set) 2>&1 | 11670 (set) 2>&1 |
17819 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11671 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17820 *${as_nl}ac_space=\ *) 11672 *${as_nl}ac_space=\ *)
17821 # `set' does not quote correctly, so add quotes (double-quote 11673 # `set' does not quote correctly, so add quotes: double-quote
17822 # substitution turns \\\\ into \\, and sed turns \\ into \). 11674 # substitution turns \\\\ into \\, and sed turns \\ into \.
17823 sed -n \ 11675 sed -n \
17824 "s/'/'\\\\''/g; 11676 "s/'/'\\\\''/g;
17825 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11677 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17826 ;; #( 11678 ;; #(
17827 *) 11679 *)
17840 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11692 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17841 :end' >>confcache 11693 :end' >>confcache
17842 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11694 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17843 if test -w "$cache_file"; then 11695 if test -w "$cache_file"; then
17844 test "x$cache_file" != "x/dev/null" && 11696 test "x$cache_file" != "x/dev/null" &&
17845 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 11697 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17846 $as_echo "$as_me: updating cache $cache_file" >&6;} 11698 $as_echo "$as_me: updating cache $cache_file" >&6;}
17847 cat confcache >$cache_file 11699 cat confcache >$cache_file
17848 else 11700 else
17849 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 11701 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17850 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11702 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17851 fi 11703 fi
17852 fi 11704 fi
17853 rm -f confcache 11705 rm -f confcache
17854 11706
17864 # 1. Remove the extension, and $U if already installed. 11716 # 1. Remove the extension, and $U if already installed.
17865 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11717 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17866 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11718 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17867 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11719 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17868 # will be set to the directory where LIBOBJS objects are built. 11720 # will be set to the directory where LIBOBJS objects are built.
17869 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11721 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17870 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 11722 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17871 done 11723 done
17872 LIBOBJS=$ac_libobjs 11724 LIBOBJS=$ac_libobjs
17873 11725
17874 LTLIBOBJS=$ac_ltlibobjs 11726 LTLIBOBJS=$ac_ltlibobjs
17875 11727
17877 11729
17878 : ${CONFIG_STATUS=./config.status} 11730 : ${CONFIG_STATUS=./config.status}
17879 ac_write_fail=0 11731 ac_write_fail=0
17880 ac_clean_files_save=$ac_clean_files 11732 ac_clean_files_save=$ac_clean_files
17881 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11733 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17882 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 11734 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17883 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11735 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17884 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11736 as_write_fail=0
11737 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17885 #! $SHELL 11738 #! $SHELL
17886 # Generated by $as_me. 11739 # Generated by $as_me.
17887 # Run this file to recreate the current configuration. 11740 # Run this file to recreate the current configuration.
17888 # Compiler output produced by configure, useful for debugging 11741 # Compiler output produced by configure, useful for debugging
17889 # configure, is in config.log if it exists. 11742 # configure, is in config.log if it exists.
17890 11743
17891 debug=false 11744 debug=false
17892 ac_cs_recheck=false 11745 ac_cs_recheck=false
17893 ac_cs_silent=false 11746 ac_cs_silent=false
11747
17894 SHELL=\${CONFIG_SHELL-$SHELL} 11748 SHELL=\${CONFIG_SHELL-$SHELL}
17895 _ACEOF 11749 export SHELL
17896 11750 _ASEOF
17897 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11751 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17898 ## --------------------- ## 11752 ## -------------------- ##
17899 ## M4sh Initialization. ## 11753 ## M4sh Initialization. ##
17900 ## --------------------- ## 11754 ## -------------------- ##
17901 11755
17902 # Be more Bourne compatible 11756 # Be more Bourne compatible
17903 DUALCASE=1; export DUALCASE # for MKS sh 11757 DUALCASE=1; export DUALCASE # for MKS sh
17904 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 11758 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17905 emulate sh 11759 emulate sh
17906 NULLCMD=: 11760 NULLCMD=:
17907 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11761 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17908 # is contrary to our usage. Disable this feature. 11762 # is contrary to our usage. Disable this feature.
17909 alias -g '${1+"$@"}'='"$@"' 11763 alias -g '${1+"$@"}'='"$@"'
17910 setopt NO_GLOB_SUBST 11764 setopt NO_GLOB_SUBST
17911 else 11765 else
17912 case `(set -o) 2>/dev/null` in 11766 case `(set -o) 2>/dev/null` in #(
17913 *posix*) set -o posix ;; 11767 *posix*) :
11768 set -o posix ;; #(
11769 *) :
11770 ;;
17914 esac 11771 esac
17915 11772 fi
17916 fi 11773
17917
17918
17919
17920
17921 # PATH needs CR
17922 # Avoid depending upon Character Ranges.
17923 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17924 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17925 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17926 as_cr_digits='0123456789'
17927 as_cr_alnum=$as_cr_Letters$as_cr_digits
17928 11774
17929 as_nl=' 11775 as_nl='
17930 ' 11776 '
17931 export as_nl 11777 export as_nl
17932 # Printing a long string crashes Solaris 7 /usr/bin/printf. 11778 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17933 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11779 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17934 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11780 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17935 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11781 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17936 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11782 # Prefer a ksh shell builtin over an external printf program on Solaris,
11783 # but without wasting forks for bash or zsh.
11784 if test -z "$BASH_VERSION$ZSH_VERSION" \
11785 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11786 as_echo='print -r --'
11787 as_echo_n='print -rn --'
11788 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17937 as_echo='printf %s\n' 11789 as_echo='printf %s\n'
17938 as_echo_n='printf %s' 11790 as_echo_n='printf %s'
17939 else 11791 else
17940 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11792 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17941 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11793 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17942 as_echo_n='/usr/ucb/echo -n' 11794 as_echo_n='/usr/ucb/echo -n'
17943 else 11795 else
17944 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11796 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17945 as_echo_n_body='eval 11797 as_echo_n_body='eval
17946 arg=$1; 11798 arg=$1;
17947 case $arg in 11799 case $arg in #(
17948 *"$as_nl"*) 11800 *"$as_nl"*)
17949 expr "X$arg" : "X\\(.*\\)$as_nl"; 11801 expr "X$arg" : "X\\(.*\\)$as_nl";
17950 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11802 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17951 esac; 11803 esac;
17952 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11804 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17965 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11817 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17966 PATH_SEPARATOR=';' 11818 PATH_SEPARATOR=';'
17967 } 11819 }
17968 fi 11820 fi
17969 11821
17970 # Support unset when possible.
17971 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17972 as_unset=unset
17973 else
17974 as_unset=false
17975 fi
17976
17977 11822
17978 # IFS 11823 # IFS
17979 # We need space, tab and new line, in precisely that order. Quoting is 11824 # We need space, tab and new line, in precisely that order. Quoting is
17980 # there to prevent editors from complaining about space-tab. 11825 # there to prevent editors from complaining about space-tab.
17981 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 11826 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17982 # splitting by setting IFS to empty value.) 11827 # splitting by setting IFS to empty value.)
17983 IFS=" "" $as_nl" 11828 IFS=" "" $as_nl"
17984 11829
17985 # Find who we are. Look in the path if we contain no directory separator. 11830 # Find who we are. Look in the path if we contain no directory separator.
17986 case $0 in 11831 case $0 in #((
17987 *[\\/]* ) as_myself=$0 ;; 11832 *[\\/]* ) as_myself=$0 ;;
17988 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11833 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17989 for as_dir in $PATH 11834 for as_dir in $PATH
17990 do 11835 do
17991 IFS=$as_save_IFS 11836 IFS=$as_save_IFS
17992 test -z "$as_dir" && as_dir=. 11837 test -z "$as_dir" && as_dir=.
17993 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11838 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17994 done 11839 done
17995 IFS=$as_save_IFS 11840 IFS=$as_save_IFS
17996 11841
17997 ;; 11842 ;;
17998 esac 11843 esac
17999 # We did not find ourselves, most probably we were run as `sh COMMAND' 11844 # We did not find ourselves, most probably we were run as `sh COMMAND'
18001 if test "x$as_myself" = x; then 11846 if test "x$as_myself" = x; then
18002 as_myself=$0 11847 as_myself=$0
18003 fi 11848 fi
18004 if test ! -f "$as_myself"; then 11849 if test ! -f "$as_myself"; then
18005 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11850 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18006 { (exit 1); exit 1; } 11851 exit 1
18007 fi 11852 fi
18008 11853
18009 # Work around bugs in pre-3.0 UWIN ksh. 11854 # Unset variables that we do not need and which cause bugs (e.g. in
18010 for as_var in ENV MAIL MAILPATH 11855 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18011 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 11856 # suppresses any "Segmentation fault" message there. '((' could
11857 # trigger a bug in pdksh 5.2.14.
11858 for as_var in BASH_ENV ENV MAIL MAILPATH
11859 do eval test x\${$as_var+set} = xset \
11860 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18012 done 11861 done
18013 PS1='$ ' 11862 PS1='$ '
18014 PS2='> ' 11863 PS2='> '
18015 PS4='+ ' 11864 PS4='+ '
18016 11865
18018 LC_ALL=C 11867 LC_ALL=C
18019 export LC_ALL 11868 export LC_ALL
18020 LANGUAGE=C 11869 LANGUAGE=C
18021 export LANGUAGE 11870 export LANGUAGE
18022 11871
18023 # Required to use basename. 11872 # CDPATH.
11873 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11874
11875
11876 # as_fn_error ERROR [LINENO LOG_FD]
11877 # ---------------------------------
11878 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11879 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11880 # script with status $?, using 1 if that was 0.
11881 as_fn_error ()
11882 {
11883 as_status=$?; test $as_status -eq 0 && as_status=1
11884 if test "$3"; then
11885 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11886 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11887 fi
11888 $as_echo "$as_me: error: $1" >&2
11889 as_fn_exit $as_status
11890 } # as_fn_error
11891
11892
11893 # as_fn_set_status STATUS
11894 # -----------------------
11895 # Set $? to STATUS, without forking.
11896 as_fn_set_status ()
11897 {
11898 return $1
11899 } # as_fn_set_status
11900
11901 # as_fn_exit STATUS
11902 # -----------------
11903 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11904 as_fn_exit ()
11905 {
11906 set +e
11907 as_fn_set_status $1
11908 exit $1
11909 } # as_fn_exit
11910
11911 # as_fn_unset VAR
11912 # ---------------
11913 # Portably unset VAR.
11914 as_fn_unset ()
11915 {
11916 { eval $1=; unset $1;}
11917 }
11918 as_unset=as_fn_unset
11919 # as_fn_append VAR VALUE
11920 # ----------------------
11921 # Append the text in VALUE to the end of the definition contained in VAR. Take
11922 # advantage of any shell optimizations that allow amortized linear growth over
11923 # repeated appends, instead of the typical quadratic growth present in naive
11924 # implementations.
11925 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11926 eval 'as_fn_append ()
11927 {
11928 eval $1+=\$2
11929 }'
11930 else
11931 as_fn_append ()
11932 {
11933 eval $1=\$$1\$2
11934 }
11935 fi # as_fn_append
11936
11937 # as_fn_arith ARG...
11938 # ------------------
11939 # Perform arithmetic evaluation on the ARGs, and store the result in the
11940 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11941 # must be portable across $(()) and expr.
11942 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11943 eval 'as_fn_arith ()
11944 {
11945 as_val=$(( $* ))
11946 }'
11947 else
11948 as_fn_arith ()
11949 {
11950 as_val=`expr "$@" || test $? -eq 1`
11951 }
11952 fi # as_fn_arith
11953
11954
18024 if expr a : '\(a\)' >/dev/null 2>&1 && 11955 if expr a : '\(a\)' >/dev/null 2>&1 &&
18025 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11956 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18026 as_expr=expr 11957 as_expr=expr
18027 else 11958 else
18028 as_expr=false 11959 as_expr=false
18032 as_basename=basename 11963 as_basename=basename
18033 else 11964 else
18034 as_basename=false 11965 as_basename=false
18035 fi 11966 fi
18036 11967
18037 11968 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18038 # Name of the executable. 11969 as_dirname=dirname
11970 else
11971 as_dirname=false
11972 fi
11973
18039 as_me=`$as_basename -- "$0" || 11974 as_me=`$as_basename -- "$0" ||
18040 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11975 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18041 X"$0" : 'X\(//\)$' \| \ 11976 X"$0" : 'X\(//\)$' \| \
18042 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11977 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18043 $as_echo X/"$0" | 11978 $as_echo X/"$0" |
18053 s//\1/ 11988 s//\1/
18054 q 11989 q
18055 } 11990 }
18056 s/.*/./; q'` 11991 s/.*/./; q'`
18057 11992
18058 # CDPATH. 11993 # Avoid depending upon Character Ranges.
18059 $as_unset CDPATH 11994 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18060 11995 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18061 11996 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18062 11997 as_cr_digits='0123456789'
18063 as_lineno_1=$LINENO 11998 as_cr_alnum=$as_cr_Letters$as_cr_digits
18064 as_lineno_2=$LINENO
18065 test "x$as_lineno_1" != "x$as_lineno_2" &&
18066 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18067
18068 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18069 # uniformly replaced by the line number. The first 'sed' inserts a
18070 # line-number line after each line using $LINENO; the second 'sed'
18071 # does the real work. The second script uses 'N' to pair each
18072 # line-number line with the line containing $LINENO, and appends
18073 # trailing '-' during substitution so that $LINENO is not a special
18074 # case at line end.
18075 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18076 # scripts with optimization help from Paolo Bonzini. Blame Lee
18077 # E. McMahon (1931-1989) for sed's syntax. :-)
18078 sed -n '
18079 p
18080 /[$]LINENO/=
18081 ' <$as_myself |
18082 sed '
18083 s/[$]LINENO.*/&-/
18084 t lineno
18085 b
18086 :lineno
18087 N
18088 :loop
18089 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18090 t loop
18091 s/-\n.*//
18092 ' >$as_me.lineno &&
18093 chmod +x "$as_me.lineno" ||
18094 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18095 { (exit 1); exit 1; }; }
18096
18097 # Don't try to exec as it changes $[0], causing all sort of problems
18098 # (the dirname of $[0] is not the place where we might find the
18099 # original and so on. Autoconf is especially sensitive to this).
18100 . "./$as_me.lineno"
18101 # Exit status is that of the last command.
18102 exit
18103 }
18104
18105
18106 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18107 as_dirname=dirname
18108 else
18109 as_dirname=false
18110 fi
18111 11999
18112 ECHO_C= ECHO_N= ECHO_T= 12000 ECHO_C= ECHO_N= ECHO_T=
18113 case `echo -n x` in 12001 case `echo -n x` in #(((((
18114 -n*) 12002 -n*)
18115 case `echo 'x\c'` in 12003 case `echo 'xy\c'` in
18116 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12004 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18117 *) ECHO_C='\c';; 12005 xy) ECHO_C='\c';;
12006 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12007 ECHO_T=' ';;
18118 esac;; 12008 esac;;
18119 *) 12009 *)
18120 ECHO_N='-n';; 12010 ECHO_N='-n';;
18121 esac 12011 esac
18122 if expr a : '\(a\)' >/dev/null 2>&1 &&
18123 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18124 as_expr=expr
18125 else
18126 as_expr=false
18127 fi
18128 12012
18129 rm -f conf$$ conf$$.exe conf$$.file 12013 rm -f conf$$ conf$$.exe conf$$.file
18130 if test -d conf$$.dir; then 12014 if test -d conf$$.dir; then
18131 rm -f conf$$.dir/conf$$.file 12015 rm -f conf$$.dir/conf$$.file
18132 else 12016 else
18151 as_ln_s='cp -p' 12035 as_ln_s='cp -p'
18152 fi 12036 fi
18153 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12037 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18154 rmdir conf$$.dir 2>/dev/null 12038 rmdir conf$$.dir 2>/dev/null
18155 12039
12040
12041 # as_fn_mkdir_p
12042 # -------------
12043 # Create "$as_dir" as a directory, including parents if necessary.
12044 as_fn_mkdir_p ()
12045 {
12046
12047 case $as_dir in #(
12048 -*) as_dir=./$as_dir;;
12049 esac
12050 test -d "$as_dir" || eval $as_mkdir_p || {
12051 as_dirs=
12052 while :; do
12053 case $as_dir in #(
12054 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12055 *) as_qdir=$as_dir;;
12056 esac
12057 as_dirs="'$as_qdir' $as_dirs"
12058 as_dir=`$as_dirname -- "$as_dir" ||
12059 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12060 X"$as_dir" : 'X\(//\)[^/]' \| \
12061 X"$as_dir" : 'X\(//\)$' \| \
12062 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12063 $as_echo X"$as_dir" |
12064 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12065 s//\1/
12066 q
12067 }
12068 /^X\(\/\/\)[^/].*/{
12069 s//\1/
12070 q
12071 }
12072 /^X\(\/\/\)$/{
12073 s//\1/
12074 q
12075 }
12076 /^X\(\/\).*/{
12077 s//\1/
12078 q
12079 }
12080 s/.*/./; q'`
12081 test -d "$as_dir" && break
12082 done
12083 test -z "$as_dirs" || eval "mkdir $as_dirs"
12084 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
12085
12086
12087 } # as_fn_mkdir_p
18156 if mkdir -p . 2>/dev/null; then 12088 if mkdir -p . 2>/dev/null; then
18157 as_mkdir_p=: 12089 as_mkdir_p='mkdir -p "$as_dir"'
18158 else 12090 else
18159 test -d ./-p && rmdir ./-p 12091 test -d ./-p && rmdir ./-p
18160 as_mkdir_p=false 12092 as_mkdir_p=false
18161 fi 12093 fi
18162 12094
18171 as_test_x=' 12103 as_test_x='
18172 eval sh -c '\'' 12104 eval sh -c '\''
18173 if test -d "$1"; then 12105 if test -d "$1"; then
18174 test -d "$1/."; 12106 test -d "$1/.";
18175 else 12107 else
18176 case $1 in 12108 case $1 in #(
18177 -*)set "./$1";; 12109 -*)set "./$1";;
18178 esac; 12110 esac;
18179 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 12111 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18180 ???[sx]*):;;*)false;;esac;fi 12112 ???[sx]*):;;*)false;;esac;fi
18181 '\'' sh 12113 '\'' sh
18182 ' 12114 '
18183 fi 12115 fi
18184 as_executable_p=$as_test_x 12116 as_executable_p=$as_test_x
18189 # Sed expression to map a string onto a valid variable name. 12121 # Sed expression to map a string onto a valid variable name.
18190 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12122 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18191 12123
18192 12124
18193 exec 6>&1 12125 exec 6>&1
18194 12126 ## ----------------------------------- ##
18195 # Save the log message, to keep $[0] and so on meaningful, and to 12127 ## Main body of $CONFIG_STATUS script. ##
12128 ## ----------------------------------- ##
12129 _ASEOF
12130 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12131
12132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12133 # Save the log message, to keep $0 and so on meaningful, and to
18196 # report actual input values of CONFIG_FILES etc. instead of their 12134 # report actual input values of CONFIG_FILES etc. instead of their
18197 # values after options handling. 12135 # values after options handling.
18198 ac_log=" 12136 ac_log="
18199 This file was extended by $as_me, which was 12137 This file was extended by $as_me, which was
18200 generated by GNU Autoconf 2.63. Invocation command line was 12138 generated by GNU Autoconf 2.65. Invocation command line was
18201 12139
18202 CONFIG_FILES = $CONFIG_FILES 12140 CONFIG_FILES = $CONFIG_FILES
18203 CONFIG_HEADERS = $CONFIG_HEADERS 12141 CONFIG_HEADERS = $CONFIG_HEADERS
18204 CONFIG_LINKS = $CONFIG_LINKS 12142 CONFIG_LINKS = $CONFIG_LINKS
18205 CONFIG_COMMANDS = $CONFIG_COMMANDS 12143 CONFIG_COMMANDS = $CONFIG_COMMANDS
18226 12164
18227 _ACEOF 12165 _ACEOF
18228 12166
18229 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18230 ac_cs_usage="\ 12168 ac_cs_usage="\
18231 \`$as_me' instantiates files from templates according to the 12169 \`$as_me' instantiates files and other configuration actions
18232 current configuration. 12170 from templates according to the current configuration. Unless the files
18233 12171 and actions are specified as TAGs, all are instantiated by default.
18234 Usage: $0 [OPTION]... [FILE]... 12172
12173 Usage: $0 [OPTION]... [TAG]...
18235 12174
18236 -h, --help print this help, then exit 12175 -h, --help print this help, then exit
18237 -V, --version print version number and configuration settings, then exit 12176 -V, --version print version number and configuration settings, then exit
12177 --config print configuration, then exit
18238 -q, --quiet, --silent 12178 -q, --quiet, --silent
18239 do not print progress messages 12179 do not print progress messages
18240 -d, --debug don't remove temporary files 12180 -d, --debug don't remove temporary files
18241 --recheck update $as_me by reconfiguring in the same conditions 12181 --recheck update $as_me by reconfiguring in the same conditions
18242 --file=FILE[:TEMPLATE] 12182 --file=FILE[:TEMPLATE]
18248 $config_files 12188 $config_files
18249 12189
18250 Configuration headers: 12190 Configuration headers:
18251 $config_headers 12191 $config_headers
18252 12192
18253 Report bugs to <bug-autoconf@gnu.org>." 12193 Report bugs to the package provider."
18254 12194
18255 _ACEOF 12195 _ACEOF
18256 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12196 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12197 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18257 ac_cs_version="\\ 12198 ac_cs_version="\\
18258 config.status 12199 config.status
18259 configured by $0, generated by GNU Autoconf 2.63, 12200 configured by $0, generated by GNU Autoconf 2.65,
18260 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 12201 with options \\"\$ac_cs_config\\"
18261 12202
18262 Copyright (C) 2008 Free Software Foundation, Inc. 12203 Copyright (C) 2009 Free Software Foundation, Inc.
18263 This config.status script is free software; the Free Software Foundation 12204 This config.status script is free software; the Free Software Foundation
18264 gives unlimited permission to copy, distribute and modify it." 12205 gives unlimited permission to copy, distribute and modify it."
18265 12206
18266 ac_pwd='$ac_pwd' 12207 ac_pwd='$ac_pwd'
18267 srcdir='$srcdir' 12208 srcdir='$srcdir'
18291 # Handling of the options. 12232 # Handling of the options.
18292 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12233 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18293 ac_cs_recheck=: ;; 12234 ac_cs_recheck=: ;;
18294 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12235 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18295 $as_echo "$ac_cs_version"; exit ;; 12236 $as_echo "$ac_cs_version"; exit ;;
12237 --config | --confi | --conf | --con | --co | --c )
12238 $as_echo "$ac_cs_config"; exit ;;
18296 --debug | --debu | --deb | --de | --d | -d ) 12239 --debug | --debu | --deb | --de | --d | -d )
18297 debug=: ;; 12240 debug=: ;;
18298 --file | --fil | --fi | --f ) 12241 --file | --fil | --fi | --f )
18299 $ac_shift 12242 $ac_shift
18300 case $ac_optarg in 12243 case $ac_optarg in
18301 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12244 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18302 esac 12245 esac
18303 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 12246 as_fn_append CONFIG_FILES " '$ac_optarg'"
18304 ac_need_defaults=false;; 12247 ac_need_defaults=false;;
18305 --header | --heade | --head | --hea ) 12248 --header | --heade | --head | --hea )
18306 $ac_shift 12249 $ac_shift
18307 case $ac_optarg in 12250 case $ac_optarg in
18308 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12251 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18309 esac 12252 esac
18310 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 12253 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18311 ac_need_defaults=false;; 12254 ac_need_defaults=false;;
18312 --he | --h) 12255 --he | --h)
18313 # Conflict between --help and --header 12256 # Conflict between --help and --header
18314 { $as_echo "$as_me: error: ambiguous option: $1 12257 as_fn_error "ambiguous option: \`$1'
18315 Try \`$0 --help' for more information." >&2 12258 Try \`$0 --help' for more information.";;
18316 { (exit 1); exit 1; }; };;
18317 --help | --hel | -h ) 12259 --help | --hel | -h )
18318 $as_echo "$ac_cs_usage"; exit ;; 12260 $as_echo "$ac_cs_usage"; exit ;;
18319 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12261 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18320 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12262 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18321 ac_cs_silent=: ;; 12263 ac_cs_silent=: ;;
18322 12264
18323 # This is an error. 12265 # This is an error.
18324 -*) { $as_echo "$as_me: error: unrecognized option: $1 12266 -*) as_fn_error "unrecognized option: \`$1'
18325 Try \`$0 --help' for more information." >&2 12267 Try \`$0 --help' for more information." ;;
18326 { (exit 1); exit 1; }; } ;; 12268
18327 12269 *) as_fn_append ac_config_targets " $1"
18328 *) ac_config_targets="$ac_config_targets $1"
18329 ac_need_defaults=false ;; 12270 ac_need_defaults=false ;;
18330 12271
18331 esac 12272 esac
18332 shift 12273 shift
18333 done 12274 done
18372 do 12313 do
18373 case $ac_config_target in 12314 case $ac_config_target in
18374 "auto/config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;; 12315 "auto/config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
18375 "auto/config.mk") CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;; 12316 "auto/config.mk") CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
18376 12317
18377 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 12318 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18378 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18379 { (exit 1); exit 1; }; };;
18380 esac 12319 esac
18381 done 12320 done
18382 12321
18383 12322
18384 # If the user did not use the arguments to specify the items to instantiate, 12323 # If the user did not use the arguments to specify the items to instantiate,
18400 { 12339 {
18401 tmp= 12340 tmp=
18402 trap 'exit_status=$? 12341 trap 'exit_status=$?
18403 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 12342 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18404 ' 0 12343 ' 0
18405 trap '{ (exit 1); exit 1; }' 1 2 13 15 12344 trap 'as_fn_exit 1' 1 2 13 15
18406 } 12345 }
18407 # Create a (secure) tmp directory for tmp files. 12346 # Create a (secure) tmp directory for tmp files.
18408 12347
18409 { 12348 {
18410 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12349 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18411 test -n "$tmp" && test -d "$tmp" 12350 test -n "$tmp" && test -d "$tmp"
18412 } || 12351 } ||
18413 { 12352 {
18414 tmp=./conf$$-$RANDOM 12353 tmp=./conf$$-$RANDOM
18415 (umask 077 && mkdir "$tmp") 12354 (umask 077 && mkdir "$tmp")
18416 } || 12355 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
18417 {
18418 $as_echo "$as_me: cannot create a temporary directory in ." >&2
18419 { (exit 1); exit 1; }
18420 }
18421 12356
18422 # Set up the scripts for CONFIG_FILES section. 12357 # Set up the scripts for CONFIG_FILES section.
18423 # No need to generate them if there are no CONFIG_FILES. 12358 # No need to generate them if there are no CONFIG_FILES.
18424 # This happens for instance with `./config.status config.h'. 12359 # This happens for instance with `./config.status config.h'.
18425 if test -n "$CONFIG_FILES"; then 12360 if test -n "$CONFIG_FILES"; then
18426 12361
18427 12362
18428 ac_cr=' 12363 ac_cr=`echo X | tr X '\015'`
18429 ' 12364 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12365 # But we know of no other shell where ac_cr would be empty at this
12366 # point, so we can use a bashism as a fallback.
12367 if test "x$ac_cr" = x; then
12368 eval ac_cr=\$\'\\r\'
12369 fi
18430 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12370 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18431 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12371 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18432 ac_cs_awk_cr='\\r' 12372 ac_cs_awk_cr='\r'
18433 else 12373 else
18434 ac_cs_awk_cr=$ac_cr 12374 ac_cs_awk_cr=$ac_cr
18435 fi 12375 fi
18436 12376
18437 echo 'BEGIN {' >"$tmp/subs1.awk" && 12377 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18441 { 12381 {
18442 echo "cat >conf$$subs.awk <<_ACEOF" && 12382 echo "cat >conf$$subs.awk <<_ACEOF" &&
18443 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12383 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18444 echo "_ACEOF" 12384 echo "_ACEOF"
18445 } >conf$$subs.sh || 12385 } >conf$$subs.sh ||
18446 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 12386 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18447 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18448 { (exit 1); exit 1; }; }
18449 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 12387 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18450 ac_delim='%!_!# ' 12388 ac_delim='%!_!# '
18451 for ac_last_try in false false false false false :; do 12389 for ac_last_try in false false false false false :; do
18452 . ./conf$$subs.sh || 12390 . ./conf$$subs.sh ||
18453 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 12391 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18454 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18455 { (exit 1); exit 1; }; }
18456 12392
18457 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12393 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18458 if test $ac_delim_n = $ac_delim_num; then 12394 if test $ac_delim_n = $ac_delim_num; then
18459 break 12395 break
18460 elif $ac_last_try; then 12396 elif $ac_last_try; then
18461 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 12397 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18462 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18463 { (exit 1); exit 1; }; }
18464 else 12398 else
18465 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12399 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18466 fi 12400 fi
18467 done 12401 done
18468 rm -f conf$$subs.sh 12402 rm -f conf$$subs.sh
18480 t repl 12414 t repl
18481 s/'"$ac_delim"'$// 12415 s/'"$ac_delim"'$//
18482 t delim 12416 t delim
18483 :nl 12417 :nl
18484 h 12418 h
18485 s/\(.\{148\}\).*/\1/ 12419 s/\(.\{148\}\)..*/\1/
18486 t more1 12420 t more1
18487 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12421 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18488 p 12422 p
18489 n 12423 n
18490 b repl 12424 b repl
18494 g 12428 g
18495 s/.\{148\}// 12429 s/.\{148\}//
18496 t nl 12430 t nl
18497 :delim 12431 :delim
18498 h 12432 h
18499 s/\(.\{148\}\).*/\1/ 12433 s/\(.\{148\}\)..*/\1/
18500 t more2 12434 t more2
18501 s/["\\]/\\&/g; s/^/"/; s/$/"/ 12435 s/["\\]/\\&/g; s/^/"/; s/$/"/
18502 p 12436 p
18503 b 12437 b
18504 :more2 12438 :more2
18547 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12481 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18548 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12482 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18549 else 12483 else
18550 cat 12484 cat
18551 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 12485 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18552 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 12486 || as_fn_error "could not setup config files machinery" "$LINENO" 5
18553 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
18554 { (exit 1); exit 1; }; }
18555 _ACEOF 12487 _ACEOF
18556 12488
18557 # VPATH may cause trouble with some makes, so we remove $(srcdir), 12489 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18558 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 12490 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18559 # trailing colons and then remove the whole line if VPATH becomes empty 12491 # trailing colons and then remove the whole line if VPATH becomes empty
18590 for ac_last_try in false false :; do 12522 for ac_last_try in false false :; do
18591 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 12523 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18592 if test -z "$ac_t"; then 12524 if test -z "$ac_t"; then
18593 break 12525 break
18594 elif $ac_last_try; then 12526 elif $ac_last_try; then
18595 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 12527 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
18596 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
18597 { (exit 1); exit 1; }; }
18598 else 12528 else
18599 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12529 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18600 fi 12530 fi
18601 done 12531 done
18602 12532
18677 } 12607 }
18678 { print } 12608 { print }
18679 _ACAWK 12609 _ACAWK
18680 _ACEOF 12610 _ACEOF
18681 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12611 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18682 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 12612 as_fn_error "could not setup config headers machinery" "$LINENO" 5
18683 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
18684 { (exit 1); exit 1; }; }
18685 fi # test -n "$CONFIG_HEADERS" 12613 fi # test -n "$CONFIG_HEADERS"
18686 12614
18687 12615
18688 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 12616 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
18689 shift 12617 shift
18692 case $ac_tag in 12620 case $ac_tag in
18693 :[FHLC]) ac_mode=$ac_tag; continue;; 12621 :[FHLC]) ac_mode=$ac_tag; continue;;
18694 esac 12622 esac
18695 case $ac_mode$ac_tag in 12623 case $ac_mode$ac_tag in
18696 :[FHL]*:*);; 12624 :[FHL]*:*);;
18697 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 12625 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
18698 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
18699 { (exit 1); exit 1; }; };;
18700 :[FH]-) ac_tag=-:-;; 12626 :[FH]-) ac_tag=-:-;;
18701 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12627 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18702 esac 12628 esac
18703 ac_save_IFS=$IFS 12629 ac_save_IFS=$IFS
18704 IFS=: 12630 IFS=:
18722 test -f "$ac_f" || 12648 test -f "$ac_f" ||
18723 case $ac_f in 12649 case $ac_f in
18724 [\\/$]*) false;; 12650 [\\/$]*) false;;
18725 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12651 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18726 esac || 12652 esac ||
18727 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 12653 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18728 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
18729 { (exit 1); exit 1; }; };;
18730 esac 12654 esac
18731 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12655 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18732 ac_file_inputs="$ac_file_inputs '$ac_f'" 12656 as_fn_append ac_file_inputs " '$ac_f'"
18733 done 12657 done
18734 12658
18735 # Let's still pretend it is `configure' which instantiates (i.e., don't 12659 # Let's still pretend it is `configure' which instantiates (i.e., don't
18736 # use $as_me), people would be surprised to read: 12660 # use $as_me), people would be surprised to read:
18737 # /* config.h. Generated by config.status. */ 12661 # /* config.h. Generated by config.status. */
18738 configure_input='Generated from '` 12662 configure_input='Generated from '`
18739 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12663 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18740 `' by configure.' 12664 `' by configure.'
18741 if test x"$ac_file" != x-; then 12665 if test x"$ac_file" != x-; then
18742 configure_input="$ac_file. $configure_input" 12666 configure_input="$ac_file. $configure_input"
18743 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 12667 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18744 $as_echo "$as_me: creating $ac_file" >&6;} 12668 $as_echo "$as_me: creating $ac_file" >&6;}
18745 fi 12669 fi
18746 # Neutralize special characters interpreted by sed in replacement strings. 12670 # Neutralize special characters interpreted by sed in replacement strings.
18747 case $configure_input in #( 12671 case $configure_input in #(
18748 *\&* | *\|* | *\\* ) 12672 *\&* | *\|* | *\\* )
18751 *) ac_sed_conf_input=$configure_input;; 12675 *) ac_sed_conf_input=$configure_input;;
18752 esac 12676 esac
18753 12677
18754 case $ac_tag in 12678 case $ac_tag in
18755 *:-:* | *:-) cat >"$tmp/stdin" \ 12679 *:-:* | *:-) cat >"$tmp/stdin" \
18756 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 12680 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
18757 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18758 { (exit 1); exit 1; }; } ;;
18759 esac 12681 esac
18760 ;; 12682 ;;
18761 esac 12683 esac
18762 12684
18763 ac_dir=`$as_dirname -- "$ac_file" || 12685 ac_dir=`$as_dirname -- "$ac_file" ||
18781 /^X\(\/\).*/{ 12703 /^X\(\/\).*/{
18782 s//\1/ 12704 s//\1/
18783 q 12705 q
18784 } 12706 }
18785 s/.*/./; q'` 12707 s/.*/./; q'`
18786 { as_dir="$ac_dir" 12708 as_dir="$ac_dir"; as_fn_mkdir_p
18787 case $as_dir in #(
18788 -*) as_dir=./$as_dir;;
18789 esac
18790 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
18791 as_dirs=
18792 while :; do
18793 case $as_dir in #(
18794 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18795 *) as_qdir=$as_dir;;
18796 esac
18797 as_dirs="'$as_qdir' $as_dirs"
18798 as_dir=`$as_dirname -- "$as_dir" ||
18799 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18800 X"$as_dir" : 'X\(//\)[^/]' \| \
18801 X"$as_dir" : 'X\(//\)$' \| \
18802 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18803 $as_echo X"$as_dir" |
18804 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18805 s//\1/
18806 q
18807 }
18808 /^X\(\/\/\)[^/].*/{
18809 s//\1/
18810 q
18811 }
18812 /^X\(\/\/\)$/{
18813 s//\1/
18814 q
18815 }
18816 /^X\(\/\).*/{
18817 s//\1/
18818 q
18819 }
18820 s/.*/./; q'`
18821 test -d "$as_dir" && break
18822 done
18823 test -z "$as_dirs" || eval "mkdir $as_dirs"
18824 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18825 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
18826 { (exit 1); exit 1; }; }; }
18827 ac_builddir=. 12709 ac_builddir=.
18828 12710
18829 case "$ac_dir" in 12711 case "$ac_dir" in
18830 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12712 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18831 *) 12713 *)
18869 12751
18870 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12752 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18871 # If the template does not know about datarootdir, expand it. 12753 # If the template does not know about datarootdir, expand it.
18872 # FIXME: This hack should be removed a few years after 2.60. 12754 # FIXME: This hack should be removed a few years after 2.60.
18873 ac_datarootdir_hack=; ac_datarootdir_seen= 12755 ac_datarootdir_hack=; ac_datarootdir_seen=
18874
18875 ac_sed_dataroot=' 12756 ac_sed_dataroot='
18876 /datarootdir/ { 12757 /datarootdir/ {
18877 p 12758 p
18878 q 12759 q
18879 } 12760 }
18880 /@datadir@/p 12761 /@datadir@/p
18881 /@docdir@/p 12762 /@docdir@/p
18882 /@infodir@/p 12763 /@infodir@/p
18883 /@localedir@/p 12764 /@localedir@/p
18884 /@mandir@/p 12765 /@mandir@/p'
18885 '
18886 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12766 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18887 *datarootdir*) ac_datarootdir_seen=yes;; 12767 *datarootdir*) ac_datarootdir_seen=yes;;
18888 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12768 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18889 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18890 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12770 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18891 _ACEOF 12771 _ACEOF
18892 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12772 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18893 ac_datarootdir_hack=' 12773 ac_datarootdir_hack='
18894 s&@datadir@&$datadir&g 12774 s&@datadir@&$datadir&g
18895 s&@docdir@&$docdir&g 12775 s&@docdir@&$docdir&g
18896 s&@infodir@&$infodir&g 12776 s&@infodir@&$infodir&g
18897 s&@localedir@&$localedir&g 12777 s&@localedir@&$localedir&g
18898 s&@mandir@&$mandir&g 12778 s&@mandir@&$mandir&g
18899 s&\\\${datarootdir}&$datarootdir&g' ;; 12779 s&\\\${datarootdir}&$datarootdir&g' ;;
18900 esac 12780 esac
18901 _ACEOF 12781 _ACEOF
18902 12782
18903 # Neutralize VPATH when `$srcdir' = `.'. 12783 # Neutralize VPATH when `$srcdir' = `.'.
18904 # Shell code in configure.ac might set extrasub. 12784 # Shell code in configure.ac might set extrasub.
18921 s&@abs_builddir@&$ac_abs_builddir&;t t 12801 s&@abs_builddir@&$ac_abs_builddir&;t t
18922 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12802 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18923 $ac_datarootdir_hack 12803 $ac_datarootdir_hack
18924 " 12804 "
18925 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 12805 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18926 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 12806 || as_fn_error "could not create $ac_file" "$LINENO" 5
18927 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18928 { (exit 1); exit 1; }; }
18929 12807
18930 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12808 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18931 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 12809 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18932 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 12810 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18933 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18934 which seems to be undefined. Please make sure it is defined." >&5 12812 which seems to be undefined. Please make sure it is defined." >&5
18935 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12813 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18936 which seems to be undefined. Please make sure it is defined." >&2;} 12814 which seems to be undefined. Please make sure it is defined." >&2;}
18937 12815
18938 rm -f "$tmp/stdin" 12816 rm -f "$tmp/stdin"
18939 case $ac_file in 12817 case $ac_file in
18940 -) cat "$tmp/out" && rm -f "$tmp/out";; 12818 -) cat "$tmp/out" && rm -f "$tmp/out";;
18941 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 12819 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18942 esac \ 12820 esac \
18943 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 12821 || as_fn_error "could not create $ac_file" "$LINENO" 5
18944 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18945 { (exit 1); exit 1; }; }
18946 ;; 12822 ;;
18947 :H) 12823 :H)
18948 # 12824 #
18949 # CONFIG_HEADER 12825 # CONFIG_HEADER
18950 # 12826 #
18951 if test x"$ac_file" != x-; then 12827 if test x"$ac_file" != x-; then
18952 { 12828 {
18953 $as_echo "/* $configure_input */" \ 12829 $as_echo "/* $configure_input */" \
18954 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 12830 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18955 } >"$tmp/config.h" \ 12831 } >"$tmp/config.h" \
18956 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 12832 || as_fn_error "could not create $ac_file" "$LINENO" 5
18957 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18958 { (exit 1); exit 1; }; }
18959 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 12833 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18960 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 12834 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18961 $as_echo "$as_me: $ac_file is unchanged" >&6;} 12835 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18962 else 12836 else
18963 rm -f "$ac_file" 12837 rm -f "$ac_file"
18964 mv "$tmp/config.h" "$ac_file" \ 12838 mv "$tmp/config.h" "$ac_file" \
18965 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 12839 || as_fn_error "could not create $ac_file" "$LINENO" 5
18966 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18967 { (exit 1); exit 1; }; }
18968 fi 12840 fi
18969 else 12841 else
18970 $as_echo "/* $configure_input */" \ 12842 $as_echo "/* $configure_input */" \
18971 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 12843 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18972 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 12844 || as_fn_error "could not create -" "$LINENO" 5
18973 $as_echo "$as_me: error: could not create -" >&2;}
18974 { (exit 1); exit 1; }; }
18975 fi 12845 fi
18976 ;; 12846 ;;
18977 12847
18978 12848
18979 esac 12849 esac
18980 12850
18981 done # for ac_tag 12851 done # for ac_tag
18982 12852
18983 12853
18984 { (exit 0); exit 0; } 12854 as_fn_exit 0
18985 _ACEOF 12855 _ACEOF
18986 chmod +x $CONFIG_STATUS
18987 ac_clean_files=$ac_clean_files_save 12856 ac_clean_files=$ac_clean_files_save
18988 12857
18989 test $ac_write_fail = 0 || 12858 test $ac_write_fail = 0 ||
18990 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 12859 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18991 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
18992 { (exit 1); exit 1; }; }
18993 12860
18994 12861
18995 # configure is writing to config.log, and then calls config.status. 12862 # configure is writing to config.log, and then calls config.status.
18996 # config.status does its own redirection, appending to config.log. 12863 # config.status does its own redirection, appending to config.log.
18997 # Unfortunately, on DOS this fails, as config.log is still kept open 12864 # Unfortunately, on DOS this fails, as config.log is still kept open
19008 exec 5>/dev/null 12875 exec 5>/dev/null
19009 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12876 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19010 exec 5>>auto/config.log 12877 exec 5>>auto/config.log
19011 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12878 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19012 # would make configure fail if this is the last instruction. 12879 # would make configure fail if this is the last instruction.
19013 $ac_cs_success || { (exit 1); exit 1; } 12880 $ac_cs_success || as_fn_exit $?
19014 fi 12881 fi
19015 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12882 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19016 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19017 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12884 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19018 fi 12885 fi
19019 12886
19020 12887