1 | #! /bin/sh
|
---|
2 | # Guess values for system-dependent variables and create Makefiles.
|
---|
3 | # Generated by GNU Autoconf 2.68.
|
---|
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 | as_myself=
|
---|
93 | case $0 in #((
|
---|
94 | *[\\/]* ) as_myself=$0 ;;
|
---|
95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
96 | for as_dir in $PATH
|
---|
97 | do
|
---|
98 | IFS=$as_save_IFS
|
---|
99 | test -z "$as_dir" && as_dir=.
|
---|
100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
101 | done
|
---|
102 | IFS=$as_save_IFS
|
---|
103 |
|
---|
104 | ;;
|
---|
105 | esac
|
---|
106 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
107 | # in which case we are not to be found in the path.
|
---|
108 | if test "x$as_myself" = x; then
|
---|
109 | as_myself=$0
|
---|
110 | fi
|
---|
111 | if test ! -f "$as_myself"; then
|
---|
112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
---|
113 | exit 1
|
---|
114 | fi
|
---|
115 |
|
---|
116 | # Unset variables that we do not need and which cause bugs (e.g. in
|
---|
117 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
|
---|
118 | # suppresses any "Segmentation fault" message there. '((' could
|
---|
119 | # trigger a bug in pdksh 5.2.14.
|
---|
120 | for as_var in BASH_ENV ENV MAIL MAILPATH
|
---|
121 | do eval test x\${$as_var+set} = xset \
|
---|
122 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
|
---|
123 | done
|
---|
124 | PS1='$ '
|
---|
125 | PS2='> '
|
---|
126 | PS4='+ '
|
---|
127 |
|
---|
128 | # NLS nuisances.
|
---|
129 | LC_ALL=C
|
---|
130 | export LC_ALL
|
---|
131 | LANGUAGE=C
|
---|
132 | export LANGUAGE
|
---|
133 |
|
---|
134 | # CDPATH.
|
---|
135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
---|
136 |
|
---|
137 | if test "x$CONFIG_SHELL" = x; then
|
---|
138 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
|
---|
139 | emulate sh
|
---|
140 | NULLCMD=:
|
---|
141 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
|
---|
142 | # is contrary to our usage. Disable this feature.
|
---|
143 | alias -g '\${1+\"\$@\"}'='\"\$@\"'
|
---|
144 | setopt NO_GLOB_SUBST
|
---|
145 | else
|
---|
146 | case \`(set -o) 2>/dev/null\` in #(
|
---|
147 | *posix*) :
|
---|
148 | set -o posix ;; #(
|
---|
149 | *) :
|
---|
150 | ;;
|
---|
151 | esac
|
---|
152 | fi
|
---|
153 | "
|
---|
154 | as_required="as_fn_return () { (exit \$1); }
|
---|
155 | as_fn_success () { as_fn_return 0; }
|
---|
156 | as_fn_failure () { as_fn_return 1; }
|
---|
157 | as_fn_ret_success () { return 0; }
|
---|
158 | as_fn_ret_failure () { return 1; }
|
---|
159 |
|
---|
160 | exitcode=0
|
---|
161 | as_fn_success || { exitcode=1; echo as_fn_success failed.; }
|
---|
162 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
|
---|
163 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
|
---|
164 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
|
---|
165 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
|
---|
166 |
|
---|
167 | else
|
---|
168 | exitcode=1; echo positional parameters were not saved.
|
---|
169 | fi
|
---|
170 | test x\$exitcode = x0 || exit 1"
|
---|
171 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
|
---|
172 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
|
---|
173 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
|
---|
174 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
|
---|
175 | test \$(( 1 + 1 )) = 2 || exit 1"
|
---|
176 | if (eval "$as_required") 2>/dev/null; then :
|
---|
177 | as_have_required=yes
|
---|
178 | else
|
---|
179 | as_have_required=no
|
---|
180 | fi
|
---|
181 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
|
---|
182 |
|
---|
183 | else
|
---|
184 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
185 | as_found=false
|
---|
186 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
187 | do
|
---|
188 | IFS=$as_save_IFS
|
---|
189 | test -z "$as_dir" && as_dir=.
|
---|
190 | as_found=:
|
---|
191 | case $as_dir in #(
|
---|
192 | /*)
|
---|
193 | for as_base in sh bash ksh sh5; do
|
---|
194 | # Try only shells that exist, to save several forks.
|
---|
195 | as_shell=$as_dir/$as_base
|
---|
196 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
|
---|
197 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
|
---|
198 | CONFIG_SHELL=$as_shell as_have_required=yes
|
---|
199 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
|
---|
200 | break 2
|
---|
201 | fi
|
---|
202 | fi
|
---|
203 | done;;
|
---|
204 | esac
|
---|
205 | as_found=false
|
---|
206 | done
|
---|
207 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
|
---|
208 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
|
---|
209 | CONFIG_SHELL=$SHELL as_have_required=yes
|
---|
210 | fi; }
|
---|
211 | IFS=$as_save_IFS
|
---|
212 |
|
---|
213 |
|
---|
214 | if test "x$CONFIG_SHELL" != x; then :
|
---|
215 | # We cannot yet assume a decent shell, so we have to provide a
|
---|
216 | # neutralization value for shells without unset; and this also
|
---|
217 | # works around shells that cannot unset nonexistent variables.
|
---|
218 | # Preserve -v and -x to the replacement shell.
|
---|
219 | BASH_ENV=/dev/null
|
---|
220 | ENV=/dev/null
|
---|
221 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
|
---|
222 | export CONFIG_SHELL
|
---|
223 | case $- in # ((((
|
---|
224 | *v*x* | *x*v* ) as_opts=-vx ;;
|
---|
225 | *v* ) as_opts=-v ;;
|
---|
226 | *x* ) as_opts=-x ;;
|
---|
227 | * ) as_opts= ;;
|
---|
228 | esac
|
---|
229 | exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
|
---|
230 | fi
|
---|
231 |
|
---|
232 | if test x$as_have_required = xno; then :
|
---|
233 | $as_echo "$0: This script requires a shell more modern than all"
|
---|
234 | $as_echo "$0: the shells that I found on your system."
|
---|
235 | if test x${ZSH_VERSION+set} = xset ; then
|
---|
236 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
|
---|
237 | $as_echo "$0: be upgraded to zsh 4.3.4 or later."
|
---|
238 | else
|
---|
239 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
|
---|
240 | $0: including any error possibly output before this
|
---|
241 | $0: message. Then install a modern shell, or manually run
|
---|
242 | $0: the script under such a shell if you do have one."
|
---|
243 | fi
|
---|
244 | exit 1
|
---|
245 | fi
|
---|
246 | fi
|
---|
247 | fi
|
---|
248 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
249 | export SHELL
|
---|
250 | # Unset more variables known to interfere with behavior of common tools.
|
---|
251 | CLICOLOR_FORCE= GREP_OPTIONS=
|
---|
252 | unset CLICOLOR_FORCE GREP_OPTIONS
|
---|
253 |
|
---|
254 | ## --------------------- ##
|
---|
255 | ## M4sh Shell Functions. ##
|
---|
256 | ## --------------------- ##
|
---|
257 | # as_fn_unset VAR
|
---|
258 | # ---------------
|
---|
259 | # Portably unset VAR.
|
---|
260 | as_fn_unset ()
|
---|
261 | {
|
---|
262 | { eval $1=; unset $1;}
|
---|
263 | }
|
---|
264 | as_unset=as_fn_unset
|
---|
265 |
|
---|
266 | # as_fn_set_status STATUS
|
---|
267 | # -----------------------
|
---|
268 | # Set $? to STATUS, without forking.
|
---|
269 | as_fn_set_status ()
|
---|
270 | {
|
---|
271 | return $1
|
---|
272 | } # as_fn_set_status
|
---|
273 |
|
---|
274 | # as_fn_exit STATUS
|
---|
275 | # -----------------
|
---|
276 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
|
---|
277 | as_fn_exit ()
|
---|
278 | {
|
---|
279 | set +e
|
---|
280 | as_fn_set_status $1
|
---|
281 | exit $1
|
---|
282 | } # as_fn_exit
|
---|
283 |
|
---|
284 | # as_fn_mkdir_p
|
---|
285 | # -------------
|
---|
286 | # Create "$as_dir" as a directory, including parents if necessary.
|
---|
287 | as_fn_mkdir_p ()
|
---|
288 | {
|
---|
289 |
|
---|
290 | case $as_dir in #(
|
---|
291 | -*) as_dir=./$as_dir;;
|
---|
292 | esac
|
---|
293 | test -d "$as_dir" || eval $as_mkdir_p || {
|
---|
294 | as_dirs=
|
---|
295 | while :; do
|
---|
296 | case $as_dir in #(
|
---|
297 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
|
---|
298 | *) as_qdir=$as_dir;;
|
---|
299 | esac
|
---|
300 | as_dirs="'$as_qdir' $as_dirs"
|
---|
301 | as_dir=`$as_dirname -- "$as_dir" ||
|
---|
302 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
303 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
304 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
305 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
306 | $as_echo X"$as_dir" |
|
---|
307 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
308 | s//\1/
|
---|
309 | q
|
---|
310 | }
|
---|
311 | /^X\(\/\/\)[^/].*/{
|
---|
312 | s//\1/
|
---|
313 | q
|
---|
314 | }
|
---|
315 | /^X\(\/\/\)$/{
|
---|
316 | s//\1/
|
---|
317 | q
|
---|
318 | }
|
---|
319 | /^X\(\/\).*/{
|
---|
320 | s//\1/
|
---|
321 | q
|
---|
322 | }
|
---|
323 | s/.*/./; q'`
|
---|
324 | test -d "$as_dir" && break
|
---|
325 | done
|
---|
326 | test -z "$as_dirs" || eval "mkdir $as_dirs"
|
---|
327 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
|
---|
328 |
|
---|
329 |
|
---|
330 | } # as_fn_mkdir_p
|
---|
331 | # as_fn_append VAR VALUE
|
---|
332 | # ----------------------
|
---|
333 | # Append the text in VALUE to the end of the definition contained in VAR. Take
|
---|
334 | # advantage of any shell optimizations that allow amortized linear growth over
|
---|
335 | # repeated appends, instead of the typical quadratic growth present in naive
|
---|
336 | # implementations.
|
---|
337 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
|
---|
338 | eval 'as_fn_append ()
|
---|
339 | {
|
---|
340 | eval $1+=\$2
|
---|
341 | }'
|
---|
342 | else
|
---|
343 | as_fn_append ()
|
---|
344 | {
|
---|
345 | eval $1=\$$1\$2
|
---|
346 | }
|
---|
347 | fi # as_fn_append
|
---|
348 |
|
---|
349 | # as_fn_arith ARG...
|
---|
350 | # ------------------
|
---|
351 | # Perform arithmetic evaluation on the ARGs, and store the result in the
|
---|
352 | # global $as_val. Take advantage of shells that can avoid forks. The arguments
|
---|
353 | # must be portable across $(()) and expr.
|
---|
354 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
|
---|
355 | eval 'as_fn_arith ()
|
---|
356 | {
|
---|
357 | as_val=$(( $* ))
|
---|
358 | }'
|
---|
359 | else
|
---|
360 | as_fn_arith ()
|
---|
361 | {
|
---|
362 | as_val=`expr "$@" || test $? -eq 1`
|
---|
363 | }
|
---|
364 | fi # as_fn_arith
|
---|
365 |
|
---|
366 |
|
---|
367 | # as_fn_error STATUS ERROR [LINENO LOG_FD]
|
---|
368 | # ----------------------------------------
|
---|
369 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
|
---|
370 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
|
---|
371 | # script with STATUS, using 1 if that was 0.
|
---|
372 | as_fn_error ()
|
---|
373 | {
|
---|
374 | as_status=$1; test $as_status -eq 0 && as_status=1
|
---|
375 | if test "$4"; then
|
---|
376 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
377 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
|
---|
378 | fi
|
---|
379 | $as_echo "$as_me: error: $2" >&2
|
---|
380 | as_fn_exit $as_status
|
---|
381 | } # as_fn_error
|
---|
382 |
|
---|
383 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
384 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
385 | as_expr=expr
|
---|
386 | else
|
---|
387 | as_expr=false
|
---|
388 | fi
|
---|
389 |
|
---|
390 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
---|
391 | as_basename=basename
|
---|
392 | else
|
---|
393 | as_basename=false
|
---|
394 | fi
|
---|
395 |
|
---|
396 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
---|
397 | as_dirname=dirname
|
---|
398 | else
|
---|
399 | as_dirname=false
|
---|
400 | fi
|
---|
401 |
|
---|
402 | as_me=`$as_basename -- "$0" ||
|
---|
403 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
404 | X"$0" : 'X\(//\)$' \| \
|
---|
405 | X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
406 | $as_echo X/"$0" |
|
---|
407 | sed '/^.*\/\([^/][^/]*\)\/*$/{
|
---|
408 | s//\1/
|
---|
409 | q
|
---|
410 | }
|
---|
411 | /^X\/\(\/\/\)$/{
|
---|
412 | s//\1/
|
---|
413 | q
|
---|
414 | }
|
---|
415 | /^X\/\(\/\).*/{
|
---|
416 | s//\1/
|
---|
417 | q
|
---|
418 | }
|
---|
419 | s/.*/./; q'`
|
---|
420 |
|
---|
421 | # Avoid depending upon Character Ranges.
|
---|
422 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
423 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
424 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
425 | as_cr_digits='0123456789'
|
---|
426 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
427 |
|
---|
428 |
|
---|
429 | as_lineno_1=$LINENO as_lineno_1a=$LINENO
|
---|
430 | as_lineno_2=$LINENO as_lineno_2a=$LINENO
|
---|
431 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
|
---|
432 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
|
---|
433 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
|
---|
434 | sed -n '
|
---|
435 | p
|
---|
436 | /[$]LINENO/=
|
---|
437 | ' <$as_myself |
|
---|
438 | sed '
|
---|
439 | s/[$]LINENO.*/&-/
|
---|
440 | t lineno
|
---|
441 | b
|
---|
442 | :lineno
|
---|
443 | N
|
---|
444 | :loop
|
---|
445 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
|
---|
446 | t loop
|
---|
447 | s/-\n.*//
|
---|
448 | ' >$as_me.lineno &&
|
---|
449 | chmod +x "$as_me.lineno" ||
|
---|
450 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
|
---|
451 |
|
---|
452 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
453 | # (the dirname of $[0] is not the place where we might find the
|
---|
454 | # original and so on. Autoconf is especially sensitive to this).
|
---|
455 | . "./$as_me.lineno"
|
---|
456 | # Exit status is that of the last command.
|
---|
457 | exit
|
---|
458 | }
|
---|
459 |
|
---|
460 | ECHO_C= ECHO_N= ECHO_T=
|
---|
461 | case `echo -n x` in #(((((
|
---|
462 | -n*)
|
---|
463 | case `echo 'xy\c'` in
|
---|
464 | *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
---|
465 | xy) ECHO_C='\c';;
|
---|
466 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
|
---|
467 | ECHO_T=' ';;
|
---|
468 | esac;;
|
---|
469 | *)
|
---|
470 | ECHO_N='-n';;
|
---|
471 | esac
|
---|
472 |
|
---|
473 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
474 | if test -d conf$$.dir; then
|
---|
475 | rm -f conf$$.dir/conf$$.file
|
---|
476 | else
|
---|
477 | rm -f conf$$.dir
|
---|
478 | mkdir conf$$.dir 2>/dev/null
|
---|
479 | fi
|
---|
480 | if (echo >conf$$.file) 2>/dev/null; then
|
---|
481 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
482 | as_ln_s='ln -s'
|
---|
483 | # ... but there are two gotchas:
|
---|
484 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
---|
485 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
---|
486 | # In both cases, we have to default to `cp -p'.
|
---|
487 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
---|
488 | as_ln_s='cp -p'
|
---|
489 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
490 | as_ln_s=ln
|
---|
491 | else
|
---|
492 | as_ln_s='cp -p'
|
---|
493 | fi
|
---|
494 | else
|
---|
495 | as_ln_s='cp -p'
|
---|
496 | fi
|
---|
497 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
---|
498 | rmdir conf$$.dir 2>/dev/null
|
---|
499 |
|
---|
500 | if mkdir -p . 2>/dev/null; then
|
---|
501 | as_mkdir_p='mkdir -p "$as_dir"'
|
---|
502 | else
|
---|
503 | test -d ./-p && rmdir ./-p
|
---|
504 | as_mkdir_p=false
|
---|
505 | fi
|
---|
506 |
|
---|
507 | if test -x / >/dev/null 2>&1; then
|
---|
508 | as_test_x='test -x'
|
---|
509 | else
|
---|
510 | if ls -dL / >/dev/null 2>&1; then
|
---|
511 | as_ls_L_option=L
|
---|
512 | else
|
---|
513 | as_ls_L_option=
|
---|
514 | fi
|
---|
515 | as_test_x='
|
---|
516 | eval sh -c '\''
|
---|
517 | if test -d "$1"; then
|
---|
518 | test -d "$1/.";
|
---|
519 | else
|
---|
520 | case $1 in #(
|
---|
521 | -*)set "./$1";;
|
---|
522 | esac;
|
---|
523 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
|
---|
524 | ???[sx]*):;;*)false;;esac;fi
|
---|
525 | '\'' sh
|
---|
526 | '
|
---|
527 | fi
|
---|
528 | as_executable_p=$as_test_x
|
---|
529 |
|
---|
530 | # Sed expression to map a string onto a valid CPP name.
|
---|
531 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
532 |
|
---|
533 | # Sed expression to map a string onto a valid variable name.
|
---|
534 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
535 |
|
---|
536 |
|
---|
537 | test -n "$DJDIR" || exec 7<&0 </dev/null
|
---|
538 | exec 6>&1
|
---|
539 |
|
---|
540 | # Name of the host.
|
---|
541 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
|
---|
542 | # so uname gets run too.
|
---|
543 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
544 |
|
---|
545 | #
|
---|
546 | # Initializations.
|
---|
547 | #
|
---|
548 | ac_default_prefix=/usr/local
|
---|
549 | ac_clean_files=
|
---|
550 | ac_config_libobj_dir=.
|
---|
551 | LIBOBJS=
|
---|
552 | cross_compiling=no
|
---|
553 | subdirs=
|
---|
554 | MFLAGS=
|
---|
555 | MAKEFLAGS=
|
---|
556 |
|
---|
557 | # Identity of this package.
|
---|
558 | PACKAGE_NAME=
|
---|
559 | PACKAGE_TARNAME=
|
---|
560 | PACKAGE_VERSION=
|
---|
561 | PACKAGE_STRING=
|
---|
562 | PACKAGE_BUGREPORT=
|
---|
563 | PACKAGE_URL=
|
---|
564 |
|
---|
565 | ac_unique_file="text/MGQuery.cpp"
|
---|
566 | # Factoring default headers for most tests.
|
---|
567 | ac_includes_default="\
|
---|
568 | #include <stdio.h>
|
---|
569 | #ifdef HAVE_SYS_TYPES_H
|
---|
570 | # include <sys/types.h>
|
---|
571 | #endif
|
---|
572 | #ifdef HAVE_SYS_STAT_H
|
---|
573 | # include <sys/stat.h>
|
---|
574 | #endif
|
---|
575 | #ifdef STDC_HEADERS
|
---|
576 | # include <stdlib.h>
|
---|
577 | # include <stddef.h>
|
---|
578 | #else
|
---|
579 | # ifdef HAVE_STDLIB_H
|
---|
580 | # include <stdlib.h>
|
---|
581 | # endif
|
---|
582 | #endif
|
---|
583 | #ifdef HAVE_STRING_H
|
---|
584 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
|
---|
585 | # include <memory.h>
|
---|
586 | # endif
|
---|
587 | # include <string.h>
|
---|
588 | #endif
|
---|
589 | #ifdef HAVE_STRINGS_H
|
---|
590 | # include <strings.h>
|
---|
591 | #endif
|
---|
592 | #ifdef HAVE_INTTYPES_H
|
---|
593 | # include <inttypes.h>
|
---|
594 | #endif
|
---|
595 | #ifdef HAVE_STDINT_H
|
---|
596 | # include <stdint.h>
|
---|
597 | #endif
|
---|
598 | #ifdef HAVE_UNISTD_H
|
---|
599 | # include <unistd.h>
|
---|
600 | #endif"
|
---|
601 |
|
---|
602 | ac_subst_vars='LTLIBOBJS
|
---|
603 | JNILDFLAGS
|
---|
604 | JNICFLAGS
|
---|
605 | JNISUFFIX
|
---|
606 | JNIPREFIX
|
---|
607 | JNIINC
|
---|
608 | LIBOBJS
|
---|
609 | ALLOCA
|
---|
610 | UNAC_DIR
|
---|
611 | ANSI2KNR
|
---|
612 | U
|
---|
613 | EGREP
|
---|
614 | GREP
|
---|
615 | CPP
|
---|
616 | JAVACFLAGS
|
---|
617 | JAVAC
|
---|
618 | uudecode
|
---|
619 | JAVA
|
---|
620 | RANLIB
|
---|
621 | SET_MAKE
|
---|
622 | LN_S
|
---|
623 | INSTALL_DATA
|
---|
624 | INSTALL_SCRIPT
|
---|
625 | INSTALL_PROGRAM
|
---|
626 | ac_ct_CC
|
---|
627 | CFLAGS
|
---|
628 | CC
|
---|
629 | YFLAGS
|
---|
630 | YACC
|
---|
631 | AWK
|
---|
632 | OBJEXT
|
---|
633 | EXEEXT
|
---|
634 | ac_ct_CXX
|
---|
635 | CPPFLAGS
|
---|
636 | LDFLAGS
|
---|
637 | CXXFLAGS
|
---|
638 | CXX
|
---|
639 | ENABLE_ACCENTFOLD
|
---|
640 | ARCH_DEP_FLAGS
|
---|
641 | ENABLE_JAVA
|
---|
642 | VERSION
|
---|
643 | PACKAGE
|
---|
644 | target_os
|
---|
645 | target_vendor
|
---|
646 | target_cpu
|
---|
647 | target
|
---|
648 | host_os
|
---|
649 | host_vendor
|
---|
650 | host_cpu
|
---|
651 | host
|
---|
652 | build_os
|
---|
653 | build_vendor
|
---|
654 | build_cpu
|
---|
655 | build
|
---|
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_java
|
---|
698 | enable_accentfold
|
---|
699 | with_unac
|
---|
700 | with_dmalloc
|
---|
701 | with_regex
|
---|
702 | with_gnu_readline
|
---|
703 | enable_override_longlong
|
---|
704 | '
|
---|
705 | ac_precious_vars='build_alias
|
---|
706 | host_alias
|
---|
707 | target_alias
|
---|
708 | CXX
|
---|
709 | CXXFLAGS
|
---|
710 | LDFLAGS
|
---|
711 | LIBS
|
---|
712 | CPPFLAGS
|
---|
713 | CCC
|
---|
714 | YACC
|
---|
715 | YFLAGS
|
---|
716 | CC
|
---|
717 | CFLAGS
|
---|
718 | CPP'
|
---|
719 |
|
---|
720 |
|
---|
721 | # Initialize some variables set by options.
|
---|
722 | ac_init_help=
|
---|
723 | ac_init_version=false
|
---|
724 | ac_unrecognized_opts=
|
---|
725 | ac_unrecognized_sep=
|
---|
726 | # The variables have the same names as the options, with
|
---|
727 | # dashes changed to underlines.
|
---|
728 | cache_file=/dev/null
|
---|
729 | exec_prefix=NONE
|
---|
730 | no_create=
|
---|
731 | no_recursion=
|
---|
732 | prefix=NONE
|
---|
733 | program_prefix=NONE
|
---|
734 | program_suffix=NONE
|
---|
735 | program_transform_name=s,x,x,
|
---|
736 | silent=
|
---|
737 | site=
|
---|
738 | srcdir=
|
---|
739 | verbose=
|
---|
740 | x_includes=NONE
|
---|
741 | x_libraries=NONE
|
---|
742 |
|
---|
743 | # Installation directory options.
|
---|
744 | # These are left unexpanded so users can "make install exec_prefix=/foo"
|
---|
745 | # and all the variables that are supposed to be based on exec_prefix
|
---|
746 | # by default will actually change.
|
---|
747 | # Use braces instead of parens because sh, perl, etc. also accept them.
|
---|
748 | # (The list follows the same order as the GNU Coding Standards.)
|
---|
749 | bindir='${exec_prefix}/bin'
|
---|
750 | sbindir='${exec_prefix}/sbin'
|
---|
751 | libexecdir='${exec_prefix}/libexec'
|
---|
752 | datarootdir='${prefix}/share'
|
---|
753 | datadir='${datarootdir}'
|
---|
754 | sysconfdir='${prefix}/etc'
|
---|
755 | sharedstatedir='${prefix}/com'
|
---|
756 | localstatedir='${prefix}/var'
|
---|
757 | includedir='${prefix}/include'
|
---|
758 | oldincludedir='/usr/include'
|
---|
759 | docdir='${datarootdir}/doc/${PACKAGE}'
|
---|
760 | infodir='${datarootdir}/info'
|
---|
761 | htmldir='${docdir}'
|
---|
762 | dvidir='${docdir}'
|
---|
763 | pdfdir='${docdir}'
|
---|
764 | psdir='${docdir}'
|
---|
765 | libdir='${exec_prefix}/lib'
|
---|
766 | localedir='${datarootdir}/locale'
|
---|
767 | mandir='${datarootdir}/man'
|
---|
768 |
|
---|
769 | ac_prev=
|
---|
770 | ac_dashdash=
|
---|
771 | for ac_option
|
---|
772 | do
|
---|
773 | # If the previous option needs an argument, assign it.
|
---|
774 | if test -n "$ac_prev"; then
|
---|
775 | eval $ac_prev=\$ac_option
|
---|
776 | ac_prev=
|
---|
777 | continue
|
---|
778 | fi
|
---|
779 |
|
---|
780 | case $ac_option in
|
---|
781 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
|
---|
782 | *=) ac_optarg= ;;
|
---|
783 | *) ac_optarg=yes ;;
|
---|
784 | esac
|
---|
785 |
|
---|
786 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
787 |
|
---|
788 | case $ac_dashdash$ac_option in
|
---|
789 | --)
|
---|
790 | ac_dashdash=yes ;;
|
---|
791 |
|
---|
792 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
793 | ac_prev=bindir ;;
|
---|
794 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
795 | bindir=$ac_optarg ;;
|
---|
796 |
|
---|
797 | -build | --build | --buil | --bui | --bu)
|
---|
798 | ac_prev=build_alias ;;
|
---|
799 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
800 | build_alias=$ac_optarg ;;
|
---|
801 |
|
---|
802 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
803 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
804 | ac_prev=cache_file ;;
|
---|
805 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
806 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
807 | cache_file=$ac_optarg ;;
|
---|
808 |
|
---|
809 | --config-cache | -C)
|
---|
810 | cache_file=config.cache ;;
|
---|
811 |
|
---|
812 | -datadir | --datadir | --datadi | --datad)
|
---|
813 | ac_prev=datadir ;;
|
---|
814 | -datadir=* | --datadir=* | --datadi=* | --datad=*)
|
---|
815 | datadir=$ac_optarg ;;
|
---|
816 |
|
---|
817 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
|
---|
818 | | --dataroo | --dataro | --datar)
|
---|
819 | ac_prev=datarootdir ;;
|
---|
820 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
|
---|
821 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
|
---|
822 | datarootdir=$ac_optarg ;;
|
---|
823 |
|
---|
824 | -disable-* | --disable-*)
|
---|
825 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
---|
826 | # Reject names that are not valid shell variable names.
|
---|
827 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
828 | as_fn_error $? "invalid feature name: $ac_useropt"
|
---|
829 | ac_useropt_orig=$ac_useropt
|
---|
830 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
831 | case $ac_user_opts in
|
---|
832 | *"
|
---|
833 | "enable_$ac_useropt"
|
---|
834 | "*) ;;
|
---|
835 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
|
---|
836 | ac_unrecognized_sep=', ';;
|
---|
837 | esac
|
---|
838 | eval enable_$ac_useropt=no ;;
|
---|
839 |
|
---|
840 | -docdir | --docdir | --docdi | --doc | --do)
|
---|
841 | ac_prev=docdir ;;
|
---|
842 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
|
---|
843 | docdir=$ac_optarg ;;
|
---|
844 |
|
---|
845 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
|
---|
846 | ac_prev=dvidir ;;
|
---|
847 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
|
---|
848 | dvidir=$ac_optarg ;;
|
---|
849 |
|
---|
850 | -enable-* | --enable-*)
|
---|
851 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
---|
852 | # Reject names that are not valid shell variable names.
|
---|
853 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
854 | as_fn_error $? "invalid feature name: $ac_useropt"
|
---|
855 | ac_useropt_orig=$ac_useropt
|
---|
856 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
857 | case $ac_user_opts in
|
---|
858 | *"
|
---|
859 | "enable_$ac_useropt"
|
---|
860 | "*) ;;
|
---|
861 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
|
---|
862 | ac_unrecognized_sep=', ';;
|
---|
863 | esac
|
---|
864 | eval enable_$ac_useropt=\$ac_optarg ;;
|
---|
865 |
|
---|
866 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
867 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
868 | | --exec | --exe | --ex)
|
---|
869 | ac_prev=exec_prefix ;;
|
---|
870 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
871 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
872 | | --exec=* | --exe=* | --ex=*)
|
---|
873 | exec_prefix=$ac_optarg ;;
|
---|
874 |
|
---|
875 | -gas | --gas | --ga | --g)
|
---|
876 | # Obsolete; use --with-gas.
|
---|
877 | with_gas=yes ;;
|
---|
878 |
|
---|
879 | -help | --help | --hel | --he | -h)
|
---|
880 | ac_init_help=long ;;
|
---|
881 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
---|
882 | ac_init_help=recursive ;;
|
---|
883 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
---|
884 | ac_init_help=short ;;
|
---|
885 |
|
---|
886 | -host | --host | --hos | --ho)
|
---|
887 | ac_prev=host_alias ;;
|
---|
888 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
889 | host_alias=$ac_optarg ;;
|
---|
890 |
|
---|
891 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
|
---|
892 | ac_prev=htmldir ;;
|
---|
893 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
|
---|
894 | | --ht=*)
|
---|
895 | htmldir=$ac_optarg ;;
|
---|
896 |
|
---|
897 | -includedir | --includedir | --includedi | --included | --include \
|
---|
898 | | --includ | --inclu | --incl | --inc)
|
---|
899 | ac_prev=includedir ;;
|
---|
900 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
901 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
902 | includedir=$ac_optarg ;;
|
---|
903 |
|
---|
904 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
905 | ac_prev=infodir ;;
|
---|
906 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
907 | infodir=$ac_optarg ;;
|
---|
908 |
|
---|
909 | -libdir | --libdir | --libdi | --libd)
|
---|
910 | ac_prev=libdir ;;
|
---|
911 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
912 | libdir=$ac_optarg ;;
|
---|
913 |
|
---|
914 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
915 | | --libexe | --libex | --libe)
|
---|
916 | ac_prev=libexecdir ;;
|
---|
917 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
918 | | --libexe=* | --libex=* | --libe=*)
|
---|
919 | libexecdir=$ac_optarg ;;
|
---|
920 |
|
---|
921 | -localedir | --localedir | --localedi | --localed | --locale)
|
---|
922 | ac_prev=localedir ;;
|
---|
923 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
|
---|
924 | localedir=$ac_optarg ;;
|
---|
925 |
|
---|
926 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
927 | | --localstate | --localstat | --localsta | --localst | --locals)
|
---|
928 | ac_prev=localstatedir ;;
|
---|
929 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
930 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
|
---|
931 | localstatedir=$ac_optarg ;;
|
---|
932 |
|
---|
933 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
934 | ac_prev=mandir ;;
|
---|
935 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
936 | mandir=$ac_optarg ;;
|
---|
937 |
|
---|
938 | -nfp | --nfp | --nf)
|
---|
939 | # Obsolete; use --without-fp.
|
---|
940 | with_fp=no ;;
|
---|
941 |
|
---|
942 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
943 | | --no-cr | --no-c | -n)
|
---|
944 | no_create=yes ;;
|
---|
945 |
|
---|
946 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
947 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
948 | no_recursion=yes ;;
|
---|
949 |
|
---|
950 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
951 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
952 | | --oldin | --oldi | --old | --ol | --o)
|
---|
953 | ac_prev=oldincludedir ;;
|
---|
954 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
955 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
956 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
957 | oldincludedir=$ac_optarg ;;
|
---|
958 |
|
---|
959 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
960 | ac_prev=prefix ;;
|
---|
961 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
962 | prefix=$ac_optarg ;;
|
---|
963 |
|
---|
964 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
965 | | --program-pre | --program-pr | --program-p)
|
---|
966 | ac_prev=program_prefix ;;
|
---|
967 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
968 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
969 | program_prefix=$ac_optarg ;;
|
---|
970 |
|
---|
971 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
972 | | --program-suf | --program-su | --program-s)
|
---|
973 | ac_prev=program_suffix ;;
|
---|
974 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
975 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
976 | program_suffix=$ac_optarg ;;
|
---|
977 |
|
---|
978 | -program-transform-name | --program-transform-name \
|
---|
979 | | --program-transform-nam | --program-transform-na \
|
---|
980 | | --program-transform-n | --program-transform- \
|
---|
981 | | --program-transform | --program-transfor \
|
---|
982 | | --program-transfo | --program-transf \
|
---|
983 | | --program-trans | --program-tran \
|
---|
984 | | --progr-tra | --program-tr | --program-t)
|
---|
985 | ac_prev=program_transform_name ;;
|
---|
986 | -program-transform-name=* | --program-transform-name=* \
|
---|
987 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
988 | | --program-transform-n=* | --program-transform-=* \
|
---|
989 | | --program-transform=* | --program-transfor=* \
|
---|
990 | | --program-transfo=* | --program-transf=* \
|
---|
991 | | --program-trans=* | --program-tran=* \
|
---|
992 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
993 | program_transform_name=$ac_optarg ;;
|
---|
994 |
|
---|
995 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
|
---|
996 | ac_prev=pdfdir ;;
|
---|
997 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
|
---|
998 | pdfdir=$ac_optarg ;;
|
---|
999 |
|
---|
1000 | -psdir | --psdir | --psdi | --psd | --ps)
|
---|
1001 | ac_prev=psdir ;;
|
---|
1002 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
|
---|
1003 | psdir=$ac_optarg ;;
|
---|
1004 |
|
---|
1005 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
1006 | | -silent | --silent | --silen | --sile | --sil)
|
---|
1007 | silent=yes ;;
|
---|
1008 |
|
---|
1009 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
1010 | ac_prev=sbindir ;;
|
---|
1011 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
1012 | | --sbi=* | --sb=*)
|
---|
1013 | sbindir=$ac_optarg ;;
|
---|
1014 |
|
---|
1015 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
1016 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
1017 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
1018 | | --sha | --sh)
|
---|
1019 | ac_prev=sharedstatedir ;;
|
---|
1020 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
1021 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
1022 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
1023 | | --sha=* | --sh=*)
|
---|
1024 | sharedstatedir=$ac_optarg ;;
|
---|
1025 |
|
---|
1026 | -site | --site | --sit)
|
---|
1027 | ac_prev=site ;;
|
---|
1028 | -site=* | --site=* | --sit=*)
|
---|
1029 | site=$ac_optarg ;;
|
---|
1030 |
|
---|
1031 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
1032 | ac_prev=srcdir ;;
|
---|
1033 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
1034 | srcdir=$ac_optarg ;;
|
---|
1035 |
|
---|
1036 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
1037 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
1038 | ac_prev=sysconfdir ;;
|
---|
1039 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
1040 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
1041 | sysconfdir=$ac_optarg ;;
|
---|
1042 |
|
---|
1043 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
1044 | ac_prev=target_alias ;;
|
---|
1045 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
1046 | target_alias=$ac_optarg ;;
|
---|
1047 |
|
---|
1048 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
1049 | verbose=yes ;;
|
---|
1050 |
|
---|
1051 | -version | --version | --versio | --versi | --vers | -V)
|
---|
1052 | ac_init_version=: ;;
|
---|
1053 |
|
---|
1054 | -with-* | --with-*)
|
---|
1055 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
---|
1056 | # Reject names that are not valid shell variable names.
|
---|
1057 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
1058 | as_fn_error $? "invalid package name: $ac_useropt"
|
---|
1059 | ac_useropt_orig=$ac_useropt
|
---|
1060 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
1061 | case $ac_user_opts in
|
---|
1062 | *"
|
---|
1063 | "with_$ac_useropt"
|
---|
1064 | "*) ;;
|
---|
1065 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
|
---|
1066 | ac_unrecognized_sep=', ';;
|
---|
1067 | esac
|
---|
1068 | eval with_$ac_useropt=\$ac_optarg ;;
|
---|
1069 |
|
---|
1070 | -without-* | --without-*)
|
---|
1071 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
---|
1072 | # Reject names that are not valid shell variable names.
|
---|
1073 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
1074 | as_fn_error $? "invalid package name: $ac_useropt"
|
---|
1075 | ac_useropt_orig=$ac_useropt
|
---|
1076 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
1077 | case $ac_user_opts in
|
---|
1078 | *"
|
---|
1079 | "with_$ac_useropt"
|
---|
1080 | "*) ;;
|
---|
1081 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
|
---|
1082 | ac_unrecognized_sep=', ';;
|
---|
1083 | esac
|
---|
1084 | eval with_$ac_useropt=no ;;
|
---|
1085 |
|
---|
1086 | --x)
|
---|
1087 | # Obsolete; use --with-x.
|
---|
1088 | with_x=yes ;;
|
---|
1089 |
|
---|
1090 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
1091 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
1092 | ac_prev=x_includes ;;
|
---|
1093 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
1094 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
1095 | x_includes=$ac_optarg ;;
|
---|
1096 |
|
---|
1097 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
1098 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
1099 | ac_prev=x_libraries ;;
|
---|
1100 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
1101 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
1102 | x_libraries=$ac_optarg ;;
|
---|
1103 |
|
---|
1104 | -*) as_fn_error $? "unrecognized option: \`$ac_option'
|
---|
1105 | Try \`$0 --help' for more information"
|
---|
1106 | ;;
|
---|
1107 |
|
---|
1108 | *=*)
|
---|
1109 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
---|
1110 | # Reject names that are not valid shell variable names.
|
---|
1111 | case $ac_envvar in #(
|
---|
1112 | '' | [0-9]* | *[!_$as_cr_alnum]* )
|
---|
1113 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
|
---|
1114 | esac
|
---|
1115 | eval $ac_envvar=\$ac_optarg
|
---|
1116 | export $ac_envvar ;;
|
---|
1117 |
|
---|
1118 | *)
|
---|
1119 | # FIXME: should be removed in autoconf 3.0.
|
---|
1120 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
---|
1121 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
1122 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
---|
1123 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
|
---|
1124 | ;;
|
---|
1125 |
|
---|
1126 | esac
|
---|
1127 | done
|
---|
1128 |
|
---|
1129 | if test -n "$ac_prev"; then
|
---|
1130 | ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
---|
1131 | as_fn_error $? "missing argument to $ac_option"
|
---|
1132 | fi
|
---|
1133 |
|
---|
1134 | if test -n "$ac_unrecognized_opts"; then
|
---|
1135 | case $enable_option_checking in
|
---|
1136 | no) ;;
|
---|
1137 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
|
---|
1138 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
|
---|
1139 | esac
|
---|
1140 | fi
|
---|
1141 |
|
---|
1142 | # Check all directory arguments for consistency.
|
---|
1143 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
|
---|
1144 | datadir sysconfdir sharedstatedir localstatedir includedir \
|
---|
1145 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
|
---|
1146 | libdir localedir mandir
|
---|
1147 | do
|
---|
1148 | eval ac_val=\$$ac_var
|
---|
1149 | # Remove trailing slashes.
|
---|
1150 | case $ac_val in
|
---|
1151 | */ )
|
---|
1152 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
|
---|
1153 | eval $ac_var=\$ac_val;;
|
---|
1154 | esac
|
---|
1155 | # Be sure to have absolute directory names.
|
---|
1156 | case $ac_val in
|
---|
1157 | [\\/$]* | ?:[\\/]* ) continue;;
|
---|
1158 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
|
---|
1159 | esac
|
---|
1160 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
|
---|
1161 | done
|
---|
1162 |
|
---|
1163 | # There might be people who depend on the old broken behavior: `$host'
|
---|
1164 | # used to hold the argument of --host etc.
|
---|
1165 | # FIXME: To remove some day.
|
---|
1166 | build=$build_alias
|
---|
1167 | host=$host_alias
|
---|
1168 | target=$target_alias
|
---|
1169 |
|
---|
1170 | # FIXME: To remove some day.
|
---|
1171 | if test "x$host_alias" != x; then
|
---|
1172 | if test "x$build_alias" = x; then
|
---|
1173 | cross_compiling=maybe
|
---|
1174 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
|
---|
1175 | If a cross compiler is detected then cross compile mode will be used" >&2
|
---|
1176 | elif test "x$build_alias" != "x$host_alias"; then
|
---|
1177 | cross_compiling=yes
|
---|
1178 | fi
|
---|
1179 | fi
|
---|
1180 |
|
---|
1181 | ac_tool_prefix=
|
---|
1182 | test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
---|
1183 |
|
---|
1184 | test "$silent" = yes && exec 6>/dev/null
|
---|
1185 |
|
---|
1186 |
|
---|
1187 | ac_pwd=`pwd` && test -n "$ac_pwd" &&
|
---|
1188 | ac_ls_di=`ls -di .` &&
|
---|
1189 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
|
---|
1190 | as_fn_error $? "working directory cannot be determined"
|
---|
1191 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
|
---|
1192 | as_fn_error $? "pwd does not report name of working directory"
|
---|
1193 |
|
---|
1194 |
|
---|
1195 | # Find the source files, if location was not specified.
|
---|
1196 | if test -z "$srcdir"; then
|
---|
1197 | ac_srcdir_defaulted=yes
|
---|
1198 | # Try the directory containing this script, then the parent directory.
|
---|
1199 | ac_confdir=`$as_dirname -- "$as_myself" ||
|
---|
1200 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
1201 | X"$as_myself" : 'X\(//\)[^/]' \| \
|
---|
1202 | X"$as_myself" : 'X\(//\)$' \| \
|
---|
1203 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
1204 | $as_echo X"$as_myself" |
|
---|
1205 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
1206 | s//\1/
|
---|
1207 | q
|
---|
1208 | }
|
---|
1209 | /^X\(\/\/\)[^/].*/{
|
---|
1210 | s//\1/
|
---|
1211 | q
|
---|
1212 | }
|
---|
1213 | /^X\(\/\/\)$/{
|
---|
1214 | s//\1/
|
---|
1215 | q
|
---|
1216 | }
|
---|
1217 | /^X\(\/\).*/{
|
---|
1218 | s//\1/
|
---|
1219 | q
|
---|
1220 | }
|
---|
1221 | s/.*/./; q'`
|
---|
1222 | srcdir=$ac_confdir
|
---|
1223 | if test ! -r "$srcdir/$ac_unique_file"; then
|
---|
1224 | srcdir=..
|
---|
1225 | fi
|
---|
1226 | else
|
---|
1227 | ac_srcdir_defaulted=no
|
---|
1228 | fi
|
---|
1229 | if test ! -r "$srcdir/$ac_unique_file"; then
|
---|
1230 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
|
---|
1231 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
|
---|
1232 | fi
|
---|
1233 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
|
---|
1234 | ac_abs_confdir=`(
|
---|
1235 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
|
---|
1236 | pwd)`
|
---|
1237 | # When building in place, set srcdir=.
|
---|
1238 | if test "$ac_abs_confdir" = "$ac_pwd"; then
|
---|
1239 | srcdir=.
|
---|
1240 | fi
|
---|
1241 | # Remove unnecessary trailing slashes from srcdir.
|
---|
1242 | # Double slashes in file names in object file debugging info
|
---|
1243 | # mess up M-x gdb in Emacs.
|
---|
1244 | case $srcdir in
|
---|
1245 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
|
---|
1246 | esac
|
---|
1247 | for ac_var in $ac_precious_vars; do
|
---|
1248 | eval ac_env_${ac_var}_set=\${${ac_var}+set}
|
---|
1249 | eval ac_env_${ac_var}_value=\$${ac_var}
|
---|
1250 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
|
---|
1251 | eval ac_cv_env_${ac_var}_value=\$${ac_var}
|
---|
1252 | done
|
---|
1253 |
|
---|
1254 | #
|
---|
1255 | # Report the --help message.
|
---|
1256 | #
|
---|
1257 | if test "$ac_init_help" = "long"; then
|
---|
1258 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
1259 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
1260 | cat <<_ACEOF
|
---|
1261 | \`configure' configures this package to adapt to many kinds of systems.
|
---|
1262 |
|
---|
1263 | Usage: $0 [OPTION]... [VAR=VALUE]...
|
---|
1264 |
|
---|
1265 | To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
---|
1266 | VAR=VALUE. See below for descriptions of some of the useful variables.
|
---|
1267 |
|
---|
1268 | Defaults for the options are specified in brackets.
|
---|
1269 |
|
---|
1270 | Configuration:
|
---|
1271 | -h, --help display this help and exit
|
---|
1272 | --help=short display options specific to this package
|
---|
1273 | --help=recursive display the short help of all the included packages
|
---|
1274 | -V, --version display version information and exit
|
---|
1275 | -q, --quiet, --silent do not print \`checking ...' messages
|
---|
1276 | --cache-file=FILE cache test results in FILE [disabled]
|
---|
1277 | -C, --config-cache alias for \`--cache-file=config.cache'
|
---|
1278 | -n, --no-create do not create output files
|
---|
1279 | --srcdir=DIR find the sources in DIR [configure dir or \`..']
|
---|
1280 |
|
---|
1281 | Installation directories:
|
---|
1282 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
1283 | [$ac_default_prefix]
|
---|
1284 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
1285 | [PREFIX]
|
---|
1286 |
|
---|
1287 | By default, \`make install' will install all the files in
|
---|
1288 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
---|
1289 | an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
---|
1290 | for instance \`--prefix=\$HOME'.
|
---|
1291 |
|
---|
1292 | For better control, use the options below.
|
---|
1293 |
|
---|
1294 | Fine tuning of the installation directories:
|
---|
1295 | --bindir=DIR user executables [EPREFIX/bin]
|
---|
1296 | --sbindir=DIR system admin executables [EPREFIX/sbin]
|
---|
1297 | --libexecdir=DIR program executables [EPREFIX/libexec]
|
---|
1298 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
---|
1299 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
---|
1300 | --localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
---|
1301 | --libdir=DIR object code libraries [EPREFIX/lib]
|
---|
1302 | --includedir=DIR C header files [PREFIX/include]
|
---|
1303 | --oldincludedir=DIR C header files for non-gcc [/usr/include]
|
---|
1304 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
|
---|
1305 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
|
---|
1306 | --infodir=DIR info documentation [DATAROOTDIR/info]
|
---|
1307 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
|
---|
1308 | --mandir=DIR man documentation [DATAROOTDIR/man]
|
---|
1309 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
|
---|
1310 | --htmldir=DIR html documentation [DOCDIR]
|
---|
1311 | --dvidir=DIR dvi documentation [DOCDIR]
|
---|
1312 | --pdfdir=DIR pdf documentation [DOCDIR]
|
---|
1313 | --psdir=DIR ps documentation [DOCDIR]
|
---|
1314 | _ACEOF
|
---|
1315 |
|
---|
1316 | cat <<\_ACEOF
|
---|
1317 |
|
---|
1318 | Program names:
|
---|
1319 | --program-prefix=PREFIX prepend PREFIX to installed program names
|
---|
1320 | --program-suffix=SUFFIX append SUFFIX to installed program names
|
---|
1321 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names
|
---|
1322 |
|
---|
1323 | System types:
|
---|
1324 | --build=BUILD configure for building on BUILD [guessed]
|
---|
1325 | --host=HOST cross-compile to build programs to run on HOST [BUILD]
|
---|
1326 | --target=TARGET configure for building compilers for TARGET [HOST]
|
---|
1327 | _ACEOF
|
---|
1328 | fi
|
---|
1329 |
|
---|
1330 | if test -n "$ac_init_help"; then
|
---|
1331 |
|
---|
1332 | cat <<\_ACEOF
|
---|
1333 |
|
---|
1334 | Optional Features:
|
---|
1335 | --disable-option-checking ignore unrecognized --enable/--with options
|
---|
1336 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
---|
1337 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
---|
1338 | --disable-java Disable Java compilation
|
---|
1339 | --disable-accentfold Disable Accent Folding for MGPP
|
---|
1340 | --enable-override-longlong
|
---|
1341 | overide use of long long with GCC
|
---|
1342 |
|
---|
1343 | Optional Packages:
|
---|
1344 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
1345 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
1346 | --with-unac=dir Use local unac library and headers
|
---|
1347 | --with-dmalloc use dmalloc, as in
|
---|
1348 | ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz
|
---|
1349 | --with-regex use older regex in lieu of GNU rx for matching
|
---|
1350 | --with-gnu-readline compile with GNU readline support
|
---|
1351 |
|
---|
1352 | Some influential environment variables:
|
---|
1353 | CXX C++ compiler command
|
---|
1354 | CXXFLAGS C++ compiler flags
|
---|
1355 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
---|
1356 | nonstandard directory <lib dir>
|
---|
1357 | LIBS libraries to pass to the linker, e.g. -l<library>
|
---|
1358 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
|
---|
1359 | you have headers in a nonstandard directory <include dir>
|
---|
1360 | YACC The `Yet Another Compiler Compiler' implementation to use.
|
---|
1361 | Defaults to the first program found out of: `bison -y', `byacc',
|
---|
1362 | `yacc'.
|
---|
1363 | YFLAGS The list of arguments that will be passed by default to $YACC.
|
---|
1364 | This script will default YFLAGS to the empty string to avoid a
|
---|
1365 | default value of `-d' given by some make applications.
|
---|
1366 | CC C compiler command
|
---|
1367 | CFLAGS C compiler flags
|
---|
1368 | CPP C preprocessor
|
---|
1369 |
|
---|
1370 | Use these variables to override the choices made by `configure' or to help
|
---|
1371 | it to find libraries and programs with nonstandard names/locations.
|
---|
1372 |
|
---|
1373 | Report bugs to the package provider.
|
---|
1374 | _ACEOF
|
---|
1375 | ac_status=$?
|
---|
1376 | fi
|
---|
1377 |
|
---|
1378 | if test "$ac_init_help" = "recursive"; then
|
---|
1379 | # If there are subdirs, report their specific --help.
|
---|
1380 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
---|
1381 | test -d "$ac_dir" ||
|
---|
1382 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
|
---|
1383 | continue
|
---|
1384 | ac_builddir=.
|
---|
1385 |
|
---|
1386 | case "$ac_dir" in
|
---|
1387 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
1388 | *)
|
---|
1389 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
|
---|
1390 | # A ".." for each directory in $ac_dir_suffix.
|
---|
1391 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
---|
1392 | case $ac_top_builddir_sub in
|
---|
1393 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
1394 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
1395 | esac ;;
|
---|
1396 | esac
|
---|
1397 | ac_abs_top_builddir=$ac_pwd
|
---|
1398 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
1399 | # for backward compatibility:
|
---|
1400 | ac_top_builddir=$ac_top_build_prefix
|
---|
1401 |
|
---|
1402 | case $srcdir in
|
---|
1403 | .) # We are building in place.
|
---|
1404 | ac_srcdir=.
|
---|
1405 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
1406 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
1407 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
1408 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
1409 | ac_top_srcdir=$srcdir
|
---|
1410 | ac_abs_top_srcdir=$srcdir ;;
|
---|
1411 | *) # Relative name.
|
---|
1412 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
1413 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
1414 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
1415 | esac
|
---|
1416 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
1417 |
|
---|
1418 | cd "$ac_dir" || { ac_status=$?; continue; }
|
---|
1419 | # Check for guested configure.
|
---|
1420 | if test -f "$ac_srcdir/configure.gnu"; then
|
---|
1421 | echo &&
|
---|
1422 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive
|
---|
1423 | elif test -f "$ac_srcdir/configure"; then
|
---|
1424 | echo &&
|
---|
1425 | $SHELL "$ac_srcdir/configure" --help=recursive
|
---|
1426 | else
|
---|
1427 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
---|
1428 | fi || ac_status=$?
|
---|
1429 | cd "$ac_pwd" || { ac_status=$?; break; }
|
---|
1430 | done
|
---|
1431 | fi
|
---|
1432 |
|
---|
1433 | test -n "$ac_init_help" && exit $ac_status
|
---|
1434 | if $ac_init_version; then
|
---|
1435 | cat <<\_ACEOF
|
---|
1436 | configure
|
---|
1437 | generated by GNU Autoconf 2.68
|
---|
1438 |
|
---|
1439 | Copyright (C) 2010 Free Software Foundation, Inc.
|
---|
1440 | This configure script is free software; the Free Software Foundation
|
---|
1441 | gives unlimited permission to copy, distribute and modify it.
|
---|
1442 | _ACEOF
|
---|
1443 | exit
|
---|
1444 | fi
|
---|
1445 |
|
---|
1446 | ## ------------------------ ##
|
---|
1447 | ## Autoconf initialization. ##
|
---|
1448 | ## ------------------------ ##
|
---|
1449 |
|
---|
1450 | # ac_fn_cxx_try_compile LINENO
|
---|
1451 | # ----------------------------
|
---|
1452 | # Try to compile conftest.$ac_ext, and return whether this succeeded.
|
---|
1453 | ac_fn_cxx_try_compile ()
|
---|
1454 | {
|
---|
1455 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1456 | rm -f conftest.$ac_objext
|
---|
1457 | if { { ac_try="$ac_compile"
|
---|
1458 | case "(($ac_try" in
|
---|
1459 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1460 | *) ac_try_echo=$ac_try;;
|
---|
1461 | esac
|
---|
1462 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1463 | $as_echo "$ac_try_echo"; } >&5
|
---|
1464 | (eval "$ac_compile") 2>conftest.err
|
---|
1465 | ac_status=$?
|
---|
1466 | if test -s conftest.err; then
|
---|
1467 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
1468 | cat conftest.er1 >&5
|
---|
1469 | mv -f conftest.er1 conftest.err
|
---|
1470 | fi
|
---|
1471 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1472 | test $ac_status = 0; } && {
|
---|
1473 | test -z "$ac_cxx_werror_flag" ||
|
---|
1474 | test ! -s conftest.err
|
---|
1475 | } && test -s conftest.$ac_objext; then :
|
---|
1476 | ac_retval=0
|
---|
1477 | else
|
---|
1478 | $as_echo "$as_me: failed program was:" >&5
|
---|
1479 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1480 |
|
---|
1481 | ac_retval=1
|
---|
1482 | fi
|
---|
1483 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1484 | as_fn_set_status $ac_retval
|
---|
1485 |
|
---|
1486 | } # ac_fn_cxx_try_compile
|
---|
1487 |
|
---|
1488 | # ac_fn_c_try_compile LINENO
|
---|
1489 | # --------------------------
|
---|
1490 | # Try to compile conftest.$ac_ext, and return whether this succeeded.
|
---|
1491 | ac_fn_c_try_compile ()
|
---|
1492 | {
|
---|
1493 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1494 | rm -f conftest.$ac_objext
|
---|
1495 | if { { ac_try="$ac_compile"
|
---|
1496 | case "(($ac_try" in
|
---|
1497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1498 | *) ac_try_echo=$ac_try;;
|
---|
1499 | esac
|
---|
1500 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1501 | $as_echo "$ac_try_echo"; } >&5
|
---|
1502 | (eval "$ac_compile") 2>conftest.err
|
---|
1503 | ac_status=$?
|
---|
1504 | if test -s conftest.err; then
|
---|
1505 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
1506 | cat conftest.er1 >&5
|
---|
1507 | mv -f conftest.er1 conftest.err
|
---|
1508 | fi
|
---|
1509 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1510 | test $ac_status = 0; } && {
|
---|
1511 | test -z "$ac_c_werror_flag" ||
|
---|
1512 | test ! -s conftest.err
|
---|
1513 | } && test -s conftest.$ac_objext; then :
|
---|
1514 | ac_retval=0
|
---|
1515 | else
|
---|
1516 | $as_echo "$as_me: failed program was:" >&5
|
---|
1517 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1518 |
|
---|
1519 | ac_retval=1
|
---|
1520 | fi
|
---|
1521 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1522 | as_fn_set_status $ac_retval
|
---|
1523 |
|
---|
1524 | } # ac_fn_c_try_compile
|
---|
1525 |
|
---|
1526 | # ac_fn_c_try_cpp LINENO
|
---|
1527 | # ----------------------
|
---|
1528 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
|
---|
1529 | ac_fn_c_try_cpp ()
|
---|
1530 | {
|
---|
1531 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1532 | if { { ac_try="$ac_cpp conftest.$ac_ext"
|
---|
1533 | case "(($ac_try" in
|
---|
1534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1535 | *) ac_try_echo=$ac_try;;
|
---|
1536 | esac
|
---|
1537 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1538 | $as_echo "$ac_try_echo"; } >&5
|
---|
1539 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
|
---|
1540 | ac_status=$?
|
---|
1541 | if test -s conftest.err; then
|
---|
1542 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
1543 | cat conftest.er1 >&5
|
---|
1544 | mv -f conftest.er1 conftest.err
|
---|
1545 | fi
|
---|
1546 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1547 | test $ac_status = 0; } > conftest.i && {
|
---|
1548 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
1549 | test ! -s conftest.err
|
---|
1550 | }; then :
|
---|
1551 | ac_retval=0
|
---|
1552 | else
|
---|
1553 | $as_echo "$as_me: failed program was:" >&5
|
---|
1554 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1555 |
|
---|
1556 | ac_retval=1
|
---|
1557 | fi
|
---|
1558 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1559 | as_fn_set_status $ac_retval
|
---|
1560 |
|
---|
1561 | } # ac_fn_c_try_cpp
|
---|
1562 |
|
---|
1563 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
|
---|
1564 | # -------------------------------------------------------
|
---|
1565 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using
|
---|
1566 | # the include files in INCLUDES and setting the cache variable VAR
|
---|
1567 | # accordingly.
|
---|
1568 | ac_fn_c_check_header_mongrel ()
|
---|
1569 | {
|
---|
1570 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1571 | if eval \${$3+:} false; then :
|
---|
1572 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1573 | $as_echo_n "checking for $2... " >&6; }
|
---|
1574 | if eval \${$3+:} false; then :
|
---|
1575 | $as_echo_n "(cached) " >&6
|
---|
1576 | fi
|
---|
1577 | eval ac_res=\$$3
|
---|
1578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1579 | $as_echo "$ac_res" >&6; }
|
---|
1580 | else
|
---|
1581 | # Is the header compilable?
|
---|
1582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
|
---|
1583 | $as_echo_n "checking $2 usability... " >&6; }
|
---|
1584 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1585 | /* end confdefs.h. */
|
---|
1586 | $4
|
---|
1587 | #include <$2>
|
---|
1588 | _ACEOF
|
---|
1589 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1590 | ac_header_compiler=yes
|
---|
1591 | else
|
---|
1592 | ac_header_compiler=no
|
---|
1593 | fi
|
---|
1594 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
|
---|
1596 | $as_echo "$ac_header_compiler" >&6; }
|
---|
1597 |
|
---|
1598 | # Is the header present?
|
---|
1599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
|
---|
1600 | $as_echo_n "checking $2 presence... " >&6; }
|
---|
1601 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1602 | /* end confdefs.h. */
|
---|
1603 | #include <$2>
|
---|
1604 | _ACEOF
|
---|
1605 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
1606 | ac_header_preproc=yes
|
---|
1607 | else
|
---|
1608 | ac_header_preproc=no
|
---|
1609 | fi
|
---|
1610 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
1611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
|
---|
1612 | $as_echo "$ac_header_preproc" >&6; }
|
---|
1613 |
|
---|
1614 | # So? What about this header?
|
---|
1615 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
|
---|
1616 | yes:no: )
|
---|
1617 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
1618 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
1619 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
|
---|
1620 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
|
---|
1621 | ;;
|
---|
1622 | no:yes:* )
|
---|
1623 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
|
---|
1624 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
|
---|
1625 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
|
---|
1626 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
|
---|
1627 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
|
---|
1628 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
|
---|
1629 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
|
---|
1630 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
1631 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
|
---|
1632 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
|
---|
1633 | ;;
|
---|
1634 | esac
|
---|
1635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1636 | $as_echo_n "checking for $2... " >&6; }
|
---|
1637 | if eval \${$3+:} false; then :
|
---|
1638 | $as_echo_n "(cached) " >&6
|
---|
1639 | else
|
---|
1640 | eval "$3=\$ac_header_compiler"
|
---|
1641 | fi
|
---|
1642 | eval ac_res=\$$3
|
---|
1643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1644 | $as_echo "$ac_res" >&6; }
|
---|
1645 | fi
|
---|
1646 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1647 |
|
---|
1648 | } # ac_fn_c_check_header_mongrel
|
---|
1649 |
|
---|
1650 | # ac_fn_c_try_run LINENO
|
---|
1651 | # ----------------------
|
---|
1652 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
|
---|
1653 | # that executables *can* be run.
|
---|
1654 | ac_fn_c_try_run ()
|
---|
1655 | {
|
---|
1656 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1657 | if { { ac_try="$ac_link"
|
---|
1658 | case "(($ac_try" in
|
---|
1659 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1660 | *) ac_try_echo=$ac_try;;
|
---|
1661 | esac
|
---|
1662 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1663 | $as_echo "$ac_try_echo"; } >&5
|
---|
1664 | (eval "$ac_link") 2>&5
|
---|
1665 | ac_status=$?
|
---|
1666 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1667 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
|
---|
1668 | { { case "(($ac_try" in
|
---|
1669 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1670 | *) ac_try_echo=$ac_try;;
|
---|
1671 | esac
|
---|
1672 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1673 | $as_echo "$ac_try_echo"; } >&5
|
---|
1674 | (eval "$ac_try") 2>&5
|
---|
1675 | ac_status=$?
|
---|
1676 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1677 | test $ac_status = 0; }; }; then :
|
---|
1678 | ac_retval=0
|
---|
1679 | else
|
---|
1680 | $as_echo "$as_me: program exited with status $ac_status" >&5
|
---|
1681 | $as_echo "$as_me: failed program was:" >&5
|
---|
1682 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1683 |
|
---|
1684 | ac_retval=$ac_status
|
---|
1685 | fi
|
---|
1686 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
---|
1687 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1688 | as_fn_set_status $ac_retval
|
---|
1689 |
|
---|
1690 | } # ac_fn_c_try_run
|
---|
1691 |
|
---|
1692 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
|
---|
1693 | # -------------------------------------------------------
|
---|
1694 | # Tests whether HEADER exists and can be compiled using the include files in
|
---|
1695 | # INCLUDES, setting the cache variable VAR accordingly.
|
---|
1696 | ac_fn_c_check_header_compile ()
|
---|
1697 | {
|
---|
1698 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1700 | $as_echo_n "checking for $2... " >&6; }
|
---|
1701 | if eval \${$3+:} false; then :
|
---|
1702 | $as_echo_n "(cached) " >&6
|
---|
1703 | else
|
---|
1704 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1705 | /* end confdefs.h. */
|
---|
1706 | $4
|
---|
1707 | #include <$2>
|
---|
1708 | _ACEOF
|
---|
1709 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1710 | eval "$3=yes"
|
---|
1711 | else
|
---|
1712 | eval "$3=no"
|
---|
1713 | fi
|
---|
1714 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1715 | fi
|
---|
1716 | eval ac_res=\$$3
|
---|
1717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1718 | $as_echo "$ac_res" >&6; }
|
---|
1719 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1720 |
|
---|
1721 | } # ac_fn_c_check_header_compile
|
---|
1722 |
|
---|
1723 | # ac_fn_c_try_link LINENO
|
---|
1724 | # -----------------------
|
---|
1725 | # Try to link conftest.$ac_ext, and return whether this succeeded.
|
---|
1726 | ac_fn_c_try_link ()
|
---|
1727 | {
|
---|
1728 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1729 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
1730 | if { { ac_try="$ac_link"
|
---|
1731 | case "(($ac_try" in
|
---|
1732 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1733 | *) ac_try_echo=$ac_try;;
|
---|
1734 | esac
|
---|
1735 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1736 | $as_echo "$ac_try_echo"; } >&5
|
---|
1737 | (eval "$ac_link") 2>conftest.err
|
---|
1738 | ac_status=$?
|
---|
1739 | if test -s conftest.err; then
|
---|
1740 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
1741 | cat conftest.er1 >&5
|
---|
1742 | mv -f conftest.er1 conftest.err
|
---|
1743 | fi
|
---|
1744 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1745 | test $ac_status = 0; } && {
|
---|
1746 | test -z "$ac_c_werror_flag" ||
|
---|
1747 | test ! -s conftest.err
|
---|
1748 | } && test -s conftest$ac_exeext && {
|
---|
1749 | test "$cross_compiling" = yes ||
|
---|
1750 | $as_test_x conftest$ac_exeext
|
---|
1751 | }; then :
|
---|
1752 | ac_retval=0
|
---|
1753 | else
|
---|
1754 | $as_echo "$as_me: failed program was:" >&5
|
---|
1755 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1756 |
|
---|
1757 | ac_retval=1
|
---|
1758 | fi
|
---|
1759 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
|
---|
1760 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
|
---|
1761 | # interfere with the next link command; also delete a directory that is
|
---|
1762 | # left behind by Apple's compiler. We do this before executing the actions.
|
---|
1763 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
---|
1764 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1765 | as_fn_set_status $ac_retval
|
---|
1766 |
|
---|
1767 | } # ac_fn_c_try_link
|
---|
1768 |
|
---|
1769 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
|
---|
1770 | # -------------------------------------------
|
---|
1771 | # Tests whether TYPE exists after having included INCLUDES, setting cache
|
---|
1772 | # variable VAR accordingly.
|
---|
1773 | ac_fn_c_check_type ()
|
---|
1774 | {
|
---|
1775 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1777 | $as_echo_n "checking for $2... " >&6; }
|
---|
1778 | if eval \${$3+:} false; then :
|
---|
1779 | $as_echo_n "(cached) " >&6
|
---|
1780 | else
|
---|
1781 | eval "$3=no"
|
---|
1782 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1783 | /* end confdefs.h. */
|
---|
1784 | $4
|
---|
1785 | int
|
---|
1786 | main ()
|
---|
1787 | {
|
---|
1788 | if (sizeof ($2))
|
---|
1789 | return 0;
|
---|
1790 | ;
|
---|
1791 | return 0;
|
---|
1792 | }
|
---|
1793 | _ACEOF
|
---|
1794 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1795 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1796 | /* end confdefs.h. */
|
---|
1797 | $4
|
---|
1798 | int
|
---|
1799 | main ()
|
---|
1800 | {
|
---|
1801 | if (sizeof (($2)))
|
---|
1802 | return 0;
|
---|
1803 | ;
|
---|
1804 | return 0;
|
---|
1805 | }
|
---|
1806 | _ACEOF
|
---|
1807 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1808 |
|
---|
1809 | else
|
---|
1810 | eval "$3=yes"
|
---|
1811 | fi
|
---|
1812 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1813 | fi
|
---|
1814 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1815 | fi
|
---|
1816 | eval ac_res=\$$3
|
---|
1817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1818 | $as_echo "$ac_res" >&6; }
|
---|
1819 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1820 |
|
---|
1821 | } # ac_fn_c_check_type
|
---|
1822 |
|
---|
1823 | # ac_fn_c_check_func LINENO FUNC VAR
|
---|
1824 | # ----------------------------------
|
---|
1825 | # Tests whether FUNC exists, setting the cache variable VAR accordingly
|
---|
1826 | ac_fn_c_check_func ()
|
---|
1827 | {
|
---|
1828 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1830 | $as_echo_n "checking for $2... " >&6; }
|
---|
1831 | if eval \${$3+:} false; then :
|
---|
1832 | $as_echo_n "(cached) " >&6
|
---|
1833 | else
|
---|
1834 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1835 | /* end confdefs.h. */
|
---|
1836 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
|
---|
1837 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
1838 | #define $2 innocuous_$2
|
---|
1839 |
|
---|
1840 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
1841 | which can conflict with char $2 (); below.
|
---|
1842 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
1843 | <limits.h> exists even on freestanding compilers. */
|
---|
1844 |
|
---|
1845 | #ifdef __STDC__
|
---|
1846 | # include <limits.h>
|
---|
1847 | #else
|
---|
1848 | # include <assert.h>
|
---|
1849 | #endif
|
---|
1850 |
|
---|
1851 | #undef $2
|
---|
1852 |
|
---|
1853 | /* Override any GCC internal prototype to avoid an error.
|
---|
1854 | Use char because int might match the return type of a GCC
|
---|
1855 | builtin and then its argument prototype would still apply. */
|
---|
1856 | #ifdef __cplusplus
|
---|
1857 | extern "C"
|
---|
1858 | #endif
|
---|
1859 | char $2 ();
|
---|
1860 | /* The GNU C library defines this for functions which it implements
|
---|
1861 | to always fail with ENOSYS. Some functions are actually named
|
---|
1862 | something starting with __ and the normal name is an alias. */
|
---|
1863 | #if defined __stub_$2 || defined __stub___$2
|
---|
1864 | choke me
|
---|
1865 | #endif
|
---|
1866 |
|
---|
1867 | int
|
---|
1868 | main ()
|
---|
1869 | {
|
---|
1870 | return $2 ();
|
---|
1871 | ;
|
---|
1872 | return 0;
|
---|
1873 | }
|
---|
1874 | _ACEOF
|
---|
1875 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
1876 | eval "$3=yes"
|
---|
1877 | else
|
---|
1878 | eval "$3=no"
|
---|
1879 | fi
|
---|
1880 | rm -f core conftest.err conftest.$ac_objext \
|
---|
1881 | conftest$ac_exeext conftest.$ac_ext
|
---|
1882 | fi
|
---|
1883 | eval ac_res=\$$3
|
---|
1884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1885 | $as_echo "$ac_res" >&6; }
|
---|
1886 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1887 |
|
---|
1888 | } # ac_fn_c_check_func
|
---|
1889 |
|
---|
1890 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
|
---|
1891 | # --------------------------------------------
|
---|
1892 | # Tries to find the compile-time value of EXPR in a program that includes
|
---|
1893 | # INCLUDES, setting VAR accordingly. Returns whether the value could be
|
---|
1894 | # computed
|
---|
1895 | ac_fn_c_compute_int ()
|
---|
1896 | {
|
---|
1897 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1898 | if test "$cross_compiling" = yes; then
|
---|
1899 | # Depending upon the size, compute the lo and hi bounds.
|
---|
1900 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1901 | /* end confdefs.h. */
|
---|
1902 | $4
|
---|
1903 | int
|
---|
1904 | main ()
|
---|
1905 | {
|
---|
1906 | static int test_array [1 - 2 * !(($2) >= 0)];
|
---|
1907 | test_array [0] = 0
|
---|
1908 |
|
---|
1909 | ;
|
---|
1910 | return 0;
|
---|
1911 | }
|
---|
1912 | _ACEOF
|
---|
1913 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1914 | ac_lo=0 ac_mid=0
|
---|
1915 | while :; do
|
---|
1916 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1917 | /* end confdefs.h. */
|
---|
1918 | $4
|
---|
1919 | int
|
---|
1920 | main ()
|
---|
1921 | {
|
---|
1922 | static int test_array [1 - 2 * !(($2) <= $ac_mid)];
|
---|
1923 | test_array [0] = 0
|
---|
1924 |
|
---|
1925 | ;
|
---|
1926 | return 0;
|
---|
1927 | }
|
---|
1928 | _ACEOF
|
---|
1929 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1930 | ac_hi=$ac_mid; break
|
---|
1931 | else
|
---|
1932 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val
|
---|
1933 | if test $ac_lo -le $ac_mid; then
|
---|
1934 | ac_lo= ac_hi=
|
---|
1935 | break
|
---|
1936 | fi
|
---|
1937 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
|
---|
1938 | fi
|
---|
1939 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1940 | done
|
---|
1941 | else
|
---|
1942 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1943 | /* end confdefs.h. */
|
---|
1944 | $4
|
---|
1945 | int
|
---|
1946 | main ()
|
---|
1947 | {
|
---|
1948 | static int test_array [1 - 2 * !(($2) < 0)];
|
---|
1949 | test_array [0] = 0
|
---|
1950 |
|
---|
1951 | ;
|
---|
1952 | return 0;
|
---|
1953 | }
|
---|
1954 | _ACEOF
|
---|
1955 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1956 | ac_hi=-1 ac_mid=-1
|
---|
1957 | while :; do
|
---|
1958 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1959 | /* end confdefs.h. */
|
---|
1960 | $4
|
---|
1961 | int
|
---|
1962 | main ()
|
---|
1963 | {
|
---|
1964 | static int test_array [1 - 2 * !(($2) >= $ac_mid)];
|
---|
1965 | test_array [0] = 0
|
---|
1966 |
|
---|
1967 | ;
|
---|
1968 | return 0;
|
---|
1969 | }
|
---|
1970 | _ACEOF
|
---|
1971 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1972 | ac_lo=$ac_mid; break
|
---|
1973 | else
|
---|
1974 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
|
---|
1975 | if test $ac_mid -le $ac_hi; then
|
---|
1976 | ac_lo= ac_hi=
|
---|
1977 | break
|
---|
1978 | fi
|
---|
1979 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
|
---|
1980 | fi
|
---|
1981 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1982 | done
|
---|
1983 | else
|
---|
1984 | ac_lo= ac_hi=
|
---|
1985 | fi
|
---|
1986 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1987 | fi
|
---|
1988 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1989 | # Binary search between lo and hi bounds.
|
---|
1990 | while test "x$ac_lo" != "x$ac_hi"; do
|
---|
1991 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
|
---|
1992 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1993 | /* end confdefs.h. */
|
---|
1994 | $4
|
---|
1995 | int
|
---|
1996 | main ()
|
---|
1997 | {
|
---|
1998 | static int test_array [1 - 2 * !(($2) <= $ac_mid)];
|
---|
1999 | test_array [0] = 0
|
---|
2000 |
|
---|
2001 | ;
|
---|
2002 | return 0;
|
---|
2003 | }
|
---|
2004 | _ACEOF
|
---|
2005 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
2006 | ac_hi=$ac_mid
|
---|
2007 | else
|
---|
2008 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
|
---|
2009 | fi
|
---|
2010 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2011 | done
|
---|
2012 | case $ac_lo in #((
|
---|
2013 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
|
---|
2014 | '') ac_retval=1 ;;
|
---|
2015 | esac
|
---|
2016 | else
|
---|
2017 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
2018 | /* end confdefs.h. */
|
---|
2019 | $4
|
---|
2020 | static long int longval () { return $2; }
|
---|
2021 | static unsigned long int ulongval () { return $2; }
|
---|
2022 | #include <stdio.h>
|
---|
2023 | #include <stdlib.h>
|
---|
2024 | int
|
---|
2025 | main ()
|
---|
2026 | {
|
---|
2027 |
|
---|
2028 | FILE *f = fopen ("conftest.val", "w");
|
---|
2029 | if (! f)
|
---|
2030 | return 1;
|
---|
2031 | if (($2) < 0)
|
---|
2032 | {
|
---|
2033 | long int i = longval ();
|
---|
2034 | if (i != ($2))
|
---|
2035 | return 1;
|
---|
2036 | fprintf (f, "%ld", i);
|
---|
2037 | }
|
---|
2038 | else
|
---|
2039 | {
|
---|
2040 | unsigned long int i = ulongval ();
|
---|
2041 | if (i != ($2))
|
---|
2042 | return 1;
|
---|
2043 | fprintf (f, "%lu", i);
|
---|
2044 | }
|
---|
2045 | /* Do not output a trailing newline, as this causes \r\n confusion
|
---|
2046 | on some platforms. */
|
---|
2047 | return ferror (f) || fclose (f) != 0;
|
---|
2048 |
|
---|
2049 | ;
|
---|
2050 | return 0;
|
---|
2051 | }
|
---|
2052 | _ACEOF
|
---|
2053 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
2054 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0
|
---|
2055 | else
|
---|
2056 | ac_retval=1
|
---|
2057 | fi
|
---|
2058 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
2059 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
2060 | rm -f conftest.val
|
---|
2061 |
|
---|
2062 | fi
|
---|
2063 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
2064 | as_fn_set_status $ac_retval
|
---|
2065 |
|
---|
2066 | } # ac_fn_c_compute_int
|
---|
2067 | cat >config.log <<_ACEOF
|
---|
2068 | This file contains any messages produced by compilers while
|
---|
2069 | running configure, to aid debugging if configure makes a mistake.
|
---|
2070 |
|
---|
2071 | It was created by $as_me, which was
|
---|
2072 | generated by GNU Autoconf 2.68. Invocation command line was
|
---|
2073 |
|
---|
2074 | $ $0 $@
|
---|
2075 |
|
---|
2076 | _ACEOF
|
---|
2077 | exec 5>>config.log
|
---|
2078 | {
|
---|
2079 | cat <<_ASUNAME
|
---|
2080 | ## --------- ##
|
---|
2081 | ## Platform. ##
|
---|
2082 | ## --------- ##
|
---|
2083 |
|
---|
2084 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
2085 | uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
---|
2086 | uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
---|
2087 | uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
---|
2088 | uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
---|
2089 |
|
---|
2090 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
---|
2091 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
---|
2092 |
|
---|
2093 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
---|
2094 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
---|
2095 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
---|
2096 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
|
---|
2097 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
---|
2098 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
---|
2099 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
---|
2100 |
|
---|
2101 | _ASUNAME
|
---|
2102 |
|
---|
2103 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2104 | for as_dir in $PATH
|
---|
2105 | do
|
---|
2106 | IFS=$as_save_IFS
|
---|
2107 | test -z "$as_dir" && as_dir=.
|
---|
2108 | $as_echo "PATH: $as_dir"
|
---|
2109 | done
|
---|
2110 | IFS=$as_save_IFS
|
---|
2111 |
|
---|
2112 | } >&5
|
---|
2113 |
|
---|
2114 | cat >&5 <<_ACEOF
|
---|
2115 |
|
---|
2116 |
|
---|
2117 | ## ----------- ##
|
---|
2118 | ## Core tests. ##
|
---|
2119 | ## ----------- ##
|
---|
2120 |
|
---|
2121 | _ACEOF
|
---|
2122 |
|
---|
2123 |
|
---|
2124 | # Keep a trace of the command line.
|
---|
2125 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
2126 | # Strip out --silent because we don't want to record it for future runs.
|
---|
2127 | # Also quote any args containing shell meta-characters.
|
---|
2128 | # Make two passes to allow for proper duplicate-argument suppression.
|
---|
2129 | ac_configure_args=
|
---|
2130 | ac_configure_args0=
|
---|
2131 | ac_configure_args1=
|
---|
2132 | ac_must_keep_next=false
|
---|
2133 | for ac_pass in 1 2
|
---|
2134 | do
|
---|
2135 | for ac_arg
|
---|
2136 | do
|
---|
2137 | case $ac_arg in
|
---|
2138 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
---|
2139 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
2140 | | -silent | --silent | --silen | --sile | --sil)
|
---|
2141 | continue ;;
|
---|
2142 | *\'*)
|
---|
2143 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
2144 | esac
|
---|
2145 | case $ac_pass in
|
---|
2146 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
|
---|
2147 | 2)
|
---|
2148 | as_fn_append ac_configure_args1 " '$ac_arg'"
|
---|
2149 | if test $ac_must_keep_next = true; then
|
---|
2150 | ac_must_keep_next=false # Got value, back to normal.
|
---|
2151 | else
|
---|
2152 | case $ac_arg in
|
---|
2153 | *=* | --config-cache | -C | -disable-* | --disable-* \
|
---|
2154 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
---|
2155 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
---|
2156 | | -with-* | --with-* | -without-* | --without-* | --x)
|
---|
2157 | case "$ac_configure_args0 " in
|
---|
2158 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
---|
2159 | esac
|
---|
2160 | ;;
|
---|
2161 | -* ) ac_must_keep_next=true ;;
|
---|
2162 | esac
|
---|
2163 | fi
|
---|
2164 | as_fn_append ac_configure_args " '$ac_arg'"
|
---|
2165 | ;;
|
---|
2166 | esac
|
---|
2167 | done
|
---|
2168 | done
|
---|
2169 | { ac_configure_args0=; unset ac_configure_args0;}
|
---|
2170 | { ac_configure_args1=; unset ac_configure_args1;}
|
---|
2171 |
|
---|
2172 | # When interrupted or exit'd, cleanup temporary files, and complete
|
---|
2173 | # config.log. We remove comments because anyway the quotes in there
|
---|
2174 | # would cause problems or look ugly.
|
---|
2175 | # WARNING: Use '\'' to represent an apostrophe within the trap.
|
---|
2176 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
|
---|
2177 | trap 'exit_status=$?
|
---|
2178 | # Save into config.log some information that might help in debugging.
|
---|
2179 | {
|
---|
2180 | echo
|
---|
2181 |
|
---|
2182 | $as_echo "## ---------------- ##
|
---|
2183 | ## Cache variables. ##
|
---|
2184 | ## ---------------- ##"
|
---|
2185 | echo
|
---|
2186 | # The following way of writing the cache mishandles newlines in values,
|
---|
2187 | (
|
---|
2188 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
|
---|
2189 | eval ac_val=\$$ac_var
|
---|
2190 | case $ac_val in #(
|
---|
2191 | *${as_nl}*)
|
---|
2192 | case $ac_var in #(
|
---|
2193 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
---|
2194 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
---|
2195 | esac
|
---|
2196 | case $ac_var in #(
|
---|
2197 | _ | IFS | as_nl) ;; #(
|
---|
2198 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
|
---|
2199 | *) { eval $ac_var=; unset $ac_var;} ;;
|
---|
2200 | esac ;;
|
---|
2201 | esac
|
---|
2202 | done
|
---|
2203 | (set) 2>&1 |
|
---|
2204 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
|
---|
2205 | *${as_nl}ac_space=\ *)
|
---|
2206 | sed -n \
|
---|
2207 | "s/'\''/'\''\\\\'\'''\''/g;
|
---|
2208 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
|
---|
2209 | ;; #(
|
---|
2210 | *)
|
---|
2211 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
---|
2212 | ;;
|
---|
2213 | esac |
|
---|
2214 | sort
|
---|
2215 | )
|
---|
2216 | echo
|
---|
2217 |
|
---|
2218 | $as_echo "## ----------------- ##
|
---|
2219 | ## Output variables. ##
|
---|
2220 | ## ----------------- ##"
|
---|
2221 | echo
|
---|
2222 | for ac_var in $ac_subst_vars
|
---|
2223 | do
|
---|
2224 | eval ac_val=\$$ac_var
|
---|
2225 | case $ac_val in
|
---|
2226 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
---|
2227 | esac
|
---|
2228 | $as_echo "$ac_var='\''$ac_val'\''"
|
---|
2229 | done | sort
|
---|
2230 | echo
|
---|
2231 |
|
---|
2232 | if test -n "$ac_subst_files"; then
|
---|
2233 | $as_echo "## ------------------- ##
|
---|
2234 | ## File substitutions. ##
|
---|
2235 | ## ------------------- ##"
|
---|
2236 | echo
|
---|
2237 | for ac_var in $ac_subst_files
|
---|
2238 | do
|
---|
2239 | eval ac_val=\$$ac_var
|
---|
2240 | case $ac_val in
|
---|
2241 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
---|
2242 | esac
|
---|
2243 | $as_echo "$ac_var='\''$ac_val'\''"
|
---|
2244 | done | sort
|
---|
2245 | echo
|
---|
2246 | fi
|
---|
2247 |
|
---|
2248 | if test -s confdefs.h; then
|
---|
2249 | $as_echo "## ----------- ##
|
---|
2250 | ## confdefs.h. ##
|
---|
2251 | ## ----------- ##"
|
---|
2252 | echo
|
---|
2253 | cat confdefs.h
|
---|
2254 | echo
|
---|
2255 | fi
|
---|
2256 | test "$ac_signal" != 0 &&
|
---|
2257 | $as_echo "$as_me: caught signal $ac_signal"
|
---|
2258 | $as_echo "$as_me: exit $exit_status"
|
---|
2259 | } >&5
|
---|
2260 | rm -f core *.core core.conftest.* &&
|
---|
2261 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
|
---|
2262 | exit $exit_status
|
---|
2263 | ' 0
|
---|
2264 | for ac_signal in 1 2 13 15; do
|
---|
2265 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
|
---|
2266 | done
|
---|
2267 | ac_signal=0
|
---|
2268 |
|
---|
2269 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
2270 | rm -f -r conftest* confdefs.h
|
---|
2271 |
|
---|
2272 | $as_echo "/* confdefs.h */" > confdefs.h
|
---|
2273 |
|
---|
2274 | # Predefined preprocessor variables.
|
---|
2275 |
|
---|
2276 | cat >>confdefs.h <<_ACEOF
|
---|
2277 | #define PACKAGE_NAME "$PACKAGE_NAME"
|
---|
2278 | _ACEOF
|
---|
2279 |
|
---|
2280 | cat >>confdefs.h <<_ACEOF
|
---|
2281 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
---|
2282 | _ACEOF
|
---|
2283 |
|
---|
2284 | cat >>confdefs.h <<_ACEOF
|
---|
2285 | #define PACKAGE_VERSION "$PACKAGE_VERSION"
|
---|
2286 | _ACEOF
|
---|
2287 |
|
---|
2288 | cat >>confdefs.h <<_ACEOF
|
---|
2289 | #define PACKAGE_STRING "$PACKAGE_STRING"
|
---|
2290 | _ACEOF
|
---|
2291 |
|
---|
2292 | cat >>confdefs.h <<_ACEOF
|
---|
2293 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
---|
2294 | _ACEOF
|
---|
2295 |
|
---|
2296 | cat >>confdefs.h <<_ACEOF
|
---|
2297 | #define PACKAGE_URL "$PACKAGE_URL"
|
---|
2298 | _ACEOF
|
---|
2299 |
|
---|
2300 |
|
---|
2301 | # Let the site file select an alternate cache file if it wants to.
|
---|
2302 | # Prefer an explicitly selected file to automatically selected ones.
|
---|
2303 | ac_site_file1=NONE
|
---|
2304 | ac_site_file2=NONE
|
---|
2305 | if test -n "$CONFIG_SITE"; then
|
---|
2306 | # We do not want a PATH search for config.site.
|
---|
2307 | case $CONFIG_SITE in #((
|
---|
2308 | -*) ac_site_file1=./$CONFIG_SITE;;
|
---|
2309 | */*) ac_site_file1=$CONFIG_SITE;;
|
---|
2310 | *) ac_site_file1=./$CONFIG_SITE;;
|
---|
2311 | esac
|
---|
2312 | elif test "x$prefix" != xNONE; then
|
---|
2313 | ac_site_file1=$prefix/share/config.site
|
---|
2314 | ac_site_file2=$prefix/etc/config.site
|
---|
2315 | else
|
---|
2316 | ac_site_file1=$ac_default_prefix/share/config.site
|
---|
2317 | ac_site_file2=$ac_default_prefix/etc/config.site
|
---|
2318 | fi
|
---|
2319 | for ac_site_file in "$ac_site_file1" "$ac_site_file2"
|
---|
2320 | do
|
---|
2321 | test "x$ac_site_file" = xNONE && continue
|
---|
2322 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
|
---|
2323 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
|
---|
2324 | $as_echo "$as_me: loading site script $ac_site_file" >&6;}
|
---|
2325 | sed 's/^/| /' "$ac_site_file" >&5
|
---|
2326 | . "$ac_site_file" \
|
---|
2327 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2328 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2329 | as_fn_error $? "failed to load site script $ac_site_file
|
---|
2330 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
2331 | fi
|
---|
2332 | done
|
---|
2333 |
|
---|
2334 | if test -r "$cache_file"; then
|
---|
2335 | # Some versions of bash will fail to source /dev/null (special files
|
---|
2336 | # actually), so we avoid doing that. DJGPP emulates it as a regular file.
|
---|
2337 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then
|
---|
2338 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
|
---|
2339 | $as_echo "$as_me: loading cache $cache_file" >&6;}
|
---|
2340 | case $cache_file in
|
---|
2341 | [\\/]* | ?:[\\/]* ) . "$cache_file";;
|
---|
2342 | *) . "./$cache_file";;
|
---|
2343 | esac
|
---|
2344 | fi
|
---|
2345 | else
|
---|
2346 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
|
---|
2347 | $as_echo "$as_me: creating cache $cache_file" >&6;}
|
---|
2348 | >$cache_file
|
---|
2349 | fi
|
---|
2350 |
|
---|
2351 | # Check that the precious variables saved in the cache have kept the same
|
---|
2352 | # value.
|
---|
2353 | ac_cache_corrupted=false
|
---|
2354 | for ac_var in $ac_precious_vars; do
|
---|
2355 | eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
---|
2356 | eval ac_new_set=\$ac_env_${ac_var}_set
|
---|
2357 | eval ac_old_val=\$ac_cv_env_${ac_var}_value
|
---|
2358 | eval ac_new_val=\$ac_env_${ac_var}_value
|
---|
2359 | case $ac_old_set,$ac_new_set in
|
---|
2360 | set,)
|
---|
2361 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
---|
2362 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
---|
2363 | ac_cache_corrupted=: ;;
|
---|
2364 | ,set)
|
---|
2365 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
|
---|
2366 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
---|
2367 | ac_cache_corrupted=: ;;
|
---|
2368 | ,);;
|
---|
2369 | *)
|
---|
2370 | if test "x$ac_old_val" != "x$ac_new_val"; then
|
---|
2371 | # differences in whitespace do not lead to failure.
|
---|
2372 | ac_old_val_w=`echo x $ac_old_val`
|
---|
2373 | ac_new_val_w=`echo x $ac_new_val`
|
---|
2374 | if test "$ac_old_val_w" != "$ac_new_val_w"; then
|
---|
2375 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
|
---|
2376 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
---|
2377 | ac_cache_corrupted=:
|
---|
2378 | else
|
---|
2379 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
|
---|
2380 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
|
---|
2381 | eval $ac_var=\$ac_old_val
|
---|
2382 | fi
|
---|
2383 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
|
---|
2384 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
|
---|
2385 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
|
---|
2386 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
|
---|
2387 | fi;;
|
---|
2388 | esac
|
---|
2389 | # Pass precious variables to config.status.
|
---|
2390 | if test "$ac_new_set" = set; then
|
---|
2391 | case $ac_new_val in
|
---|
2392 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
2393 | *) ac_arg=$ac_var=$ac_new_val ;;
|
---|
2394 | esac
|
---|
2395 | case " $ac_configure_args " in
|
---|
2396 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
---|
2397 | *) as_fn_append ac_configure_args " '$ac_arg'" ;;
|
---|
2398 | esac
|
---|
2399 | fi
|
---|
2400 | done
|
---|
2401 | if $ac_cache_corrupted; then
|
---|
2402 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2403 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2404 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
|
---|
2405 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
---|
2406 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
|
---|
2407 | fi
|
---|
2408 | ## -------------------- ##
|
---|
2409 | ## Main body of script. ##
|
---|
2410 | ## -------------------- ##
|
---|
2411 |
|
---|
2412 | ac_ext=c
|
---|
2413 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2414 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2415 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2416 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
2417 |
|
---|
2418 |
|
---|
2419 | ac_config_headers="$ac_config_headers config.h"
|
---|
2420 |
|
---|
2421 |
|
---|
2422 | ac_aux_dir=
|
---|
2423 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
|
---|
2424 | if test -f "$ac_dir/install-sh"; then
|
---|
2425 | ac_aux_dir=$ac_dir
|
---|
2426 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
2427 | break
|
---|
2428 | elif test -f "$ac_dir/install.sh"; then
|
---|
2429 | ac_aux_dir=$ac_dir
|
---|
2430 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
2431 | break
|
---|
2432 | elif test -f "$ac_dir/shtool"; then
|
---|
2433 | ac_aux_dir=$ac_dir
|
---|
2434 | ac_install_sh="$ac_aux_dir/shtool install -c"
|
---|
2435 | break
|
---|
2436 | fi
|
---|
2437 | done
|
---|
2438 | if test -z "$ac_aux_dir"; then
|
---|
2439 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
|
---|
2440 | fi
|
---|
2441 |
|
---|
2442 | # These three variables are undocumented and unsupported,
|
---|
2443 | # and are intended to be withdrawn in a future Autoconf release.
|
---|
2444 | # They can cause serious problems if a builder's source tree is in a directory
|
---|
2445 | # whose full name contains unusual characters.
|
---|
2446 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
|
---|
2447 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
|
---|
2448 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
|
---|
2449 |
|
---|
2450 |
|
---|
2451 | # Make sure we can run config.sub.
|
---|
2452 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
|
---|
2453 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
|
---|
2454 |
|
---|
2455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
|
---|
2456 | $as_echo_n "checking build system type... " >&6; }
|
---|
2457 | if ${ac_cv_build+:} false; then :
|
---|
2458 | $as_echo_n "(cached) " >&6
|
---|
2459 | else
|
---|
2460 | ac_build_alias=$build_alias
|
---|
2461 | test "x$ac_build_alias" = x &&
|
---|
2462 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
|
---|
2463 | test "x$ac_build_alias" = x &&
|
---|
2464 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
|
---|
2465 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
|
---|
2466 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
|
---|
2467 |
|
---|
2468 | fi
|
---|
2469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
|
---|
2470 | $as_echo "$ac_cv_build" >&6; }
|
---|
2471 | case $ac_cv_build in
|
---|
2472 | *-*-*) ;;
|
---|
2473 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
|
---|
2474 | esac
|
---|
2475 | build=$ac_cv_build
|
---|
2476 | ac_save_IFS=$IFS; IFS='-'
|
---|
2477 | set x $ac_cv_build
|
---|
2478 | shift
|
---|
2479 | build_cpu=$1
|
---|
2480 | build_vendor=$2
|
---|
2481 | shift; shift
|
---|
2482 | # Remember, the first character of IFS is used to create $*,
|
---|
2483 | # except with old shells:
|
---|
2484 | build_os=$*
|
---|
2485 | IFS=$ac_save_IFS
|
---|
2486 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
|
---|
2487 |
|
---|
2488 |
|
---|
2489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
|
---|
2490 | $as_echo_n "checking host system type... " >&6; }
|
---|
2491 | if ${ac_cv_host+:} false; then :
|
---|
2492 | $as_echo_n "(cached) " >&6
|
---|
2493 | else
|
---|
2494 | if test "x$host_alias" = x; then
|
---|
2495 | ac_cv_host=$ac_cv_build
|
---|
2496 | else
|
---|
2497 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
|
---|
2498 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
|
---|
2499 | fi
|
---|
2500 |
|
---|
2501 | fi
|
---|
2502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
|
---|
2503 | $as_echo "$ac_cv_host" >&6; }
|
---|
2504 | case $ac_cv_host in
|
---|
2505 | *-*-*) ;;
|
---|
2506 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
|
---|
2507 | esac
|
---|
2508 | host=$ac_cv_host
|
---|
2509 | ac_save_IFS=$IFS; IFS='-'
|
---|
2510 | set x $ac_cv_host
|
---|
2511 | shift
|
---|
2512 | host_cpu=$1
|
---|
2513 | host_vendor=$2
|
---|
2514 | shift; shift
|
---|
2515 | # Remember, the first character of IFS is used to create $*,
|
---|
2516 | # except with old shells:
|
---|
2517 | host_os=$*
|
---|
2518 | IFS=$ac_save_IFS
|
---|
2519 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
|
---|
2520 |
|
---|
2521 |
|
---|
2522 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
|
---|
2523 | $as_echo_n "checking target system type... " >&6; }
|
---|
2524 | if ${ac_cv_target+:} false; then :
|
---|
2525 | $as_echo_n "(cached) " >&6
|
---|
2526 | else
|
---|
2527 | if test "x$target_alias" = x; then
|
---|
2528 | ac_cv_target=$ac_cv_host
|
---|
2529 | else
|
---|
2530 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
|
---|
2531 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
|
---|
2532 | fi
|
---|
2533 |
|
---|
2534 | fi
|
---|
2535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
|
---|
2536 | $as_echo "$ac_cv_target" >&6; }
|
---|
2537 | case $ac_cv_target in
|
---|
2538 | *-*-*) ;;
|
---|
2539 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
|
---|
2540 | esac
|
---|
2541 | target=$ac_cv_target
|
---|
2542 | ac_save_IFS=$IFS; IFS='-'
|
---|
2543 | set x $ac_cv_target
|
---|
2544 | shift
|
---|
2545 | target_cpu=$1
|
---|
2546 | target_vendor=$2
|
---|
2547 | shift; shift
|
---|
2548 | # Remember, the first character of IFS is used to create $*,
|
---|
2549 | # except with old shells:
|
---|
2550 | target_os=$*
|
---|
2551 | IFS=$ac_save_IFS
|
---|
2552 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
|
---|
2553 |
|
---|
2554 |
|
---|
2555 | # The aliases save the names the user supplied, while $host etc.
|
---|
2556 | # will get canonicalized.
|
---|
2557 | test -n "$target_alias" &&
|
---|
2558 | test "$program_prefix$program_suffix$program_transform_name" = \
|
---|
2559 | NONENONEs,x,x, &&
|
---|
2560 | program_prefix=${target_alias}-
|
---|
2561 |
|
---|
2562 | test "$program_prefix" != NONE &&
|
---|
2563 | program_transform_name="s&^&$program_prefix&;$program_transform_name"
|
---|
2564 | # Use a double $ so make ignores it.
|
---|
2565 | test "$program_suffix" != NONE &&
|
---|
2566 | program_transform_name="s&\$&$program_suffix&;$program_transform_name"
|
---|
2567 | # Double any \ or $.
|
---|
2568 | # By default was `s,x,x', remove it if useless.
|
---|
2569 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
|
---|
2570 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
|
---|
2571 |
|
---|
2572 |
|
---|
2573 | PACKAGE=mgpp
|
---|
2574 | VERSION=1.3
|
---|
2575 |
|
---|
2576 | cat >>confdefs.h <<_ACEOF
|
---|
2577 | #define PACKAGE "$PACKAGE"
|
---|
2578 | _ACEOF
|
---|
2579 |
|
---|
2580 | cat >>confdefs.h <<_ACEOF
|
---|
2581 | #define VERSION "$VERSION"
|
---|
2582 | _ACEOF
|
---|
2583 |
|
---|
2584 |
|
---|
2585 |
|
---|
2586 |
|
---|
2587 | # Check whether --enable-java was given.
|
---|
2588 | if test "${enable_java+set}" = set; then :
|
---|
2589 | enableval=$enable_java; ENABLE_JAVA=$enableval
|
---|
2590 | else
|
---|
2591 | ENABLE_JAVA=yes
|
---|
2592 | fi
|
---|
2593 |
|
---|
2594 | if test $ENABLE_JAVA = "yes" -o $ENABLE_JAVA = "1" ; then
|
---|
2595 | ENABLE_JAVA=1
|
---|
2596 | if test "x$JAVA_HOME" != "x" ; then
|
---|
2597 | echo "Detected JAVA_HOME is set, however this will not be used during compilation"
|
---|
2598 | echo "To control the version of 'javac' and 'java' set environment variables JAVAC"
|
---|
2599 | echo "and JAVA respectively"
|
---|
2600 | export JAVA_HOME=
|
---|
2601 | fi
|
---|
2602 | else
|
---|
2603 | ENABLE_JAVA=0
|
---|
2604 | fi
|
---|
2605 |
|
---|
2606 |
|
---|
2607 | if test -z "$ARCH_DEP_FLAGS" ; then
|
---|
2608 | ARCH_DEP_FLAGS=
|
---|
2609 | fi
|
---|
2610 |
|
---|
2611 |
|
---|
2612 | # Check whether --enable-accentfold was given.
|
---|
2613 | if test "${enable_accentfold+set}" = set; then :
|
---|
2614 | enableval=$enable_accentfold; ENABLE_ACCENTFOLD=$enableval
|
---|
2615 | else
|
---|
2616 | ENABLE_ACCENTFOLD=yes
|
---|
2617 | fi
|
---|
2618 |
|
---|
2619 | if test $ENABLE_ACCENTFOLD = "yes" -o $ENABLE_ACCENTFOLD = "1" ; then
|
---|
2620 | ENABLE_ACCENTFOLD=1
|
---|
2621 | $as_echo "#define ENABLE_ACCENTFOLD /**/" >>confdefs.h
|
---|
2622 |
|
---|
2623 | else
|
---|
2624 | ENABLE_ACCENTFOLD=0
|
---|
2625 | fi
|
---|
2626 |
|
---|
2627 |
|
---|
2628 |
|
---|
2629 | ac_ext=cpp
|
---|
2630 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
2631 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2632 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2633 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
2634 | if test -z "$CXX"; then
|
---|
2635 | if test -n "$CCC"; then
|
---|
2636 | CXX=$CCC
|
---|
2637 | else
|
---|
2638 | if test -n "$ac_tool_prefix"; then
|
---|
2639 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
|
---|
2640 | do
|
---|
2641 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
2642 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
2643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2644 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2645 | if ${ac_cv_prog_CXX+:} false; then :
|
---|
2646 | $as_echo_n "(cached) " >&6
|
---|
2647 | else
|
---|
2648 | if test -n "$CXX"; then
|
---|
2649 | ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
---|
2650 | else
|
---|
2651 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2652 | for as_dir in $PATH
|
---|
2653 | do
|
---|
2654 | IFS=$as_save_IFS
|
---|
2655 | test -z "$as_dir" && as_dir=.
|
---|
2656 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2657 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
2658 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
|
---|
2659 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2660 | break 2
|
---|
2661 | fi
|
---|
2662 | done
|
---|
2663 | done
|
---|
2664 | IFS=$as_save_IFS
|
---|
2665 |
|
---|
2666 | fi
|
---|
2667 | fi
|
---|
2668 | CXX=$ac_cv_prog_CXX
|
---|
2669 | if test -n "$CXX"; then
|
---|
2670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
|
---|
2671 | $as_echo "$CXX" >&6; }
|
---|
2672 | else
|
---|
2673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2674 | $as_echo "no" >&6; }
|
---|
2675 | fi
|
---|
2676 |
|
---|
2677 |
|
---|
2678 | test -n "$CXX" && break
|
---|
2679 | done
|
---|
2680 | fi
|
---|
2681 | if test -z "$CXX"; then
|
---|
2682 | ac_ct_CXX=$CXX
|
---|
2683 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
|
---|
2684 | do
|
---|
2685 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
2686 | set dummy $ac_prog; ac_word=$2
|
---|
2687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2688 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2689 | if ${ac_cv_prog_ac_ct_CXX+:} false; then :
|
---|
2690 | $as_echo_n "(cached) " >&6
|
---|
2691 | else
|
---|
2692 | if test -n "$ac_ct_CXX"; then
|
---|
2693 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
|
---|
2694 | else
|
---|
2695 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2696 | for as_dir in $PATH
|
---|
2697 | do
|
---|
2698 | IFS=$as_save_IFS
|
---|
2699 | test -z "$as_dir" && as_dir=.
|
---|
2700 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2701 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
2702 | ac_cv_prog_ac_ct_CXX="$ac_prog"
|
---|
2703 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2704 | break 2
|
---|
2705 | fi
|
---|
2706 | done
|
---|
2707 | done
|
---|
2708 | IFS=$as_save_IFS
|
---|
2709 |
|
---|
2710 | fi
|
---|
2711 | fi
|
---|
2712 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
|
---|
2713 | if test -n "$ac_ct_CXX"; then
|
---|
2714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
|
---|
2715 | $as_echo "$ac_ct_CXX" >&6; }
|
---|
2716 | else
|
---|
2717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2718 | $as_echo "no" >&6; }
|
---|
2719 | fi
|
---|
2720 |
|
---|
2721 |
|
---|
2722 | test -n "$ac_ct_CXX" && break
|
---|
2723 | done
|
---|
2724 |
|
---|
2725 | if test "x$ac_ct_CXX" = x; then
|
---|
2726 | CXX="g++"
|
---|
2727 | else
|
---|
2728 | case $cross_compiling:$ac_tool_warned in
|
---|
2729 | yes:)
|
---|
2730 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
2731 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
2732 | ac_tool_warned=yes ;;
|
---|
2733 | esac
|
---|
2734 | CXX=$ac_ct_CXX
|
---|
2735 | fi
|
---|
2736 | fi
|
---|
2737 |
|
---|
2738 | fi
|
---|
2739 | fi
|
---|
2740 | # Provide some information about the compiler.
|
---|
2741 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
|
---|
2742 | set X $ac_compile
|
---|
2743 | ac_compiler=$2
|
---|
2744 | for ac_option in --version -v -V -qversion; do
|
---|
2745 | { { ac_try="$ac_compiler $ac_option >&5"
|
---|
2746 | case "(($ac_try" in
|
---|
2747 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2748 | *) ac_try_echo=$ac_try;;
|
---|
2749 | esac
|
---|
2750 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
2751 | $as_echo "$ac_try_echo"; } >&5
|
---|
2752 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err
|
---|
2753 | ac_status=$?
|
---|
2754 | if test -s conftest.err; then
|
---|
2755 | sed '10a\
|
---|
2756 | ... rest of stderr output deleted ...
|
---|
2757 | 10q' conftest.err >conftest.er1
|
---|
2758 | cat conftest.er1 >&5
|
---|
2759 | fi
|
---|
2760 | rm -f conftest.er1 conftest.err
|
---|
2761 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
2762 | test $ac_status = 0; }
|
---|
2763 | done
|
---|
2764 |
|
---|
2765 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
2766 | /* end confdefs.h. */
|
---|
2767 |
|
---|
2768 | int
|
---|
2769 | main ()
|
---|
2770 | {
|
---|
2771 |
|
---|
2772 | ;
|
---|
2773 | return 0;
|
---|
2774 | }
|
---|
2775 | _ACEOF
|
---|
2776 | ac_clean_files_save=$ac_clean_files
|
---|
2777 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
|
---|
2778 | # Try to create an executable without -o first, disregard a.out.
|
---|
2779 | # It will help us diagnose broken compilers, and finding out an intuition
|
---|
2780 | # of exeext.
|
---|
2781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
|
---|
2782 | $as_echo_n "checking whether the C++ compiler works... " >&6; }
|
---|
2783 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
---|
2784 |
|
---|
2785 | # The possible output files:
|
---|
2786 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
|
---|
2787 |
|
---|
2788 | ac_rmfiles=
|
---|
2789 | for ac_file in $ac_files
|
---|
2790 | do
|
---|
2791 | case $ac_file in
|
---|
2792 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
---|
2793 | * ) ac_rmfiles="$ac_rmfiles $ac_file";;
|
---|
2794 | esac
|
---|
2795 | done
|
---|
2796 | rm -f $ac_rmfiles
|
---|
2797 |
|
---|
2798 | if { { ac_try="$ac_link_default"
|
---|
2799 | case "(($ac_try" in
|
---|
2800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2801 | *) ac_try_echo=$ac_try;;
|
---|
2802 | esac
|
---|
2803 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
2804 | $as_echo "$ac_try_echo"; } >&5
|
---|
2805 | (eval "$ac_link_default") 2>&5
|
---|
2806 | ac_status=$?
|
---|
2807 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
2808 | test $ac_status = 0; }; then :
|
---|
2809 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
|
---|
2810 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
|
---|
2811 | # in a Makefile. We should not override ac_cv_exeext if it was cached,
|
---|
2812 | # so that the user can short-circuit this test for compilers unknown to
|
---|
2813 | # Autoconf.
|
---|
2814 | for ac_file in $ac_files ''
|
---|
2815 | do
|
---|
2816 | test -f "$ac_file" || continue
|
---|
2817 | case $ac_file in
|
---|
2818 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
|
---|
2819 | ;;
|
---|
2820 | [ab].out )
|
---|
2821 | # We found the default executable, but exeext='' is most
|
---|
2822 | # certainly right.
|
---|
2823 | break;;
|
---|
2824 | *.* )
|
---|
2825 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
|
---|
2826 | then :; else
|
---|
2827 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
2828 | fi
|
---|
2829 | # We set ac_cv_exeext here because the later test for it is not
|
---|
2830 | # safe: cross compilers may not add the suffix if given an `-o'
|
---|
2831 | # argument, so we may need to know it at that point already.
|
---|
2832 | # Even if this section looks crufty: it has the advantage of
|
---|
2833 | # actually working.
|
---|
2834 | break;;
|
---|
2835 | * )
|
---|
2836 | break;;
|
---|
2837 | esac
|
---|
2838 | done
|
---|
2839 | test "$ac_cv_exeext" = no && ac_cv_exeext=
|
---|
2840 |
|
---|
2841 | else
|
---|
2842 | ac_file=''
|
---|
2843 | fi
|
---|
2844 | if test -z "$ac_file"; then :
|
---|
2845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2846 | $as_echo "no" >&6; }
|
---|
2847 | $as_echo "$as_me: failed program was:" >&5
|
---|
2848 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2849 |
|
---|
2850 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2851 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2852 | as_fn_error 77 "C++ compiler cannot create executables
|
---|
2853 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
2854 | else
|
---|
2855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
2856 | $as_echo "yes" >&6; }
|
---|
2857 | fi
|
---|
2858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
|
---|
2859 | $as_echo_n "checking for C++ compiler default output file name... " >&6; }
|
---|
2860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
|
---|
2861 | $as_echo "$ac_file" >&6; }
|
---|
2862 | ac_exeext=$ac_cv_exeext
|
---|
2863 |
|
---|
2864 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
|
---|
2865 | ac_clean_files=$ac_clean_files_save
|
---|
2866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
|
---|
2867 | $as_echo_n "checking for suffix of executables... " >&6; }
|
---|
2868 | if { { ac_try="$ac_link"
|
---|
2869 | case "(($ac_try" in
|
---|
2870 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2871 | *) ac_try_echo=$ac_try;;
|
---|
2872 | esac
|
---|
2873 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
2874 | $as_echo "$ac_try_echo"; } >&5
|
---|
2875 | (eval "$ac_link") 2>&5
|
---|
2876 | ac_status=$?
|
---|
2877 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
2878 | test $ac_status = 0; }; then :
|
---|
2879 | # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
---|
2880 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
---|
2881 | # work properly (i.e., refer to `conftest.exe'), while it won't with
|
---|
2882 | # `rm'.
|
---|
2883 | for ac_file in conftest.exe conftest conftest.*; do
|
---|
2884 | test -f "$ac_file" || continue
|
---|
2885 | case $ac_file in
|
---|
2886 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
---|
2887 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
2888 | break;;
|
---|
2889 | * ) break;;
|
---|
2890 | esac
|
---|
2891 | done
|
---|
2892 | else
|
---|
2893 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2894 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2895 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link
|
---|
2896 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
2897 | fi
|
---|
2898 | rm -f conftest conftest$ac_cv_exeext
|
---|
2899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
|
---|
2900 | $as_echo "$ac_cv_exeext" >&6; }
|
---|
2901 |
|
---|
2902 | rm -f conftest.$ac_ext
|
---|
2903 | EXEEXT=$ac_cv_exeext
|
---|
2904 | ac_exeext=$EXEEXT
|
---|
2905 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
2906 | /* end confdefs.h. */
|
---|
2907 | #include <stdio.h>
|
---|
2908 | int
|
---|
2909 | main ()
|
---|
2910 | {
|
---|
2911 | FILE *f = fopen ("conftest.out", "w");
|
---|
2912 | return ferror (f) || fclose (f) != 0;
|
---|
2913 |
|
---|
2914 | ;
|
---|
2915 | return 0;
|
---|
2916 | }
|
---|
2917 | _ACEOF
|
---|
2918 | ac_clean_files="$ac_clean_files conftest.out"
|
---|
2919 | # Check that the compiler produces executables we can run. If not, either
|
---|
2920 | # the compiler is broken, or we cross compile.
|
---|
2921 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
|
---|
2922 | $as_echo_n "checking whether we are cross compiling... " >&6; }
|
---|
2923 | if test "$cross_compiling" != yes; then
|
---|
2924 | { { ac_try="$ac_link"
|
---|
2925 | case "(($ac_try" in
|
---|
2926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2927 | *) ac_try_echo=$ac_try;;
|
---|
2928 | esac
|
---|
2929 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
2930 | $as_echo "$ac_try_echo"; } >&5
|
---|
2931 | (eval "$ac_link") 2>&5
|
---|
2932 | ac_status=$?
|
---|
2933 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
2934 | test $ac_status = 0; }
|
---|
2935 | if { ac_try='./conftest$ac_cv_exeext'
|
---|
2936 | { { case "(($ac_try" in
|
---|
2937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2938 | *) ac_try_echo=$ac_try;;
|
---|
2939 | esac
|
---|
2940 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
2941 | $as_echo "$ac_try_echo"; } >&5
|
---|
2942 | (eval "$ac_try") 2>&5
|
---|
2943 | ac_status=$?
|
---|
2944 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
2945 | test $ac_status = 0; }; }; then
|
---|
2946 | cross_compiling=no
|
---|
2947 | else
|
---|
2948 | if test "$cross_compiling" = maybe; then
|
---|
2949 | cross_compiling=yes
|
---|
2950 | else
|
---|
2951 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2952 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2953 | as_fn_error $? "cannot run C++ compiled programs.
|
---|
2954 | If you meant to cross compile, use \`--host'.
|
---|
2955 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
2956 | fi
|
---|
2957 | fi
|
---|
2958 | fi
|
---|
2959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
|
---|
2960 | $as_echo "$cross_compiling" >&6; }
|
---|
2961 |
|
---|
2962 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
|
---|
2963 | ac_clean_files=$ac_clean_files_save
|
---|
2964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
|
---|
2965 | $as_echo_n "checking for suffix of object files... " >&6; }
|
---|
2966 | if ${ac_cv_objext+:} false; then :
|
---|
2967 | $as_echo_n "(cached) " >&6
|
---|
2968 | else
|
---|
2969 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
2970 | /* end confdefs.h. */
|
---|
2971 |
|
---|
2972 | int
|
---|
2973 | main ()
|
---|
2974 | {
|
---|
2975 |
|
---|
2976 | ;
|
---|
2977 | return 0;
|
---|
2978 | }
|
---|
2979 | _ACEOF
|
---|
2980 | rm -f conftest.o conftest.obj
|
---|
2981 | if { { ac_try="$ac_compile"
|
---|
2982 | case "(($ac_try" in
|
---|
2983 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2984 | *) ac_try_echo=$ac_try;;
|
---|
2985 | esac
|
---|
2986 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
2987 | $as_echo "$ac_try_echo"; } >&5
|
---|
2988 | (eval "$ac_compile") 2>&5
|
---|
2989 | ac_status=$?
|
---|
2990 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
2991 | test $ac_status = 0; }; then :
|
---|
2992 | for ac_file in conftest.o conftest.obj conftest.*; do
|
---|
2993 | test -f "$ac_file" || continue;
|
---|
2994 | case $ac_file in
|
---|
2995 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
|
---|
2996 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
---|
2997 | break;;
|
---|
2998 | esac
|
---|
2999 | done
|
---|
3000 | else
|
---|
3001 | $as_echo "$as_me: failed program was:" >&5
|
---|
3002 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3003 |
|
---|
3004 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
3005 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
3006 | as_fn_error $? "cannot compute suffix of object files: cannot compile
|
---|
3007 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
3008 | fi
|
---|
3009 | rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
---|
3010 | fi
|
---|
3011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
|
---|
3012 | $as_echo "$ac_cv_objext" >&6; }
|
---|
3013 | OBJEXT=$ac_cv_objext
|
---|
3014 | ac_objext=$OBJEXT
|
---|
3015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
|
---|
3016 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
|
---|
3017 | if ${ac_cv_cxx_compiler_gnu+:} false; then :
|
---|
3018 | $as_echo_n "(cached) " >&6
|
---|
3019 | else
|
---|
3020 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3021 | /* end confdefs.h. */
|
---|
3022 |
|
---|
3023 | int
|
---|
3024 | main ()
|
---|
3025 | {
|
---|
3026 | #ifndef __GNUC__
|
---|
3027 | choke me
|
---|
3028 | #endif
|
---|
3029 |
|
---|
3030 | ;
|
---|
3031 | return 0;
|
---|
3032 | }
|
---|
3033 | _ACEOF
|
---|
3034 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
3035 | ac_compiler_gnu=yes
|
---|
3036 | else
|
---|
3037 | ac_compiler_gnu=no
|
---|
3038 | fi
|
---|
3039 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3040 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
|
---|
3041 |
|
---|
3042 | fi
|
---|
3043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
|
---|
3044 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
|
---|
3045 | if test $ac_compiler_gnu = yes; then
|
---|
3046 | GXX=yes
|
---|
3047 | else
|
---|
3048 | GXX=
|
---|
3049 | fi
|
---|
3050 | ac_test_CXXFLAGS=${CXXFLAGS+set}
|
---|
3051 | ac_save_CXXFLAGS=$CXXFLAGS
|
---|
3052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
|
---|
3053 | $as_echo_n "checking whether $CXX accepts -g... " >&6; }
|
---|
3054 | if ${ac_cv_prog_cxx_g+:} false; then :
|
---|
3055 | $as_echo_n "(cached) " >&6
|
---|
3056 | else
|
---|
3057 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag
|
---|
3058 | ac_cxx_werror_flag=yes
|
---|
3059 | ac_cv_prog_cxx_g=no
|
---|
3060 | CXXFLAGS="-g"
|
---|
3061 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3062 | /* end confdefs.h. */
|
---|
3063 |
|
---|
3064 | int
|
---|
3065 | main ()
|
---|
3066 | {
|
---|
3067 |
|
---|
3068 | ;
|
---|
3069 | return 0;
|
---|
3070 | }
|
---|
3071 | _ACEOF
|
---|
3072 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
3073 | ac_cv_prog_cxx_g=yes
|
---|
3074 | else
|
---|
3075 | CXXFLAGS=""
|
---|
3076 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3077 | /* end confdefs.h. */
|
---|
3078 |
|
---|
3079 | int
|
---|
3080 | main ()
|
---|
3081 | {
|
---|
3082 |
|
---|
3083 | ;
|
---|
3084 | return 0;
|
---|
3085 | }
|
---|
3086 | _ACEOF
|
---|
3087 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
3088 |
|
---|
3089 | else
|
---|
3090 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag
|
---|
3091 | CXXFLAGS="-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_cxx_try_compile "$LINENO"; then :
|
---|
3104 | ac_cv_prog_cxx_g=yes
|
---|
3105 | fi
|
---|
3106 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3107 | fi
|
---|
3108 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3109 | fi
|
---|
3110 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3111 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag
|
---|
3112 | fi
|
---|
3113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
|
---|
3114 | $as_echo "$ac_cv_prog_cxx_g" >&6; }
|
---|
3115 | if test "$ac_test_CXXFLAGS" = set; then
|
---|
3116 | CXXFLAGS=$ac_save_CXXFLAGS
|
---|
3117 | elif test $ac_cv_prog_cxx_g = yes; then
|
---|
3118 | if test "$GXX" = yes; then
|
---|
3119 | CXXFLAGS="-g -O2"
|
---|
3120 | else
|
---|
3121 | CXXFLAGS="-g"
|
---|
3122 | fi
|
---|
3123 | else
|
---|
3124 | if test "$GXX" = yes; then
|
---|
3125 | CXXFLAGS="-O2"
|
---|
3126 | else
|
---|
3127 | CXXFLAGS=
|
---|
3128 | fi
|
---|
3129 | fi
|
---|
3130 | ac_ext=c
|
---|
3131 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3132 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3133 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3134 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3135 |
|
---|
3136 | for ac_prog in gawk mawk nawk awk
|
---|
3137 | do
|
---|
3138 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
3139 | set dummy $ac_prog; ac_word=$2
|
---|
3140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3141 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3142 | if ${ac_cv_prog_AWK+:} false; then :
|
---|
3143 | $as_echo_n "(cached) " >&6
|
---|
3144 | else
|
---|
3145 | if test -n "$AWK"; then
|
---|
3146 | ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
---|
3147 | else
|
---|
3148 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3149 | for as_dir in $PATH
|
---|
3150 | do
|
---|
3151 | IFS=$as_save_IFS
|
---|
3152 | test -z "$as_dir" && as_dir=.
|
---|
3153 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3154 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
3155 | ac_cv_prog_AWK="$ac_prog"
|
---|
3156 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3157 | break 2
|
---|
3158 | fi
|
---|
3159 | done
|
---|
3160 | done
|
---|
3161 | IFS=$as_save_IFS
|
---|
3162 |
|
---|
3163 | fi
|
---|
3164 | fi
|
---|
3165 | AWK=$ac_cv_prog_AWK
|
---|
3166 | if test -n "$AWK"; then
|
---|
3167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
|
---|
3168 | $as_echo "$AWK" >&6; }
|
---|
3169 | else
|
---|
3170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3171 | $as_echo "no" >&6; }
|
---|
3172 | fi
|
---|
3173 |
|
---|
3174 |
|
---|
3175 | test -n "$AWK" && break
|
---|
3176 | done
|
---|
3177 |
|
---|
3178 | for ac_prog in 'bison -y' byacc
|
---|
3179 | do
|
---|
3180 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
3181 | set dummy $ac_prog; ac_word=$2
|
---|
3182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3183 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3184 | if ${ac_cv_prog_YACC+:} false; then :
|
---|
3185 | $as_echo_n "(cached) " >&6
|
---|
3186 | else
|
---|
3187 | if test -n "$YACC"; then
|
---|
3188 | ac_cv_prog_YACC="$YACC" # Let the user override the test.
|
---|
3189 | else
|
---|
3190 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3191 | for as_dir in $PATH
|
---|
3192 | do
|
---|
3193 | IFS=$as_save_IFS
|
---|
3194 | test -z "$as_dir" && as_dir=.
|
---|
3195 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3196 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
3197 | ac_cv_prog_YACC="$ac_prog"
|
---|
3198 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3199 | break 2
|
---|
3200 | fi
|
---|
3201 | done
|
---|
3202 | done
|
---|
3203 | IFS=$as_save_IFS
|
---|
3204 |
|
---|
3205 | fi
|
---|
3206 | fi
|
---|
3207 | YACC=$ac_cv_prog_YACC
|
---|
3208 | if test -n "$YACC"; then
|
---|
3209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
|
---|
3210 | $as_echo "$YACC" >&6; }
|
---|
3211 | else
|
---|
3212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3213 | $as_echo "no" >&6; }
|
---|
3214 | fi
|
---|
3215 |
|
---|
3216 |
|
---|
3217 | test -n "$YACC" && break
|
---|
3218 | done
|
---|
3219 | test -n "$YACC" || YACC="yacc"
|
---|
3220 |
|
---|
3221 | ac_ext=c
|
---|
3222 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3223 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3224 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3225 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3226 | if test -n "$ac_tool_prefix"; then
|
---|
3227 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
---|
3228 | set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
---|
3229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3230 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3231 | if ${ac_cv_prog_CC+:} false; then :
|
---|
3232 | $as_echo_n "(cached) " >&6
|
---|
3233 | else
|
---|
3234 | if test -n "$CC"; then
|
---|
3235 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
3236 | else
|
---|
3237 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3238 | for as_dir in $PATH
|
---|
3239 | do
|
---|
3240 | IFS=$as_save_IFS
|
---|
3241 | test -z "$as_dir" && as_dir=.
|
---|
3242 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3243 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
3244 | ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
---|
3245 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3246 | break 2
|
---|
3247 | fi
|
---|
3248 | done
|
---|
3249 | done
|
---|
3250 | IFS=$as_save_IFS
|
---|
3251 |
|
---|
3252 | fi
|
---|
3253 | fi
|
---|
3254 | CC=$ac_cv_prog_CC
|
---|
3255 | if test -n "$CC"; then
|
---|
3256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
3257 | $as_echo "$CC" >&6; }
|
---|
3258 | else
|
---|
3259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3260 | $as_echo "no" >&6; }
|
---|
3261 | fi
|
---|
3262 |
|
---|
3263 |
|
---|
3264 | fi
|
---|
3265 | if test -z "$ac_cv_prog_CC"; then
|
---|
3266 | ac_ct_CC=$CC
|
---|
3267 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
3268 | set dummy gcc; ac_word=$2
|
---|
3269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3270 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3271 | if ${ac_cv_prog_ac_ct_CC+:} false; then :
|
---|
3272 | $as_echo_n "(cached) " >&6
|
---|
3273 | else
|
---|
3274 | if test -n "$ac_ct_CC"; then
|
---|
3275 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
3276 | else
|
---|
3277 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3278 | for as_dir in $PATH
|
---|
3279 | do
|
---|
3280 | IFS=$as_save_IFS
|
---|
3281 | test -z "$as_dir" && as_dir=.
|
---|
3282 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3283 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
3284 | ac_cv_prog_ac_ct_CC="gcc"
|
---|
3285 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3286 | break 2
|
---|
3287 | fi
|
---|
3288 | done
|
---|
3289 | done
|
---|
3290 | IFS=$as_save_IFS
|
---|
3291 |
|
---|
3292 | fi
|
---|
3293 | fi
|
---|
3294 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
3295 | if test -n "$ac_ct_CC"; then
|
---|
3296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
---|
3297 | $as_echo "$ac_ct_CC" >&6; }
|
---|
3298 | else
|
---|
3299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3300 | $as_echo "no" >&6; }
|
---|
3301 | fi
|
---|
3302 |
|
---|
3303 | if test "x$ac_ct_CC" = x; then
|
---|
3304 | CC=""
|
---|
3305 | else
|
---|
3306 | case $cross_compiling:$ac_tool_warned in
|
---|
3307 | yes:)
|
---|
3308 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
3309 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
3310 | ac_tool_warned=yes ;;
|
---|
3311 | esac
|
---|
3312 | CC=$ac_ct_CC
|
---|
3313 | fi
|
---|
3314 | else
|
---|
3315 | CC="$ac_cv_prog_CC"
|
---|
3316 | fi
|
---|
3317 |
|
---|
3318 | if test -z "$CC"; then
|
---|
3319 | if test -n "$ac_tool_prefix"; then
|
---|
3320 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
---|
3321 | set dummy ${ac_tool_prefix}cc; ac_word=$2
|
---|
3322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3323 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3324 | if ${ac_cv_prog_CC+:} false; then :
|
---|
3325 | $as_echo_n "(cached) " >&6
|
---|
3326 | else
|
---|
3327 | if test -n "$CC"; then
|
---|
3328 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
3329 | else
|
---|
3330 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3331 | for as_dir in $PATH
|
---|
3332 | do
|
---|
3333 | IFS=$as_save_IFS
|
---|
3334 | test -z "$as_dir" && as_dir=.
|
---|
3335 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3336 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
3337 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
---|
3338 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3339 | break 2
|
---|
3340 | fi
|
---|
3341 | done
|
---|
3342 | done
|
---|
3343 | IFS=$as_save_IFS
|
---|
3344 |
|
---|
3345 | fi
|
---|
3346 | fi
|
---|
3347 | CC=$ac_cv_prog_CC
|
---|
3348 | if test -n "$CC"; then
|
---|
3349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
3350 | $as_echo "$CC" >&6; }
|
---|
3351 | else
|
---|
3352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3353 | $as_echo "no" >&6; }
|
---|
3354 | fi
|
---|
3355 |
|
---|
3356 |
|
---|
3357 | fi
|
---|
3358 | fi
|
---|
3359 | if test -z "$CC"; then
|
---|
3360 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
3361 | set dummy cc; ac_word=$2
|
---|
3362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3363 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3364 | if ${ac_cv_prog_CC+:} false; then :
|
---|
3365 | $as_echo_n "(cached) " >&6
|
---|
3366 | else
|
---|
3367 | if test -n "$CC"; then
|
---|
3368 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
3369 | else
|
---|
3370 | ac_prog_rejected=no
|
---|
3371 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3372 | for as_dir in $PATH
|
---|
3373 | do
|
---|
3374 | IFS=$as_save_IFS
|
---|
3375 | test -z "$as_dir" && as_dir=.
|
---|
3376 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3377 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
3378 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
---|
3379 | ac_prog_rejected=yes
|
---|
3380 | continue
|
---|
3381 | fi
|
---|
3382 | ac_cv_prog_CC="cc"
|
---|
3383 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3384 | break 2
|
---|
3385 | fi
|
---|
3386 | done
|
---|
3387 | done
|
---|
3388 | IFS=$as_save_IFS
|
---|
3389 |
|
---|
3390 | if test $ac_prog_rejected = yes; then
|
---|
3391 | # We found a bogon in the path, so make sure we never use it.
|
---|
3392 | set dummy $ac_cv_prog_CC
|
---|
3393 | shift
|
---|
3394 | if test $# != 0; then
|
---|
3395 | # We chose a different compiler from the bogus one.
|
---|
3396 | # However, it has the same basename, so the bogon will be chosen
|
---|
3397 | # first if we set CC to just the basename; use the full file name.
|
---|
3398 | shift
|
---|
3399 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
---|
3400 | fi
|
---|
3401 | fi
|
---|
3402 | fi
|
---|
3403 | fi
|
---|
3404 | CC=$ac_cv_prog_CC
|
---|
3405 | if test -n "$CC"; then
|
---|
3406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
3407 | $as_echo "$CC" >&6; }
|
---|
3408 | else
|
---|
3409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3410 | $as_echo "no" >&6; }
|
---|
3411 | fi
|
---|
3412 |
|
---|
3413 |
|
---|
3414 | fi
|
---|
3415 | if test -z "$CC"; then
|
---|
3416 | if test -n "$ac_tool_prefix"; then
|
---|
3417 | for ac_prog in cl.exe
|
---|
3418 | do
|
---|
3419 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
3420 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
3421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3422 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3423 | if ${ac_cv_prog_CC+:} false; then :
|
---|
3424 | $as_echo_n "(cached) " >&6
|
---|
3425 | else
|
---|
3426 | if test -n "$CC"; then
|
---|
3427 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
3428 | else
|
---|
3429 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3430 | for as_dir in $PATH
|
---|
3431 | do
|
---|
3432 | IFS=$as_save_IFS
|
---|
3433 | test -z "$as_dir" && as_dir=.
|
---|
3434 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3435 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
3436 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
---|
3437 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3438 | break 2
|
---|
3439 | fi
|
---|
3440 | done
|
---|
3441 | done
|
---|
3442 | IFS=$as_save_IFS
|
---|
3443 |
|
---|
3444 | fi
|
---|
3445 | fi
|
---|
3446 | CC=$ac_cv_prog_CC
|
---|
3447 | if test -n "$CC"; then
|
---|
3448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
3449 | $as_echo "$CC" >&6; }
|
---|
3450 | else
|
---|
3451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3452 | $as_echo "no" >&6; }
|
---|
3453 | fi
|
---|
3454 |
|
---|
3455 |
|
---|
3456 | test -n "$CC" && break
|
---|
3457 | done
|
---|
3458 | fi
|
---|
3459 | if test -z "$CC"; then
|
---|
3460 | ac_ct_CC=$CC
|
---|
3461 | for ac_prog in cl.exe
|
---|
3462 | do
|
---|
3463 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
3464 | set dummy $ac_prog; ac_word=$2
|
---|
3465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3466 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3467 | if ${ac_cv_prog_ac_ct_CC+:} false; then :
|
---|
3468 | $as_echo_n "(cached) " >&6
|
---|
3469 | else
|
---|
3470 | if test -n "$ac_ct_CC"; then
|
---|
3471 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
3472 | else
|
---|
3473 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3474 | for as_dir in $PATH
|
---|
3475 | do
|
---|
3476 | IFS=$as_save_IFS
|
---|
3477 | test -z "$as_dir" && as_dir=.
|
---|
3478 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3479 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
3480 | ac_cv_prog_ac_ct_CC="$ac_prog"
|
---|
3481 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3482 | break 2
|
---|
3483 | fi
|
---|
3484 | done
|
---|
3485 | done
|
---|
3486 | IFS=$as_save_IFS
|
---|
3487 |
|
---|
3488 | fi
|
---|
3489 | fi
|
---|
3490 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
3491 | if test -n "$ac_ct_CC"; then
|
---|
3492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
---|
3493 | $as_echo "$ac_ct_CC" >&6; }
|
---|
3494 | else
|
---|
3495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3496 | $as_echo "no" >&6; }
|
---|
3497 | fi
|
---|
3498 |
|
---|
3499 |
|
---|
3500 | test -n "$ac_ct_CC" && break
|
---|
3501 | done
|
---|
3502 |
|
---|
3503 | if test "x$ac_ct_CC" = x; then
|
---|
3504 | CC=""
|
---|
3505 | else
|
---|
3506 | case $cross_compiling:$ac_tool_warned in
|
---|
3507 | yes:)
|
---|
3508 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
3509 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
3510 | ac_tool_warned=yes ;;
|
---|
3511 | esac
|
---|
3512 | CC=$ac_ct_CC
|
---|
3513 | fi
|
---|
3514 | fi
|
---|
3515 |
|
---|
3516 | fi
|
---|
3517 |
|
---|
3518 |
|
---|
3519 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
3520 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
3521 | as_fn_error $? "no acceptable C compiler found in \$PATH
|
---|
3522 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
3523 |
|
---|
3524 | # Provide some information about the compiler.
|
---|
3525 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
|
---|
3526 | set X $ac_compile
|
---|
3527 | ac_compiler=$2
|
---|
3528 | for ac_option in --version -v -V -qversion; do
|
---|
3529 | { { ac_try="$ac_compiler $ac_option >&5"
|
---|
3530 | case "(($ac_try" in
|
---|
3531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3532 | *) ac_try_echo=$ac_try;;
|
---|
3533 | esac
|
---|
3534 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
3535 | $as_echo "$ac_try_echo"; } >&5
|
---|
3536 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err
|
---|
3537 | ac_status=$?
|
---|
3538 | if test -s conftest.err; then
|
---|
3539 | sed '10a\
|
---|
3540 | ... rest of stderr output deleted ...
|
---|
3541 | 10q' conftest.err >conftest.er1
|
---|
3542 | cat conftest.er1 >&5
|
---|
3543 | fi
|
---|
3544 | rm -f conftest.er1 conftest.err
|
---|
3545 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
3546 | test $ac_status = 0; }
|
---|
3547 | done
|
---|
3548 |
|
---|
3549 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
|
---|
3550 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
|
---|
3551 | if ${ac_cv_c_compiler_gnu+:} false; then :
|
---|
3552 | $as_echo_n "(cached) " >&6
|
---|
3553 | else
|
---|
3554 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3555 | /* end confdefs.h. */
|
---|
3556 |
|
---|
3557 | int
|
---|
3558 | main ()
|
---|
3559 | {
|
---|
3560 | #ifndef __GNUC__
|
---|
3561 | choke me
|
---|
3562 | #endif
|
---|
3563 |
|
---|
3564 | ;
|
---|
3565 | return 0;
|
---|
3566 | }
|
---|
3567 | _ACEOF
|
---|
3568 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3569 | ac_compiler_gnu=yes
|
---|
3570 | else
|
---|
3571 | ac_compiler_gnu=no
|
---|
3572 | fi
|
---|
3573 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3574 | ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
---|
3575 |
|
---|
3576 | fi
|
---|
3577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
|
---|
3578 | $as_echo "$ac_cv_c_compiler_gnu" >&6; }
|
---|
3579 | if test $ac_compiler_gnu = yes; then
|
---|
3580 | GCC=yes
|
---|
3581 | else
|
---|
3582 | GCC=
|
---|
3583 | fi
|
---|
3584 | ac_test_CFLAGS=${CFLAGS+set}
|
---|
3585 | ac_save_CFLAGS=$CFLAGS
|
---|
3586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
|
---|
3587 | $as_echo_n "checking whether $CC accepts -g... " >&6; }
|
---|
3588 | if ${ac_cv_prog_cc_g+:} false; then :
|
---|
3589 | $as_echo_n "(cached) " >&6
|
---|
3590 | else
|
---|
3591 | ac_save_c_werror_flag=$ac_c_werror_flag
|
---|
3592 | ac_c_werror_flag=yes
|
---|
3593 | ac_cv_prog_cc_g=no
|
---|
3594 | CFLAGS="-g"
|
---|
3595 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3596 | /* end confdefs.h. */
|
---|
3597 |
|
---|
3598 | int
|
---|
3599 | main ()
|
---|
3600 | {
|
---|
3601 |
|
---|
3602 | ;
|
---|
3603 | return 0;
|
---|
3604 | }
|
---|
3605 | _ACEOF
|
---|
3606 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3607 | ac_cv_prog_cc_g=yes
|
---|
3608 | else
|
---|
3609 | CFLAGS=""
|
---|
3610 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3611 | /* end confdefs.h. */
|
---|
3612 |
|
---|
3613 | int
|
---|
3614 | main ()
|
---|
3615 | {
|
---|
3616 |
|
---|
3617 | ;
|
---|
3618 | return 0;
|
---|
3619 | }
|
---|
3620 | _ACEOF
|
---|
3621 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3622 |
|
---|
3623 | else
|
---|
3624 | ac_c_werror_flag=$ac_save_c_werror_flag
|
---|
3625 | CFLAGS="-g"
|
---|
3626 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3627 | /* end confdefs.h. */
|
---|
3628 |
|
---|
3629 | int
|
---|
3630 | main ()
|
---|
3631 | {
|
---|
3632 |
|
---|
3633 | ;
|
---|
3634 | return 0;
|
---|
3635 | }
|
---|
3636 | _ACEOF
|
---|
3637 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3638 | ac_cv_prog_cc_g=yes
|
---|
3639 | fi
|
---|
3640 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3641 | fi
|
---|
3642 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3643 | fi
|
---|
3644 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3645 | ac_c_werror_flag=$ac_save_c_werror_flag
|
---|
3646 | fi
|
---|
3647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
|
---|
3648 | $as_echo "$ac_cv_prog_cc_g" >&6; }
|
---|
3649 | if test "$ac_test_CFLAGS" = set; then
|
---|
3650 | CFLAGS=$ac_save_CFLAGS
|
---|
3651 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
3652 | if test "$GCC" = yes; then
|
---|
3653 | CFLAGS="-g -O2"
|
---|
3654 | else
|
---|
3655 | CFLAGS="-g"
|
---|
3656 | fi
|
---|
3657 | else
|
---|
3658 | if test "$GCC" = yes; then
|
---|
3659 | CFLAGS="-O2"
|
---|
3660 | else
|
---|
3661 | CFLAGS=
|
---|
3662 | fi
|
---|
3663 | fi
|
---|
3664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
|
---|
3665 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
|
---|
3666 | if ${ac_cv_prog_cc_c89+:} false; then :
|
---|
3667 | $as_echo_n "(cached) " >&6
|
---|
3668 | else
|
---|
3669 | ac_cv_prog_cc_c89=no
|
---|
3670 | ac_save_CC=$CC
|
---|
3671 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3672 | /* end confdefs.h. */
|
---|
3673 | #include <stdarg.h>
|
---|
3674 | #include <stdio.h>
|
---|
3675 | #include <sys/types.h>
|
---|
3676 | #include <sys/stat.h>
|
---|
3677 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
---|
3678 | struct buf { int x; };
|
---|
3679 | FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
---|
3680 | static char *e (p, i)
|
---|
3681 | char **p;
|
---|
3682 | int i;
|
---|
3683 | {
|
---|
3684 | return p[i];
|
---|
3685 | }
|
---|
3686 | static char *f (char * (*g) (char **, int), char **p, ...)
|
---|
3687 | {
|
---|
3688 | char *s;
|
---|
3689 | va_list v;
|
---|
3690 | va_start (v,p);
|
---|
3691 | s = g (p, va_arg (v,int));
|
---|
3692 | va_end (v);
|
---|
3693 | return s;
|
---|
3694 | }
|
---|
3695 |
|
---|
3696 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
---|
3697 | function prototypes and stuff, but not '\xHH' hex character constants.
|
---|
3698 | These don't provoke an error unfortunately, instead are silently treated
|
---|
3699 | as 'x'. The following induces an error, until -std is added to get
|
---|
3700 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
---|
3701 | array size at least. It's necessary to write '\x00'==0 to get something
|
---|
3702 | that's true only with -std. */
|
---|
3703 | int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
---|
3704 |
|
---|
3705 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|
---|
3706 | inside strings and character constants. */
|
---|
3707 | #define FOO(x) 'x'
|
---|
3708 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
---|
3709 |
|
---|
3710 | int test (int i, double x);
|
---|
3711 | struct s1 {int (*f) (int a);};
|
---|
3712 | struct s2 {int (*f) (double a);};
|
---|
3713 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
---|
3714 | int argc;
|
---|
3715 | char **argv;
|
---|
3716 | int
|
---|
3717 | main ()
|
---|
3718 | {
|
---|
3719 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
---|
3720 | ;
|
---|
3721 | return 0;
|
---|
3722 | }
|
---|
3723 | _ACEOF
|
---|
3724 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
|
---|
3725 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
---|
3726 | do
|
---|
3727 | CC="$ac_save_CC $ac_arg"
|
---|
3728 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3729 | ac_cv_prog_cc_c89=$ac_arg
|
---|
3730 | fi
|
---|
3731 | rm -f core conftest.err conftest.$ac_objext
|
---|
3732 | test "x$ac_cv_prog_cc_c89" != "xno" && break
|
---|
3733 | done
|
---|
3734 | rm -f conftest.$ac_ext
|
---|
3735 | CC=$ac_save_CC
|
---|
3736 |
|
---|
3737 | fi
|
---|
3738 | # AC_CACHE_VAL
|
---|
3739 | case "x$ac_cv_prog_cc_c89" in
|
---|
3740 | x)
|
---|
3741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
|
---|
3742 | $as_echo "none needed" >&6; } ;;
|
---|
3743 | xno)
|
---|
3744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
|
---|
3745 | $as_echo "unsupported" >&6; } ;;
|
---|
3746 | *)
|
---|
3747 | CC="$CC $ac_cv_prog_cc_c89"
|
---|
3748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
|
---|
3749 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
|
---|
3750 | esac
|
---|
3751 | if test "x$ac_cv_prog_cc_c89" != xno; then :
|
---|
3752 |
|
---|
3753 | fi
|
---|
3754 |
|
---|
3755 | ac_ext=c
|
---|
3756 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3757 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3758 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3759 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3760 |
|
---|
3761 | # Find a good install program. We prefer a C program (faster),
|
---|
3762 | # so one script is as good as another. But avoid the broken or
|
---|
3763 | # incompatible versions:
|
---|
3764 | # SysV /etc/install, /usr/sbin/install
|
---|
3765 | # SunOS /usr/etc/install
|
---|
3766 | # IRIX /sbin/install
|
---|
3767 | # AIX /bin/install
|
---|
3768 | # AmigaOS /C/install, which installs bootblocks on floppy discs
|
---|
3769 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
3770 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
3771 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
3772 | # OS/2's system install, which has a completely different semantic
|
---|
3773 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
3774 | # Reject install programs that cannot install multiple files.
|
---|
3775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
|
---|
3776 | $as_echo_n "checking for a BSD-compatible install... " >&6; }
|
---|
3777 | if test -z "$INSTALL"; then
|
---|
3778 | if ${ac_cv_path_install+:} false; then :
|
---|
3779 | $as_echo_n "(cached) " >&6
|
---|
3780 | else
|
---|
3781 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3782 | for as_dir in $PATH
|
---|
3783 | do
|
---|
3784 | IFS=$as_save_IFS
|
---|
3785 | test -z "$as_dir" && as_dir=.
|
---|
3786 | # Account for people who put trailing slashes in PATH elements.
|
---|
3787 | case $as_dir/ in #((
|
---|
3788 | ./ | .// | /[cC]/* | \
|
---|
3789 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
---|
3790 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
|
---|
3791 | /usr/ucb/* ) ;;
|
---|
3792 | *)
|
---|
3793 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
3794 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
3795 | # by default.
|
---|
3796 | for ac_prog in ginstall scoinst install; do
|
---|
3797 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3798 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
|
---|
3799 | if test $ac_prog = install &&
|
---|
3800 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
3801 | # AIX install. It has an incompatible calling convention.
|
---|
3802 | :
|
---|
3803 | elif test $ac_prog = install &&
|
---|
3804 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
3805 | # program-specific install script used by HP pwplus--don't use.
|
---|
3806 | :
|
---|
3807 | else
|
---|
3808 | rm -rf conftest.one conftest.two conftest.dir
|
---|
3809 | echo one > conftest.one
|
---|
3810 | echo two > conftest.two
|
---|
3811 | mkdir conftest.dir
|
---|
3812 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
|
---|
3813 | test -s conftest.one && test -s conftest.two &&
|
---|
3814 | test -s conftest.dir/conftest.one &&
|
---|
3815 | test -s conftest.dir/conftest.two
|
---|
3816 | then
|
---|
3817 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
---|
3818 | break 3
|
---|
3819 | fi
|
---|
3820 | fi
|
---|
3821 | fi
|
---|
3822 | done
|
---|
3823 | done
|
---|
3824 | ;;
|
---|
3825 | esac
|
---|
3826 |
|
---|
3827 | done
|
---|
3828 | IFS=$as_save_IFS
|
---|
3829 |
|
---|
3830 | rm -rf conftest.one conftest.two conftest.dir
|
---|
3831 |
|
---|
3832 | fi
|
---|
3833 | if test "${ac_cv_path_install+set}" = set; then
|
---|
3834 | INSTALL=$ac_cv_path_install
|
---|
3835 | else
|
---|
3836 | # As a last resort, use the slow shell script. Don't cache a
|
---|
3837 | # value for INSTALL within a source directory, because that will
|
---|
3838 | # break other packages using the cache if that directory is
|
---|
3839 | # removed, or if the value is a relative name.
|
---|
3840 | INSTALL=$ac_install_sh
|
---|
3841 | fi
|
---|
3842 | fi
|
---|
3843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
|
---|
3844 | $as_echo "$INSTALL" >&6; }
|
---|
3845 |
|
---|
3846 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
3847 | # It thinks the first close brace ends the variable substitution.
|
---|
3848 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
3849 |
|
---|
3850 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
---|
3851 |
|
---|
3852 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
3853 |
|
---|
3854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
|
---|
3855 | $as_echo_n "checking whether ln -s works... " >&6; }
|
---|
3856 | LN_S=$as_ln_s
|
---|
3857 | if test "$LN_S" = "ln -s"; then
|
---|
3858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
3859 | $as_echo "yes" >&6; }
|
---|
3860 | else
|
---|
3861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
|
---|
3862 | $as_echo "no, using $LN_S" >&6; }
|
---|
3863 | fi
|
---|
3864 |
|
---|
3865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
---|
3866 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
|
---|
3867 | set x ${MAKE-make}
|
---|
3868 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
|
---|
3869 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
|
---|
3870 | $as_echo_n "(cached) " >&6
|
---|
3871 | else
|
---|
3872 | cat >conftest.make <<\_ACEOF
|
---|
3873 | SHELL = /bin/sh
|
---|
3874 | all:
|
---|
3875 | @echo '@@@%%%=$(MAKE)=@@@%%%'
|
---|
3876 | _ACEOF
|
---|
3877 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
|
---|
3878 | case `${MAKE-make} -f conftest.make 2>/dev/null` in
|
---|
3879 | *@@@%%%=?*=@@@%%%*)
|
---|
3880 | eval ac_cv_prog_make_${ac_make}_set=yes;;
|
---|
3881 | *)
|
---|
3882 | eval ac_cv_prog_make_${ac_make}_set=no;;
|
---|
3883 | esac
|
---|
3884 | rm -f conftest.make
|
---|
3885 | fi
|
---|
3886 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
|
---|
3887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
3888 | $as_echo "yes" >&6; }
|
---|
3889 | SET_MAKE=
|
---|
3890 | else
|
---|
3891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3892 | $as_echo "no" >&6; }
|
---|
3893 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
3894 | fi
|
---|
3895 |
|
---|
3896 | if test -n "$ac_tool_prefix"; then
|
---|
3897 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
3898 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
3899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3900 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3901 | if ${ac_cv_prog_RANLIB+:} false; then :
|
---|
3902 | $as_echo_n "(cached) " >&6
|
---|
3903 | else
|
---|
3904 | if test -n "$RANLIB"; then
|
---|
3905 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
3906 | else
|
---|
3907 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3908 | for as_dir in $PATH
|
---|
3909 | do
|
---|
3910 | IFS=$as_save_IFS
|
---|
3911 | test -z "$as_dir" && as_dir=.
|
---|
3912 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3913 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
3914 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
3915 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3916 | break 2
|
---|
3917 | fi
|
---|
3918 | done
|
---|
3919 | done
|
---|
3920 | IFS=$as_save_IFS
|
---|
3921 |
|
---|
3922 | fi
|
---|
3923 | fi
|
---|
3924 | RANLIB=$ac_cv_prog_RANLIB
|
---|
3925 | if test -n "$RANLIB"; then
|
---|
3926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
|
---|
3927 | $as_echo "$RANLIB" >&6; }
|
---|
3928 | else
|
---|
3929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3930 | $as_echo "no" >&6; }
|
---|
3931 | fi
|
---|
3932 |
|
---|
3933 |
|
---|
3934 | fi
|
---|
3935 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
3936 | ac_ct_RANLIB=$RANLIB
|
---|
3937 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
3938 | set dummy ranlib; ac_word=$2
|
---|
3939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3940 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3941 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
|
---|
3942 | $as_echo_n "(cached) " >&6
|
---|
3943 | else
|
---|
3944 | if test -n "$ac_ct_RANLIB"; then
|
---|
3945 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
---|
3946 | else
|
---|
3947 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3948 | for as_dir in $PATH
|
---|
3949 | do
|
---|
3950 | IFS=$as_save_IFS
|
---|
3951 | test -z "$as_dir" && as_dir=.
|
---|
3952 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3953 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
3954 | ac_cv_prog_ac_ct_RANLIB="ranlib"
|
---|
3955 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3956 | break 2
|
---|
3957 | fi
|
---|
3958 | done
|
---|
3959 | done
|
---|
3960 | IFS=$as_save_IFS
|
---|
3961 |
|
---|
3962 | fi
|
---|
3963 | fi
|
---|
3964 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
---|
3965 | if test -n "$ac_ct_RANLIB"; then
|
---|
3966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
|
---|
3967 | $as_echo "$ac_ct_RANLIB" >&6; }
|
---|
3968 | else
|
---|
3969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3970 | $as_echo "no" >&6; }
|
---|
3971 | fi
|
---|
3972 |
|
---|
3973 | if test "x$ac_ct_RANLIB" = x; then
|
---|
3974 | RANLIB=":"
|
---|
3975 | else
|
---|
3976 | case $cross_compiling:$ac_tool_warned in
|
---|
3977 | yes:)
|
---|
3978 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
3979 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
3980 | ac_tool_warned=yes ;;
|
---|
3981 | esac
|
---|
3982 | RANLIB=$ac_ct_RANLIB
|
---|
3983 | fi
|
---|
3984 | else
|
---|
3985 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
3986 | fi
|
---|
3987 |
|
---|
3988 | if test $ENABLE_JAVA = "1" ; then
|
---|
3989 |
|
---|
3990 |
|
---|
3991 | if test "x$JAVA" = x ; then
|
---|
3992 | if test x$JAVAPREFIX = x; then
|
---|
3993 | test x$JAVA = x && for ac_prog in java$EXEEXT
|
---|
3994 | do
|
---|
3995 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
3996 | set dummy $ac_prog; ac_word=$2
|
---|
3997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3998 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3999 | if ${ac_cv_prog_JAVA+:} false; then :
|
---|
4000 | $as_echo_n "(cached) " >&6
|
---|
4001 | else
|
---|
4002 | if test -n "$JAVA"; then
|
---|
4003 | ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
|
---|
4004 | else
|
---|
4005 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4006 | for as_dir in $PATH
|
---|
4007 | do
|
---|
4008 | IFS=$as_save_IFS
|
---|
4009 | test -z "$as_dir" && as_dir=.
|
---|
4010 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4011 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
4012 | ac_cv_prog_JAVA="$ac_prog"
|
---|
4013 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
4014 | break 2
|
---|
4015 | fi
|
---|
4016 | done
|
---|
4017 | done
|
---|
4018 | IFS=$as_save_IFS
|
---|
4019 |
|
---|
4020 | fi
|
---|
4021 | fi
|
---|
4022 | JAVA=$ac_cv_prog_JAVA
|
---|
4023 | if test -n "$JAVA"; then
|
---|
4024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
|
---|
4025 | $as_echo "$JAVA" >&6; }
|
---|
4026 | else
|
---|
4027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4028 | $as_echo "no" >&6; }
|
---|
4029 | fi
|
---|
4030 |
|
---|
4031 |
|
---|
4032 | test -n "$JAVA" && break
|
---|
4033 | done
|
---|
4034 |
|
---|
4035 | else
|
---|
4036 | test x$JAVA = x && for ac_prog in java$EXEEXT
|
---|
4037 | do
|
---|
4038 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
4039 | set dummy $ac_prog; ac_word=$2
|
---|
4040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
4041 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
4042 | if ${ac_cv_prog_JAVA+:} false; then :
|
---|
4043 | $as_echo_n "(cached) " >&6
|
---|
4044 | else
|
---|
4045 | if test -n "$JAVA"; then
|
---|
4046 | ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
|
---|
4047 | else
|
---|
4048 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4049 | for as_dir in $PATH
|
---|
4050 | do
|
---|
4051 | IFS=$as_save_IFS
|
---|
4052 | test -z "$as_dir" && as_dir=.
|
---|
4053 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4054 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
4055 | ac_cv_prog_JAVA="$ac_prog"
|
---|
4056 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
4057 | break 2
|
---|
4058 | fi
|
---|
4059 | done
|
---|
4060 | done
|
---|
4061 | IFS=$as_save_IFS
|
---|
4062 |
|
---|
4063 | fi
|
---|
4064 | fi
|
---|
4065 | JAVA=$ac_cv_prog_JAVA
|
---|
4066 | if test -n "$JAVA"; then
|
---|
4067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
|
---|
4068 | $as_echo "$JAVA" >&6; }
|
---|
4069 | else
|
---|
4070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4071 | $as_echo "no" >&6; }
|
---|
4072 | fi
|
---|
4073 |
|
---|
4074 |
|
---|
4075 | test -n "$JAVA" && break
|
---|
4076 | done
|
---|
4077 | test -n "$JAVA" || JAVA="$JAVAPREFIX"
|
---|
4078 |
|
---|
4079 | fi
|
---|
4080 | test x$JAVA = x && as_fn_error $? "no acceptable Java virtual machine found in \$PATH" "$LINENO" 5
|
---|
4081 | fi
|
---|
4082 |
|
---|
4083 |
|
---|
4084 | # Extract the first word of "uudecode$EXEEXT", so it can be a program name with args.
|
---|
4085 | set dummy uudecode$EXEEXT; ac_word=$2
|
---|
4086 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
4087 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
4088 | if ${ac_cv_prog_uudecode+:} false; then :
|
---|
4089 | $as_echo_n "(cached) " >&6
|
---|
4090 | else
|
---|
4091 | if test -n "$uudecode"; then
|
---|
4092 | ac_cv_prog_uudecode="$uudecode" # Let the user override the test.
|
---|
4093 | else
|
---|
4094 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4095 | for as_dir in $PATH
|
---|
4096 | do
|
---|
4097 | IFS=$as_save_IFS
|
---|
4098 | test -z "$as_dir" && as_dir=.
|
---|
4099 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4100 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
4101 | ac_cv_prog_uudecode="yes"
|
---|
4102 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
4103 | break 2
|
---|
4104 | fi
|
---|
4105 | done
|
---|
4106 | done
|
---|
4107 | IFS=$as_save_IFS
|
---|
4108 |
|
---|
4109 | fi
|
---|
4110 | fi
|
---|
4111 | uudecode=$ac_cv_prog_uudecode
|
---|
4112 | if test -n "$uudecode"; then
|
---|
4113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $uudecode" >&5
|
---|
4114 | $as_echo "$uudecode" >&6; }
|
---|
4115 | else
|
---|
4116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4117 | $as_echo "no" >&6; }
|
---|
4118 | fi
|
---|
4119 |
|
---|
4120 |
|
---|
4121 | if test x$uudecode = xyes; then
|
---|
4122 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if uudecode can decode base 64 file" >&5
|
---|
4123 | $as_echo_n "checking if uudecode can decode base 64 file... " >&6; }
|
---|
4124 | if ${ac_cv_prog_uudecode_base64+:} false; then :
|
---|
4125 | $as_echo_n "(cached) " >&6
|
---|
4126 | else
|
---|
4127 |
|
---|
4128 | cat << \EOF > Test.uue
|
---|
4129 | begin-base64 644 Test.class
|
---|
4130 | yv66vgADAC0AFQcAAgEABFRlc3QHAAQBABBqYXZhL2xhbmcvT2JqZWN0AQAE
|
---|
4131 | bWFpbgEAFihbTGphdmEvbGFuZy9TdHJpbmc7KVYBAARDb2RlAQAPTGluZU51
|
---|
4132 | bWJlclRhYmxlDAAKAAsBAARleGl0AQAEKEkpVgoADQAJBwAOAQAQamF2YS9s
|
---|
4133 | YW5nL1N5c3RlbQEABjxpbml0PgEAAygpVgwADwAQCgADABEBAApTb3VyY2VG
|
---|
4134 | aWxlAQAJVGVzdC5qYXZhACEAAQADAAAAAAACAAkABQAGAAEABwAAACEAAQAB
|
---|
4135 | AAAABQO4AAyxAAAAAQAIAAAACgACAAAACgAEAAsAAQAPABAAAQAHAAAAIQAB
|
---|
4136 | AAEAAAAFKrcAErEAAAABAAgAAAAKAAIAAAAEAAQABAABABMAAAACABQ=
|
---|
4137 | ====
|
---|
4138 | EOF
|
---|
4139 | if uudecode$EXEEXT Test.uue; then
|
---|
4140 | ac_cv_prog_uudecode_base64=yes
|
---|
4141 | else
|
---|
4142 | echo "configure: 4142: uudecode had trouble decoding base 64 file 'Test.uue'" >&5
|
---|
4143 | echo "configure: failed file was:" >&5
|
---|
4144 | cat Test.uue >&5
|
---|
4145 | ac_cv_prog_uudecode_base64=no
|
---|
4146 | fi
|
---|
4147 | rm -f Test.uue
|
---|
4148 | fi
|
---|
4149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_uudecode_base64" >&5
|
---|
4150 | $as_echo "$ac_cv_prog_uudecode_base64" >&6; }
|
---|
4151 | fi
|
---|
4152 | if test x$ac_cv_prog_uudecode_base64 != xyes; then
|
---|
4153 | rm -f Test.class
|
---|
4154 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: I have to compile Test.class from scratch" >&5
|
---|
4155 | $as_echo "$as_me: WARNING: I have to compile Test.class from scratch" >&2;}
|
---|
4156 | if test x$ac_cv_prog_javac_works = xno; then
|
---|
4157 | as_fn_error $? "Cannot compile java source. $JAVAC does not work properly" "$LINENO" 5
|
---|
4158 | fi
|
---|
4159 | if test x$ac_cv_prog_javac_works = x; then
|
---|
4160 |
|
---|
4161 | if test "x$JAVAC" = x ; then
|
---|
4162 | if test "x$JAVAPREFIX" = x; then
|
---|
4163 | test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
|
---|
4164 | do
|
---|
4165 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
4166 | set dummy $ac_prog; ac_word=$2
|
---|
4167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
4168 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
4169 | if ${ac_cv_prog_JAVAC+:} false; then :
|
---|
4170 | $as_echo_n "(cached) " >&6
|
---|
4171 | else
|
---|
4172 | if test -n "$JAVAC"; then
|
---|
4173 | ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
|
---|
4174 | else
|
---|
4175 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4176 | for as_dir in $PATH
|
---|
4177 | do
|
---|
4178 | IFS=$as_save_IFS
|
---|
4179 | test -z "$as_dir" && as_dir=.
|
---|
4180 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4181 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
4182 | ac_cv_prog_JAVAC="$ac_prog"
|
---|
4183 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
4184 | break 2
|
---|
4185 | fi
|
---|
4186 | done
|
---|
4187 | done
|
---|
4188 | IFS=$as_save_IFS
|
---|
4189 |
|
---|
4190 | fi
|
---|
4191 | fi
|
---|
4192 | JAVAC=$ac_cv_prog_JAVAC
|
---|
4193 | if test -n "$JAVAC"; then
|
---|
4194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
|
---|
4195 | $as_echo "$JAVAC" >&6; }
|
---|
4196 | else
|
---|
4197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4198 | $as_echo "no" >&6; }
|
---|
4199 | fi
|
---|
4200 |
|
---|
4201 |
|
---|
4202 | test -n "$JAVAC" && break
|
---|
4203 | done
|
---|
4204 |
|
---|
4205 | else
|
---|
4206 | test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
|
---|
4207 | do
|
---|
4208 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
4209 | set dummy $ac_prog; ac_word=$2
|
---|
4210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
4211 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
4212 | if ${ac_cv_prog_JAVAC+:} false; then :
|
---|
4213 | $as_echo_n "(cached) " >&6
|
---|
4214 | else
|
---|
4215 | if test -n "$JAVAC"; then
|
---|
4216 | ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
|
---|
4217 | else
|
---|
4218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4219 | for as_dir in $PATH
|
---|
4220 | do
|
---|
4221 | IFS=$as_save_IFS
|
---|
4222 | test -z "$as_dir" && as_dir=.
|
---|
4223 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4224 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
4225 | ac_cv_prog_JAVAC="$ac_prog"
|
---|
4226 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
4227 | break 2
|
---|
4228 | fi
|
---|
4229 | done
|
---|
4230 | done
|
---|
4231 | IFS=$as_save_IFS
|
---|
4232 |
|
---|
4233 | fi
|
---|
4234 | fi
|
---|
4235 | JAVAC=$ac_cv_prog_JAVAC
|
---|
4236 | if test -n "$JAVAC"; then
|
---|
4237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
|
---|
4238 | $as_echo "$JAVAC" >&6; }
|
---|
4239 | else
|
---|
4240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4241 | $as_echo "no" >&6; }
|
---|
4242 | fi
|
---|
4243 |
|
---|
4244 |
|
---|
4245 | test -n "$JAVAC" && break
|
---|
4246 | done
|
---|
4247 | test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
|
---|
4248 |
|
---|
4249 | fi
|
---|
4250 | test "x$JAVAC" = x && as_fn_error $? "no acceptable Java compiler found in \$PATH" "$LINENO" 5
|
---|
4251 | else
|
---|
4252 | echo "Checking for javac... $JAVAC"
|
---|
4253 | fi
|
---|
4254 |
|
---|
4255 |
|
---|
4256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5
|
---|
4257 | $as_echo_n "checking if $JAVAC works... " >&6; }
|
---|
4258 | if ${ac_cv_prog_javac_works+:} false; then :
|
---|
4259 | $as_echo_n "(cached) " >&6
|
---|
4260 | else
|
---|
4261 |
|
---|
4262 | JAVA_TEST=Test.java
|
---|
4263 | CLASS_TEST=Test.class
|
---|
4264 | cat << \EOF > $JAVA_TEST
|
---|
4265 | /* #line 4265 "configure" */
|
---|
4266 | public class Test {
|
---|
4267 | }
|
---|
4268 | EOF
|
---|
4269 | if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
|
---|
4270 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
---|
4271 | (eval $ac_try) 2>&5
|
---|
4272 | ac_status=$?
|
---|
4273 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
4274 | test $ac_status = 0; }; } >/dev/null 2>&1; then
|
---|
4275 | ac_cv_prog_javac_works=yes
|
---|
4276 | else
|
---|
4277 | as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
|
---|
4278 | echo "configure: failed program was:" >&5
|
---|
4279 | cat $JAVA_TEST >&5
|
---|
4280 | fi
|
---|
4281 | rm -f $JAVA_TEST $CLASS_TEST
|
---|
4282 |
|
---|
4283 | fi
|
---|
4284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5
|
---|
4285 | $as_echo "$ac_cv_prog_javac_works" >&6; }
|
---|
4286 | if test "x$JAVACFLAGS" = x ; then
|
---|
4287 | JAVACFLAGS="-source 1.4 -target 1.4"
|
---|
4288 | fi
|
---|
4289 |
|
---|
4290 |
|
---|
4291 |
|
---|
4292 | fi
|
---|
4293 | fi
|
---|
4294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVA works" >&5
|
---|
4295 | $as_echo_n "checking if $JAVA works... " >&6; }
|
---|
4296 | if ${ac_cv_prog_java_works+:} false; then :
|
---|
4297 | $as_echo_n "(cached) " >&6
|
---|
4298 | else
|
---|
4299 |
|
---|
4300 | JAVA_TEST=Test.java
|
---|
4301 | CLASS_TEST=Test.class
|
---|
4302 | TEST=Test
|
---|
4303 | cat << \EOF > $JAVA_TEST
|
---|
4304 | /* [#]line 4304 "configure" */
|
---|
4305 | public class Test {
|
---|
4306 | public static void main (String args[]) {
|
---|
4307 | System.exit (0);
|
---|
4308 | } }
|
---|
4309 | EOF
|
---|
4310 | if test x$ac_cv_prog_uudecode_base64 != xyes; then
|
---|
4311 | if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
|
---|
4312 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
---|
4313 | (eval $ac_try) 2>&5
|
---|
4314 | ac_status=$?
|
---|
4315 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
4316 | test $ac_status = 0; }; } && test -s $CLASS_TEST; then
|
---|
4317 | :
|
---|
4318 | else
|
---|
4319 | echo "configure: failed program was:" >&5
|
---|
4320 | cat $JAVA_TEST >&5
|
---|
4321 | as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
|
---|
4322 | fi
|
---|
4323 | fi
|
---|
4324 | if { ac_try='$JAVA $JAVAFLAGS $TEST'
|
---|
4325 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
---|
4326 | (eval $ac_try) 2>&5
|
---|
4327 | ac_status=$?
|
---|
4328 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
4329 | test $ac_status = 0; }; } >/dev/null 2>&1; then
|
---|
4330 | ac_cv_prog_java_works=yes
|
---|
4331 | else
|
---|
4332 | echo "configure: failed program was:" >&5
|
---|
4333 | cat $JAVA_TEST >&5
|
---|
4334 | as_fn_error $? "The Java VM $JAVA failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
|
---|
4335 | fi
|
---|
4336 | rm -fr $JAVA_TEST $CLASS_TEST Test.uue
|
---|
4337 |
|
---|
4338 | fi
|
---|
4339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_java_works" >&5
|
---|
4340 | $as_echo "$ac_cv_prog_java_works" >&6; }
|
---|
4341 |
|
---|
4342 |
|
---|
4343 |
|
---|
4344 |
|
---|
4345 | if test "x$JAVAC" = x ; then
|
---|
4346 | if test "x$JAVAPREFIX" = x; then
|
---|
4347 | test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
|
---|
4348 | do
|
---|
4349 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
4350 | set dummy $ac_prog; ac_word=$2
|
---|
4351 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
4352 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
4353 | if ${ac_cv_prog_JAVAC+:} false; then :
|
---|
4354 | $as_echo_n "(cached) " >&6
|
---|
4355 | else
|
---|
4356 | if test -n "$JAVAC"; then
|
---|
4357 | ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
|
---|
4358 | else
|
---|
4359 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4360 | for as_dir in $PATH
|
---|
4361 | do
|
---|
4362 | IFS=$as_save_IFS
|
---|
4363 | test -z "$as_dir" && as_dir=.
|
---|
4364 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4365 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
4366 | ac_cv_prog_JAVAC="$ac_prog"
|
---|
4367 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
4368 | break 2
|
---|
4369 | fi
|
---|
4370 | done
|
---|
4371 | done
|
---|
4372 | IFS=$as_save_IFS
|
---|
4373 |
|
---|
4374 | fi
|
---|
4375 | fi
|
---|
4376 | JAVAC=$ac_cv_prog_JAVAC
|
---|
4377 | if test -n "$JAVAC"; then
|
---|
4378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
|
---|
4379 | $as_echo "$JAVAC" >&6; }
|
---|
4380 | else
|
---|
4381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4382 | $as_echo "no" >&6; }
|
---|
4383 | fi
|
---|
4384 |
|
---|
4385 |
|
---|
4386 | test -n "$JAVAC" && break
|
---|
4387 | done
|
---|
4388 |
|
---|
4389 | else
|
---|
4390 | test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
|
---|
4391 | do
|
---|
4392 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
4393 | set dummy $ac_prog; ac_word=$2
|
---|
4394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
4395 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
4396 | if ${ac_cv_prog_JAVAC+:} false; then :
|
---|
4397 | $as_echo_n "(cached) " >&6
|
---|
4398 | else
|
---|
4399 | if test -n "$JAVAC"; then
|
---|
4400 | ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
|
---|
4401 | else
|
---|
4402 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4403 | for as_dir in $PATH
|
---|
4404 | do
|
---|
4405 | IFS=$as_save_IFS
|
---|
4406 | test -z "$as_dir" && as_dir=.
|
---|
4407 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4408 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
4409 | ac_cv_prog_JAVAC="$ac_prog"
|
---|
4410 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
4411 | break 2
|
---|
4412 | fi
|
---|
4413 | done
|
---|
4414 | done
|
---|
4415 | IFS=$as_save_IFS
|
---|
4416 |
|
---|
4417 | fi
|
---|
4418 | fi
|
---|
4419 | JAVAC=$ac_cv_prog_JAVAC
|
---|
4420 | if test -n "$JAVAC"; then
|
---|
4421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
|
---|
4422 | $as_echo "$JAVAC" >&6; }
|
---|
4423 | else
|
---|
4424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4425 | $as_echo "no" >&6; }
|
---|
4426 | fi
|
---|
4427 |
|
---|
4428 |
|
---|
4429 | test -n "$JAVAC" && break
|
---|
4430 | done
|
---|
4431 | test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
|
---|
4432 |
|
---|
4433 | fi
|
---|
4434 | test "x$JAVAC" = x && as_fn_error $? "no acceptable Java compiler found in \$PATH" "$LINENO" 5
|
---|
4435 | else
|
---|
4436 | echo "Checking for javac... $JAVAC"
|
---|
4437 | fi
|
---|
4438 |
|
---|
4439 |
|
---|
4440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5
|
---|
4441 | $as_echo_n "checking if $JAVAC works... " >&6; }
|
---|
4442 | if ${ac_cv_prog_javac_works+:} false; then :
|
---|
4443 | $as_echo_n "(cached) " >&6
|
---|
4444 | else
|
---|
4445 |
|
---|
4446 | JAVA_TEST=Test.java
|
---|
4447 | CLASS_TEST=Test.class
|
---|
4448 | cat << \EOF > $JAVA_TEST
|
---|
4449 | /* #line 4449 "configure" */
|
---|
4450 | public class Test {
|
---|
4451 | }
|
---|
4452 | EOF
|
---|
4453 | if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
|
---|
4454 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
---|
4455 | (eval $ac_try) 2>&5
|
---|
4456 | ac_status=$?
|
---|
4457 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
4458 | test $ac_status = 0; }; } >/dev/null 2>&1; then
|
---|
4459 | ac_cv_prog_javac_works=yes
|
---|
4460 | else
|
---|
4461 | as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
|
---|
4462 | echo "configure: failed program was:" >&5
|
---|
4463 | cat $JAVA_TEST >&5
|
---|
4464 | fi
|
---|
4465 | rm -f $JAVA_TEST $CLASS_TEST
|
---|
4466 |
|
---|
4467 | fi
|
---|
4468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5
|
---|
4469 | $as_echo "$ac_cv_prog_javac_works" >&6; }
|
---|
4470 | if test "x$JAVACFLAGS" = x ; then
|
---|
4471 | JAVACFLAGS="-source 1.4 -target 1.4"
|
---|
4472 | fi
|
---|
4473 |
|
---|
4474 |
|
---|
4475 |
|
---|
4476 | fi
|
---|
4477 |
|
---|
4478 |
|
---|
4479 | ac_ext=c
|
---|
4480 | ac_cpp='$CPP $CPPFLAGS'
|
---|
4481 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
4482 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
4483 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
4484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
|
---|
4485 | $as_echo_n "checking how to run the C preprocessor... " >&6; }
|
---|
4486 | # On Suns, sometimes $CPP names a directory.
|
---|
4487 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
4488 | CPP=
|
---|
4489 | fi
|
---|
4490 | if test -z "$CPP"; then
|
---|
4491 | if ${ac_cv_prog_CPP+:} false; then :
|
---|
4492 | $as_echo_n "(cached) " >&6
|
---|
4493 | else
|
---|
4494 | # Double quotes because CPP needs to be expanded
|
---|
4495 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
---|
4496 | do
|
---|
4497 | ac_preproc_ok=false
|
---|
4498 | for ac_c_preproc_warn_flag in '' yes
|
---|
4499 | do
|
---|
4500 | # Use a header file that comes with gcc, so configuring glibc
|
---|
4501 | # with a fresh cross-compiler works.
|
---|
4502 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
4503 | # <limits.h> exists even on freestanding compilers.
|
---|
4504 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
4505 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
4506 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4507 | /* end confdefs.h. */
|
---|
4508 | #ifdef __STDC__
|
---|
4509 | # include <limits.h>
|
---|
4510 | #else
|
---|
4511 | # include <assert.h>
|
---|
4512 | #endif
|
---|
4513 | Syntax error
|
---|
4514 | _ACEOF
|
---|
4515 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
4516 |
|
---|
4517 | else
|
---|
4518 | # Broken: fails on valid input.
|
---|
4519 | continue
|
---|
4520 | fi
|
---|
4521 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
4522 |
|
---|
4523 | # OK, works on sane cases. Now check whether nonexistent headers
|
---|
4524 | # can be detected and how.
|
---|
4525 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4526 | /* end confdefs.h. */
|
---|
4527 | #include <ac_nonexistent.h>
|
---|
4528 | _ACEOF
|
---|
4529 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
4530 | # Broken: success on invalid input.
|
---|
4531 | continue
|
---|
4532 | else
|
---|
4533 | # Passes both tests.
|
---|
4534 | ac_preproc_ok=:
|
---|
4535 | break
|
---|
4536 | fi
|
---|
4537 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
4538 |
|
---|
4539 | done
|
---|
4540 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
4541 | rm -f conftest.i conftest.err conftest.$ac_ext
|
---|
4542 | if $ac_preproc_ok; then :
|
---|
4543 | break
|
---|
4544 | fi
|
---|
4545 |
|
---|
4546 | done
|
---|
4547 | ac_cv_prog_CPP=$CPP
|
---|
4548 |
|
---|
4549 | fi
|
---|
4550 | CPP=$ac_cv_prog_CPP
|
---|
4551 | else
|
---|
4552 | ac_cv_prog_CPP=$CPP
|
---|
4553 | fi
|
---|
4554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
|
---|
4555 | $as_echo "$CPP" >&6; }
|
---|
4556 | ac_preproc_ok=false
|
---|
4557 | for ac_c_preproc_warn_flag in '' yes
|
---|
4558 | do
|
---|
4559 | # Use a header file that comes with gcc, so configuring glibc
|
---|
4560 | # with a fresh cross-compiler works.
|
---|
4561 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
4562 | # <limits.h> exists even on freestanding compilers.
|
---|
4563 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
4564 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
4565 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4566 | /* end confdefs.h. */
|
---|
4567 | #ifdef __STDC__
|
---|
4568 | # include <limits.h>
|
---|
4569 | #else
|
---|
4570 | # include <assert.h>
|
---|
4571 | #endif
|
---|
4572 | Syntax error
|
---|
4573 | _ACEOF
|
---|
4574 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
4575 |
|
---|
4576 | else
|
---|
4577 | # Broken: fails on valid input.
|
---|
4578 | continue
|
---|
4579 | fi
|
---|
4580 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
4581 |
|
---|
4582 | # OK, works on sane cases. Now check whether nonexistent headers
|
---|
4583 | # can be detected and how.
|
---|
4584 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4585 | /* end confdefs.h. */
|
---|
4586 | #include <ac_nonexistent.h>
|
---|
4587 | _ACEOF
|
---|
4588 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
4589 | # Broken: success on invalid input.
|
---|
4590 | continue
|
---|
4591 | else
|
---|
4592 | # Passes both tests.
|
---|
4593 | ac_preproc_ok=:
|
---|
4594 | break
|
---|
4595 | fi
|
---|
4596 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
4597 |
|
---|
4598 | done
|
---|
4599 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
4600 | rm -f conftest.i conftest.err conftest.$ac_ext
|
---|
4601 | if $ac_preproc_ok; then :
|
---|
4602 |
|
---|
4603 | else
|
---|
4604 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
4605 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
4606 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
|
---|
4607 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
4608 | fi
|
---|
4609 |
|
---|
4610 | ac_ext=c
|
---|
4611 | ac_cpp='$CPP $CPPFLAGS'
|
---|
4612 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
4613 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
4614 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
4615 |
|
---|
4616 |
|
---|
4617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
|
---|
4618 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
|
---|
4619 | if ${ac_cv_path_GREP+:} false; then :
|
---|
4620 | $as_echo_n "(cached) " >&6
|
---|
4621 | else
|
---|
4622 | if test -z "$GREP"; then
|
---|
4623 | ac_path_GREP_found=false
|
---|
4624 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
4625 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4626 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
4627 | do
|
---|
4628 | IFS=$as_save_IFS
|
---|
4629 | test -z "$as_dir" && as_dir=.
|
---|
4630 | for ac_prog in grep ggrep; do
|
---|
4631 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4632 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
|
---|
4633 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
|
---|
4634 | # Check for GNU ac_path_GREP and select it if it is found.
|
---|
4635 | # Check for GNU $ac_path_GREP
|
---|
4636 | case `"$ac_path_GREP" --version 2>&1` in
|
---|
4637 | *GNU*)
|
---|
4638 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
|
---|
4639 | *)
|
---|
4640 | ac_count=0
|
---|
4641 | $as_echo_n 0123456789 >"conftest.in"
|
---|
4642 | while :
|
---|
4643 | do
|
---|
4644 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
4645 | mv "conftest.tmp" "conftest.in"
|
---|
4646 | cp "conftest.in" "conftest.nl"
|
---|
4647 | $as_echo 'GREP' >> "conftest.nl"
|
---|
4648 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
4649 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
4650 | as_fn_arith $ac_count + 1 && ac_count=$as_val
|
---|
4651 | if test $ac_count -gt ${ac_path_GREP_max-0}; then
|
---|
4652 | # Best one so far, save it but keep looking for a better one
|
---|
4653 | ac_cv_path_GREP="$ac_path_GREP"
|
---|
4654 | ac_path_GREP_max=$ac_count
|
---|
4655 | fi
|
---|
4656 | # 10*(2^10) chars as input seems more than enough
|
---|
4657 | test $ac_count -gt 10 && break
|
---|
4658 | done
|
---|
4659 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
4660 | esac
|
---|
4661 |
|
---|
4662 | $ac_path_GREP_found && break 3
|
---|
4663 | done
|
---|
4664 | done
|
---|
4665 | done
|
---|
4666 | IFS=$as_save_IFS
|
---|
4667 | if test -z "$ac_cv_path_GREP"; then
|
---|
4668 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
---|
4669 | fi
|
---|
4670 | else
|
---|
4671 | ac_cv_path_GREP=$GREP
|
---|
4672 | fi
|
---|
4673 |
|
---|
4674 | fi
|
---|
4675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
|
---|
4676 | $as_echo "$ac_cv_path_GREP" >&6; }
|
---|
4677 | GREP="$ac_cv_path_GREP"
|
---|
4678 |
|
---|
4679 |
|
---|
4680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
|
---|
4681 | $as_echo_n "checking for egrep... " >&6; }
|
---|
4682 | if ${ac_cv_path_EGREP+:} false; then :
|
---|
4683 | $as_echo_n "(cached) " >&6
|
---|
4684 | else
|
---|
4685 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
|
---|
4686 | then ac_cv_path_EGREP="$GREP -E"
|
---|
4687 | else
|
---|
4688 | if test -z "$EGREP"; then
|
---|
4689 | ac_path_EGREP_found=false
|
---|
4690 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
4691 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4692 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
4693 | do
|
---|
4694 | IFS=$as_save_IFS
|
---|
4695 | test -z "$as_dir" && as_dir=.
|
---|
4696 | for ac_prog in egrep; do
|
---|
4697 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4698 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
|
---|
4699 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
|
---|
4700 | # Check for GNU ac_path_EGREP and select it if it is found.
|
---|
4701 | # Check for GNU $ac_path_EGREP
|
---|
4702 | case `"$ac_path_EGREP" --version 2>&1` in
|
---|
4703 | *GNU*)
|
---|
4704 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
|
---|
4705 | *)
|
---|
4706 | ac_count=0
|
---|
4707 | $as_echo_n 0123456789 >"conftest.in"
|
---|
4708 | while :
|
---|
4709 | do
|
---|
4710 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
4711 | mv "conftest.tmp" "conftest.in"
|
---|
4712 | cp "conftest.in" "conftest.nl"
|
---|
4713 | $as_echo 'EGREP' >> "conftest.nl"
|
---|
4714 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
4715 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
4716 | as_fn_arith $ac_count + 1 && ac_count=$as_val
|
---|
4717 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then
|
---|
4718 | # Best one so far, save it but keep looking for a better one
|
---|
4719 | ac_cv_path_EGREP="$ac_path_EGREP"
|
---|
4720 | ac_path_EGREP_max=$ac_count
|
---|
4721 | fi
|
---|
4722 | # 10*(2^10) chars as input seems more than enough
|
---|
4723 | test $ac_count -gt 10 && break
|
---|
4724 | done
|
---|
4725 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
4726 | esac
|
---|
4727 |
|
---|
4728 | $ac_path_EGREP_found && break 3
|
---|
4729 | done
|
---|
4730 | done
|
---|
4731 | done
|
---|
4732 | IFS=$as_save_IFS
|
---|
4733 | if test -z "$ac_cv_path_EGREP"; then
|
---|
4734 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
---|
4735 | fi
|
---|
4736 | else
|
---|
4737 | ac_cv_path_EGREP=$EGREP
|
---|
4738 | fi
|
---|
4739 |
|
---|
4740 | fi
|
---|
4741 | fi
|
---|
4742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
|
---|
4743 | $as_echo "$ac_cv_path_EGREP" >&6; }
|
---|
4744 | EGREP="$ac_cv_path_EGREP"
|
---|
4745 |
|
---|
4746 |
|
---|
4747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
|
---|
4748 | $as_echo_n "checking for ANSI C header files... " >&6; }
|
---|
4749 | if ${ac_cv_header_stdc+:} false; then :
|
---|
4750 | $as_echo_n "(cached) " >&6
|
---|
4751 | else
|
---|
4752 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4753 | /* end confdefs.h. */
|
---|
4754 | #include <stdlib.h>
|
---|
4755 | #include <stdarg.h>
|
---|
4756 | #include <string.h>
|
---|
4757 | #include <float.h>
|
---|
4758 |
|
---|
4759 | int
|
---|
4760 | main ()
|
---|
4761 | {
|
---|
4762 |
|
---|
4763 | ;
|
---|
4764 | return 0;
|
---|
4765 | }
|
---|
4766 | _ACEOF
|
---|
4767 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
4768 | ac_cv_header_stdc=yes
|
---|
4769 | else
|
---|
4770 | ac_cv_header_stdc=no
|
---|
4771 | fi
|
---|
4772 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4773 |
|
---|
4774 | if test $ac_cv_header_stdc = yes; then
|
---|
4775 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
4776 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4777 | /* end confdefs.h. */
|
---|
4778 | #include <string.h>
|
---|
4779 |
|
---|
4780 | _ACEOF
|
---|
4781 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
4782 | $EGREP "memchr" >/dev/null 2>&1; then :
|
---|
4783 |
|
---|
4784 | else
|
---|
4785 | ac_cv_header_stdc=no
|
---|
4786 | fi
|
---|
4787 | rm -f conftest*
|
---|
4788 |
|
---|
4789 | fi
|
---|
4790 |
|
---|
4791 | if test $ac_cv_header_stdc = yes; then
|
---|
4792 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
4793 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4794 | /* end confdefs.h. */
|
---|
4795 | #include <stdlib.h>
|
---|
4796 |
|
---|
4797 | _ACEOF
|
---|
4798 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
4799 | $EGREP "free" >/dev/null 2>&1; then :
|
---|
4800 |
|
---|
4801 | else
|
---|
4802 | ac_cv_header_stdc=no
|
---|
4803 | fi
|
---|
4804 | rm -f conftest*
|
---|
4805 |
|
---|
4806 | fi
|
---|
4807 |
|
---|
4808 | if test $ac_cv_header_stdc = yes; then
|
---|
4809 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
4810 | if test "$cross_compiling" = yes; then :
|
---|
4811 | :
|
---|
4812 | else
|
---|
4813 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4814 | /* end confdefs.h. */
|
---|
4815 | #include <ctype.h>
|
---|
4816 | #include <stdlib.h>
|
---|
4817 | #if ((' ' & 0x0FF) == 0x020)
|
---|
4818 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
4819 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
4820 | #else
|
---|
4821 | # define ISLOWER(c) \
|
---|
4822 | (('a' <= (c) && (c) <= 'i') \
|
---|
4823 | || ('j' <= (c) && (c) <= 'r') \
|
---|
4824 | || ('s' <= (c) && (c) <= 'z'))
|
---|
4825 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
4826 | #endif
|
---|
4827 |
|
---|
4828 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
4829 | int
|
---|
4830 | main ()
|
---|
4831 | {
|
---|
4832 | int i;
|
---|
4833 | for (i = 0; i < 256; i++)
|
---|
4834 | if (XOR (islower (i), ISLOWER (i))
|
---|
4835 | || toupper (i) != TOUPPER (i))
|
---|
4836 | return 2;
|
---|
4837 | return 0;
|
---|
4838 | }
|
---|
4839 | _ACEOF
|
---|
4840 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
4841 |
|
---|
4842 | else
|
---|
4843 | ac_cv_header_stdc=no
|
---|
4844 | fi
|
---|
4845 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
4846 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
4847 | fi
|
---|
4848 |
|
---|
4849 | fi
|
---|
4850 | fi
|
---|
4851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
|
---|
4852 | $as_echo "$ac_cv_header_stdc" >&6; }
|
---|
4853 | if test $ac_cv_header_stdc = yes; then
|
---|
4854 |
|
---|
4855 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h
|
---|
4856 |
|
---|
4857 | fi
|
---|
4858 |
|
---|
4859 | # On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
---|
4860 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
---|
4861 | inttypes.h stdint.h unistd.h
|
---|
4862 | do :
|
---|
4863 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
4864 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
|
---|
4865 | "
|
---|
4866 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
|
---|
4867 | cat >>confdefs.h <<_ACEOF
|
---|
4868 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
4869 | _ACEOF
|
---|
4870 |
|
---|
4871 | fi
|
---|
4872 |
|
---|
4873 | done
|
---|
4874 |
|
---|
4875 |
|
---|
4876 |
|
---|
4877 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
|
---|
4878 | if test "x$ac_cv_header_minix_config_h" = xyes; then :
|
---|
4879 | MINIX=yes
|
---|
4880 | else
|
---|
4881 | MINIX=
|
---|
4882 | fi
|
---|
4883 |
|
---|
4884 |
|
---|
4885 | if test "$MINIX" = yes; then
|
---|
4886 |
|
---|
4887 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
|
---|
4888 |
|
---|
4889 |
|
---|
4890 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
|
---|
4891 |
|
---|
4892 |
|
---|
4893 | $as_echo "#define _MINIX 1" >>confdefs.h
|
---|
4894 |
|
---|
4895 | fi
|
---|
4896 |
|
---|
4897 |
|
---|
4898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
|
---|
4899 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
|
---|
4900 | if ${ac_cv_safe_to_define___extensions__+:} false; then :
|
---|
4901 | $as_echo_n "(cached) " >&6
|
---|
4902 | else
|
---|
4903 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4904 | /* end confdefs.h. */
|
---|
4905 |
|
---|
4906 | # define __EXTENSIONS__ 1
|
---|
4907 | $ac_includes_default
|
---|
4908 | int
|
---|
4909 | main ()
|
---|
4910 | {
|
---|
4911 |
|
---|
4912 | ;
|
---|
4913 | return 0;
|
---|
4914 | }
|
---|
4915 | _ACEOF
|
---|
4916 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
4917 | ac_cv_safe_to_define___extensions__=yes
|
---|
4918 | else
|
---|
4919 | ac_cv_safe_to_define___extensions__=no
|
---|
4920 | fi
|
---|
4921 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4922 | fi
|
---|
4923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
|
---|
4924 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
|
---|
4925 | test $ac_cv_safe_to_define___extensions__ = yes &&
|
---|
4926 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
|
---|
4927 |
|
---|
4928 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
|
---|
4929 |
|
---|
4930 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
|
---|
4931 |
|
---|
4932 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
|
---|
4933 |
|
---|
4934 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
|
---|
4935 |
|
---|
4936 |
|
---|
4937 |
|
---|
4938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
|
---|
4939 | $as_echo_n "checking for library containing strerror... " >&6; }
|
---|
4940 | if ${ac_cv_search_strerror+:} false; then :
|
---|
4941 | $as_echo_n "(cached) " >&6
|
---|
4942 | else
|
---|
4943 | ac_func_search_save_LIBS=$LIBS
|
---|
4944 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4945 | /* end confdefs.h. */
|
---|
4946 |
|
---|
4947 | /* Override any GCC internal prototype to avoid an error.
|
---|
4948 | Use char because int might match the return type of a GCC
|
---|
4949 | builtin and then its argument prototype would still apply. */
|
---|
4950 | #ifdef __cplusplus
|
---|
4951 | extern "C"
|
---|
4952 | #endif
|
---|
4953 | char strerror ();
|
---|
4954 | int
|
---|
4955 | main ()
|
---|
4956 | {
|
---|
4957 | return strerror ();
|
---|
4958 | ;
|
---|
4959 | return 0;
|
---|
4960 | }
|
---|
4961 | _ACEOF
|
---|
4962 | for ac_lib in '' cposix; do
|
---|
4963 | if test -z "$ac_lib"; then
|
---|
4964 | ac_res="none required"
|
---|
4965 | else
|
---|
4966 | ac_res=-l$ac_lib
|
---|
4967 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
4968 | fi
|
---|
4969 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
4970 | ac_cv_search_strerror=$ac_res
|
---|
4971 | fi
|
---|
4972 | rm -f core conftest.err conftest.$ac_objext \
|
---|
4973 | conftest$ac_exeext
|
---|
4974 | if ${ac_cv_search_strerror+:} false; then :
|
---|
4975 | break
|
---|
4976 | fi
|
---|
4977 | done
|
---|
4978 | if ${ac_cv_search_strerror+:} false; then :
|
---|
4979 |
|
---|
4980 | else
|
---|
4981 | ac_cv_search_strerror=no
|
---|
4982 | fi
|
---|
4983 | rm conftest.$ac_ext
|
---|
4984 | LIBS=$ac_func_search_save_LIBS
|
---|
4985 | fi
|
---|
4986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
|
---|
4987 | $as_echo "$ac_cv_search_strerror" >&6; }
|
---|
4988 | ac_res=$ac_cv_search_strerror
|
---|
4989 | if test "$ac_res" != no; then :
|
---|
4990 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
4991 |
|
---|
4992 | fi
|
---|
4993 |
|
---|
4994 |
|
---|
4995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
|
---|
4996 | $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
|
---|
4997 | if ${ac_cv_prog_cc_stdc+:} false; then :
|
---|
4998 | $as_echo_n "(cached) " >&6
|
---|
4999 | else
|
---|
5000 | ac_cv_prog_cc_stdc=no
|
---|
5001 | ac_save_CFLAGS="$CFLAGS"
|
---|
5002 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
5003 | # breaks some systems' header files.
|
---|
5004 | # AIX -qlanglvl=ansi
|
---|
5005 | # Ultrix and OSF/1 -std1
|
---|
5006 | # HP-UX -Aa -D_HPUX_SOURCE
|
---|
5007 | # SVR4 -Xc
|
---|
5008 | for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
|
---|
5009 | do
|
---|
5010 | CFLAGS="$ac_save_CFLAGS $ac_arg"
|
---|
5011 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5012 | /* end confdefs.h. */
|
---|
5013 | #if !defined(__STDC__) || __STDC__ != 1
|
---|
5014 | choke me
|
---|
5015 | #endif
|
---|
5016 |
|
---|
5017 | int
|
---|
5018 | main ()
|
---|
5019 | {
|
---|
5020 | int test (int i, double x);
|
---|
5021 | struct s1 {int (*f) (int a);};
|
---|
5022 | struct s2 {int (*f) (double a);};
|
---|
5023 | ;
|
---|
5024 | return 0;
|
---|
5025 | }
|
---|
5026 | _ACEOF
|
---|
5027 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
5028 | ac_cv_prog_cc_stdc="$ac_arg"; break
|
---|
5029 | fi
|
---|
5030 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5031 | done
|
---|
5032 | CFLAGS="$ac_save_CFLAGS"
|
---|
5033 |
|
---|
5034 | fi
|
---|
5035 |
|
---|
5036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
|
---|
5037 | $as_echo "$ac_cv_prog_cc_stdc" >&6; }
|
---|
5038 | case "x$ac_cv_prog_cc_stdc" in
|
---|
5039 | x|xno) ;;
|
---|
5040 | *) CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
5041 | esac
|
---|
5042 |
|
---|
5043 |
|
---|
5044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
|
---|
5045 | $as_echo_n "checking for function prototypes... " >&6; }
|
---|
5046 | if test "$ac_cv_prog_cc_stdc" != no; then
|
---|
5047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
5048 | $as_echo "yes" >&6; }
|
---|
5049 | $as_echo "#define PROTOTYPES 1" >>confdefs.h
|
---|
5050 |
|
---|
5051 | U= ANSI2KNR=
|
---|
5052 | else
|
---|
5053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5054 | $as_echo "no" >&6; }
|
---|
5055 | U=_ ANSI2KNR=ansi2knr
|
---|
5056 | fi
|
---|
5057 |
|
---|
5058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
|
---|
5059 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
|
---|
5060 | if ${ac_cv_c_const+:} false; then :
|
---|
5061 | $as_echo_n "(cached) " >&6
|
---|
5062 | else
|
---|
5063 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5064 | /* end confdefs.h. */
|
---|
5065 |
|
---|
5066 | int
|
---|
5067 | main ()
|
---|
5068 | {
|
---|
5069 | /* FIXME: Include the comments suggested by Paul. */
|
---|
5070 | #ifndef __cplusplus
|
---|
5071 | /* Ultrix mips cc rejects this. */
|
---|
5072 | typedef int charset[2];
|
---|
5073 | const charset cs;
|
---|
5074 | /* SunOS 4.1.1 cc rejects this. */
|
---|
5075 | char const *const *pcpcc;
|
---|
5076 | char **ppc;
|
---|
5077 | /* NEC SVR4.0.2 mips cc rejects this. */
|
---|
5078 | struct point {int x, y;};
|
---|
5079 | static struct point const zero = {0,0};
|
---|
5080 | /* AIX XL C 1.02.0.0 rejects this.
|
---|
5081 | It does not let you subtract one const X* pointer from another in
|
---|
5082 | an arm of an if-expression whose if-part is not a constant
|
---|
5083 | expression */
|
---|
5084 | const char *g = "string";
|
---|
5085 | pcpcc = &g + (g ? g-g : 0);
|
---|
5086 | /* HPUX 7.0 cc rejects these. */
|
---|
5087 | ++pcpcc;
|
---|
5088 | ppc = (char**) pcpcc;
|
---|
5089 | pcpcc = (char const *const *) ppc;
|
---|
5090 | { /* SCO 3.2v4 cc rejects this. */
|
---|
5091 | char *t;
|
---|
5092 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
---|
5093 |
|
---|
5094 | *t++ = 0;
|
---|
5095 | if (s) return 0;
|
---|
5096 | }
|
---|
5097 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
---|
5098 | int x[] = {25, 17};
|
---|
5099 | const int *foo = &x[0];
|
---|
5100 | ++foo;
|
---|
5101 | }
|
---|
5102 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
---|
5103 | typedef const int *iptr;
|
---|
5104 | iptr p = 0;
|
---|
5105 | ++p;
|
---|
5106 | }
|
---|
5107 | { /* AIX XL C 1.02.0.0 rejects this saying
|
---|
5108 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
---|
5109 | struct s { int j; const int *ap[3]; };
|
---|
5110 | struct s *b; b->j = 5;
|
---|
5111 | }
|
---|
5112 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
---|
5113 | const int foo = 10;
|
---|
5114 | if (!foo) return 0;
|
---|
5115 | }
|
---|
5116 | return !cs[0] && !zero.x;
|
---|
5117 | #endif
|
---|
5118 |
|
---|
5119 | ;
|
---|
5120 | return 0;
|
---|
5121 | }
|
---|
5122 | _ACEOF
|
---|
5123 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
5124 | ac_cv_c_const=yes
|
---|
5125 | else
|
---|
5126 | ac_cv_c_const=no
|
---|
5127 | fi
|
---|
5128 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5129 | fi
|
---|
5130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
|
---|
5131 | $as_echo "$ac_cv_c_const" >&6; }
|
---|
5132 | if test $ac_cv_c_const = no; then
|
---|
5133 |
|
---|
5134 | $as_echo "#define const /**/" >>confdefs.h
|
---|
5135 |
|
---|
5136 | fi
|
---|
5137 |
|
---|
5138 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
|
---|
5139 | if test "x$ac_cv_type_off_t" = xyes; then :
|
---|
5140 |
|
---|
5141 | else
|
---|
5142 |
|
---|
5143 | cat >>confdefs.h <<_ACEOF
|
---|
5144 | #define off_t long int
|
---|
5145 | _ACEOF
|
---|
5146 |
|
---|
5147 | fi
|
---|
5148 |
|
---|
5149 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
|
---|
5150 | if test "x$ac_cv_type_size_t" = xyes; then :
|
---|
5151 |
|
---|
5152 | else
|
---|
5153 |
|
---|
5154 | cat >>confdefs.h <<_ACEOF
|
---|
5155 | #define size_t unsigned int
|
---|
5156 | _ACEOF
|
---|
5157 |
|
---|
5158 | fi
|
---|
5159 |
|
---|
5160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
|
---|
5161 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
|
---|
5162 | if ${ac_cv_header_time+:} false; then :
|
---|
5163 | $as_echo_n "(cached) " >&6
|
---|
5164 | else
|
---|
5165 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5166 | /* end confdefs.h. */
|
---|
5167 | #include <sys/types.h>
|
---|
5168 | #include <sys/time.h>
|
---|
5169 | #include <time.h>
|
---|
5170 |
|
---|
5171 | int
|
---|
5172 | main ()
|
---|
5173 | {
|
---|
5174 | if ((struct tm *) 0)
|
---|
5175 | return 0;
|
---|
5176 | ;
|
---|
5177 | return 0;
|
---|
5178 | }
|
---|
5179 | _ACEOF
|
---|
5180 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
5181 | ac_cv_header_time=yes
|
---|
5182 | else
|
---|
5183 | ac_cv_header_time=no
|
---|
5184 | fi
|
---|
5185 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5186 | fi
|
---|
5187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
|
---|
5188 | $as_echo "$ac_cv_header_time" >&6; }
|
---|
5189 | if test $ac_cv_header_time = yes; then
|
---|
5190 |
|
---|
5191 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
|
---|
5192 |
|
---|
5193 | fi
|
---|
5194 |
|
---|
5195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
|
---|
5196 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
|
---|
5197 | if ${ac_cv_struct_tm+:} false; then :
|
---|
5198 | $as_echo_n "(cached) " >&6
|
---|
5199 | else
|
---|
5200 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5201 | /* end confdefs.h. */
|
---|
5202 | #include <sys/types.h>
|
---|
5203 | #include <time.h>
|
---|
5204 |
|
---|
5205 | int
|
---|
5206 | main ()
|
---|
5207 | {
|
---|
5208 | struct tm tm;
|
---|
5209 | int *p = &tm.tm_sec;
|
---|
5210 | return !p;
|
---|
5211 | ;
|
---|
5212 | return 0;
|
---|
5213 | }
|
---|
5214 | _ACEOF
|
---|
5215 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
5216 | ac_cv_struct_tm=time.h
|
---|
5217 | else
|
---|
5218 | ac_cv_struct_tm=sys/time.h
|
---|
5219 | fi
|
---|
5220 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5221 | fi
|
---|
5222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
|
---|
5223 | $as_echo "$ac_cv_struct_tm" >&6; }
|
---|
5224 | if test $ac_cv_struct_tm = sys/time.h; then
|
---|
5225 |
|
---|
5226 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
|
---|
5227 |
|
---|
5228 | fi
|
---|
5229 |
|
---|
5230 |
|
---|
5231 |
|
---|
5232 | # Check whether --with-unac was given.
|
---|
5233 | if test "${with_unac+set}" = set; then :
|
---|
5234 | withval=$with_unac; UNAC_DIR=$withval
|
---|
5235 | else
|
---|
5236 | UNAC_DIR="`pwd`/../packages/unac"
|
---|
5237 | fi
|
---|
5238 |
|
---|
5239 | cat >>confdefs.h <<_ACEOF
|
---|
5240 | #define UNAC_DIR "$UNAC_DIR"
|
---|
5241 | _ACEOF
|
---|
5242 |
|
---|
5243 |
|
---|
5244 |
|
---|
5245 | #AC_ARG_WITH(unac, [ --with-libiconv-prefix=dir Use local libiconv library], LIBICONV_DIR=$withval)
|
---|
5246 | #AC_DEFINE_UNQUOTED(LIBICONV_DIR, "$LIBICONV_DIR")
|
---|
5247 | #AC_SUBST(LIBICONV_DIR)
|
---|
5248 |
|
---|
5249 |
|
---|
5250 | if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
|
---|
5251 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5252 | /* end confdefs.h. */
|
---|
5253 | #include <stdio.h>
|
---|
5254 |
|
---|
5255 | int
|
---|
5256 | main ()
|
---|
5257 | {
|
---|
5258 | FILE *rubbish = popen("yes", "r");
|
---|
5259 | ;
|
---|
5260 | return 0;
|
---|
5261 | }
|
---|
5262 | _ACEOF
|
---|
5263 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
5264 |
|
---|
5265 | else
|
---|
5266 | CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa'
|
---|
5267 | fi
|
---|
5268 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5269 | fi
|
---|
5270 |
|
---|
5271 |
|
---|
5272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lg" >&5
|
---|
5273 | $as_echo_n "checking for main in -lg... " >&6; }
|
---|
5274 | if ${ac_cv_lib_g_main+:} false; then :
|
---|
5275 | $as_echo_n "(cached) " >&6
|
---|
5276 | else
|
---|
5277 | ac_check_lib_save_LIBS=$LIBS
|
---|
5278 | LIBS="-lg $LIBS"
|
---|
5279 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5280 | /* end confdefs.h. */
|
---|
5281 |
|
---|
5282 |
|
---|
5283 | int
|
---|
5284 | main ()
|
---|
5285 | {
|
---|
5286 | return main ();
|
---|
5287 | ;
|
---|
5288 | return 0;
|
---|
5289 | }
|
---|
5290 | _ACEOF
|
---|
5291 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5292 | ac_cv_lib_g_main=yes
|
---|
5293 | else
|
---|
5294 | ac_cv_lib_g_main=no
|
---|
5295 | fi
|
---|
5296 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5297 | conftest$ac_exeext conftest.$ac_ext
|
---|
5298 | LIBS=$ac_check_lib_save_LIBS
|
---|
5299 | fi
|
---|
5300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_g_main" >&5
|
---|
5301 | $as_echo "$ac_cv_lib_g_main" >&6; }
|
---|
5302 | if test "x$ac_cv_lib_g_main" = xyes; then :
|
---|
5303 | cat >>confdefs.h <<_ACEOF
|
---|
5304 | #define HAVE_LIBG 1
|
---|
5305 | _ACEOF
|
---|
5306 |
|
---|
5307 | LIBS="-lg $LIBS"
|
---|
5308 |
|
---|
5309 | fi
|
---|
5310 |
|
---|
5311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
|
---|
5312 | $as_echo_n "checking for main in -lm... " >&6; }
|
---|
5313 | if ${ac_cv_lib_m_main+:} false; then :
|
---|
5314 | $as_echo_n "(cached) " >&6
|
---|
5315 | else
|
---|
5316 | ac_check_lib_save_LIBS=$LIBS
|
---|
5317 | LIBS="-lm $LIBS"
|
---|
5318 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5319 | /* end confdefs.h. */
|
---|
5320 |
|
---|
5321 |
|
---|
5322 | int
|
---|
5323 | main ()
|
---|
5324 | {
|
---|
5325 | return main ();
|
---|
5326 | ;
|
---|
5327 | return 0;
|
---|
5328 | }
|
---|
5329 | _ACEOF
|
---|
5330 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5331 | ac_cv_lib_m_main=yes
|
---|
5332 | else
|
---|
5333 | ac_cv_lib_m_main=no
|
---|
5334 | fi
|
---|
5335 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5336 | conftest$ac_exeext conftest.$ac_ext
|
---|
5337 | LIBS=$ac_check_lib_save_LIBS
|
---|
5338 | fi
|
---|
5339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
|
---|
5340 | $as_echo "$ac_cv_lib_m_main" >&6; }
|
---|
5341 | if test "x$ac_cv_lib_m_main" = xyes; then :
|
---|
5342 | cat >>confdefs.h <<_ACEOF
|
---|
5343 | #define HAVE_LIBM 1
|
---|
5344 | _ACEOF
|
---|
5345 |
|
---|
5346 | LIBS="-lm $LIBS"
|
---|
5347 |
|
---|
5348 | fi
|
---|
5349 |
|
---|
5350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypt" >&5
|
---|
5351 | $as_echo_n "checking for main in -lcrypt... " >&6; }
|
---|
5352 | if ${ac_cv_lib_crypt_main+:} false; then :
|
---|
5353 | $as_echo_n "(cached) " >&6
|
---|
5354 | else
|
---|
5355 | ac_check_lib_save_LIBS=$LIBS
|
---|
5356 | LIBS="-lcrypt $LIBS"
|
---|
5357 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5358 | /* end confdefs.h. */
|
---|
5359 |
|
---|
5360 |
|
---|
5361 | int
|
---|
5362 | main ()
|
---|
5363 | {
|
---|
5364 | return main ();
|
---|
5365 | ;
|
---|
5366 | return 0;
|
---|
5367 | }
|
---|
5368 | _ACEOF
|
---|
5369 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5370 | ac_cv_lib_crypt_main=yes
|
---|
5371 | else
|
---|
5372 | ac_cv_lib_crypt_main=no
|
---|
5373 | fi
|
---|
5374 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5375 | conftest$ac_exeext conftest.$ac_ext
|
---|
5376 | LIBS=$ac_check_lib_save_LIBS
|
---|
5377 | fi
|
---|
5378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_main" >&5
|
---|
5379 | $as_echo "$ac_cv_lib_crypt_main" >&6; }
|
---|
5380 | if test "x$ac_cv_lib_crypt_main" = xyes; then :
|
---|
5381 | cat >>confdefs.h <<_ACEOF
|
---|
5382 | #define HAVE_LIBCRYPT 1
|
---|
5383 | _ACEOF
|
---|
5384 |
|
---|
5385 | LIBS="-lcrypt $LIBS"
|
---|
5386 |
|
---|
5387 | fi
|
---|
5388 |
|
---|
5389 | #if test $ENABLE_ACCENTFOLD = 1; then
|
---|
5390 | #AC_HAVE_LIBRARY(iconv)
|
---|
5391 | #fi
|
---|
5392 |
|
---|
5393 |
|
---|
5394 | ac_header_dirent=no
|
---|
5395 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
|
---|
5396 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
|
---|
5397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
|
---|
5398 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
|
---|
5399 | if eval \${$as_ac_Header+:} false; then :
|
---|
5400 | $as_echo_n "(cached) " >&6
|
---|
5401 | else
|
---|
5402 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5403 | /* end confdefs.h. */
|
---|
5404 | #include <sys/types.h>
|
---|
5405 | #include <$ac_hdr>
|
---|
5406 |
|
---|
5407 | int
|
---|
5408 | main ()
|
---|
5409 | {
|
---|
5410 | if ((DIR *) 0)
|
---|
5411 | return 0;
|
---|
5412 | ;
|
---|
5413 | return 0;
|
---|
5414 | }
|
---|
5415 | _ACEOF
|
---|
5416 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
5417 | eval "$as_ac_Header=yes"
|
---|
5418 | else
|
---|
5419 | eval "$as_ac_Header=no"
|
---|
5420 | fi
|
---|
5421 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5422 | fi
|
---|
5423 | eval ac_res=\$$as_ac_Header
|
---|
5424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
5425 | $as_echo "$ac_res" >&6; }
|
---|
5426 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
|
---|
5427 | cat >>confdefs.h <<_ACEOF
|
---|
5428 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
|
---|
5429 | _ACEOF
|
---|
5430 |
|
---|
5431 | ac_header_dirent=$ac_hdr; break
|
---|
5432 | fi
|
---|
5433 |
|
---|
5434 | done
|
---|
5435 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
---|
5436 | if test $ac_header_dirent = dirent.h; then
|
---|
5437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
|
---|
5438 | $as_echo_n "checking for library containing opendir... " >&6; }
|
---|
5439 | if ${ac_cv_search_opendir+:} false; then :
|
---|
5440 | $as_echo_n "(cached) " >&6
|
---|
5441 | else
|
---|
5442 | ac_func_search_save_LIBS=$LIBS
|
---|
5443 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5444 | /* end confdefs.h. */
|
---|
5445 |
|
---|
5446 | /* Override any GCC internal prototype to avoid an error.
|
---|
5447 | Use char because int might match the return type of a GCC
|
---|
5448 | builtin and then its argument prototype would still apply. */
|
---|
5449 | #ifdef __cplusplus
|
---|
5450 | extern "C"
|
---|
5451 | #endif
|
---|
5452 | char opendir ();
|
---|
5453 | int
|
---|
5454 | main ()
|
---|
5455 | {
|
---|
5456 | return opendir ();
|
---|
5457 | ;
|
---|
5458 | return 0;
|
---|
5459 | }
|
---|
5460 | _ACEOF
|
---|
5461 | for ac_lib in '' dir; do
|
---|
5462 | if test -z "$ac_lib"; then
|
---|
5463 | ac_res="none required"
|
---|
5464 | else
|
---|
5465 | ac_res=-l$ac_lib
|
---|
5466 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
5467 | fi
|
---|
5468 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5469 | ac_cv_search_opendir=$ac_res
|
---|
5470 | fi
|
---|
5471 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5472 | conftest$ac_exeext
|
---|
5473 | if ${ac_cv_search_opendir+:} false; then :
|
---|
5474 | break
|
---|
5475 | fi
|
---|
5476 | done
|
---|
5477 | if ${ac_cv_search_opendir+:} false; then :
|
---|
5478 |
|
---|
5479 | else
|
---|
5480 | ac_cv_search_opendir=no
|
---|
5481 | fi
|
---|
5482 | rm conftest.$ac_ext
|
---|
5483 | LIBS=$ac_func_search_save_LIBS
|
---|
5484 | fi
|
---|
5485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
|
---|
5486 | $as_echo "$ac_cv_search_opendir" >&6; }
|
---|
5487 | ac_res=$ac_cv_search_opendir
|
---|
5488 | if test "$ac_res" != no; then :
|
---|
5489 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
5490 |
|
---|
5491 | fi
|
---|
5492 |
|
---|
5493 | else
|
---|
5494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
|
---|
5495 | $as_echo_n "checking for library containing opendir... " >&6; }
|
---|
5496 | if ${ac_cv_search_opendir+:} false; then :
|
---|
5497 | $as_echo_n "(cached) " >&6
|
---|
5498 | else
|
---|
5499 | ac_func_search_save_LIBS=$LIBS
|
---|
5500 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5501 | /* end confdefs.h. */
|
---|
5502 |
|
---|
5503 | /* Override any GCC internal prototype to avoid an error.
|
---|
5504 | Use char because int might match the return type of a GCC
|
---|
5505 | builtin and then its argument prototype would still apply. */
|
---|
5506 | #ifdef __cplusplus
|
---|
5507 | extern "C"
|
---|
5508 | #endif
|
---|
5509 | char opendir ();
|
---|
5510 | int
|
---|
5511 | main ()
|
---|
5512 | {
|
---|
5513 | return opendir ();
|
---|
5514 | ;
|
---|
5515 | return 0;
|
---|
5516 | }
|
---|
5517 | _ACEOF
|
---|
5518 | for ac_lib in '' x; do
|
---|
5519 | if test -z "$ac_lib"; then
|
---|
5520 | ac_res="none required"
|
---|
5521 | else
|
---|
5522 | ac_res=-l$ac_lib
|
---|
5523 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
5524 | fi
|
---|
5525 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5526 | ac_cv_search_opendir=$ac_res
|
---|
5527 | fi
|
---|
5528 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5529 | conftest$ac_exeext
|
---|
5530 | if ${ac_cv_search_opendir+:} false; then :
|
---|
5531 | break
|
---|
5532 | fi
|
---|
5533 | done
|
---|
5534 | if ${ac_cv_search_opendir+:} false; then :
|
---|
5535 |
|
---|
5536 | else
|
---|
5537 | ac_cv_search_opendir=no
|
---|
5538 | fi
|
---|
5539 | rm conftest.$ac_ext
|
---|
5540 | LIBS=$ac_func_search_save_LIBS
|
---|
5541 | fi
|
---|
5542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
|
---|
5543 | $as_echo "$ac_cv_search_opendir" >&6; }
|
---|
5544 | ac_res=$ac_cv_search_opendir
|
---|
5545 | if test "$ac_res" != no; then :
|
---|
5546 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
5547 |
|
---|
5548 | fi
|
---|
5549 |
|
---|
5550 | fi
|
---|
5551 |
|
---|
5552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
|
---|
5553 | $as_echo_n "checking for ANSI C header files... " >&6; }
|
---|
5554 | if ${ac_cv_header_stdc+:} false; then :
|
---|
5555 | $as_echo_n "(cached) " >&6
|
---|
5556 | else
|
---|
5557 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5558 | /* end confdefs.h. */
|
---|
5559 | #include <stdlib.h>
|
---|
5560 | #include <stdarg.h>
|
---|
5561 | #include <string.h>
|
---|
5562 | #include <float.h>
|
---|
5563 |
|
---|
5564 | int
|
---|
5565 | main ()
|
---|
5566 | {
|
---|
5567 |
|
---|
5568 | ;
|
---|
5569 | return 0;
|
---|
5570 | }
|
---|
5571 | _ACEOF
|
---|
5572 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
5573 | ac_cv_header_stdc=yes
|
---|
5574 | else
|
---|
5575 | ac_cv_header_stdc=no
|
---|
5576 | fi
|
---|
5577 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5578 |
|
---|
5579 | if test $ac_cv_header_stdc = yes; then
|
---|
5580 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
5581 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5582 | /* end confdefs.h. */
|
---|
5583 | #include <string.h>
|
---|
5584 |
|
---|
5585 | _ACEOF
|
---|
5586 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5587 | $EGREP "memchr" >/dev/null 2>&1; then :
|
---|
5588 |
|
---|
5589 | else
|
---|
5590 | ac_cv_header_stdc=no
|
---|
5591 | fi
|
---|
5592 | rm -f conftest*
|
---|
5593 |
|
---|
5594 | fi
|
---|
5595 |
|
---|
5596 | if test $ac_cv_header_stdc = yes; then
|
---|
5597 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
5598 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5599 | /* end confdefs.h. */
|
---|
5600 | #include <stdlib.h>
|
---|
5601 |
|
---|
5602 | _ACEOF
|
---|
5603 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5604 | $EGREP "free" >/dev/null 2>&1; then :
|
---|
5605 |
|
---|
5606 | else
|
---|
5607 | ac_cv_header_stdc=no
|
---|
5608 | fi
|
---|
5609 | rm -f conftest*
|
---|
5610 |
|
---|
5611 | fi
|
---|
5612 |
|
---|
5613 | if test $ac_cv_header_stdc = yes; then
|
---|
5614 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
5615 | if test "$cross_compiling" = yes; then :
|
---|
5616 | :
|
---|
5617 | else
|
---|
5618 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5619 | /* end confdefs.h. */
|
---|
5620 | #include <ctype.h>
|
---|
5621 | #include <stdlib.h>
|
---|
5622 | #if ((' ' & 0x0FF) == 0x020)
|
---|
5623 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
5624 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
5625 | #else
|
---|
5626 | # define ISLOWER(c) \
|
---|
5627 | (('a' <= (c) && (c) <= 'i') \
|
---|
5628 | || ('j' <= (c) && (c) <= 'r') \
|
---|
5629 | || ('s' <= (c) && (c) <= 'z'))
|
---|
5630 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
5631 | #endif
|
---|
5632 |
|
---|
5633 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
5634 | int
|
---|
5635 | main ()
|
---|
5636 | {
|
---|
5637 | int i;
|
---|
5638 | for (i = 0; i < 256; i++)
|
---|
5639 | if (XOR (islower (i), ISLOWER (i))
|
---|
5640 | || toupper (i) != TOUPPER (i))
|
---|
5641 | return 2;
|
---|
5642 | return 0;
|
---|
5643 | }
|
---|
5644 | _ACEOF
|
---|
5645 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
5646 |
|
---|
5647 | else
|
---|
5648 | ac_cv_header_stdc=no
|
---|
5649 | fi
|
---|
5650 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
5651 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
5652 | fi
|
---|
5653 |
|
---|
5654 | fi
|
---|
5655 | fi
|
---|
5656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
|
---|
5657 | $as_echo "$ac_cv_header_stdc" >&6; }
|
---|
5658 | if test $ac_cv_header_stdc = yes; then
|
---|
5659 |
|
---|
5660 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h
|
---|
5661 |
|
---|
5662 | fi
|
---|
5663 |
|
---|
5664 | for ac_header in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h
|
---|
5665 | do :
|
---|
5666 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
5667 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
|
---|
5668 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
|
---|
5669 | cat >>confdefs.h <<_ACEOF
|
---|
5670 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
5671 | _ACEOF
|
---|
5672 |
|
---|
5673 | fi
|
---|
5674 |
|
---|
5675 | done
|
---|
5676 |
|
---|
5677 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5678 | /* end confdefs.h. */
|
---|
5679 | #include <stdio.h>
|
---|
5680 |
|
---|
5681 | _ACEOF
|
---|
5682 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5683 | $EGREP "fread" >/dev/null 2>&1; then :
|
---|
5684 | $as_echo "#define HAVE_FREAD_DECL 1" >>confdefs.h
|
---|
5685 |
|
---|
5686 | fi
|
---|
5687 | rm -f conftest*
|
---|
5688 |
|
---|
5689 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5690 | /* end confdefs.h. */
|
---|
5691 | #include <stdio.h>
|
---|
5692 |
|
---|
5693 | _ACEOF
|
---|
5694 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5695 | $EGREP "fgetc" >/dev/null 2>&1; then :
|
---|
5696 | $as_echo "#define HAVE_FGETC_DECL 1" >>confdefs.h
|
---|
5697 |
|
---|
5698 | fi
|
---|
5699 | rm -f conftest*
|
---|
5700 |
|
---|
5701 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5702 | /* end confdefs.h. */
|
---|
5703 | #include <sys/procfs.h>
|
---|
5704 |
|
---|
5705 | _ACEOF
|
---|
5706 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5707 | $EGREP "pr_brksize" >/dev/null 2>&1; then :
|
---|
5708 | $as_echo "#define HAVE_PR_BRKSIZE 1" >>confdefs.h
|
---|
5709 |
|
---|
5710 | fi
|
---|
5711 | rm -f conftest*
|
---|
5712 |
|
---|
5713 |
|
---|
5714 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
---|
5715 | # for constant arguments. Useless!
|
---|
5716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
|
---|
5717 | $as_echo_n "checking for working alloca.h... " >&6; }
|
---|
5718 | if ${ac_cv_working_alloca_h+:} false; then :
|
---|
5719 | $as_echo_n "(cached) " >&6
|
---|
5720 | else
|
---|
5721 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5722 | /* end confdefs.h. */
|
---|
5723 | #include <alloca.h>
|
---|
5724 | int
|
---|
5725 | main ()
|
---|
5726 | {
|
---|
5727 | char *p = (char *) alloca (2 * sizeof (int));
|
---|
5728 | if (p) return 0;
|
---|
5729 | ;
|
---|
5730 | return 0;
|
---|
5731 | }
|
---|
5732 | _ACEOF
|
---|
5733 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5734 | ac_cv_working_alloca_h=yes
|
---|
5735 | else
|
---|
5736 | ac_cv_working_alloca_h=no
|
---|
5737 | fi
|
---|
5738 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5739 | conftest$ac_exeext conftest.$ac_ext
|
---|
5740 | fi
|
---|
5741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
|
---|
5742 | $as_echo "$ac_cv_working_alloca_h" >&6; }
|
---|
5743 | if test $ac_cv_working_alloca_h = yes; then
|
---|
5744 |
|
---|
5745 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
|
---|
5746 |
|
---|
5747 | fi
|
---|
5748 |
|
---|
5749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
|
---|
5750 | $as_echo_n "checking for alloca... " >&6; }
|
---|
5751 | if ${ac_cv_func_alloca_works+:} false; then :
|
---|
5752 | $as_echo_n "(cached) " >&6
|
---|
5753 | else
|
---|
5754 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5755 | /* end confdefs.h. */
|
---|
5756 | #ifdef __GNUC__
|
---|
5757 | # define alloca __builtin_alloca
|
---|
5758 | #else
|
---|
5759 | # ifdef _MSC_VER
|
---|
5760 | # include <malloc.h>
|
---|
5761 | # define alloca _alloca
|
---|
5762 | # else
|
---|
5763 | # ifdef HAVE_ALLOCA_H
|
---|
5764 | # include <alloca.h>
|
---|
5765 | # else
|
---|
5766 | # ifdef _AIX
|
---|
5767 | #pragma alloca
|
---|
5768 | # else
|
---|
5769 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
---|
5770 | void *alloca (size_t);
|
---|
5771 | # endif
|
---|
5772 | # endif
|
---|
5773 | # endif
|
---|
5774 | # endif
|
---|
5775 | #endif
|
---|
5776 |
|
---|
5777 | int
|
---|
5778 | main ()
|
---|
5779 | {
|
---|
5780 | char *p = (char *) alloca (1);
|
---|
5781 | if (p) return 0;
|
---|
5782 | ;
|
---|
5783 | return 0;
|
---|
5784 | }
|
---|
5785 | _ACEOF
|
---|
5786 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5787 | ac_cv_func_alloca_works=yes
|
---|
5788 | else
|
---|
5789 | ac_cv_func_alloca_works=no
|
---|
5790 | fi
|
---|
5791 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5792 | conftest$ac_exeext conftest.$ac_ext
|
---|
5793 | fi
|
---|
5794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
|
---|
5795 | $as_echo "$ac_cv_func_alloca_works" >&6; }
|
---|
5796 |
|
---|
5797 | if test $ac_cv_func_alloca_works = yes; then
|
---|
5798 |
|
---|
5799 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
|
---|
5800 |
|
---|
5801 | else
|
---|
5802 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
---|
5803 | # that cause trouble. Some versions do not even contain alloca or
|
---|
5804 | # contain a buggy version. If you still want to use their alloca,
|
---|
5805 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
---|
5806 |
|
---|
5807 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
|
---|
5808 |
|
---|
5809 | $as_echo "#define C_ALLOCA 1" >>confdefs.h
|
---|
5810 |
|
---|
5811 |
|
---|
5812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
|
---|
5813 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
|
---|
5814 | if ${ac_cv_os_cray+:} false; then :
|
---|
5815 | $as_echo_n "(cached) " >&6
|
---|
5816 | else
|
---|
5817 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5818 | /* end confdefs.h. */
|
---|
5819 | #if defined CRAY && ! defined CRAY2
|
---|
5820 | webecray
|
---|
5821 | #else
|
---|
5822 | wenotbecray
|
---|
5823 | #endif
|
---|
5824 |
|
---|
5825 | _ACEOF
|
---|
5826 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5827 | $EGREP "webecray" >/dev/null 2>&1; then :
|
---|
5828 | ac_cv_os_cray=yes
|
---|
5829 | else
|
---|
5830 | ac_cv_os_cray=no
|
---|
5831 | fi
|
---|
5832 | rm -f conftest*
|
---|
5833 |
|
---|
5834 | fi
|
---|
5835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
|
---|
5836 | $as_echo "$ac_cv_os_cray" >&6; }
|
---|
5837 | if test $ac_cv_os_cray = yes; then
|
---|
5838 | for ac_func in _getb67 GETB67 getb67; do
|
---|
5839 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
5840 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
---|
5841 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
|
---|
5842 |
|
---|
5843 | cat >>confdefs.h <<_ACEOF
|
---|
5844 | #define CRAY_STACKSEG_END $ac_func
|
---|
5845 | _ACEOF
|
---|
5846 |
|
---|
5847 | break
|
---|
5848 | fi
|
---|
5849 |
|
---|
5850 | done
|
---|
5851 | fi
|
---|
5852 |
|
---|
5853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
|
---|
5854 | $as_echo_n "checking stack direction for C alloca... " >&6; }
|
---|
5855 | if ${ac_cv_c_stack_direction+:} false; then :
|
---|
5856 | $as_echo_n "(cached) " >&6
|
---|
5857 | else
|
---|
5858 | if test "$cross_compiling" = yes; then :
|
---|
5859 | ac_cv_c_stack_direction=0
|
---|
5860 | else
|
---|
5861 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5862 | /* end confdefs.h. */
|
---|
5863 | $ac_includes_default
|
---|
5864 | int
|
---|
5865 | find_stack_direction ()
|
---|
5866 | {
|
---|
5867 | static char *addr = 0;
|
---|
5868 | auto char dummy;
|
---|
5869 | if (addr == 0)
|
---|
5870 | {
|
---|
5871 | addr = &dummy;
|
---|
5872 | return find_stack_direction ();
|
---|
5873 | }
|
---|
5874 | else
|
---|
5875 | return (&dummy > addr) ? 1 : -1;
|
---|
5876 | }
|
---|
5877 |
|
---|
5878 | int
|
---|
5879 | main ()
|
---|
5880 | {
|
---|
5881 | return find_stack_direction () < 0;
|
---|
5882 | }
|
---|
5883 | _ACEOF
|
---|
5884 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
5885 | ac_cv_c_stack_direction=1
|
---|
5886 | else
|
---|
5887 | ac_cv_c_stack_direction=-1
|
---|
5888 | fi
|
---|
5889 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
5890 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
5891 | fi
|
---|
5892 |
|
---|
5893 | fi
|
---|
5894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
|
---|
5895 | $as_echo "$ac_cv_c_stack_direction" >&6; }
|
---|
5896 | cat >>confdefs.h <<_ACEOF
|
---|
5897 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
---|
5898 | _ACEOF
|
---|
5899 |
|
---|
5900 |
|
---|
5901 | fi
|
---|
5902 |
|
---|
5903 | if test $ac_cv_c_compiler_gnu = yes; then
|
---|
5904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
|
---|
5905 | $as_echo_n "checking whether $CC needs -traditional... " >&6; }
|
---|
5906 | if ${ac_cv_prog_gcc_traditional+:} false; then :
|
---|
5907 | $as_echo_n "(cached) " >&6
|
---|
5908 | else
|
---|
5909 | ac_pattern="Autoconf.*'x'"
|
---|
5910 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5911 | /* end confdefs.h. */
|
---|
5912 | #include <sgtty.h>
|
---|
5913 | Autoconf TIOCGETP
|
---|
5914 | _ACEOF
|
---|
5915 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5916 | $EGREP "$ac_pattern" >/dev/null 2>&1; then :
|
---|
5917 | ac_cv_prog_gcc_traditional=yes
|
---|
5918 | else
|
---|
5919 | ac_cv_prog_gcc_traditional=no
|
---|
5920 | fi
|
---|
5921 | rm -f conftest*
|
---|
5922 |
|
---|
5923 |
|
---|
5924 | if test $ac_cv_prog_gcc_traditional = no; then
|
---|
5925 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5926 | /* end confdefs.h. */
|
---|
5927 | #include <termio.h>
|
---|
5928 | Autoconf TCGETA
|
---|
5929 | _ACEOF
|
---|
5930 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5931 | $EGREP "$ac_pattern" >/dev/null 2>&1; then :
|
---|
5932 | ac_cv_prog_gcc_traditional=yes
|
---|
5933 | fi
|
---|
5934 | rm -f conftest*
|
---|
5935 |
|
---|
5936 | fi
|
---|
5937 | fi
|
---|
5938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
|
---|
5939 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
|
---|
5940 | if test $ac_cv_prog_gcc_traditional = yes; then
|
---|
5941 | CC="$CC -traditional"
|
---|
5942 | fi
|
---|
5943 | fi
|
---|
5944 |
|
---|
5945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
|
---|
5946 | $as_echo_n "checking return type of signal handlers... " >&6; }
|
---|
5947 | if ${ac_cv_type_signal+:} false; then :
|
---|
5948 | $as_echo_n "(cached) " >&6
|
---|
5949 | else
|
---|
5950 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5951 | /* end confdefs.h. */
|
---|
5952 | #include <sys/types.h>
|
---|
5953 | #include <signal.h>
|
---|
5954 |
|
---|
5955 | int
|
---|
5956 | main ()
|
---|
5957 | {
|
---|
5958 | return *(signal (0, 0)) (0) == 1;
|
---|
5959 | ;
|
---|
5960 | return 0;
|
---|
5961 | }
|
---|
5962 | _ACEOF
|
---|
5963 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
5964 | ac_cv_type_signal=int
|
---|
5965 | else
|
---|
5966 | ac_cv_type_signal=void
|
---|
5967 | fi
|
---|
5968 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5969 | fi
|
---|
5970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
|
---|
5971 | $as_echo "$ac_cv_type_signal" >&6; }
|
---|
5972 |
|
---|
5973 | cat >>confdefs.h <<_ACEOF
|
---|
5974 | #define RETSIGTYPE $ac_cv_type_signal
|
---|
5975 | _ACEOF
|
---|
5976 |
|
---|
5977 |
|
---|
5978 | for ac_func in vprintf
|
---|
5979 | do :
|
---|
5980 | ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
|
---|
5981 | if test "x$ac_cv_func_vprintf" = xyes; then :
|
---|
5982 | cat >>confdefs.h <<_ACEOF
|
---|
5983 | #define HAVE_VPRINTF 1
|
---|
5984 | _ACEOF
|
---|
5985 |
|
---|
5986 | ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
|
---|
5987 | if test "x$ac_cv_func__doprnt" = xyes; then :
|
---|
5988 |
|
---|
5989 | $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
|
---|
5990 |
|
---|
5991 | fi
|
---|
5992 |
|
---|
5993 | fi
|
---|
5994 | done
|
---|
5995 |
|
---|
5996 |
|
---|
5997 | for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
|
---|
5998 | do :
|
---|
5999 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
6000 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
---|
6001 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
|
---|
6002 | cat >>confdefs.h <<_ACEOF
|
---|
6003 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
6004 | _ACEOF
|
---|
6005 |
|
---|
6006 | fi
|
---|
6007 | done
|
---|
6008 |
|
---|
6009 | ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
|
---|
6010 | if test "x$ac_cv_func_ftruncate" = xyes; then :
|
---|
6011 | $as_echo "#define HAVE_FTRUNCATE 1" >>confdefs.h
|
---|
6012 |
|
---|
6013 | else
|
---|
6014 | case " $LIBOBJS " in
|
---|
6015 | *" ftruncate.$ac_objext "* ) ;;
|
---|
6016 | *) LIBOBJS="$LIBOBJS ftruncate.$ac_objext"
|
---|
6017 | ;;
|
---|
6018 | esac
|
---|
6019 |
|
---|
6020 | fi
|
---|
6021 |
|
---|
6022 | ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
|
---|
6023 | if test "x$ac_cv_func_strstr" = xyes; then :
|
---|
6024 | $as_echo "#define HAVE_STRSTR 1" >>confdefs.h
|
---|
6025 |
|
---|
6026 | else
|
---|
6027 | case " $LIBOBJS " in
|
---|
6028 | *" strstr.$ac_objext "* ) ;;
|
---|
6029 | *) LIBOBJS="$LIBOBJS strstr.$ac_objext"
|
---|
6030 | ;;
|
---|
6031 | esac
|
---|
6032 |
|
---|
6033 | fi
|
---|
6034 |
|
---|
6035 | ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
|
---|
6036 | if test "x$ac_cv_func_strcasecmp" = xyes; then :
|
---|
6037 | $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
|
---|
6038 |
|
---|
6039 | else
|
---|
6040 | case " $LIBOBJS " in
|
---|
6041 | *" strcasecmp.$ac_objext "* ) ;;
|
---|
6042 | *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
|
---|
6043 | ;;
|
---|
6044 | esac
|
---|
6045 |
|
---|
6046 | fi
|
---|
6047 |
|
---|
6048 |
|
---|
6049 |
|
---|
6050 |
|
---|
6051 | ac_fn_c_check_func "$LINENO" "textdomain" "ac_cv_func_textdomain"
|
---|
6052 | if test "x$ac_cv_func_textdomain" = xyes; then :
|
---|
6053 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h
|
---|
6054 |
|
---|
6055 | fi
|
---|
6056 |
|
---|
6057 |
|
---|
6058 | # we need to set an extended JNI path for Mac OS/Darwin, as jni.h is on
|
---|
6059 | # a non-standard Path
|
---|
6060 | # is there a better way to do this??
|
---|
6061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OS to set JNI options" >&5
|
---|
6062 | $as_echo_n "checking for OS to set JNI options... " >&6; }
|
---|
6063 | # set defaults
|
---|
6064 | JNIINC=""
|
---|
6065 | JNIPREFIX="lib"
|
---|
6066 | JNISUFFIX="so"
|
---|
6067 | JNICFLAGS=""
|
---|
6068 | JNILDFLAGS="-shared"
|
---|
6069 |
|
---|
6070 | if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
|
---|
6071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5
|
---|
6072 | $as_echo "Darwin" >&6; }
|
---|
6073 | JNIINC="-I/System/Library/Frameworks/JavaVM.framework/Headers/ "
|
---|
6074 | JNISUFFIX="jnilib"
|
---|
6075 | JNILDFLAGS="-dynamiclib -fno-common -single_module -framework JavaVM"
|
---|
6076 | fi
|
---|
6077 | if test "`(uname -s) 2> /dev/null`" = 'SunOS'; then
|
---|
6078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris" >&5
|
---|
6079 | $as_echo "Solaris" >&6; }
|
---|
6080 | JNIINC="-I\$(JAVA_HOME)/include/solaris "
|
---|
6081 | fi
|
---|
6082 | if test "`(uname -s) 2> /dev/null`" = 'Linux'; then
|
---|
6083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux" >&5
|
---|
6084 | $as_echo "Linux" >&6; }
|
---|
6085 | JNIINC="-I\$(JAVA_HOME)/include/linux -I\$(JAVA_HOME)/include "
|
---|
6086 | fi
|
---|
6087 |
|
---|
6088 | if test "x$crossOS" != "x" ; then
|
---|
6089 | if test "$crossOS" = "windows" ; then
|
---|
6090 | JNIINC="-I../../java-windows-include/win32 -I../../java-windows-include "
|
---|
6091 | JNICFLAGS="-shared -Wall -D_JNI_IMPLEMENTATION_ -Wl,--kill-at"
|
---|
6092 | JNIPREFIX=""
|
---|
6093 | JNISUFFIX="dll"
|
---|
6094 | fi
|
---|
6095 | fi
|
---|
6096 |
|
---|
6097 |
|
---|
6098 |
|
---|
6099 |
|
---|
6100 |
|
---|
6101 |
|
---|
6102 |
|
---|
6103 | # *** Custom checking (based on GNU tar configure.in) ***
|
---|
6104 | # ---------------------------------------------------------------------------
|
---|
6105 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HP-UX needing gmalloc" >&5
|
---|
6106 | $as_echo_n "checking for HP-UX needing gmalloc... " >&6; }
|
---|
6107 | if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
|
---|
6108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
6109 | $as_echo "yes" >&6; }
|
---|
6110 | case " $LIBOBJS " in
|
---|
6111 | *" gmalloc.$ac_objext "* ) ;;
|
---|
6112 | *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext"
|
---|
6113 | ;;
|
---|
6114 | esac
|
---|
6115 |
|
---|
6116 | $as_echo "#define HAVE_VALLOC 1" >>confdefs.h
|
---|
6117 |
|
---|
6118 | else
|
---|
6119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6120 | $as_echo "no" >&6; }
|
---|
6121 | for ac_func in valloc
|
---|
6122 | do :
|
---|
6123 | ac_fn_c_check_func "$LINENO" "valloc" "ac_cv_func_valloc"
|
---|
6124 | if test "x$ac_cv_func_valloc" = xyes; then :
|
---|
6125 | cat >>confdefs.h <<_ACEOF
|
---|
6126 | #define HAVE_VALLOC 1
|
---|
6127 | _ACEOF
|
---|
6128 |
|
---|
6129 | fi
|
---|
6130 | done
|
---|
6131 |
|
---|
6132 | fi
|
---|
6133 |
|
---|
6134 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
|
---|
6135 | $as_echo_n "checking if malloc debugging is wanted... " >&6; }
|
---|
6136 |
|
---|
6137 | # Check whether --with-dmalloc was given.
|
---|
6138 | if test "${with_dmalloc+set}" = set; then :
|
---|
6139 | withval=$with_dmalloc; if test "$withval" = yes; then
|
---|
6140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
6141 | $as_echo "yes" >&6; }
|
---|
6142 | $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
|
---|
6143 |
|
---|
6144 | LIBS="$LIBS -ldmalloc"
|
---|
6145 | LDFLAGS="$LDFLAGS -g"
|
---|
6146 | else
|
---|
6147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6148 | $as_echo "no" >&6; }
|
---|
6149 | fi
|
---|
6150 | else
|
---|
6151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6152 | $as_echo "no" >&6; }
|
---|
6153 | fi
|
---|
6154 |
|
---|
6155 |
|
---|
6156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which of rx or regex is wanted" >&5
|
---|
6157 | $as_echo_n "checking which of rx or regex is wanted... " >&6; }
|
---|
6158 |
|
---|
6159 | # Check whether --with-regex was given.
|
---|
6160 | if test "${with_regex+set}" = set; then :
|
---|
6161 | withval=$with_regex; if test "$withval" = yes; then
|
---|
6162 | ac_with_regex=1
|
---|
6163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: regex" >&5
|
---|
6164 | $as_echo "regex" >&6; }
|
---|
6165 | $as_echo "#define WITH_REGEX 1" >>confdefs.h
|
---|
6166 |
|
---|
6167 | case " $LIBOBJS " in
|
---|
6168 | *" regex.$ac_objext "* ) ;;
|
---|
6169 | *) LIBOBJS="$LIBOBJS regex.$ac_objext"
|
---|
6170 | ;;
|
---|
6171 | esac
|
---|
6172 |
|
---|
6173 | fi
|
---|
6174 | fi
|
---|
6175 |
|
---|
6176 | if test -z "$ac_with_regex"; then
|
---|
6177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: rx" >&5
|
---|
6178 | $as_echo "rx" >&6; }
|
---|
6179 | ac_fn_c_check_func "$LINENO" "re_rx_search" "ac_cv_func_re_rx_search"
|
---|
6180 | if test "x$ac_cv_func_re_rx_search" = xyes; then :
|
---|
6181 |
|
---|
6182 | else
|
---|
6183 | # The cast to long int works around a bug in the HP C Compiler
|
---|
6184 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
---|
6185 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
---|
6186 | # This bug is HP SR number 8606223364.
|
---|
6187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned char *" >&5
|
---|
6188 | $as_echo_n "checking size of unsigned char *... " >&6; }
|
---|
6189 | if ${ac_cv_sizeof_unsigned_char_p+:} false; then :
|
---|
6190 | $as_echo_n "(cached) " >&6
|
---|
6191 | else
|
---|
6192 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned char *))" "ac_cv_sizeof_unsigned_char_p" "$ac_includes_default"; then :
|
---|
6193 |
|
---|
6194 | else
|
---|
6195 | if test "$ac_cv_type_unsigned_char_p" = yes; then
|
---|
6196 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
6197 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
6198 | as_fn_error 77 "cannot compute sizeof (unsigned char *)
|
---|
6199 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
6200 | else
|
---|
6201 | ac_cv_sizeof_unsigned_char_p=0
|
---|
6202 | fi
|
---|
6203 | fi
|
---|
6204 |
|
---|
6205 | fi
|
---|
6206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_char_p" >&5
|
---|
6207 | $as_echo "$ac_cv_sizeof_unsigned_char_p" >&6; }
|
---|
6208 |
|
---|
6209 |
|
---|
6210 |
|
---|
6211 | cat >>confdefs.h <<_ACEOF
|
---|
6212 | #define SIZEOF_UNSIGNED_CHAR_P $ac_cv_sizeof_unsigned_char_p
|
---|
6213 | _ACEOF
|
---|
6214 |
|
---|
6215 |
|
---|
6216 | if test "$ac_cv_sizeof_unsigned_char_p" = 8
|
---|
6217 | then
|
---|
6218 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: I'm forcing you to use regex because I can't
|
---|
6219 | find a local rx library and the one included with this
|
---|
6220 | distribution doesn't work on 64-bit machines like yours" >&5
|
---|
6221 | $as_echo "$as_me: WARNING: I'm forcing you to use regex because I can't
|
---|
6222 | find a local rx library and the one included with this
|
---|
6223 | distribution doesn't work on 64-bit machines like yours" >&2;}
|
---|
6224 | case " $LIBOBJS " in
|
---|
6225 | *" regex.$ac_objext "* ) ;;
|
---|
6226 | *) LIBOBJS="$LIBOBJS regex.$ac_objext"
|
---|
6227 | ;;
|
---|
6228 | esac
|
---|
6229 |
|
---|
6230 | else
|
---|
6231 | case " $LIBOBJS " in
|
---|
6232 | *" rx.$ac_objext "* ) ;;
|
---|
6233 | *) LIBOBJS="$LIBOBJS rx.$ac_objext"
|
---|
6234 | ;;
|
---|
6235 | esac
|
---|
6236 |
|
---|
6237 | fi
|
---|
6238 |
|
---|
6239 | fi
|
---|
6240 |
|
---|
6241 | fi
|
---|
6242 |
|
---|
6243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GNU readline requested" >&5
|
---|
6244 | $as_echo_n "checking whether GNU readline requested... " >&6; }
|
---|
6245 |
|
---|
6246 | # Check whether --with-gnu_readline was given.
|
---|
6247 | if test "${with_gnu_readline+set}" = set; then :
|
---|
6248 | withval=$with_gnu_readline; if test "$withval" = yes; then
|
---|
6249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
6250 | $as_echo "yes" >&6; }
|
---|
6251 | ac_with_gnu_readline=1
|
---|
6252 | else
|
---|
6253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6254 | $as_echo "no" >&6; }
|
---|
6255 | fi
|
---|
6256 | else
|
---|
6257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6258 | $as_echo "no" >&6; }
|
---|
6259 | fi
|
---|
6260 |
|
---|
6261 |
|
---|
6262 | if test -n "$ac_with_gnu_readline"; then
|
---|
6263 | ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
|
---|
6264 | if test "x$ac_cv_header_readline_readline_h" = xyes; then :
|
---|
6265 | ac_mg_readline_header_found=1
|
---|
6266 | else
|
---|
6267 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find GNU readline headers; configuring without \
|
---|
6268 | GNU readline support" >&5
|
---|
6269 | $as_echo "$as_me: WARNING: Can't find GNU readline headers; configuring without \
|
---|
6270 | GNU readline support" >&2;}
|
---|
6271 | fi
|
---|
6272 |
|
---|
6273 |
|
---|
6274 | if test -n "$ac_mg_readline_header_found"; then
|
---|
6275 | # first check whether we can find the readline library itself
|
---|
6276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lreadline" >&5
|
---|
6277 | $as_echo_n "checking for main in -lreadline... " >&6; }
|
---|
6278 | if ${ac_cv_lib_readline_main+:} false; then :
|
---|
6279 | $as_echo_n "(cached) " >&6
|
---|
6280 | else
|
---|
6281 | ac_check_lib_save_LIBS=$LIBS
|
---|
6282 | LIBS="-lreadline $LIBS"
|
---|
6283 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6284 | /* end confdefs.h. */
|
---|
6285 |
|
---|
6286 |
|
---|
6287 | int
|
---|
6288 | main ()
|
---|
6289 | {
|
---|
6290 | return main ();
|
---|
6291 | ;
|
---|
6292 | return 0;
|
---|
6293 | }
|
---|
6294 | _ACEOF
|
---|
6295 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
6296 | ac_cv_lib_readline_main=yes
|
---|
6297 | else
|
---|
6298 | ac_cv_lib_readline_main=no
|
---|
6299 | fi
|
---|
6300 | rm -f core conftest.err conftest.$ac_objext \
|
---|
6301 | conftest$ac_exeext conftest.$ac_ext
|
---|
6302 | LIBS=$ac_check_lib_save_LIBS
|
---|
6303 | fi
|
---|
6304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_main" >&5
|
---|
6305 | $as_echo "$ac_cv_lib_readline_main" >&6; }
|
---|
6306 | if test "x$ac_cv_lib_readline_main" = xyes; then :
|
---|
6307 | ac_mg_readline_lib_found=1
|
---|
6308 | $as_echo "#define WITH_GNU_READLINE 1" >>confdefs.h
|
---|
6309 |
|
---|
6310 | LIBS="$LIBS -lreadline"
|
---|
6311 | else
|
---|
6312 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find GNU readline library; configuring without \
|
---|
6313 | GNU readline support" >&5
|
---|
6314 | $as_echo "$as_me: WARNING: Can't find GNU readline library; configuring without \
|
---|
6315 | GNU readline support" >&2;}
|
---|
6316 | fi
|
---|
6317 |
|
---|
6318 | if test -n "$ac_mg_readline_lib_found"; then
|
---|
6319 | # on some systems, readline needs curses. It is difficult to
|
---|
6320 | # determine whether this is necessary on the current system,
|
---|
6321 | # since other undefined symbols can be turned up by an
|
---|
6322 | # AC_CHECK_LIB(readline, readline) test that are actually defined
|
---|
6323 | # by mg itself (e.g. xmalloc, xrealloc). So, if we find libcurses,
|
---|
6324 | # we just bung it on and hope for the best.
|
---|
6325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcurses" >&5
|
---|
6326 | $as_echo_n "checking for main in -lcurses... " >&6; }
|
---|
6327 | if ${ac_cv_lib_curses_main+:} false; then :
|
---|
6328 | $as_echo_n "(cached) " >&6
|
---|
6329 | else
|
---|
6330 | ac_check_lib_save_LIBS=$LIBS
|
---|
6331 | LIBS="-lcurses $LIBS"
|
---|
6332 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6333 | /* end confdefs.h. */
|
---|
6334 |
|
---|
6335 |
|
---|
6336 | int
|
---|
6337 | main ()
|
---|
6338 | {
|
---|
6339 | return main ();
|
---|
6340 | ;
|
---|
6341 | return 0;
|
---|
6342 | }
|
---|
6343 | _ACEOF
|
---|
6344 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
6345 | ac_cv_lib_curses_main=yes
|
---|
6346 | else
|
---|
6347 | ac_cv_lib_curses_main=no
|
---|
6348 | fi
|
---|
6349 | rm -f core conftest.err conftest.$ac_objext \
|
---|
6350 | conftest$ac_exeext conftest.$ac_ext
|
---|
6351 | LIBS=$ac_check_lib_save_LIBS
|
---|
6352 | fi
|
---|
6353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_main" >&5
|
---|
6354 | $as_echo "$ac_cv_lib_curses_main" >&6; }
|
---|
6355 | if test "x$ac_cv_lib_curses_main" = xyes; then :
|
---|
6356 | LIBS="$LIBS -lcurses"
|
---|
6357 | fi
|
---|
6358 |
|
---|
6359 | fi
|
---|
6360 | fi
|
---|
6361 | fi
|
---|
6362 |
|
---|
6363 |
|
---|
6364 | # text for endianness
|
---|
6365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
|
---|
6366 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
|
---|
6367 | if ${ac_cv_c_bigendian+:} false; then :
|
---|
6368 | $as_echo_n "(cached) " >&6
|
---|
6369 | else
|
---|
6370 | ac_cv_c_bigendian=unknown
|
---|
6371 | # See if we're dealing with a universal compiler.
|
---|
6372 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6373 | /* end confdefs.h. */
|
---|
6374 | #ifndef __APPLE_CC__
|
---|
6375 | not a universal capable compiler
|
---|
6376 | #endif
|
---|
6377 | typedef int dummy;
|
---|
6378 |
|
---|
6379 | _ACEOF
|
---|
6380 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
6381 |
|
---|
6382 | # Check for potential -arch flags. It is not universal unless
|
---|
6383 | # there are at least two -arch flags with different values.
|
---|
6384 | ac_arch=
|
---|
6385 | ac_prev=
|
---|
6386 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
|
---|
6387 | if test -n "$ac_prev"; then
|
---|
6388 | case $ac_word in
|
---|
6389 | i?86 | x86_64 | ppc | ppc64)
|
---|
6390 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
|
---|
6391 | ac_arch=$ac_word
|
---|
6392 | else
|
---|
6393 | ac_cv_c_bigendian=universal
|
---|
6394 | break
|
---|
6395 | fi
|
---|
6396 | ;;
|
---|
6397 | esac
|
---|
6398 | ac_prev=
|
---|
6399 | elif test "x$ac_word" = "x-arch"; then
|
---|
6400 | ac_prev=arch
|
---|
6401 | fi
|
---|
6402 | done
|
---|
6403 | fi
|
---|
6404 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6405 | if test $ac_cv_c_bigendian = unknown; then
|
---|
6406 | # See if sys/param.h defines the BYTE_ORDER macro.
|
---|
6407 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6408 | /* end confdefs.h. */
|
---|
6409 | #include <sys/types.h>
|
---|
6410 | #include <sys/param.h>
|
---|
6411 |
|
---|
6412 | int
|
---|
6413 | main ()
|
---|
6414 | {
|
---|
6415 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
|
---|
6416 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
|
---|
6417 | && LITTLE_ENDIAN)
|
---|
6418 | bogus endian macros
|
---|
6419 | #endif
|
---|
6420 |
|
---|
6421 | ;
|
---|
6422 | return 0;
|
---|
6423 | }
|
---|
6424 | _ACEOF
|
---|
6425 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
6426 | # It does; now see whether it defined to BIG_ENDIAN or not.
|
---|
6427 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6428 | /* end confdefs.h. */
|
---|
6429 | #include <sys/types.h>
|
---|
6430 | #include <sys/param.h>
|
---|
6431 |
|
---|
6432 | int
|
---|
6433 | main ()
|
---|
6434 | {
|
---|
6435 | #if BYTE_ORDER != BIG_ENDIAN
|
---|
6436 | not big endian
|
---|
6437 | #endif
|
---|
6438 |
|
---|
6439 | ;
|
---|
6440 | return 0;
|
---|
6441 | }
|
---|
6442 | _ACEOF
|
---|
6443 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
6444 | ac_cv_c_bigendian=yes
|
---|
6445 | else
|
---|
6446 | ac_cv_c_bigendian=no
|
---|
6447 | fi
|
---|
6448 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6449 | fi
|
---|
6450 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6451 | fi
|
---|
6452 | if test $ac_cv_c_bigendian = unknown; then
|
---|
6453 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
|
---|
6454 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6455 | /* end confdefs.h. */
|
---|
6456 | #include <limits.h>
|
---|
6457 |
|
---|
6458 | int
|
---|
6459 | main ()
|
---|
6460 | {
|
---|
6461 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
|
---|
6462 | bogus endian macros
|
---|
6463 | #endif
|
---|
6464 |
|
---|
6465 | ;
|
---|
6466 | return 0;
|
---|
6467 | }
|
---|
6468 | _ACEOF
|
---|
6469 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
6470 | # It does; now see whether it defined to _BIG_ENDIAN or not.
|
---|
6471 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6472 | /* end confdefs.h. */
|
---|
6473 | #include <limits.h>
|
---|
6474 |
|
---|
6475 | int
|
---|
6476 | main ()
|
---|
6477 | {
|
---|
6478 | #ifndef _BIG_ENDIAN
|
---|
6479 | not big endian
|
---|
6480 | #endif
|
---|
6481 |
|
---|
6482 | ;
|
---|
6483 | return 0;
|
---|
6484 | }
|
---|
6485 | _ACEOF
|
---|
6486 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
6487 | ac_cv_c_bigendian=yes
|
---|
6488 | else
|
---|
6489 | ac_cv_c_bigendian=no
|
---|
6490 | fi
|
---|
6491 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6492 | fi
|
---|
6493 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6494 | fi
|
---|
6495 | if test $ac_cv_c_bigendian = unknown; then
|
---|
6496 | # Compile a test program.
|
---|
6497 | if test "$cross_compiling" = yes; then :
|
---|
6498 | # Try to guess by grepping values from an object file.
|
---|
6499 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6500 | /* end confdefs.h. */
|
---|
6501 | short int ascii_mm[] =
|
---|
6502 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
|
---|
6503 | short int ascii_ii[] =
|
---|
6504 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
|
---|
6505 | int use_ascii (int i) {
|
---|
6506 | return ascii_mm[i] + ascii_ii[i];
|
---|
6507 | }
|
---|
6508 | short int ebcdic_ii[] =
|
---|
6509 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
|
---|
6510 | short int ebcdic_mm[] =
|
---|
6511 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
|
---|
6512 | int use_ebcdic (int i) {
|
---|
6513 | return ebcdic_mm[i] + ebcdic_ii[i];
|
---|
6514 | }
|
---|
6515 | extern int foo;
|
---|
6516 |
|
---|
6517 | int
|
---|
6518 | main ()
|
---|
6519 | {
|
---|
6520 | return use_ascii (foo) == use_ebcdic (foo);
|
---|
6521 | ;
|
---|
6522 | return 0;
|
---|
6523 | }
|
---|
6524 | _ACEOF
|
---|
6525 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
6526 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
|
---|
6527 | ac_cv_c_bigendian=yes
|
---|
6528 | fi
|
---|
6529 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
|
---|
6530 | if test "$ac_cv_c_bigendian" = unknown; then
|
---|
6531 | ac_cv_c_bigendian=no
|
---|
6532 | else
|
---|
6533 | # finding both strings is unlikely to happen, but who knows?
|
---|
6534 | ac_cv_c_bigendian=unknown
|
---|
6535 | fi
|
---|
6536 | fi
|
---|
6537 | fi
|
---|
6538 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6539 | else
|
---|
6540 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6541 | /* end confdefs.h. */
|
---|
6542 | $ac_includes_default
|
---|
6543 | int
|
---|
6544 | main ()
|
---|
6545 | {
|
---|
6546 |
|
---|
6547 | /* Are we little or big endian? From Harbison&Steele. */
|
---|
6548 | union
|
---|
6549 | {
|
---|
6550 | long int l;
|
---|
6551 | char c[sizeof (long int)];
|
---|
6552 | } u;
|
---|
6553 | u.l = 1;
|
---|
6554 | return u.c[sizeof (long int) - 1] == 1;
|
---|
6555 |
|
---|
6556 | ;
|
---|
6557 | return 0;
|
---|
6558 | }
|
---|
6559 | _ACEOF
|
---|
6560 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
6561 | ac_cv_c_bigendian=no
|
---|
6562 | else
|
---|
6563 | ac_cv_c_bigendian=yes
|
---|
6564 | fi
|
---|
6565 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
6566 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
6567 | fi
|
---|
6568 |
|
---|
6569 | fi
|
---|
6570 | fi
|
---|
6571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
|
---|
6572 | $as_echo "$ac_cv_c_bigendian" >&6; }
|
---|
6573 | case $ac_cv_c_bigendian in #(
|
---|
6574 | yes)
|
---|
6575 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
|
---|
6576 | ;; #(
|
---|
6577 | no)
|
---|
6578 | ;; #(
|
---|
6579 | universal)
|
---|
6580 |
|
---|
6581 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
|
---|
6582 |
|
---|
6583 | ;; #(
|
---|
6584 | *)
|
---|
6585 | as_fn_error $? "unknown endianness
|
---|
6586 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
|
---|
6587 | esac
|
---|
6588 |
|
---|
6589 |
|
---|
6590 | # ---------------------------------------------------------------------------
|
---|
6591 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
6592 | case " $LIBOBJS " in
|
---|
6593 | *" xmalloc.$ac_objext "* ) ;;
|
---|
6594 | *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext"
|
---|
6595 | ;;
|
---|
6596 | esac
|
---|
6597 |
|
---|
6598 | case " $LIBOBJS " in
|
---|
6599 | *" error.$ac_objext "* ) ;;
|
---|
6600 | *) LIBOBJS="$LIBOBJS error.$ac_objext"
|
---|
6601 | ;;
|
---|
6602 | esac
|
---|
6603 |
|
---|
6604 | fi
|
---|
6605 |
|
---|
6606 |
|
---|
6607 | # ---------------------------------------------------------------------------
|
---|
6608 | # see if the user wants to override use of long long
|
---|
6609 | # Check whether --enable-override-longlong was given.
|
---|
6610 | if test "${enable_override_longlong+set}" = set; then :
|
---|
6611 | enableval=$enable_override_longlong; $as_echo "#define DISABLE_LONG_LONG 1" >>confdefs.h
|
---|
6612 |
|
---|
6613 | fi
|
---|
6614 |
|
---|
6615 |
|
---|
6616 |
|
---|
6617 | # ---------------------------------------------------------------------------
|
---|
6618 |
|
---|
6619 | ac_config_files="$ac_config_files Makefile text/Makefile lib/Makefile jni/Makefile java/org/greenstone/mgpp/Makefile"
|
---|
6620 |
|
---|
6621 | ac_config_commands="$ac_config_commands default"
|
---|
6622 |
|
---|
6623 | cat >confcache <<\_ACEOF
|
---|
6624 | # This file is a shell script that caches the results of configure
|
---|
6625 | # tests run on this system so they can be shared between configure
|
---|
6626 | # scripts and configure runs, see configure's option --config-cache.
|
---|
6627 | # It is not useful on other systems. If it contains results you don't
|
---|
6628 | # want to keep, you may remove or edit it.
|
---|
6629 | #
|
---|
6630 | # config.status only pays attention to the cache file if you give it
|
---|
6631 | # the --recheck option to rerun configure.
|
---|
6632 | #
|
---|
6633 | # `ac_cv_env_foo' variables (set or unset) will be overridden when
|
---|
6634 | # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
---|
6635 | # following values.
|
---|
6636 |
|
---|
6637 | _ACEOF
|
---|
6638 |
|
---|
6639 | # The following way of writing the cache mishandles newlines in values,
|
---|
6640 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
6641 | # So, we kill variables containing newlines.
|
---|
6642 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
6643 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
6644 | (
|
---|
6645 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
|
---|
6646 | eval ac_val=\$$ac_var
|
---|
6647 | case $ac_val in #(
|
---|
6648 | *${as_nl}*)
|
---|
6649 | case $ac_var in #(
|
---|
6650 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
---|
6651 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
---|
6652 | esac
|
---|
6653 | case $ac_var in #(
|
---|
6654 | _ | IFS | as_nl) ;; #(
|
---|
6655 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
|
---|
6656 | *) { eval $ac_var=; unset $ac_var;} ;;
|
---|
6657 | esac ;;
|
---|
6658 | esac
|
---|
6659 | done
|
---|
6660 |
|
---|
6661 | (set) 2>&1 |
|
---|
6662 | case $as_nl`(ac_space=' '; set) 2>&1` in #(
|
---|
6663 | *${as_nl}ac_space=\ *)
|
---|
6664 | # `set' does not quote correctly, so add quotes: double-quote
|
---|
6665 | # substitution turns \\\\ into \\, and sed turns \\ into \.
|
---|
6666 | sed -n \
|
---|
6667 | "s/'/'\\\\''/g;
|
---|
6668 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
---|
6669 | ;; #(
|
---|
6670 | *)
|
---|
6671 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
6672 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
---|
6673 | ;;
|
---|
6674 | esac |
|
---|
6675 | sort
|
---|
6676 | ) |
|
---|
6677 | sed '
|
---|
6678 | /^ac_cv_env_/b end
|
---|
6679 | t clear
|
---|
6680 | :clear
|
---|
6681 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
---|
6682 | t end
|
---|
6683 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
---|
6684 | :end' >>confcache
|
---|
6685 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
|
---|
6686 | if test -w "$cache_file"; then
|
---|
6687 | if test "x$cache_file" != "x/dev/null"; then
|
---|
6688 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
|
---|
6689 | $as_echo "$as_me: updating cache $cache_file" >&6;}
|
---|
6690 | if test ! -f "$cache_file" || test -h "$cache_file"; then
|
---|
6691 | cat confcache >"$cache_file"
|
---|
6692 | else
|
---|
6693 | case $cache_file in #(
|
---|
6694 | */* | ?:*)
|
---|
6695 | mv -f confcache "$cache_file"$$ &&
|
---|
6696 | mv -f "$cache_file"$$ "$cache_file" ;; #(
|
---|
6697 | *)
|
---|
6698 | mv -f confcache "$cache_file" ;;
|
---|
6699 | esac
|
---|
6700 | fi
|
---|
6701 | fi
|
---|
6702 | else
|
---|
6703 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
|
---|
6704 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
|
---|
6705 | fi
|
---|
6706 | fi
|
---|
6707 | rm -f confcache
|
---|
6708 |
|
---|
6709 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
6710 | # Let make expand exec_prefix.
|
---|
6711 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
6712 |
|
---|
6713 | DEFS=-DHAVE_CONFIG_H
|
---|
6714 |
|
---|
6715 | ac_libobjs=
|
---|
6716 | ac_ltlibobjs=
|
---|
6717 | U=
|
---|
6718 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
---|
6719 | # 1. Remove the extension, and $U if already installed.
|
---|
6720 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
|
---|
6721 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
|
---|
6722 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
|
---|
6723 | # will be set to the directory where LIBOBJS objects are built.
|
---|
6724 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
|
---|
6725 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
|
---|
6726 | done
|
---|
6727 | LIBOBJS=$ac_libobjs
|
---|
6728 |
|
---|
6729 | LTLIBOBJS=$ac_ltlibobjs
|
---|
6730 |
|
---|
6731 |
|
---|
6732 |
|
---|
6733 |
|
---|
6734 | : "${CONFIG_STATUS=./config.status}"
|
---|
6735 | ac_write_fail=0
|
---|
6736 | ac_clean_files_save=$ac_clean_files
|
---|
6737 | ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
---|
6738 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
|
---|
6739 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
---|
6740 | as_write_fail=0
|
---|
6741 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
|
---|
6742 | #! $SHELL
|
---|
6743 | # Generated by $as_me.
|
---|
6744 | # Run this file to recreate the current configuration.
|
---|
6745 | # Compiler output produced by configure, useful for debugging
|
---|
6746 | # configure, is in config.log if it exists.
|
---|
6747 |
|
---|
6748 | debug=false
|
---|
6749 | ac_cs_recheck=false
|
---|
6750 | ac_cs_silent=false
|
---|
6751 |
|
---|
6752 | SHELL=\${CONFIG_SHELL-$SHELL}
|
---|
6753 | export SHELL
|
---|
6754 | _ASEOF
|
---|
6755 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
|
---|
6756 | ## -------------------- ##
|
---|
6757 | ## M4sh Initialization. ##
|
---|
6758 | ## -------------------- ##
|
---|
6759 |
|
---|
6760 | # Be more Bourne compatible
|
---|
6761 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
6762 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
|
---|
6763 | emulate sh
|
---|
6764 | NULLCMD=:
|
---|
6765 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
|
---|
6766 | # is contrary to our usage. Disable this feature.
|
---|
6767 | alias -g '${1+"$@"}'='"$@"'
|
---|
6768 | setopt NO_GLOB_SUBST
|
---|
6769 | else
|
---|
6770 | case `(set -o) 2>/dev/null` in #(
|
---|
6771 | *posix*) :
|
---|
6772 | set -o posix ;; #(
|
---|
6773 | *) :
|
---|
6774 | ;;
|
---|
6775 | esac
|
---|
6776 | fi
|
---|
6777 |
|
---|
6778 |
|
---|
6779 | as_nl='
|
---|
6780 | '
|
---|
6781 | export as_nl
|
---|
6782 | # Printing a long string crashes Solaris 7 /usr/bin/printf.
|
---|
6783 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
---|
6784 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
6785 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
6786 | # Prefer a ksh shell builtin over an external printf program on Solaris,
|
---|
6787 | # but without wasting forks for bash or zsh.
|
---|
6788 | if test -z "$BASH_VERSION$ZSH_VERSION" \
|
---|
6789 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
6790 | as_echo='print -r --'
|
---|
6791 | as_echo_n='print -rn --'
|
---|
6792 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
6793 | as_echo='printf %s\n'
|
---|
6794 | as_echo_n='printf %s'
|
---|
6795 | else
|
---|
6796 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
|
---|
6797 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
|
---|
6798 | as_echo_n='/usr/ucb/echo -n'
|
---|
6799 | else
|
---|
6800 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
|
---|
6801 | as_echo_n_body='eval
|
---|
6802 | arg=$1;
|
---|
6803 | case $arg in #(
|
---|
6804 | *"$as_nl"*)
|
---|
6805 | expr "X$arg" : "X\\(.*\\)$as_nl";
|
---|
6806 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
|
---|
6807 | esac;
|
---|
6808 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
|
---|
6809 | '
|
---|
6810 | export as_echo_n_body
|
---|
6811 | as_echo_n='sh -c $as_echo_n_body as_echo'
|
---|
6812 | fi
|
---|
6813 | export as_echo_body
|
---|
6814 | as_echo='sh -c $as_echo_body as_echo'
|
---|
6815 | fi
|
---|
6816 |
|
---|
6817 | # The user is always right.
|
---|
6818 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
6819 | PATH_SEPARATOR=:
|
---|
6820 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
|
---|
6821 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
|
---|
6822 | PATH_SEPARATOR=';'
|
---|
6823 | }
|
---|
6824 | fi
|
---|
6825 |
|
---|
6826 |
|
---|
6827 | # IFS
|
---|
6828 | # We need space, tab and new line, in precisely that order. Quoting is
|
---|
6829 | # there to prevent editors from complaining about space-tab.
|
---|
6830 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
---|
6831 | # splitting by setting IFS to empty value.)
|
---|
6832 | IFS=" "" $as_nl"
|
---|
6833 |
|
---|
6834 | # Find who we are. Look in the path if we contain no directory separator.
|
---|
6835 | as_myself=
|
---|
6836 | case $0 in #((
|
---|
6837 | *[\\/]* ) as_myself=$0 ;;
|
---|
6838 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
6839 | for as_dir in $PATH
|
---|
6840 | do
|
---|
6841 | IFS=$as_save_IFS
|
---|
6842 | test -z "$as_dir" && as_dir=.
|
---|
6843 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
6844 | done
|
---|
6845 | IFS=$as_save_IFS
|
---|
6846 |
|
---|
6847 | ;;
|
---|
6848 | esac
|
---|
6849 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
6850 | # in which case we are not to be found in the path.
|
---|
6851 | if test "x$as_myself" = x; then
|
---|
6852 | as_myself=$0
|
---|
6853 | fi
|
---|
6854 | if test ! -f "$as_myself"; then
|
---|
6855 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
---|
6856 | exit 1
|
---|
6857 | fi
|
---|
6858 |
|
---|
6859 | # Unset variables that we do not need and which cause bugs (e.g. in
|
---|
6860 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
|
---|
6861 | # suppresses any "Segmentation fault" message there. '((' could
|
---|
6862 | # trigger a bug in pdksh 5.2.14.
|
---|
6863 | for as_var in BASH_ENV ENV MAIL MAILPATH
|
---|
6864 | do eval test x\${$as_var+set} = xset \
|
---|
6865 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
|
---|
6866 | done
|
---|
6867 | PS1='$ '
|
---|
6868 | PS2='> '
|
---|
6869 | PS4='+ '
|
---|
6870 |
|
---|
6871 | # NLS nuisances.
|
---|
6872 | LC_ALL=C
|
---|
6873 | export LC_ALL
|
---|
6874 | LANGUAGE=C
|
---|
6875 | export LANGUAGE
|
---|
6876 |
|
---|
6877 | # CDPATH.
|
---|
6878 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
---|
6879 |
|
---|
6880 |
|
---|
6881 | # as_fn_error STATUS ERROR [LINENO LOG_FD]
|
---|
6882 | # ----------------------------------------
|
---|
6883 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
|
---|
6884 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
|
---|
6885 | # script with STATUS, using 1 if that was 0.
|
---|
6886 | as_fn_error ()
|
---|
6887 | {
|
---|
6888 | as_status=$1; test $as_status -eq 0 && as_status=1
|
---|
6889 | if test "$4"; then
|
---|
6890 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
6891 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
|
---|
6892 | fi
|
---|
6893 | $as_echo "$as_me: error: $2" >&2
|
---|
6894 | as_fn_exit $as_status
|
---|
6895 | } # as_fn_error
|
---|
6896 |
|
---|
6897 |
|
---|
6898 | # as_fn_set_status STATUS
|
---|
6899 | # -----------------------
|
---|
6900 | # Set $? to STATUS, without forking.
|
---|
6901 | as_fn_set_status ()
|
---|
6902 | {
|
---|
6903 | return $1
|
---|
6904 | } # as_fn_set_status
|
---|
6905 |
|
---|
6906 | # as_fn_exit STATUS
|
---|
6907 | # -----------------
|
---|
6908 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
|
---|
6909 | as_fn_exit ()
|
---|
6910 | {
|
---|
6911 | set +e
|
---|
6912 | as_fn_set_status $1
|
---|
6913 | exit $1
|
---|
6914 | } # as_fn_exit
|
---|
6915 |
|
---|
6916 | # as_fn_unset VAR
|
---|
6917 | # ---------------
|
---|
6918 | # Portably unset VAR.
|
---|
6919 | as_fn_unset ()
|
---|
6920 | {
|
---|
6921 | { eval $1=; unset $1;}
|
---|
6922 | }
|
---|
6923 | as_unset=as_fn_unset
|
---|
6924 | # as_fn_append VAR VALUE
|
---|
6925 | # ----------------------
|
---|
6926 | # Append the text in VALUE to the end of the definition contained in VAR. Take
|
---|
6927 | # advantage of any shell optimizations that allow amortized linear growth over
|
---|
6928 | # repeated appends, instead of the typical quadratic growth present in naive
|
---|
6929 | # implementations.
|
---|
6930 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
|
---|
6931 | eval 'as_fn_append ()
|
---|
6932 | {
|
---|
6933 | eval $1+=\$2
|
---|
6934 | }'
|
---|
6935 | else
|
---|
6936 | as_fn_append ()
|
---|
6937 | {
|
---|
6938 | eval $1=\$$1\$2
|
---|
6939 | }
|
---|
6940 | fi # as_fn_append
|
---|
6941 |
|
---|
6942 | # as_fn_arith ARG...
|
---|
6943 | # ------------------
|
---|
6944 | # Perform arithmetic evaluation on the ARGs, and store the result in the
|
---|
6945 | # global $as_val. Take advantage of shells that can avoid forks. The arguments
|
---|
6946 | # must be portable across $(()) and expr.
|
---|
6947 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
|
---|
6948 | eval 'as_fn_arith ()
|
---|
6949 | {
|
---|
6950 | as_val=$(( $* ))
|
---|
6951 | }'
|
---|
6952 | else
|
---|
6953 | as_fn_arith ()
|
---|
6954 | {
|
---|
6955 | as_val=`expr "$@" || test $? -eq 1`
|
---|
6956 | }
|
---|
6957 | fi # as_fn_arith
|
---|
6958 |
|
---|
6959 |
|
---|
6960 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
6961 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
6962 | as_expr=expr
|
---|
6963 | else
|
---|
6964 | as_expr=false
|
---|
6965 | fi
|
---|
6966 |
|
---|
6967 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
---|
6968 | as_basename=basename
|
---|
6969 | else
|
---|
6970 | as_basename=false
|
---|
6971 | fi
|
---|
6972 |
|
---|
6973 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
---|
6974 | as_dirname=dirname
|
---|
6975 | else
|
---|
6976 | as_dirname=false
|
---|
6977 | fi
|
---|
6978 |
|
---|
6979 | as_me=`$as_basename -- "$0" ||
|
---|
6980 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
6981 | X"$0" : 'X\(//\)$' \| \
|
---|
6982 | X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
6983 | $as_echo X/"$0" |
|
---|
6984 | sed '/^.*\/\([^/][^/]*\)\/*$/{
|
---|
6985 | s//\1/
|
---|
6986 | q
|
---|
6987 | }
|
---|
6988 | /^X\/\(\/\/\)$/{
|
---|
6989 | s//\1/
|
---|
6990 | q
|
---|
6991 | }
|
---|
6992 | /^X\/\(\/\).*/{
|
---|
6993 | s//\1/
|
---|
6994 | q
|
---|
6995 | }
|
---|
6996 | s/.*/./; q'`
|
---|
6997 |
|
---|
6998 | # Avoid depending upon Character Ranges.
|
---|
6999 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
7000 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
7001 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
7002 | as_cr_digits='0123456789'
|
---|
7003 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
7004 |
|
---|
7005 | ECHO_C= ECHO_N= ECHO_T=
|
---|
7006 | case `echo -n x` in #(((((
|
---|
7007 | -n*)
|
---|
7008 | case `echo 'xy\c'` in
|
---|
7009 | *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
---|
7010 | xy) ECHO_C='\c';;
|
---|
7011 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
|
---|
7012 | ECHO_T=' ';;
|
---|
7013 | esac;;
|
---|
7014 | *)
|
---|
7015 | ECHO_N='-n';;
|
---|
7016 | esac
|
---|
7017 |
|
---|
7018 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
7019 | if test -d conf$$.dir; then
|
---|
7020 | rm -f conf$$.dir/conf$$.file
|
---|
7021 | else
|
---|
7022 | rm -f conf$$.dir
|
---|
7023 | mkdir conf$$.dir 2>/dev/null
|
---|
7024 | fi
|
---|
7025 | if (echo >conf$$.file) 2>/dev/null; then
|
---|
7026 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
7027 | as_ln_s='ln -s'
|
---|
7028 | # ... but there are two gotchas:
|
---|
7029 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
---|
7030 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
---|
7031 | # In both cases, we have to default to `cp -p'.
|
---|
7032 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
---|
7033 | as_ln_s='cp -p'
|
---|
7034 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
7035 | as_ln_s=ln
|
---|
7036 | else
|
---|
7037 | as_ln_s='cp -p'
|
---|
7038 | fi
|
---|
7039 | else
|
---|
7040 | as_ln_s='cp -p'
|
---|
7041 | fi
|
---|
7042 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
---|
7043 | rmdir conf$$.dir 2>/dev/null
|
---|
7044 |
|
---|
7045 |
|
---|
7046 | # as_fn_mkdir_p
|
---|
7047 | # -------------
|
---|
7048 | # Create "$as_dir" as a directory, including parents if necessary.
|
---|
7049 | as_fn_mkdir_p ()
|
---|
7050 | {
|
---|
7051 |
|
---|
7052 | case $as_dir in #(
|
---|
7053 | -*) as_dir=./$as_dir;;
|
---|
7054 | esac
|
---|
7055 | test -d "$as_dir" || eval $as_mkdir_p || {
|
---|
7056 | as_dirs=
|
---|
7057 | while :; do
|
---|
7058 | case $as_dir in #(
|
---|
7059 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
|
---|
7060 | *) as_qdir=$as_dir;;
|
---|
7061 | esac
|
---|
7062 | as_dirs="'$as_qdir' $as_dirs"
|
---|
7063 | as_dir=`$as_dirname -- "$as_dir" ||
|
---|
7064 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
7065 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
7066 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
7067 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
7068 | $as_echo X"$as_dir" |
|
---|
7069 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
7070 | s//\1/
|
---|
7071 | q
|
---|
7072 | }
|
---|
7073 | /^X\(\/\/\)[^/].*/{
|
---|
7074 | s//\1/
|
---|
7075 | q
|
---|
7076 | }
|
---|
7077 | /^X\(\/\/\)$/{
|
---|
7078 | s//\1/
|
---|
7079 | q
|
---|
7080 | }
|
---|
7081 | /^X\(\/\).*/{
|
---|
7082 | s//\1/
|
---|
7083 | q
|
---|
7084 | }
|
---|
7085 | s/.*/./; q'`
|
---|
7086 | test -d "$as_dir" && break
|
---|
7087 | done
|
---|
7088 | test -z "$as_dirs" || eval "mkdir $as_dirs"
|
---|
7089 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
|
---|
7090 |
|
---|
7091 |
|
---|
7092 | } # as_fn_mkdir_p
|
---|
7093 | if mkdir -p . 2>/dev/null; then
|
---|
7094 | as_mkdir_p='mkdir -p "$as_dir"'
|
---|
7095 | else
|
---|
7096 | test -d ./-p && rmdir ./-p
|
---|
7097 | as_mkdir_p=false
|
---|
7098 | fi
|
---|
7099 |
|
---|
7100 | if test -x / >/dev/null 2>&1; then
|
---|
7101 | as_test_x='test -x'
|
---|
7102 | else
|
---|
7103 | if ls -dL / >/dev/null 2>&1; then
|
---|
7104 | as_ls_L_option=L
|
---|
7105 | else
|
---|
7106 | as_ls_L_option=
|
---|
7107 | fi
|
---|
7108 | as_test_x='
|
---|
7109 | eval sh -c '\''
|
---|
7110 | if test -d "$1"; then
|
---|
7111 | test -d "$1/.";
|
---|
7112 | else
|
---|
7113 | case $1 in #(
|
---|
7114 | -*)set "./$1";;
|
---|
7115 | esac;
|
---|
7116 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
|
---|
7117 | ???[sx]*):;;*)false;;esac;fi
|
---|
7118 | '\'' sh
|
---|
7119 | '
|
---|
7120 | fi
|
---|
7121 | as_executable_p=$as_test_x
|
---|
7122 |
|
---|
7123 | # Sed expression to map a string onto a valid CPP name.
|
---|
7124 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
7125 |
|
---|
7126 | # Sed expression to map a string onto a valid variable name.
|
---|
7127 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
7128 |
|
---|
7129 |
|
---|
7130 | exec 6>&1
|
---|
7131 | ## ----------------------------------- ##
|
---|
7132 | ## Main body of $CONFIG_STATUS script. ##
|
---|
7133 | ## ----------------------------------- ##
|
---|
7134 | _ASEOF
|
---|
7135 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
|
---|
7136 |
|
---|
7137 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7138 | # Save the log message, to keep $0 and so on meaningful, and to
|
---|
7139 | # report actual input values of CONFIG_FILES etc. instead of their
|
---|
7140 | # values after options handling.
|
---|
7141 | ac_log="
|
---|
7142 | This file was extended by $as_me, which was
|
---|
7143 | generated by GNU Autoconf 2.68. Invocation command line was
|
---|
7144 |
|
---|
7145 | CONFIG_FILES = $CONFIG_FILES
|
---|
7146 | CONFIG_HEADERS = $CONFIG_HEADERS
|
---|
7147 | CONFIG_LINKS = $CONFIG_LINKS
|
---|
7148 | CONFIG_COMMANDS = $CONFIG_COMMANDS
|
---|
7149 | $ $0 $@
|
---|
7150 |
|
---|
7151 | on `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
7152 | "
|
---|
7153 |
|
---|
7154 | _ACEOF
|
---|
7155 |
|
---|
7156 | case $ac_config_files in *"
|
---|
7157 | "*) set x $ac_config_files; shift; ac_config_files=$*;;
|
---|
7158 | esac
|
---|
7159 |
|
---|
7160 | case $ac_config_headers in *"
|
---|
7161 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
|
---|
7162 | esac
|
---|
7163 |
|
---|
7164 |
|
---|
7165 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
7166 | # Files that config.status was made for.
|
---|
7167 | config_files="$ac_config_files"
|
---|
7168 | config_headers="$ac_config_headers"
|
---|
7169 | config_commands="$ac_config_commands"
|
---|
7170 |
|
---|
7171 | _ACEOF
|
---|
7172 |
|
---|
7173 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7174 | ac_cs_usage="\
|
---|
7175 | \`$as_me' instantiates files and other configuration actions
|
---|
7176 | from templates according to the current configuration. Unless the files
|
---|
7177 | and actions are specified as TAGs, all are instantiated by default.
|
---|
7178 |
|
---|
7179 | Usage: $0 [OPTION]... [TAG]...
|
---|
7180 |
|
---|
7181 | -h, --help print this help, then exit
|
---|
7182 | -V, --version print version number and configuration settings, then exit
|
---|
7183 | --config print configuration, then exit
|
---|
7184 | -q, --quiet, --silent
|
---|
7185 | do not print progress messages
|
---|
7186 | -d, --debug don't remove temporary files
|
---|
7187 | --recheck update $as_me by reconfiguring in the same conditions
|
---|
7188 | --file=FILE[:TEMPLATE]
|
---|
7189 | instantiate the configuration file FILE
|
---|
7190 | --header=FILE[:TEMPLATE]
|
---|
7191 | instantiate the configuration header FILE
|
---|
7192 |
|
---|
7193 | Configuration files:
|
---|
7194 | $config_files
|
---|
7195 |
|
---|
7196 | Configuration headers:
|
---|
7197 | $config_headers
|
---|
7198 |
|
---|
7199 | Configuration commands:
|
---|
7200 | $config_commands
|
---|
7201 |
|
---|
7202 | Report bugs to the package provider."
|
---|
7203 |
|
---|
7204 | _ACEOF
|
---|
7205 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
7206 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
|
---|
7207 | ac_cs_version="\\
|
---|
7208 | config.status
|
---|
7209 | configured by $0, generated by GNU Autoconf 2.68,
|
---|
7210 | with options \\"\$ac_cs_config\\"
|
---|
7211 |
|
---|
7212 | Copyright (C) 2010 Free Software Foundation, Inc.
|
---|
7213 | This config.status script is free software; the Free Software Foundation
|
---|
7214 | gives unlimited permission to copy, distribute and modify it."
|
---|
7215 |
|
---|
7216 | ac_pwd='$ac_pwd'
|
---|
7217 | srcdir='$srcdir'
|
---|
7218 | INSTALL='$INSTALL'
|
---|
7219 | AWK='$AWK'
|
---|
7220 | test -n "\$AWK" || AWK=awk
|
---|
7221 | _ACEOF
|
---|
7222 |
|
---|
7223 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7224 | # The default lists apply if the user does not specify any file.
|
---|
7225 | ac_need_defaults=:
|
---|
7226 | while test $# != 0
|
---|
7227 | do
|
---|
7228 | case $1 in
|
---|
7229 | --*=?*)
|
---|
7230 | ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
---|
7231 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
|
---|
7232 | ac_shift=:
|
---|
7233 | ;;
|
---|
7234 | --*=)
|
---|
7235 | ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
---|
7236 | ac_optarg=
|
---|
7237 | ac_shift=:
|
---|
7238 | ;;
|
---|
7239 | *)
|
---|
7240 | ac_option=$1
|
---|
7241 | ac_optarg=$2
|
---|
7242 | ac_shift=shift
|
---|
7243 | ;;
|
---|
7244 | esac
|
---|
7245 |
|
---|
7246 | case $ac_option in
|
---|
7247 | # Handling of the options.
|
---|
7248 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
7249 | ac_cs_recheck=: ;;
|
---|
7250 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
|
---|
7251 | $as_echo "$ac_cs_version"; exit ;;
|
---|
7252 | --config | --confi | --conf | --con | --co | --c )
|
---|
7253 | $as_echo "$ac_cs_config"; exit ;;
|
---|
7254 | --debug | --debu | --deb | --de | --d | -d )
|
---|
7255 | debug=: ;;
|
---|
7256 | --file | --fil | --fi | --f )
|
---|
7257 | $ac_shift
|
---|
7258 | case $ac_optarg in
|
---|
7259 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
7260 | '') as_fn_error $? "missing file argument" ;;
|
---|
7261 | esac
|
---|
7262 | as_fn_append CONFIG_FILES " '$ac_optarg'"
|
---|
7263 | ac_need_defaults=false;;
|
---|
7264 | --header | --heade | --head | --hea )
|
---|
7265 | $ac_shift
|
---|
7266 | case $ac_optarg in
|
---|
7267 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
7268 | esac
|
---|
7269 | as_fn_append CONFIG_HEADERS " '$ac_optarg'"
|
---|
7270 | ac_need_defaults=false;;
|
---|
7271 | --he | --h)
|
---|
7272 | # Conflict between --help and --header
|
---|
7273 | as_fn_error $? "ambiguous option: \`$1'
|
---|
7274 | Try \`$0 --help' for more information.";;
|
---|
7275 | --help | --hel | -h )
|
---|
7276 | $as_echo "$ac_cs_usage"; exit ;;
|
---|
7277 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
7278 | | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
---|
7279 | ac_cs_silent=: ;;
|
---|
7280 |
|
---|
7281 | # This is an error.
|
---|
7282 | -*) as_fn_error $? "unrecognized option: \`$1'
|
---|
7283 | Try \`$0 --help' for more information." ;;
|
---|
7284 |
|
---|
7285 | *) as_fn_append ac_config_targets " $1"
|
---|
7286 | ac_need_defaults=false ;;
|
---|
7287 |
|
---|
7288 | esac
|
---|
7289 | shift
|
---|
7290 | done
|
---|
7291 |
|
---|
7292 | ac_configure_extra_args=
|
---|
7293 |
|
---|
7294 | if $ac_cs_silent; then
|
---|
7295 | exec 6>/dev/null
|
---|
7296 | ac_configure_extra_args="$ac_configure_extra_args --silent"
|
---|
7297 | fi
|
---|
7298 |
|
---|
7299 | _ACEOF
|
---|
7300 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
7301 | if \$ac_cs_recheck; then
|
---|
7302 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
---|
7303 | shift
|
---|
7304 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
|
---|
7305 | CONFIG_SHELL='$SHELL'
|
---|
7306 | export CONFIG_SHELL
|
---|
7307 | exec "\$@"
|
---|
7308 | fi
|
---|
7309 |
|
---|
7310 | _ACEOF
|
---|
7311 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7312 | exec 5>>config.log
|
---|
7313 | {
|
---|
7314 | echo
|
---|
7315 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
---|
7316 | ## Running $as_me. ##
|
---|
7317 | _ASBOX
|
---|
7318 | $as_echo "$ac_log"
|
---|
7319 | } >&5
|
---|
7320 |
|
---|
7321 | _ACEOF
|
---|
7322 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
7323 | _ACEOF
|
---|
7324 |
|
---|
7325 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7326 |
|
---|
7327 | # Handling of arguments.
|
---|
7328 | for ac_config_target in $ac_config_targets
|
---|
7329 | do
|
---|
7330 | case $ac_config_target in
|
---|
7331 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
---|
7332 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
---|
7333 | "text/Makefile") CONFIG_FILES="$CONFIG_FILES text/Makefile" ;;
|
---|
7334 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
|
---|
7335 | "jni/Makefile") CONFIG_FILES="$CONFIG_FILES jni/Makefile" ;;
|
---|
7336 | "java/org/greenstone/mgpp/Makefile") CONFIG_FILES="$CONFIG_FILES java/org/greenstone/mgpp/Makefile" ;;
|
---|
7337 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
|
---|
7338 |
|
---|
7339 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
|
---|
7340 | esac
|
---|
7341 | done
|
---|
7342 |
|
---|
7343 |
|
---|
7344 | # If the user did not use the arguments to specify the items to instantiate,
|
---|
7345 | # then the envvar interface is used. Set only those that are not.
|
---|
7346 | # We use the long form for the default assignment because of an extremely
|
---|
7347 | # bizarre bug on SunOS 4.1.3.
|
---|
7348 | if $ac_need_defaults; then
|
---|
7349 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
---|
7350 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
---|
7351 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
|
---|
7352 | fi
|
---|
7353 |
|
---|
7354 | # Have a temporary directory for convenience. Make it in the build tree
|
---|
7355 | # simply because there is no reason against having it here, and in addition,
|
---|
7356 | # creating and moving files from /tmp can sometimes cause problems.
|
---|
7357 | # Hook for its removal unless debugging.
|
---|
7358 | # Note that there is a small window in which the directory will not be cleaned:
|
---|
7359 | # after its creation but before its name has been assigned to `$tmp'.
|
---|
7360 | $debug ||
|
---|
7361 | {
|
---|
7362 | tmp= ac_tmp=
|
---|
7363 | trap 'exit_status=$?
|
---|
7364 | : "${ac_tmp:=$tmp}"
|
---|
7365 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
|
---|
7366 | ' 0
|
---|
7367 | trap 'as_fn_exit 1' 1 2 13 15
|
---|
7368 | }
|
---|
7369 | # Create a (secure) tmp directory for tmp files.
|
---|
7370 |
|
---|
7371 | {
|
---|
7372 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
|
---|
7373 | test -d "$tmp"
|
---|
7374 | } ||
|
---|
7375 | {
|
---|
7376 | tmp=./conf$$-$RANDOM
|
---|
7377 | (umask 077 && mkdir "$tmp")
|
---|
7378 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
|
---|
7379 | ac_tmp=$tmp
|
---|
7380 |
|
---|
7381 | # Set up the scripts for CONFIG_FILES section.
|
---|
7382 | # No need to generate them if there are no CONFIG_FILES.
|
---|
7383 | # This happens for instance with `./config.status config.h'.
|
---|
7384 | if test -n "$CONFIG_FILES"; then
|
---|
7385 |
|
---|
7386 |
|
---|
7387 | ac_cr=`echo X | tr X '\015'`
|
---|
7388 | # On cygwin, bash can eat \r inside `` if the user requested igncr.
|
---|
7389 | # But we know of no other shell where ac_cr would be empty at this
|
---|
7390 | # point, so we can use a bashism as a fallback.
|
---|
7391 | if test "x$ac_cr" = x; then
|
---|
7392 | eval ac_cr=\$\'\\r\'
|
---|
7393 | fi
|
---|
7394 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
|
---|
7395 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
|
---|
7396 | ac_cs_awk_cr='\\r'
|
---|
7397 | else
|
---|
7398 | ac_cs_awk_cr=$ac_cr
|
---|
7399 | fi
|
---|
7400 |
|
---|
7401 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
|
---|
7402 | _ACEOF
|
---|
7403 |
|
---|
7404 |
|
---|
7405 | {
|
---|
7406 | echo "cat >conf$$subs.awk <<_ACEOF" &&
|
---|
7407 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
|
---|
7408 | echo "_ACEOF"
|
---|
7409 | } >conf$$subs.sh ||
|
---|
7410 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
7411 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
|
---|
7412 | ac_delim='%!_!# '
|
---|
7413 | for ac_last_try in false false false false false :; do
|
---|
7414 | . ./conf$$subs.sh ||
|
---|
7415 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
7416 |
|
---|
7417 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
|
---|
7418 | if test $ac_delim_n = $ac_delim_num; then
|
---|
7419 | break
|
---|
7420 | elif $ac_last_try; then
|
---|
7421 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
7422 | else
|
---|
7423 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
---|
7424 | fi
|
---|
7425 | done
|
---|
7426 | rm -f conf$$subs.sh
|
---|
7427 |
|
---|
7428 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
7429 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
|
---|
7430 | _ACEOF
|
---|
7431 | sed -n '
|
---|
7432 | h
|
---|
7433 | s/^/S["/; s/!.*/"]=/
|
---|
7434 | p
|
---|
7435 | g
|
---|
7436 | s/^[^!]*!//
|
---|
7437 | :repl
|
---|
7438 | t repl
|
---|
7439 | s/'"$ac_delim"'$//
|
---|
7440 | t delim
|
---|
7441 | :nl
|
---|
7442 | h
|
---|
7443 | s/\(.\{148\}\)..*/\1/
|
---|
7444 | t more1
|
---|
7445 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
|
---|
7446 | p
|
---|
7447 | n
|
---|
7448 | b repl
|
---|
7449 | :more1
|
---|
7450 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/
|
---|
7451 | p
|
---|
7452 | g
|
---|
7453 | s/.\{148\}//
|
---|
7454 | t nl
|
---|
7455 | :delim
|
---|
7456 | h
|
---|
7457 | s/\(.\{148\}\)..*/\1/
|
---|
7458 | t more2
|
---|
7459 | s/["\\]/\\&/g; s/^/"/; s/$/"/
|
---|
7460 | p
|
---|
7461 | b
|
---|
7462 | :more2
|
---|
7463 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/
|
---|
7464 | p
|
---|
7465 | g
|
---|
7466 | s/.\{148\}//
|
---|
7467 | t delim
|
---|
7468 | ' <conf$$subs.awk | sed '
|
---|
7469 | /^[^""]/{
|
---|
7470 | N
|
---|
7471 | s/\n//
|
---|
7472 | }
|
---|
7473 | ' >>$CONFIG_STATUS || ac_write_fail=1
|
---|
7474 | rm -f conf$$subs.awk
|
---|
7475 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
7476 | _ACAWK
|
---|
7477 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
|
---|
7478 | for (key in S) S_is_set[key] = 1
|
---|
7479 | FS = ""
|
---|
7480 |
|
---|
7481 | }
|
---|
7482 | {
|
---|
7483 | line = $ 0
|
---|
7484 | nfields = split(line, field, "@")
|
---|
7485 | substed = 0
|
---|
7486 | len = length(field[1])
|
---|
7487 | for (i = 2; i < nfields; i++) {
|
---|
7488 | key = field[i]
|
---|
7489 | keylen = length(key)
|
---|
7490 | if (S_is_set[key]) {
|
---|
7491 | value = S[key]
|
---|
7492 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
|
---|
7493 | len += length(value) + length(field[++i])
|
---|
7494 | substed = 1
|
---|
7495 | } else
|
---|
7496 | len += 1 + keylen
|
---|
7497 | }
|
---|
7498 |
|
---|
7499 | print line
|
---|
7500 | }
|
---|
7501 |
|
---|
7502 | _ACAWK
|
---|
7503 | _ACEOF
|
---|
7504 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7505 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
|
---|
7506 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
|
---|
7507 | else
|
---|
7508 | cat
|
---|
7509 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
|
---|
7510 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
|
---|
7511 | _ACEOF
|
---|
7512 |
|
---|
7513 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
|
---|
7514 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
|
---|
7515 | # trailing colons and then remove the whole line if VPATH becomes empty
|
---|
7516 | # (actually we leave an empty line to preserve line numbers).
|
---|
7517 | if test "x$srcdir" = x.; then
|
---|
7518 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
|
---|
7519 | h
|
---|
7520 | s///
|
---|
7521 | s/^/:/
|
---|
7522 | s/[ ]*$/:/
|
---|
7523 | s/:\$(srcdir):/:/g
|
---|
7524 | s/:\${srcdir}:/:/g
|
---|
7525 | s/:@srcdir@:/:/g
|
---|
7526 | s/^:*//
|
---|
7527 | s/:*$//
|
---|
7528 | x
|
---|
7529 | s/\(=[ ]*\).*/\1/
|
---|
7530 | G
|
---|
7531 | s/\n//
|
---|
7532 | s/^[^=]*=[ ]*$//
|
---|
7533 | }'
|
---|
7534 | fi
|
---|
7535 |
|
---|
7536 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7537 | fi # test -n "$CONFIG_FILES"
|
---|
7538 |
|
---|
7539 | # Set up the scripts for CONFIG_HEADERS section.
|
---|
7540 | # No need to generate them if there are no CONFIG_HEADERS.
|
---|
7541 | # This happens for instance with `./config.status Makefile'.
|
---|
7542 | if test -n "$CONFIG_HEADERS"; then
|
---|
7543 | cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
|
---|
7544 | BEGIN {
|
---|
7545 | _ACEOF
|
---|
7546 |
|
---|
7547 | # Transform confdefs.h into an awk script `defines.awk', embedded as
|
---|
7548 | # here-document in config.status, that substitutes the proper values into
|
---|
7549 | # config.h.in to produce config.h.
|
---|
7550 |
|
---|
7551 | # Create a delimiter string that does not exist in confdefs.h, to ease
|
---|
7552 | # handling of long lines.
|
---|
7553 | ac_delim='%!_!# '
|
---|
7554 | for ac_last_try in false false :; do
|
---|
7555 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
|
---|
7556 | if test -z "$ac_tt"; then
|
---|
7557 | break
|
---|
7558 | elif $ac_last_try; then
|
---|
7559 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
|
---|
7560 | else
|
---|
7561 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
---|
7562 | fi
|
---|
7563 | done
|
---|
7564 |
|
---|
7565 | # For the awk script, D is an array of macro values keyed by name,
|
---|
7566 | # likewise P contains macro parameters if any. Preserve backslash
|
---|
7567 | # newline sequences.
|
---|
7568 |
|
---|
7569 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
|
---|
7570 | sed -n '
|
---|
7571 | s/.\{148\}/&'"$ac_delim"'/g
|
---|
7572 | t rset
|
---|
7573 | :rset
|
---|
7574 | s/^[ ]*#[ ]*define[ ][ ]*/ /
|
---|
7575 | t def
|
---|
7576 | d
|
---|
7577 | :def
|
---|
7578 | s/\\$//
|
---|
7579 | t bsnl
|
---|
7580 | s/["\\]/\\&/g
|
---|
7581 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
|
---|
7582 | D["\1"]=" \3"/p
|
---|
7583 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
|
---|
7584 | d
|
---|
7585 | :bsnl
|
---|
7586 | s/["\\]/\\&/g
|
---|
7587 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
|
---|
7588 | D["\1"]=" \3\\\\\\n"\\/p
|
---|
7589 | t cont
|
---|
7590 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
|
---|
7591 | t cont
|
---|
7592 | d
|
---|
7593 | :cont
|
---|
7594 | n
|
---|
7595 | s/.\{148\}/&'"$ac_delim"'/g
|
---|
7596 | t clear
|
---|
7597 | :clear
|
---|
7598 | s/\\$//
|
---|
7599 | t bsnlc
|
---|
7600 | s/["\\]/\\&/g; s/^/"/; s/$/"/p
|
---|
7601 | d
|
---|
7602 | :bsnlc
|
---|
7603 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
|
---|
7604 | b cont
|
---|
7605 | ' <confdefs.h | sed '
|
---|
7606 | s/'"$ac_delim"'/"\\\
|
---|
7607 | "/g' >>$CONFIG_STATUS || ac_write_fail=1
|
---|
7608 |
|
---|
7609 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
7610 | for (key in D) D_is_set[key] = 1
|
---|
7611 | FS = ""
|
---|
7612 | }
|
---|
7613 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
|
---|
7614 | line = \$ 0
|
---|
7615 | split(line, arg, " ")
|
---|
7616 | if (arg[1] == "#") {
|
---|
7617 | defundef = arg[2]
|
---|
7618 | mac1 = arg[3]
|
---|
7619 | } else {
|
---|
7620 | defundef = substr(arg[1], 2)
|
---|
7621 | mac1 = arg[2]
|
---|
7622 | }
|
---|
7623 | split(mac1, mac2, "(") #)
|
---|
7624 | macro = mac2[1]
|
---|
7625 | prefix = substr(line, 1, index(line, defundef) - 1)
|
---|
7626 | if (D_is_set[macro]) {
|
---|
7627 | # Preserve the white space surrounding the "#".
|
---|
7628 | print prefix "define", macro P[macro] D[macro]
|
---|
7629 | next
|
---|
7630 | } else {
|
---|
7631 | # Replace #undef with comments. This is necessary, for example,
|
---|
7632 | # in the case of _POSIX_SOURCE, which is predefined and required
|
---|
7633 | # on some systems where configure will not decide to define it.
|
---|
7634 | if (defundef == "undef") {
|
---|
7635 | print "/*", prefix defundef, macro, "*/"
|
---|
7636 | next
|
---|
7637 | }
|
---|
7638 | }
|
---|
7639 | }
|
---|
7640 | { print }
|
---|
7641 | _ACAWK
|
---|
7642 | _ACEOF
|
---|
7643 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7644 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
|
---|
7645 | fi # test -n "$CONFIG_HEADERS"
|
---|
7646 |
|
---|
7647 |
|
---|
7648 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
|
---|
7649 | shift
|
---|
7650 | for ac_tag
|
---|
7651 | do
|
---|
7652 | case $ac_tag in
|
---|
7653 | :[FHLC]) ac_mode=$ac_tag; continue;;
|
---|
7654 | esac
|
---|
7655 | case $ac_mode$ac_tag in
|
---|
7656 | :[FHL]*:*);;
|
---|
7657 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
|
---|
7658 | :[FH]-) ac_tag=-:-;;
|
---|
7659 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
|
---|
7660 | esac
|
---|
7661 | ac_save_IFS=$IFS
|
---|
7662 | IFS=:
|
---|
7663 | set x $ac_tag
|
---|
7664 | IFS=$ac_save_IFS
|
---|
7665 | shift
|
---|
7666 | ac_file=$1
|
---|
7667 | shift
|
---|
7668 |
|
---|
7669 | case $ac_mode in
|
---|
7670 | :L) ac_source=$1;;
|
---|
7671 | :[FH])
|
---|
7672 | ac_file_inputs=
|
---|
7673 | for ac_f
|
---|
7674 | do
|
---|
7675 | case $ac_f in
|
---|
7676 | -) ac_f="$ac_tmp/stdin";;
|
---|
7677 | *) # Look for the file first in the build tree, then in the source tree
|
---|
7678 | # (if the path is not absolute). The absolute path cannot be DOS-style,
|
---|
7679 | # because $ac_f cannot contain `:'.
|
---|
7680 | test -f "$ac_f" ||
|
---|
7681 | case $ac_f in
|
---|
7682 | [\\/$]*) false;;
|
---|
7683 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
|
---|
7684 | esac ||
|
---|
7685 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
|
---|
7686 | esac
|
---|
7687 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
|
---|
7688 | as_fn_append ac_file_inputs " '$ac_f'"
|
---|
7689 | done
|
---|
7690 |
|
---|
7691 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
7692 | # use $as_me), people would be surprised to read:
|
---|
7693 | # /* config.h. Generated by config.status. */
|
---|
7694 | configure_input='Generated from '`
|
---|
7695 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
|
---|
7696 | `' by configure.'
|
---|
7697 | if test x"$ac_file" != x-; then
|
---|
7698 | configure_input="$ac_file. $configure_input"
|
---|
7699 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
|
---|
7700 | $as_echo "$as_me: creating $ac_file" >&6;}
|
---|
7701 | fi
|
---|
7702 | # Neutralize special characters interpreted by sed in replacement strings.
|
---|
7703 | case $configure_input in #(
|
---|
7704 | *\&* | *\|* | *\\* )
|
---|
7705 | ac_sed_conf_input=`$as_echo "$configure_input" |
|
---|
7706 | sed 's/[\\\\&|]/\\\\&/g'`;; #(
|
---|
7707 | *) ac_sed_conf_input=$configure_input;;
|
---|
7708 | esac
|
---|
7709 |
|
---|
7710 | case $ac_tag in
|
---|
7711 | *:-:* | *:-) cat >"$ac_tmp/stdin" \
|
---|
7712 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
|
---|
7713 | esac
|
---|
7714 | ;;
|
---|
7715 | esac
|
---|
7716 |
|
---|
7717 | ac_dir=`$as_dirname -- "$ac_file" ||
|
---|
7718 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
7719 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
7720 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
7721 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
7722 | $as_echo X"$ac_file" |
|
---|
7723 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
7724 | s//\1/
|
---|
7725 | q
|
---|
7726 | }
|
---|
7727 | /^X\(\/\/\)[^/].*/{
|
---|
7728 | s//\1/
|
---|
7729 | q
|
---|
7730 | }
|
---|
7731 | /^X\(\/\/\)$/{
|
---|
7732 | s//\1/
|
---|
7733 | q
|
---|
7734 | }
|
---|
7735 | /^X\(\/\).*/{
|
---|
7736 | s//\1/
|
---|
7737 | q
|
---|
7738 | }
|
---|
7739 | s/.*/./; q'`
|
---|
7740 | as_dir="$ac_dir"; as_fn_mkdir_p
|
---|
7741 | ac_builddir=.
|
---|
7742 |
|
---|
7743 | case "$ac_dir" in
|
---|
7744 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
7745 | *)
|
---|
7746 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
|
---|
7747 | # A ".." for each directory in $ac_dir_suffix.
|
---|
7748 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
---|
7749 | case $ac_top_builddir_sub in
|
---|
7750 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
7751 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
7752 | esac ;;
|
---|
7753 | esac
|
---|
7754 | ac_abs_top_builddir=$ac_pwd
|
---|
7755 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
7756 | # for backward compatibility:
|
---|
7757 | ac_top_builddir=$ac_top_build_prefix
|
---|
7758 |
|
---|
7759 | case $srcdir in
|
---|
7760 | .) # We are building in place.
|
---|
7761 | ac_srcdir=.
|
---|
7762 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
7763 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
7764 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
7765 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
7766 | ac_top_srcdir=$srcdir
|
---|
7767 | ac_abs_top_srcdir=$srcdir ;;
|
---|
7768 | *) # Relative name.
|
---|
7769 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
7770 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
7771 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
7772 | esac
|
---|
7773 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
7774 |
|
---|
7775 |
|
---|
7776 | case $ac_mode in
|
---|
7777 | :F)
|
---|
7778 | #
|
---|
7779 | # CONFIG_FILE
|
---|
7780 | #
|
---|
7781 |
|
---|
7782 | case $INSTALL in
|
---|
7783 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
---|
7784 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
|
---|
7785 | esac
|
---|
7786 | _ACEOF
|
---|
7787 |
|
---|
7788 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7789 | # If the template does not know about datarootdir, expand it.
|
---|
7790 | # FIXME: This hack should be removed a few years after 2.60.
|
---|
7791 | ac_datarootdir_hack=; ac_datarootdir_seen=
|
---|
7792 | ac_sed_dataroot='
|
---|
7793 | /datarootdir/ {
|
---|
7794 | p
|
---|
7795 | q
|
---|
7796 | }
|
---|
7797 | /@datadir@/p
|
---|
7798 | /@docdir@/p
|
---|
7799 | /@infodir@/p
|
---|
7800 | /@localedir@/p
|
---|
7801 | /@mandir@/p'
|
---|
7802 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
|
---|
7803 | *datarootdir*) ac_datarootdir_seen=yes;;
|
---|
7804 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
|
---|
7805 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
|
---|
7806 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
|
---|
7807 | _ACEOF
|
---|
7808 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
7809 | ac_datarootdir_hack='
|
---|
7810 | s&@datadir@&$datadir&g
|
---|
7811 | s&@docdir@&$docdir&g
|
---|
7812 | s&@infodir@&$infodir&g
|
---|
7813 | s&@localedir@&$localedir&g
|
---|
7814 | s&@mandir@&$mandir&g
|
---|
7815 | s&\\\${datarootdir}&$datarootdir&g' ;;
|
---|
7816 | esac
|
---|
7817 | _ACEOF
|
---|
7818 |
|
---|
7819 | # Neutralize VPATH when `$srcdir' = `.'.
|
---|
7820 | # Shell code in configure.ac might set extrasub.
|
---|
7821 | # FIXME: do we really want to maintain this feature?
|
---|
7822 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
7823 | ac_sed_extra="$ac_vpsub
|
---|
7824 | $extrasub
|
---|
7825 | _ACEOF
|
---|
7826 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7827 | :t
|
---|
7828 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
---|
7829 | s|@configure_input@|$ac_sed_conf_input|;t t
|
---|
7830 | s&@top_builddir@&$ac_top_builddir_sub&;t t
|
---|
7831 | s&@top_build_prefix@&$ac_top_build_prefix&;t t
|
---|
7832 | s&@srcdir@&$ac_srcdir&;t t
|
---|
7833 | s&@abs_srcdir@&$ac_abs_srcdir&;t t
|
---|
7834 | s&@top_srcdir@&$ac_top_srcdir&;t t
|
---|
7835 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
|
---|
7836 | s&@builddir@&$ac_builddir&;t t
|
---|
7837 | s&@abs_builddir@&$ac_abs_builddir&;t t
|
---|
7838 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
|
---|
7839 | s&@INSTALL@&$ac_INSTALL&;t t
|
---|
7840 | $ac_datarootdir_hack
|
---|
7841 | "
|
---|
7842 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
|
---|
7843 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
7844 |
|
---|
7845 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
|
---|
7846 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
|
---|
7847 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
|
---|
7848 | "$ac_tmp/out"`; test -z "$ac_out"; } &&
|
---|
7849 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
---|
7850 | which seems to be undefined. Please make sure it is defined" >&5
|
---|
7851 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
---|
7852 | which seems to be undefined. Please make sure it is defined" >&2;}
|
---|
7853 |
|
---|
7854 | rm -f "$ac_tmp/stdin"
|
---|
7855 | case $ac_file in
|
---|
7856 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
|
---|
7857 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
|
---|
7858 | esac \
|
---|
7859 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
7860 | ;;
|
---|
7861 | :H)
|
---|
7862 | #
|
---|
7863 | # CONFIG_HEADER
|
---|
7864 | #
|
---|
7865 | if test x"$ac_file" != x-; then
|
---|
7866 | {
|
---|
7867 | $as_echo "/* $configure_input */" \
|
---|
7868 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
|
---|
7869 | } >"$ac_tmp/config.h" \
|
---|
7870 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
7871 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
|
---|
7872 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
|
---|
7873 | $as_echo "$as_me: $ac_file is unchanged" >&6;}
|
---|
7874 | else
|
---|
7875 | rm -f "$ac_file"
|
---|
7876 | mv "$ac_tmp/config.h" "$ac_file" \
|
---|
7877 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
7878 | fi
|
---|
7879 | else
|
---|
7880 | $as_echo "/* $configure_input */" \
|
---|
7881 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
|
---|
7882 | || as_fn_error $? "could not create -" "$LINENO" 5
|
---|
7883 | fi
|
---|
7884 | ;;
|
---|
7885 |
|
---|
7886 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
|
---|
7887 | $as_echo "$as_me: executing $ac_file commands" >&6;}
|
---|
7888 | ;;
|
---|
7889 | esac
|
---|
7890 |
|
---|
7891 |
|
---|
7892 | case $ac_file$ac_mode in
|
---|
7893 | "default":C) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
|
---|
7894 |
|
---|
7895 | esac
|
---|
7896 | done # for ac_tag
|
---|
7897 |
|
---|
7898 |
|
---|
7899 | as_fn_exit 0
|
---|
7900 | _ACEOF
|
---|
7901 | ac_clean_files=$ac_clean_files_save
|
---|
7902 |
|
---|
7903 | test $ac_write_fail = 0 ||
|
---|
7904 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
|
---|
7905 |
|
---|
7906 |
|
---|
7907 | # configure is writing to config.log, and then calls config.status.
|
---|
7908 | # config.status does its own redirection, appending to config.log.
|
---|
7909 | # Unfortunately, on DOS this fails, as config.log is still kept open
|
---|
7910 | # by configure, so config.status won't be able to write to it; its
|
---|
7911 | # output is simply discarded. So we exec the FD to /dev/null,
|
---|
7912 | # effectively closing config.log, so it can be properly (re)opened and
|
---|
7913 | # appended to by config.status. When coming back to configure, we
|
---|
7914 | # need to make the FD available again.
|
---|
7915 | if test "$no_create" != yes; then
|
---|
7916 | ac_cs_success=:
|
---|
7917 | ac_config_status_args=
|
---|
7918 | test "$silent" = yes &&
|
---|
7919 | ac_config_status_args="$ac_config_status_args --quiet"
|
---|
7920 | exec 5>/dev/null
|
---|
7921 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
---|
7922 | exec 5>>config.log
|
---|
7923 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
---|
7924 | # would make configure fail if this is the last instruction.
|
---|
7925 | $ac_cs_success || as_fn_exit 1
|
---|
7926 | fi
|
---|
7927 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
|
---|
7928 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
|
---|
7929 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
|
---|
7930 | fi
|
---|
7931 |
|
---|