1 | #! /bin/sh
|
---|
2 | # Guess values for system-dependent variables and create Makefiles.
|
---|
3 | # Generated by GNU Autoconf 2.67.
|
---|
4 | #
|
---|
5 | #
|
---|
6 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
|
---|
7 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
|
---|
8 | # Foundation, Inc.
|
---|
9 | #
|
---|
10 | #
|
---|
11 | # This configure script is free software; the Free Software Foundation
|
---|
12 | # gives unlimited permission to copy, distribute and modify it.
|
---|
13 | ## -------------------- ##
|
---|
14 | ## M4sh Initialization. ##
|
---|
15 | ## -------------------- ##
|
---|
16 |
|
---|
17 | # Be more Bourne compatible
|
---|
18 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
|
---|
20 | emulate sh
|
---|
21 | NULLCMD=:
|
---|
22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
|
---|
23 | # is contrary to our usage. Disable this feature.
|
---|
24 | alias -g '${1+"$@"}'='"$@"'
|
---|
25 | setopt NO_GLOB_SUBST
|
---|
26 | else
|
---|
27 | case `(set -o) 2>/dev/null` in #(
|
---|
28 | *posix*) :
|
---|
29 | set -o posix ;; #(
|
---|
30 | *) :
|
---|
31 | ;;
|
---|
32 | esac
|
---|
33 | fi
|
---|
34 |
|
---|
35 |
|
---|
36 | as_nl='
|
---|
37 | '
|
---|
38 | export as_nl
|
---|
39 | # Printing a long string crashes Solaris 7 /usr/bin/printf.
|
---|
40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
---|
41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
43 | # Prefer a ksh shell builtin over an external printf program on Solaris,
|
---|
44 | # but without wasting forks for bash or zsh.
|
---|
45 | if test -z "$BASH_VERSION$ZSH_VERSION" \
|
---|
46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
47 | as_echo='print -r --'
|
---|
48 | as_echo_n='print -rn --'
|
---|
49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
50 | as_echo='printf %s\n'
|
---|
51 | as_echo_n='printf %s'
|
---|
52 | else
|
---|
53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
|
---|
54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
|
---|
55 | as_echo_n='/usr/ucb/echo -n'
|
---|
56 | else
|
---|
57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
|
---|
58 | as_echo_n_body='eval
|
---|
59 | arg=$1;
|
---|
60 | case $arg in #(
|
---|
61 | *"$as_nl"*)
|
---|
62 | expr "X$arg" : "X\\(.*\\)$as_nl";
|
---|
63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
|
---|
64 | esac;
|
---|
65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
|
---|
66 | '
|
---|
67 | export as_echo_n_body
|
---|
68 | as_echo_n='sh -c $as_echo_n_body as_echo'
|
---|
69 | fi
|
---|
70 | export as_echo_body
|
---|
71 | as_echo='sh -c $as_echo_body as_echo'
|
---|
72 | fi
|
---|
73 |
|
---|
74 | # The user is always right.
|
---|
75 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
76 | PATH_SEPARATOR=:
|
---|
77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
|
---|
78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
|
---|
79 | PATH_SEPARATOR=';'
|
---|
80 | }
|
---|
81 | fi
|
---|
82 |
|
---|
83 |
|
---|
84 | # IFS
|
---|
85 | # We need space, tab and new line, in precisely that order. Quoting is
|
---|
86 | # there to prevent editors from complaining about space-tab.
|
---|
87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
---|
88 | # splitting by setting IFS to empty value.)
|
---|
89 | IFS=" "" $as_nl"
|
---|
90 |
|
---|
91 | # Find who we are. Look in the path if we contain no directory separator.
|
---|
92 | case $0 in #((
|
---|
93 | *[\\/]* ) as_myself=$0 ;;
|
---|
94 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
95 | for as_dir in $PATH
|
---|
96 | do
|
---|
97 | IFS=$as_save_IFS
|
---|
98 | test -z "$as_dir" && as_dir=.
|
---|
99 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
100 | done
|
---|
101 | IFS=$as_save_IFS
|
---|
102 |
|
---|
103 | ;;
|
---|
104 | esac
|
---|
105 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
106 | # in which case we are not to be found in the path.
|
---|
107 | if test "x$as_myself" = x; then
|
---|
108 | as_myself=$0
|
---|
109 | fi
|
---|
110 | if test ! -f "$as_myself"; then
|
---|
111 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
---|
112 | exit 1
|
---|
113 | fi
|
---|
114 |
|
---|
115 | # Unset variables that we do not need and which cause bugs (e.g. in
|
---|
116 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
|
---|
117 | # suppresses any "Segmentation fault" message there. '((' could
|
---|
118 | # trigger a bug in pdksh 5.2.14.
|
---|
119 | for as_var in BASH_ENV ENV MAIL MAILPATH
|
---|
120 | do eval test x\${$as_var+set} = xset \
|
---|
121 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
|
---|
122 | done
|
---|
123 | PS1='$ '
|
---|
124 | PS2='> '
|
---|
125 | PS4='+ '
|
---|
126 |
|
---|
127 | # NLS nuisances.
|
---|
128 | LC_ALL=C
|
---|
129 | export LC_ALL
|
---|
130 | LANGUAGE=C
|
---|
131 | export LANGUAGE
|
---|
132 |
|
---|
133 | # CDPATH.
|
---|
134 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
---|
135 |
|
---|
136 | if test "x$CONFIG_SHELL" = x; then
|
---|
137 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
|
---|
138 | emulate sh
|
---|
139 | NULLCMD=:
|
---|
140 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
|
---|
141 | # is contrary to our usage. Disable this feature.
|
---|
142 | alias -g '\${1+\"\$@\"}'='\"\$@\"'
|
---|
143 | setopt NO_GLOB_SUBST
|
---|
144 | else
|
---|
145 | case \`(set -o) 2>/dev/null\` in #(
|
---|
146 | *posix*) :
|
---|
147 | set -o posix ;; #(
|
---|
148 | *) :
|
---|
149 | ;;
|
---|
150 | esac
|
---|
151 | fi
|
---|
152 | "
|
---|
153 | as_required="as_fn_return () { (exit \$1); }
|
---|
154 | as_fn_success () { as_fn_return 0; }
|
---|
155 | as_fn_failure () { as_fn_return 1; }
|
---|
156 | as_fn_ret_success () { return 0; }
|
---|
157 | as_fn_ret_failure () { return 1; }
|
---|
158 |
|
---|
159 | exitcode=0
|
---|
160 | as_fn_success || { exitcode=1; echo as_fn_success failed.; }
|
---|
161 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
|
---|
162 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
|
---|
163 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
|
---|
164 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
|
---|
165 |
|
---|
166 | else
|
---|
167 | exitcode=1; echo positional parameters were not saved.
|
---|
168 | fi
|
---|
169 | test x\$exitcode = x0 || exit 1"
|
---|
170 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
|
---|
171 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
|
---|
172 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
|
---|
173 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
|
---|
174 | test \$(( 1 + 1 )) = 2 || exit 1"
|
---|
175 | if (eval "$as_required") 2>/dev/null; then :
|
---|
176 | as_have_required=yes
|
---|
177 | else
|
---|
178 | as_have_required=no
|
---|
179 | fi
|
---|
180 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
|
---|
181 |
|
---|
182 | else
|
---|
183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
184 | as_found=false
|
---|
185 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
186 | do
|
---|
187 | IFS=$as_save_IFS
|
---|
188 | test -z "$as_dir" && as_dir=.
|
---|
189 | as_found=:
|
---|
190 | case $as_dir in #(
|
---|
191 | /*)
|
---|
192 | for as_base in sh bash ksh sh5; do
|
---|
193 | # Try only shells that exist, to save several forks.
|
---|
194 | as_shell=$as_dir/$as_base
|
---|
195 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
|
---|
196 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
|
---|
197 | CONFIG_SHELL=$as_shell as_have_required=yes
|
---|
198 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
|
---|
199 | break 2
|
---|
200 | fi
|
---|
201 | fi
|
---|
202 | done;;
|
---|
203 | esac
|
---|
204 | as_found=false
|
---|
205 | done
|
---|
206 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
|
---|
207 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
|
---|
208 | CONFIG_SHELL=$SHELL as_have_required=yes
|
---|
209 | fi; }
|
---|
210 | IFS=$as_save_IFS
|
---|
211 |
|
---|
212 |
|
---|
213 | if test "x$CONFIG_SHELL" != x; then :
|
---|
214 | # We cannot yet assume a decent shell, so we have to provide a
|
---|
215 | # neutralization value for shells without unset; and this also
|
---|
216 | # works around shells that cannot unset nonexistent variables.
|
---|
217 | BASH_ENV=/dev/null
|
---|
218 | ENV=/dev/null
|
---|
219 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
|
---|
220 | export CONFIG_SHELL
|
---|
221 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
|
---|
222 | fi
|
---|
223 |
|
---|
224 | if test x$as_have_required = xno; then :
|
---|
225 | $as_echo "$0: This script requires a shell more modern than all"
|
---|
226 | $as_echo "$0: the shells that I found on your system."
|
---|
227 | if test x${ZSH_VERSION+set} = xset ; then
|
---|
228 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
|
---|
229 | $as_echo "$0: be upgraded to zsh 4.3.4 or later."
|
---|
230 | else
|
---|
231 | $as_echo "$0: Please tell [email protected] 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 STATUS 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=$1; test $as_status -eq 0 && as_status=1
|
---|
367 | if test "$4"; then
|
---|
368 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
369 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
|
---|
370 | fi
|
---|
371 | $as_echo "$as_me: error: $2" >&2
|
---|
372 | as_fn_exit $as_status
|
---|
373 | } # as_fn_error
|
---|
374 |
|
---|
375 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
376 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
377 | as_expr=expr
|
---|
378 | else
|
---|
379 | as_expr=false
|
---|
380 | fi
|
---|
381 |
|
---|
382 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
---|
383 | as_basename=basename
|
---|
384 | else
|
---|
385 | as_basename=false
|
---|
386 | fi
|
---|
387 |
|
---|
388 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
---|
389 | as_dirname=dirname
|
---|
390 | else
|
---|
391 | as_dirname=false
|
---|
392 | fi
|
---|
393 |
|
---|
394 | as_me=`$as_basename -- "$0" ||
|
---|
395 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
396 | X"$0" : 'X\(//\)$' \| \
|
---|
397 | X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
398 | $as_echo X/"$0" |
|
---|
399 | sed '/^.*\/\([^/][^/]*\)\/*$/{
|
---|
400 | s//\1/
|
---|
401 | q
|
---|
402 | }
|
---|
403 | /^X\/\(\/\/\)$/{
|
---|
404 | s//\1/
|
---|
405 | q
|
---|
406 | }
|
---|
407 | /^X\/\(\/\).*/{
|
---|
408 | s//\1/
|
---|
409 | q
|
---|
410 | }
|
---|
411 | s/.*/./; q'`
|
---|
412 |
|
---|
413 | # Avoid depending upon Character Ranges.
|
---|
414 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
415 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
416 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
417 | as_cr_digits='0123456789'
|
---|
418 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
419 |
|
---|
420 |
|
---|
421 | as_lineno_1=$LINENO as_lineno_1a=$LINENO
|
---|
422 | as_lineno_2=$LINENO as_lineno_2a=$LINENO
|
---|
423 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
|
---|
424 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
|
---|
425 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
|
---|
426 | sed -n '
|
---|
427 | p
|
---|
428 | /[$]LINENO/=
|
---|
429 | ' <$as_myself |
|
---|
430 | sed '
|
---|
431 | s/[$]LINENO.*/&-/
|
---|
432 | t lineno
|
---|
433 | b
|
---|
434 | :lineno
|
---|
435 | N
|
---|
436 | :loop
|
---|
437 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
|
---|
438 | t loop
|
---|
439 | s/-\n.*//
|
---|
440 | ' >$as_me.lineno &&
|
---|
441 | chmod +x "$as_me.lineno" ||
|
---|
442 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
|
---|
443 |
|
---|
444 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
445 | # (the dirname of $[0] is not the place where we might find the
|
---|
446 | # original and so on. Autoconf is especially sensitive to this).
|
---|
447 | . "./$as_me.lineno"
|
---|
448 | # Exit status is that of the last command.
|
---|
449 | exit
|
---|
450 | }
|
---|
451 |
|
---|
452 | ECHO_C= ECHO_N= ECHO_T=
|
---|
453 | case `echo -n x` in #(((((
|
---|
454 | -n*)
|
---|
455 | case `echo 'xy\c'` in
|
---|
456 | *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
---|
457 | xy) ECHO_C='\c';;
|
---|
458 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
|
---|
459 | ECHO_T=' ';;
|
---|
460 | esac;;
|
---|
461 | *)
|
---|
462 | ECHO_N='-n';;
|
---|
463 | esac
|
---|
464 |
|
---|
465 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
466 | if test -d conf$$.dir; then
|
---|
467 | rm -f conf$$.dir/conf$$.file
|
---|
468 | else
|
---|
469 | rm -f conf$$.dir
|
---|
470 | mkdir conf$$.dir 2>/dev/null
|
---|
471 | fi
|
---|
472 | if (echo >conf$$.file) 2>/dev/null; then
|
---|
473 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
474 | as_ln_s='ln -s'
|
---|
475 | # ... but there are two gotchas:
|
---|
476 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
---|
477 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
---|
478 | # In both cases, we have to default to `cp -p'.
|
---|
479 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
---|
480 | as_ln_s='cp -p'
|
---|
481 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
482 | as_ln_s=ln
|
---|
483 | else
|
---|
484 | as_ln_s='cp -p'
|
---|
485 | fi
|
---|
486 | else
|
---|
487 | as_ln_s='cp -p'
|
---|
488 | fi
|
---|
489 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
---|
490 | rmdir conf$$.dir 2>/dev/null
|
---|
491 |
|
---|
492 | if mkdir -p . 2>/dev/null; then
|
---|
493 | as_mkdir_p='mkdir -p "$as_dir"'
|
---|
494 | else
|
---|
495 | test -d ./-p && rmdir ./-p
|
---|
496 | as_mkdir_p=false
|
---|
497 | fi
|
---|
498 |
|
---|
499 | if test -x / >/dev/null 2>&1; then
|
---|
500 | as_test_x='test -x'
|
---|
501 | else
|
---|
502 | if ls -dL / >/dev/null 2>&1; then
|
---|
503 | as_ls_L_option=L
|
---|
504 | else
|
---|
505 | as_ls_L_option=
|
---|
506 | fi
|
---|
507 | as_test_x='
|
---|
508 | eval sh -c '\''
|
---|
509 | if test -d "$1"; then
|
---|
510 | test -d "$1/.";
|
---|
511 | else
|
---|
512 | case $1 in #(
|
---|
513 | -*)set "./$1";;
|
---|
514 | esac;
|
---|
515 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
|
---|
516 | ???[sx]*):;;*)false;;esac;fi
|
---|
517 | '\'' sh
|
---|
518 | '
|
---|
519 | fi
|
---|
520 | as_executable_p=$as_test_x
|
---|
521 |
|
---|
522 | # Sed expression to map a string onto a valid CPP name.
|
---|
523 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
524 |
|
---|
525 | # Sed expression to map a string onto a valid variable name.
|
---|
526 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
527 |
|
---|
528 |
|
---|
529 | test -n "$DJDIR" || exec 7<&0 </dev/null
|
---|
530 | exec 6>&1
|
---|
531 |
|
---|
532 | # Name of the host.
|
---|
533 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
|
---|
534 | # so uname gets run too.
|
---|
535 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
536 |
|
---|
537 | #
|
---|
538 | # Initializations.
|
---|
539 | #
|
---|
540 | ac_default_prefix=/usr/local
|
---|
541 | ac_clean_files=
|
---|
542 | ac_config_libobj_dir=.
|
---|
543 | LIBOBJS=
|
---|
544 | cross_compiling=no
|
---|
545 | subdirs=
|
---|
546 | MFLAGS=
|
---|
547 | MAKEFLAGS=
|
---|
548 |
|
---|
549 | # Identity of this package.
|
---|
550 | PACKAGE_NAME=
|
---|
551 | PACKAGE_TARNAME=
|
---|
552 | PACKAGE_VERSION=
|
---|
553 | PACKAGE_STRING=
|
---|
554 | PACKAGE_BUGREPORT=
|
---|
555 | PACKAGE_URL=
|
---|
556 |
|
---|
557 | # Factoring default headers for most tests.
|
---|
558 | ac_includes_default="\
|
---|
559 | #include <stdio.h>
|
---|
560 | #ifdef HAVE_SYS_TYPES_H
|
---|
561 | # include <sys/types.h>
|
---|
562 | #endif
|
---|
563 | #ifdef HAVE_SYS_STAT_H
|
---|
564 | # include <sys/stat.h>
|
---|
565 | #endif
|
---|
566 | #ifdef STDC_HEADERS
|
---|
567 | # include <stdlib.h>
|
---|
568 | # include <stddef.h>
|
---|
569 | #else
|
---|
570 | # ifdef HAVE_STDLIB_H
|
---|
571 | # include <stdlib.h>
|
---|
572 | # endif
|
---|
573 | #endif
|
---|
574 | #ifdef HAVE_STRING_H
|
---|
575 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
|
---|
576 | # include <memory.h>
|
---|
577 | # endif
|
---|
578 | # include <string.h>
|
---|
579 | #endif
|
---|
580 | #ifdef HAVE_STRINGS_H
|
---|
581 | # include <strings.h>
|
---|
582 | #endif
|
---|
583 | #ifdef HAVE_INTTYPES_H
|
---|
584 | # include <inttypes.h>
|
---|
585 | #endif
|
---|
586 | #ifdef HAVE_STDINT_H
|
---|
587 | # include <stdint.h>
|
---|
588 | #endif
|
---|
589 | #ifdef HAVE_UNISTD_H
|
---|
590 | # include <unistd.h>
|
---|
591 | #endif"
|
---|
592 |
|
---|
593 | enable_option_checking=no
|
---|
594 | ac_subst_vars='LTLIBOBJS
|
---|
595 | subdirs
|
---|
596 | MODULEDIRS
|
---|
597 | gsdlos
|
---|
598 | STATIC
|
---|
599 | LIBOBJS
|
---|
600 | ALLOCA
|
---|
601 | ANSI2KNR
|
---|
602 | U
|
---|
603 | EGREP
|
---|
604 | GREP
|
---|
605 | CPP
|
---|
606 | MICO_VER
|
---|
607 | COMPAT32BITFLAGS
|
---|
608 | RANLIB
|
---|
609 | SET_MAKE
|
---|
610 | LN_S
|
---|
611 | INSTALL_DATA
|
---|
612 | INSTALL_SCRIPT
|
---|
613 | INSTALL_PROGRAM
|
---|
614 | target_os
|
---|
615 | target_vendor
|
---|
616 | target_cpu
|
---|
617 | target
|
---|
618 | host_os
|
---|
619 | host_vendor
|
---|
620 | host_cpu
|
---|
621 | host
|
---|
622 | build_os
|
---|
623 | build_vendor
|
---|
624 | build_cpu
|
---|
625 | build
|
---|
626 | YFLAGS
|
---|
627 | YACC
|
---|
628 | AWK
|
---|
629 | uudecode
|
---|
630 | JAVA
|
---|
631 | JAVACFLAGS
|
---|
632 | JAVAC
|
---|
633 | ac_ct_CXX
|
---|
634 | CXXFLAGS
|
---|
635 | CXX
|
---|
636 | OBJEXT
|
---|
637 | EXEEXT
|
---|
638 | ac_ct_CC
|
---|
639 | CPPFLAGS
|
---|
640 | CC
|
---|
641 | CFLAGS
|
---|
642 | LDFLAGS
|
---|
643 | USE_SQLITE
|
---|
644 | ENABLE_ACCENTFOLD
|
---|
645 | USE_GDBM
|
---|
646 | USE_JDBM
|
---|
647 | ENABLE_JAVA
|
---|
648 | USE_YAZ
|
---|
649 | USE_Z3950
|
---|
650 | MICO_DIR
|
---|
651 | USE_CORBA
|
---|
652 | USE_LANGACTION
|
---|
653 | USE_FASTCGI
|
---|
654 | VERSION
|
---|
655 | PACKAGE
|
---|
656 | target_alias
|
---|
657 | host_alias
|
---|
658 | build_alias
|
---|
659 | LIBS
|
---|
660 | ECHO_T
|
---|
661 | ECHO_N
|
---|
662 | ECHO_C
|
---|
663 | DEFS
|
---|
664 | mandir
|
---|
665 | localedir
|
---|
666 | libdir
|
---|
667 | psdir
|
---|
668 | pdfdir
|
---|
669 | dvidir
|
---|
670 | htmldir
|
---|
671 | infodir
|
---|
672 | docdir
|
---|
673 | oldincludedir
|
---|
674 | includedir
|
---|
675 | localstatedir
|
---|
676 | sharedstatedir
|
---|
677 | sysconfdir
|
---|
678 | datadir
|
---|
679 | datarootdir
|
---|
680 | libexecdir
|
---|
681 | sbindir
|
---|
682 | bindir
|
---|
683 | program_transform_name
|
---|
684 | prefix
|
---|
685 | exec_prefix
|
---|
686 | PACKAGE_URL
|
---|
687 | PACKAGE_BUGREPORT
|
---|
688 | PACKAGE_STRING
|
---|
689 | PACKAGE_VERSION
|
---|
690 | PACKAGE_TARNAME
|
---|
691 | PACKAGE_NAME
|
---|
692 | PATH_SEPARATOR
|
---|
693 | SHELL'
|
---|
694 | ac_subst_files=''
|
---|
695 | ac_user_opts='
|
---|
696 | enable_option_checking
|
---|
697 | enable_corba
|
---|
698 | with_micodir
|
---|
699 | enable_z3950
|
---|
700 | enable_yaz
|
---|
701 | enable_java
|
---|
702 | enable_jdbm
|
---|
703 | enable_gdbm
|
---|
704 | enable_accentfold
|
---|
705 | enable_sqlite
|
---|
706 | with_dmalloc
|
---|
707 | with_regex
|
---|
708 | '
|
---|
709 | ac_precious_vars='build_alias
|
---|
710 | host_alias
|
---|
711 | target_alias
|
---|
712 | CC
|
---|
713 | CFLAGS
|
---|
714 | LDFLAGS
|
---|
715 | LIBS
|
---|
716 | CPPFLAGS
|
---|
717 | CXX
|
---|
718 | CXXFLAGS
|
---|
719 | CCC
|
---|
720 | YACC
|
---|
721 | YFLAGS
|
---|
722 | CPP'
|
---|
723 | ac_subdirs_all='packages'
|
---|
724 |
|
---|
725 | # Initialize some variables set by options.
|
---|
726 | ac_init_help=
|
---|
727 | ac_init_version=false
|
---|
728 | ac_unrecognized_opts=
|
---|
729 | ac_unrecognized_sep=
|
---|
730 | # The variables have the same names as the options, with
|
---|
731 | # dashes changed to underlines.
|
---|
732 | cache_file=/dev/null
|
---|
733 | exec_prefix=NONE
|
---|
734 | no_create=
|
---|
735 | no_recursion=
|
---|
736 | prefix=NONE
|
---|
737 | program_prefix=NONE
|
---|
738 | program_suffix=NONE
|
---|
739 | program_transform_name=s,x,x,
|
---|
740 | silent=
|
---|
741 | site=
|
---|
742 | srcdir=
|
---|
743 | verbose=
|
---|
744 | x_includes=NONE
|
---|
745 | x_libraries=NONE
|
---|
746 |
|
---|
747 | # Installation directory options.
|
---|
748 | # These are left unexpanded so users can "make install exec_prefix=/foo"
|
---|
749 | # and all the variables that are supposed to be based on exec_prefix
|
---|
750 | # by default will actually change.
|
---|
751 | # Use braces instead of parens because sh, perl, etc. also accept them.
|
---|
752 | # (The list follows the same order as the GNU Coding Standards.)
|
---|
753 | bindir='${exec_prefix}/bin'
|
---|
754 | sbindir='${exec_prefix}/sbin'
|
---|
755 | libexecdir='${exec_prefix}/libexec'
|
---|
756 | datarootdir='${prefix}/share'
|
---|
757 | datadir='${datarootdir}'
|
---|
758 | sysconfdir='${prefix}/etc'
|
---|
759 | sharedstatedir='${prefix}/com'
|
---|
760 | localstatedir='${prefix}/var'
|
---|
761 | includedir='${prefix}/include'
|
---|
762 | oldincludedir='/usr/include'
|
---|
763 | docdir='${datarootdir}/doc/${PACKAGE}'
|
---|
764 | infodir='${datarootdir}/info'
|
---|
765 | htmldir='${docdir}'
|
---|
766 | dvidir='${docdir}'
|
---|
767 | pdfdir='${docdir}'
|
---|
768 | psdir='${docdir}'
|
---|
769 | libdir='${exec_prefix}/lib'
|
---|
770 | localedir='${datarootdir}/locale'
|
---|
771 | mandir='${datarootdir}/man'
|
---|
772 |
|
---|
773 | ac_prev=
|
---|
774 | ac_dashdash=
|
---|
775 | for ac_option
|
---|
776 | do
|
---|
777 | # If the previous option needs an argument, assign it.
|
---|
778 | if test -n "$ac_prev"; then
|
---|
779 | eval $ac_prev=\$ac_option
|
---|
780 | ac_prev=
|
---|
781 | continue
|
---|
782 | fi
|
---|
783 |
|
---|
784 | case $ac_option in
|
---|
785 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
|
---|
786 | *=) ac_optarg= ;;
|
---|
787 | *) ac_optarg=yes ;;
|
---|
788 | esac
|
---|
789 |
|
---|
790 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
791 |
|
---|
792 | case $ac_dashdash$ac_option in
|
---|
793 | --)
|
---|
794 | ac_dashdash=yes ;;
|
---|
795 |
|
---|
796 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
797 | ac_prev=bindir ;;
|
---|
798 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
799 | bindir=$ac_optarg ;;
|
---|
800 |
|
---|
801 | -build | --build | --buil | --bui | --bu)
|
---|
802 | ac_prev=build_alias ;;
|
---|
803 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
804 | build_alias=$ac_optarg ;;
|
---|
805 |
|
---|
806 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
807 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
808 | ac_prev=cache_file ;;
|
---|
809 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
810 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
811 | cache_file=$ac_optarg ;;
|
---|
812 |
|
---|
813 | --config-cache | -C)
|
---|
814 | cache_file=config.cache ;;
|
---|
815 |
|
---|
816 | -datadir | --datadir | --datadi | --datad)
|
---|
817 | ac_prev=datadir ;;
|
---|
818 | -datadir=* | --datadir=* | --datadi=* | --datad=*)
|
---|
819 | datadir=$ac_optarg ;;
|
---|
820 |
|
---|
821 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
|
---|
822 | | --dataroo | --dataro | --datar)
|
---|
823 | ac_prev=datarootdir ;;
|
---|
824 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
|
---|
825 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
|
---|
826 | datarootdir=$ac_optarg ;;
|
---|
827 |
|
---|
828 | -disable-* | --disable-*)
|
---|
829 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
---|
830 | # Reject names that are not valid shell variable names.
|
---|
831 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
832 | as_fn_error $? "invalid feature name: $ac_useropt"
|
---|
833 | ac_useropt_orig=$ac_useropt
|
---|
834 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
835 | case $ac_user_opts in
|
---|
836 | *"
|
---|
837 | "enable_$ac_useropt"
|
---|
838 | "*) ;;
|
---|
839 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
|
---|
840 | ac_unrecognized_sep=', ';;
|
---|
841 | esac
|
---|
842 | eval enable_$ac_useropt=no ;;
|
---|
843 |
|
---|
844 | -docdir | --docdir | --docdi | --doc | --do)
|
---|
845 | ac_prev=docdir ;;
|
---|
846 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
|
---|
847 | docdir=$ac_optarg ;;
|
---|
848 |
|
---|
849 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
|
---|
850 | ac_prev=dvidir ;;
|
---|
851 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
|
---|
852 | dvidir=$ac_optarg ;;
|
---|
853 |
|
---|
854 | -enable-* | --enable-*)
|
---|
855 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
---|
856 | # Reject names that are not valid shell variable names.
|
---|
857 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
858 | as_fn_error $? "invalid feature name: $ac_useropt"
|
---|
859 | ac_useropt_orig=$ac_useropt
|
---|
860 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
861 | case $ac_user_opts in
|
---|
862 | *"
|
---|
863 | "enable_$ac_useropt"
|
---|
864 | "*) ;;
|
---|
865 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
|
---|
866 | ac_unrecognized_sep=', ';;
|
---|
867 | esac
|
---|
868 | eval enable_$ac_useropt=\$ac_optarg ;;
|
---|
869 |
|
---|
870 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
871 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
872 | | --exec | --exe | --ex)
|
---|
873 | ac_prev=exec_prefix ;;
|
---|
874 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
875 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
876 | | --exec=* | --exe=* | --ex=*)
|
---|
877 | exec_prefix=$ac_optarg ;;
|
---|
878 |
|
---|
879 | -gas | --gas | --ga | --g)
|
---|
880 | # Obsolete; use --with-gas.
|
---|
881 | with_gas=yes ;;
|
---|
882 |
|
---|
883 | -help | --help | --hel | --he | -h)
|
---|
884 | ac_init_help=long ;;
|
---|
885 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
---|
886 | ac_init_help=recursive ;;
|
---|
887 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
---|
888 | ac_init_help=short ;;
|
---|
889 |
|
---|
890 | -host | --host | --hos | --ho)
|
---|
891 | ac_prev=host_alias ;;
|
---|
892 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
893 | host_alias=$ac_optarg ;;
|
---|
894 |
|
---|
895 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
|
---|
896 | ac_prev=htmldir ;;
|
---|
897 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
|
---|
898 | | --ht=*)
|
---|
899 | htmldir=$ac_optarg ;;
|
---|
900 |
|
---|
901 | -includedir | --includedir | --includedi | --included | --include \
|
---|
902 | | --includ | --inclu | --incl | --inc)
|
---|
903 | ac_prev=includedir ;;
|
---|
904 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
905 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
906 | includedir=$ac_optarg ;;
|
---|
907 |
|
---|
908 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
909 | ac_prev=infodir ;;
|
---|
910 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
911 | infodir=$ac_optarg ;;
|
---|
912 |
|
---|
913 | -libdir | --libdir | --libdi | --libd)
|
---|
914 | ac_prev=libdir ;;
|
---|
915 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
916 | libdir=$ac_optarg ;;
|
---|
917 |
|
---|
918 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
919 | | --libexe | --libex | --libe)
|
---|
920 | ac_prev=libexecdir ;;
|
---|
921 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
922 | | --libexe=* | --libex=* | --libe=*)
|
---|
923 | libexecdir=$ac_optarg ;;
|
---|
924 |
|
---|
925 | -localedir | --localedir | --localedi | --localed | --locale)
|
---|
926 | ac_prev=localedir ;;
|
---|
927 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
|
---|
928 | localedir=$ac_optarg ;;
|
---|
929 |
|
---|
930 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
931 | | --localstate | --localstat | --localsta | --localst | --locals)
|
---|
932 | ac_prev=localstatedir ;;
|
---|
933 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
934 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
|
---|
935 | localstatedir=$ac_optarg ;;
|
---|
936 |
|
---|
937 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
938 | ac_prev=mandir ;;
|
---|
939 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
940 | mandir=$ac_optarg ;;
|
---|
941 |
|
---|
942 | -nfp | --nfp | --nf)
|
---|
943 | # Obsolete; use --without-fp.
|
---|
944 | with_fp=no ;;
|
---|
945 |
|
---|
946 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
947 | | --no-cr | --no-c | -n)
|
---|
948 | no_create=yes ;;
|
---|
949 |
|
---|
950 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
951 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
952 | no_recursion=yes ;;
|
---|
953 |
|
---|
954 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
955 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
956 | | --oldin | --oldi | --old | --ol | --o)
|
---|
957 | ac_prev=oldincludedir ;;
|
---|
958 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
959 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
960 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
961 | oldincludedir=$ac_optarg ;;
|
---|
962 |
|
---|
963 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
964 | ac_prev=prefix ;;
|
---|
965 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
966 | prefix=$ac_optarg ;;
|
---|
967 |
|
---|
968 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
969 | | --program-pre | --program-pr | --program-p)
|
---|
970 | ac_prev=program_prefix ;;
|
---|
971 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
972 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
973 | program_prefix=$ac_optarg ;;
|
---|
974 |
|
---|
975 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
976 | | --program-suf | --program-su | --program-s)
|
---|
977 | ac_prev=program_suffix ;;
|
---|
978 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
979 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
980 | program_suffix=$ac_optarg ;;
|
---|
981 |
|
---|
982 | -program-transform-name | --program-transform-name \
|
---|
983 | | --program-transform-nam | --program-transform-na \
|
---|
984 | | --program-transform-n | --program-transform- \
|
---|
985 | | --program-transform | --program-transfor \
|
---|
986 | | --program-transfo | --program-transf \
|
---|
987 | | --program-trans | --program-tran \
|
---|
988 | | --progr-tra | --program-tr | --program-t)
|
---|
989 | ac_prev=program_transform_name ;;
|
---|
990 | -program-transform-name=* | --program-transform-name=* \
|
---|
991 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
992 | | --program-transform-n=* | --program-transform-=* \
|
---|
993 | | --program-transform=* | --program-transfor=* \
|
---|
994 | | --program-transfo=* | --program-transf=* \
|
---|
995 | | --program-trans=* | --program-tran=* \
|
---|
996 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
997 | program_transform_name=$ac_optarg ;;
|
---|
998 |
|
---|
999 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
|
---|
1000 | ac_prev=pdfdir ;;
|
---|
1001 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
|
---|
1002 | pdfdir=$ac_optarg ;;
|
---|
1003 |
|
---|
1004 | -psdir | --psdir | --psdi | --psd | --ps)
|
---|
1005 | ac_prev=psdir ;;
|
---|
1006 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
|
---|
1007 | psdir=$ac_optarg ;;
|
---|
1008 |
|
---|
1009 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
1010 | | -silent | --silent | --silen | --sile | --sil)
|
---|
1011 | silent=yes ;;
|
---|
1012 |
|
---|
1013 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
1014 | ac_prev=sbindir ;;
|
---|
1015 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
1016 | | --sbi=* | --sb=*)
|
---|
1017 | sbindir=$ac_optarg ;;
|
---|
1018 |
|
---|
1019 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
1020 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
1021 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
1022 | | --sha | --sh)
|
---|
1023 | ac_prev=sharedstatedir ;;
|
---|
1024 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
1025 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
1026 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
1027 | | --sha=* | --sh=*)
|
---|
1028 | sharedstatedir=$ac_optarg ;;
|
---|
1029 |
|
---|
1030 | -site | --site | --sit)
|
---|
1031 | ac_prev=site ;;
|
---|
1032 | -site=* | --site=* | --sit=*)
|
---|
1033 | site=$ac_optarg ;;
|
---|
1034 |
|
---|
1035 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
1036 | ac_prev=srcdir ;;
|
---|
1037 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
1038 | srcdir=$ac_optarg ;;
|
---|
1039 |
|
---|
1040 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
1041 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
1042 | ac_prev=sysconfdir ;;
|
---|
1043 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
1044 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
1045 | sysconfdir=$ac_optarg ;;
|
---|
1046 |
|
---|
1047 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
1048 | ac_prev=target_alias ;;
|
---|
1049 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
1050 | target_alias=$ac_optarg ;;
|
---|
1051 |
|
---|
1052 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
1053 | verbose=yes ;;
|
---|
1054 |
|
---|
1055 | -version | --version | --versio | --versi | --vers | -V)
|
---|
1056 | ac_init_version=: ;;
|
---|
1057 |
|
---|
1058 | -with-* | --with-*)
|
---|
1059 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
---|
1060 | # Reject names that are not valid shell variable names.
|
---|
1061 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
1062 | as_fn_error $? "invalid package name: $ac_useropt"
|
---|
1063 | ac_useropt_orig=$ac_useropt
|
---|
1064 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
1065 | case $ac_user_opts in
|
---|
1066 | *"
|
---|
1067 | "with_$ac_useropt"
|
---|
1068 | "*) ;;
|
---|
1069 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
|
---|
1070 | ac_unrecognized_sep=', ';;
|
---|
1071 | esac
|
---|
1072 | eval with_$ac_useropt=\$ac_optarg ;;
|
---|
1073 |
|
---|
1074 | -without-* | --without-*)
|
---|
1075 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
---|
1076 | # Reject names that are not valid shell variable names.
|
---|
1077 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
1078 | as_fn_error $? "invalid package name: $ac_useropt"
|
---|
1079 | ac_useropt_orig=$ac_useropt
|
---|
1080 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
1081 | case $ac_user_opts in
|
---|
1082 | *"
|
---|
1083 | "with_$ac_useropt"
|
---|
1084 | "*) ;;
|
---|
1085 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
|
---|
1086 | ac_unrecognized_sep=', ';;
|
---|
1087 | esac
|
---|
1088 | eval with_$ac_useropt=no ;;
|
---|
1089 |
|
---|
1090 | --x)
|
---|
1091 | # Obsolete; use --with-x.
|
---|
1092 | with_x=yes ;;
|
---|
1093 |
|
---|
1094 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
1095 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
1096 | ac_prev=x_includes ;;
|
---|
1097 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
1098 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
1099 | x_includes=$ac_optarg ;;
|
---|
1100 |
|
---|
1101 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
1102 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
1103 | ac_prev=x_libraries ;;
|
---|
1104 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
1105 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
1106 | x_libraries=$ac_optarg ;;
|
---|
1107 |
|
---|
1108 | -*) as_fn_error $? "unrecognized option: \`$ac_option'
|
---|
1109 | Try \`$0 --help' for more information"
|
---|
1110 | ;;
|
---|
1111 |
|
---|
1112 | *=*)
|
---|
1113 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
---|
1114 | # Reject names that are not valid shell variable names.
|
---|
1115 | case $ac_envvar in #(
|
---|
1116 | '' | [0-9]* | *[!_$as_cr_alnum]* )
|
---|
1117 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
|
---|
1118 | esac
|
---|
1119 | eval $ac_envvar=\$ac_optarg
|
---|
1120 | export $ac_envvar ;;
|
---|
1121 |
|
---|
1122 | *)
|
---|
1123 | # FIXME: should be removed in autoconf 3.0.
|
---|
1124 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
---|
1125 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
1126 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
---|
1127 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
|
---|
1128 | ;;
|
---|
1129 |
|
---|
1130 | esac
|
---|
1131 | done
|
---|
1132 |
|
---|
1133 | if test -n "$ac_prev"; then
|
---|
1134 | ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
---|
1135 | as_fn_error $? "missing argument to $ac_option"
|
---|
1136 | fi
|
---|
1137 |
|
---|
1138 | if test -n "$ac_unrecognized_opts"; then
|
---|
1139 | case $enable_option_checking in
|
---|
1140 | no) ;;
|
---|
1141 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
|
---|
1142 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
|
---|
1143 | esac
|
---|
1144 | fi
|
---|
1145 |
|
---|
1146 | # Check all directory arguments for consistency.
|
---|
1147 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
|
---|
1148 | datadir sysconfdir sharedstatedir localstatedir includedir \
|
---|
1149 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
|
---|
1150 | libdir localedir mandir
|
---|
1151 | do
|
---|
1152 | eval ac_val=\$$ac_var
|
---|
1153 | # Remove trailing slashes.
|
---|
1154 | case $ac_val in
|
---|
1155 | */ )
|
---|
1156 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
|
---|
1157 | eval $ac_var=\$ac_val;;
|
---|
1158 | esac
|
---|
1159 | # Be sure to have absolute directory names.
|
---|
1160 | case $ac_val in
|
---|
1161 | [\\/$]* | ?:[\\/]* ) continue;;
|
---|
1162 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
|
---|
1163 | esac
|
---|
1164 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
|
---|
1165 | done
|
---|
1166 |
|
---|
1167 | # There might be people who depend on the old broken behavior: `$host'
|
---|
1168 | # used to hold the argument of --host etc.
|
---|
1169 | # FIXME: To remove some day.
|
---|
1170 | build=$build_alias
|
---|
1171 | host=$host_alias
|
---|
1172 | target=$target_alias
|
---|
1173 |
|
---|
1174 | # FIXME: To remove some day.
|
---|
1175 | if test "x$host_alias" != x; then
|
---|
1176 | if test "x$build_alias" = x; then
|
---|
1177 | cross_compiling=maybe
|
---|
1178 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
|
---|
1179 | If a cross compiler is detected then cross compile mode will be used" >&2
|
---|
1180 | elif test "x$build_alias" != "x$host_alias"; then
|
---|
1181 | cross_compiling=yes
|
---|
1182 | fi
|
---|
1183 | fi
|
---|
1184 |
|
---|
1185 | ac_tool_prefix=
|
---|
1186 | test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
---|
1187 |
|
---|
1188 | test "$silent" = yes && exec 6>/dev/null
|
---|
1189 |
|
---|
1190 |
|
---|
1191 | ac_pwd=`pwd` && test -n "$ac_pwd" &&
|
---|
1192 | ac_ls_di=`ls -di .` &&
|
---|
1193 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
|
---|
1194 | as_fn_error $? "working directory cannot be determined"
|
---|
1195 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
|
---|
1196 | as_fn_error $? "pwd does not report name of working directory"
|
---|
1197 |
|
---|
1198 |
|
---|
1199 | # Find the source files, if location was not specified.
|
---|
1200 | if test -z "$srcdir"; then
|
---|
1201 | ac_srcdir_defaulted=yes
|
---|
1202 | # Try the directory containing this script, then the parent directory.
|
---|
1203 | ac_confdir=`$as_dirname -- "$as_myself" ||
|
---|
1204 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
1205 | X"$as_myself" : 'X\(//\)[^/]' \| \
|
---|
1206 | X"$as_myself" : 'X\(//\)$' \| \
|
---|
1207 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
1208 | $as_echo X"$as_myself" |
|
---|
1209 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
1210 | s//\1/
|
---|
1211 | q
|
---|
1212 | }
|
---|
1213 | /^X\(\/\/\)[^/].*/{
|
---|
1214 | s//\1/
|
---|
1215 | q
|
---|
1216 | }
|
---|
1217 | /^X\(\/\/\)$/{
|
---|
1218 | s//\1/
|
---|
1219 | q
|
---|
1220 | }
|
---|
1221 | /^X\(\/\).*/{
|
---|
1222 | s//\1/
|
---|
1223 | q
|
---|
1224 | }
|
---|
1225 | s/.*/./; q'`
|
---|
1226 | srcdir=$ac_confdir
|
---|
1227 | if test ! -r "$srcdir/$ac_unique_file"; then
|
---|
1228 | srcdir=..
|
---|
1229 | fi
|
---|
1230 | else
|
---|
1231 | ac_srcdir_defaulted=no
|
---|
1232 | fi
|
---|
1233 | if test ! -r "$srcdir/$ac_unique_file"; then
|
---|
1234 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
|
---|
1235 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
|
---|
1236 | fi
|
---|
1237 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
|
---|
1238 | ac_abs_confdir=`(
|
---|
1239 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
|
---|
1240 | pwd)`
|
---|
1241 | # When building in place, set srcdir=.
|
---|
1242 | if test "$ac_abs_confdir" = "$ac_pwd"; then
|
---|
1243 | srcdir=.
|
---|
1244 | fi
|
---|
1245 | # Remove unnecessary trailing slashes from srcdir.
|
---|
1246 | # Double slashes in file names in object file debugging info
|
---|
1247 | # mess up M-x gdb in Emacs.
|
---|
1248 | case $srcdir in
|
---|
1249 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
|
---|
1250 | esac
|
---|
1251 | for ac_var in $ac_precious_vars; do
|
---|
1252 | eval ac_env_${ac_var}_set=\${${ac_var}+set}
|
---|
1253 | eval ac_env_${ac_var}_value=\$${ac_var}
|
---|
1254 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
|
---|
1255 | eval ac_cv_env_${ac_var}_value=\$${ac_var}
|
---|
1256 | done
|
---|
1257 |
|
---|
1258 | #
|
---|
1259 | # Report the --help message.
|
---|
1260 | #
|
---|
1261 | if test "$ac_init_help" = "long"; then
|
---|
1262 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
1263 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
1264 | cat <<_ACEOF
|
---|
1265 | \`configure' configures this package to adapt to many kinds of systems.
|
---|
1266 |
|
---|
1267 | Usage: $0 [OPTION]... [VAR=VALUE]...
|
---|
1268 |
|
---|
1269 | To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
---|
1270 | VAR=VALUE. See below for descriptions of some of the useful variables.
|
---|
1271 |
|
---|
1272 | Defaults for the options are specified in brackets.
|
---|
1273 |
|
---|
1274 | Configuration:
|
---|
1275 | -h, --help display this help and exit
|
---|
1276 | --help=short display options specific to this package
|
---|
1277 | --help=recursive display the short help of all the included packages
|
---|
1278 | -V, --version display version information and exit
|
---|
1279 | -q, --quiet, --silent do not print \`checking ...' messages
|
---|
1280 | --cache-file=FILE cache test results in FILE [disabled]
|
---|
1281 | -C, --config-cache alias for \`--cache-file=config.cache'
|
---|
1282 | -n, --no-create do not create output files
|
---|
1283 | --srcdir=DIR find the sources in DIR [configure dir or \`..']
|
---|
1284 |
|
---|
1285 | Installation directories:
|
---|
1286 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
1287 | [$ac_default_prefix]
|
---|
1288 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
1289 | [PREFIX]
|
---|
1290 |
|
---|
1291 | By default, \`make install' will install all the files in
|
---|
1292 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
---|
1293 | an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
---|
1294 | for instance \`--prefix=\$HOME'.
|
---|
1295 |
|
---|
1296 | For better control, use the options below.
|
---|
1297 |
|
---|
1298 | Fine tuning of the installation directories:
|
---|
1299 | --bindir=DIR user executables [EPREFIX/bin]
|
---|
1300 | --sbindir=DIR system admin executables [EPREFIX/sbin]
|
---|
1301 | --libexecdir=DIR program executables [EPREFIX/libexec]
|
---|
1302 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
---|
1303 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
---|
1304 | --localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
---|
1305 | --libdir=DIR object code libraries [EPREFIX/lib]
|
---|
1306 | --includedir=DIR C header files [PREFIX/include]
|
---|
1307 | --oldincludedir=DIR C header files for non-gcc [/usr/include]
|
---|
1308 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
|
---|
1309 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
|
---|
1310 | --infodir=DIR info documentation [DATAROOTDIR/info]
|
---|
1311 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
|
---|
1312 | --mandir=DIR man documentation [DATAROOTDIR/man]
|
---|
1313 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
|
---|
1314 | --htmldir=DIR html documentation [DOCDIR]
|
---|
1315 | --dvidir=DIR dvi documentation [DOCDIR]
|
---|
1316 | --pdfdir=DIR pdf documentation [DOCDIR]
|
---|
1317 | --psdir=DIR ps documentation [DOCDIR]
|
---|
1318 | _ACEOF
|
---|
1319 |
|
---|
1320 | cat <<\_ACEOF
|
---|
1321 |
|
---|
1322 | System types:
|
---|
1323 | --build=BUILD configure for building on BUILD [guessed]
|
---|
1324 | --host=HOST cross-compile to build programs to run on HOST [BUILD]
|
---|
1325 | --target=TARGET configure for building compilers for TARGET [HOST]
|
---|
1326 | _ACEOF
|
---|
1327 | fi
|
---|
1328 |
|
---|
1329 | if test -n "$ac_init_help"; then
|
---|
1330 |
|
---|
1331 | cat <<\_ACEOF
|
---|
1332 |
|
---|
1333 | Optional Features:
|
---|
1334 | --disable-option-checking ignore unrecognized --enable/--with options
|
---|
1335 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
---|
1336 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
---|
1337 | --enable-corba Enable CORBA support
|
---|
1338 | --enable-z3950 Enable Z39.50 client support
|
---|
1339 | --disable-yaz Disable YAZ compilation
|
---|
1340 | --disable-java Disable Java compilation
|
---|
1341 | --disable-jdbm Disable JDBM compilation
|
---|
1342 | --disable-gdbm Disable GDBM compilation
|
---|
1343 | --disable-accentfold Disable Accent Folding for MGPP
|
---|
1344 | --disable-sqlite Disable SQLite support
|
---|
1345 |
|
---|
1346 | Optional Packages:
|
---|
1347 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
1348 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
1349 | --with-micodir Use installed MICO directory
|
---|
1350 | --with-dmalloc use dmalloc, as in
|
---|
1351 | ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz
|
---|
1352 | --with-regex use older regex in lieu of GNU rx for matching
|
---|
1353 |
|
---|
1354 | Some influential environment variables:
|
---|
1355 | CC C compiler command
|
---|
1356 | CFLAGS C compiler flags
|
---|
1357 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
---|
1358 | nonstandard directory <lib dir>
|
---|
1359 | LIBS libraries to pass to the linker, e.g. -l<library>
|
---|
1360 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
|
---|
1361 | you have headers in a nonstandard directory <include dir>
|
---|
1362 | CXX C++ compiler command
|
---|
1363 | CXXFLAGS C++ compiler flags
|
---|
1364 | YACC The `Yet Another C Compiler' implementation to use. Defaults to
|
---|
1365 | the first program found out of: `bison -y', `byacc', `yacc'.
|
---|
1366 | YFLAGS The list of arguments that will be passed by default to $YACC.
|
---|
1367 | This script will default YFLAGS to the empty string to avoid a
|
---|
1368 | default value of `-d' given by some make applications.
|
---|
1369 | CPP C preprocessor
|
---|
1370 |
|
---|
1371 | Use these variables to override the choices made by `configure' or to help
|
---|
1372 | it to find libraries and programs with nonstandard names/locations.
|
---|
1373 |
|
---|
1374 | Report bugs to the package provider.
|
---|
1375 | _ACEOF
|
---|
1376 | ac_status=$?
|
---|
1377 | fi
|
---|
1378 |
|
---|
1379 | if test "$ac_init_help" = "recursive"; then
|
---|
1380 | # If there are subdirs, report their specific --help.
|
---|
1381 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
---|
1382 | test -d "$ac_dir" ||
|
---|
1383 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
|
---|
1384 | continue
|
---|
1385 | ac_builddir=.
|
---|
1386 |
|
---|
1387 | case "$ac_dir" in
|
---|
1388 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
1389 | *)
|
---|
1390 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
|
---|
1391 | # A ".." for each directory in $ac_dir_suffix.
|
---|
1392 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
---|
1393 | case $ac_top_builddir_sub in
|
---|
1394 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
1395 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
1396 | esac ;;
|
---|
1397 | esac
|
---|
1398 | ac_abs_top_builddir=$ac_pwd
|
---|
1399 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
1400 | # for backward compatibility:
|
---|
1401 | ac_top_builddir=$ac_top_build_prefix
|
---|
1402 |
|
---|
1403 | case $srcdir in
|
---|
1404 | .) # We are building in place.
|
---|
1405 | ac_srcdir=.
|
---|
1406 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
1407 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
1408 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
1409 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
1410 | ac_top_srcdir=$srcdir
|
---|
1411 | ac_abs_top_srcdir=$srcdir ;;
|
---|
1412 | *) # Relative name.
|
---|
1413 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
1414 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
1415 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
1416 | esac
|
---|
1417 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
1418 |
|
---|
1419 | cd "$ac_dir" || { ac_status=$?; continue; }
|
---|
1420 | # Check for guested configure.
|
---|
1421 | if test -f "$ac_srcdir/configure.gnu"; then
|
---|
1422 | echo &&
|
---|
1423 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive
|
---|
1424 | elif test -f "$ac_srcdir/configure"; then
|
---|
1425 | echo &&
|
---|
1426 | $SHELL "$ac_srcdir/configure" --help=recursive
|
---|
1427 | else
|
---|
1428 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
---|
1429 | fi || ac_status=$?
|
---|
1430 | cd "$ac_pwd" || { ac_status=$?; break; }
|
---|
1431 | done
|
---|
1432 | fi
|
---|
1433 |
|
---|
1434 | test -n "$ac_init_help" && exit $ac_status
|
---|
1435 | if $ac_init_version; then
|
---|
1436 | cat <<\_ACEOF
|
---|
1437 | configure
|
---|
1438 | generated by GNU Autoconf 2.67
|
---|
1439 |
|
---|
1440 | Copyright (C) 2010 Free Software Foundation, Inc.
|
---|
1441 | This configure script is free software; the Free Software Foundation
|
---|
1442 | gives unlimited permission to copy, distribute and modify it.
|
---|
1443 | _ACEOF
|
---|
1444 | exit
|
---|
1445 | fi
|
---|
1446 |
|
---|
1447 | ## ------------------------ ##
|
---|
1448 | ## Autoconf initialization. ##
|
---|
1449 | ## ------------------------ ##
|
---|
1450 |
|
---|
1451 | # ac_fn_c_try_compile LINENO
|
---|
1452 | # --------------------------
|
---|
1453 | # Try to compile conftest.$ac_ext, and return whether this succeeded.
|
---|
1454 | ac_fn_c_try_compile ()
|
---|
1455 | {
|
---|
1456 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1457 | rm -f conftest.$ac_objext
|
---|
1458 | if { { ac_try="$ac_compile"
|
---|
1459 | case "(($ac_try" in
|
---|
1460 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1461 | *) ac_try_echo=$ac_try;;
|
---|
1462 | esac
|
---|
1463 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1464 | $as_echo "$ac_try_echo"; } >&5
|
---|
1465 | (eval "$ac_compile") 2>conftest.err
|
---|
1466 | ac_status=$?
|
---|
1467 | if test -s conftest.err; then
|
---|
1468 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
1469 | cat conftest.er1 >&5
|
---|
1470 | mv -f conftest.er1 conftest.err
|
---|
1471 | fi
|
---|
1472 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1473 | test $ac_status = 0; } && {
|
---|
1474 | test -z "$ac_c_werror_flag" ||
|
---|
1475 | test ! -s conftest.err
|
---|
1476 | } && test -s conftest.$ac_objext; then :
|
---|
1477 | ac_retval=0
|
---|
1478 | else
|
---|
1479 | $as_echo "$as_me: failed program was:" >&5
|
---|
1480 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1481 |
|
---|
1482 | ac_retval=1
|
---|
1483 | fi
|
---|
1484 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
1485 | as_fn_set_status $ac_retval
|
---|
1486 |
|
---|
1487 | } # ac_fn_c_try_compile
|
---|
1488 |
|
---|
1489 | # ac_fn_cxx_try_compile LINENO
|
---|
1490 | # ----------------------------
|
---|
1491 | # Try to compile conftest.$ac_ext, and return whether this succeeded.
|
---|
1492 | ac_fn_cxx_try_compile ()
|
---|
1493 | {
|
---|
1494 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1495 | rm -f conftest.$ac_objext
|
---|
1496 | if { { ac_try="$ac_compile"
|
---|
1497 | case "(($ac_try" in
|
---|
1498 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1499 | *) ac_try_echo=$ac_try;;
|
---|
1500 | esac
|
---|
1501 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1502 | $as_echo "$ac_try_echo"; } >&5
|
---|
1503 | (eval "$ac_compile") 2>conftest.err
|
---|
1504 | ac_status=$?
|
---|
1505 | if test -s conftest.err; then
|
---|
1506 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
1507 | cat conftest.er1 >&5
|
---|
1508 | mv -f conftest.er1 conftest.err
|
---|
1509 | fi
|
---|
1510 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1511 | test $ac_status = 0; } && {
|
---|
1512 | test -z "$ac_cxx_werror_flag" ||
|
---|
1513 | test ! -s conftest.err
|
---|
1514 | } && test -s conftest.$ac_objext; then :
|
---|
1515 | ac_retval=0
|
---|
1516 | else
|
---|
1517 | $as_echo "$as_me: failed program was:" >&5
|
---|
1518 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1519 |
|
---|
1520 | ac_retval=1
|
---|
1521 | fi
|
---|
1522 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
1523 | as_fn_set_status $ac_retval
|
---|
1524 |
|
---|
1525 | } # ac_fn_cxx_try_compile
|
---|
1526 |
|
---|
1527 | # ac_fn_c_try_cpp LINENO
|
---|
1528 | # ----------------------
|
---|
1529 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
|
---|
1530 | ac_fn_c_try_cpp ()
|
---|
1531 | {
|
---|
1532 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1533 | if { { ac_try="$ac_cpp conftest.$ac_ext"
|
---|
1534 | case "(($ac_try" in
|
---|
1535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1536 | *) ac_try_echo=$ac_try;;
|
---|
1537 | esac
|
---|
1538 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1539 | $as_echo "$ac_try_echo"; } >&5
|
---|
1540 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
|
---|
1541 | ac_status=$?
|
---|
1542 | if test -s conftest.err; then
|
---|
1543 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
1544 | cat conftest.er1 >&5
|
---|
1545 | mv -f conftest.er1 conftest.err
|
---|
1546 | fi
|
---|
1547 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1548 | test $ac_status = 0; } > conftest.i && {
|
---|
1549 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
1550 | test ! -s conftest.err
|
---|
1551 | }; then :
|
---|
1552 | ac_retval=0
|
---|
1553 | else
|
---|
1554 | $as_echo "$as_me: failed program was:" >&5
|
---|
1555 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1556 |
|
---|
1557 | ac_retval=1
|
---|
1558 | fi
|
---|
1559 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
1560 | as_fn_set_status $ac_retval
|
---|
1561 |
|
---|
1562 | } # ac_fn_c_try_cpp
|
---|
1563 |
|
---|
1564 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
|
---|
1565 | # -------------------------------------------------------
|
---|
1566 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using
|
---|
1567 | # the include files in INCLUDES and setting the cache variable VAR
|
---|
1568 | # accordingly.
|
---|
1569 | ac_fn_c_check_header_mongrel ()
|
---|
1570 | {
|
---|
1571 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1572 | if eval "test \"\${$3+set}\"" = set; then :
|
---|
1573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1574 | $as_echo_n "checking for $2... " >&6; }
|
---|
1575 | if eval "test \"\${$3+set}\"" = set; then :
|
---|
1576 | $as_echo_n "(cached) " >&6
|
---|
1577 | fi
|
---|
1578 | eval ac_res=\$$3
|
---|
1579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1580 | $as_echo "$ac_res" >&6; }
|
---|
1581 | else
|
---|
1582 | # Is the header compilable?
|
---|
1583 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
|
---|
1584 | $as_echo_n "checking $2 usability... " >&6; }
|
---|
1585 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1586 | /* end confdefs.h. */
|
---|
1587 | $4
|
---|
1588 | #include <$2>
|
---|
1589 | _ACEOF
|
---|
1590 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1591 | ac_header_compiler=yes
|
---|
1592 | else
|
---|
1593 | ac_header_compiler=no
|
---|
1594 | fi
|
---|
1595 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
|
---|
1597 | $as_echo "$ac_header_compiler" >&6; }
|
---|
1598 |
|
---|
1599 | # Is the header present?
|
---|
1600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
|
---|
1601 | $as_echo_n "checking $2 presence... " >&6; }
|
---|
1602 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1603 | /* end confdefs.h. */
|
---|
1604 | #include <$2>
|
---|
1605 | _ACEOF
|
---|
1606 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
1607 | ac_header_preproc=yes
|
---|
1608 | else
|
---|
1609 | ac_header_preproc=no
|
---|
1610 | fi
|
---|
1611 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
1612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
|
---|
1613 | $as_echo "$ac_header_preproc" >&6; }
|
---|
1614 |
|
---|
1615 | # So? What about this header?
|
---|
1616 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
|
---|
1617 | yes:no: )
|
---|
1618 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
1619 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
1620 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
|
---|
1621 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
|
---|
1622 | ;;
|
---|
1623 | no:yes:* )
|
---|
1624 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
|
---|
1625 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
|
---|
1626 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
|
---|
1627 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
|
---|
1628 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
|
---|
1629 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
|
---|
1630 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
|
---|
1631 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
1632 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
|
---|
1633 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
|
---|
1634 | ;;
|
---|
1635 | esac
|
---|
1636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1637 | $as_echo_n "checking for $2... " >&6; }
|
---|
1638 | if eval "test \"\${$3+set}\"" = set; then :
|
---|
1639 | $as_echo_n "(cached) " >&6
|
---|
1640 | else
|
---|
1641 | eval "$3=\$ac_header_compiler"
|
---|
1642 | fi
|
---|
1643 | eval ac_res=\$$3
|
---|
1644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1645 | $as_echo "$ac_res" >&6; }
|
---|
1646 | fi
|
---|
1647 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
1648 |
|
---|
1649 | } # ac_fn_c_check_header_mongrel
|
---|
1650 |
|
---|
1651 | # ac_fn_c_try_run LINENO
|
---|
1652 | # ----------------------
|
---|
1653 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
|
---|
1654 | # that executables *can* be run.
|
---|
1655 | ac_fn_c_try_run ()
|
---|
1656 | {
|
---|
1657 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1658 | if { { ac_try="$ac_link"
|
---|
1659 | case "(($ac_try" in
|
---|
1660 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1661 | *) ac_try_echo=$ac_try;;
|
---|
1662 | esac
|
---|
1663 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1664 | $as_echo "$ac_try_echo"; } >&5
|
---|
1665 | (eval "$ac_link") 2>&5
|
---|
1666 | ac_status=$?
|
---|
1667 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1668 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
|
---|
1669 | { { case "(($ac_try" in
|
---|
1670 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1671 | *) ac_try_echo=$ac_try;;
|
---|
1672 | esac
|
---|
1673 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1674 | $as_echo "$ac_try_echo"; } >&5
|
---|
1675 | (eval "$ac_try") 2>&5
|
---|
1676 | ac_status=$?
|
---|
1677 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1678 | test $ac_status = 0; }; }; then :
|
---|
1679 | ac_retval=0
|
---|
1680 | else
|
---|
1681 | $as_echo "$as_me: program exited with status $ac_status" >&5
|
---|
1682 | $as_echo "$as_me: failed program was:" >&5
|
---|
1683 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1684 |
|
---|
1685 | ac_retval=$ac_status
|
---|
1686 | fi
|
---|
1687 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
---|
1688 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
1689 | as_fn_set_status $ac_retval
|
---|
1690 |
|
---|
1691 | } # ac_fn_c_try_run
|
---|
1692 |
|
---|
1693 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
|
---|
1694 | # -------------------------------------------------------
|
---|
1695 | # Tests whether HEADER exists and can be compiled using the include files in
|
---|
1696 | # INCLUDES, setting the cache variable VAR accordingly.
|
---|
1697 | ac_fn_c_check_header_compile ()
|
---|
1698 | {
|
---|
1699 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1701 | $as_echo_n "checking for $2... " >&6; }
|
---|
1702 | if eval "test \"\${$3+set}\"" = set; then :
|
---|
1703 | $as_echo_n "(cached) " >&6
|
---|
1704 | else
|
---|
1705 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1706 | /* end confdefs.h. */
|
---|
1707 | $4
|
---|
1708 | #include <$2>
|
---|
1709 | _ACEOF
|
---|
1710 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1711 | eval "$3=yes"
|
---|
1712 | else
|
---|
1713 | eval "$3=no"
|
---|
1714 | fi
|
---|
1715 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1716 | fi
|
---|
1717 | eval ac_res=\$$3
|
---|
1718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1719 | $as_echo "$ac_res" >&6; }
|
---|
1720 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
1721 |
|
---|
1722 | } # ac_fn_c_check_header_compile
|
---|
1723 |
|
---|
1724 | # ac_fn_c_try_link LINENO
|
---|
1725 | # -----------------------
|
---|
1726 | # Try to link conftest.$ac_ext, and return whether this succeeded.
|
---|
1727 | ac_fn_c_try_link ()
|
---|
1728 | {
|
---|
1729 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1730 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
1731 | if { { ac_try="$ac_link"
|
---|
1732 | case "(($ac_try" in
|
---|
1733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1734 | *) ac_try_echo=$ac_try;;
|
---|
1735 | esac
|
---|
1736 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1737 | $as_echo "$ac_try_echo"; } >&5
|
---|
1738 | (eval "$ac_link") 2>conftest.err
|
---|
1739 | ac_status=$?
|
---|
1740 | if test -s conftest.err; then
|
---|
1741 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
1742 | cat conftest.er1 >&5
|
---|
1743 | mv -f conftest.er1 conftest.err
|
---|
1744 | fi
|
---|
1745 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1746 | test $ac_status = 0; } && {
|
---|
1747 | test -z "$ac_c_werror_flag" ||
|
---|
1748 | test ! -s conftest.err
|
---|
1749 | } && test -s conftest$ac_exeext && {
|
---|
1750 | test "$cross_compiling" = yes ||
|
---|
1751 | $as_test_x conftest$ac_exeext
|
---|
1752 | }; then :
|
---|
1753 | ac_retval=0
|
---|
1754 | else
|
---|
1755 | $as_echo "$as_me: failed program was:" >&5
|
---|
1756 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1757 |
|
---|
1758 | ac_retval=1
|
---|
1759 | fi
|
---|
1760 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
|
---|
1761 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
|
---|
1762 | # interfere with the next link command; also delete a directory that is
|
---|
1763 | # left behind by Apple's compiler. We do this before executing the actions.
|
---|
1764 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
---|
1765 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
1766 | as_fn_set_status $ac_retval
|
---|
1767 |
|
---|
1768 | } # ac_fn_c_try_link
|
---|
1769 |
|
---|
1770 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
|
---|
1771 | # -------------------------------------------
|
---|
1772 | # Tests whether TYPE exists after having included INCLUDES, setting cache
|
---|
1773 | # variable VAR accordingly.
|
---|
1774 | ac_fn_c_check_type ()
|
---|
1775 | {
|
---|
1776 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1778 | $as_echo_n "checking for $2... " >&6; }
|
---|
1779 | if eval "test \"\${$3+set}\"" = set; then :
|
---|
1780 | $as_echo_n "(cached) " >&6
|
---|
1781 | else
|
---|
1782 | eval "$3=no"
|
---|
1783 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1784 | /* end confdefs.h. */
|
---|
1785 | $4
|
---|
1786 | int
|
---|
1787 | main ()
|
---|
1788 | {
|
---|
1789 | if (sizeof ($2))
|
---|
1790 | return 0;
|
---|
1791 | ;
|
---|
1792 | return 0;
|
---|
1793 | }
|
---|
1794 | _ACEOF
|
---|
1795 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1796 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1797 | /* end confdefs.h. */
|
---|
1798 | $4
|
---|
1799 | int
|
---|
1800 | main ()
|
---|
1801 | {
|
---|
1802 | if (sizeof (($2)))
|
---|
1803 | return 0;
|
---|
1804 | ;
|
---|
1805 | return 0;
|
---|
1806 | }
|
---|
1807 | _ACEOF
|
---|
1808 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1809 |
|
---|
1810 | else
|
---|
1811 | eval "$3=yes"
|
---|
1812 | fi
|
---|
1813 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1814 | fi
|
---|
1815 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1816 | fi
|
---|
1817 | eval ac_res=\$$3
|
---|
1818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1819 | $as_echo "$ac_res" >&6; }
|
---|
1820 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
1821 |
|
---|
1822 | } # ac_fn_c_check_type
|
---|
1823 |
|
---|
1824 | # ac_fn_c_check_func LINENO FUNC VAR
|
---|
1825 | # ----------------------------------
|
---|
1826 | # Tests whether FUNC exists, setting the cache variable VAR accordingly
|
---|
1827 | ac_fn_c_check_func ()
|
---|
1828 | {
|
---|
1829 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1831 | $as_echo_n "checking for $2... " >&6; }
|
---|
1832 | if eval "test \"\${$3+set}\"" = set; then :
|
---|
1833 | $as_echo_n "(cached) " >&6
|
---|
1834 | else
|
---|
1835 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1836 | /* end confdefs.h. */
|
---|
1837 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
|
---|
1838 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
1839 | #define $2 innocuous_$2
|
---|
1840 |
|
---|
1841 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
1842 | which can conflict with char $2 (); below.
|
---|
1843 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
1844 | <limits.h> exists even on freestanding compilers. */
|
---|
1845 |
|
---|
1846 | #ifdef __STDC__
|
---|
1847 | # include <limits.h>
|
---|
1848 | #else
|
---|
1849 | # include <assert.h>
|
---|
1850 | #endif
|
---|
1851 |
|
---|
1852 | #undef $2
|
---|
1853 |
|
---|
1854 | /* Override any GCC internal prototype to avoid an error.
|
---|
1855 | Use char because int might match the return type of a GCC
|
---|
1856 | builtin and then its argument prototype would still apply. */
|
---|
1857 | #ifdef __cplusplus
|
---|
1858 | extern "C"
|
---|
1859 | #endif
|
---|
1860 | char $2 ();
|
---|
1861 | /* The GNU C library defines this for functions which it implements
|
---|
1862 | to always fail with ENOSYS. Some functions are actually named
|
---|
1863 | something starting with __ and the normal name is an alias. */
|
---|
1864 | #if defined __stub_$2 || defined __stub___$2
|
---|
1865 | choke me
|
---|
1866 | #endif
|
---|
1867 |
|
---|
1868 | int
|
---|
1869 | main ()
|
---|
1870 | {
|
---|
1871 | return $2 ();
|
---|
1872 | ;
|
---|
1873 | return 0;
|
---|
1874 | }
|
---|
1875 | _ACEOF
|
---|
1876 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
1877 | eval "$3=yes"
|
---|
1878 | else
|
---|
1879 | eval "$3=no"
|
---|
1880 | fi
|
---|
1881 | rm -f core conftest.err conftest.$ac_objext \
|
---|
1882 | conftest$ac_exeext conftest.$ac_ext
|
---|
1883 | fi
|
---|
1884 | eval ac_res=\$$3
|
---|
1885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1886 | $as_echo "$ac_res" >&6; }
|
---|
1887 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
1888 |
|
---|
1889 | } # ac_fn_c_check_func
|
---|
1890 |
|
---|
1891 | # ac_fn_cxx_try_run LINENO
|
---|
1892 | # ------------------------
|
---|
1893 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
|
---|
1894 | # that executables *can* be run.
|
---|
1895 | ac_fn_cxx_try_run ()
|
---|
1896 | {
|
---|
1897 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1898 | if { { ac_try="$ac_link"
|
---|
1899 | case "(($ac_try" in
|
---|
1900 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1901 | *) ac_try_echo=$ac_try;;
|
---|
1902 | esac
|
---|
1903 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1904 | $as_echo "$ac_try_echo"; } >&5
|
---|
1905 | (eval "$ac_link") 2>&5
|
---|
1906 | ac_status=$?
|
---|
1907 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1908 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
|
---|
1909 | { { case "(($ac_try" in
|
---|
1910 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1911 | *) ac_try_echo=$ac_try;;
|
---|
1912 | esac
|
---|
1913 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1914 | $as_echo "$ac_try_echo"; } >&5
|
---|
1915 | (eval "$ac_try") 2>&5
|
---|
1916 | ac_status=$?
|
---|
1917 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1918 | test $ac_status = 0; }; }; then :
|
---|
1919 | ac_retval=0
|
---|
1920 | else
|
---|
1921 | $as_echo "$as_me: program exited with status $ac_status" >&5
|
---|
1922 | $as_echo "$as_me: failed program was:" >&5
|
---|
1923 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1924 |
|
---|
1925 | ac_retval=$ac_status
|
---|
1926 | fi
|
---|
1927 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
---|
1928 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
1929 | as_fn_set_status $ac_retval
|
---|
1930 |
|
---|
1931 | } # ac_fn_cxx_try_run
|
---|
1932 | cat >config.log <<_ACEOF
|
---|
1933 | This file contains any messages produced by compilers while
|
---|
1934 | running configure, to aid debugging if configure makes a mistake.
|
---|
1935 |
|
---|
1936 | It was created by $as_me, which was
|
---|
1937 | generated by GNU Autoconf 2.67. Invocation command line was
|
---|
1938 |
|
---|
1939 | $ $0 $@
|
---|
1940 |
|
---|
1941 | _ACEOF
|
---|
1942 | exec 5>>config.log
|
---|
1943 | {
|
---|
1944 | cat <<_ASUNAME
|
---|
1945 | ## --------- ##
|
---|
1946 | ## Platform. ##
|
---|
1947 | ## --------- ##
|
---|
1948 |
|
---|
1949 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
1950 | uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
---|
1951 | uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
---|
1952 | uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
---|
1953 | uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
---|
1954 |
|
---|
1955 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
---|
1956 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
---|
1957 |
|
---|
1958 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
---|
1959 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
---|
1960 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
---|
1961 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
|
---|
1962 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
---|
1963 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
---|
1964 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
---|
1965 |
|
---|
1966 | _ASUNAME
|
---|
1967 |
|
---|
1968 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1969 | for as_dir in $PATH
|
---|
1970 | do
|
---|
1971 | IFS=$as_save_IFS
|
---|
1972 | test -z "$as_dir" && as_dir=.
|
---|
1973 | $as_echo "PATH: $as_dir"
|
---|
1974 | done
|
---|
1975 | IFS=$as_save_IFS
|
---|
1976 |
|
---|
1977 | } >&5
|
---|
1978 |
|
---|
1979 | cat >&5 <<_ACEOF
|
---|
1980 |
|
---|
1981 |
|
---|
1982 | ## ----------- ##
|
---|
1983 | ## Core tests. ##
|
---|
1984 | ## ----------- ##
|
---|
1985 |
|
---|
1986 | _ACEOF
|
---|
1987 |
|
---|
1988 |
|
---|
1989 | # Keep a trace of the command line.
|
---|
1990 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
1991 | # Strip out --silent because we don't want to record it for future runs.
|
---|
1992 | # Also quote any args containing shell meta-characters.
|
---|
1993 | # Make two passes to allow for proper duplicate-argument suppression.
|
---|
1994 | ac_configure_args=
|
---|
1995 | ac_configure_args0=
|
---|
1996 | ac_configure_args1=
|
---|
1997 | ac_must_keep_next=false
|
---|
1998 | for ac_pass in 1 2
|
---|
1999 | do
|
---|
2000 | for ac_arg
|
---|
2001 | do
|
---|
2002 | case $ac_arg in
|
---|
2003 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
---|
2004 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
2005 | | -silent | --silent | --silen | --sile | --sil)
|
---|
2006 | continue ;;
|
---|
2007 | *\'*)
|
---|
2008 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
2009 | esac
|
---|
2010 | case $ac_pass in
|
---|
2011 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
|
---|
2012 | 2)
|
---|
2013 | as_fn_append ac_configure_args1 " '$ac_arg'"
|
---|
2014 | if test $ac_must_keep_next = true; then
|
---|
2015 | ac_must_keep_next=false # Got value, back to normal.
|
---|
2016 | else
|
---|
2017 | case $ac_arg in
|
---|
2018 | *=* | --config-cache | -C | -disable-* | --disable-* \
|
---|
2019 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
---|
2020 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
---|
2021 | | -with-* | --with-* | -without-* | --without-* | --x)
|
---|
2022 | case "$ac_configure_args0 " in
|
---|
2023 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
---|
2024 | esac
|
---|
2025 | ;;
|
---|
2026 | -* ) ac_must_keep_next=true ;;
|
---|
2027 | esac
|
---|
2028 | fi
|
---|
2029 | as_fn_append ac_configure_args " '$ac_arg'"
|
---|
2030 | ;;
|
---|
2031 | esac
|
---|
2032 | done
|
---|
2033 | done
|
---|
2034 | { ac_configure_args0=; unset ac_configure_args0;}
|
---|
2035 | { ac_configure_args1=; unset ac_configure_args1;}
|
---|
2036 |
|
---|
2037 | # When interrupted or exit'd, cleanup temporary files, and complete
|
---|
2038 | # config.log. We remove comments because anyway the quotes in there
|
---|
2039 | # would cause problems or look ugly.
|
---|
2040 | # WARNING: Use '\'' to represent an apostrophe within the trap.
|
---|
2041 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
|
---|
2042 | trap 'exit_status=$?
|
---|
2043 | # Save into config.log some information that might help in debugging.
|
---|
2044 | {
|
---|
2045 | echo
|
---|
2046 |
|
---|
2047 | $as_echo "## ---------------- ##
|
---|
2048 | ## Cache variables. ##
|
---|
2049 | ## ---------------- ##"
|
---|
2050 | echo
|
---|
2051 | # The following way of writing the cache mishandles newlines in values,
|
---|
2052 | (
|
---|
2053 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
|
---|
2054 | eval ac_val=\$$ac_var
|
---|
2055 | case $ac_val in #(
|
---|
2056 | *${as_nl}*)
|
---|
2057 | case $ac_var in #(
|
---|
2058 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
---|
2059 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
---|
2060 | esac
|
---|
2061 | case $ac_var in #(
|
---|
2062 | _ | IFS | as_nl) ;; #(
|
---|
2063 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
|
---|
2064 | *) { eval $ac_var=; unset $ac_var;} ;;
|
---|
2065 | esac ;;
|
---|
2066 | esac
|
---|
2067 | done
|
---|
2068 | (set) 2>&1 |
|
---|
2069 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
|
---|
2070 | *${as_nl}ac_space=\ *)
|
---|
2071 | sed -n \
|
---|
2072 | "s/'\''/'\''\\\\'\'''\''/g;
|
---|
2073 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
|
---|
2074 | ;; #(
|
---|
2075 | *)
|
---|
2076 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
---|
2077 | ;;
|
---|
2078 | esac |
|
---|
2079 | sort
|
---|
2080 | )
|
---|
2081 | echo
|
---|
2082 |
|
---|
2083 | $as_echo "## ----------------- ##
|
---|
2084 | ## Output variables. ##
|
---|
2085 | ## ----------------- ##"
|
---|
2086 | echo
|
---|
2087 | for ac_var in $ac_subst_vars
|
---|
2088 | do
|
---|
2089 | eval ac_val=\$$ac_var
|
---|
2090 | case $ac_val in
|
---|
2091 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
---|
2092 | esac
|
---|
2093 | $as_echo "$ac_var='\''$ac_val'\''"
|
---|
2094 | done | sort
|
---|
2095 | echo
|
---|
2096 |
|
---|
2097 | if test -n "$ac_subst_files"; then
|
---|
2098 | $as_echo "## ------------------- ##
|
---|
2099 | ## File substitutions. ##
|
---|
2100 | ## ------------------- ##"
|
---|
2101 | echo
|
---|
2102 | for ac_var in $ac_subst_files
|
---|
2103 | do
|
---|
2104 | eval ac_val=\$$ac_var
|
---|
2105 | case $ac_val in
|
---|
2106 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
---|
2107 | esac
|
---|
2108 | $as_echo "$ac_var='\''$ac_val'\''"
|
---|
2109 | done | sort
|
---|
2110 | echo
|
---|
2111 | fi
|
---|
2112 |
|
---|
2113 | if test -s confdefs.h; then
|
---|
2114 | $as_echo "## ----------- ##
|
---|
2115 | ## confdefs.h. ##
|
---|
2116 | ## ----------- ##"
|
---|
2117 | echo
|
---|
2118 | cat confdefs.h
|
---|
2119 | echo
|
---|
2120 | fi
|
---|
2121 | test "$ac_signal" != 0 &&
|
---|
2122 | $as_echo "$as_me: caught signal $ac_signal"
|
---|
2123 | $as_echo "$as_me: exit $exit_status"
|
---|
2124 | } >&5
|
---|
2125 | rm -f core *.core core.conftest.* &&
|
---|
2126 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
|
---|
2127 | exit $exit_status
|
---|
2128 | ' 0
|
---|
2129 | for ac_signal in 1 2 13 15; do
|
---|
2130 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
|
---|
2131 | done
|
---|
2132 | ac_signal=0
|
---|
2133 |
|
---|
2134 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
2135 | rm -f -r conftest* confdefs.h
|
---|
2136 |
|
---|
2137 | $as_echo "/* confdefs.h */" > confdefs.h
|
---|
2138 |
|
---|
2139 | # Predefined preprocessor variables.
|
---|
2140 |
|
---|
2141 | cat >>confdefs.h <<_ACEOF
|
---|
2142 | #define PACKAGE_NAME "$PACKAGE_NAME"
|
---|
2143 | _ACEOF
|
---|
2144 |
|
---|
2145 | cat >>confdefs.h <<_ACEOF
|
---|
2146 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
---|
2147 | _ACEOF
|
---|
2148 |
|
---|
2149 | cat >>confdefs.h <<_ACEOF
|
---|
2150 | #define PACKAGE_VERSION "$PACKAGE_VERSION"
|
---|
2151 | _ACEOF
|
---|
2152 |
|
---|
2153 | cat >>confdefs.h <<_ACEOF
|
---|
2154 | #define PACKAGE_STRING "$PACKAGE_STRING"
|
---|
2155 | _ACEOF
|
---|
2156 |
|
---|
2157 | cat >>confdefs.h <<_ACEOF
|
---|
2158 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
---|
2159 | _ACEOF
|
---|
2160 |
|
---|
2161 | cat >>confdefs.h <<_ACEOF
|
---|
2162 | #define PACKAGE_URL "$PACKAGE_URL"
|
---|
2163 | _ACEOF
|
---|
2164 |
|
---|
2165 |
|
---|
2166 | # Let the site file select an alternate cache file if it wants to.
|
---|
2167 | # Prefer an explicitly selected file to automatically selected ones.
|
---|
2168 | ac_site_file1=NONE
|
---|
2169 | ac_site_file2=NONE
|
---|
2170 | if test -n "$CONFIG_SITE"; then
|
---|
2171 | # We do not want a PATH search for config.site.
|
---|
2172 | case $CONFIG_SITE in #((
|
---|
2173 | -*) ac_site_file1=./$CONFIG_SITE;;
|
---|
2174 | */*) ac_site_file1=$CONFIG_SITE;;
|
---|
2175 | *) ac_site_file1=./$CONFIG_SITE;;
|
---|
2176 | esac
|
---|
2177 | elif test "x$prefix" != xNONE; then
|
---|
2178 | ac_site_file1=$prefix/share/config.site
|
---|
2179 | ac_site_file2=$prefix/etc/config.site
|
---|
2180 | else
|
---|
2181 | ac_site_file1=$ac_default_prefix/share/config.site
|
---|
2182 | ac_site_file2=$ac_default_prefix/etc/config.site
|
---|
2183 | fi
|
---|
2184 | for ac_site_file in "$ac_site_file1" "$ac_site_file2"
|
---|
2185 | do
|
---|
2186 | test "x$ac_site_file" = xNONE && continue
|
---|
2187 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
|
---|
2188 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
|
---|
2189 | $as_echo "$as_me: loading site script $ac_site_file" >&6;}
|
---|
2190 | sed 's/^/| /' "$ac_site_file" >&5
|
---|
2191 | . "$ac_site_file" \
|
---|
2192 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2193 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2194 | as_fn_error $? "failed to load site script $ac_site_file
|
---|
2195 | See \`config.log' for more details" "$LINENO" 5 ; }
|
---|
2196 | fi
|
---|
2197 | done
|
---|
2198 |
|
---|
2199 | if test -r "$cache_file"; then
|
---|
2200 | # Some versions of bash will fail to source /dev/null (special files
|
---|
2201 | # actually), so we avoid doing that. DJGPP emulates it as a regular file.
|
---|
2202 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then
|
---|
2203 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
|
---|
2204 | $as_echo "$as_me: loading cache $cache_file" >&6;}
|
---|
2205 | case $cache_file in
|
---|
2206 | [\\/]* | ?:[\\/]* ) . "$cache_file";;
|
---|
2207 | *) . "./$cache_file";;
|
---|
2208 | esac
|
---|
2209 | fi
|
---|
2210 | else
|
---|
2211 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
|
---|
2212 | $as_echo "$as_me: creating cache $cache_file" >&6;}
|
---|
2213 | >$cache_file
|
---|
2214 | fi
|
---|
2215 |
|
---|
2216 | # Check that the precious variables saved in the cache have kept the same
|
---|
2217 | # value.
|
---|
2218 | ac_cache_corrupted=false
|
---|
2219 | for ac_var in $ac_precious_vars; do
|
---|
2220 | eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
---|
2221 | eval ac_new_set=\$ac_env_${ac_var}_set
|
---|
2222 | eval ac_old_val=\$ac_cv_env_${ac_var}_value
|
---|
2223 | eval ac_new_val=\$ac_env_${ac_var}_value
|
---|
2224 | case $ac_old_set,$ac_new_set in
|
---|
2225 | set,)
|
---|
2226 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
---|
2227 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
---|
2228 | ac_cache_corrupted=: ;;
|
---|
2229 | ,set)
|
---|
2230 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
|
---|
2231 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
---|
2232 | ac_cache_corrupted=: ;;
|
---|
2233 | ,);;
|
---|
2234 | *)
|
---|
2235 | if test "x$ac_old_val" != "x$ac_new_val"; then
|
---|
2236 | # differences in whitespace do not lead to failure.
|
---|
2237 | ac_old_val_w=`echo x $ac_old_val`
|
---|
2238 | ac_new_val_w=`echo x $ac_new_val`
|
---|
2239 | if test "$ac_old_val_w" != "$ac_new_val_w"; then
|
---|
2240 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
|
---|
2241 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
---|
2242 | ac_cache_corrupted=:
|
---|
2243 | else
|
---|
2244 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
|
---|
2245 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
|
---|
2246 | eval $ac_var=\$ac_old_val
|
---|
2247 | fi
|
---|
2248 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
|
---|
2249 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
|
---|
2250 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
|
---|
2251 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
|
---|
2252 | fi;;
|
---|
2253 | esac
|
---|
2254 | # Pass precious variables to config.status.
|
---|
2255 | if test "$ac_new_set" = set; then
|
---|
2256 | case $ac_new_val in
|
---|
2257 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
2258 | *) ac_arg=$ac_var=$ac_new_val ;;
|
---|
2259 | esac
|
---|
2260 | case " $ac_configure_args " in
|
---|
2261 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
---|
2262 | *) as_fn_append ac_configure_args " '$ac_arg'" ;;
|
---|
2263 | esac
|
---|
2264 | fi
|
---|
2265 | done
|
---|
2266 | if $ac_cache_corrupted; then
|
---|
2267 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2268 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2269 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
|
---|
2270 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
---|
2271 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
|
---|
2272 | fi
|
---|
2273 | ## -------------------- ##
|
---|
2274 | ## Main body of script. ##
|
---|
2275 | ## -------------------- ##
|
---|
2276 |
|
---|
2277 | ac_ext=c
|
---|
2278 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2279 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2280 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2281 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
2282 |
|
---|
2283 |
|
---|
2284 | ac_config_headers="$ac_config_headers config.h"
|
---|
2285 |
|
---|
2286 |
|
---|
2287 |
|
---|
2288 | PACKAGE=gsdl
|
---|
2289 | VERSION=2.x-svn
|
---|
2290 | cat >>confdefs.h <<_ACEOF
|
---|
2291 | #define PACKAGE "$PACKAGE"
|
---|
2292 | _ACEOF
|
---|
2293 |
|
---|
2294 | cat >>confdefs.h <<_ACEOF
|
---|
2295 | #define VERSION "$VERSION"
|
---|
2296 | _ACEOF
|
---|
2297 |
|
---|
2298 |
|
---|
2299 |
|
---|
2300 |
|
---|
2301 | USE_FASTCGI=0
|
---|
2302 | if test USE_FASTCGI = 1; then
|
---|
2303 | $as_echo "#define USE_FASTCGI 1" >>confdefs.h
|
---|
2304 |
|
---|
2305 |
|
---|
2306 | fi
|
---|
2307 |
|
---|
2308 | if test USE_LANGACTION = 1; then
|
---|
2309 | $as_echo "#define USE_LANGACTION 1" >>confdefs.h
|
---|
2310 |
|
---|
2311 |
|
---|
2312 | fi
|
---|
2313 |
|
---|
2314 | # Check whether --enable-corba was given.
|
---|
2315 | if test "${enable_corba+set}" = set; then :
|
---|
2316 | enableval=$enable_corba; USE_CORBA=$enableval
|
---|
2317 | else
|
---|
2318 | USE_CORBA=no
|
---|
2319 | fi
|
---|
2320 |
|
---|
2321 | if test $USE_CORBA = "yes" -o $USE_CORBA = "1" ; then
|
---|
2322 | USE_CORBA=1
|
---|
2323 | $as_echo "#define USE_CORBA /**/" >>confdefs.h
|
---|
2324 |
|
---|
2325 | else
|
---|
2326 | USE_CORBA=0
|
---|
2327 | fi
|
---|
2328 |
|
---|
2329 |
|
---|
2330 |
|
---|
2331 | # Check whether --with-micodir was given.
|
---|
2332 | if test "${with_micodir+set}" = set; then :
|
---|
2333 | withval=$with_micodir; MICO_DIR=$withval
|
---|
2334 | else
|
---|
2335 | MICO_DIR="default"
|
---|
2336 | fi
|
---|
2337 |
|
---|
2338 | cat >>confdefs.h <<_ACEOF
|
---|
2339 | #define MICO_DIR "$MICO_DIR"
|
---|
2340 | _ACEOF
|
---|
2341 |
|
---|
2342 |
|
---|
2343 |
|
---|
2344 | # Check whether --enable-z3950 was given.
|
---|
2345 | if test "${enable_z3950+set}" = set; then :
|
---|
2346 | enableval=$enable_z3950; USE_Z3950=$enableval
|
---|
2347 | else
|
---|
2348 | USE_Z3950=no
|
---|
2349 | fi
|
---|
2350 |
|
---|
2351 | if test $USE_Z3950 = "yes" -o $USE_Z3950 = "1" ; then
|
---|
2352 | USE_Z3950=1
|
---|
2353 | $as_echo "#define USE_Z3950 /**/" >>confdefs.h
|
---|
2354 |
|
---|
2355 | else
|
---|
2356 | USE_Z3950=0
|
---|
2357 | fi
|
---|
2358 |
|
---|
2359 |
|
---|
2360 | # Check whether --enable-yaz was given.
|
---|
2361 | if test "${enable_yaz+set}" = set; then :
|
---|
2362 | enableval=$enable_yaz; USE_YAZ=$enableval
|
---|
2363 | else
|
---|
2364 | USE_YAZ=yes
|
---|
2365 | fi
|
---|
2366 |
|
---|
2367 | if test $USE_YAZ = "yes" -o $USE_YAZ = "1" ; then
|
---|
2368 | USE_YAZ=1
|
---|
2369 | $as_echo "#define USE_YAZ /**/" >>confdefs.h
|
---|
2370 |
|
---|
2371 | else
|
---|
2372 | USE_YAZ=0
|
---|
2373 | fi
|
---|
2374 |
|
---|
2375 |
|
---|
2376 | # Check whether --enable-java was given.
|
---|
2377 | if test "${enable_java+set}" = set; then :
|
---|
2378 | enableval=$enable_java; ENABLE_JAVA=$enableval
|
---|
2379 | else
|
---|
2380 | ENABLE_JAVA=yes
|
---|
2381 | fi
|
---|
2382 |
|
---|
2383 | if test $ENABLE_JAVA = "yes" -o $ENABLE_JAVA = "1" ; then
|
---|
2384 | ENABLE_JAVA=1
|
---|
2385 | if test "x$JAVA_HOME" != "x" ; then
|
---|
2386 | echo "Detected JAVA_HOME is set, however this will not be used during compilation"
|
---|
2387 | echo "To control the version of 'javac' and 'java' set environment variables JAVAC"
|
---|
2388 | echo "and JAVA respectively"
|
---|
2389 | export JAVA_HOME=
|
---|
2390 | fi
|
---|
2391 | else
|
---|
2392 | ENABLE_JAVA=0
|
---|
2393 | fi
|
---|
2394 |
|
---|
2395 |
|
---|
2396 | # Check whether --enable-jdbm was given.
|
---|
2397 | if test "${enable_jdbm+set}" = set; then :
|
---|
2398 | enableval=$enable_jdbm; USE_JDBM=$enableval
|
---|
2399 | else
|
---|
2400 | USE_JDBM=yes
|
---|
2401 | fi
|
---|
2402 |
|
---|
2403 | if test $ENABLE_JAVA = "1" -a \( $USE_JDBM = "yes" -o $USE_JDBM = "1" \) ; then
|
---|
2404 | USE_JDBM=1
|
---|
2405 | $as_echo "#define USE_JDBM /**/" >>confdefs.h
|
---|
2406 |
|
---|
2407 | else
|
---|
2408 | USE_JDBM=0
|
---|
2409 | fi
|
---|
2410 |
|
---|
2411 |
|
---|
2412 | # Check whether --enable-gdbm was given.
|
---|
2413 | if test "${enable_gdbm+set}" = set; then :
|
---|
2414 | enableval=$enable_gdbm; USE_GDBM=$enableval
|
---|
2415 | else
|
---|
2416 | USE_GDBM=yes
|
---|
2417 | fi
|
---|
2418 |
|
---|
2419 | if test $USE_GDBM = "yes" -o $USE_GDBM = "1" ; then
|
---|
2420 | USE_GDBM=1
|
---|
2421 | $as_echo "#define USE_GDBM /**/" >>confdefs.h
|
---|
2422 |
|
---|
2423 | else
|
---|
2424 | USE_GDBM=0
|
---|
2425 | fi
|
---|
2426 |
|
---|
2427 |
|
---|
2428 | # Check whether --enable-accentfold was given.
|
---|
2429 | if test "${enable_accentfold+set}" = set; then :
|
---|
2430 | enableval=$enable_accentfold; ENABLE_ACCENTFOLD=$enableval
|
---|
2431 | else
|
---|
2432 | ENABLE_ACCENTFOLD=yes
|
---|
2433 | fi
|
---|
2434 |
|
---|
2435 | if test $ENABLE_ACCENTFOLD = "yes" -o $ENABLE_ACCENTFOLD = "1" ; then
|
---|
2436 | ENABLE_ACCENTFOLD=1
|
---|
2437 | $as_echo "#define ENABLE_ACCENTFOLD /**/" >>confdefs.h
|
---|
2438 |
|
---|
2439 | else
|
---|
2440 | ENABLE_ACCENTFOLD=0
|
---|
2441 | fi
|
---|
2442 |
|
---|
2443 |
|
---|
2444 | # Check whether --enable-sqlite was given.
|
---|
2445 | if test "${enable_sqlite+set}" = set; then :
|
---|
2446 | enableval=$enable_sqlite; USE_SQLITE=$enableval
|
---|
2447 | else
|
---|
2448 | USE_SQLITE=yes
|
---|
2449 | fi
|
---|
2450 |
|
---|
2451 | if test $USE_SQLITE = "yes" -o $USE_SQLITE = "1" ; then
|
---|
2452 | USE_SQLITE=1
|
---|
2453 | $as_echo "#define USE_SQLITE /**/" >>confdefs.h
|
---|
2454 |
|
---|
2455 | else
|
---|
2456 | USE_SQLITE=0
|
---|
2457 | fi
|
---|
2458 |
|
---|
2459 |
|
---|
2460 | LDFLAGS=$LDFLAGS
|
---|
2461 |
|
---|
2462 | if test -z "$CFLAGS"; then
|
---|
2463 | CFLAGS=-O2
|
---|
2464 | fi
|
---|
2465 |
|
---|
2466 |
|
---|
2467 |
|
---|
2468 | ac_ext=c
|
---|
2469 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2470 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2471 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2472 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
2473 | if test -n "$ac_tool_prefix"; then
|
---|
2474 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
---|
2475 | set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
---|
2476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2477 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2478 | if test "${ac_cv_prog_CC+set}" = set; then :
|
---|
2479 | $as_echo_n "(cached) " >&6
|
---|
2480 | else
|
---|
2481 | if test -n "$CC"; then
|
---|
2482 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2483 | else
|
---|
2484 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2485 | for as_dir in $PATH
|
---|
2486 | do
|
---|
2487 | IFS=$as_save_IFS
|
---|
2488 | test -z "$as_dir" && as_dir=.
|
---|
2489 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2490 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
2491 | ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
---|
2492 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2493 | break 2
|
---|
2494 | fi
|
---|
2495 | done
|
---|
2496 | done
|
---|
2497 | IFS=$as_save_IFS
|
---|
2498 |
|
---|
2499 | fi
|
---|
2500 | fi
|
---|
2501 | CC=$ac_cv_prog_CC
|
---|
2502 | if test -n "$CC"; then
|
---|
2503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
2504 | $as_echo "$CC" >&6; }
|
---|
2505 | else
|
---|
2506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2507 | $as_echo "no" >&6; }
|
---|
2508 | fi
|
---|
2509 |
|
---|
2510 |
|
---|
2511 | fi
|
---|
2512 | if test -z "$ac_cv_prog_CC"; then
|
---|
2513 | ac_ct_CC=$CC
|
---|
2514 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
2515 | set dummy gcc; ac_word=$2
|
---|
2516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2517 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2518 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
|
---|
2519 | $as_echo_n "(cached) " >&6
|
---|
2520 | else
|
---|
2521 | if test -n "$ac_ct_CC"; then
|
---|
2522 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
2523 | else
|
---|
2524 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2525 | for as_dir in $PATH
|
---|
2526 | do
|
---|
2527 | IFS=$as_save_IFS
|
---|
2528 | test -z "$as_dir" && as_dir=.
|
---|
2529 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2530 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
2531 | ac_cv_prog_ac_ct_CC="gcc"
|
---|
2532 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2533 | break 2
|
---|
2534 | fi
|
---|
2535 | done
|
---|
2536 | done
|
---|
2537 | IFS=$as_save_IFS
|
---|
2538 |
|
---|
2539 | fi
|
---|
2540 | fi
|
---|
2541 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
2542 | if test -n "$ac_ct_CC"; then
|
---|
2543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
---|
2544 | $as_echo "$ac_ct_CC" >&6; }
|
---|
2545 | else
|
---|
2546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2547 | $as_echo "no" >&6; }
|
---|
2548 | fi
|
---|
2549 |
|
---|
2550 | if test "x$ac_ct_CC" = x; then
|
---|
2551 | CC=""
|
---|
2552 | else
|
---|
2553 | case $cross_compiling:$ac_tool_warned in
|
---|
2554 | yes:)
|
---|
2555 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
2556 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
2557 | ac_tool_warned=yes ;;
|
---|
2558 | esac
|
---|
2559 | CC=$ac_ct_CC
|
---|
2560 | fi
|
---|
2561 | else
|
---|
2562 | CC="$ac_cv_prog_CC"
|
---|
2563 | fi
|
---|
2564 |
|
---|
2565 | if test -z "$CC"; then
|
---|
2566 | if test -n "$ac_tool_prefix"; then
|
---|
2567 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
---|
2568 | set dummy ${ac_tool_prefix}cc; ac_word=$2
|
---|
2569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2570 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2571 | if test "${ac_cv_prog_CC+set}" = set; then :
|
---|
2572 | $as_echo_n "(cached) " >&6
|
---|
2573 | else
|
---|
2574 | if test -n "$CC"; then
|
---|
2575 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2576 | else
|
---|
2577 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2578 | for as_dir in $PATH
|
---|
2579 | do
|
---|
2580 | IFS=$as_save_IFS
|
---|
2581 | test -z "$as_dir" && as_dir=.
|
---|
2582 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2583 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
2584 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
---|
2585 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2586 | break 2
|
---|
2587 | fi
|
---|
2588 | done
|
---|
2589 | done
|
---|
2590 | IFS=$as_save_IFS
|
---|
2591 |
|
---|
2592 | fi
|
---|
2593 | fi
|
---|
2594 | CC=$ac_cv_prog_CC
|
---|
2595 | if test -n "$CC"; then
|
---|
2596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
2597 | $as_echo "$CC" >&6; }
|
---|
2598 | else
|
---|
2599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2600 | $as_echo "no" >&6; }
|
---|
2601 | fi
|
---|
2602 |
|
---|
2603 |
|
---|
2604 | fi
|
---|
2605 | fi
|
---|
2606 | if test -z "$CC"; then
|
---|
2607 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
2608 | set dummy cc; ac_word=$2
|
---|
2609 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2610 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2611 | if test "${ac_cv_prog_CC+set}" = set; then :
|
---|
2612 | $as_echo_n "(cached) " >&6
|
---|
2613 | else
|
---|
2614 | if test -n "$CC"; then
|
---|
2615 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2616 | else
|
---|
2617 | ac_prog_rejected=no
|
---|
2618 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2619 | for as_dir in $PATH
|
---|
2620 | do
|
---|
2621 | IFS=$as_save_IFS
|
---|
2622 | test -z "$as_dir" && as_dir=.
|
---|
2623 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2624 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
2625 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
---|
2626 | ac_prog_rejected=yes
|
---|
2627 | continue
|
---|
2628 | fi
|
---|
2629 | ac_cv_prog_CC="cc"
|
---|
2630 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2631 | break 2
|
---|
2632 | fi
|
---|
2633 | done
|
---|
2634 | done
|
---|
2635 | IFS=$as_save_IFS
|
---|
2636 |
|
---|
2637 | if test $ac_prog_rejected = yes; then
|
---|
2638 | # We found a bogon in the path, so make sure we never use it.
|
---|
2639 | set dummy $ac_cv_prog_CC
|
---|
2640 | shift
|
---|
2641 | if test $# != 0; then
|
---|
2642 | # We chose a different compiler from the bogus one.
|
---|
2643 | # However, it has the same basename, so the bogon will be chosen
|
---|
2644 | # first if we set CC to just the basename; use the full file name.
|
---|
2645 | shift
|
---|
2646 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
---|
2647 | fi
|
---|
2648 | fi
|
---|
2649 | fi
|
---|
2650 | fi
|
---|
2651 | CC=$ac_cv_prog_CC
|
---|
2652 | if test -n "$CC"; then
|
---|
2653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
2654 | $as_echo "$CC" >&6; }
|
---|
2655 | else
|
---|
2656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2657 | $as_echo "no" >&6; }
|
---|
2658 | fi
|
---|
2659 |
|
---|
2660 |
|
---|
2661 | fi
|
---|
2662 | if test -z "$CC"; then
|
---|
2663 | if test -n "$ac_tool_prefix"; then
|
---|
2664 | for ac_prog in cl.exe
|
---|
2665 | do
|
---|
2666 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
2667 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
2668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2669 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2670 | if test "${ac_cv_prog_CC+set}" = set; then :
|
---|
2671 | $as_echo_n "(cached) " >&6
|
---|
2672 | else
|
---|
2673 | if test -n "$CC"; then
|
---|
2674 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2675 | else
|
---|
2676 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2677 | for as_dir in $PATH
|
---|
2678 | do
|
---|
2679 | IFS=$as_save_IFS
|
---|
2680 | test -z "$as_dir" && as_dir=.
|
---|
2681 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2682 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
2683 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
---|
2684 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2685 | break 2
|
---|
2686 | fi
|
---|
2687 | done
|
---|
2688 | done
|
---|
2689 | IFS=$as_save_IFS
|
---|
2690 |
|
---|
2691 | fi
|
---|
2692 | fi
|
---|
2693 | CC=$ac_cv_prog_CC
|
---|
2694 | if test -n "$CC"; then
|
---|
2695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
2696 | $as_echo "$CC" >&6; }
|
---|
2697 | else
|
---|
2698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2699 | $as_echo "no" >&6; }
|
---|
2700 | fi
|
---|
2701 |
|
---|
2702 |
|
---|
2703 | test -n "$CC" && break
|
---|
2704 | done
|
---|
2705 | fi
|
---|
2706 | if test -z "$CC"; then
|
---|
2707 | ac_ct_CC=$CC
|
---|
2708 | for ac_prog in cl.exe
|
---|
2709 | do
|
---|
2710 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
2711 | set dummy $ac_prog; ac_word=$2
|
---|
2712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2713 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2714 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
|
---|
2715 | $as_echo_n "(cached) " >&6
|
---|
2716 | else
|
---|
2717 | if test -n "$ac_ct_CC"; then
|
---|
2718 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
2719 | else
|
---|
2720 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2721 | for as_dir in $PATH
|
---|
2722 | do
|
---|
2723 | IFS=$as_save_IFS
|
---|
2724 | test -z "$as_dir" && as_dir=.
|
---|
2725 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2726 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
2727 | ac_cv_prog_ac_ct_CC="$ac_prog"
|
---|
2728 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2729 | break 2
|
---|
2730 | fi
|
---|
2731 | done
|
---|
2732 | done
|
---|
2733 | IFS=$as_save_IFS
|
---|
2734 |
|
---|
2735 | fi
|
---|
2736 | fi
|
---|
2737 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
2738 | if test -n "$ac_ct_CC"; then
|
---|
2739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
---|
2740 | $as_echo "$ac_ct_CC" >&6; }
|
---|
2741 | else
|
---|
2742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2743 | $as_echo "no" >&6; }
|
---|
2744 | fi
|
---|
2745 |
|
---|
2746 |
|
---|
2747 | test -n "$ac_ct_CC" && break
|
---|
2748 | done
|
---|
2749 |
|
---|
2750 | if test "x$ac_ct_CC" = x; then
|
---|
2751 | CC=""
|
---|
2752 | else
|
---|
2753 | case $cross_compiling:$ac_tool_warned in
|
---|
2754 | yes:)
|
---|
2755 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
2756 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
2757 | ac_tool_warned=yes ;;
|
---|
2758 | esac
|
---|
2759 | CC=$ac_ct_CC
|
---|
2760 | fi
|
---|
2761 | fi
|
---|
2762 |
|
---|
2763 | fi
|
---|
2764 |
|
---|
2765 |
|
---|
2766 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2767 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2768 | as_fn_error $? "no acceptable C compiler found in \$PATH
|
---|
2769 | See \`config.log' for more details" "$LINENO" 5 ; }
|
---|
2770 |
|
---|
2771 | # Provide some information about the compiler.
|
---|
2772 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
|
---|
2773 | set X $ac_compile
|
---|
2774 | ac_compiler=$2
|
---|
2775 | for ac_option in --version -v -V -qversion; do
|
---|
2776 | { { ac_try="$ac_compiler $ac_option >&5"
|
---|
2777 | case "(($ac_try" in
|
---|
2778 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2779 | *) ac_try_echo=$ac_try;;
|
---|
2780 | esac
|
---|
2781 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
2782 | $as_echo "$ac_try_echo"; } >&5
|
---|
2783 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err
|
---|
2784 | ac_status=$?
|
---|
2785 | if test -s conftest.err; then
|
---|
2786 | sed '10a\
|
---|
2787 | ... rest of stderr output deleted ...
|
---|
2788 | 10q' conftest.err >conftest.er1
|
---|
2789 | cat conftest.er1 >&5
|
---|
2790 | fi
|
---|
2791 | rm -f conftest.er1 conftest.err
|
---|
2792 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
2793 | test $ac_status = 0; }
|
---|
2794 | done
|
---|
2795 |
|
---|
2796 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
2797 | /* end confdefs.h. */
|
---|
2798 |
|
---|
2799 | int
|
---|
2800 | main ()
|
---|
2801 | {
|
---|
2802 |
|
---|
2803 | ;
|
---|
2804 | return 0;
|
---|
2805 | }
|
---|
2806 | _ACEOF
|
---|
2807 | ac_clean_files_save=$ac_clean_files
|
---|
2808 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
|
---|
2809 | # Try to create an executable without -o first, disregard a.out.
|
---|
2810 | # It will help us diagnose broken compilers, and finding out an intuition
|
---|
2811 | # of exeext.
|
---|
2812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
|
---|
2813 | $as_echo_n "checking whether the C compiler works... " >&6; }
|
---|
2814 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
---|
2815 |
|
---|
2816 | # The possible output files:
|
---|
2817 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
|
---|
2818 |
|
---|
2819 | ac_rmfiles=
|
---|
2820 | for ac_file in $ac_files
|
---|
2821 | do
|
---|
2822 | case $ac_file in
|
---|
2823 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
---|
2824 | * ) ac_rmfiles="$ac_rmfiles $ac_file";;
|
---|
2825 | esac
|
---|
2826 | done
|
---|
2827 | rm -f $ac_rmfiles
|
---|
2828 |
|
---|
2829 | if { { ac_try="$ac_link_default"
|
---|
2830 | case "(($ac_try" in
|
---|
2831 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2832 | *) ac_try_echo=$ac_try;;
|
---|
2833 | esac
|
---|
2834 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
2835 | $as_echo "$ac_try_echo"; } >&5
|
---|
2836 | (eval "$ac_link_default") 2>&5
|
---|
2837 | ac_status=$?
|
---|
2838 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
2839 | test $ac_status = 0; }; then :
|
---|
2840 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
|
---|
2841 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
|
---|
2842 | # in a Makefile. We should not override ac_cv_exeext if it was cached,
|
---|
2843 | # so that the user can short-circuit this test for compilers unknown to
|
---|
2844 | # Autoconf.
|
---|
2845 | for ac_file in $ac_files ''
|
---|
2846 | do
|
---|
2847 | test -f "$ac_file" || continue
|
---|
2848 | case $ac_file in
|
---|
2849 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
|
---|
2850 | ;;
|
---|
2851 | [ab].out )
|
---|
2852 | # We found the default executable, but exeext='' is most
|
---|
2853 | # certainly right.
|
---|
2854 | break;;
|
---|
2855 | *.* )
|
---|
2856 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
|
---|
2857 | then :; else
|
---|
2858 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
2859 | fi
|
---|
2860 | # We set ac_cv_exeext here because the later test for it is not
|
---|
2861 | # safe: cross compilers may not add the suffix if given an `-o'
|
---|
2862 | # argument, so we may need to know it at that point already.
|
---|
2863 | # Even if this section looks crufty: it has the advantage of
|
---|
2864 | # actually working.
|
---|
2865 | break;;
|
---|
2866 | * )
|
---|
2867 | break;;
|
---|
2868 | esac
|
---|
2869 | done
|
---|
2870 | test "$ac_cv_exeext" = no && ac_cv_exeext=
|
---|
2871 |
|
---|
2872 | else
|
---|
2873 | ac_file=''
|
---|
2874 | fi
|
---|
2875 | if test -z "$ac_file"; then :
|
---|
2876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2877 | $as_echo "no" >&6; }
|
---|
2878 | $as_echo "$as_me: failed program was:" >&5
|
---|
2879 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2880 |
|
---|
2881 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2882 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2883 | as_fn_error 77 "C compiler cannot create executables
|
---|
2884 | See \`config.log' for more details" "$LINENO" 5 ; }
|
---|
2885 | else
|
---|
2886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
2887 | $as_echo "yes" >&6; }
|
---|
2888 | fi
|
---|
2889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
|
---|
2890 | $as_echo_n "checking for C compiler default output file name... " >&6; }
|
---|
2891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
|
---|
2892 | $as_echo "$ac_file" >&6; }
|
---|
2893 | ac_exeext=$ac_cv_exeext
|
---|
2894 |
|
---|
2895 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
|
---|
2896 | ac_clean_files=$ac_clean_files_save
|
---|
2897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
|
---|
2898 | $as_echo_n "checking for suffix of executables... " >&6; }
|
---|
2899 | if { { ac_try="$ac_link"
|
---|
2900 | case "(($ac_try" in
|
---|
2901 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2902 | *) ac_try_echo=$ac_try;;
|
---|
2903 | esac
|
---|
2904 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
2905 | $as_echo "$ac_try_echo"; } >&5
|
---|
2906 | (eval "$ac_link") 2>&5
|
---|
2907 | ac_status=$?
|
---|
2908 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
2909 | test $ac_status = 0; }; then :
|
---|
2910 | # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
---|
2911 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
---|
2912 | # work properly (i.e., refer to `conftest.exe'), while it won't with
|
---|
2913 | # `rm'.
|
---|
2914 | for ac_file in conftest.exe conftest conftest.*; do
|
---|
2915 | test -f "$ac_file" || continue
|
---|
2916 | case $ac_file in
|
---|
2917 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
---|
2918 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
2919 | break;;
|
---|
2920 | * ) break;;
|
---|
2921 | esac
|
---|
2922 | done
|
---|
2923 | else
|
---|
2924 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2925 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2926 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link
|
---|
2927 | See \`config.log' for more details" "$LINENO" 5 ; }
|
---|
2928 | fi
|
---|
2929 | rm -f conftest conftest$ac_cv_exeext
|
---|
2930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
|
---|
2931 | $as_echo "$ac_cv_exeext" >&6; }
|
---|
2932 |
|
---|
2933 | rm -f conftest.$ac_ext
|
---|
2934 | EXEEXT=$ac_cv_exeext
|
---|
2935 | ac_exeext=$EXEEXT
|
---|
2936 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
2937 | /* end confdefs.h. */
|
---|
2938 | #include <stdio.h>
|
---|
2939 | int
|
---|
2940 | main ()
|
---|
2941 | {
|
---|
2942 | FILE *f = fopen ("conftest.out", "w");
|
---|
2943 | return ferror (f) || fclose (f) != 0;
|
---|
2944 |
|
---|
2945 | ;
|
---|
2946 | return 0;
|
---|
2947 | }
|
---|
2948 | _ACEOF
|
---|
2949 | ac_clean_files="$ac_clean_files conftest.out"
|
---|
2950 | # Check that the compiler produces executables we can run. If not, either
|
---|
2951 | # the compiler is broken, or we cross compile.
|
---|
2952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
|
---|
2953 | $as_echo_n "checking whether we are cross compiling... " >&6; }
|
---|
2954 | if test "$cross_compiling" != yes; then
|
---|
2955 | { { ac_try="$ac_link"
|
---|
2956 | case "(($ac_try" in
|
---|
2957 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2958 | *) ac_try_echo=$ac_try;;
|
---|
2959 | esac
|
---|
2960 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
2961 | $as_echo "$ac_try_echo"; } >&5
|
---|
2962 | (eval "$ac_link") 2>&5
|
---|
2963 | ac_status=$?
|
---|
2964 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
2965 | test $ac_status = 0; }
|
---|
2966 | if { ac_try='./conftest$ac_cv_exeext'
|
---|
2967 | { { case "(($ac_try" in
|
---|
2968 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2969 | *) ac_try_echo=$ac_try;;
|
---|
2970 | esac
|
---|
2971 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
2972 | $as_echo "$ac_try_echo"; } >&5
|
---|
2973 | (eval "$ac_try") 2>&5
|
---|
2974 | ac_status=$?
|
---|
2975 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
2976 | test $ac_status = 0; }; }; then
|
---|
2977 | cross_compiling=no
|
---|
2978 | else
|
---|
2979 | if test "$cross_compiling" = maybe; then
|
---|
2980 | cross_compiling=yes
|
---|
2981 | else
|
---|
2982 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2983 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2984 | as_fn_error $? "cannot run C compiled programs.
|
---|
2985 | If you meant to cross compile, use \`--host'.
|
---|
2986 | See \`config.log' for more details" "$LINENO" 5 ; }
|
---|
2987 | fi
|
---|
2988 | fi
|
---|
2989 | fi
|
---|
2990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
|
---|
2991 | $as_echo "$cross_compiling" >&6; }
|
---|
2992 |
|
---|
2993 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
|
---|
2994 | ac_clean_files=$ac_clean_files_save
|
---|
2995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
|
---|
2996 | $as_echo_n "checking for suffix of object files... " >&6; }
|
---|
2997 | if test "${ac_cv_objext+set}" = set; then :
|
---|
2998 | $as_echo_n "(cached) " >&6
|
---|
2999 | else
|
---|
3000 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3001 | /* end confdefs.h. */
|
---|
3002 |
|
---|
3003 | int
|
---|
3004 | main ()
|
---|
3005 | {
|
---|
3006 |
|
---|
3007 | ;
|
---|
3008 | return 0;
|
---|
3009 | }
|
---|
3010 | _ACEOF
|
---|
3011 | rm -f conftest.o conftest.obj
|
---|
3012 | if { { ac_try="$ac_compile"
|
---|
3013 | case "(($ac_try" in
|
---|
3014 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3015 | *) ac_try_echo=$ac_try;;
|
---|
3016 | esac
|
---|
3017 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
3018 | $as_echo "$ac_try_echo"; } >&5
|
---|
3019 | (eval "$ac_compile") 2>&5
|
---|
3020 | ac_status=$?
|
---|
3021 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
3022 | test $ac_status = 0; }; then :
|
---|
3023 | for ac_file in conftest.o conftest.obj conftest.*; do
|
---|
3024 | test -f "$ac_file" || continue;
|
---|
3025 | case $ac_file in
|
---|
3026 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
|
---|
3027 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
---|
3028 | break;;
|
---|
3029 | esac
|
---|
3030 | done
|
---|
3031 | else
|
---|
3032 | $as_echo "$as_me: failed program was:" >&5
|
---|
3033 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3034 |
|
---|
3035 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
3036 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
3037 | as_fn_error $? "cannot compute suffix of object files: cannot compile
|
---|
3038 | See \`config.log' for more details" "$LINENO" 5 ; }
|
---|
3039 | fi
|
---|
3040 | rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
---|
3041 | fi
|
---|
3042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
|
---|
3043 | $as_echo "$ac_cv_objext" >&6; }
|
---|
3044 | OBJEXT=$ac_cv_objext
|
---|
3045 | ac_objext=$OBJEXT
|
---|
3046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
|
---|
3047 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
|
---|
3048 | if test "${ac_cv_c_compiler_gnu+set}" = set; then :
|
---|
3049 | $as_echo_n "(cached) " >&6
|
---|
3050 | else
|
---|
3051 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3052 | /* end confdefs.h. */
|
---|
3053 |
|
---|
3054 | int
|
---|
3055 | main ()
|
---|
3056 | {
|
---|
3057 | #ifndef __GNUC__
|
---|
3058 | choke me
|
---|
3059 | #endif
|
---|
3060 |
|
---|
3061 | ;
|
---|
3062 | return 0;
|
---|
3063 | }
|
---|
3064 | _ACEOF
|
---|
3065 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3066 | ac_compiler_gnu=yes
|
---|
3067 | else
|
---|
3068 | ac_compiler_gnu=no
|
---|
3069 | fi
|
---|
3070 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3071 | ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
---|
3072 |
|
---|
3073 | fi
|
---|
3074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
|
---|
3075 | $as_echo "$ac_cv_c_compiler_gnu" >&6; }
|
---|
3076 | if test $ac_compiler_gnu = yes; then
|
---|
3077 | GCC=yes
|
---|
3078 | else
|
---|
3079 | GCC=
|
---|
3080 | fi
|
---|
3081 | ac_test_CFLAGS=${CFLAGS+set}
|
---|
3082 | ac_save_CFLAGS=$CFLAGS
|
---|
3083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
|
---|
3084 | $as_echo_n "checking whether $CC accepts -g... " >&6; }
|
---|
3085 | if test "${ac_cv_prog_cc_g+set}" = set; then :
|
---|
3086 | $as_echo_n "(cached) " >&6
|
---|
3087 | else
|
---|
3088 | ac_save_c_werror_flag=$ac_c_werror_flag
|
---|
3089 | ac_c_werror_flag=yes
|
---|
3090 | ac_cv_prog_cc_g=no
|
---|
3091 | CFLAGS="-g"
|
---|
3092 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3093 | /* end confdefs.h. */
|
---|
3094 |
|
---|
3095 | int
|
---|
3096 | main ()
|
---|
3097 | {
|
---|
3098 |
|
---|
3099 | ;
|
---|
3100 | return 0;
|
---|
3101 | }
|
---|
3102 | _ACEOF
|
---|
3103 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3104 | ac_cv_prog_cc_g=yes
|
---|
3105 | else
|
---|
3106 | CFLAGS=""
|
---|
3107 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3108 | /* end confdefs.h. */
|
---|
3109 |
|
---|
3110 | int
|
---|
3111 | main ()
|
---|
3112 | {
|
---|
3113 |
|
---|
3114 | ;
|
---|
3115 | return 0;
|
---|
3116 | }
|
---|
3117 | _ACEOF
|
---|
3118 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3119 |
|
---|
3120 | else
|
---|
3121 | ac_c_werror_flag=$ac_save_c_werror_flag
|
---|
3122 | CFLAGS="-g"
|
---|
3123 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3124 | /* end confdefs.h. */
|
---|
3125 |
|
---|
3126 | int
|
---|
3127 | main ()
|
---|
3128 | {
|
---|
3129 |
|
---|
3130 | ;
|
---|
3131 | return 0;
|
---|
3132 | }
|
---|
3133 | _ACEOF
|
---|
3134 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3135 | ac_cv_prog_cc_g=yes
|
---|
3136 | fi
|
---|
3137 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3138 | fi
|
---|
3139 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3140 | fi
|
---|
3141 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3142 | ac_c_werror_flag=$ac_save_c_werror_flag
|
---|
3143 | fi
|
---|
3144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
|
---|
3145 | $as_echo "$ac_cv_prog_cc_g" >&6; }
|
---|
3146 | if test "$ac_test_CFLAGS" = set; then
|
---|
3147 | CFLAGS=$ac_save_CFLAGS
|
---|
3148 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
3149 | if test "$GCC" = yes; then
|
---|
3150 | CFLAGS="-g -O2"
|
---|
3151 | else
|
---|
3152 | CFLAGS="-g"
|
---|
3153 | fi
|
---|
3154 | else
|
---|
3155 | if test "$GCC" = yes; then
|
---|
3156 | CFLAGS="-O2"
|
---|
3157 | else
|
---|
3158 | CFLAGS=
|
---|
3159 | fi
|
---|
3160 | fi
|
---|
3161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
|
---|
3162 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
|
---|
3163 | if test "${ac_cv_prog_cc_c89+set}" = set; then :
|
---|
3164 | $as_echo_n "(cached) " >&6
|
---|
3165 | else
|
---|
3166 | ac_cv_prog_cc_c89=no
|
---|
3167 | ac_save_CC=$CC
|
---|
3168 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3169 | /* end confdefs.h. */
|
---|
3170 | #include <stdarg.h>
|
---|
3171 | #include <stdio.h>
|
---|
3172 | #include <sys/types.h>
|
---|
3173 | #include <sys/stat.h>
|
---|
3174 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
---|
3175 | struct buf { int x; };
|
---|
3176 | FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
---|
3177 | static char *e (p, i)
|
---|
3178 | char **p;
|
---|
3179 | int i;
|
---|
3180 | {
|
---|
3181 | return p[i];
|
---|
3182 | }
|
---|
3183 | static char *f (char * (*g) (char **, int), char **p, ...)
|
---|
3184 | {
|
---|
3185 | char *s;
|
---|
3186 | va_list v;
|
---|
3187 | va_start (v,p);
|
---|
3188 | s = g (p, va_arg (v,int));
|
---|
3189 | va_end (v);
|
---|
3190 | return s;
|
---|
3191 | }
|
---|
3192 |
|
---|
3193 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
---|
3194 | function prototypes and stuff, but not '\xHH' hex character constants.
|
---|
3195 | These don't provoke an error unfortunately, instead are silently treated
|
---|
3196 | as 'x'. The following induces an error, until -std is added to get
|
---|
3197 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
---|
3198 | array size at least. It's necessary to write '\x00'==0 to get something
|
---|
3199 | that's true only with -std. */
|
---|
3200 | int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
---|
3201 |
|
---|
3202 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|
---|
3203 | inside strings and character constants. */
|
---|
3204 | #define FOO(x) 'x'
|
---|
3205 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
---|
3206 |
|
---|
3207 | int test (int i, double x);
|
---|
3208 | struct s1 {int (*f) (int a);};
|
---|
3209 | struct s2 {int (*f) (double a);};
|
---|
3210 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
---|
3211 | int argc;
|
---|
3212 | char **argv;
|
---|
3213 | int
|
---|
3214 | main ()
|
---|
3215 | {
|
---|
3216 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
---|
3217 | ;
|
---|
3218 | return 0;
|
---|
3219 | }
|
---|
3220 | _ACEOF
|
---|
3221 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
|
---|
3222 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
---|
3223 | do
|
---|
3224 | CC="$ac_save_CC $ac_arg"
|
---|
3225 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3226 | ac_cv_prog_cc_c89=$ac_arg
|
---|
3227 | fi
|
---|
3228 | rm -f core conftest.err conftest.$ac_objext
|
---|
3229 | test "x$ac_cv_prog_cc_c89" != "xno" && break
|
---|
3230 | done
|
---|
3231 | rm -f conftest.$ac_ext
|
---|
3232 | CC=$ac_save_CC
|
---|
3233 |
|
---|
3234 | fi
|
---|
3235 | # AC_CACHE_VAL
|
---|
3236 | case "x$ac_cv_prog_cc_c89" in
|
---|
3237 | x)
|
---|
3238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
|
---|
3239 | $as_echo "none needed" >&6; } ;;
|
---|
3240 | xno)
|
---|
3241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
|
---|
3242 | $as_echo "unsupported" >&6; } ;;
|
---|
3243 | *)
|
---|
3244 | CC="$CC $ac_cv_prog_cc_c89"
|
---|
3245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
|
---|
3246 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
|
---|
3247 | esac
|
---|
3248 | if test "x$ac_cv_prog_cc_c89" != xno; then :
|
---|
3249 |
|
---|
3250 | fi
|
---|
3251 |
|
---|
3252 | ac_ext=c
|
---|
3253 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3254 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3255 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3256 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3257 |
|
---|
3258 | ac_ext=cpp
|
---|
3259 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
3260 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3261 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3262 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
3263 | if test -z "$CXX"; then
|
---|
3264 | if test -n "$CCC"; then
|
---|
3265 | CXX=$CCC
|
---|
3266 | else
|
---|
3267 | if test -n "$ac_tool_prefix"; then
|
---|
3268 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
|
---|
3269 | do
|
---|
3270 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
3271 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
3272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3273 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3274 | if test "${ac_cv_prog_CXX+set}" = set; then :
|
---|
3275 | $as_echo_n "(cached) " >&6
|
---|
3276 | else
|
---|
3277 | if test -n "$CXX"; then
|
---|
3278 | ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
---|
3279 | else
|
---|
3280 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3281 | for as_dir in $PATH
|
---|
3282 | do
|
---|
3283 | IFS=$as_save_IFS
|
---|
3284 | test -z "$as_dir" && as_dir=.
|
---|
3285 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3286 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
3287 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
|
---|
3288 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3289 | break 2
|
---|
3290 | fi
|
---|
3291 | done
|
---|
3292 | done
|
---|
3293 | IFS=$as_save_IFS
|
---|
3294 |
|
---|
3295 | fi
|
---|
3296 | fi
|
---|
3297 | CXX=$ac_cv_prog_CXX
|
---|
3298 | if test -n "$CXX"; then
|
---|
3299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
|
---|
3300 | $as_echo "$CXX" >&6; }
|
---|
3301 | else
|
---|
3302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3303 | $as_echo "no" >&6; }
|
---|
3304 | fi
|
---|
3305 |
|
---|
3306 |
|
---|
3307 | test -n "$CXX" && break
|
---|
3308 | done
|
---|
3309 | fi
|
---|
3310 | if test -z "$CXX"; then
|
---|
3311 | ac_ct_CXX=$CXX
|
---|
3312 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
|
---|
3313 | do
|
---|
3314 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
3315 | set dummy $ac_prog; ac_word=$2
|
---|
3316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3317 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3318 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
|
---|
3319 | $as_echo_n "(cached) " >&6
|
---|
3320 | else
|
---|
3321 | if test -n "$ac_ct_CXX"; then
|
---|
3322 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
|
---|
3323 | else
|
---|
3324 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3325 | for as_dir in $PATH
|
---|
3326 | do
|
---|
3327 | IFS=$as_save_IFS
|
---|
3328 | test -z "$as_dir" && as_dir=.
|
---|
3329 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3330 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
3331 | ac_cv_prog_ac_ct_CXX="$ac_prog"
|
---|
3332 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3333 | break 2
|
---|
3334 | fi
|
---|
3335 | done
|
---|
3336 | done
|
---|
3337 | IFS=$as_save_IFS
|
---|
3338 |
|
---|
3339 | fi
|
---|
3340 | fi
|
---|
3341 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
|
---|
3342 | if test -n "$ac_ct_CXX"; then
|
---|
3343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
|
---|
3344 | $as_echo "$ac_ct_CXX" >&6; }
|
---|
3345 | else
|
---|
3346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3347 | $as_echo "no" >&6; }
|
---|
3348 | fi
|
---|
3349 |
|
---|
3350 |
|
---|
3351 | test -n "$ac_ct_CXX" && break
|
---|
3352 | done
|
---|
3353 |
|
---|
3354 | if test "x$ac_ct_CXX" = x; then
|
---|
3355 | CXX="g++"
|
---|
3356 | else
|
---|
3357 | case $cross_compiling:$ac_tool_warned in
|
---|
3358 | yes:)
|
---|
3359 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
3360 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
3361 | ac_tool_warned=yes ;;
|
---|
3362 | esac
|
---|
3363 | CXX=$ac_ct_CXX
|
---|
3364 | fi
|
---|
3365 | fi
|
---|
3366 |
|
---|
3367 | fi
|
---|
3368 | fi
|
---|
3369 | # Provide some information about the compiler.
|
---|
3370 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
|
---|
3371 | set X $ac_compile
|
---|
3372 | ac_compiler=$2
|
---|
3373 | for ac_option in --version -v -V -qversion; do
|
---|
3374 | { { ac_try="$ac_compiler $ac_option >&5"
|
---|
3375 | case "(($ac_try" in
|
---|
3376 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3377 | *) ac_try_echo=$ac_try;;
|
---|
3378 | esac
|
---|
3379 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
3380 | $as_echo "$ac_try_echo"; } >&5
|
---|
3381 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err
|
---|
3382 | ac_status=$?
|
---|
3383 | if test -s conftest.err; then
|
---|
3384 | sed '10a\
|
---|
3385 | ... rest of stderr output deleted ...
|
---|
3386 | 10q' conftest.err >conftest.er1
|
---|
3387 | cat conftest.er1 >&5
|
---|
3388 | fi
|
---|
3389 | rm -f conftest.er1 conftest.err
|
---|
3390 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
3391 | test $ac_status = 0; }
|
---|
3392 | done
|
---|
3393 |
|
---|
3394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
|
---|
3395 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
|
---|
3396 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
|
---|
3397 | $as_echo_n "(cached) " >&6
|
---|
3398 | else
|
---|
3399 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3400 | /* end confdefs.h. */
|
---|
3401 |
|
---|
3402 | int
|
---|
3403 | main ()
|
---|
3404 | {
|
---|
3405 | #ifndef __GNUC__
|
---|
3406 | choke me
|
---|
3407 | #endif
|
---|
3408 |
|
---|
3409 | ;
|
---|
3410 | return 0;
|
---|
3411 | }
|
---|
3412 | _ACEOF
|
---|
3413 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
3414 | ac_compiler_gnu=yes
|
---|
3415 | else
|
---|
3416 | ac_compiler_gnu=no
|
---|
3417 | fi
|
---|
3418 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3419 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
|
---|
3420 |
|
---|
3421 | fi
|
---|
3422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
|
---|
3423 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
|
---|
3424 | if test $ac_compiler_gnu = yes; then
|
---|
3425 | GXX=yes
|
---|
3426 | else
|
---|
3427 | GXX=
|
---|
3428 | fi
|
---|
3429 | ac_test_CXXFLAGS=${CXXFLAGS+set}
|
---|
3430 | ac_save_CXXFLAGS=$CXXFLAGS
|
---|
3431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
|
---|
3432 | $as_echo_n "checking whether $CXX accepts -g... " >&6; }
|
---|
3433 | if test "${ac_cv_prog_cxx_g+set}" = set; then :
|
---|
3434 | $as_echo_n "(cached) " >&6
|
---|
3435 | else
|
---|
3436 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag
|
---|
3437 | ac_cxx_werror_flag=yes
|
---|
3438 | ac_cv_prog_cxx_g=no
|
---|
3439 | CXXFLAGS="-g"
|
---|
3440 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3441 | /* end confdefs.h. */
|
---|
3442 |
|
---|
3443 | int
|
---|
3444 | main ()
|
---|
3445 | {
|
---|
3446 |
|
---|
3447 | ;
|
---|
3448 | return 0;
|
---|
3449 | }
|
---|
3450 | _ACEOF
|
---|
3451 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
3452 | ac_cv_prog_cxx_g=yes
|
---|
3453 | else
|
---|
3454 | CXXFLAGS=""
|
---|
3455 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3456 | /* end confdefs.h. */
|
---|
3457 |
|
---|
3458 | int
|
---|
3459 | main ()
|
---|
3460 | {
|
---|
3461 |
|
---|
3462 | ;
|
---|
3463 | return 0;
|
---|
3464 | }
|
---|
3465 | _ACEOF
|
---|
3466 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
3467 |
|
---|
3468 | else
|
---|
3469 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag
|
---|
3470 | CXXFLAGS="-g"
|
---|
3471 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3472 | /* end confdefs.h. */
|
---|
3473 |
|
---|
3474 | int
|
---|
3475 | main ()
|
---|
3476 | {
|
---|
3477 |
|
---|
3478 | ;
|
---|
3479 | return 0;
|
---|
3480 | }
|
---|
3481 | _ACEOF
|
---|
3482 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
3483 | ac_cv_prog_cxx_g=yes
|
---|
3484 | fi
|
---|
3485 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3486 | fi
|
---|
3487 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3488 | fi
|
---|
3489 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3490 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag
|
---|
3491 | fi
|
---|
3492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
|
---|
3493 | $as_echo "$ac_cv_prog_cxx_g" >&6; }
|
---|
3494 | if test "$ac_test_CXXFLAGS" = set; then
|
---|
3495 | CXXFLAGS=$ac_save_CXXFLAGS
|
---|
3496 | elif test $ac_cv_prog_cxx_g = yes; then
|
---|
3497 | if test "$GXX" = yes; then
|
---|
3498 | CXXFLAGS="-g -O2"
|
---|
3499 | else
|
---|
3500 | CXXFLAGS="-g"
|
---|
3501 | fi
|
---|
3502 | else
|
---|
3503 | if test "$GXX" = yes; then
|
---|
3504 | CXXFLAGS="-O2"
|
---|
3505 | else
|
---|
3506 | CXXFLAGS=
|
---|
3507 | fi
|
---|
3508 | fi
|
---|
3509 | ac_ext=c
|
---|
3510 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3511 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3512 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3513 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3514 |
|
---|
3515 | if test $ENABLE_JAVA = "1" ; then
|
---|
3516 |
|
---|
3517 |
|
---|
3518 | if test "x$JAVAC" = x ; then
|
---|
3519 | if test "x$JAVAPREFIX" = x; then
|
---|
3520 | test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
|
---|
3521 | do
|
---|
3522 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
3523 | set dummy $ac_prog; ac_word=$2
|
---|
3524 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3525 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3526 | if test "${ac_cv_prog_JAVAC+set}" = set; then :
|
---|
3527 | $as_echo_n "(cached) " >&6
|
---|
3528 | else
|
---|
3529 | if test -n "$JAVAC"; then
|
---|
3530 | ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
|
---|
3531 | else
|
---|
3532 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3533 | for as_dir in $PATH
|
---|
3534 | do
|
---|
3535 | IFS=$as_save_IFS
|
---|
3536 | test -z "$as_dir" && as_dir=.
|
---|
3537 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3538 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
3539 | ac_cv_prog_JAVAC="$ac_prog"
|
---|
3540 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3541 | break 2
|
---|
3542 | fi
|
---|
3543 | done
|
---|
3544 | done
|
---|
3545 | IFS=$as_save_IFS
|
---|
3546 |
|
---|
3547 | fi
|
---|
3548 | fi
|
---|
3549 | JAVAC=$ac_cv_prog_JAVAC
|
---|
3550 | if test -n "$JAVAC"; then
|
---|
3551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
|
---|
3552 | $as_echo "$JAVAC" >&6; }
|
---|
3553 | else
|
---|
3554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3555 | $as_echo "no" >&6; }
|
---|
3556 | fi
|
---|
3557 |
|
---|
3558 |
|
---|
3559 | test -n "$JAVAC" && break
|
---|
3560 | done
|
---|
3561 |
|
---|
3562 | else
|
---|
3563 | test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
|
---|
3564 | do
|
---|
3565 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
3566 | set dummy $ac_prog; ac_word=$2
|
---|
3567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3568 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3569 | if test "${ac_cv_prog_JAVAC+set}" = set; then :
|
---|
3570 | $as_echo_n "(cached) " >&6
|
---|
3571 | else
|
---|
3572 | if test -n "$JAVAC"; then
|
---|
3573 | ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
|
---|
3574 | else
|
---|
3575 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3576 | for as_dir in $PATH
|
---|
3577 | do
|
---|
3578 | IFS=$as_save_IFS
|
---|
3579 | test -z "$as_dir" && as_dir=.
|
---|
3580 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3581 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
3582 | ac_cv_prog_JAVAC="$ac_prog"
|
---|
3583 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3584 | break 2
|
---|
3585 | fi
|
---|
3586 | done
|
---|
3587 | done
|
---|
3588 | IFS=$as_save_IFS
|
---|
3589 |
|
---|
3590 | fi
|
---|
3591 | fi
|
---|
3592 | JAVAC=$ac_cv_prog_JAVAC
|
---|
3593 | if test -n "$JAVAC"; then
|
---|
3594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
|
---|
3595 | $as_echo "$JAVAC" >&6; }
|
---|
3596 | else
|
---|
3597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3598 | $as_echo "no" >&6; }
|
---|
3599 | fi
|
---|
3600 |
|
---|
3601 |
|
---|
3602 | test -n "$JAVAC" && break
|
---|
3603 | done
|
---|
3604 | test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
|
---|
3605 |
|
---|
3606 | fi
|
---|
3607 | test "x$JAVAC" = x && as_fn_error $? "no acceptable Java compiler found in \$PATH" "$LINENO" 5
|
---|
3608 | else
|
---|
3609 | echo "Checking for javac... $JAVAC"
|
---|
3610 | fi
|
---|
3611 |
|
---|
3612 |
|
---|
3613 |
|
---|
3614 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5
|
---|
3615 | $as_echo_n "checking if $JAVAC works... " >&6; }
|
---|
3616 | if test "${ac_cv_prog_javac_works+set}" = set; then :
|
---|
3617 | $as_echo_n "(cached) " >&6
|
---|
3618 | else
|
---|
3619 |
|
---|
3620 | JAVA_TEST=Test.java
|
---|
3621 | CLASS_TEST=Test.class
|
---|
3622 | cat << \EOF > $JAVA_TEST
|
---|
3623 | /* #line 3623 "configure" */
|
---|
3624 | public class Test {
|
---|
3625 | }
|
---|
3626 | EOF
|
---|
3627 | if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
|
---|
3628 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
---|
3629 | (eval $ac_try) 2>&5
|
---|
3630 | ac_status=$?
|
---|
3631 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
3632 | test $ac_status = 0; }; } >/dev/null 2>&1; then
|
---|
3633 | ac_cv_prog_javac_works=yes
|
---|
3634 | else
|
---|
3635 | as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
|
---|
3636 | echo "configure: failed program was:" >&5
|
---|
3637 | cat $JAVA_TEST >&5
|
---|
3638 | fi
|
---|
3639 | rm -f $JAVA_TEST $CLASS_TEST
|
---|
3640 |
|
---|
3641 | fi
|
---|
3642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5
|
---|
3643 | $as_echo "$ac_cv_prog_javac_works" >&6; }
|
---|
3644 | if test "x$JAVACFLAGS" = x ; then
|
---|
3645 | JAVACFLAGS="-source 1.4 -target 1.4"
|
---|
3646 | fi
|
---|
3647 |
|
---|
3648 |
|
---|
3649 |
|
---|
3650 |
|
---|
3651 | if test "x$JAVA" = x ; then
|
---|
3652 | if test x$JAVAPREFIX = x; then
|
---|
3653 | test x$JAVA = x && for ac_prog in java$EXEEXT
|
---|
3654 | do
|
---|
3655 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
3656 | set dummy $ac_prog; ac_word=$2
|
---|
3657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3658 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3659 | if test "${ac_cv_prog_JAVA+set}" = set; then :
|
---|
3660 | $as_echo_n "(cached) " >&6
|
---|
3661 | else
|
---|
3662 | if test -n "$JAVA"; then
|
---|
3663 | ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
|
---|
3664 | else
|
---|
3665 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3666 | for as_dir in $PATH
|
---|
3667 | do
|
---|
3668 | IFS=$as_save_IFS
|
---|
3669 | test -z "$as_dir" && as_dir=.
|
---|
3670 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3671 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
3672 | ac_cv_prog_JAVA="$ac_prog"
|
---|
3673 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3674 | break 2
|
---|
3675 | fi
|
---|
3676 | done
|
---|
3677 | done
|
---|
3678 | IFS=$as_save_IFS
|
---|
3679 |
|
---|
3680 | fi
|
---|
3681 | fi
|
---|
3682 | JAVA=$ac_cv_prog_JAVA
|
---|
3683 | if test -n "$JAVA"; then
|
---|
3684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
|
---|
3685 | $as_echo "$JAVA" >&6; }
|
---|
3686 | else
|
---|
3687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3688 | $as_echo "no" >&6; }
|
---|
3689 | fi
|
---|
3690 |
|
---|
3691 |
|
---|
3692 | test -n "$JAVA" && break
|
---|
3693 | done
|
---|
3694 |
|
---|
3695 | else
|
---|
3696 | test x$JAVA = x && for ac_prog in java$EXEEXT
|
---|
3697 | do
|
---|
3698 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
3699 | set dummy $ac_prog; ac_word=$2
|
---|
3700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3701 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3702 | if test "${ac_cv_prog_JAVA+set}" = set; then :
|
---|
3703 | $as_echo_n "(cached) " >&6
|
---|
3704 | else
|
---|
3705 | if test -n "$JAVA"; then
|
---|
3706 | ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
|
---|
3707 | else
|
---|
3708 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3709 | for as_dir in $PATH
|
---|
3710 | do
|
---|
3711 | IFS=$as_save_IFS
|
---|
3712 | test -z "$as_dir" && as_dir=.
|
---|
3713 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3714 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
3715 | ac_cv_prog_JAVA="$ac_prog"
|
---|
3716 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3717 | break 2
|
---|
3718 | fi
|
---|
3719 | done
|
---|
3720 | done
|
---|
3721 | IFS=$as_save_IFS
|
---|
3722 |
|
---|
3723 | fi
|
---|
3724 | fi
|
---|
3725 | JAVA=$ac_cv_prog_JAVA
|
---|
3726 | if test -n "$JAVA"; then
|
---|
3727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
|
---|
3728 | $as_echo "$JAVA" >&6; }
|
---|
3729 | else
|
---|
3730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3731 | $as_echo "no" >&6; }
|
---|
3732 | fi
|
---|
3733 |
|
---|
3734 |
|
---|
3735 | test -n "$JAVA" && break
|
---|
3736 | done
|
---|
3737 | test -n "$JAVA" || JAVA="$JAVAPREFIX"
|
---|
3738 |
|
---|
3739 | fi
|
---|
3740 | test x$JAVA = x && as_fn_error $? "no acceptable Java virtual machine found in \$PATH" "$LINENO" 5
|
---|
3741 | fi
|
---|
3742 |
|
---|
3743 |
|
---|
3744 | # Extract the first word of "uudecode$EXEEXT", so it can be a program name with args.
|
---|
3745 | set dummy uudecode$EXEEXT; ac_word=$2
|
---|
3746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3747 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3748 | if test "${ac_cv_prog_uudecode+set}" = set; then :
|
---|
3749 | $as_echo_n "(cached) " >&6
|
---|
3750 | else
|
---|
3751 | if test -n "$uudecode"; then
|
---|
3752 | ac_cv_prog_uudecode="$uudecode" # Let the user override the test.
|
---|
3753 | else
|
---|
3754 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3755 | for as_dir in $PATH
|
---|
3756 | do
|
---|
3757 | IFS=$as_save_IFS
|
---|
3758 | test -z "$as_dir" && as_dir=.
|
---|
3759 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3760 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
3761 | ac_cv_prog_uudecode="yes"
|
---|
3762 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3763 | break 2
|
---|
3764 | fi
|
---|
3765 | done
|
---|
3766 | done
|
---|
3767 | IFS=$as_save_IFS
|
---|
3768 |
|
---|
3769 | fi
|
---|
3770 | fi
|
---|
3771 | uudecode=$ac_cv_prog_uudecode
|
---|
3772 | if test -n "$uudecode"; then
|
---|
3773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $uudecode" >&5
|
---|
3774 | $as_echo "$uudecode" >&6; }
|
---|
3775 | else
|
---|
3776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3777 | $as_echo "no" >&6; }
|
---|
3778 | fi
|
---|
3779 |
|
---|
3780 |
|
---|
3781 | if test x$uudecode = xyes; then
|
---|
3782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if uudecode can decode base 64 file" >&5
|
---|
3783 | $as_echo_n "checking if uudecode can decode base 64 file... " >&6; }
|
---|
3784 | if test "${ac_cv_prog_uudecode_base64+set}" = set; then :
|
---|
3785 | $as_echo_n "(cached) " >&6
|
---|
3786 | else
|
---|
3787 |
|
---|
3788 | cat << \EOF > Test.uue
|
---|
3789 | begin-base64 644 Test.class
|
---|
3790 | yv66vgADAC0AFQcAAgEABFRlc3QHAAQBABBqYXZhL2xhbmcvT2JqZWN0AQAE
|
---|
3791 | bWFpbgEAFihbTGphdmEvbGFuZy9TdHJpbmc7KVYBAARDb2RlAQAPTGluZU51
|
---|
3792 | bWJlclRhYmxlDAAKAAsBAARleGl0AQAEKEkpVgoADQAJBwAOAQAQamF2YS9s
|
---|
3793 | YW5nL1N5c3RlbQEABjxpbml0PgEAAygpVgwADwAQCgADABEBAApTb3VyY2VG
|
---|
3794 | aWxlAQAJVGVzdC5qYXZhACEAAQADAAAAAAACAAkABQAGAAEABwAAACEAAQAB
|
---|
3795 | AAAABQO4AAyxAAAAAQAIAAAACgACAAAACgAEAAsAAQAPABAAAQAHAAAAIQAB
|
---|
3796 | AAEAAAAFKrcAErEAAAABAAgAAAAKAAIAAAAEAAQABAABABMAAAACABQ=
|
---|
3797 | ====
|
---|
3798 | EOF
|
---|
3799 | if uudecode$EXEEXT Test.uue; then
|
---|
3800 | ac_cv_prog_uudecode_base64=yes
|
---|
3801 | else
|
---|
3802 | echo "configure: 3802: uudecode had trouble decoding base 64 file 'Test.uue'" >&5
|
---|
3803 | echo "configure: failed file was:" >&5
|
---|
3804 | cat Test.uue >&5
|
---|
3805 | ac_cv_prog_uudecode_base64=no
|
---|
3806 | fi
|
---|
3807 | rm -f Test.uue
|
---|
3808 | fi
|
---|
3809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_uudecode_base64" >&5
|
---|
3810 | $as_echo "$ac_cv_prog_uudecode_base64" >&6; }
|
---|
3811 | fi
|
---|
3812 | if test x$ac_cv_prog_uudecode_base64 != xyes; then
|
---|
3813 | rm -f Test.class
|
---|
3814 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: I have to compile Test.class from scratch" >&5
|
---|
3815 | $as_echo "$as_me: WARNING: I have to compile Test.class from scratch" >&2;}
|
---|
3816 | if test x$ac_cv_prog_javac_works = xno; then
|
---|
3817 | as_fn_error $? "Cannot compile java source. $JAVAC does not work properly" "$LINENO" 5
|
---|
3818 | fi
|
---|
3819 | if test x$ac_cv_prog_javac_works = x; then
|
---|
3820 |
|
---|
3821 | if test "x$JAVAC" = x ; then
|
---|
3822 | if test "x$JAVAPREFIX" = x; then
|
---|
3823 | test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
|
---|
3824 | do
|
---|
3825 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
3826 | set dummy $ac_prog; ac_word=$2
|
---|
3827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3828 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3829 | if test "${ac_cv_prog_JAVAC+set}" = set; then :
|
---|
3830 | $as_echo_n "(cached) " >&6
|
---|
3831 | else
|
---|
3832 | if test -n "$JAVAC"; then
|
---|
3833 | ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
|
---|
3834 | else
|
---|
3835 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3836 | for as_dir in $PATH
|
---|
3837 | do
|
---|
3838 | IFS=$as_save_IFS
|
---|
3839 | test -z "$as_dir" && as_dir=.
|
---|
3840 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3841 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
3842 | ac_cv_prog_JAVAC="$ac_prog"
|
---|
3843 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3844 | break 2
|
---|
3845 | fi
|
---|
3846 | done
|
---|
3847 | done
|
---|
3848 | IFS=$as_save_IFS
|
---|
3849 |
|
---|
3850 | fi
|
---|
3851 | fi
|
---|
3852 | JAVAC=$ac_cv_prog_JAVAC
|
---|
3853 | if test -n "$JAVAC"; then
|
---|
3854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
|
---|
3855 | $as_echo "$JAVAC" >&6; }
|
---|
3856 | else
|
---|
3857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3858 | $as_echo "no" >&6; }
|
---|
3859 | fi
|
---|
3860 |
|
---|
3861 |
|
---|
3862 | test -n "$JAVAC" && break
|
---|
3863 | done
|
---|
3864 |
|
---|
3865 | else
|
---|
3866 | test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
|
---|
3867 | do
|
---|
3868 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
3869 | set dummy $ac_prog; ac_word=$2
|
---|
3870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3871 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3872 | if test "${ac_cv_prog_JAVAC+set}" = set; then :
|
---|
3873 | $as_echo_n "(cached) " >&6
|
---|
3874 | else
|
---|
3875 | if test -n "$JAVAC"; then
|
---|
3876 | ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
|
---|
3877 | else
|
---|
3878 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3879 | for as_dir in $PATH
|
---|
3880 | do
|
---|
3881 | IFS=$as_save_IFS
|
---|
3882 | test -z "$as_dir" && as_dir=.
|
---|
3883 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3884 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
3885 | ac_cv_prog_JAVAC="$ac_prog"
|
---|
3886 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3887 | break 2
|
---|
3888 | fi
|
---|
3889 | done
|
---|
3890 | done
|
---|
3891 | IFS=$as_save_IFS
|
---|
3892 |
|
---|
3893 | fi
|
---|
3894 | fi
|
---|
3895 | JAVAC=$ac_cv_prog_JAVAC
|
---|
3896 | if test -n "$JAVAC"; then
|
---|
3897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
|
---|
3898 | $as_echo "$JAVAC" >&6; }
|
---|
3899 | else
|
---|
3900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3901 | $as_echo "no" >&6; }
|
---|
3902 | fi
|
---|
3903 |
|
---|
3904 |
|
---|
3905 | test -n "$JAVAC" && break
|
---|
3906 | done
|
---|
3907 | test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
|
---|
3908 |
|
---|
3909 | fi
|
---|
3910 | test "x$JAVAC" = x && as_fn_error $? "no acceptable Java compiler found in \$PATH" "$LINENO" 5
|
---|
3911 | else
|
---|
3912 | echo "Checking for javac... $JAVAC"
|
---|
3913 | fi
|
---|
3914 |
|
---|
3915 |
|
---|
3916 |
|
---|
3917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5
|
---|
3918 | $as_echo_n "checking if $JAVAC works... " >&6; }
|
---|
3919 | if test "${ac_cv_prog_javac_works+set}" = set; then :
|
---|
3920 | $as_echo_n "(cached) " >&6
|
---|
3921 | else
|
---|
3922 |
|
---|
3923 | JAVA_TEST=Test.java
|
---|
3924 | CLASS_TEST=Test.class
|
---|
3925 | cat << \EOF > $JAVA_TEST
|
---|
3926 | /* #line 3926 "configure" */
|
---|
3927 | public class Test {
|
---|
3928 | }
|
---|
3929 | EOF
|
---|
3930 | if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
|
---|
3931 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
---|
3932 | (eval $ac_try) 2>&5
|
---|
3933 | ac_status=$?
|
---|
3934 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
3935 | test $ac_status = 0; }; } >/dev/null 2>&1; then
|
---|
3936 | ac_cv_prog_javac_works=yes
|
---|
3937 | else
|
---|
3938 | as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
|
---|
3939 | echo "configure: failed program was:" >&5
|
---|
3940 | cat $JAVA_TEST >&5
|
---|
3941 | fi
|
---|
3942 | rm -f $JAVA_TEST $CLASS_TEST
|
---|
3943 |
|
---|
3944 | fi
|
---|
3945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5
|
---|
3946 | $as_echo "$ac_cv_prog_javac_works" >&6; }
|
---|
3947 | if test "x$JAVACFLAGS" = x ; then
|
---|
3948 | JAVACFLAGS="-source 1.4 -target 1.4"
|
---|
3949 | fi
|
---|
3950 |
|
---|
3951 |
|
---|
3952 |
|
---|
3953 | fi
|
---|
3954 | fi
|
---|
3955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVA works" >&5
|
---|
3956 | $as_echo_n "checking if $JAVA works... " >&6; }
|
---|
3957 | if test "${ac_cv_prog_java_works+set}" = set; then :
|
---|
3958 | $as_echo_n "(cached) " >&6
|
---|
3959 | else
|
---|
3960 |
|
---|
3961 | JAVA_TEST=Test.java
|
---|
3962 | CLASS_TEST=Test.class
|
---|
3963 | TEST=Test
|
---|
3964 | cat << \EOF > $JAVA_TEST
|
---|
3965 | /* [#]line 3965 "configure" */
|
---|
3966 | public class Test {
|
---|
3967 | public static void main (String args[]) {
|
---|
3968 | System.exit (0);
|
---|
3969 | } }
|
---|
3970 | EOF
|
---|
3971 | if test x$ac_cv_prog_uudecode_base64 != xyes; then
|
---|
3972 | if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
|
---|
3973 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
---|
3974 | (eval $ac_try) 2>&5
|
---|
3975 | ac_status=$?
|
---|
3976 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
3977 | test $ac_status = 0; }; } && test -s $CLASS_TEST; then
|
---|
3978 | :
|
---|
3979 | else
|
---|
3980 | echo "configure: failed program was:" >&5
|
---|
3981 | cat $JAVA_TEST >&5
|
---|
3982 | as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
|
---|
3983 | fi
|
---|
3984 | fi
|
---|
3985 | if { ac_try='$JAVA $JAVAFLAGS $TEST'
|
---|
3986 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
---|
3987 | (eval $ac_try) 2>&5
|
---|
3988 | ac_status=$?
|
---|
3989 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
3990 | test $ac_status = 0; }; } >/dev/null 2>&1; then
|
---|
3991 | ac_cv_prog_java_works=yes
|
---|
3992 | else
|
---|
3993 | echo "configure: failed program was:" >&5
|
---|
3994 | cat $JAVA_TEST >&5
|
---|
3995 | as_fn_error $? "The Java VM $JAVA failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
|
---|
3996 | fi
|
---|
3997 | rm -fr $JAVA_TEST $CLASS_TEST Test.uue
|
---|
3998 |
|
---|
3999 | fi
|
---|
4000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_java_works" >&5
|
---|
4001 | $as_echo "$ac_cv_prog_java_works" >&6; }
|
---|
4002 |
|
---|
4003 |
|
---|
4004 |
|
---|
4005 | fi
|
---|
4006 | for ac_prog in gawk mawk nawk awk
|
---|
4007 | do
|
---|
4008 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
4009 | set dummy $ac_prog; ac_word=$2
|
---|
4010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
4011 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
4012 | if test "${ac_cv_prog_AWK+set}" = set; then :
|
---|
4013 | $as_echo_n "(cached) " >&6
|
---|
4014 | else
|
---|
4015 | if test -n "$AWK"; then
|
---|
4016 | ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
---|
4017 | else
|
---|
4018 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4019 | for as_dir in $PATH
|
---|
4020 | do
|
---|
4021 | IFS=$as_save_IFS
|
---|
4022 | test -z "$as_dir" && as_dir=.
|
---|
4023 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4024 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
4025 | ac_cv_prog_AWK="$ac_prog"
|
---|
4026 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
4027 | break 2
|
---|
4028 | fi
|
---|
4029 | done
|
---|
4030 | done
|
---|
4031 | IFS=$as_save_IFS
|
---|
4032 |
|
---|
4033 | fi
|
---|
4034 | fi
|
---|
4035 | AWK=$ac_cv_prog_AWK
|
---|
4036 | if test -n "$AWK"; then
|
---|
4037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
|
---|
4038 | $as_echo "$AWK" >&6; }
|
---|
4039 | else
|
---|
4040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4041 | $as_echo "no" >&6; }
|
---|
4042 | fi
|
---|
4043 |
|
---|
4044 |
|
---|
4045 | test -n "$AWK" && break
|
---|
4046 | done
|
---|
4047 |
|
---|
4048 | for ac_prog in 'bison -y' byacc
|
---|
4049 | do
|
---|
4050 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
4051 | set dummy $ac_prog; ac_word=$2
|
---|
4052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
4053 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
4054 | if test "${ac_cv_prog_YACC+set}" = set; then :
|
---|
4055 | $as_echo_n "(cached) " >&6
|
---|
4056 | else
|
---|
4057 | if test -n "$YACC"; then
|
---|
4058 | ac_cv_prog_YACC="$YACC" # Let the user override the test.
|
---|
4059 | else
|
---|
4060 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4061 | for as_dir in $PATH
|
---|
4062 | do
|
---|
4063 | IFS=$as_save_IFS
|
---|
4064 | test -z "$as_dir" && as_dir=.
|
---|
4065 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4066 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
4067 | ac_cv_prog_YACC="$ac_prog"
|
---|
4068 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
4069 | break 2
|
---|
4070 | fi
|
---|
4071 | done
|
---|
4072 | done
|
---|
4073 | IFS=$as_save_IFS
|
---|
4074 |
|
---|
4075 | fi
|
---|
4076 | fi
|
---|
4077 | YACC=$ac_cv_prog_YACC
|
---|
4078 | if test -n "$YACC"; then
|
---|
4079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
|
---|
4080 | $as_echo "$YACC" >&6; }
|
---|
4081 | else
|
---|
4082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4083 | $as_echo "no" >&6; }
|
---|
4084 | fi
|
---|
4085 |
|
---|
4086 |
|
---|
4087 | test -n "$YACC" && break
|
---|
4088 | done
|
---|
4089 | test -n "$YACC" || YACC="yacc"
|
---|
4090 |
|
---|
4091 | ac_aux_dir=
|
---|
4092 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
|
---|
4093 | if test -f "$ac_dir/install-sh"; then
|
---|
4094 | ac_aux_dir=$ac_dir
|
---|
4095 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
4096 | break
|
---|
4097 | elif test -f "$ac_dir/install.sh"; then
|
---|
4098 | ac_aux_dir=$ac_dir
|
---|
4099 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
4100 | break
|
---|
4101 | elif test -f "$ac_dir/shtool"; then
|
---|
4102 | ac_aux_dir=$ac_dir
|
---|
4103 | ac_install_sh="$ac_aux_dir/shtool install -c"
|
---|
4104 | break
|
---|
4105 | fi
|
---|
4106 | done
|
---|
4107 | if test -z "$ac_aux_dir"; then
|
---|
4108 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
|
---|
4109 | fi
|
---|
4110 |
|
---|
4111 | # These three variables are undocumented and unsupported,
|
---|
4112 | # and are intended to be withdrawn in a future Autoconf release.
|
---|
4113 | # They can cause serious problems if a builder's source tree is in a directory
|
---|
4114 | # whose full name contains unusual characters.
|
---|
4115 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
|
---|
4116 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
|
---|
4117 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
|
---|
4118 |
|
---|
4119 |
|
---|
4120 | # Make sure we can run config.sub.
|
---|
4121 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
|
---|
4122 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
|
---|
4123 |
|
---|
4124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
|
---|
4125 | $as_echo_n "checking build system type... " >&6; }
|
---|
4126 | if test "${ac_cv_build+set}" = set; then :
|
---|
4127 | $as_echo_n "(cached) " >&6
|
---|
4128 | else
|
---|
4129 | ac_build_alias=$build_alias
|
---|
4130 | test "x$ac_build_alias" = x &&
|
---|
4131 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
|
---|
4132 | test "x$ac_build_alias" = x &&
|
---|
4133 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
|
---|
4134 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
|
---|
4135 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
|
---|
4136 |
|
---|
4137 | fi
|
---|
4138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
|
---|
4139 | $as_echo "$ac_cv_build" >&6; }
|
---|
4140 | case $ac_cv_build in
|
---|
4141 | *-*-*) ;;
|
---|
4142 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
|
---|
4143 | esac
|
---|
4144 | build=$ac_cv_build
|
---|
4145 | ac_save_IFS=$IFS; IFS='-'
|
---|
4146 | set x $ac_cv_build
|
---|
4147 | shift
|
---|
4148 | build_cpu=$1
|
---|
4149 | build_vendor=$2
|
---|
4150 | shift; shift
|
---|
4151 | # Remember, the first character of IFS is used to create $*,
|
---|
4152 | # except with old shells:
|
---|
4153 | build_os=$*
|
---|
4154 | IFS=$ac_save_IFS
|
---|
4155 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
|
---|
4156 |
|
---|
4157 |
|
---|
4158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
|
---|
4159 | $as_echo_n "checking host system type... " >&6; }
|
---|
4160 | if test "${ac_cv_host+set}" = set; then :
|
---|
4161 | $as_echo_n "(cached) " >&6
|
---|
4162 | else
|
---|
4163 | if test "x$host_alias" = x; then
|
---|
4164 | ac_cv_host=$ac_cv_build
|
---|
4165 | else
|
---|
4166 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
|
---|
4167 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
|
---|
4168 | fi
|
---|
4169 |
|
---|
4170 | fi
|
---|
4171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
|
---|
4172 | $as_echo "$ac_cv_host" >&6; }
|
---|
4173 | case $ac_cv_host in
|
---|
4174 | *-*-*) ;;
|
---|
4175 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
|
---|
4176 | esac
|
---|
4177 | host=$ac_cv_host
|
---|
4178 | ac_save_IFS=$IFS; IFS='-'
|
---|
4179 | set x $ac_cv_host
|
---|
4180 | shift
|
---|
4181 | host_cpu=$1
|
---|
4182 | host_vendor=$2
|
---|
4183 | shift; shift
|
---|
4184 | # Remember, the first character of IFS is used to create $*,
|
---|
4185 | # except with old shells:
|
---|
4186 | host_os=$*
|
---|
4187 | IFS=$ac_save_IFS
|
---|
4188 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
|
---|
4189 |
|
---|
4190 |
|
---|
4191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
|
---|
4192 | $as_echo_n "checking target system type... " >&6; }
|
---|
4193 | if test "${ac_cv_target+set}" = set; then :
|
---|
4194 | $as_echo_n "(cached) " >&6
|
---|
4195 | else
|
---|
4196 | if test "x$target_alias" = x; then
|
---|
4197 | ac_cv_target=$ac_cv_host
|
---|
4198 | else
|
---|
4199 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
|
---|
4200 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
|
---|
4201 | fi
|
---|
4202 |
|
---|
4203 | fi
|
---|
4204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
|
---|
4205 | $as_echo "$ac_cv_target" >&6; }
|
---|
4206 | case $ac_cv_target in
|
---|
4207 | *-*-*) ;;
|
---|
4208 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;;
|
---|
4209 | esac
|
---|
4210 | target=$ac_cv_target
|
---|
4211 | ac_save_IFS=$IFS; IFS='-'
|
---|
4212 | set x $ac_cv_target
|
---|
4213 | shift
|
---|
4214 | target_cpu=$1
|
---|
4215 | target_vendor=$2
|
---|
4216 | shift; shift
|
---|
4217 | # Remember, the first character of IFS is used to create $*,
|
---|
4218 | # except with old shells:
|
---|
4219 | target_os=$*
|
---|
4220 | IFS=$ac_save_IFS
|
---|
4221 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
|
---|
4222 |
|
---|
4223 |
|
---|
4224 | # The aliases save the names the user supplied, while $host etc.
|
---|
4225 | # will get canonicalized.
|
---|
4226 | test -n "$target_alias" &&
|
---|
4227 | test "$program_prefix$program_suffix$program_transform_name" = \
|
---|
4228 | NONENONEs,x,x, &&
|
---|
4229 | program_prefix=${target_alias}-
|
---|
4230 |
|
---|
4231 | # Find a good install program. We prefer a C program (faster),
|
---|
4232 | # so one script is as good as another. But avoid the broken or
|
---|
4233 | # incompatible versions:
|
---|
4234 | # SysV /etc/install, /usr/sbin/install
|
---|
4235 | # SunOS /usr/etc/install
|
---|
4236 | # IRIX /sbin/install
|
---|
4237 | # AIX /bin/install
|
---|
4238 | # AmigaOS /C/install, which installs bootblocks on floppy discs
|
---|
4239 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
4240 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
4241 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
4242 | # OS/2's system install, which has a completely different semantic
|
---|
4243 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
4244 | # Reject install programs that cannot install multiple files.
|
---|
4245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
|
---|
4246 | $as_echo_n "checking for a BSD-compatible install... " >&6; }
|
---|
4247 | if test -z "$INSTALL"; then
|
---|
4248 | if test "${ac_cv_path_install+set}" = set; then :
|
---|
4249 | $as_echo_n "(cached) " >&6
|
---|
4250 | else
|
---|
4251 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4252 | for as_dir in $PATH
|
---|
4253 | do
|
---|
4254 | IFS=$as_save_IFS
|
---|
4255 | test -z "$as_dir" && as_dir=.
|
---|
4256 | # Account for people who put trailing slashes in PATH elements.
|
---|
4257 | case $as_dir/ in #((
|
---|
4258 | ./ | .// | /[cC]/* | \
|
---|
4259 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
---|
4260 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
|
---|
4261 | /usr/ucb/* ) ;;
|
---|
4262 | *)
|
---|
4263 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
4264 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
4265 | # by default.
|
---|
4266 | for ac_prog in ginstall scoinst install; do
|
---|
4267 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4268 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
|
---|
4269 | if test $ac_prog = install &&
|
---|
4270 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
4271 | # AIX install. It has an incompatible calling convention.
|
---|
4272 | :
|
---|
4273 | elif test $ac_prog = install &&
|
---|
4274 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
4275 | # program-specific install script used by HP pwplus--don't use.
|
---|
4276 | :
|
---|
4277 | else
|
---|
4278 | rm -rf conftest.one conftest.two conftest.dir
|
---|
4279 | echo one > conftest.one
|
---|
4280 | echo two > conftest.two
|
---|
4281 | mkdir conftest.dir
|
---|
4282 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
|
---|
4283 | test -s conftest.one && test -s conftest.two &&
|
---|
4284 | test -s conftest.dir/conftest.one &&
|
---|
4285 | test -s conftest.dir/conftest.two
|
---|
4286 | then
|
---|
4287 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
---|
4288 | break 3
|
---|
4289 | fi
|
---|
4290 | fi
|
---|
4291 | fi
|
---|
4292 | done
|
---|
4293 | done
|
---|
4294 | ;;
|
---|
4295 | esac
|
---|
4296 |
|
---|
4297 | done
|
---|
4298 | IFS=$as_save_IFS
|
---|
4299 |
|
---|
4300 | rm -rf conftest.one conftest.two conftest.dir
|
---|
4301 |
|
---|
4302 | fi
|
---|
4303 | if test "${ac_cv_path_install+set}" = set; then
|
---|
4304 | INSTALL=$ac_cv_path_install
|
---|
4305 | else
|
---|
4306 | # As a last resort, use the slow shell script. Don't cache a
|
---|
4307 | # value for INSTALL within a source directory, because that will
|
---|
4308 | # break other packages using the cache if that directory is
|
---|
4309 | # removed, or if the value is a relative name.
|
---|
4310 | INSTALL=$ac_install_sh
|
---|
4311 | fi
|
---|
4312 | fi
|
---|
4313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
|
---|
4314 | $as_echo "$INSTALL" >&6; }
|
---|
4315 |
|
---|
4316 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
4317 | # It thinks the first close brace ends the variable substitution.
|
---|
4318 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
4319 |
|
---|
4320 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
---|
4321 |
|
---|
4322 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
4323 |
|
---|
4324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
|
---|
4325 | $as_echo_n "checking whether ln -s works... " >&6; }
|
---|
4326 | LN_S=$as_ln_s
|
---|
4327 | if test "$LN_S" = "ln -s"; then
|
---|
4328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
4329 | $as_echo "yes" >&6; }
|
---|
4330 | else
|
---|
4331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
|
---|
4332 | $as_echo "no, using $LN_S" >&6; }
|
---|
4333 | fi
|
---|
4334 |
|
---|
4335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
---|
4336 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
|
---|
4337 | set x ${MAKE-make}
|
---|
4338 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
|
---|
4339 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
|
---|
4340 | $as_echo_n "(cached) " >&6
|
---|
4341 | else
|
---|
4342 | cat >conftest.make <<\_ACEOF
|
---|
4343 | SHELL = /bin/sh
|
---|
4344 | all:
|
---|
4345 | @echo '@@@%%%=$(MAKE)=@@@%%%'
|
---|
4346 | _ACEOF
|
---|
4347 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
|
---|
4348 | case `${MAKE-make} -f conftest.make 2>/dev/null` in
|
---|
4349 | *@@@%%%=?*=@@@%%%*)
|
---|
4350 | eval ac_cv_prog_make_${ac_make}_set=yes;;
|
---|
4351 | *)
|
---|
4352 | eval ac_cv_prog_make_${ac_make}_set=no;;
|
---|
4353 | esac
|
---|
4354 | rm -f conftest.make
|
---|
4355 | fi
|
---|
4356 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
|
---|
4357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
4358 | $as_echo "yes" >&6; }
|
---|
4359 | SET_MAKE=
|
---|
4360 | else
|
---|
4361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4362 | $as_echo "no" >&6; }
|
---|
4363 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
4364 | fi
|
---|
4365 |
|
---|
4366 | if test -n "$ac_tool_prefix"; then
|
---|
4367 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
4368 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
4369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
4370 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
4371 | if test "${ac_cv_prog_RANLIB+set}" = set; then :
|
---|
4372 | $as_echo_n "(cached) " >&6
|
---|
4373 | else
|
---|
4374 | if test -n "$RANLIB"; then
|
---|
4375 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
4376 | else
|
---|
4377 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4378 | for as_dir in $PATH
|
---|
4379 | do
|
---|
4380 | IFS=$as_save_IFS
|
---|
4381 | test -z "$as_dir" && as_dir=.
|
---|
4382 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4383 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
4384 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
4385 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
4386 | break 2
|
---|
4387 | fi
|
---|
4388 | done
|
---|
4389 | done
|
---|
4390 | IFS=$as_save_IFS
|
---|
4391 |
|
---|
4392 | fi
|
---|
4393 | fi
|
---|
4394 | RANLIB=$ac_cv_prog_RANLIB
|
---|
4395 | if test -n "$RANLIB"; then
|
---|
4396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
|
---|
4397 | $as_echo "$RANLIB" >&6; }
|
---|
4398 | else
|
---|
4399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4400 | $as_echo "no" >&6; }
|
---|
4401 | fi
|
---|
4402 |
|
---|
4403 |
|
---|
4404 | fi
|
---|
4405 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
4406 | ac_ct_RANLIB=$RANLIB
|
---|
4407 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
4408 | set dummy ranlib; ac_word=$2
|
---|
4409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
4410 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
4411 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
|
---|
4412 | $as_echo_n "(cached) " >&6
|
---|
4413 | else
|
---|
4414 | if test -n "$ac_ct_RANLIB"; then
|
---|
4415 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
---|
4416 | else
|
---|
4417 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4418 | for as_dir in $PATH
|
---|
4419 | do
|
---|
4420 | IFS=$as_save_IFS
|
---|
4421 | test -z "$as_dir" && as_dir=.
|
---|
4422 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4423 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
4424 | ac_cv_prog_ac_ct_RANLIB="ranlib"
|
---|
4425 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
4426 | break 2
|
---|
4427 | fi
|
---|
4428 | done
|
---|
4429 | done
|
---|
4430 | IFS=$as_save_IFS
|
---|
4431 |
|
---|
4432 | fi
|
---|
4433 | fi
|
---|
4434 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
---|
4435 | if test -n "$ac_ct_RANLIB"; then
|
---|
4436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
|
---|
4437 | $as_echo "$ac_ct_RANLIB" >&6; }
|
---|
4438 | else
|
---|
4439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4440 | $as_echo "no" >&6; }
|
---|
4441 | fi
|
---|
4442 |
|
---|
4443 | if test "x$ac_ct_RANLIB" = x; then
|
---|
4444 | RANLIB=":"
|
---|
4445 | else
|
---|
4446 | case $cross_compiling:$ac_tool_warned in
|
---|
4447 | yes:)
|
---|
4448 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
4449 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
4450 | ac_tool_warned=yes ;;
|
---|
4451 | esac
|
---|
4452 | RANLIB=$ac_ct_RANLIB
|
---|
4453 | fi
|
---|
4454 | else
|
---|
4455 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
4456 | fi
|
---|
4457 |
|
---|
4458 |
|
---|
4459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if architecture is 64-bit" >&5
|
---|
4460 | $as_echo_n "checking to see if architecture is 64-bit... " >&6; }
|
---|
4461 | arch_64bit=no
|
---|
4462 | case "$host_cpu" in
|
---|
4463 | x86_64) arch_64bit=yes ;;
|
---|
4464 | esac
|
---|
4465 |
|
---|
4466 | if test "$arch_64bit" = yes; then
|
---|
4467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
4468 | $as_echo "yes" >&6; }
|
---|
4469 | if test -z "$COMPAT32BITFLAGS" ; then
|
---|
4470 | COMPAT32BITFLAGS="-m32"
|
---|
4471 | fi
|
---|
4472 | else
|
---|
4473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4474 | $as_echo "no" >&6; }
|
---|
4475 | if test -z "$COMPAT32BITFLAGS" ; then
|
---|
4476 | COMPAT32BITFLAGS=
|
---|
4477 | fi
|
---|
4478 | fi
|
---|
4479 |
|
---|
4480 | # Only need compat32bitflag if using MG or MGPP
|
---|
4481 | if test "$ENABLE_MG" = "0" -a "$ENABLE_MGPP" = "0" ; then
|
---|
4482 | COMPAT32BITFLAGS=
|
---|
4483 | fi
|
---|
4484 |
|
---|
4485 | export COMPAT32BITFLAGS
|
---|
4486 |
|
---|
4487 |
|
---|
4488 |
|
---|
4489 | #moved CORBA MICO directory test to get version of MICO
|
---|
4490 | if test $USE_CORBA = 1; then
|
---|
4491 |
|
---|
4492 | if test $MICO_DIR = "default"; then
|
---|
4493 | #do something
|
---|
4494 | MICO_INC="-I packages/mico/mico/include"
|
---|
4495 | else
|
---|
4496 | #build the micotest program
|
---|
4497 | MICO_INC= ""
|
---|
4498 | if test $MICO_DIR != yes; then
|
---|
4499 | MICO_INC="-I $MICO_DIR"
|
---|
4500 | fi
|
---|
4501 | fi
|
---|
4502 |
|
---|
4503 | #get MICO_VER value
|
---|
4504 | sh -c "$CC -c micotest.cpp -o micotest.o $MICO_INC 2>&1" > /dev/null
|
---|
4505 | sh -c "$CC -o micotest micotest.o -lstdc++ 2>&1" > /dev/null
|
---|
4506 | MICO_VER=`./micotest` || MICO_VER=2.3.5
|
---|
4507 | sh -c "rm micotest"
|
---|
4508 | sh -c "rm micotest.o"
|
---|
4509 |
|
---|
4510 | #do test of MICO_VER
|
---|
4511 | if test MICO_VER != 0; then
|
---|
4512 | $as_echo "#define MICO_VER 1" >>confdefs.h
|
---|
4513 |
|
---|
4514 |
|
---|
4515 | fi
|
---|
4516 | #end USE_CORBA test
|
---|
4517 | fi
|
---|
4518 |
|
---|
4519 |
|
---|
4520 | ac_ext=c
|
---|
4521 | ac_cpp='$CPP $CPPFLAGS'
|
---|
4522 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
4523 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
4524 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
4525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
|
---|
4526 | $as_echo_n "checking how to run the C preprocessor... " >&6; }
|
---|
4527 | # On Suns, sometimes $CPP names a directory.
|
---|
4528 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
4529 | CPP=
|
---|
4530 | fi
|
---|
4531 | if test -z "$CPP"; then
|
---|
4532 | if test "${ac_cv_prog_CPP+set}" = set; then :
|
---|
4533 | $as_echo_n "(cached) " >&6
|
---|
4534 | else
|
---|
4535 | # Double quotes because CPP needs to be expanded
|
---|
4536 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
---|
4537 | do
|
---|
4538 | ac_preproc_ok=false
|
---|
4539 | for ac_c_preproc_warn_flag in '' yes
|
---|
4540 | do
|
---|
4541 | # Use a header file that comes with gcc, so configuring glibc
|
---|
4542 | # with a fresh cross-compiler works.
|
---|
4543 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
4544 | # <limits.h> exists even on freestanding compilers.
|
---|
4545 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
4546 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
4547 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4548 | /* end confdefs.h. */
|
---|
4549 | #ifdef __STDC__
|
---|
4550 | # include <limits.h>
|
---|
4551 | #else
|
---|
4552 | # include <assert.h>
|
---|
4553 | #endif
|
---|
4554 | Syntax error
|
---|
4555 | _ACEOF
|
---|
4556 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
4557 |
|
---|
4558 | else
|
---|
4559 | # Broken: fails on valid input.
|
---|
4560 | continue
|
---|
4561 | fi
|
---|
4562 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
4563 |
|
---|
4564 | # OK, works on sane cases. Now check whether nonexistent headers
|
---|
4565 | # can be detected and how.
|
---|
4566 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4567 | /* end confdefs.h. */
|
---|
4568 | #include <ac_nonexistent.h>
|
---|
4569 | _ACEOF
|
---|
4570 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
4571 | # Broken: success on invalid input.
|
---|
4572 | continue
|
---|
4573 | else
|
---|
4574 | # Passes both tests.
|
---|
4575 | ac_preproc_ok=:
|
---|
4576 | break
|
---|
4577 | fi
|
---|
4578 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
4579 |
|
---|
4580 | done
|
---|
4581 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
4582 | rm -f conftest.i conftest.err conftest.$ac_ext
|
---|
4583 | if $ac_preproc_ok; then :
|
---|
4584 | break
|
---|
4585 | fi
|
---|
4586 |
|
---|
4587 | done
|
---|
4588 | ac_cv_prog_CPP=$CPP
|
---|
4589 |
|
---|
4590 | fi
|
---|
4591 | CPP=$ac_cv_prog_CPP
|
---|
4592 | else
|
---|
4593 | ac_cv_prog_CPP=$CPP
|
---|
4594 | fi
|
---|
4595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
|
---|
4596 | $as_echo "$CPP" >&6; }
|
---|
4597 | ac_preproc_ok=false
|
---|
4598 | for ac_c_preproc_warn_flag in '' yes
|
---|
4599 | do
|
---|
4600 | # Use a header file that comes with gcc, so configuring glibc
|
---|
4601 | # with a fresh cross-compiler works.
|
---|
4602 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
4603 | # <limits.h> exists even on freestanding compilers.
|
---|
4604 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
4605 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
4606 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4607 | /* end confdefs.h. */
|
---|
4608 | #ifdef __STDC__
|
---|
4609 | # include <limits.h>
|
---|
4610 | #else
|
---|
4611 | # include <assert.h>
|
---|
4612 | #endif
|
---|
4613 | Syntax error
|
---|
4614 | _ACEOF
|
---|
4615 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
4616 |
|
---|
4617 | else
|
---|
4618 | # Broken: fails on valid input.
|
---|
4619 | continue
|
---|
4620 | fi
|
---|
4621 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
4622 |
|
---|
4623 | # OK, works on sane cases. Now check whether nonexistent headers
|
---|
4624 | # can be detected and how.
|
---|
4625 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4626 | /* end confdefs.h. */
|
---|
4627 | #include <ac_nonexistent.h>
|
---|
4628 | _ACEOF
|
---|
4629 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
4630 | # Broken: success on invalid input.
|
---|
4631 | continue
|
---|
4632 | else
|
---|
4633 | # Passes both tests.
|
---|
4634 | ac_preproc_ok=:
|
---|
4635 | break
|
---|
4636 | fi
|
---|
4637 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
4638 |
|
---|
4639 | done
|
---|
4640 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
4641 | rm -f conftest.i conftest.err conftest.$ac_ext
|
---|
4642 | if $ac_preproc_ok; then :
|
---|
4643 |
|
---|
4644 | else
|
---|
4645 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
4646 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
4647 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
|
---|
4648 | See \`config.log' for more details" "$LINENO" 5 ; }
|
---|
4649 | fi
|
---|
4650 |
|
---|
4651 | ac_ext=c
|
---|
4652 | ac_cpp='$CPP $CPPFLAGS'
|
---|
4653 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
4654 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
4655 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
4656 |
|
---|
4657 |
|
---|
4658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
|
---|
4659 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
|
---|
4660 | if test "${ac_cv_path_GREP+set}" = set; then :
|
---|
4661 | $as_echo_n "(cached) " >&6
|
---|
4662 | else
|
---|
4663 | if test -z "$GREP"; then
|
---|
4664 | ac_path_GREP_found=false
|
---|
4665 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
4666 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4667 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
4668 | do
|
---|
4669 | IFS=$as_save_IFS
|
---|
4670 | test -z "$as_dir" && as_dir=.
|
---|
4671 | for ac_prog in grep ggrep; do
|
---|
4672 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4673 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
|
---|
4674 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
|
---|
4675 | # Check for GNU ac_path_GREP and select it if it is found.
|
---|
4676 | # Check for GNU $ac_path_GREP
|
---|
4677 | case `"$ac_path_GREP" --version 2>&1` in
|
---|
4678 | *GNU*)
|
---|
4679 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
|
---|
4680 | *)
|
---|
4681 | ac_count=0
|
---|
4682 | $as_echo_n 0123456789 >"conftest.in"
|
---|
4683 | while :
|
---|
4684 | do
|
---|
4685 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
4686 | mv "conftest.tmp" "conftest.in"
|
---|
4687 | cp "conftest.in" "conftest.nl"
|
---|
4688 | $as_echo 'GREP' >> "conftest.nl"
|
---|
4689 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
4690 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
4691 | as_fn_arith $ac_count + 1 && ac_count=$as_val
|
---|
4692 | if test $ac_count -gt ${ac_path_GREP_max-0}; then
|
---|
4693 | # Best one so far, save it but keep looking for a better one
|
---|
4694 | ac_cv_path_GREP="$ac_path_GREP"
|
---|
4695 | ac_path_GREP_max=$ac_count
|
---|
4696 | fi
|
---|
4697 | # 10*(2^10) chars as input seems more than enough
|
---|
4698 | test $ac_count -gt 10 && break
|
---|
4699 | done
|
---|
4700 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
4701 | esac
|
---|
4702 |
|
---|
4703 | $ac_path_GREP_found && break 3
|
---|
4704 | done
|
---|
4705 | done
|
---|
4706 | done
|
---|
4707 | IFS=$as_save_IFS
|
---|
4708 | if test -z "$ac_cv_path_GREP"; then
|
---|
4709 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
---|
4710 | fi
|
---|
4711 | else
|
---|
4712 | ac_cv_path_GREP=$GREP
|
---|
4713 | fi
|
---|
4714 |
|
---|
4715 | fi
|
---|
4716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
|
---|
4717 | $as_echo "$ac_cv_path_GREP" >&6; }
|
---|
4718 | GREP="$ac_cv_path_GREP"
|
---|
4719 |
|
---|
4720 |
|
---|
4721 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
|
---|
4722 | $as_echo_n "checking for egrep... " >&6; }
|
---|
4723 | if test "${ac_cv_path_EGREP+set}" = set; then :
|
---|
4724 | $as_echo_n "(cached) " >&6
|
---|
4725 | else
|
---|
4726 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
|
---|
4727 | then ac_cv_path_EGREP="$GREP -E"
|
---|
4728 | else
|
---|
4729 | if test -z "$EGREP"; then
|
---|
4730 | ac_path_EGREP_found=false
|
---|
4731 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
4732 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4733 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
4734 | do
|
---|
4735 | IFS=$as_save_IFS
|
---|
4736 | test -z "$as_dir" && as_dir=.
|
---|
4737 | for ac_prog in egrep; do
|
---|
4738 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4739 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
|
---|
4740 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
|
---|
4741 | # Check for GNU ac_path_EGREP and select it if it is found.
|
---|
4742 | # Check for GNU $ac_path_EGREP
|
---|
4743 | case `"$ac_path_EGREP" --version 2>&1` in
|
---|
4744 | *GNU*)
|
---|
4745 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
|
---|
4746 | *)
|
---|
4747 | ac_count=0
|
---|
4748 | $as_echo_n 0123456789 >"conftest.in"
|
---|
4749 | while :
|
---|
4750 | do
|
---|
4751 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
4752 | mv "conftest.tmp" "conftest.in"
|
---|
4753 | cp "conftest.in" "conftest.nl"
|
---|
4754 | $as_echo 'EGREP' >> "conftest.nl"
|
---|
4755 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
4756 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
4757 | as_fn_arith $ac_count + 1 && ac_count=$as_val
|
---|
4758 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then
|
---|
4759 | # Best one so far, save it but keep looking for a better one
|
---|
4760 | ac_cv_path_EGREP="$ac_path_EGREP"
|
---|
4761 | ac_path_EGREP_max=$ac_count
|
---|
4762 | fi
|
---|
4763 | # 10*(2^10) chars as input seems more than enough
|
---|
4764 | test $ac_count -gt 10 && break
|
---|
4765 | done
|
---|
4766 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
4767 | esac
|
---|
4768 |
|
---|
4769 | $ac_path_EGREP_found && break 3
|
---|
4770 | done
|
---|
4771 | done
|
---|
4772 | done
|
---|
4773 | IFS=$as_save_IFS
|
---|
4774 | if test -z "$ac_cv_path_EGREP"; then
|
---|
4775 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
---|
4776 | fi
|
---|
4777 | else
|
---|
4778 | ac_cv_path_EGREP=$EGREP
|
---|
4779 | fi
|
---|
4780 |
|
---|
4781 | fi
|
---|
4782 | fi
|
---|
4783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
|
---|
4784 | $as_echo "$ac_cv_path_EGREP" >&6; }
|
---|
4785 | EGREP="$ac_cv_path_EGREP"
|
---|
4786 |
|
---|
4787 |
|
---|
4788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
|
---|
4789 | $as_echo_n "checking for ANSI C header files... " >&6; }
|
---|
4790 | if test "${ac_cv_header_stdc+set}" = set; then :
|
---|
4791 | $as_echo_n "(cached) " >&6
|
---|
4792 | else
|
---|
4793 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4794 | /* end confdefs.h. */
|
---|
4795 | #include <stdlib.h>
|
---|
4796 | #include <stdarg.h>
|
---|
4797 | #include <string.h>
|
---|
4798 | #include <float.h>
|
---|
4799 |
|
---|
4800 | int
|
---|
4801 | main ()
|
---|
4802 | {
|
---|
4803 |
|
---|
4804 | ;
|
---|
4805 | return 0;
|
---|
4806 | }
|
---|
4807 | _ACEOF
|
---|
4808 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
4809 | ac_cv_header_stdc=yes
|
---|
4810 | else
|
---|
4811 | ac_cv_header_stdc=no
|
---|
4812 | fi
|
---|
4813 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4814 |
|
---|
4815 | if test $ac_cv_header_stdc = yes; then
|
---|
4816 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
4817 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4818 | /* end confdefs.h. */
|
---|
4819 | #include <string.h>
|
---|
4820 |
|
---|
4821 | _ACEOF
|
---|
4822 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
4823 | $EGREP "memchr" >/dev/null 2>&1; then :
|
---|
4824 |
|
---|
4825 | else
|
---|
4826 | ac_cv_header_stdc=no
|
---|
4827 | fi
|
---|
4828 | rm -f conftest*
|
---|
4829 |
|
---|
4830 | fi
|
---|
4831 |
|
---|
4832 | if test $ac_cv_header_stdc = yes; then
|
---|
4833 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
4834 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4835 | /* end confdefs.h. */
|
---|
4836 | #include <stdlib.h>
|
---|
4837 |
|
---|
4838 | _ACEOF
|
---|
4839 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
4840 | $EGREP "free" >/dev/null 2>&1; then :
|
---|
4841 |
|
---|
4842 | else
|
---|
4843 | ac_cv_header_stdc=no
|
---|
4844 | fi
|
---|
4845 | rm -f conftest*
|
---|
4846 |
|
---|
4847 | fi
|
---|
4848 |
|
---|
4849 | if test $ac_cv_header_stdc = yes; then
|
---|
4850 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
4851 | if test "$cross_compiling" = yes; then :
|
---|
4852 | :
|
---|
4853 | else
|
---|
4854 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4855 | /* end confdefs.h. */
|
---|
4856 | #include <ctype.h>
|
---|
4857 | #include <stdlib.h>
|
---|
4858 | #if ((' ' & 0x0FF) == 0x020)
|
---|
4859 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
4860 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
4861 | #else
|
---|
4862 | # define ISLOWER(c) \
|
---|
4863 | (('a' <= (c) && (c) <= 'i') \
|
---|
4864 | || ('j' <= (c) && (c) <= 'r') \
|
---|
4865 | || ('s' <= (c) && (c) <= 'z'))
|
---|
4866 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
4867 | #endif
|
---|
4868 |
|
---|
4869 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
4870 | int
|
---|
4871 | main ()
|
---|
4872 | {
|
---|
4873 | int i;
|
---|
4874 | for (i = 0; i < 256; i++)
|
---|
4875 | if (XOR (islower (i), ISLOWER (i))
|
---|
4876 | || toupper (i) != TOUPPER (i))
|
---|
4877 | return 2;
|
---|
4878 | return 0;
|
---|
4879 | }
|
---|
4880 | _ACEOF
|
---|
4881 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
4882 |
|
---|
4883 | else
|
---|
4884 | ac_cv_header_stdc=no
|
---|
4885 | fi
|
---|
4886 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
4887 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
4888 | fi
|
---|
4889 |
|
---|
4890 | fi
|
---|
4891 | fi
|
---|
4892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
|
---|
4893 | $as_echo "$ac_cv_header_stdc" >&6; }
|
---|
4894 | if test $ac_cv_header_stdc = yes; then
|
---|
4895 |
|
---|
4896 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h
|
---|
4897 |
|
---|
4898 | fi
|
---|
4899 |
|
---|
4900 | # On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
---|
4901 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
---|
4902 | inttypes.h stdint.h unistd.h
|
---|
4903 | do :
|
---|
4904 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
4905 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
|
---|
4906 | "
|
---|
4907 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
|
---|
4908 | cat >>confdefs.h <<_ACEOF
|
---|
4909 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
4910 | _ACEOF
|
---|
4911 |
|
---|
4912 | fi
|
---|
4913 |
|
---|
4914 | done
|
---|
4915 |
|
---|
4916 |
|
---|
4917 |
|
---|
4918 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
|
---|
4919 | if test "x$ac_cv_header_minix_config_h" = x""yes; then :
|
---|
4920 | MINIX=yes
|
---|
4921 | else
|
---|
4922 | MINIX=
|
---|
4923 | fi
|
---|
4924 |
|
---|
4925 |
|
---|
4926 | if test "$MINIX" = yes; then
|
---|
4927 |
|
---|
4928 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
|
---|
4929 |
|
---|
4930 |
|
---|
4931 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
|
---|
4932 |
|
---|
4933 |
|
---|
4934 | $as_echo "#define _MINIX 1" >>confdefs.h
|
---|
4935 |
|
---|
4936 | fi
|
---|
4937 |
|
---|
4938 |
|
---|
4939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
|
---|
4940 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
|
---|
4941 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
|
---|
4942 | $as_echo_n "(cached) " >&6
|
---|
4943 | else
|
---|
4944 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4945 | /* end confdefs.h. */
|
---|
4946 |
|
---|
4947 | # define __EXTENSIONS__ 1
|
---|
4948 | $ac_includes_default
|
---|
4949 | int
|
---|
4950 | main ()
|
---|
4951 | {
|
---|
4952 |
|
---|
4953 | ;
|
---|
4954 | return 0;
|
---|
4955 | }
|
---|
4956 | _ACEOF
|
---|
4957 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
4958 | ac_cv_safe_to_define___extensions__=yes
|
---|
4959 | else
|
---|
4960 | ac_cv_safe_to_define___extensions__=no
|
---|
4961 | fi
|
---|
4962 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4963 | fi
|
---|
4964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
|
---|
4965 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
|
---|
4966 | test $ac_cv_safe_to_define___extensions__ = yes &&
|
---|
4967 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
|
---|
4968 |
|
---|
4969 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
|
---|
4970 |
|
---|
4971 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
|
---|
4972 |
|
---|
4973 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
|
---|
4974 |
|
---|
4975 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
|
---|
4976 |
|
---|
4977 |
|
---|
4978 |
|
---|
4979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
|
---|
4980 | $as_echo_n "checking for library containing strerror... " >&6; }
|
---|
4981 | if test "${ac_cv_search_strerror+set}" = set; then :
|
---|
4982 | $as_echo_n "(cached) " >&6
|
---|
4983 | else
|
---|
4984 | ac_func_search_save_LIBS=$LIBS
|
---|
4985 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4986 | /* end confdefs.h. */
|
---|
4987 |
|
---|
4988 | /* Override any GCC internal prototype to avoid an error.
|
---|
4989 | Use char because int might match the return type of a GCC
|
---|
4990 | builtin and then its argument prototype would still apply. */
|
---|
4991 | #ifdef __cplusplus
|
---|
4992 | extern "C"
|
---|
4993 | #endif
|
---|
4994 | char strerror ();
|
---|
4995 | int
|
---|
4996 | main ()
|
---|
4997 | {
|
---|
4998 | return strerror ();
|
---|
4999 | ;
|
---|
5000 | return 0;
|
---|
5001 | }
|
---|
5002 | _ACEOF
|
---|
5003 | for ac_lib in '' cposix; do
|
---|
5004 | if test -z "$ac_lib"; then
|
---|
5005 | ac_res="none required"
|
---|
5006 | else
|
---|
5007 | ac_res=-l$ac_lib
|
---|
5008 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
5009 | fi
|
---|
5010 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5011 | ac_cv_search_strerror=$ac_res
|
---|
5012 | fi
|
---|
5013 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5014 | conftest$ac_exeext
|
---|
5015 | if test "${ac_cv_search_strerror+set}" = set; then :
|
---|
5016 | break
|
---|
5017 | fi
|
---|
5018 | done
|
---|
5019 | if test "${ac_cv_search_strerror+set}" = set; then :
|
---|
5020 |
|
---|
5021 | else
|
---|
5022 | ac_cv_search_strerror=no
|
---|
5023 | fi
|
---|
5024 | rm conftest.$ac_ext
|
---|
5025 | LIBS=$ac_func_search_save_LIBS
|
---|
5026 | fi
|
---|
5027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
|
---|
5028 | $as_echo "$ac_cv_search_strerror" >&6; }
|
---|
5029 | ac_res=$ac_cv_search_strerror
|
---|
5030 | if test "$ac_res" != no; then :
|
---|
5031 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
5032 |
|
---|
5033 | fi
|
---|
5034 |
|
---|
5035 |
|
---|
5036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
|
---|
5037 | $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
|
---|
5038 | if test "${ac_cv_prog_cc_stdc+set}" = set; then :
|
---|
5039 | $as_echo_n "(cached) " >&6
|
---|
5040 | else
|
---|
5041 | ac_cv_prog_cc_stdc=no
|
---|
5042 | ac_save_CFLAGS="$CFLAGS"
|
---|
5043 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
5044 | # breaks some systems' header files.
|
---|
5045 | # AIX -qlanglvl=ansi
|
---|
5046 | # Ultrix and OSF/1 -std1
|
---|
5047 | # HP-UX -Aa -D_HPUX_SOURCE
|
---|
5048 | # SVR4 -Xc
|
---|
5049 | for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
|
---|
5050 | do
|
---|
5051 | CFLAGS="$ac_save_CFLAGS $ac_arg"
|
---|
5052 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5053 | /* end confdefs.h. */
|
---|
5054 | #if !defined(__STDC__) || __STDC__ != 1
|
---|
5055 | choke me
|
---|
5056 | #endif
|
---|
5057 |
|
---|
5058 | int
|
---|
5059 | main ()
|
---|
5060 | {
|
---|
5061 | int test (int i, double x);
|
---|
5062 | struct s1 {int (*f) (int a);};
|
---|
5063 | struct s2 {int (*f) (double a);};
|
---|
5064 | ;
|
---|
5065 | return 0;
|
---|
5066 | }
|
---|
5067 | _ACEOF
|
---|
5068 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
5069 | ac_cv_prog_cc_stdc="$ac_arg"; break
|
---|
5070 | fi
|
---|
5071 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5072 | done
|
---|
5073 | CFLAGS="$ac_save_CFLAGS"
|
---|
5074 |
|
---|
5075 | fi
|
---|
5076 |
|
---|
5077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
|
---|
5078 | $as_echo "$ac_cv_prog_cc_stdc" >&6; }
|
---|
5079 | case "x$ac_cv_prog_cc_stdc" in
|
---|
5080 | x|xno) ;;
|
---|
5081 | *) CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
5082 | esac
|
---|
5083 |
|
---|
5084 |
|
---|
5085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
|
---|
5086 | $as_echo_n "checking for function prototypes... " >&6; }
|
---|
5087 | if test "$ac_cv_prog_cc_stdc" != no; then
|
---|
5088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
5089 | $as_echo "yes" >&6; }
|
---|
5090 | $as_echo "#define PROTOTYPES 1" >>confdefs.h
|
---|
5091 |
|
---|
5092 | U= ANSI2KNR=
|
---|
5093 | else
|
---|
5094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5095 | $as_echo "no" >&6; }
|
---|
5096 | U=_ ANSI2KNR=ansi2knr
|
---|
5097 | fi
|
---|
5098 |
|
---|
5099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
|
---|
5100 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
|
---|
5101 | if test "${ac_cv_c_const+set}" = set; then :
|
---|
5102 | $as_echo_n "(cached) " >&6
|
---|
5103 | else
|
---|
5104 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5105 | /* end confdefs.h. */
|
---|
5106 |
|
---|
5107 | int
|
---|
5108 | main ()
|
---|
5109 | {
|
---|
5110 | /* FIXME: Include the comments suggested by Paul. */
|
---|
5111 | #ifndef __cplusplus
|
---|
5112 | /* Ultrix mips cc rejects this. */
|
---|
5113 | typedef int charset[2];
|
---|
5114 | const charset cs;
|
---|
5115 | /* SunOS 4.1.1 cc rejects this. */
|
---|
5116 | char const *const *pcpcc;
|
---|
5117 | char **ppc;
|
---|
5118 | /* NEC SVR4.0.2 mips cc rejects this. */
|
---|
5119 | struct point {int x, y;};
|
---|
5120 | static struct point const zero = {0,0};
|
---|
5121 | /* AIX XL C 1.02.0.0 rejects this.
|
---|
5122 | It does not let you subtract one const X* pointer from another in
|
---|
5123 | an arm of an if-expression whose if-part is not a constant
|
---|
5124 | expression */
|
---|
5125 | const char *g = "string";
|
---|
5126 | pcpcc = &g + (g ? g-g : 0);
|
---|
5127 | /* HPUX 7.0 cc rejects these. */
|
---|
5128 | ++pcpcc;
|
---|
5129 | ppc = (char**) pcpcc;
|
---|
5130 | pcpcc = (char const *const *) ppc;
|
---|
5131 | { /* SCO 3.2v4 cc rejects this. */
|
---|
5132 | char *t;
|
---|
5133 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
---|
5134 |
|
---|
5135 | *t++ = 0;
|
---|
5136 | if (s) return 0;
|
---|
5137 | }
|
---|
5138 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
---|
5139 | int x[] = {25, 17};
|
---|
5140 | const int *foo = &x[0];
|
---|
5141 | ++foo;
|
---|
5142 | }
|
---|
5143 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
---|
5144 | typedef const int *iptr;
|
---|
5145 | iptr p = 0;
|
---|
5146 | ++p;
|
---|
5147 | }
|
---|
5148 | { /* AIX XL C 1.02.0.0 rejects this saying
|
---|
5149 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
---|
5150 | struct s { int j; const int *ap[3]; };
|
---|
5151 | struct s *b; b->j = 5;
|
---|
5152 | }
|
---|
5153 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
---|
5154 | const int foo = 10;
|
---|
5155 | if (!foo) return 0;
|
---|
5156 | }
|
---|
5157 | return !cs[0] && !zero.x;
|
---|
5158 | #endif
|
---|
5159 |
|
---|
5160 | ;
|
---|
5161 | return 0;
|
---|
5162 | }
|
---|
5163 | _ACEOF
|
---|
5164 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
5165 | ac_cv_c_const=yes
|
---|
5166 | else
|
---|
5167 | ac_cv_c_const=no
|
---|
5168 | fi
|
---|
5169 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5170 | fi
|
---|
5171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
|
---|
5172 | $as_echo "$ac_cv_c_const" >&6; }
|
---|
5173 | if test $ac_cv_c_const = no; then
|
---|
5174 |
|
---|
5175 | $as_echo "#define const /**/" >>confdefs.h
|
---|
5176 |
|
---|
5177 | fi
|
---|
5178 |
|
---|
5179 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
|
---|
5180 | if test "x$ac_cv_type_off_t" = x""yes; then :
|
---|
5181 |
|
---|
5182 | else
|
---|
5183 |
|
---|
5184 | cat >>confdefs.h <<_ACEOF
|
---|
5185 | #define off_t long int
|
---|
5186 | _ACEOF
|
---|
5187 |
|
---|
5188 | fi
|
---|
5189 |
|
---|
5190 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
|
---|
5191 | if test "x$ac_cv_type_size_t" = x""yes; then :
|
---|
5192 |
|
---|
5193 | else
|
---|
5194 |
|
---|
5195 | cat >>confdefs.h <<_ACEOF
|
---|
5196 | #define size_t unsigned int
|
---|
5197 | _ACEOF
|
---|
5198 |
|
---|
5199 | fi
|
---|
5200 |
|
---|
5201 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
|
---|
5202 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
|
---|
5203 | if test "${ac_cv_header_time+set}" = set; then :
|
---|
5204 | $as_echo_n "(cached) " >&6
|
---|
5205 | else
|
---|
5206 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5207 | /* end confdefs.h. */
|
---|
5208 | #include <sys/types.h>
|
---|
5209 | #include <sys/time.h>
|
---|
5210 | #include <time.h>
|
---|
5211 |
|
---|
5212 | int
|
---|
5213 | main ()
|
---|
5214 | {
|
---|
5215 | if ((struct tm *) 0)
|
---|
5216 | return 0;
|
---|
5217 | ;
|
---|
5218 | return 0;
|
---|
5219 | }
|
---|
5220 | _ACEOF
|
---|
5221 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
5222 | ac_cv_header_time=yes
|
---|
5223 | else
|
---|
5224 | ac_cv_header_time=no
|
---|
5225 | fi
|
---|
5226 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5227 | fi
|
---|
5228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
|
---|
5229 | $as_echo "$ac_cv_header_time" >&6; }
|
---|
5230 | if test $ac_cv_header_time = yes; then
|
---|
5231 |
|
---|
5232 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
|
---|
5233 |
|
---|
5234 | fi
|
---|
5235 |
|
---|
5236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
|
---|
5237 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
|
---|
5238 | if test "${ac_cv_struct_tm+set}" = set; then :
|
---|
5239 | $as_echo_n "(cached) " >&6
|
---|
5240 | else
|
---|
5241 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5242 | /* end confdefs.h. */
|
---|
5243 | #include <sys/types.h>
|
---|
5244 | #include <time.h>
|
---|
5245 |
|
---|
5246 | int
|
---|
5247 | main ()
|
---|
5248 | {
|
---|
5249 | struct tm tm;
|
---|
5250 | int *p = &tm.tm_sec;
|
---|
5251 | return !p;
|
---|
5252 | ;
|
---|
5253 | return 0;
|
---|
5254 | }
|
---|
5255 | _ACEOF
|
---|
5256 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
5257 | ac_cv_struct_tm=time.h
|
---|
5258 | else
|
---|
5259 | ac_cv_struct_tm=sys/time.h
|
---|
5260 | fi
|
---|
5261 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5262 | fi
|
---|
5263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
|
---|
5264 | $as_echo "$ac_cv_struct_tm" >&6; }
|
---|
5265 | if test $ac_cv_struct_tm = sys/time.h; then
|
---|
5266 |
|
---|
5267 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
|
---|
5268 |
|
---|
5269 | fi
|
---|
5270 |
|
---|
5271 |
|
---|
5272 | if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
|
---|
5273 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5274 | /* end confdefs.h. */
|
---|
5275 | #include <stdio.h>
|
---|
5276 |
|
---|
5277 | int
|
---|
5278 | main ()
|
---|
5279 | {
|
---|
5280 | FILE *rubbish = popen("yes", "r");
|
---|
5281 | ;
|
---|
5282 | return 0;
|
---|
5283 | }
|
---|
5284 | _ACEOF
|
---|
5285 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
5286 |
|
---|
5287 | else
|
---|
5288 | CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa'
|
---|
5289 | fi
|
---|
5290 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5291 | fi
|
---|
5292 |
|
---|
5293 |
|
---|
5294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lg" >&5
|
---|
5295 | $as_echo_n "checking for main in -lg... " >&6; }
|
---|
5296 | if test "${ac_cv_lib_g_main+set}" = set; then :
|
---|
5297 | $as_echo_n "(cached) " >&6
|
---|
5298 | else
|
---|
5299 | ac_check_lib_save_LIBS=$LIBS
|
---|
5300 | LIBS="-lg $LIBS"
|
---|
5301 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5302 | /* end confdefs.h. */
|
---|
5303 |
|
---|
5304 |
|
---|
5305 | int
|
---|
5306 | main ()
|
---|
5307 | {
|
---|
5308 | return main ();
|
---|
5309 | ;
|
---|
5310 | return 0;
|
---|
5311 | }
|
---|
5312 | _ACEOF
|
---|
5313 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5314 | ac_cv_lib_g_main=yes
|
---|
5315 | else
|
---|
5316 | ac_cv_lib_g_main=no
|
---|
5317 | fi
|
---|
5318 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5319 | conftest$ac_exeext conftest.$ac_ext
|
---|
5320 | LIBS=$ac_check_lib_save_LIBS
|
---|
5321 | fi
|
---|
5322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_g_main" >&5
|
---|
5323 | $as_echo "$ac_cv_lib_g_main" >&6; }
|
---|
5324 | if test "x$ac_cv_lib_g_main" = x""yes; then :
|
---|
5325 | cat >>confdefs.h <<_ACEOF
|
---|
5326 | #define HAVE_LIBG 1
|
---|
5327 | _ACEOF
|
---|
5328 |
|
---|
5329 | LIBS="-lg $LIBS"
|
---|
5330 |
|
---|
5331 | fi
|
---|
5332 | ac_cv_lib_g=ac_cv_lib_g_main
|
---|
5333 |
|
---|
5334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
|
---|
5335 | $as_echo_n "checking for main in -lm... " >&6; }
|
---|
5336 | if test "${ac_cv_lib_m_main+set}" = set; then :
|
---|
5337 | $as_echo_n "(cached) " >&6
|
---|
5338 | else
|
---|
5339 | ac_check_lib_save_LIBS=$LIBS
|
---|
5340 | LIBS="-lm $LIBS"
|
---|
5341 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5342 | /* end confdefs.h. */
|
---|
5343 |
|
---|
5344 |
|
---|
5345 | int
|
---|
5346 | main ()
|
---|
5347 | {
|
---|
5348 | return main ();
|
---|
5349 | ;
|
---|
5350 | return 0;
|
---|
5351 | }
|
---|
5352 | _ACEOF
|
---|
5353 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5354 | ac_cv_lib_m_main=yes
|
---|
5355 | else
|
---|
5356 | ac_cv_lib_m_main=no
|
---|
5357 | fi
|
---|
5358 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5359 | conftest$ac_exeext conftest.$ac_ext
|
---|
5360 | LIBS=$ac_check_lib_save_LIBS
|
---|
5361 | fi
|
---|
5362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
|
---|
5363 | $as_echo "$ac_cv_lib_m_main" >&6; }
|
---|
5364 | if test "x$ac_cv_lib_m_main" = x""yes; then :
|
---|
5365 | cat >>confdefs.h <<_ACEOF
|
---|
5366 | #define HAVE_LIBM 1
|
---|
5367 | _ACEOF
|
---|
5368 |
|
---|
5369 | LIBS="-lm $LIBS"
|
---|
5370 |
|
---|
5371 | fi
|
---|
5372 | ac_cv_lib_m=ac_cv_lib_m_main
|
---|
5373 |
|
---|
5374 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypt" >&5
|
---|
5375 | $as_echo_n "checking for main in -lcrypt... " >&6; }
|
---|
5376 | if test "${ac_cv_lib_crypt_main+set}" = set; then :
|
---|
5377 | $as_echo_n "(cached) " >&6
|
---|
5378 | else
|
---|
5379 | ac_check_lib_save_LIBS=$LIBS
|
---|
5380 | LIBS="-lcrypt $LIBS"
|
---|
5381 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5382 | /* end confdefs.h. */
|
---|
5383 |
|
---|
5384 |
|
---|
5385 | int
|
---|
5386 | main ()
|
---|
5387 | {
|
---|
5388 | return main ();
|
---|
5389 | ;
|
---|
5390 | return 0;
|
---|
5391 | }
|
---|
5392 | _ACEOF
|
---|
5393 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5394 | ac_cv_lib_crypt_main=yes
|
---|
5395 | else
|
---|
5396 | ac_cv_lib_crypt_main=no
|
---|
5397 | fi
|
---|
5398 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5399 | conftest$ac_exeext conftest.$ac_ext
|
---|
5400 | LIBS=$ac_check_lib_save_LIBS
|
---|
5401 | fi
|
---|
5402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_main" >&5
|
---|
5403 | $as_echo "$ac_cv_lib_crypt_main" >&6; }
|
---|
5404 | if test "x$ac_cv_lib_crypt_main" = x""yes; then :
|
---|
5405 | cat >>confdefs.h <<_ACEOF
|
---|
5406 | #define HAVE_LIBCRYPT 1
|
---|
5407 | _ACEOF
|
---|
5408 |
|
---|
5409 | LIBS="-lcrypt $LIBS"
|
---|
5410 |
|
---|
5411 | fi
|
---|
5412 | ac_cv_lib_crypt=ac_cv_lib_crypt_main
|
---|
5413 |
|
---|
5414 | if test $ENABLE_ACCENTFOLD = 1; then
|
---|
5415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -liconv" >&5
|
---|
5416 | $as_echo_n "checking for main in -liconv... " >&6; }
|
---|
5417 | if test "${ac_cv_lib_iconv_main+set}" = set; then :
|
---|
5418 | $as_echo_n "(cached) " >&6
|
---|
5419 | else
|
---|
5420 | ac_check_lib_save_LIBS=$LIBS
|
---|
5421 | LIBS="-liconv $LIBS"
|
---|
5422 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5423 | /* end confdefs.h. */
|
---|
5424 |
|
---|
5425 |
|
---|
5426 | int
|
---|
5427 | main ()
|
---|
5428 | {
|
---|
5429 | return main ();
|
---|
5430 | ;
|
---|
5431 | return 0;
|
---|
5432 | }
|
---|
5433 | _ACEOF
|
---|
5434 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5435 | ac_cv_lib_iconv_main=yes
|
---|
5436 | else
|
---|
5437 | ac_cv_lib_iconv_main=no
|
---|
5438 | fi
|
---|
5439 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5440 | conftest$ac_exeext conftest.$ac_ext
|
---|
5441 | LIBS=$ac_check_lib_save_LIBS
|
---|
5442 | fi
|
---|
5443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_main" >&5
|
---|
5444 | $as_echo "$ac_cv_lib_iconv_main" >&6; }
|
---|
5445 | if test "x$ac_cv_lib_iconv_main" = x""yes; then :
|
---|
5446 | cat >>confdefs.h <<_ACEOF
|
---|
5447 | #define HAVE_LIBICONV 1
|
---|
5448 | _ACEOF
|
---|
5449 |
|
---|
5450 | LIBS="-liconv $LIBS"
|
---|
5451 |
|
---|
5452 | fi
|
---|
5453 | ac_cv_lib_iconv=ac_cv_lib_iconv_main
|
---|
5454 |
|
---|
5455 | fi
|
---|
5456 |
|
---|
5457 | ac_header_dirent=no
|
---|
5458 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
|
---|
5459 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
|
---|
5460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
|
---|
5461 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
|
---|
5462 | if eval "test \"\${$as_ac_Header+set}\"" = set; then :
|
---|
5463 | $as_echo_n "(cached) " >&6
|
---|
5464 | else
|
---|
5465 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5466 | /* end confdefs.h. */
|
---|
5467 | #include <sys/types.h>
|
---|
5468 | #include <$ac_hdr>
|
---|
5469 |
|
---|
5470 | int
|
---|
5471 | main ()
|
---|
5472 | {
|
---|
5473 | if ((DIR *) 0)
|
---|
5474 | return 0;
|
---|
5475 | ;
|
---|
5476 | return 0;
|
---|
5477 | }
|
---|
5478 | _ACEOF
|
---|
5479 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
5480 | eval "$as_ac_Header=yes"
|
---|
5481 | else
|
---|
5482 | eval "$as_ac_Header=no"
|
---|
5483 | fi
|
---|
5484 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5485 | fi
|
---|
5486 | eval ac_res=\$$as_ac_Header
|
---|
5487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
5488 | $as_echo "$ac_res" >&6; }
|
---|
5489 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
|
---|
5490 | cat >>confdefs.h <<_ACEOF
|
---|
5491 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
|
---|
5492 | _ACEOF
|
---|
5493 |
|
---|
5494 | ac_header_dirent=$ac_hdr; break
|
---|
5495 | fi
|
---|
5496 |
|
---|
5497 | done
|
---|
5498 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
---|
5499 | if test $ac_header_dirent = dirent.h; then
|
---|
5500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
|
---|
5501 | $as_echo_n "checking for library containing opendir... " >&6; }
|
---|
5502 | if test "${ac_cv_search_opendir+set}" = set; then :
|
---|
5503 | $as_echo_n "(cached) " >&6
|
---|
5504 | else
|
---|
5505 | ac_func_search_save_LIBS=$LIBS
|
---|
5506 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5507 | /* end confdefs.h. */
|
---|
5508 |
|
---|
5509 | /* Override any GCC internal prototype to avoid an error.
|
---|
5510 | Use char because int might match the return type of a GCC
|
---|
5511 | builtin and then its argument prototype would still apply. */
|
---|
5512 | #ifdef __cplusplus
|
---|
5513 | extern "C"
|
---|
5514 | #endif
|
---|
5515 | char opendir ();
|
---|
5516 | int
|
---|
5517 | main ()
|
---|
5518 | {
|
---|
5519 | return opendir ();
|
---|
5520 | ;
|
---|
5521 | return 0;
|
---|
5522 | }
|
---|
5523 | _ACEOF
|
---|
5524 | for ac_lib in '' dir; do
|
---|
5525 | if test -z "$ac_lib"; then
|
---|
5526 | ac_res="none required"
|
---|
5527 | else
|
---|
5528 | ac_res=-l$ac_lib
|
---|
5529 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
5530 | fi
|
---|
5531 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5532 | ac_cv_search_opendir=$ac_res
|
---|
5533 | fi
|
---|
5534 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5535 | conftest$ac_exeext
|
---|
5536 | if test "${ac_cv_search_opendir+set}" = set; then :
|
---|
5537 | break
|
---|
5538 | fi
|
---|
5539 | done
|
---|
5540 | if test "${ac_cv_search_opendir+set}" = set; then :
|
---|
5541 |
|
---|
5542 | else
|
---|
5543 | ac_cv_search_opendir=no
|
---|
5544 | fi
|
---|
5545 | rm conftest.$ac_ext
|
---|
5546 | LIBS=$ac_func_search_save_LIBS
|
---|
5547 | fi
|
---|
5548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
|
---|
5549 | $as_echo "$ac_cv_search_opendir" >&6; }
|
---|
5550 | ac_res=$ac_cv_search_opendir
|
---|
5551 | if test "$ac_res" != no; then :
|
---|
5552 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
5553 |
|
---|
5554 | fi
|
---|
5555 |
|
---|
5556 | else
|
---|
5557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
|
---|
5558 | $as_echo_n "checking for library containing opendir... " >&6; }
|
---|
5559 | if test "${ac_cv_search_opendir+set}" = set; then :
|
---|
5560 | $as_echo_n "(cached) " >&6
|
---|
5561 | else
|
---|
5562 | ac_func_search_save_LIBS=$LIBS
|
---|
5563 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5564 | /* end confdefs.h. */
|
---|
5565 |
|
---|
5566 | /* Override any GCC internal prototype to avoid an error.
|
---|
5567 | Use char because int might match the return type of a GCC
|
---|
5568 | builtin and then its argument prototype would still apply. */
|
---|
5569 | #ifdef __cplusplus
|
---|
5570 | extern "C"
|
---|
5571 | #endif
|
---|
5572 | char opendir ();
|
---|
5573 | int
|
---|
5574 | main ()
|
---|
5575 | {
|
---|
5576 | return opendir ();
|
---|
5577 | ;
|
---|
5578 | return 0;
|
---|
5579 | }
|
---|
5580 | _ACEOF
|
---|
5581 | for ac_lib in '' x; do
|
---|
5582 | if test -z "$ac_lib"; then
|
---|
5583 | ac_res="none required"
|
---|
5584 | else
|
---|
5585 | ac_res=-l$ac_lib
|
---|
5586 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
5587 | fi
|
---|
5588 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5589 | ac_cv_search_opendir=$ac_res
|
---|
5590 | fi
|
---|
5591 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5592 | conftest$ac_exeext
|
---|
5593 | if test "${ac_cv_search_opendir+set}" = set; then :
|
---|
5594 | break
|
---|
5595 | fi
|
---|
5596 | done
|
---|
5597 | if test "${ac_cv_search_opendir+set}" = set; then :
|
---|
5598 |
|
---|
5599 | else
|
---|
5600 | ac_cv_search_opendir=no
|
---|
5601 | fi
|
---|
5602 | rm conftest.$ac_ext
|
---|
5603 | LIBS=$ac_func_search_save_LIBS
|
---|
5604 | fi
|
---|
5605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
|
---|
5606 | $as_echo "$ac_cv_search_opendir" >&6; }
|
---|
5607 | ac_res=$ac_cv_search_opendir
|
---|
5608 | if test "$ac_res" != no; then :
|
---|
5609 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
5610 |
|
---|
5611 | fi
|
---|
5612 |
|
---|
5613 | fi
|
---|
5614 |
|
---|
5615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
|
---|
5616 | $as_echo_n "checking for ANSI C header files... " >&6; }
|
---|
5617 | if test "${ac_cv_header_stdc+set}" = set; then :
|
---|
5618 | $as_echo_n "(cached) " >&6
|
---|
5619 | else
|
---|
5620 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5621 | /* end confdefs.h. */
|
---|
5622 | #include <stdlib.h>
|
---|
5623 | #include <stdarg.h>
|
---|
5624 | #include <string.h>
|
---|
5625 | #include <float.h>
|
---|
5626 |
|
---|
5627 | int
|
---|
5628 | main ()
|
---|
5629 | {
|
---|
5630 |
|
---|
5631 | ;
|
---|
5632 | return 0;
|
---|
5633 | }
|
---|
5634 | _ACEOF
|
---|
5635 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
5636 | ac_cv_header_stdc=yes
|
---|
5637 | else
|
---|
5638 | ac_cv_header_stdc=no
|
---|
5639 | fi
|
---|
5640 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5641 |
|
---|
5642 | if test $ac_cv_header_stdc = yes; then
|
---|
5643 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
5644 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5645 | /* end confdefs.h. */
|
---|
5646 | #include <string.h>
|
---|
5647 |
|
---|
5648 | _ACEOF
|
---|
5649 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5650 | $EGREP "memchr" >/dev/null 2>&1; then :
|
---|
5651 |
|
---|
5652 | else
|
---|
5653 | ac_cv_header_stdc=no
|
---|
5654 | fi
|
---|
5655 | rm -f conftest*
|
---|
5656 |
|
---|
5657 | fi
|
---|
5658 |
|
---|
5659 | if test $ac_cv_header_stdc = yes; then
|
---|
5660 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
5661 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5662 | /* end confdefs.h. */
|
---|
5663 | #include <stdlib.h>
|
---|
5664 |
|
---|
5665 | _ACEOF
|
---|
5666 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5667 | $EGREP "free" >/dev/null 2>&1; then :
|
---|
5668 |
|
---|
5669 | else
|
---|
5670 | ac_cv_header_stdc=no
|
---|
5671 | fi
|
---|
5672 | rm -f conftest*
|
---|
5673 |
|
---|
5674 | fi
|
---|
5675 |
|
---|
5676 | if test $ac_cv_header_stdc = yes; then
|
---|
5677 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
5678 | if test "$cross_compiling" = yes; then :
|
---|
5679 | :
|
---|
5680 | else
|
---|
5681 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5682 | /* end confdefs.h. */
|
---|
5683 | #include <ctype.h>
|
---|
5684 | #include <stdlib.h>
|
---|
5685 | #if ((' ' & 0x0FF) == 0x020)
|
---|
5686 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
5687 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
5688 | #else
|
---|
5689 | # define ISLOWER(c) \
|
---|
5690 | (('a' <= (c) && (c) <= 'i') \
|
---|
5691 | || ('j' <= (c) && (c) <= 'r') \
|
---|
5692 | || ('s' <= (c) && (c) <= 'z'))
|
---|
5693 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
5694 | #endif
|
---|
5695 |
|
---|
5696 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
5697 | int
|
---|
5698 | main ()
|
---|
5699 | {
|
---|
5700 | int i;
|
---|
5701 | for (i = 0; i < 256; i++)
|
---|
5702 | if (XOR (islower (i), ISLOWER (i))
|
---|
5703 | || toupper (i) != TOUPPER (i))
|
---|
5704 | return 2;
|
---|
5705 | return 0;
|
---|
5706 | }
|
---|
5707 | _ACEOF
|
---|
5708 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
5709 |
|
---|
5710 | else
|
---|
5711 | ac_cv_header_stdc=no
|
---|
5712 | fi
|
---|
5713 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
5714 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
5715 | fi
|
---|
5716 |
|
---|
5717 | fi
|
---|
5718 | fi
|
---|
5719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
|
---|
5720 | $as_echo "$ac_cv_header_stdc" >&6; }
|
---|
5721 | if test $ac_cv_header_stdc = yes; then
|
---|
5722 |
|
---|
5723 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h
|
---|
5724 |
|
---|
5725 | fi
|
---|
5726 |
|
---|
5727 | for ac_header in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h sys/stat.h
|
---|
5728 | do :
|
---|
5729 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
5730 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
|
---|
5731 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
|
---|
5732 | cat >>confdefs.h <<_ACEOF
|
---|
5733 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
5734 | _ACEOF
|
---|
5735 |
|
---|
5736 | fi
|
---|
5737 |
|
---|
5738 | done
|
---|
5739 |
|
---|
5740 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5741 | /* end confdefs.h. */
|
---|
5742 | #include <stdio.h>
|
---|
5743 |
|
---|
5744 | _ACEOF
|
---|
5745 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5746 | $EGREP "fread" >/dev/null 2>&1; then :
|
---|
5747 | $as_echo "#define HAVE_FREAD_DECL 1" >>confdefs.h
|
---|
5748 |
|
---|
5749 | fi
|
---|
5750 | rm -f conftest*
|
---|
5751 |
|
---|
5752 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5753 | /* end confdefs.h. */
|
---|
5754 | #include <stdio.h>
|
---|
5755 |
|
---|
5756 | _ACEOF
|
---|
5757 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5758 | $EGREP "fgetc" >/dev/null 2>&1; then :
|
---|
5759 | $as_echo "#define HAVE_FGETC_DECL 1" >>confdefs.h
|
---|
5760 |
|
---|
5761 | fi
|
---|
5762 | rm -f conftest*
|
---|
5763 |
|
---|
5764 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5765 | /* end confdefs.h. */
|
---|
5766 | #include <sys/procfs.h>
|
---|
5767 |
|
---|
5768 | _ACEOF
|
---|
5769 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5770 | $EGREP "pr_brksize" >/dev/null 2>&1; then :
|
---|
5771 | $as_echo "#define HAVE_PR_BRKSIZE 1" >>confdefs.h
|
---|
5772 |
|
---|
5773 | fi
|
---|
5774 | rm -f conftest*
|
---|
5775 |
|
---|
5776 |
|
---|
5777 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
---|
5778 | # for constant arguments. Useless!
|
---|
5779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
|
---|
5780 | $as_echo_n "checking for working alloca.h... " >&6; }
|
---|
5781 | if test "${ac_cv_working_alloca_h+set}" = set; then :
|
---|
5782 | $as_echo_n "(cached) " >&6
|
---|
5783 | else
|
---|
5784 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5785 | /* end confdefs.h. */
|
---|
5786 | #include <alloca.h>
|
---|
5787 | int
|
---|
5788 | main ()
|
---|
5789 | {
|
---|
5790 | char *p = (char *) alloca (2 * sizeof (int));
|
---|
5791 | if (p) return 0;
|
---|
5792 | ;
|
---|
5793 | return 0;
|
---|
5794 | }
|
---|
5795 | _ACEOF
|
---|
5796 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5797 | ac_cv_working_alloca_h=yes
|
---|
5798 | else
|
---|
5799 | ac_cv_working_alloca_h=no
|
---|
5800 | fi
|
---|
5801 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5802 | conftest$ac_exeext conftest.$ac_ext
|
---|
5803 | fi
|
---|
5804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
|
---|
5805 | $as_echo "$ac_cv_working_alloca_h" >&6; }
|
---|
5806 | if test $ac_cv_working_alloca_h = yes; then
|
---|
5807 |
|
---|
5808 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
|
---|
5809 |
|
---|
5810 | fi
|
---|
5811 |
|
---|
5812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
|
---|
5813 | $as_echo_n "checking for alloca... " >&6; }
|
---|
5814 | if test "${ac_cv_func_alloca_works+set}" = set; then :
|
---|
5815 | $as_echo_n "(cached) " >&6
|
---|
5816 | else
|
---|
5817 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5818 | /* end confdefs.h. */
|
---|
5819 | #ifdef __GNUC__
|
---|
5820 | # define alloca __builtin_alloca
|
---|
5821 | #else
|
---|
5822 | # ifdef _MSC_VER
|
---|
5823 | # include <malloc.h>
|
---|
5824 | # define alloca _alloca
|
---|
5825 | # else
|
---|
5826 | # ifdef HAVE_ALLOCA_H
|
---|
5827 | # include <alloca.h>
|
---|
5828 | # else
|
---|
5829 | # ifdef _AIX
|
---|
5830 | #pragma alloca
|
---|
5831 | # else
|
---|
5832 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
---|
5833 | char *alloca ();
|
---|
5834 | # endif
|
---|
5835 | # endif
|
---|
5836 | # endif
|
---|
5837 | # endif
|
---|
5838 | #endif
|
---|
5839 |
|
---|
5840 | int
|
---|
5841 | main ()
|
---|
5842 | {
|
---|
5843 | char *p = (char *) alloca (1);
|
---|
5844 | if (p) return 0;
|
---|
5845 | ;
|
---|
5846 | return 0;
|
---|
5847 | }
|
---|
5848 | _ACEOF
|
---|
5849 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5850 | ac_cv_func_alloca_works=yes
|
---|
5851 | else
|
---|
5852 | ac_cv_func_alloca_works=no
|
---|
5853 | fi
|
---|
5854 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5855 | conftest$ac_exeext conftest.$ac_ext
|
---|
5856 | fi
|
---|
5857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
|
---|
5858 | $as_echo "$ac_cv_func_alloca_works" >&6; }
|
---|
5859 |
|
---|
5860 | if test $ac_cv_func_alloca_works = yes; then
|
---|
5861 |
|
---|
5862 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
|
---|
5863 |
|
---|
5864 | else
|
---|
5865 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
---|
5866 | # that cause trouble. Some versions do not even contain alloca or
|
---|
5867 | # contain a buggy version. If you still want to use their alloca,
|
---|
5868 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
---|
5869 |
|
---|
5870 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
|
---|
5871 |
|
---|
5872 | $as_echo "#define C_ALLOCA 1" >>confdefs.h
|
---|
5873 |
|
---|
5874 |
|
---|
5875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
|
---|
5876 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
|
---|
5877 | if test "${ac_cv_os_cray+set}" = set; then :
|
---|
5878 | $as_echo_n "(cached) " >&6
|
---|
5879 | else
|
---|
5880 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5881 | /* end confdefs.h. */
|
---|
5882 | #if defined CRAY && ! defined CRAY2
|
---|
5883 | webecray
|
---|
5884 | #else
|
---|
5885 | wenotbecray
|
---|
5886 | #endif
|
---|
5887 |
|
---|
5888 | _ACEOF
|
---|
5889 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5890 | $EGREP "webecray" >/dev/null 2>&1; then :
|
---|
5891 | ac_cv_os_cray=yes
|
---|
5892 | else
|
---|
5893 | ac_cv_os_cray=no
|
---|
5894 | fi
|
---|
5895 | rm -f conftest*
|
---|
5896 |
|
---|
5897 | fi
|
---|
5898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
|
---|
5899 | $as_echo "$ac_cv_os_cray" >&6; }
|
---|
5900 | if test $ac_cv_os_cray = yes; then
|
---|
5901 | for ac_func in _getb67 GETB67 getb67; do
|
---|
5902 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
5903 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
---|
5904 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
|
---|
5905 |
|
---|
5906 | cat >>confdefs.h <<_ACEOF
|
---|
5907 | #define CRAY_STACKSEG_END $ac_func
|
---|
5908 | _ACEOF
|
---|
5909 |
|
---|
5910 | break
|
---|
5911 | fi
|
---|
5912 |
|
---|
5913 | done
|
---|
5914 | fi
|
---|
5915 |
|
---|
5916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
|
---|
5917 | $as_echo_n "checking stack direction for C alloca... " >&6; }
|
---|
5918 | if test "${ac_cv_c_stack_direction+set}" = set; then :
|
---|
5919 | $as_echo_n "(cached) " >&6
|
---|
5920 | else
|
---|
5921 | if test "$cross_compiling" = yes; then :
|
---|
5922 | ac_cv_c_stack_direction=0
|
---|
5923 | else
|
---|
5924 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5925 | /* end confdefs.h. */
|
---|
5926 | $ac_includes_default
|
---|
5927 | int
|
---|
5928 | find_stack_direction ()
|
---|
5929 | {
|
---|
5930 | static char *addr = 0;
|
---|
5931 | auto char dummy;
|
---|
5932 | if (addr == 0)
|
---|
5933 | {
|
---|
5934 | addr = &dummy;
|
---|
5935 | return find_stack_direction ();
|
---|
5936 | }
|
---|
5937 | else
|
---|
5938 | return (&dummy > addr) ? 1 : -1;
|
---|
5939 | }
|
---|
5940 |
|
---|
5941 | int
|
---|
5942 | main ()
|
---|
5943 | {
|
---|
5944 | return find_stack_direction () < 0;
|
---|
5945 | }
|
---|
5946 | _ACEOF
|
---|
5947 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
5948 | ac_cv_c_stack_direction=1
|
---|
5949 | else
|
---|
5950 | ac_cv_c_stack_direction=-1
|
---|
5951 | fi
|
---|
5952 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
5953 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
5954 | fi
|
---|
5955 |
|
---|
5956 | fi
|
---|
5957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
|
---|
5958 | $as_echo "$ac_cv_c_stack_direction" >&6; }
|
---|
5959 | cat >>confdefs.h <<_ACEOF
|
---|
5960 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
---|
5961 | _ACEOF
|
---|
5962 |
|
---|
5963 |
|
---|
5964 | fi
|
---|
5965 |
|
---|
5966 | if test $ac_cv_c_compiler_gnu = yes; then
|
---|
5967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
|
---|
5968 | $as_echo_n "checking whether $CC needs -traditional... " >&6; }
|
---|
5969 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
|
---|
5970 | $as_echo_n "(cached) " >&6
|
---|
5971 | else
|
---|
5972 | ac_pattern="Autoconf.*'x'"
|
---|
5973 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5974 | /* end confdefs.h. */
|
---|
5975 | #include <sgtty.h>
|
---|
5976 | Autoconf TIOCGETP
|
---|
5977 | _ACEOF
|
---|
5978 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5979 | $EGREP "$ac_pattern" >/dev/null 2>&1; then :
|
---|
5980 | ac_cv_prog_gcc_traditional=yes
|
---|
5981 | else
|
---|
5982 | ac_cv_prog_gcc_traditional=no
|
---|
5983 | fi
|
---|
5984 | rm -f conftest*
|
---|
5985 |
|
---|
5986 |
|
---|
5987 | if test $ac_cv_prog_gcc_traditional = no; then
|
---|
5988 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5989 | /* end confdefs.h. */
|
---|
5990 | #include <termio.h>
|
---|
5991 | Autoconf TCGETA
|
---|
5992 | _ACEOF
|
---|
5993 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5994 | $EGREP "$ac_pattern" >/dev/null 2>&1; then :
|
---|
5995 | ac_cv_prog_gcc_traditional=yes
|
---|
5996 | fi
|
---|
5997 | rm -f conftest*
|
---|
5998 |
|
---|
5999 | fi
|
---|
6000 | fi
|
---|
6001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
|
---|
6002 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
|
---|
6003 | if test $ac_cv_prog_gcc_traditional = yes; then
|
---|
6004 | CC="$CC -traditional"
|
---|
6005 | fi
|
---|
6006 | fi
|
---|
6007 |
|
---|
6008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
|
---|
6009 | $as_echo_n "checking return type of signal handlers... " >&6; }
|
---|
6010 | if test "${ac_cv_type_signal+set}" = set; then :
|
---|
6011 | $as_echo_n "(cached) " >&6
|
---|
6012 | else
|
---|
6013 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6014 | /* end confdefs.h. */
|
---|
6015 | #include <sys/types.h>
|
---|
6016 | #include <signal.h>
|
---|
6017 |
|
---|
6018 | int
|
---|
6019 | main ()
|
---|
6020 | {
|
---|
6021 | return *(signal (0, 0)) (0) == 1;
|
---|
6022 | ;
|
---|
6023 | return 0;
|
---|
6024 | }
|
---|
6025 | _ACEOF
|
---|
6026 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
6027 | ac_cv_type_signal=int
|
---|
6028 | else
|
---|
6029 | ac_cv_type_signal=void
|
---|
6030 | fi
|
---|
6031 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6032 | fi
|
---|
6033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
|
---|
6034 | $as_echo "$ac_cv_type_signal" >&6; }
|
---|
6035 |
|
---|
6036 | cat >>confdefs.h <<_ACEOF
|
---|
6037 | #define RETSIGTYPE $ac_cv_type_signal
|
---|
6038 | _ACEOF
|
---|
6039 |
|
---|
6040 |
|
---|
6041 | for ac_func in vprintf
|
---|
6042 | do :
|
---|
6043 | ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
|
---|
6044 | if test "x$ac_cv_func_vprintf" = x""yes; then :
|
---|
6045 | cat >>confdefs.h <<_ACEOF
|
---|
6046 | #define HAVE_VPRINTF 1
|
---|
6047 | _ACEOF
|
---|
6048 |
|
---|
6049 | ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
|
---|
6050 | if test "x$ac_cv_func__doprnt" = x""yes; then :
|
---|
6051 |
|
---|
6052 | $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
|
---|
6053 |
|
---|
6054 | fi
|
---|
6055 |
|
---|
6056 | fi
|
---|
6057 | done
|
---|
6058 |
|
---|
6059 |
|
---|
6060 | for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
|
---|
6061 | do :
|
---|
6062 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
6063 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
---|
6064 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
|
---|
6065 | cat >>confdefs.h <<_ACEOF
|
---|
6066 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
6067 | _ACEOF
|
---|
6068 |
|
---|
6069 | fi
|
---|
6070 | done
|
---|
6071 |
|
---|
6072 | ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
|
---|
6073 | if test "x$ac_cv_func_ftruncate" = x""yes; then :
|
---|
6074 | $as_echo "#define HAVE_FTRUNCATE 1" >>confdefs.h
|
---|
6075 |
|
---|
6076 | else
|
---|
6077 | case " $LIBOBJS " in
|
---|
6078 | *" ftruncate.$ac_objext "* ) ;;
|
---|
6079 | *) LIBOBJS="$LIBOBJS ftruncate.$ac_objext"
|
---|
6080 | ;;
|
---|
6081 | esac
|
---|
6082 |
|
---|
6083 | fi
|
---|
6084 |
|
---|
6085 | ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
|
---|
6086 | if test "x$ac_cv_func_strstr" = x""yes; then :
|
---|
6087 | $as_echo "#define HAVE_STRSTR 1" >>confdefs.h
|
---|
6088 |
|
---|
6089 | else
|
---|
6090 | case " $LIBOBJS " in
|
---|
6091 | *" strstr.$ac_objext "* ) ;;
|
---|
6092 | *) LIBOBJS="$LIBOBJS strstr.$ac_objext"
|
---|
6093 | ;;
|
---|
6094 | esac
|
---|
6095 |
|
---|
6096 | fi
|
---|
6097 |
|
---|
6098 | ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
|
---|
6099 | if test "x$ac_cv_func_strcasecmp" = x""yes; then :
|
---|
6100 | $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
|
---|
6101 |
|
---|
6102 | else
|
---|
6103 | case " $LIBOBJS " in
|
---|
6104 | *" strcasecmp.$ac_objext "* ) ;;
|
---|
6105 | *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
|
---|
6106 | ;;
|
---|
6107 | esac
|
---|
6108 |
|
---|
6109 | fi
|
---|
6110 |
|
---|
6111 |
|
---|
6112 |
|
---|
6113 | ac_fn_c_check_func "$LINENO" "textdomain" "ac_cv_func_textdomain"
|
---|
6114 | if test "x$ac_cv_func_textdomain" = x""yes; then :
|
---|
6115 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h
|
---|
6116 |
|
---|
6117 | fi
|
---|
6118 |
|
---|
6119 |
|
---|
6120 | # *** Custom checking (based on GNU tar configure.in) ***
|
---|
6121 | # ---------------------------------------------------------------------------
|
---|
6122 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HP-UX needing gmalloc" >&5
|
---|
6123 | $as_echo_n "checking for HP-UX needing gmalloc... " >&6; }
|
---|
6124 | if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
|
---|
6125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
6126 | $as_echo "yes" >&6; }
|
---|
6127 | case " $LIBOBJS " in
|
---|
6128 | *" gmalloc.$ac_objext "* ) ;;
|
---|
6129 | *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext"
|
---|
6130 | ;;
|
---|
6131 | esac
|
---|
6132 |
|
---|
6133 | $as_echo "#define HAVE_VALLOC 1" >>confdefs.h
|
---|
6134 |
|
---|
6135 | else
|
---|
6136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6137 | $as_echo "no" >&6; }
|
---|
6138 | for ac_func in valloc
|
---|
6139 | do :
|
---|
6140 | ac_fn_c_check_func "$LINENO" "valloc" "ac_cv_func_valloc"
|
---|
6141 | if test "x$ac_cv_func_valloc" = x""yes; then :
|
---|
6142 | cat >>confdefs.h <<_ACEOF
|
---|
6143 | #define HAVE_VALLOC 1
|
---|
6144 | _ACEOF
|
---|
6145 |
|
---|
6146 | fi
|
---|
6147 | done
|
---|
6148 |
|
---|
6149 | fi
|
---|
6150 |
|
---|
6151 | # we cannot generate static libraries under Darwin
|
---|
6152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apple MacOS X/Darwin" >&5
|
---|
6153 | $as_echo_n "checking for Apple MacOS X/Darwin... " >&6; }
|
---|
6154 | if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
|
---|
6155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
6156 | $as_echo "yes" >&6; }
|
---|
6157 | STATIC=""
|
---|
6158 | else
|
---|
6159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6160 | $as_echo "no" >&6; }
|
---|
6161 | STATIC="-static "
|
---|
6162 | fi
|
---|
6163 |
|
---|
6164 |
|
---|
6165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
|
---|
6166 | $as_echo_n "checking if malloc debugging is wanted... " >&6; }
|
---|
6167 |
|
---|
6168 | # Check whether --with-dmalloc was given.
|
---|
6169 | if test "${with_dmalloc+set}" = set; then :
|
---|
6170 | withval=$with_dmalloc; if test "$withval" = yes; then
|
---|
6171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
6172 | $as_echo "yes" >&6; }
|
---|
6173 | $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
|
---|
6174 |
|
---|
6175 | LIBS="$LIBS -ldmalloc"
|
---|
6176 | LDFLAGS="$LDFLAGS -g"
|
---|
6177 | else
|
---|
6178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6179 | $as_echo "no" >&6; }
|
---|
6180 | fi
|
---|
6181 | else
|
---|
6182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6183 | $as_echo "no" >&6; }
|
---|
6184 | fi
|
---|
6185 |
|
---|
6186 |
|
---|
6187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which of rx or regex is wanted" >&5
|
---|
6188 | $as_echo_n "checking which of rx or regex is wanted... " >&6; }
|
---|
6189 |
|
---|
6190 | # Check whether --with-regex was given.
|
---|
6191 | if test "${with_regex+set}" = set; then :
|
---|
6192 | withval=$with_regex; if test "$withval" = yes; then
|
---|
6193 | ac_with_regex=1
|
---|
6194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: regex" >&5
|
---|
6195 | $as_echo "regex" >&6; }
|
---|
6196 | $as_echo "#define WITH_REGEX 1" >>confdefs.h
|
---|
6197 |
|
---|
6198 | case " $LIBOBJS " in
|
---|
6199 | *" regex.$ac_objext "* ) ;;
|
---|
6200 | *) LIBOBJS="$LIBOBJS regex.$ac_objext"
|
---|
6201 | ;;
|
---|
6202 | esac
|
---|
6203 |
|
---|
6204 | fi
|
---|
6205 | fi
|
---|
6206 |
|
---|
6207 | if test -z "$ac_with_regex"; then
|
---|
6208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: rx" >&5
|
---|
6209 | $as_echo "rx" >&6; }
|
---|
6210 | ac_fn_c_check_func "$LINENO" "re_rx_search" "ac_cv_func_re_rx_search"
|
---|
6211 | if test "x$ac_cv_func_re_rx_search" = x""yes; then :
|
---|
6212 |
|
---|
6213 | else
|
---|
6214 | case " $LIBOBJS " in
|
---|
6215 | *" rx.$ac_objext "* ) ;;
|
---|
6216 | *) LIBOBJS="$LIBOBJS rx.$ac_objext"
|
---|
6217 | ;;
|
---|
6218 | esac
|
---|
6219 |
|
---|
6220 | fi
|
---|
6221 |
|
---|
6222 | fi
|
---|
6223 |
|
---|
6224 |
|
---|
6225 | # ---------------------------------------------------------------------------
|
---|
6226 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
6227 | case " $LIBOBJS " in
|
---|
6228 | *" xmalloc.$ac_objext "* ) ;;
|
---|
6229 | *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext"
|
---|
6230 | ;;
|
---|
6231 | esac
|
---|
6232 |
|
---|
6233 | case " $LIBOBJS " in
|
---|
6234 | *" error.$ac_objext "* ) ;;
|
---|
6235 | *) LIBOBJS="$LIBOBJS error.$ac_objext"
|
---|
6236 | ;;
|
---|
6237 | esac
|
---|
6238 |
|
---|
6239 | fi
|
---|
6240 |
|
---|
6241 |
|
---|
6242 | # ---------------------------------------------------------------------------
|
---|
6243 |
|
---|
6244 | ac_ext=cpp
|
---|
6245 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
6246 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
6247 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
6248 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
6249 |
|
---|
6250 |
|
---|
6251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that Perl 5 is available" >&5
|
---|
6252 | $as_echo_n "checking that Perl 5 is available... " >&6; }
|
---|
6253 | success="no"
|
---|
6254 | pl_path="$PATH"
|
---|
6255 | IFS="${IFS= }"; pl_save_ifs="$IFS"; IFS=":"
|
---|
6256 | for pl_dir in $pl_path; do
|
---|
6257 | test -z "$pl_dir" && pl_dir=.
|
---|
6258 | if test -x $pl_dir/perl; then
|
---|
6259 | success="yes"
|
---|
6260 | break
|
---|
6261 | fi
|
---|
6262 | done
|
---|
6263 | IFS="$pl_save_ifs"
|
---|
6264 |
|
---|
6265 | if test $success = "yes"; then
|
---|
6266 | try=`perl configtest.pl` || try="0"
|
---|
6267 | try=`expr $try \> 5.000`
|
---|
6268 | if test $try = "1"; then
|
---|
6269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"yes\"" >&5
|
---|
6270 | $as_echo "\"yes\"" >&6; }
|
---|
6271 | else
|
---|
6272 | success="no"
|
---|
6273 | fi
|
---|
6274 | fi
|
---|
6275 |
|
---|
6276 | if test $success = "no"; then
|
---|
6277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5
|
---|
6278 | $as_echo "\"no\"" >&6; }
|
---|
6279 | as_fn_error $? "\"Perl 5 not available - cannot install\"" "$LINENO" 5
|
---|
6280 | fi
|
---|
6281 |
|
---|
6282 | success=no
|
---|
6283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking \"whether STL library has known faults\"" >&5
|
---|
6284 | $as_echo_n "checking \"whether STL library has known faults\"... " >&6; }
|
---|
6285 |
|
---|
6286 |
|
---|
6287 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6288 | /* end confdefs.h. */
|
---|
6289 | #include <vector>
|
---|
6290 |
|
---|
6291 | int
|
---|
6292 | main ()
|
---|
6293 | {
|
---|
6294 |
|
---|
6295 | ;
|
---|
6296 | return 0;
|
---|
6297 | }
|
---|
6298 | _ACEOF
|
---|
6299 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
6300 | success=yes
|
---|
6301 | fi
|
---|
6302 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6303 |
|
---|
6304 | if test $success = "no"; then
|
---|
6305 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6306 | /* end confdefs.h. */
|
---|
6307 | #include <vector.h>
|
---|
6308 |
|
---|
6309 | int
|
---|
6310 | main ()
|
---|
6311 | {
|
---|
6312 |
|
---|
6313 | ;
|
---|
6314 | return 0;
|
---|
6315 | }
|
---|
6316 | _ACEOF
|
---|
6317 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
6318 | success="yes"
|
---|
6319 | fi
|
---|
6320 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6321 | fi
|
---|
6322 |
|
---|
6323 | if test $success = "no"; then
|
---|
6324 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6325 | /* end confdefs.h. */
|
---|
6326 | #include <ospace\\std\\vector>
|
---|
6327 |
|
---|
6328 | int
|
---|
6329 | main ()
|
---|
6330 | {
|
---|
6331 |
|
---|
6332 | ;
|
---|
6333 | return 0;
|
---|
6334 | }
|
---|
6335 | _ACEOF
|
---|
6336 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
6337 | success="yes"
|
---|
6338 | fi
|
---|
6339 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6340 | fi
|
---|
6341 |
|
---|
6342 | if test $success = yes; then
|
---|
6343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5
|
---|
6344 | $as_echo "\"no\"" >&6; }
|
---|
6345 | else
|
---|
6346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"yes\"" >&5
|
---|
6347 | $as_echo "\"yes\"" >&6; }
|
---|
6348 | as_fn_error $? "\"STL Broken - Obtain newer version of GNU C Compiler\"" "$LINENO" 5
|
---|
6349 | fi
|
---|
6350 |
|
---|
6351 | gsdlos=`uname | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
|
---|
6352 | # check for running bash under cygwin
|
---|
6353 | if test "`echo $gsdlos | sed 's/cygwin//'`" != "$gsdlos" ;
|
---|
6354 | then
|
---|
6355 | gsdlos=windows
|
---|
6356 | fi
|
---|
6357 |
|
---|
6358 |
|
---|
6359 | # check for endianness
|
---|
6360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
|
---|
6361 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
|
---|
6362 | if test "${ac_cv_c_bigendian+set}" = set; then :
|
---|
6363 | $as_echo_n "(cached) " >&6
|
---|
6364 | else
|
---|
6365 | ac_cv_c_bigendian=unknown
|
---|
6366 | # See if we're dealing with a universal compiler.
|
---|
6367 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6368 | /* end confdefs.h. */
|
---|
6369 | #ifndef __APPLE_CC__
|
---|
6370 | not a universal capable compiler
|
---|
6371 | #endif
|
---|
6372 | typedef int dummy;
|
---|
6373 |
|
---|
6374 | _ACEOF
|
---|
6375 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
6376 |
|
---|
6377 | # Check for potential -arch flags. It is not universal unless
|
---|
6378 | # there are at least two -arch flags with different values.
|
---|
6379 | ac_arch=
|
---|
6380 | ac_prev=
|
---|
6381 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
|
---|
6382 | if test -n "$ac_prev"; then
|
---|
6383 | case $ac_word in
|
---|
6384 | i?86 | x86_64 | ppc | ppc64)
|
---|
6385 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
|
---|
6386 | ac_arch=$ac_word
|
---|
6387 | else
|
---|
6388 | ac_cv_c_bigendian=universal
|
---|
6389 | break
|
---|
6390 | fi
|
---|
6391 | ;;
|
---|
6392 | esac
|
---|
6393 | ac_prev=
|
---|
6394 | elif test "x$ac_word" = "x-arch"; then
|
---|
6395 | ac_prev=arch
|
---|
6396 | fi
|
---|
6397 | done
|
---|
6398 | fi
|
---|
6399 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6400 | if test $ac_cv_c_bigendian = unknown; then
|
---|
6401 | # See if sys/param.h defines the BYTE_ORDER macro.
|
---|
6402 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6403 | /* end confdefs.h. */
|
---|
6404 | #include <sys/types.h>
|
---|
6405 | #include <sys/param.h>
|
---|
6406 |
|
---|
6407 | int
|
---|
6408 | main ()
|
---|
6409 | {
|
---|
6410 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
|
---|
6411 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
|
---|
6412 | && LITTLE_ENDIAN)
|
---|
6413 | bogus endian macros
|
---|
6414 | #endif
|
---|
6415 |
|
---|
6416 | ;
|
---|
6417 | return 0;
|
---|
6418 | }
|
---|
6419 | _ACEOF
|
---|
6420 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
6421 | # It does; now see whether it defined to BIG_ENDIAN or not.
|
---|
6422 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6423 | /* end confdefs.h. */
|
---|
6424 | #include <sys/types.h>
|
---|
6425 | #include <sys/param.h>
|
---|
6426 |
|
---|
6427 | int
|
---|
6428 | main ()
|
---|
6429 | {
|
---|
6430 | #if BYTE_ORDER != BIG_ENDIAN
|
---|
6431 | not big endian
|
---|
6432 | #endif
|
---|
6433 |
|
---|
6434 | ;
|
---|
6435 | return 0;
|
---|
6436 | }
|
---|
6437 | _ACEOF
|
---|
6438 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
6439 | ac_cv_c_bigendian=yes
|
---|
6440 | else
|
---|
6441 | ac_cv_c_bigendian=no
|
---|
6442 | fi
|
---|
6443 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6444 | fi
|
---|
6445 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6446 | fi
|
---|
6447 | if test $ac_cv_c_bigendian = unknown; then
|
---|
6448 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
|
---|
6449 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6450 | /* end confdefs.h. */
|
---|
6451 | #include <limits.h>
|
---|
6452 |
|
---|
6453 | int
|
---|
6454 | main ()
|
---|
6455 | {
|
---|
6456 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
|
---|
6457 | bogus endian macros
|
---|
6458 | #endif
|
---|
6459 |
|
---|
6460 | ;
|
---|
6461 | return 0;
|
---|
6462 | }
|
---|
6463 | _ACEOF
|
---|
6464 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
6465 | # It does; now see whether it defined to _BIG_ENDIAN or not.
|
---|
6466 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6467 | /* end confdefs.h. */
|
---|
6468 | #include <limits.h>
|
---|
6469 |
|
---|
6470 | int
|
---|
6471 | main ()
|
---|
6472 | {
|
---|
6473 | #ifndef _BIG_ENDIAN
|
---|
6474 | not big endian
|
---|
6475 | #endif
|
---|
6476 |
|
---|
6477 | ;
|
---|
6478 | return 0;
|
---|
6479 | }
|
---|
6480 | _ACEOF
|
---|
6481 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
6482 | ac_cv_c_bigendian=yes
|
---|
6483 | else
|
---|
6484 | ac_cv_c_bigendian=no
|
---|
6485 | fi
|
---|
6486 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6487 | fi
|
---|
6488 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6489 | fi
|
---|
6490 | if test $ac_cv_c_bigendian = unknown; then
|
---|
6491 | # Compile a test program.
|
---|
6492 | if test "$cross_compiling" = yes; then :
|
---|
6493 | # Try to guess by grepping values from an object file.
|
---|
6494 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6495 | /* end confdefs.h. */
|
---|
6496 | short int ascii_mm[] =
|
---|
6497 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
|
---|
6498 | short int ascii_ii[] =
|
---|
6499 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
|
---|
6500 | int use_ascii (int i) {
|
---|
6501 | return ascii_mm[i] + ascii_ii[i];
|
---|
6502 | }
|
---|
6503 | short int ebcdic_ii[] =
|
---|
6504 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
|
---|
6505 | short int ebcdic_mm[] =
|
---|
6506 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
|
---|
6507 | int use_ebcdic (int i) {
|
---|
6508 | return ebcdic_mm[i] + ebcdic_ii[i];
|
---|
6509 | }
|
---|
6510 | extern int foo;
|
---|
6511 |
|
---|
6512 | int
|
---|
6513 | main ()
|
---|
6514 | {
|
---|
6515 | return use_ascii (foo) == use_ebcdic (foo);
|
---|
6516 | ;
|
---|
6517 | return 0;
|
---|
6518 | }
|
---|
6519 | _ACEOF
|
---|
6520 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
6521 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
|
---|
6522 | ac_cv_c_bigendian=yes
|
---|
6523 | fi
|
---|
6524 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
|
---|
6525 | if test "$ac_cv_c_bigendian" = unknown; then
|
---|
6526 | ac_cv_c_bigendian=no
|
---|
6527 | else
|
---|
6528 | # finding both strings is unlikely to happen, but who knows?
|
---|
6529 | ac_cv_c_bigendian=unknown
|
---|
6530 | fi
|
---|
6531 | fi
|
---|
6532 | fi
|
---|
6533 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6534 | else
|
---|
6535 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6536 | /* end confdefs.h. */
|
---|
6537 | $ac_includes_default
|
---|
6538 | int
|
---|
6539 | main ()
|
---|
6540 | {
|
---|
6541 |
|
---|
6542 | /* Are we little or big endian? From Harbison&Steele. */
|
---|
6543 | union
|
---|
6544 | {
|
---|
6545 | long int l;
|
---|
6546 | char c[sizeof (long int)];
|
---|
6547 | } u;
|
---|
6548 | u.l = 1;
|
---|
6549 | return u.c[sizeof (long int) - 1] == 1;
|
---|
6550 |
|
---|
6551 | ;
|
---|
6552 | return 0;
|
---|
6553 | }
|
---|
6554 | _ACEOF
|
---|
6555 | if ac_fn_cxx_try_run "$LINENO"; then :
|
---|
6556 | ac_cv_c_bigendian=no
|
---|
6557 | else
|
---|
6558 | ac_cv_c_bigendian=yes
|
---|
6559 | fi
|
---|
6560 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
6561 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
6562 | fi
|
---|
6563 |
|
---|
6564 | fi
|
---|
6565 | fi
|
---|
6566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
|
---|
6567 | $as_echo "$ac_cv_c_bigendian" >&6; }
|
---|
6568 | case $ac_cv_c_bigendian in #(
|
---|
6569 | yes)
|
---|
6570 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
|
---|
6571 | ;; #(
|
---|
6572 | no)
|
---|
6573 | ;; #(
|
---|
6574 | universal)
|
---|
6575 |
|
---|
6576 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
|
---|
6577 |
|
---|
6578 | ;; #(
|
---|
6579 | *)
|
---|
6580 | as_fn_error $? "unknown endianness
|
---|
6581 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
|
---|
6582 | esac
|
---|
6583 |
|
---|
6584 | # ---------------------------------------------------------------------------
|
---|
6585 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
6586 | case " $LIBOBJS " in
|
---|
6587 | *" xmalloc.o.$ac_objext "* ) ;;
|
---|
6588 | *) LIBOBJS="$LIBOBJS xmalloc.o.$ac_objext"
|
---|
6589 | ;;
|
---|
6590 | esac
|
---|
6591 |
|
---|
6592 | case " $LIBOBJS " in
|
---|
6593 | *" error.$ac_objext "* ) ;;
|
---|
6594 | *) LIBOBJS="$LIBOBJS error.$ac_objext"
|
---|
6595 | ;;
|
---|
6596 | esac
|
---|
6597 |
|
---|
6598 | fi
|
---|
6599 |
|
---|
6600 | # ---------------------------------------------------------------------------
|
---|
6601 |
|
---|
6602 | moduleDirs=""
|
---|
6603 | MODULEDIRS=""
|
---|
6604 | if test -d modules ; then
|
---|
6605 | for x in `find modules -mindepth 1 -maxdepth 2`; do
|
---|
6606 | if test -d "$x"; then
|
---|
6607 | d="$x/Makefile.in"
|
---|
6608 | if test -e "$d"; then
|
---|
6609 | moduleDirs="$moduleDirs $x/Makefile"
|
---|
6610 | MODULEDIRS="$MODULEDIRS $x"
|
---|
6611 | fi
|
---|
6612 | fi
|
---|
6613 | done
|
---|
6614 | echo "Making $moduleDirs in modules directory"
|
---|
6615 |
|
---|
6616 | fi
|
---|
6617 |
|
---|
6618 |
|
---|
6619 | # ---------------------------------------------------------------------------
|
---|
6620 |
|
---|
6621 |
|
---|
6622 | subdirs="$subdirs packages"
|
---|
6623 |
|
---|
6624 |
|
---|
6625 | # the list of folders in the src folder
|
---|
6626 | srclist="src/hashfile/Makefile \
|
---|
6627 | src/phind/generate/Makefile \
|
---|
6628 | src/java/org/nzdl/gsdl/Makefile"
|
---|
6629 |
|
---|
6630 | ac_config_files="$ac_config_files packages/Makefile Makefile $srclist $moduleDirs"
|
---|
6631 |
|
---|
6632 | cat >confcache <<\_ACEOF
|
---|
6633 | # This file is a shell script that caches the results of configure
|
---|
6634 | # tests run on this system so they can be shared between configure
|
---|
6635 | # scripts and configure runs, see configure's option --config-cache.
|
---|
6636 | # It is not useful on other systems. If it contains results you don't
|
---|
6637 | # want to keep, you may remove or edit it.
|
---|
6638 | #
|
---|
6639 | # config.status only pays attention to the cache file if you give it
|
---|
6640 | # the --recheck option to rerun configure.
|
---|
6641 | #
|
---|
6642 | # `ac_cv_env_foo' variables (set or unset) will be overridden when
|
---|
6643 | # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
---|
6644 | # following values.
|
---|
6645 |
|
---|
6646 | _ACEOF
|
---|
6647 |
|
---|
6648 | # The following way of writing the cache mishandles newlines in values,
|
---|
6649 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
6650 | # So, we kill variables containing newlines.
|
---|
6651 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
6652 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
6653 | (
|
---|
6654 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
|
---|
6655 | eval ac_val=\$$ac_var
|
---|
6656 | case $ac_val in #(
|
---|
6657 | *${as_nl}*)
|
---|
6658 | case $ac_var in #(
|
---|
6659 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
---|
6660 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
---|
6661 | esac
|
---|
6662 | case $ac_var in #(
|
---|
6663 | _ | IFS | as_nl) ;; #(
|
---|
6664 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
|
---|
6665 | *) { eval $ac_var=; unset $ac_var;} ;;
|
---|
6666 | esac ;;
|
---|
6667 | esac
|
---|
6668 | done
|
---|
6669 |
|
---|
6670 | (set) 2>&1 |
|
---|
6671 | case $as_nl`(ac_space=' '; set) 2>&1` in #(
|
---|
6672 | *${as_nl}ac_space=\ *)
|
---|
6673 | # `set' does not quote correctly, so add quotes: double-quote
|
---|
6674 | # substitution turns \\\\ into \\, and sed turns \\ into \.
|
---|
6675 | sed -n \
|
---|
6676 | "s/'/'\\\\''/g;
|
---|
6677 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
---|
6678 | ;; #(
|
---|
6679 | *)
|
---|
6680 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
6681 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
---|
6682 | ;;
|
---|
6683 | esac |
|
---|
6684 | sort
|
---|
6685 | ) |
|
---|
6686 | sed '
|
---|
6687 | /^ac_cv_env_/b end
|
---|
6688 | t clear
|
---|
6689 | :clear
|
---|
6690 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
---|
6691 | t end
|
---|
6692 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
---|
6693 | :end' >>confcache
|
---|
6694 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
|
---|
6695 | if test -w "$cache_file"; then
|
---|
6696 | test "x$cache_file" != "x/dev/null" &&
|
---|
6697 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
|
---|
6698 | $as_echo "$as_me: updating cache $cache_file" >&6;}
|
---|
6699 | cat confcache >$cache_file
|
---|
6700 | else
|
---|
6701 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
|
---|
6702 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
|
---|
6703 | fi
|
---|
6704 | fi
|
---|
6705 | rm -f confcache
|
---|
6706 |
|
---|
6707 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
6708 | # Let make expand exec_prefix.
|
---|
6709 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
6710 |
|
---|
6711 | DEFS=-DHAVE_CONFIG_H
|
---|
6712 |
|
---|
6713 | ac_libobjs=
|
---|
6714 | ac_ltlibobjs=
|
---|
6715 | U=
|
---|
6716 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
---|
6717 | # 1. Remove the extension, and $U if already installed.
|
---|
6718 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
|
---|
6719 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
|
---|
6720 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
|
---|
6721 | # will be set to the directory where LIBOBJS objects are built.
|
---|
6722 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
|
---|
6723 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
|
---|
6724 | done
|
---|
6725 | LIBOBJS=$ac_libobjs
|
---|
6726 |
|
---|
6727 | LTLIBOBJS=$ac_ltlibobjs
|
---|
6728 |
|
---|
6729 |
|
---|
6730 |
|
---|
6731 |
|
---|
6732 | : ${CONFIG_STATUS=./config.status}
|
---|
6733 | ac_write_fail=0
|
---|
6734 | ac_clean_files_save=$ac_clean_files
|
---|
6735 | ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
---|
6736 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
|
---|
6737 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
---|
6738 | as_write_fail=0
|
---|
6739 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
|
---|
6740 | #! $SHELL
|
---|
6741 | # Generated by $as_me.
|
---|
6742 | # Run this file to recreate the current configuration.
|
---|
6743 | # Compiler output produced by configure, useful for debugging
|
---|
6744 | # configure, is in config.log if it exists.
|
---|
6745 |
|
---|
6746 | debug=false
|
---|
6747 | ac_cs_recheck=false
|
---|
6748 | ac_cs_silent=false
|
---|
6749 |
|
---|
6750 | SHELL=\${CONFIG_SHELL-$SHELL}
|
---|
6751 | export SHELL
|
---|
6752 | _ASEOF
|
---|
6753 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
|
---|
6754 | ## -------------------- ##
|
---|
6755 | ## M4sh Initialization. ##
|
---|
6756 | ## -------------------- ##
|
---|
6757 |
|
---|
6758 | # Be more Bourne compatible
|
---|
6759 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
6760 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
|
---|
6761 | emulate sh
|
---|
6762 | NULLCMD=:
|
---|
6763 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
|
---|
6764 | # is contrary to our usage. Disable this feature.
|
---|
6765 | alias -g '${1+"$@"}'='"$@"'
|
---|
6766 | setopt NO_GLOB_SUBST
|
---|
6767 | else
|
---|
6768 | case `(set -o) 2>/dev/null` in #(
|
---|
6769 | *posix*) :
|
---|
6770 | set -o posix ;; #(
|
---|
6771 | *) :
|
---|
6772 | ;;
|
---|
6773 | esac
|
---|
6774 | fi
|
---|
6775 |
|
---|
6776 |
|
---|
6777 | as_nl='
|
---|
6778 | '
|
---|
6779 | export as_nl
|
---|
6780 | # Printing a long string crashes Solaris 7 /usr/bin/printf.
|
---|
6781 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
---|
6782 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
6783 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
6784 | # Prefer a ksh shell builtin over an external printf program on Solaris,
|
---|
6785 | # but without wasting forks for bash or zsh.
|
---|
6786 | if test -z "$BASH_VERSION$ZSH_VERSION" \
|
---|
6787 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
6788 | as_echo='print -r --'
|
---|
6789 | as_echo_n='print -rn --'
|
---|
6790 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
6791 | as_echo='printf %s\n'
|
---|
6792 | as_echo_n='printf %s'
|
---|
6793 | else
|
---|
6794 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
|
---|
6795 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
|
---|
6796 | as_echo_n='/usr/ucb/echo -n'
|
---|
6797 | else
|
---|
6798 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
|
---|
6799 | as_echo_n_body='eval
|
---|
6800 | arg=$1;
|
---|
6801 | case $arg in #(
|
---|
6802 | *"$as_nl"*)
|
---|
6803 | expr "X$arg" : "X\\(.*\\)$as_nl";
|
---|
6804 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
|
---|
6805 | esac;
|
---|
6806 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
|
---|
6807 | '
|
---|
6808 | export as_echo_n_body
|
---|
6809 | as_echo_n='sh -c $as_echo_n_body as_echo'
|
---|
6810 | fi
|
---|
6811 | export as_echo_body
|
---|
6812 | as_echo='sh -c $as_echo_body as_echo'
|
---|
6813 | fi
|
---|
6814 |
|
---|
6815 | # The user is always right.
|
---|
6816 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
6817 | PATH_SEPARATOR=:
|
---|
6818 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
|
---|
6819 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
|
---|
6820 | PATH_SEPARATOR=';'
|
---|
6821 | }
|
---|
6822 | fi
|
---|
6823 |
|
---|
6824 |
|
---|
6825 | # IFS
|
---|
6826 | # We need space, tab and new line, in precisely that order. Quoting is
|
---|
6827 | # there to prevent editors from complaining about space-tab.
|
---|
6828 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
---|
6829 | # splitting by setting IFS to empty value.)
|
---|
6830 | IFS=" "" $as_nl"
|
---|
6831 |
|
---|
6832 | # Find who we are. Look in the path if we contain no directory separator.
|
---|
6833 | case $0 in #((
|
---|
6834 | *[\\/]* ) as_myself=$0 ;;
|
---|
6835 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
6836 | for as_dir in $PATH
|
---|
6837 | do
|
---|
6838 | IFS=$as_save_IFS
|
---|
6839 | test -z "$as_dir" && as_dir=.
|
---|
6840 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
6841 | done
|
---|
6842 | IFS=$as_save_IFS
|
---|
6843 |
|
---|
6844 | ;;
|
---|
6845 | esac
|
---|
6846 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
6847 | # in which case we are not to be found in the path.
|
---|
6848 | if test "x$as_myself" = x; then
|
---|
6849 | as_myself=$0
|
---|
6850 | fi
|
---|
6851 | if test ! -f "$as_myself"; then
|
---|
6852 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
---|
6853 | exit 1
|
---|
6854 | fi
|
---|
6855 |
|
---|
6856 | # Unset variables that we do not need and which cause bugs (e.g. in
|
---|
6857 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
|
---|
6858 | # suppresses any "Segmentation fault" message there. '((' could
|
---|
6859 | # trigger a bug in pdksh 5.2.14.
|
---|
6860 | for as_var in BASH_ENV ENV MAIL MAILPATH
|
---|
6861 | do eval test x\${$as_var+set} = xset \
|
---|
6862 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
|
---|
6863 | done
|
---|
6864 | PS1='$ '
|
---|
6865 | PS2='> '
|
---|
6866 | PS4='+ '
|
---|
6867 |
|
---|
6868 | # NLS nuisances.
|
---|
6869 | LC_ALL=C
|
---|
6870 | export LC_ALL
|
---|
6871 | LANGUAGE=C
|
---|
6872 | export LANGUAGE
|
---|
6873 |
|
---|
6874 | # CDPATH.
|
---|
6875 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
---|
6876 |
|
---|
6877 |
|
---|
6878 | # as_fn_error STATUS ERROR [LINENO LOG_FD]
|
---|
6879 | # ----------------------------------------
|
---|
6880 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
|
---|
6881 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
|
---|
6882 | # script with STATUS, using 1 if that was 0.
|
---|
6883 | as_fn_error ()
|
---|
6884 | {
|
---|
6885 | as_status=$1; test $as_status -eq 0 && as_status=1
|
---|
6886 | if test "$4"; then
|
---|
6887 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
6888 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
|
---|
6889 | fi
|
---|
6890 | $as_echo "$as_me: error: $2" >&2
|
---|
6891 | as_fn_exit $as_status
|
---|
6892 | } # as_fn_error
|
---|
6893 |
|
---|
6894 |
|
---|
6895 | # as_fn_set_status STATUS
|
---|
6896 | # -----------------------
|
---|
6897 | # Set $? to STATUS, without forking.
|
---|
6898 | as_fn_set_status ()
|
---|
6899 | {
|
---|
6900 | return $1
|
---|
6901 | } # as_fn_set_status
|
---|
6902 |
|
---|
6903 | # as_fn_exit STATUS
|
---|
6904 | # -----------------
|
---|
6905 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
|
---|
6906 | as_fn_exit ()
|
---|
6907 | {
|
---|
6908 | set +e
|
---|
6909 | as_fn_set_status $1
|
---|
6910 | exit $1
|
---|
6911 | } # as_fn_exit
|
---|
6912 |
|
---|
6913 | # as_fn_unset VAR
|
---|
6914 | # ---------------
|
---|
6915 | # Portably unset VAR.
|
---|
6916 | as_fn_unset ()
|
---|
6917 | {
|
---|
6918 | { eval $1=; unset $1;}
|
---|
6919 | }
|
---|
6920 | as_unset=as_fn_unset
|
---|
6921 | # as_fn_append VAR VALUE
|
---|
6922 | # ----------------------
|
---|
6923 | # Append the text in VALUE to the end of the definition contained in VAR. Take
|
---|
6924 | # advantage of any shell optimizations that allow amortized linear growth over
|
---|
6925 | # repeated appends, instead of the typical quadratic growth present in naive
|
---|
6926 | # implementations.
|
---|
6927 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
|
---|
6928 | eval 'as_fn_append ()
|
---|
6929 | {
|
---|
6930 | eval $1+=\$2
|
---|
6931 | }'
|
---|
6932 | else
|
---|
6933 | as_fn_append ()
|
---|
6934 | {
|
---|
6935 | eval $1=\$$1\$2
|
---|
6936 | }
|
---|
6937 | fi # as_fn_append
|
---|
6938 |
|
---|
6939 | # as_fn_arith ARG...
|
---|
6940 | # ------------------
|
---|
6941 | # Perform arithmetic evaluation on the ARGs, and store the result in the
|
---|
6942 | # global $as_val. Take advantage of shells that can avoid forks. The arguments
|
---|
6943 | # must be portable across $(()) and expr.
|
---|
6944 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
|
---|
6945 | eval 'as_fn_arith ()
|
---|
6946 | {
|
---|
6947 | as_val=$(( $* ))
|
---|
6948 | }'
|
---|
6949 | else
|
---|
6950 | as_fn_arith ()
|
---|
6951 | {
|
---|
6952 | as_val=`expr "$@" || test $? -eq 1`
|
---|
6953 | }
|
---|
6954 | fi # as_fn_arith
|
---|
6955 |
|
---|
6956 |
|
---|
6957 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
6958 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
6959 | as_expr=expr
|
---|
6960 | else
|
---|
6961 | as_expr=false
|
---|
6962 | fi
|
---|
6963 |
|
---|
6964 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
---|
6965 | as_basename=basename
|
---|
6966 | else
|
---|
6967 | as_basename=false
|
---|
6968 | fi
|
---|
6969 |
|
---|
6970 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
---|
6971 | as_dirname=dirname
|
---|
6972 | else
|
---|
6973 | as_dirname=false
|
---|
6974 | fi
|
---|
6975 |
|
---|
6976 | as_me=`$as_basename -- "$0" ||
|
---|
6977 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
6978 | X"$0" : 'X\(//\)$' \| \
|
---|
6979 | X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
6980 | $as_echo X/"$0" |
|
---|
6981 | sed '/^.*\/\([^/][^/]*\)\/*$/{
|
---|
6982 | s//\1/
|
---|
6983 | q
|
---|
6984 | }
|
---|
6985 | /^X\/\(\/\/\)$/{
|
---|
6986 | s//\1/
|
---|
6987 | q
|
---|
6988 | }
|
---|
6989 | /^X\/\(\/\).*/{
|
---|
6990 | s//\1/
|
---|
6991 | q
|
---|
6992 | }
|
---|
6993 | s/.*/./; q'`
|
---|
6994 |
|
---|
6995 | # Avoid depending upon Character Ranges.
|
---|
6996 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
6997 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
6998 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
6999 | as_cr_digits='0123456789'
|
---|
7000 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
7001 |
|
---|
7002 | ECHO_C= ECHO_N= ECHO_T=
|
---|
7003 | case `echo -n x` in #(((((
|
---|
7004 | -n*)
|
---|
7005 | case `echo 'xy\c'` in
|
---|
7006 | *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
---|
7007 | xy) ECHO_C='\c';;
|
---|
7008 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
|
---|
7009 | ECHO_T=' ';;
|
---|
7010 | esac;;
|
---|
7011 | *)
|
---|
7012 | ECHO_N='-n';;
|
---|
7013 | esac
|
---|
7014 |
|
---|
7015 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
7016 | if test -d conf$$.dir; then
|
---|
7017 | rm -f conf$$.dir/conf$$.file
|
---|
7018 | else
|
---|
7019 | rm -f conf$$.dir
|
---|
7020 | mkdir conf$$.dir 2>/dev/null
|
---|
7021 | fi
|
---|
7022 | if (echo >conf$$.file) 2>/dev/null; then
|
---|
7023 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
7024 | as_ln_s='ln -s'
|
---|
7025 | # ... but there are two gotchas:
|
---|
7026 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
---|
7027 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
---|
7028 | # In both cases, we have to default to `cp -p'.
|
---|
7029 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
---|
7030 | as_ln_s='cp -p'
|
---|
7031 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
7032 | as_ln_s=ln
|
---|
7033 | else
|
---|
7034 | as_ln_s='cp -p'
|
---|
7035 | fi
|
---|
7036 | else
|
---|
7037 | as_ln_s='cp -p'
|
---|
7038 | fi
|
---|
7039 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
---|
7040 | rmdir conf$$.dir 2>/dev/null
|
---|
7041 |
|
---|
7042 |
|
---|
7043 | # as_fn_mkdir_p
|
---|
7044 | # -------------
|
---|
7045 | # Create "$as_dir" as a directory, including parents if necessary.
|
---|
7046 | as_fn_mkdir_p ()
|
---|
7047 | {
|
---|
7048 |
|
---|
7049 | case $as_dir in #(
|
---|
7050 | -*) as_dir=./$as_dir;;
|
---|
7051 | esac
|
---|
7052 | test -d "$as_dir" || eval $as_mkdir_p || {
|
---|
7053 | as_dirs=
|
---|
7054 | while :; do
|
---|
7055 | case $as_dir in #(
|
---|
7056 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
|
---|
7057 | *) as_qdir=$as_dir;;
|
---|
7058 | esac
|
---|
7059 | as_dirs="'$as_qdir' $as_dirs"
|
---|
7060 | as_dir=`$as_dirname -- "$as_dir" ||
|
---|
7061 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
7062 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
7063 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
7064 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
7065 | $as_echo X"$as_dir" |
|
---|
7066 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
7067 | s//\1/
|
---|
7068 | q
|
---|
7069 | }
|
---|
7070 | /^X\(\/\/\)[^/].*/{
|
---|
7071 | s//\1/
|
---|
7072 | q
|
---|
7073 | }
|
---|
7074 | /^X\(\/\/\)$/{
|
---|
7075 | s//\1/
|
---|
7076 | q
|
---|
7077 | }
|
---|
7078 | /^X\(\/\).*/{
|
---|
7079 | s//\1/
|
---|
7080 | q
|
---|
7081 | }
|
---|
7082 | s/.*/./; q'`
|
---|
7083 | test -d "$as_dir" && break
|
---|
7084 | done
|
---|
7085 | test -z "$as_dirs" || eval "mkdir $as_dirs"
|
---|
7086 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
|
---|
7087 |
|
---|
7088 |
|
---|
7089 | } # as_fn_mkdir_p
|
---|
7090 | if mkdir -p . 2>/dev/null; then
|
---|
7091 | as_mkdir_p='mkdir -p "$as_dir"'
|
---|
7092 | else
|
---|
7093 | test -d ./-p && rmdir ./-p
|
---|
7094 | as_mkdir_p=false
|
---|
7095 | fi
|
---|
7096 |
|
---|
7097 | if test -x / >/dev/null 2>&1; then
|
---|
7098 | as_test_x='test -x'
|
---|
7099 | else
|
---|
7100 | if ls -dL / >/dev/null 2>&1; then
|
---|
7101 | as_ls_L_option=L
|
---|
7102 | else
|
---|
7103 | as_ls_L_option=
|
---|
7104 | fi
|
---|
7105 | as_test_x='
|
---|
7106 | eval sh -c '\''
|
---|
7107 | if test -d "$1"; then
|
---|
7108 | test -d "$1/.";
|
---|
7109 | else
|
---|
7110 | case $1 in #(
|
---|
7111 | -*)set "./$1";;
|
---|
7112 | esac;
|
---|
7113 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
|
---|
7114 | ???[sx]*):;;*)false;;esac;fi
|
---|
7115 | '\'' sh
|
---|
7116 | '
|
---|
7117 | fi
|
---|
7118 | as_executable_p=$as_test_x
|
---|
7119 |
|
---|
7120 | # Sed expression to map a string onto a valid CPP name.
|
---|
7121 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
7122 |
|
---|
7123 | # Sed expression to map a string onto a valid variable name.
|
---|
7124 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
7125 |
|
---|
7126 |
|
---|
7127 | exec 6>&1
|
---|
7128 | ## ----------------------------------- ##
|
---|
7129 | ## Main body of $CONFIG_STATUS script. ##
|
---|
7130 | ## ----------------------------------- ##
|
---|
7131 | _ASEOF
|
---|
7132 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
|
---|
7133 |
|
---|
7134 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7135 | # Save the log message, to keep $0 and so on meaningful, and to
|
---|
7136 | # report actual input values of CONFIG_FILES etc. instead of their
|
---|
7137 | # values after options handling.
|
---|
7138 | ac_log="
|
---|
7139 | This file was extended by $as_me, which was
|
---|
7140 | generated by GNU Autoconf 2.67. Invocation command line was
|
---|
7141 |
|
---|
7142 | CONFIG_FILES = $CONFIG_FILES
|
---|
7143 | CONFIG_HEADERS = $CONFIG_HEADERS
|
---|
7144 | CONFIG_LINKS = $CONFIG_LINKS
|
---|
7145 | CONFIG_COMMANDS = $CONFIG_COMMANDS
|
---|
7146 | $ $0 $@
|
---|
7147 |
|
---|
7148 | on `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
7149 | "
|
---|
7150 |
|
---|
7151 | _ACEOF
|
---|
7152 |
|
---|
7153 | case $ac_config_files in *"
|
---|
7154 | "*) set x $ac_config_files; shift; ac_config_files=$*;;
|
---|
7155 | esac
|
---|
7156 |
|
---|
7157 | case $ac_config_headers in *"
|
---|
7158 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
|
---|
7159 | esac
|
---|
7160 |
|
---|
7161 |
|
---|
7162 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
7163 | # Files that config.status was made for.
|
---|
7164 | config_files="$ac_config_files"
|
---|
7165 | config_headers="$ac_config_headers"
|
---|
7166 |
|
---|
7167 | _ACEOF
|
---|
7168 |
|
---|
7169 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7170 | ac_cs_usage="\
|
---|
7171 | \`$as_me' instantiates files and other configuration actions
|
---|
7172 | from templates according to the current configuration. Unless the files
|
---|
7173 | and actions are specified as TAGs, all are instantiated by default.
|
---|
7174 |
|
---|
7175 | Usage: $0 [OPTION]... [TAG]...
|
---|
7176 |
|
---|
7177 | -h, --help print this help, then exit
|
---|
7178 | -V, --version print version number and configuration settings, then exit
|
---|
7179 | --config print configuration, then exit
|
---|
7180 | -q, --quiet, --silent
|
---|
7181 | do not print progress messages
|
---|
7182 | -d, --debug don't remove temporary files
|
---|
7183 | --recheck update $as_me by reconfiguring in the same conditions
|
---|
7184 | --file=FILE[:TEMPLATE]
|
---|
7185 | instantiate the configuration file FILE
|
---|
7186 | --header=FILE[:TEMPLATE]
|
---|
7187 | instantiate the configuration header FILE
|
---|
7188 |
|
---|
7189 | Configuration files:
|
---|
7190 | $config_files
|
---|
7191 |
|
---|
7192 | Configuration headers:
|
---|
7193 | $config_headers
|
---|
7194 |
|
---|
7195 | Report bugs to the package provider."
|
---|
7196 |
|
---|
7197 | _ACEOF
|
---|
7198 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
7199 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
|
---|
7200 | ac_cs_version="\\
|
---|
7201 | config.status
|
---|
7202 | configured by $0, generated by GNU Autoconf 2.67,
|
---|
7203 | with options \\"\$ac_cs_config\\"
|
---|
7204 |
|
---|
7205 | Copyright (C) 2010 Free Software Foundation, Inc.
|
---|
7206 | This config.status script is free software; the Free Software Foundation
|
---|
7207 | gives unlimited permission to copy, distribute and modify it."
|
---|
7208 |
|
---|
7209 | ac_pwd='$ac_pwd'
|
---|
7210 | srcdir='$srcdir'
|
---|
7211 | INSTALL='$INSTALL'
|
---|
7212 | AWK='$AWK'
|
---|
7213 | test -n "\$AWK" || AWK=awk
|
---|
7214 | _ACEOF
|
---|
7215 |
|
---|
7216 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7217 | # The default lists apply if the user does not specify any file.
|
---|
7218 | ac_need_defaults=:
|
---|
7219 | while test $# != 0
|
---|
7220 | do
|
---|
7221 | case $1 in
|
---|
7222 | --*=?*)
|
---|
7223 | ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
---|
7224 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
|
---|
7225 | ac_shift=:
|
---|
7226 | ;;
|
---|
7227 | --*=)
|
---|
7228 | ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
---|
7229 | ac_optarg=
|
---|
7230 | ac_shift=:
|
---|
7231 | ;;
|
---|
7232 | *)
|
---|
7233 | ac_option=$1
|
---|
7234 | ac_optarg=$2
|
---|
7235 | ac_shift=shift
|
---|
7236 | ;;
|
---|
7237 | esac
|
---|
7238 |
|
---|
7239 | case $ac_option in
|
---|
7240 | # Handling of the options.
|
---|
7241 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
7242 | ac_cs_recheck=: ;;
|
---|
7243 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
|
---|
7244 | $as_echo "$ac_cs_version"; exit ;;
|
---|
7245 | --config | --confi | --conf | --con | --co | --c )
|
---|
7246 | $as_echo "$ac_cs_config"; exit ;;
|
---|
7247 | --debug | --debu | --deb | --de | --d | -d )
|
---|
7248 | debug=: ;;
|
---|
7249 | --file | --fil | --fi | --f )
|
---|
7250 | $ac_shift
|
---|
7251 | case $ac_optarg in
|
---|
7252 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
7253 | '') as_fn_error $? "missing file argument" ;;
|
---|
7254 | esac
|
---|
7255 | as_fn_append CONFIG_FILES " '$ac_optarg'"
|
---|
7256 | ac_need_defaults=false;;
|
---|
7257 | --header | --heade | --head | --hea )
|
---|
7258 | $ac_shift
|
---|
7259 | case $ac_optarg in
|
---|
7260 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
7261 | esac
|
---|
7262 | as_fn_append CONFIG_HEADERS " '$ac_optarg'"
|
---|
7263 | ac_need_defaults=false;;
|
---|
7264 | --he | --h)
|
---|
7265 | # Conflict between --help and --header
|
---|
7266 | as_fn_error $? "ambiguous option: \`$1'
|
---|
7267 | Try \`$0 --help' for more information.";;
|
---|
7268 | --help | --hel | -h )
|
---|
7269 | $as_echo "$ac_cs_usage"; exit ;;
|
---|
7270 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
7271 | | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
---|
7272 | ac_cs_silent=: ;;
|
---|
7273 |
|
---|
7274 | # This is an error.
|
---|
7275 | -*) as_fn_error $? "unrecognized option: \`$1'
|
---|
7276 | Try \`$0 --help' for more information." ;;
|
---|
7277 |
|
---|
7278 | *) as_fn_append ac_config_targets " $1"
|
---|
7279 | ac_need_defaults=false ;;
|
---|
7280 |
|
---|
7281 | esac
|
---|
7282 | shift
|
---|
7283 | done
|
---|
7284 |
|
---|
7285 | ac_configure_extra_args=
|
---|
7286 |
|
---|
7287 | if $ac_cs_silent; then
|
---|
7288 | exec 6>/dev/null
|
---|
7289 | ac_configure_extra_args="$ac_configure_extra_args --silent"
|
---|
7290 | fi
|
---|
7291 |
|
---|
7292 | _ACEOF
|
---|
7293 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
7294 | if \$ac_cs_recheck; then
|
---|
7295 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
---|
7296 | shift
|
---|
7297 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
|
---|
7298 | CONFIG_SHELL='$SHELL'
|
---|
7299 | export CONFIG_SHELL
|
---|
7300 | exec "\$@"
|
---|
7301 | fi
|
---|
7302 |
|
---|
7303 | _ACEOF
|
---|
7304 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7305 | exec 5>>config.log
|
---|
7306 | {
|
---|
7307 | echo
|
---|
7308 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
---|
7309 | ## Running $as_me. ##
|
---|
7310 | _ASBOX
|
---|
7311 | $as_echo "$ac_log"
|
---|
7312 | } >&5
|
---|
7313 |
|
---|
7314 | _ACEOF
|
---|
7315 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
7316 | _ACEOF
|
---|
7317 |
|
---|
7318 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7319 |
|
---|
7320 | # Handling of arguments.
|
---|
7321 | for ac_config_target in $ac_config_targets
|
---|
7322 | do
|
---|
7323 | case $ac_config_target in
|
---|
7324 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
---|
7325 | "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
|
---|
7326 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
---|
7327 | "$srclist") CONFIG_FILES="$CONFIG_FILES $srclist" ;;
|
---|
7328 | "$moduleDirs") CONFIG_FILES="$CONFIG_FILES $moduleDirs" ;;
|
---|
7329 |
|
---|
7330 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
|
---|
7331 | esac
|
---|
7332 | done
|
---|
7333 |
|
---|
7334 |
|
---|
7335 | # If the user did not use the arguments to specify the items to instantiate,
|
---|
7336 | # then the envvar interface is used. Set only those that are not.
|
---|
7337 | # We use the long form for the default assignment because of an extremely
|
---|
7338 | # bizarre bug on SunOS 4.1.3.
|
---|
7339 | if $ac_need_defaults; then
|
---|
7340 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
---|
7341 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
---|
7342 | fi
|
---|
7343 |
|
---|
7344 | # Have a temporary directory for convenience. Make it in the build tree
|
---|
7345 | # simply because there is no reason against having it here, and in addition,
|
---|
7346 | # creating and moving files from /tmp can sometimes cause problems.
|
---|
7347 | # Hook for its removal unless debugging.
|
---|
7348 | # Note that there is a small window in which the directory will not be cleaned:
|
---|
7349 | # after its creation but before its name has been assigned to `$tmp'.
|
---|
7350 | $debug ||
|
---|
7351 | {
|
---|
7352 | tmp=
|
---|
7353 | trap 'exit_status=$?
|
---|
7354 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
|
---|
7355 | ' 0
|
---|
7356 | trap 'as_fn_exit 1' 1 2 13 15
|
---|
7357 | }
|
---|
7358 | # Create a (secure) tmp directory for tmp files.
|
---|
7359 |
|
---|
7360 | {
|
---|
7361 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
|
---|
7362 | test -n "$tmp" && test -d "$tmp"
|
---|
7363 | } ||
|
---|
7364 | {
|
---|
7365 | tmp=./conf$$-$RANDOM
|
---|
7366 | (umask 077 && mkdir "$tmp")
|
---|
7367 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
|
---|
7368 |
|
---|
7369 | # Set up the scripts for CONFIG_FILES section.
|
---|
7370 | # No need to generate them if there are no CONFIG_FILES.
|
---|
7371 | # This happens for instance with `./config.status config.h'.
|
---|
7372 | if test -n "$CONFIG_FILES"; then
|
---|
7373 |
|
---|
7374 |
|
---|
7375 | ac_cr=`echo X | tr X '\015'`
|
---|
7376 | # On cygwin, bash can eat \r inside `` if the user requested igncr.
|
---|
7377 | # But we know of no other shell where ac_cr would be empty at this
|
---|
7378 | # point, so we can use a bashism as a fallback.
|
---|
7379 | if test "x$ac_cr" = x; then
|
---|
7380 | eval ac_cr=\$\'\\r\'
|
---|
7381 | fi
|
---|
7382 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
|
---|
7383 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
|
---|
7384 | ac_cs_awk_cr='\\r'
|
---|
7385 | else
|
---|
7386 | ac_cs_awk_cr=$ac_cr
|
---|
7387 | fi
|
---|
7388 |
|
---|
7389 | echo 'BEGIN {' >"$tmp/subs1.awk" &&
|
---|
7390 | _ACEOF
|
---|
7391 |
|
---|
7392 |
|
---|
7393 | {
|
---|
7394 | echo "cat >conf$$subs.awk <<_ACEOF" &&
|
---|
7395 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
|
---|
7396 | echo "_ACEOF"
|
---|
7397 | } >conf$$subs.sh ||
|
---|
7398 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
7399 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
|
---|
7400 | ac_delim='%!_!# '
|
---|
7401 | for ac_last_try in false false false false false :; do
|
---|
7402 | . ./conf$$subs.sh ||
|
---|
7403 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
7404 |
|
---|
7405 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
|
---|
7406 | if test $ac_delim_n = $ac_delim_num; then
|
---|
7407 | break
|
---|
7408 | elif $ac_last_try; then
|
---|
7409 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
7410 | else
|
---|
7411 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
---|
7412 | fi
|
---|
7413 | done
|
---|
7414 | rm -f conf$$subs.sh
|
---|
7415 |
|
---|
7416 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
7417 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
|
---|
7418 | _ACEOF
|
---|
7419 | sed -n '
|
---|
7420 | h
|
---|
7421 | s/^/S["/; s/!.*/"]=/
|
---|
7422 | p
|
---|
7423 | g
|
---|
7424 | s/^[^!]*!//
|
---|
7425 | :repl
|
---|
7426 | t repl
|
---|
7427 | s/'"$ac_delim"'$//
|
---|
7428 | t delim
|
---|
7429 | :nl
|
---|
7430 | h
|
---|
7431 | s/\(.\{148\}\)..*/\1/
|
---|
7432 | t more1
|
---|
7433 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
|
---|
7434 | p
|
---|
7435 | n
|
---|
7436 | b repl
|
---|
7437 | :more1
|
---|
7438 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/
|
---|
7439 | p
|
---|
7440 | g
|
---|
7441 | s/.\{148\}//
|
---|
7442 | t nl
|
---|
7443 | :delim
|
---|
7444 | h
|
---|
7445 | s/\(.\{148\}\)..*/\1/
|
---|
7446 | t more2
|
---|
7447 | s/["\\]/\\&/g; s/^/"/; s/$/"/
|
---|
7448 | p
|
---|
7449 | b
|
---|
7450 | :more2
|
---|
7451 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/
|
---|
7452 | p
|
---|
7453 | g
|
---|
7454 | s/.\{148\}//
|
---|
7455 | t delim
|
---|
7456 | ' <conf$$subs.awk | sed '
|
---|
7457 | /^[^""]/{
|
---|
7458 | N
|
---|
7459 | s/\n//
|
---|
7460 | }
|
---|
7461 | ' >>$CONFIG_STATUS || ac_write_fail=1
|
---|
7462 | rm -f conf$$subs.awk
|
---|
7463 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
7464 | _ACAWK
|
---|
7465 | cat >>"\$tmp/subs1.awk" <<_ACAWK &&
|
---|
7466 | for (key in S) S_is_set[key] = 1
|
---|
7467 | FS = ""
|
---|
7468 |
|
---|
7469 | }
|
---|
7470 | {
|
---|
7471 | line = $ 0
|
---|
7472 | nfields = split(line, field, "@")
|
---|
7473 | substed = 0
|
---|
7474 | len = length(field[1])
|
---|
7475 | for (i = 2; i < nfields; i++) {
|
---|
7476 | key = field[i]
|
---|
7477 | keylen = length(key)
|
---|
7478 | if (S_is_set[key]) {
|
---|
7479 | value = S[key]
|
---|
7480 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
|
---|
7481 | len += length(value) + length(field[++i])
|
---|
7482 | substed = 1
|
---|
7483 | } else
|
---|
7484 | len += 1 + keylen
|
---|
7485 | }
|
---|
7486 |
|
---|
7487 | print line
|
---|
7488 | }
|
---|
7489 |
|
---|
7490 | _ACAWK
|
---|
7491 | _ACEOF
|
---|
7492 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7493 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
|
---|
7494 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
|
---|
7495 | else
|
---|
7496 | cat
|
---|
7497 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
|
---|
7498 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
|
---|
7499 | _ACEOF
|
---|
7500 |
|
---|
7501 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
|
---|
7502 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
|
---|
7503 | # trailing colons and then remove the whole line if VPATH becomes empty
|
---|
7504 | # (actually we leave an empty line to preserve line numbers).
|
---|
7505 | if test "x$srcdir" = x.; then
|
---|
7506 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
|
---|
7507 | h
|
---|
7508 | s///
|
---|
7509 | s/^/:/
|
---|
7510 | s/[ ]*$/:/
|
---|
7511 | s/:\$(srcdir):/:/g
|
---|
7512 | s/:\${srcdir}:/:/g
|
---|
7513 | s/:@srcdir@:/:/g
|
---|
7514 | s/^:*//
|
---|
7515 | s/:*$//
|
---|
7516 | x
|
---|
7517 | s/\(=[ ]*\).*/\1/
|
---|
7518 | G
|
---|
7519 | s/\n//
|
---|
7520 | s/^[^=]*=[ ]*$//
|
---|
7521 | }'
|
---|
7522 | fi
|
---|
7523 |
|
---|
7524 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7525 | fi # test -n "$CONFIG_FILES"
|
---|
7526 |
|
---|
7527 | # Set up the scripts for CONFIG_HEADERS section.
|
---|
7528 | # No need to generate them if there are no CONFIG_HEADERS.
|
---|
7529 | # This happens for instance with `./config.status Makefile'.
|
---|
7530 | if test -n "$CONFIG_HEADERS"; then
|
---|
7531 | cat >"$tmp/defines.awk" <<\_ACAWK ||
|
---|
7532 | BEGIN {
|
---|
7533 | _ACEOF
|
---|
7534 |
|
---|
7535 | # Transform confdefs.h into an awk script `defines.awk', embedded as
|
---|
7536 | # here-document in config.status, that substitutes the proper values into
|
---|
7537 | # config.h.in to produce config.h.
|
---|
7538 |
|
---|
7539 | # Create a delimiter string that does not exist in confdefs.h, to ease
|
---|
7540 | # handling of long lines.
|
---|
7541 | ac_delim='%!_!# '
|
---|
7542 | for ac_last_try in false false :; do
|
---|
7543 | ac_t=`sed -n "/$ac_delim/p" confdefs.h`
|
---|
7544 | if test -z "$ac_t"; then
|
---|
7545 | break
|
---|
7546 | elif $ac_last_try; then
|
---|
7547 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
|
---|
7548 | else
|
---|
7549 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
---|
7550 | fi
|
---|
7551 | done
|
---|
7552 |
|
---|
7553 | # For the awk script, D is an array of macro values keyed by name,
|
---|
7554 | # likewise P contains macro parameters if any. Preserve backslash
|
---|
7555 | # newline sequences.
|
---|
7556 |
|
---|
7557 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
|
---|
7558 | sed -n '
|
---|
7559 | s/.\{148\}/&'"$ac_delim"'/g
|
---|
7560 | t rset
|
---|
7561 | :rset
|
---|
7562 | s/^[ ]*#[ ]*define[ ][ ]*/ /
|
---|
7563 | t def
|
---|
7564 | d
|
---|
7565 | :def
|
---|
7566 | s/\\$//
|
---|
7567 | t bsnl
|
---|
7568 | s/["\\]/\\&/g
|
---|
7569 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
|
---|
7570 | D["\1"]=" \3"/p
|
---|
7571 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
|
---|
7572 | d
|
---|
7573 | :bsnl
|
---|
7574 | s/["\\]/\\&/g
|
---|
7575 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
|
---|
7576 | D["\1"]=" \3\\\\\\n"\\/p
|
---|
7577 | t cont
|
---|
7578 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
|
---|
7579 | t cont
|
---|
7580 | d
|
---|
7581 | :cont
|
---|
7582 | n
|
---|
7583 | s/.\{148\}/&'"$ac_delim"'/g
|
---|
7584 | t clear
|
---|
7585 | :clear
|
---|
7586 | s/\\$//
|
---|
7587 | t bsnlc
|
---|
7588 | s/["\\]/\\&/g; s/^/"/; s/$/"/p
|
---|
7589 | d
|
---|
7590 | :bsnlc
|
---|
7591 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
|
---|
7592 | b cont
|
---|
7593 | ' <confdefs.h | sed '
|
---|
7594 | s/'"$ac_delim"'/"\\\
|
---|
7595 | "/g' >>$CONFIG_STATUS || ac_write_fail=1
|
---|
7596 |
|
---|
7597 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
7598 | for (key in D) D_is_set[key] = 1
|
---|
7599 | FS = ""
|
---|
7600 | }
|
---|
7601 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
|
---|
7602 | line = \$ 0
|
---|
7603 | split(line, arg, " ")
|
---|
7604 | if (arg[1] == "#") {
|
---|
7605 | defundef = arg[2]
|
---|
7606 | mac1 = arg[3]
|
---|
7607 | } else {
|
---|
7608 | defundef = substr(arg[1], 2)
|
---|
7609 | mac1 = arg[2]
|
---|
7610 | }
|
---|
7611 | split(mac1, mac2, "(") #)
|
---|
7612 | macro = mac2[1]
|
---|
7613 | prefix = substr(line, 1, index(line, defundef) - 1)
|
---|
7614 | if (D_is_set[macro]) {
|
---|
7615 | # Preserve the white space surrounding the "#".
|
---|
7616 | print prefix "define", macro P[macro] D[macro]
|
---|
7617 | next
|
---|
7618 | } else {
|
---|
7619 | # Replace #undef with comments. This is necessary, for example,
|
---|
7620 | # in the case of _POSIX_SOURCE, which is predefined and required
|
---|
7621 | # on some systems where configure will not decide to define it.
|
---|
7622 | if (defundef == "undef") {
|
---|
7623 | print "/*", prefix defundef, macro, "*/"
|
---|
7624 | next
|
---|
7625 | }
|
---|
7626 | }
|
---|
7627 | }
|
---|
7628 | { print }
|
---|
7629 | _ACAWK
|
---|
7630 | _ACEOF
|
---|
7631 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7632 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
|
---|
7633 | fi # test -n "$CONFIG_HEADERS"
|
---|
7634 |
|
---|
7635 |
|
---|
7636 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
|
---|
7637 | shift
|
---|
7638 | for ac_tag
|
---|
7639 | do
|
---|
7640 | case $ac_tag in
|
---|
7641 | :[FHLC]) ac_mode=$ac_tag; continue;;
|
---|
7642 | esac
|
---|
7643 | case $ac_mode$ac_tag in
|
---|
7644 | :[FHL]*:*);;
|
---|
7645 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
|
---|
7646 | :[FH]-) ac_tag=-:-;;
|
---|
7647 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
|
---|
7648 | esac
|
---|
7649 | ac_save_IFS=$IFS
|
---|
7650 | IFS=:
|
---|
7651 | set x $ac_tag
|
---|
7652 | IFS=$ac_save_IFS
|
---|
7653 | shift
|
---|
7654 | ac_file=$1
|
---|
7655 | shift
|
---|
7656 |
|
---|
7657 | case $ac_mode in
|
---|
7658 | :L) ac_source=$1;;
|
---|
7659 | :[FH])
|
---|
7660 | ac_file_inputs=
|
---|
7661 | for ac_f
|
---|
7662 | do
|
---|
7663 | case $ac_f in
|
---|
7664 | -) ac_f="$tmp/stdin";;
|
---|
7665 | *) # Look for the file first in the build tree, then in the source tree
|
---|
7666 | # (if the path is not absolute). The absolute path cannot be DOS-style,
|
---|
7667 | # because $ac_f cannot contain `:'.
|
---|
7668 | test -f "$ac_f" ||
|
---|
7669 | case $ac_f in
|
---|
7670 | [\\/$]*) false;;
|
---|
7671 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
|
---|
7672 | esac ||
|
---|
7673 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
|
---|
7674 | esac
|
---|
7675 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
|
---|
7676 | as_fn_append ac_file_inputs " '$ac_f'"
|
---|
7677 | done
|
---|
7678 |
|
---|
7679 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
7680 | # use $as_me), people would be surprised to read:
|
---|
7681 | # /* config.h. Generated by config.status. */
|
---|
7682 | configure_input='Generated from '`
|
---|
7683 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
|
---|
7684 | `' by configure.'
|
---|
7685 | if test x"$ac_file" != x-; then
|
---|
7686 | configure_input="$ac_file. $configure_input"
|
---|
7687 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
|
---|
7688 | $as_echo "$as_me: creating $ac_file" >&6;}
|
---|
7689 | fi
|
---|
7690 | # Neutralize special characters interpreted by sed in replacement strings.
|
---|
7691 | case $configure_input in #(
|
---|
7692 | *\&* | *\|* | *\\* )
|
---|
7693 | ac_sed_conf_input=`$as_echo "$configure_input" |
|
---|
7694 | sed 's/[\\\\&|]/\\\\&/g'`;; #(
|
---|
7695 | *) ac_sed_conf_input=$configure_input;;
|
---|
7696 | esac
|
---|
7697 |
|
---|
7698 | case $ac_tag in
|
---|
7699 | *:-:* | *:-) cat >"$tmp/stdin" \
|
---|
7700 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
|
---|
7701 | esac
|
---|
7702 | ;;
|
---|
7703 | esac
|
---|
7704 |
|
---|
7705 | ac_dir=`$as_dirname -- "$ac_file" ||
|
---|
7706 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
7707 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
7708 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
7709 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
7710 | $as_echo X"$ac_file" |
|
---|
7711 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
7712 | s//\1/
|
---|
7713 | q
|
---|
7714 | }
|
---|
7715 | /^X\(\/\/\)[^/].*/{
|
---|
7716 | s//\1/
|
---|
7717 | q
|
---|
7718 | }
|
---|
7719 | /^X\(\/\/\)$/{
|
---|
7720 | s//\1/
|
---|
7721 | q
|
---|
7722 | }
|
---|
7723 | /^X\(\/\).*/{
|
---|
7724 | s//\1/
|
---|
7725 | q
|
---|
7726 | }
|
---|
7727 | s/.*/./; q'`
|
---|
7728 | as_dir="$ac_dir"; as_fn_mkdir_p
|
---|
7729 | ac_builddir=.
|
---|
7730 |
|
---|
7731 | case "$ac_dir" in
|
---|
7732 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
7733 | *)
|
---|
7734 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
|
---|
7735 | # A ".." for each directory in $ac_dir_suffix.
|
---|
7736 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
---|
7737 | case $ac_top_builddir_sub in
|
---|
7738 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
7739 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
7740 | esac ;;
|
---|
7741 | esac
|
---|
7742 | ac_abs_top_builddir=$ac_pwd
|
---|
7743 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
7744 | # for backward compatibility:
|
---|
7745 | ac_top_builddir=$ac_top_build_prefix
|
---|
7746 |
|
---|
7747 | case $srcdir in
|
---|
7748 | .) # We are building in place.
|
---|
7749 | ac_srcdir=.
|
---|
7750 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
7751 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
7752 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
7753 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
7754 | ac_top_srcdir=$srcdir
|
---|
7755 | ac_abs_top_srcdir=$srcdir ;;
|
---|
7756 | *) # Relative name.
|
---|
7757 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
7758 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
7759 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
7760 | esac
|
---|
7761 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
7762 |
|
---|
7763 |
|
---|
7764 | case $ac_mode in
|
---|
7765 | :F)
|
---|
7766 | #
|
---|
7767 | # CONFIG_FILE
|
---|
7768 | #
|
---|
7769 |
|
---|
7770 | case $INSTALL in
|
---|
7771 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
---|
7772 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
|
---|
7773 | esac
|
---|
7774 | _ACEOF
|
---|
7775 |
|
---|
7776 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7777 | # If the template does not know about datarootdir, expand it.
|
---|
7778 | # FIXME: This hack should be removed a few years after 2.60.
|
---|
7779 | ac_datarootdir_hack=; ac_datarootdir_seen=
|
---|
7780 | ac_sed_dataroot='
|
---|
7781 | /datarootdir/ {
|
---|
7782 | p
|
---|
7783 | q
|
---|
7784 | }
|
---|
7785 | /@datadir@/p
|
---|
7786 | /@docdir@/p
|
---|
7787 | /@infodir@/p
|
---|
7788 | /@localedir@/p
|
---|
7789 | /@mandir@/p'
|
---|
7790 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
|
---|
7791 | *datarootdir*) ac_datarootdir_seen=yes;;
|
---|
7792 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
|
---|
7793 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
|
---|
7794 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
|
---|
7795 | _ACEOF
|
---|
7796 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
7797 | ac_datarootdir_hack='
|
---|
7798 | s&@datadir@&$datadir&g
|
---|
7799 | s&@docdir@&$docdir&g
|
---|
7800 | s&@infodir@&$infodir&g
|
---|
7801 | s&@localedir@&$localedir&g
|
---|
7802 | s&@mandir@&$mandir&g
|
---|
7803 | s&\\\${datarootdir}&$datarootdir&g' ;;
|
---|
7804 | esac
|
---|
7805 | _ACEOF
|
---|
7806 |
|
---|
7807 | # Neutralize VPATH when `$srcdir' = `.'.
|
---|
7808 | # Shell code in configure.ac might set extrasub.
|
---|
7809 | # FIXME: do we really want to maintain this feature?
|
---|
7810 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
7811 | ac_sed_extra="$ac_vpsub
|
---|
7812 | $extrasub
|
---|
7813 | _ACEOF
|
---|
7814 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7815 | :t
|
---|
7816 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
---|
7817 | s|@configure_input@|$ac_sed_conf_input|;t t
|
---|
7818 | s&@top_builddir@&$ac_top_builddir_sub&;t t
|
---|
7819 | s&@top_build_prefix@&$ac_top_build_prefix&;t t
|
---|
7820 | s&@srcdir@&$ac_srcdir&;t t
|
---|
7821 | s&@abs_srcdir@&$ac_abs_srcdir&;t t
|
---|
7822 | s&@top_srcdir@&$ac_top_srcdir&;t t
|
---|
7823 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
|
---|
7824 | s&@builddir@&$ac_builddir&;t t
|
---|
7825 | s&@abs_builddir@&$ac_abs_builddir&;t t
|
---|
7826 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
|
---|
7827 | s&@INSTALL@&$ac_INSTALL&;t t
|
---|
7828 | $ac_datarootdir_hack
|
---|
7829 | "
|
---|
7830 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
|
---|
7831 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
7832 |
|
---|
7833 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
|
---|
7834 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
|
---|
7835 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
|
---|
7836 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
---|
7837 | which seems to be undefined. Please make sure it is defined" >&5
|
---|
7838 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
---|
7839 | which seems to be undefined. Please make sure it is defined" >&2;}
|
---|
7840 |
|
---|
7841 | rm -f "$tmp/stdin"
|
---|
7842 | case $ac_file in
|
---|
7843 | -) cat "$tmp/out" && rm -f "$tmp/out";;
|
---|
7844 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
|
---|
7845 | esac \
|
---|
7846 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
7847 | ;;
|
---|
7848 | :H)
|
---|
7849 | #
|
---|
7850 | # CONFIG_HEADER
|
---|
7851 | #
|
---|
7852 | if test x"$ac_file" != x-; then
|
---|
7853 | {
|
---|
7854 | $as_echo "/* $configure_input */" \
|
---|
7855 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
|
---|
7856 | } >"$tmp/config.h" \
|
---|
7857 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
7858 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
|
---|
7859 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
|
---|
7860 | $as_echo "$as_me: $ac_file is unchanged" >&6;}
|
---|
7861 | else
|
---|
7862 | rm -f "$ac_file"
|
---|
7863 | mv "$tmp/config.h" "$ac_file" \
|
---|
7864 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
7865 | fi
|
---|
7866 | else
|
---|
7867 | $as_echo "/* $configure_input */" \
|
---|
7868 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
|
---|
7869 | || as_fn_error $? "could not create -" "$LINENO" 5
|
---|
7870 | fi
|
---|
7871 | ;;
|
---|
7872 |
|
---|
7873 |
|
---|
7874 | esac
|
---|
7875 |
|
---|
7876 | done # for ac_tag
|
---|
7877 |
|
---|
7878 |
|
---|
7879 | as_fn_exit 0
|
---|
7880 | _ACEOF
|
---|
7881 | ac_clean_files=$ac_clean_files_save
|
---|
7882 |
|
---|
7883 | test $ac_write_fail = 0 ||
|
---|
7884 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
|
---|
7885 |
|
---|
7886 |
|
---|
7887 | # configure is writing to config.log, and then calls config.status.
|
---|
7888 | # config.status does its own redirection, appending to config.log.
|
---|
7889 | # Unfortunately, on DOS this fails, as config.log is still kept open
|
---|
7890 | # by configure, so config.status won't be able to write to it; its
|
---|
7891 | # output is simply discarded. So we exec the FD to /dev/null,
|
---|
7892 | # effectively closing config.log, so it can be properly (re)opened and
|
---|
7893 | # appended to by config.status. When coming back to configure, we
|
---|
7894 | # need to make the FD available again.
|
---|
7895 | if test "$no_create" != yes; then
|
---|
7896 | ac_cs_success=:
|
---|
7897 | ac_config_status_args=
|
---|
7898 | test "$silent" = yes &&
|
---|
7899 | ac_config_status_args="$ac_config_status_args --quiet"
|
---|
7900 | exec 5>/dev/null
|
---|
7901 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
---|
7902 | exec 5>>config.log
|
---|
7903 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
---|
7904 | # would make configure fail if this is the last instruction.
|
---|
7905 | $ac_cs_success || as_fn_exit 1
|
---|
7906 | fi
|
---|
7907 |
|
---|
7908 | #
|
---|
7909 | # CONFIG_SUBDIRS section.
|
---|
7910 | #
|
---|
7911 | if test "$no_recursion" != yes; then
|
---|
7912 |
|
---|
7913 | # Remove --cache-file, --srcdir, and --disable-option-checking arguments
|
---|
7914 | # so they do not pile up.
|
---|
7915 | ac_sub_configure_args=
|
---|
7916 | ac_prev=
|
---|
7917 | eval "set x $ac_configure_args"
|
---|
7918 | shift
|
---|
7919 | for ac_arg
|
---|
7920 | do
|
---|
7921 | if test -n "$ac_prev"; then
|
---|
7922 | ac_prev=
|
---|
7923 | continue
|
---|
7924 | fi
|
---|
7925 | case $ac_arg in
|
---|
7926 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
7927 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
7928 | ac_prev=cache_file ;;
|
---|
7929 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
7930 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
|
---|
7931 | | --c=*)
|
---|
7932 | ;;
|
---|
7933 | --config-cache | -C)
|
---|
7934 | ;;
|
---|
7935 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
7936 | ac_prev=srcdir ;;
|
---|
7937 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
7938 | ;;
|
---|
7939 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
7940 | ac_prev=prefix ;;
|
---|
7941 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
7942 | ;;
|
---|
7943 | --disable-option-checking)
|
---|
7944 | ;;
|
---|
7945 | *)
|
---|
7946 | case $ac_arg in
|
---|
7947 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
7948 | esac
|
---|
7949 | as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
|
---|
7950 | esac
|
---|
7951 | done
|
---|
7952 |
|
---|
7953 | # Always prepend --prefix to ensure using the same prefix
|
---|
7954 | # in subdir configurations.
|
---|
7955 | ac_arg="--prefix=$prefix"
|
---|
7956 | case $ac_arg in
|
---|
7957 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
7958 | esac
|
---|
7959 | ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
|
---|
7960 |
|
---|
7961 | # Pass --silent
|
---|
7962 | if test "$silent" = yes; then
|
---|
7963 | ac_sub_configure_args="--silent $ac_sub_configure_args"
|
---|
7964 | fi
|
---|
7965 |
|
---|
7966 | # Always prepend --disable-option-checking to silence warnings, since
|
---|
7967 | # different subdirs can have different --enable and --with options.
|
---|
7968 | ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
|
---|
7969 |
|
---|
7970 | ac_popdir=`pwd`
|
---|
7971 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
|
---|
7972 |
|
---|
7973 | # Do not complain, so a configure script can configure whichever
|
---|
7974 | # parts of a large source tree are present.
|
---|
7975 | test -d "$srcdir/$ac_dir" || continue
|
---|
7976 |
|
---|
7977 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
|
---|
7978 | $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
|
---|
7979 | $as_echo "$ac_msg" >&6
|
---|
7980 | as_dir="$ac_dir"; as_fn_mkdir_p
|
---|
7981 | ac_builddir=.
|
---|
7982 |
|
---|
7983 | case "$ac_dir" in
|
---|
7984 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
7985 | *)
|
---|
7986 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
|
---|
7987 | # A ".." for each directory in $ac_dir_suffix.
|
---|
7988 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
---|
7989 | case $ac_top_builddir_sub in
|
---|
7990 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
7991 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
7992 | esac ;;
|
---|
7993 | esac
|
---|
7994 | ac_abs_top_builddir=$ac_pwd
|
---|
7995 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
7996 | # for backward compatibility:
|
---|
7997 | ac_top_builddir=$ac_top_build_prefix
|
---|
7998 |
|
---|
7999 | case $srcdir in
|
---|
8000 | .) # We are building in place.
|
---|
8001 | ac_srcdir=.
|
---|
8002 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
8003 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
8004 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
8005 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
8006 | ac_top_srcdir=$srcdir
|
---|
8007 | ac_abs_top_srcdir=$srcdir ;;
|
---|
8008 | *) # Relative name.
|
---|
8009 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
8010 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
8011 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
8012 | esac
|
---|
8013 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
8014 |
|
---|
8015 |
|
---|
8016 | cd "$ac_dir"
|
---|
8017 |
|
---|
8018 | # Check for guested configure; otherwise get Cygnus style configure.
|
---|
8019 | if test -f "$ac_srcdir/configure.gnu"; then
|
---|
8020 | ac_sub_configure=$ac_srcdir/configure.gnu
|
---|
8021 | elif test -f "$ac_srcdir/configure"; then
|
---|
8022 | ac_sub_configure=$ac_srcdir/configure
|
---|
8023 | elif test -f "$ac_srcdir/configure.in"; then
|
---|
8024 | # This should be Cygnus configure.
|
---|
8025 | ac_sub_configure=$ac_aux_dir/configure
|
---|
8026 | else
|
---|
8027 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
|
---|
8028 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
|
---|
8029 | ac_sub_configure=
|
---|
8030 | fi
|
---|
8031 |
|
---|
8032 | # The recursion is here.
|
---|
8033 | if test -n "$ac_sub_configure"; then
|
---|
8034 | # Make the cache file name correct relative to the subdirectory.
|
---|
8035 | case $cache_file in
|
---|
8036 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
|
---|
8037 | *) # Relative name.
|
---|
8038 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
|
---|
8039 | esac
|
---|
8040 |
|
---|
8041 | { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
|
---|
8042 | $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
|
---|
8043 | # The eval makes quoting arguments work.
|
---|
8044 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
|
---|
8045 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
|
---|
8046 | as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
|
---|
8047 | fi
|
---|
8048 |
|
---|
8049 | cd "$ac_popdir"
|
---|
8050 | done
|
---|
8051 | fi
|
---|
8052 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
|
---|
8053 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
|
---|
8054 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
|
---|
8055 | fi
|
---|
8056 |
|
---|
8057 |
|
---|
8058 |
|
---|