1 | #! /bin/sh
|
---|
2 | # Guess values for system-dependent variables and create Makefiles.
|
---|
3 | # Generated by GNU Autoconf 2.69.
|
---|
4 | #
|
---|
5 | #
|
---|
6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
|
---|
7 | #
|
---|
8 | #
|
---|
9 | # This configure script is free software; the Free Software Foundation
|
---|
10 | # gives unlimited permission to copy, distribute and modify it.
|
---|
11 | ## -------------------- ##
|
---|
12 | ## M4sh Initialization. ##
|
---|
13 | ## -------------------- ##
|
---|
14 |
|
---|
15 | # Be more Bourne compatible
|
---|
16 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
|
---|
18 | emulate sh
|
---|
19 | NULLCMD=:
|
---|
20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
|
---|
21 | # is contrary to our usage. Disable this feature.
|
---|
22 | alias -g '${1+"$@"}'='"$@"'
|
---|
23 | setopt NO_GLOB_SUBST
|
---|
24 | else
|
---|
25 | case `(set -o) 2>/dev/null` in #(
|
---|
26 | *posix*) :
|
---|
27 | set -o posix ;; #(
|
---|
28 | *) :
|
---|
29 | ;;
|
---|
30 | esac
|
---|
31 | fi
|
---|
32 |
|
---|
33 |
|
---|
34 | as_nl='
|
---|
35 | '
|
---|
36 | export as_nl
|
---|
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf.
|
---|
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
---|
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
41 | # Prefer a ksh shell builtin over an external printf program on Solaris,
|
---|
42 | # but without wasting forks for bash or zsh.
|
---|
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \
|
---|
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
45 | as_echo='print -r --'
|
---|
46 | as_echo_n='print -rn --'
|
---|
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
48 | as_echo='printf %s\n'
|
---|
49 | as_echo_n='printf %s'
|
---|
50 | else
|
---|
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
|
---|
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
|
---|
53 | as_echo_n='/usr/ucb/echo -n'
|
---|
54 | else
|
---|
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
|
---|
56 | as_echo_n_body='eval
|
---|
57 | arg=$1;
|
---|
58 | case $arg in #(
|
---|
59 | *"$as_nl"*)
|
---|
60 | expr "X$arg" : "X\\(.*\\)$as_nl";
|
---|
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
|
---|
62 | esac;
|
---|
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
|
---|
64 | '
|
---|
65 | export as_echo_n_body
|
---|
66 | as_echo_n='sh -c $as_echo_n_body as_echo'
|
---|
67 | fi
|
---|
68 | export as_echo_body
|
---|
69 | as_echo='sh -c $as_echo_body as_echo'
|
---|
70 | fi
|
---|
71 |
|
---|
72 | # The user is always right.
|
---|
73 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
74 | PATH_SEPARATOR=:
|
---|
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
|
---|
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
|
---|
77 | PATH_SEPARATOR=';'
|
---|
78 | }
|
---|
79 | fi
|
---|
80 |
|
---|
81 |
|
---|
82 | # IFS
|
---|
83 | # We need space, tab and new line, in precisely that order. Quoting is
|
---|
84 | # there to prevent editors from complaining about space-tab.
|
---|
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
---|
86 | # splitting by setting IFS to empty value.)
|
---|
87 | IFS=" "" $as_nl"
|
---|
88 |
|
---|
89 | # Find who we are. Look in the path if we contain no directory separator.
|
---|
90 | as_myself=
|
---|
91 | case $0 in #((
|
---|
92 | *[\\/]* ) as_myself=$0 ;;
|
---|
93 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
94 | for as_dir in $PATH
|
---|
95 | do
|
---|
96 | IFS=$as_save_IFS
|
---|
97 | test -z "$as_dir" && as_dir=.
|
---|
98 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
99 | done
|
---|
100 | IFS=$as_save_IFS
|
---|
101 |
|
---|
102 | ;;
|
---|
103 | esac
|
---|
104 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
105 | # in which case we are not to be found in the path.
|
---|
106 | if test "x$as_myself" = x; then
|
---|
107 | as_myself=$0
|
---|
108 | fi
|
---|
109 | if test ! -f "$as_myself"; then
|
---|
110 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
---|
111 | exit 1
|
---|
112 | fi
|
---|
113 |
|
---|
114 | # Unset variables that we do not need and which cause bugs (e.g. in
|
---|
115 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
|
---|
116 | # suppresses any "Segmentation fault" message there. '((' could
|
---|
117 | # trigger a bug in pdksh 5.2.14.
|
---|
118 | for as_var in BASH_ENV ENV MAIL MAILPATH
|
---|
119 | do eval test x\${$as_var+set} = xset \
|
---|
120 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
|
---|
121 | done
|
---|
122 | PS1='$ '
|
---|
123 | PS2='> '
|
---|
124 | PS4='+ '
|
---|
125 |
|
---|
126 | # NLS nuisances.
|
---|
127 | LC_ALL=C
|
---|
128 | export LC_ALL
|
---|
129 | LANGUAGE=C
|
---|
130 | export LANGUAGE
|
---|
131 |
|
---|
132 | # CDPATH.
|
---|
133 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
---|
134 |
|
---|
135 | # Use a proper internal environment variable to ensure we don't fall
|
---|
136 | # into an infinite loop, continuously re-executing ourselves.
|
---|
137 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
|
---|
138 | _as_can_reexec=no; export _as_can_reexec;
|
---|
139 | # We cannot yet assume a decent shell, so we have to provide a
|
---|
140 | # neutralization value for shells without unset; and this also
|
---|
141 | # works around shells that cannot unset nonexistent variables.
|
---|
142 | # Preserve -v and -x to the replacement shell.
|
---|
143 | BASH_ENV=/dev/null
|
---|
144 | ENV=/dev/null
|
---|
145 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
|
---|
146 | case $- in # ((((
|
---|
147 | *v*x* | *x*v* ) as_opts=-vx ;;
|
---|
148 | *v* ) as_opts=-v ;;
|
---|
149 | *x* ) as_opts=-x ;;
|
---|
150 | * ) as_opts= ;;
|
---|
151 | esac
|
---|
152 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
|
---|
153 | # Admittedly, this is quite paranoid, since all the known shells bail
|
---|
154 | # out after a failed `exec'.
|
---|
155 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
|
---|
156 | as_fn_exit 255
|
---|
157 | fi
|
---|
158 | # We don't want this to propagate to other subprocesses.
|
---|
159 | { _as_can_reexec=; unset _as_can_reexec;}
|
---|
160 | if test "x$CONFIG_SHELL" = x; then
|
---|
161 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
|
---|
162 | emulate sh
|
---|
163 | NULLCMD=:
|
---|
164 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
|
---|
165 | # is contrary to our usage. Disable this feature.
|
---|
166 | alias -g '\${1+\"\$@\"}'='\"\$@\"'
|
---|
167 | setopt NO_GLOB_SUBST
|
---|
168 | else
|
---|
169 | case \`(set -o) 2>/dev/null\` in #(
|
---|
170 | *posix*) :
|
---|
171 | set -o posix ;; #(
|
---|
172 | *) :
|
---|
173 | ;;
|
---|
174 | esac
|
---|
175 | fi
|
---|
176 | "
|
---|
177 | as_required="as_fn_return () { (exit \$1); }
|
---|
178 | as_fn_success () { as_fn_return 0; }
|
---|
179 | as_fn_failure () { as_fn_return 1; }
|
---|
180 | as_fn_ret_success () { return 0; }
|
---|
181 | as_fn_ret_failure () { return 1; }
|
---|
182 |
|
---|
183 | exitcode=0
|
---|
184 | as_fn_success || { exitcode=1; echo as_fn_success failed.; }
|
---|
185 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
|
---|
186 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
|
---|
187 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
|
---|
188 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
|
---|
189 |
|
---|
190 | else
|
---|
191 | exitcode=1; echo positional parameters were not saved.
|
---|
192 | fi
|
---|
193 | test x\$exitcode = x0 || exit 1
|
---|
194 | test -x / || exit 1"
|
---|
195 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
|
---|
196 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
|
---|
197 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
|
---|
198 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
|
---|
199 | test \$(( 1 + 1 )) = 2 || exit 1"
|
---|
200 | if (eval "$as_required") 2>/dev/null; then :
|
---|
201 | as_have_required=yes
|
---|
202 | else
|
---|
203 | as_have_required=no
|
---|
204 | fi
|
---|
205 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
|
---|
206 |
|
---|
207 | else
|
---|
208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
209 | as_found=false
|
---|
210 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
211 | do
|
---|
212 | IFS=$as_save_IFS
|
---|
213 | test -z "$as_dir" && as_dir=.
|
---|
214 | as_found=:
|
---|
215 | case $as_dir in #(
|
---|
216 | /*)
|
---|
217 | for as_base in sh bash ksh sh5; do
|
---|
218 | # Try only shells that exist, to save several forks.
|
---|
219 | as_shell=$as_dir/$as_base
|
---|
220 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
|
---|
221 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
|
---|
222 | CONFIG_SHELL=$as_shell as_have_required=yes
|
---|
223 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
|
---|
224 | break 2
|
---|
225 | fi
|
---|
226 | fi
|
---|
227 | done;;
|
---|
228 | esac
|
---|
229 | as_found=false
|
---|
230 | done
|
---|
231 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
|
---|
232 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
|
---|
233 | CONFIG_SHELL=$SHELL as_have_required=yes
|
---|
234 | fi; }
|
---|
235 | IFS=$as_save_IFS
|
---|
236 |
|
---|
237 |
|
---|
238 | if test "x$CONFIG_SHELL" != x; then :
|
---|
239 | export CONFIG_SHELL
|
---|
240 | # We cannot yet assume a decent shell, so we have to provide a
|
---|
241 | # neutralization value for shells without unset; and this also
|
---|
242 | # works around shells that cannot unset nonexistent variables.
|
---|
243 | # Preserve -v and -x to the replacement shell.
|
---|
244 | BASH_ENV=/dev/null
|
---|
245 | ENV=/dev/null
|
---|
246 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
|
---|
247 | case $- in # ((((
|
---|
248 | *v*x* | *x*v* ) as_opts=-vx ;;
|
---|
249 | *v* ) as_opts=-v ;;
|
---|
250 | *x* ) as_opts=-x ;;
|
---|
251 | * ) as_opts= ;;
|
---|
252 | esac
|
---|
253 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
|
---|
254 | # Admittedly, this is quite paranoid, since all the known shells bail
|
---|
255 | # out after a failed `exec'.
|
---|
256 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
|
---|
257 | exit 255
|
---|
258 | fi
|
---|
259 |
|
---|
260 | if test x$as_have_required = xno; then :
|
---|
261 | $as_echo "$0: This script requires a shell more modern than all"
|
---|
262 | $as_echo "$0: the shells that I found on your system."
|
---|
263 | if test x${ZSH_VERSION+set} = xset ; then
|
---|
264 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
|
---|
265 | $as_echo "$0: be upgraded to zsh 4.3.4 or later."
|
---|
266 | else
|
---|
267 | $as_echo "$0: Please tell [email protected] about your system,
|
---|
268 | $0: including any error possibly output before this
|
---|
269 | $0: message. Then install a modern shell, or manually run
|
---|
270 | $0: the script under such a shell if you do have one."
|
---|
271 | fi
|
---|
272 | exit 1
|
---|
273 | fi
|
---|
274 | fi
|
---|
275 | fi
|
---|
276 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
277 | export SHELL
|
---|
278 | # Unset more variables known to interfere with behavior of common tools.
|
---|
279 | CLICOLOR_FORCE= GREP_OPTIONS=
|
---|
280 | unset CLICOLOR_FORCE GREP_OPTIONS
|
---|
281 |
|
---|
282 | ## --------------------- ##
|
---|
283 | ## M4sh Shell Functions. ##
|
---|
284 | ## --------------------- ##
|
---|
285 | # as_fn_unset VAR
|
---|
286 | # ---------------
|
---|
287 | # Portably unset VAR.
|
---|
288 | as_fn_unset ()
|
---|
289 | {
|
---|
290 | { eval $1=; unset $1;}
|
---|
291 | }
|
---|
292 | as_unset=as_fn_unset
|
---|
293 |
|
---|
294 | # as_fn_set_status STATUS
|
---|
295 | # -----------------------
|
---|
296 | # Set $? to STATUS, without forking.
|
---|
297 | as_fn_set_status ()
|
---|
298 | {
|
---|
299 | return $1
|
---|
300 | } # as_fn_set_status
|
---|
301 |
|
---|
302 | # as_fn_exit STATUS
|
---|
303 | # -----------------
|
---|
304 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
|
---|
305 | as_fn_exit ()
|
---|
306 | {
|
---|
307 | set +e
|
---|
308 | as_fn_set_status $1
|
---|
309 | exit $1
|
---|
310 | } # as_fn_exit
|
---|
311 |
|
---|
312 | # as_fn_mkdir_p
|
---|
313 | # -------------
|
---|
314 | # Create "$as_dir" as a directory, including parents if necessary.
|
---|
315 | as_fn_mkdir_p ()
|
---|
316 | {
|
---|
317 |
|
---|
318 | case $as_dir in #(
|
---|
319 | -*) as_dir=./$as_dir;;
|
---|
320 | esac
|
---|
321 | test -d "$as_dir" || eval $as_mkdir_p || {
|
---|
322 | as_dirs=
|
---|
323 | while :; do
|
---|
324 | case $as_dir in #(
|
---|
325 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
|
---|
326 | *) as_qdir=$as_dir;;
|
---|
327 | esac
|
---|
328 | as_dirs="'$as_qdir' $as_dirs"
|
---|
329 | as_dir=`$as_dirname -- "$as_dir" ||
|
---|
330 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
331 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
332 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
333 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
334 | $as_echo X"$as_dir" |
|
---|
335 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
336 | s//\1/
|
---|
337 | q
|
---|
338 | }
|
---|
339 | /^X\(\/\/\)[^/].*/{
|
---|
340 | s//\1/
|
---|
341 | q
|
---|
342 | }
|
---|
343 | /^X\(\/\/\)$/{
|
---|
344 | s//\1/
|
---|
345 | q
|
---|
346 | }
|
---|
347 | /^X\(\/\).*/{
|
---|
348 | s//\1/
|
---|
349 | q
|
---|
350 | }
|
---|
351 | s/.*/./; q'`
|
---|
352 | test -d "$as_dir" && break
|
---|
353 | done
|
---|
354 | test -z "$as_dirs" || eval "mkdir $as_dirs"
|
---|
355 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
|
---|
356 |
|
---|
357 |
|
---|
358 | } # as_fn_mkdir_p
|
---|
359 |
|
---|
360 | # as_fn_executable_p FILE
|
---|
361 | # -----------------------
|
---|
362 | # Test if FILE is an executable regular file.
|
---|
363 | as_fn_executable_p ()
|
---|
364 | {
|
---|
365 | test -f "$1" && test -x "$1"
|
---|
366 | } # as_fn_executable_p
|
---|
367 | # as_fn_append VAR VALUE
|
---|
368 | # ----------------------
|
---|
369 | # Append the text in VALUE to the end of the definition contained in VAR. Take
|
---|
370 | # advantage of any shell optimizations that allow amortized linear growth over
|
---|
371 | # repeated appends, instead of the typical quadratic growth present in naive
|
---|
372 | # implementations.
|
---|
373 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
|
---|
374 | eval 'as_fn_append ()
|
---|
375 | {
|
---|
376 | eval $1+=\$2
|
---|
377 | }'
|
---|
378 | else
|
---|
379 | as_fn_append ()
|
---|
380 | {
|
---|
381 | eval $1=\$$1\$2
|
---|
382 | }
|
---|
383 | fi # as_fn_append
|
---|
384 |
|
---|
385 | # as_fn_arith ARG...
|
---|
386 | # ------------------
|
---|
387 | # Perform arithmetic evaluation on the ARGs, and store the result in the
|
---|
388 | # global $as_val. Take advantage of shells that can avoid forks. The arguments
|
---|
389 | # must be portable across $(()) and expr.
|
---|
390 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
|
---|
391 | eval 'as_fn_arith ()
|
---|
392 | {
|
---|
393 | as_val=$(( $* ))
|
---|
394 | }'
|
---|
395 | else
|
---|
396 | as_fn_arith ()
|
---|
397 | {
|
---|
398 | as_val=`expr "$@" || test $? -eq 1`
|
---|
399 | }
|
---|
400 | fi # as_fn_arith
|
---|
401 |
|
---|
402 |
|
---|
403 | # as_fn_error STATUS ERROR [LINENO LOG_FD]
|
---|
404 | # ----------------------------------------
|
---|
405 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
|
---|
406 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
|
---|
407 | # script with STATUS, using 1 if that was 0.
|
---|
408 | as_fn_error ()
|
---|
409 | {
|
---|
410 | as_status=$1; test $as_status -eq 0 && as_status=1
|
---|
411 | if test "$4"; then
|
---|
412 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
413 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
|
---|
414 | fi
|
---|
415 | $as_echo "$as_me: error: $2" >&2
|
---|
416 | as_fn_exit $as_status
|
---|
417 | } # as_fn_error
|
---|
418 |
|
---|
419 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
420 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
421 | as_expr=expr
|
---|
422 | else
|
---|
423 | as_expr=false
|
---|
424 | fi
|
---|
425 |
|
---|
426 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
---|
427 | as_basename=basename
|
---|
428 | else
|
---|
429 | as_basename=false
|
---|
430 | fi
|
---|
431 |
|
---|
432 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
---|
433 | as_dirname=dirname
|
---|
434 | else
|
---|
435 | as_dirname=false
|
---|
436 | fi
|
---|
437 |
|
---|
438 | as_me=`$as_basename -- "$0" ||
|
---|
439 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
440 | X"$0" : 'X\(//\)$' \| \
|
---|
441 | X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
442 | $as_echo X/"$0" |
|
---|
443 | sed '/^.*\/\([^/][^/]*\)\/*$/{
|
---|
444 | s//\1/
|
---|
445 | q
|
---|
446 | }
|
---|
447 | /^X\/\(\/\/\)$/{
|
---|
448 | s//\1/
|
---|
449 | q
|
---|
450 | }
|
---|
451 | /^X\/\(\/\).*/{
|
---|
452 | s//\1/
|
---|
453 | q
|
---|
454 | }
|
---|
455 | s/.*/./; q'`
|
---|
456 |
|
---|
457 | # Avoid depending upon Character Ranges.
|
---|
458 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
459 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
460 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
461 | as_cr_digits='0123456789'
|
---|
462 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
463 |
|
---|
464 |
|
---|
465 | as_lineno_1=$LINENO as_lineno_1a=$LINENO
|
---|
466 | as_lineno_2=$LINENO as_lineno_2a=$LINENO
|
---|
467 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
|
---|
468 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
|
---|
469 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
|
---|
470 | sed -n '
|
---|
471 | p
|
---|
472 | /[$]LINENO/=
|
---|
473 | ' <$as_myself |
|
---|
474 | sed '
|
---|
475 | s/[$]LINENO.*/&-/
|
---|
476 | t lineno
|
---|
477 | b
|
---|
478 | :lineno
|
---|
479 | N
|
---|
480 | :loop
|
---|
481 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
|
---|
482 | t loop
|
---|
483 | s/-\n.*//
|
---|
484 | ' >$as_me.lineno &&
|
---|
485 | chmod +x "$as_me.lineno" ||
|
---|
486 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
|
---|
487 |
|
---|
488 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
|
---|
489 | # already done that, so ensure we don't try to do so again and fall
|
---|
490 | # in an infinite loop. This has already happened in practice.
|
---|
491 | _as_can_reexec=no; export _as_can_reexec
|
---|
492 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
493 | # (the dirname of $[0] is not the place where we might find the
|
---|
494 | # original and so on. Autoconf is especially sensitive to this).
|
---|
495 | . "./$as_me.lineno"
|
---|
496 | # Exit status is that of the last command.
|
---|
497 | exit
|
---|
498 | }
|
---|
499 |
|
---|
500 | ECHO_C= ECHO_N= ECHO_T=
|
---|
501 | case `echo -n x` in #(((((
|
---|
502 | -n*)
|
---|
503 | case `echo 'xy\c'` in
|
---|
504 | *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
---|
505 | xy) ECHO_C='\c';;
|
---|
506 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
|
---|
507 | ECHO_T=' ';;
|
---|
508 | esac;;
|
---|
509 | *)
|
---|
510 | ECHO_N='-n';;
|
---|
511 | esac
|
---|
512 |
|
---|
513 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
514 | if test -d conf$$.dir; then
|
---|
515 | rm -f conf$$.dir/conf$$.file
|
---|
516 | else
|
---|
517 | rm -f conf$$.dir
|
---|
518 | mkdir conf$$.dir 2>/dev/null
|
---|
519 | fi
|
---|
520 | if (echo >conf$$.file) 2>/dev/null; then
|
---|
521 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
522 | as_ln_s='ln -s'
|
---|
523 | # ... but there are two gotchas:
|
---|
524 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
---|
525 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
---|
526 | # In both cases, we have to default to `cp -pR'.
|
---|
527 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
---|
528 | as_ln_s='cp -pR'
|
---|
529 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
530 | as_ln_s=ln
|
---|
531 | else
|
---|
532 | as_ln_s='cp -pR'
|
---|
533 | fi
|
---|
534 | else
|
---|
535 | as_ln_s='cp -pR'
|
---|
536 | fi
|
---|
537 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
---|
538 | rmdir conf$$.dir 2>/dev/null
|
---|
539 |
|
---|
540 | if mkdir -p . 2>/dev/null; then
|
---|
541 | as_mkdir_p='mkdir -p "$as_dir"'
|
---|
542 | else
|
---|
543 | test -d ./-p && rmdir ./-p
|
---|
544 | as_mkdir_p=false
|
---|
545 | fi
|
---|
546 |
|
---|
547 | as_test_x='test -x'
|
---|
548 | as_executable_p=as_fn_executable_p
|
---|
549 |
|
---|
550 | # Sed expression to map a string onto a valid CPP name.
|
---|
551 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
552 |
|
---|
553 | # Sed expression to map a string onto a valid variable name.
|
---|
554 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
555 |
|
---|
556 |
|
---|
557 | test -n "$DJDIR" || exec 7<&0 </dev/null
|
---|
558 | exec 6>&1
|
---|
559 |
|
---|
560 | # Name of the host.
|
---|
561 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
|
---|
562 | # so uname gets run too.
|
---|
563 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
564 |
|
---|
565 | #
|
---|
566 | # Initializations.
|
---|
567 | #
|
---|
568 | ac_default_prefix=/usr/local
|
---|
569 | ac_clean_files=
|
---|
570 | ac_config_libobj_dir=.
|
---|
571 | LIBOBJS=
|
---|
572 | cross_compiling=no
|
---|
573 | subdirs=
|
---|
574 | MFLAGS=
|
---|
575 | MAKEFLAGS=
|
---|
576 |
|
---|
577 | # Identity of this package.
|
---|
578 | PACKAGE_NAME=
|
---|
579 | PACKAGE_TARNAME=
|
---|
580 | PACKAGE_VERSION=
|
---|
581 | PACKAGE_STRING=
|
---|
582 | PACKAGE_BUGREPORT=
|
---|
583 | PACKAGE_URL=
|
---|
584 |
|
---|
585 | ac_unique_file="src/text/mgquery.c"
|
---|
586 | # Factoring default headers for most tests.
|
---|
587 | ac_includes_default="\
|
---|
588 | #include <stdio.h>
|
---|
589 | #ifdef HAVE_SYS_TYPES_H
|
---|
590 | # include <sys/types.h>
|
---|
591 | #endif
|
---|
592 | #ifdef HAVE_SYS_STAT_H
|
---|
593 | # include <sys/stat.h>
|
---|
594 | #endif
|
---|
595 | #ifdef STDC_HEADERS
|
---|
596 | # include <stdlib.h>
|
---|
597 | # include <stddef.h>
|
---|
598 | #else
|
---|
599 | # ifdef HAVE_STDLIB_H
|
---|
600 | # include <stdlib.h>
|
---|
601 | # endif
|
---|
602 | #endif
|
---|
603 | #ifdef HAVE_STRING_H
|
---|
604 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
|
---|
605 | # include <memory.h>
|
---|
606 | # endif
|
---|
607 | # include <string.h>
|
---|
608 | #endif
|
---|
609 | #ifdef HAVE_STRINGS_H
|
---|
610 | # include <strings.h>
|
---|
611 | #endif
|
---|
612 | #ifdef HAVE_INTTYPES_H
|
---|
613 | # include <inttypes.h>
|
---|
614 | #endif
|
---|
615 | #ifdef HAVE_STDINT_H
|
---|
616 | # include <stdint.h>
|
---|
617 | #endif
|
---|
618 | #ifdef HAVE_UNISTD_H
|
---|
619 | # include <unistd.h>
|
---|
620 | #endif"
|
---|
621 |
|
---|
622 | ac_subst_vars='LTLIBOBJS
|
---|
623 | JNILDFLAGS
|
---|
624 | JNICFLAGS
|
---|
625 | JNISUFFIX
|
---|
626 | JNIPREFIX
|
---|
627 | JNIINC
|
---|
628 | LIBOBJS
|
---|
629 | ALLOCA
|
---|
630 | ANSI2KNR
|
---|
631 | U
|
---|
632 | EGREP
|
---|
633 | GREP
|
---|
634 | CPP
|
---|
635 | JAVACFLAGS
|
---|
636 | JAVAC
|
---|
637 | uudecode
|
---|
638 | JAVA
|
---|
639 | RANLIB
|
---|
640 | SET_MAKE
|
---|
641 | LN_S
|
---|
642 | INSTALL_DATA
|
---|
643 | INSTALL_SCRIPT
|
---|
644 | INSTALL_PROGRAM
|
---|
645 | ac_ct_CC
|
---|
646 | CFLAGS
|
---|
647 | CC
|
---|
648 | YFLAGS
|
---|
649 | YACC
|
---|
650 | AWK
|
---|
651 | OBJEXT
|
---|
652 | EXEEXT
|
---|
653 | ac_ct_CXX
|
---|
654 | CPPFLAGS
|
---|
655 | LDFLAGS
|
---|
656 | CXXFLAGS
|
---|
657 | CXX
|
---|
658 | ARCH_DEP_FLAGS
|
---|
659 | ENABLE_JAVA
|
---|
660 | VERSION
|
---|
661 | PACKAGE
|
---|
662 | target_os
|
---|
663 | target_vendor
|
---|
664 | target_cpu
|
---|
665 | target
|
---|
666 | host_os
|
---|
667 | host_vendor
|
---|
668 | host_cpu
|
---|
669 | host
|
---|
670 | build_os
|
---|
671 | build_vendor
|
---|
672 | build_cpu
|
---|
673 | build
|
---|
674 | target_alias
|
---|
675 | host_alias
|
---|
676 | build_alias
|
---|
677 | LIBS
|
---|
678 | ECHO_T
|
---|
679 | ECHO_N
|
---|
680 | ECHO_C
|
---|
681 | DEFS
|
---|
682 | mandir
|
---|
683 | localedir
|
---|
684 | libdir
|
---|
685 | psdir
|
---|
686 | pdfdir
|
---|
687 | dvidir
|
---|
688 | htmldir
|
---|
689 | infodir
|
---|
690 | docdir
|
---|
691 | oldincludedir
|
---|
692 | includedir
|
---|
693 | runstatedir
|
---|
694 | localstatedir
|
---|
695 | sharedstatedir
|
---|
696 | sysconfdir
|
---|
697 | datadir
|
---|
698 | datarootdir
|
---|
699 | libexecdir
|
---|
700 | sbindir
|
---|
701 | bindir
|
---|
702 | program_transform_name
|
---|
703 | prefix
|
---|
704 | exec_prefix
|
---|
705 | PACKAGE_URL
|
---|
706 | PACKAGE_BUGREPORT
|
---|
707 | PACKAGE_STRING
|
---|
708 | PACKAGE_VERSION
|
---|
709 | PACKAGE_TARNAME
|
---|
710 | PACKAGE_NAME
|
---|
711 | PATH_SEPARATOR
|
---|
712 | SHELL'
|
---|
713 | ac_subst_files=''
|
---|
714 | ac_user_opts='
|
---|
715 | enable_option_checking
|
---|
716 | enable_java
|
---|
717 | with_dmalloc
|
---|
718 | with_regex
|
---|
719 | '
|
---|
720 | ac_precious_vars='build_alias
|
---|
721 | host_alias
|
---|
722 | target_alias
|
---|
723 | CXX
|
---|
724 | CXXFLAGS
|
---|
725 | LDFLAGS
|
---|
726 | LIBS
|
---|
727 | CPPFLAGS
|
---|
728 | CCC
|
---|
729 | YACC
|
---|
730 | YFLAGS
|
---|
731 | CC
|
---|
732 | CFLAGS
|
---|
733 | CPP'
|
---|
734 |
|
---|
735 |
|
---|
736 | # Initialize some variables set by options.
|
---|
737 | ac_init_help=
|
---|
738 | ac_init_version=false
|
---|
739 | ac_unrecognized_opts=
|
---|
740 | ac_unrecognized_sep=
|
---|
741 | # The variables have the same names as the options, with
|
---|
742 | # dashes changed to underlines.
|
---|
743 | cache_file=/dev/null
|
---|
744 | exec_prefix=NONE
|
---|
745 | no_create=
|
---|
746 | no_recursion=
|
---|
747 | prefix=NONE
|
---|
748 | program_prefix=NONE
|
---|
749 | program_suffix=NONE
|
---|
750 | program_transform_name=s,x,x,
|
---|
751 | silent=
|
---|
752 | site=
|
---|
753 | srcdir=
|
---|
754 | verbose=
|
---|
755 | x_includes=NONE
|
---|
756 | x_libraries=NONE
|
---|
757 |
|
---|
758 | # Installation directory options.
|
---|
759 | # These are left unexpanded so users can "make install exec_prefix=/foo"
|
---|
760 | # and all the variables that are supposed to be based on exec_prefix
|
---|
761 | # by default will actually change.
|
---|
762 | # Use braces instead of parens because sh, perl, etc. also accept them.
|
---|
763 | # (The list follows the same order as the GNU Coding Standards.)
|
---|
764 | bindir='${exec_prefix}/bin'
|
---|
765 | sbindir='${exec_prefix}/sbin'
|
---|
766 | libexecdir='${exec_prefix}/libexec'
|
---|
767 | datarootdir='${prefix}/share'
|
---|
768 | datadir='${datarootdir}'
|
---|
769 | sysconfdir='${prefix}/etc'
|
---|
770 | sharedstatedir='${prefix}/com'
|
---|
771 | localstatedir='${prefix}/var'
|
---|
772 | runstatedir='${localstatedir}/run'
|
---|
773 | includedir='${prefix}/include'
|
---|
774 | oldincludedir='/usr/include'
|
---|
775 | docdir='${datarootdir}/doc/${PACKAGE}'
|
---|
776 | infodir='${datarootdir}/info'
|
---|
777 | htmldir='${docdir}'
|
---|
778 | dvidir='${docdir}'
|
---|
779 | pdfdir='${docdir}'
|
---|
780 | psdir='${docdir}'
|
---|
781 | libdir='${exec_prefix}/lib'
|
---|
782 | localedir='${datarootdir}/locale'
|
---|
783 | mandir='${datarootdir}/man'
|
---|
784 |
|
---|
785 | ac_prev=
|
---|
786 | ac_dashdash=
|
---|
787 | for ac_option
|
---|
788 | do
|
---|
789 | # If the previous option needs an argument, assign it.
|
---|
790 | if test -n "$ac_prev"; then
|
---|
791 | eval $ac_prev=\$ac_option
|
---|
792 | ac_prev=
|
---|
793 | continue
|
---|
794 | fi
|
---|
795 |
|
---|
796 | case $ac_option in
|
---|
797 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
|
---|
798 | *=) ac_optarg= ;;
|
---|
799 | *) ac_optarg=yes ;;
|
---|
800 | esac
|
---|
801 |
|
---|
802 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
803 |
|
---|
804 | case $ac_dashdash$ac_option in
|
---|
805 | --)
|
---|
806 | ac_dashdash=yes ;;
|
---|
807 |
|
---|
808 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
809 | ac_prev=bindir ;;
|
---|
810 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
811 | bindir=$ac_optarg ;;
|
---|
812 |
|
---|
813 | -build | --build | --buil | --bui | --bu)
|
---|
814 | ac_prev=build_alias ;;
|
---|
815 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
816 | build_alias=$ac_optarg ;;
|
---|
817 |
|
---|
818 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
819 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
820 | ac_prev=cache_file ;;
|
---|
821 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
822 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
823 | cache_file=$ac_optarg ;;
|
---|
824 |
|
---|
825 | --config-cache | -C)
|
---|
826 | cache_file=config.cache ;;
|
---|
827 |
|
---|
828 | -datadir | --datadir | --datadi | --datad)
|
---|
829 | ac_prev=datadir ;;
|
---|
830 | -datadir=* | --datadir=* | --datadi=* | --datad=*)
|
---|
831 | datadir=$ac_optarg ;;
|
---|
832 |
|
---|
833 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
|
---|
834 | | --dataroo | --dataro | --datar)
|
---|
835 | ac_prev=datarootdir ;;
|
---|
836 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
|
---|
837 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
|
---|
838 | datarootdir=$ac_optarg ;;
|
---|
839 |
|
---|
840 | -disable-* | --disable-*)
|
---|
841 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
---|
842 | # Reject names that are not valid shell variable names.
|
---|
843 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
844 | as_fn_error $? "invalid feature name: $ac_useropt"
|
---|
845 | ac_useropt_orig=$ac_useropt
|
---|
846 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
847 | case $ac_user_opts in
|
---|
848 | *"
|
---|
849 | "enable_$ac_useropt"
|
---|
850 | "*) ;;
|
---|
851 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
|
---|
852 | ac_unrecognized_sep=', ';;
|
---|
853 | esac
|
---|
854 | eval enable_$ac_useropt=no ;;
|
---|
855 |
|
---|
856 | -docdir | --docdir | --docdi | --doc | --do)
|
---|
857 | ac_prev=docdir ;;
|
---|
858 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
|
---|
859 | docdir=$ac_optarg ;;
|
---|
860 |
|
---|
861 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
|
---|
862 | ac_prev=dvidir ;;
|
---|
863 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
|
---|
864 | dvidir=$ac_optarg ;;
|
---|
865 |
|
---|
866 | -enable-* | --enable-*)
|
---|
867 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
---|
868 | # Reject names that are not valid shell variable names.
|
---|
869 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
870 | as_fn_error $? "invalid feature name: $ac_useropt"
|
---|
871 | ac_useropt_orig=$ac_useropt
|
---|
872 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
873 | case $ac_user_opts in
|
---|
874 | *"
|
---|
875 | "enable_$ac_useropt"
|
---|
876 | "*) ;;
|
---|
877 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
|
---|
878 | ac_unrecognized_sep=', ';;
|
---|
879 | esac
|
---|
880 | eval enable_$ac_useropt=\$ac_optarg ;;
|
---|
881 |
|
---|
882 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
883 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
884 | | --exec | --exe | --ex)
|
---|
885 | ac_prev=exec_prefix ;;
|
---|
886 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
887 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
888 | | --exec=* | --exe=* | --ex=*)
|
---|
889 | exec_prefix=$ac_optarg ;;
|
---|
890 |
|
---|
891 | -gas | --gas | --ga | --g)
|
---|
892 | # Obsolete; use --with-gas.
|
---|
893 | with_gas=yes ;;
|
---|
894 |
|
---|
895 | -help | --help | --hel | --he | -h)
|
---|
896 | ac_init_help=long ;;
|
---|
897 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
---|
898 | ac_init_help=recursive ;;
|
---|
899 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
---|
900 | ac_init_help=short ;;
|
---|
901 |
|
---|
902 | -host | --host | --hos | --ho)
|
---|
903 | ac_prev=host_alias ;;
|
---|
904 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
905 | host_alias=$ac_optarg ;;
|
---|
906 |
|
---|
907 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
|
---|
908 | ac_prev=htmldir ;;
|
---|
909 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
|
---|
910 | | --ht=*)
|
---|
911 | htmldir=$ac_optarg ;;
|
---|
912 |
|
---|
913 | -includedir | --includedir | --includedi | --included | --include \
|
---|
914 | | --includ | --inclu | --incl | --inc)
|
---|
915 | ac_prev=includedir ;;
|
---|
916 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
917 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
918 | includedir=$ac_optarg ;;
|
---|
919 |
|
---|
920 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
921 | ac_prev=infodir ;;
|
---|
922 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
923 | infodir=$ac_optarg ;;
|
---|
924 |
|
---|
925 | -libdir | --libdir | --libdi | --libd)
|
---|
926 | ac_prev=libdir ;;
|
---|
927 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
928 | libdir=$ac_optarg ;;
|
---|
929 |
|
---|
930 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
931 | | --libexe | --libex | --libe)
|
---|
932 | ac_prev=libexecdir ;;
|
---|
933 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
934 | | --libexe=* | --libex=* | --libe=*)
|
---|
935 | libexecdir=$ac_optarg ;;
|
---|
936 |
|
---|
937 | -localedir | --localedir | --localedi | --localed | --locale)
|
---|
938 | ac_prev=localedir ;;
|
---|
939 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
|
---|
940 | localedir=$ac_optarg ;;
|
---|
941 |
|
---|
942 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
943 | | --localstate | --localstat | --localsta | --localst | --locals)
|
---|
944 | ac_prev=localstatedir ;;
|
---|
945 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
946 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
|
---|
947 | localstatedir=$ac_optarg ;;
|
---|
948 |
|
---|
949 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
950 | ac_prev=mandir ;;
|
---|
951 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
952 | mandir=$ac_optarg ;;
|
---|
953 |
|
---|
954 | -nfp | --nfp | --nf)
|
---|
955 | # Obsolete; use --without-fp.
|
---|
956 | with_fp=no ;;
|
---|
957 |
|
---|
958 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
959 | | --no-cr | --no-c | -n)
|
---|
960 | no_create=yes ;;
|
---|
961 |
|
---|
962 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
963 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
964 | no_recursion=yes ;;
|
---|
965 |
|
---|
966 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
967 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
968 | | --oldin | --oldi | --old | --ol | --o)
|
---|
969 | ac_prev=oldincludedir ;;
|
---|
970 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
971 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
972 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
973 | oldincludedir=$ac_optarg ;;
|
---|
974 |
|
---|
975 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
976 | ac_prev=prefix ;;
|
---|
977 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
978 | prefix=$ac_optarg ;;
|
---|
979 |
|
---|
980 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
981 | | --program-pre | --program-pr | --program-p)
|
---|
982 | ac_prev=program_prefix ;;
|
---|
983 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
984 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
985 | program_prefix=$ac_optarg ;;
|
---|
986 |
|
---|
987 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
988 | | --program-suf | --program-su | --program-s)
|
---|
989 | ac_prev=program_suffix ;;
|
---|
990 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
991 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
992 | program_suffix=$ac_optarg ;;
|
---|
993 |
|
---|
994 | -program-transform-name | --program-transform-name \
|
---|
995 | | --program-transform-nam | --program-transform-na \
|
---|
996 | | --program-transform-n | --program-transform- \
|
---|
997 | | --program-transform | --program-transfor \
|
---|
998 | | --program-transfo | --program-transf \
|
---|
999 | | --program-trans | --program-tran \
|
---|
1000 | | --progr-tra | --program-tr | --program-t)
|
---|
1001 | ac_prev=program_transform_name ;;
|
---|
1002 | -program-transform-name=* | --program-transform-name=* \
|
---|
1003 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
1004 | | --program-transform-n=* | --program-transform-=* \
|
---|
1005 | | --program-transform=* | --program-transfor=* \
|
---|
1006 | | --program-transfo=* | --program-transf=* \
|
---|
1007 | | --program-trans=* | --program-tran=* \
|
---|
1008 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
1009 | program_transform_name=$ac_optarg ;;
|
---|
1010 |
|
---|
1011 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
|
---|
1012 | ac_prev=pdfdir ;;
|
---|
1013 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
|
---|
1014 | pdfdir=$ac_optarg ;;
|
---|
1015 |
|
---|
1016 | -psdir | --psdir | --psdi | --psd | --ps)
|
---|
1017 | ac_prev=psdir ;;
|
---|
1018 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
|
---|
1019 | psdir=$ac_optarg ;;
|
---|
1020 |
|
---|
1021 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
1022 | | -silent | --silent | --silen | --sile | --sil)
|
---|
1023 | silent=yes ;;
|
---|
1024 |
|
---|
1025 | -runstatedir | --runstatedir | --runstatedi | --runstated \
|
---|
1026 | | --runstate | --runstat | --runsta | --runst | --runs \
|
---|
1027 | | --run | --ru | --r)
|
---|
1028 | ac_prev=runstatedir ;;
|
---|
1029 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
|
---|
1030 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
|
---|
1031 | | --run=* | --ru=* | --r=*)
|
---|
1032 | runstatedir=$ac_optarg ;;
|
---|
1033 |
|
---|
1034 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
1035 | ac_prev=sbindir ;;
|
---|
1036 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
1037 | | --sbi=* | --sb=*)
|
---|
1038 | sbindir=$ac_optarg ;;
|
---|
1039 |
|
---|
1040 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
1041 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
1042 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
1043 | | --sha | --sh)
|
---|
1044 | ac_prev=sharedstatedir ;;
|
---|
1045 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
1046 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
1047 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
1048 | | --sha=* | --sh=*)
|
---|
1049 | sharedstatedir=$ac_optarg ;;
|
---|
1050 |
|
---|
1051 | -site | --site | --sit)
|
---|
1052 | ac_prev=site ;;
|
---|
1053 | -site=* | --site=* | --sit=*)
|
---|
1054 | site=$ac_optarg ;;
|
---|
1055 |
|
---|
1056 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
1057 | ac_prev=srcdir ;;
|
---|
1058 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
1059 | srcdir=$ac_optarg ;;
|
---|
1060 |
|
---|
1061 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
1062 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
1063 | ac_prev=sysconfdir ;;
|
---|
1064 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
1065 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
1066 | sysconfdir=$ac_optarg ;;
|
---|
1067 |
|
---|
1068 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
1069 | ac_prev=target_alias ;;
|
---|
1070 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
1071 | target_alias=$ac_optarg ;;
|
---|
1072 |
|
---|
1073 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
1074 | verbose=yes ;;
|
---|
1075 |
|
---|
1076 | -version | --version | --versio | --versi | --vers | -V)
|
---|
1077 | ac_init_version=: ;;
|
---|
1078 |
|
---|
1079 | -with-* | --with-*)
|
---|
1080 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
---|
1081 | # Reject names that are not valid shell variable names.
|
---|
1082 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
1083 | as_fn_error $? "invalid package name: $ac_useropt"
|
---|
1084 | ac_useropt_orig=$ac_useropt
|
---|
1085 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
1086 | case $ac_user_opts in
|
---|
1087 | *"
|
---|
1088 | "with_$ac_useropt"
|
---|
1089 | "*) ;;
|
---|
1090 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
|
---|
1091 | ac_unrecognized_sep=', ';;
|
---|
1092 | esac
|
---|
1093 | eval with_$ac_useropt=\$ac_optarg ;;
|
---|
1094 |
|
---|
1095 | -without-* | --without-*)
|
---|
1096 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
---|
1097 | # Reject names that are not valid shell variable names.
|
---|
1098 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
1099 | as_fn_error $? "invalid package name: $ac_useropt"
|
---|
1100 | ac_useropt_orig=$ac_useropt
|
---|
1101 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
1102 | case $ac_user_opts in
|
---|
1103 | *"
|
---|
1104 | "with_$ac_useropt"
|
---|
1105 | "*) ;;
|
---|
1106 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
|
---|
1107 | ac_unrecognized_sep=', ';;
|
---|
1108 | esac
|
---|
1109 | eval with_$ac_useropt=no ;;
|
---|
1110 |
|
---|
1111 | --x)
|
---|
1112 | # Obsolete; use --with-x.
|
---|
1113 | with_x=yes ;;
|
---|
1114 |
|
---|
1115 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
1116 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
1117 | ac_prev=x_includes ;;
|
---|
1118 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
1119 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
1120 | x_includes=$ac_optarg ;;
|
---|
1121 |
|
---|
1122 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
1123 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
1124 | ac_prev=x_libraries ;;
|
---|
1125 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
1126 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
1127 | x_libraries=$ac_optarg ;;
|
---|
1128 |
|
---|
1129 | -*) as_fn_error $? "unrecognized option: \`$ac_option'
|
---|
1130 | Try \`$0 --help' for more information"
|
---|
1131 | ;;
|
---|
1132 |
|
---|
1133 | *=*)
|
---|
1134 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
---|
1135 | # Reject names that are not valid shell variable names.
|
---|
1136 | case $ac_envvar in #(
|
---|
1137 | '' | [0-9]* | *[!_$as_cr_alnum]* )
|
---|
1138 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
|
---|
1139 | esac
|
---|
1140 | eval $ac_envvar=\$ac_optarg
|
---|
1141 | export $ac_envvar ;;
|
---|
1142 |
|
---|
1143 | *)
|
---|
1144 | # FIXME: should be removed in autoconf 3.0.
|
---|
1145 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
---|
1146 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
1147 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
---|
1148 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
|
---|
1149 | ;;
|
---|
1150 |
|
---|
1151 | esac
|
---|
1152 | done
|
---|
1153 |
|
---|
1154 | if test -n "$ac_prev"; then
|
---|
1155 | ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
---|
1156 | as_fn_error $? "missing argument to $ac_option"
|
---|
1157 | fi
|
---|
1158 |
|
---|
1159 | if test -n "$ac_unrecognized_opts"; then
|
---|
1160 | case $enable_option_checking in
|
---|
1161 | no) ;;
|
---|
1162 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
|
---|
1163 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
|
---|
1164 | esac
|
---|
1165 | fi
|
---|
1166 |
|
---|
1167 | # Check all directory arguments for consistency.
|
---|
1168 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
|
---|
1169 | datadir sysconfdir sharedstatedir localstatedir includedir \
|
---|
1170 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
|
---|
1171 | libdir localedir mandir runstatedir
|
---|
1172 | do
|
---|
1173 | eval ac_val=\$$ac_var
|
---|
1174 | # Remove trailing slashes.
|
---|
1175 | case $ac_val in
|
---|
1176 | */ )
|
---|
1177 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
|
---|
1178 | eval $ac_var=\$ac_val;;
|
---|
1179 | esac
|
---|
1180 | # Be sure to have absolute directory names.
|
---|
1181 | case $ac_val in
|
---|
1182 | [\\/$]* | ?:[\\/]* ) continue;;
|
---|
1183 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
|
---|
1184 | esac
|
---|
1185 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
|
---|
1186 | done
|
---|
1187 |
|
---|
1188 | # There might be people who depend on the old broken behavior: `$host'
|
---|
1189 | # used to hold the argument of --host etc.
|
---|
1190 | # FIXME: To remove some day.
|
---|
1191 | build=$build_alias
|
---|
1192 | host=$host_alias
|
---|
1193 | target=$target_alias
|
---|
1194 |
|
---|
1195 | # FIXME: To remove some day.
|
---|
1196 | if test "x$host_alias" != x; then
|
---|
1197 | if test "x$build_alias" = x; then
|
---|
1198 | cross_compiling=maybe
|
---|
1199 | elif test "x$build_alias" != "x$host_alias"; then
|
---|
1200 | cross_compiling=yes
|
---|
1201 | fi
|
---|
1202 | fi
|
---|
1203 |
|
---|
1204 | ac_tool_prefix=
|
---|
1205 | test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
---|
1206 |
|
---|
1207 | test "$silent" = yes && exec 6>/dev/null
|
---|
1208 |
|
---|
1209 |
|
---|
1210 | ac_pwd=`pwd` && test -n "$ac_pwd" &&
|
---|
1211 | ac_ls_di=`ls -di .` &&
|
---|
1212 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
|
---|
1213 | as_fn_error $? "working directory cannot be determined"
|
---|
1214 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
|
---|
1215 | as_fn_error $? "pwd does not report name of working directory"
|
---|
1216 |
|
---|
1217 |
|
---|
1218 | # Find the source files, if location was not specified.
|
---|
1219 | if test -z "$srcdir"; then
|
---|
1220 | ac_srcdir_defaulted=yes
|
---|
1221 | # Try the directory containing this script, then the parent directory.
|
---|
1222 | ac_confdir=`$as_dirname -- "$as_myself" ||
|
---|
1223 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
1224 | X"$as_myself" : 'X\(//\)[^/]' \| \
|
---|
1225 | X"$as_myself" : 'X\(//\)$' \| \
|
---|
1226 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
1227 | $as_echo X"$as_myself" |
|
---|
1228 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
1229 | s//\1/
|
---|
1230 | q
|
---|
1231 | }
|
---|
1232 | /^X\(\/\/\)[^/].*/{
|
---|
1233 | s//\1/
|
---|
1234 | q
|
---|
1235 | }
|
---|
1236 | /^X\(\/\/\)$/{
|
---|
1237 | s//\1/
|
---|
1238 | q
|
---|
1239 | }
|
---|
1240 | /^X\(\/\).*/{
|
---|
1241 | s//\1/
|
---|
1242 | q
|
---|
1243 | }
|
---|
1244 | s/.*/./; q'`
|
---|
1245 | srcdir=$ac_confdir
|
---|
1246 | if test ! -r "$srcdir/$ac_unique_file"; then
|
---|
1247 | srcdir=..
|
---|
1248 | fi
|
---|
1249 | else
|
---|
1250 | ac_srcdir_defaulted=no
|
---|
1251 | fi
|
---|
1252 | if test ! -r "$srcdir/$ac_unique_file"; then
|
---|
1253 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
|
---|
1254 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
|
---|
1255 | fi
|
---|
1256 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
|
---|
1257 | ac_abs_confdir=`(
|
---|
1258 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
|
---|
1259 | pwd)`
|
---|
1260 | # When building in place, set srcdir=.
|
---|
1261 | if test "$ac_abs_confdir" = "$ac_pwd"; then
|
---|
1262 | srcdir=.
|
---|
1263 | fi
|
---|
1264 | # Remove unnecessary trailing slashes from srcdir.
|
---|
1265 | # Double slashes in file names in object file debugging info
|
---|
1266 | # mess up M-x gdb in Emacs.
|
---|
1267 | case $srcdir in
|
---|
1268 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
|
---|
1269 | esac
|
---|
1270 | for ac_var in $ac_precious_vars; do
|
---|
1271 | eval ac_env_${ac_var}_set=\${${ac_var}+set}
|
---|
1272 | eval ac_env_${ac_var}_value=\$${ac_var}
|
---|
1273 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
|
---|
1274 | eval ac_cv_env_${ac_var}_value=\$${ac_var}
|
---|
1275 | done
|
---|
1276 |
|
---|
1277 | #
|
---|
1278 | # Report the --help message.
|
---|
1279 | #
|
---|
1280 | if test "$ac_init_help" = "long"; then
|
---|
1281 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
1282 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
1283 | cat <<_ACEOF
|
---|
1284 | \`configure' configures this package to adapt to many kinds of systems.
|
---|
1285 |
|
---|
1286 | Usage: $0 [OPTION]... [VAR=VALUE]...
|
---|
1287 |
|
---|
1288 | To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
---|
1289 | VAR=VALUE. See below for descriptions of some of the useful variables.
|
---|
1290 |
|
---|
1291 | Defaults for the options are specified in brackets.
|
---|
1292 |
|
---|
1293 | Configuration:
|
---|
1294 | -h, --help display this help and exit
|
---|
1295 | --help=short display options specific to this package
|
---|
1296 | --help=recursive display the short help of all the included packages
|
---|
1297 | -V, --version display version information and exit
|
---|
1298 | -q, --quiet, --silent do not print \`checking ...' messages
|
---|
1299 | --cache-file=FILE cache test results in FILE [disabled]
|
---|
1300 | -C, --config-cache alias for \`--cache-file=config.cache'
|
---|
1301 | -n, --no-create do not create output files
|
---|
1302 | --srcdir=DIR find the sources in DIR [configure dir or \`..']
|
---|
1303 |
|
---|
1304 | Installation directories:
|
---|
1305 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
1306 | [$ac_default_prefix]
|
---|
1307 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
1308 | [PREFIX]
|
---|
1309 |
|
---|
1310 | By default, \`make install' will install all the files in
|
---|
1311 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
---|
1312 | an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
---|
1313 | for instance \`--prefix=\$HOME'.
|
---|
1314 |
|
---|
1315 | For better control, use the options below.
|
---|
1316 |
|
---|
1317 | Fine tuning of the installation directories:
|
---|
1318 | --bindir=DIR user executables [EPREFIX/bin]
|
---|
1319 | --sbindir=DIR system admin executables [EPREFIX/sbin]
|
---|
1320 | --libexecdir=DIR program executables [EPREFIX/libexec]
|
---|
1321 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
---|
1322 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
---|
1323 | --localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
---|
1324 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
|
---|
1325 | --libdir=DIR object code libraries [EPREFIX/lib]
|
---|
1326 | --includedir=DIR C header files [PREFIX/include]
|
---|
1327 | --oldincludedir=DIR C header files for non-gcc [/usr/include]
|
---|
1328 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
|
---|
1329 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
|
---|
1330 | --infodir=DIR info documentation [DATAROOTDIR/info]
|
---|
1331 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
|
---|
1332 | --mandir=DIR man documentation [DATAROOTDIR/man]
|
---|
1333 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
|
---|
1334 | --htmldir=DIR html documentation [DOCDIR]
|
---|
1335 | --dvidir=DIR dvi documentation [DOCDIR]
|
---|
1336 | --pdfdir=DIR pdf documentation [DOCDIR]
|
---|
1337 | --psdir=DIR ps documentation [DOCDIR]
|
---|
1338 | _ACEOF
|
---|
1339 |
|
---|
1340 | cat <<\_ACEOF
|
---|
1341 |
|
---|
1342 | Program names:
|
---|
1343 | --program-prefix=PREFIX prepend PREFIX to installed program names
|
---|
1344 | --program-suffix=SUFFIX append SUFFIX to installed program names
|
---|
1345 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names
|
---|
1346 |
|
---|
1347 | System types:
|
---|
1348 | --build=BUILD configure for building on BUILD [guessed]
|
---|
1349 | --host=HOST cross-compile to build programs to run on HOST [BUILD]
|
---|
1350 | --target=TARGET configure for building compilers for TARGET [HOST]
|
---|
1351 | _ACEOF
|
---|
1352 | fi
|
---|
1353 |
|
---|
1354 | if test -n "$ac_init_help"; then
|
---|
1355 |
|
---|
1356 | cat <<\_ACEOF
|
---|
1357 |
|
---|
1358 | Optional Features:
|
---|
1359 | --disable-option-checking ignore unrecognized --enable/--with options
|
---|
1360 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
---|
1361 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
---|
1362 | --disable-java Disable Java compilation
|
---|
1363 |
|
---|
1364 | Optional Packages:
|
---|
1365 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
1366 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
1367 | --with-dmalloc use dmalloc, as in
|
---|
1368 | ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz
|
---|
1369 | --with-regex use older regex in lieu of GNU rx for matching
|
---|
1370 |
|
---|
1371 | Some influential environment variables:
|
---|
1372 | CXX C++ compiler command
|
---|
1373 | CXXFLAGS C++ compiler flags
|
---|
1374 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
---|
1375 | nonstandard directory <lib dir>
|
---|
1376 | LIBS libraries to pass to the linker, e.g. -l<library>
|
---|
1377 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
|
---|
1378 | you have headers in a nonstandard directory <include dir>
|
---|
1379 | YACC The `Yet Another Compiler Compiler' implementation to use.
|
---|
1380 | Defaults to the first program found out of: `bison -y', `byacc',
|
---|
1381 | `yacc'.
|
---|
1382 | YFLAGS The list of arguments that will be passed by default to $YACC.
|
---|
1383 | This script will default YFLAGS to the empty string to avoid a
|
---|
1384 | default value of `-d' given by some make applications.
|
---|
1385 | CC C compiler command
|
---|
1386 | CFLAGS C compiler flags
|
---|
1387 | CPP C preprocessor
|
---|
1388 |
|
---|
1389 | Use these variables to override the choices made by `configure' or to help
|
---|
1390 | it to find libraries and programs with nonstandard names/locations.
|
---|
1391 |
|
---|
1392 | Report bugs to the package provider.
|
---|
1393 | _ACEOF
|
---|
1394 | ac_status=$?
|
---|
1395 | fi
|
---|
1396 |
|
---|
1397 | if test "$ac_init_help" = "recursive"; then
|
---|
1398 | # If there are subdirs, report their specific --help.
|
---|
1399 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
---|
1400 | test -d "$ac_dir" ||
|
---|
1401 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
|
---|
1402 | continue
|
---|
1403 | ac_builddir=.
|
---|
1404 |
|
---|
1405 | case "$ac_dir" in
|
---|
1406 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
1407 | *)
|
---|
1408 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
|
---|
1409 | # A ".." for each directory in $ac_dir_suffix.
|
---|
1410 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
---|
1411 | case $ac_top_builddir_sub in
|
---|
1412 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
1413 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
1414 | esac ;;
|
---|
1415 | esac
|
---|
1416 | ac_abs_top_builddir=$ac_pwd
|
---|
1417 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
1418 | # for backward compatibility:
|
---|
1419 | ac_top_builddir=$ac_top_build_prefix
|
---|
1420 |
|
---|
1421 | case $srcdir in
|
---|
1422 | .) # We are building in place.
|
---|
1423 | ac_srcdir=.
|
---|
1424 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
1425 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
1426 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
1427 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
1428 | ac_top_srcdir=$srcdir
|
---|
1429 | ac_abs_top_srcdir=$srcdir ;;
|
---|
1430 | *) # Relative name.
|
---|
1431 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
1432 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
1433 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
1434 | esac
|
---|
1435 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
1436 |
|
---|
1437 | cd "$ac_dir" || { ac_status=$?; continue; }
|
---|
1438 | # Check for guested configure.
|
---|
1439 | if test -f "$ac_srcdir/configure.gnu"; then
|
---|
1440 | echo &&
|
---|
1441 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive
|
---|
1442 | elif test -f "$ac_srcdir/configure"; then
|
---|
1443 | echo &&
|
---|
1444 | $SHELL "$ac_srcdir/configure" --help=recursive
|
---|
1445 | else
|
---|
1446 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
---|
1447 | fi || ac_status=$?
|
---|
1448 | cd "$ac_pwd" || { ac_status=$?; break; }
|
---|
1449 | done
|
---|
1450 | fi
|
---|
1451 |
|
---|
1452 | test -n "$ac_init_help" && exit $ac_status
|
---|
1453 | if $ac_init_version; then
|
---|
1454 | cat <<\_ACEOF
|
---|
1455 | configure
|
---|
1456 | generated by GNU Autoconf 2.69
|
---|
1457 |
|
---|
1458 | Copyright (C) 2012 Free Software Foundation, Inc.
|
---|
1459 | This configure script is free software; the Free Software Foundation
|
---|
1460 | gives unlimited permission to copy, distribute and modify it.
|
---|
1461 | _ACEOF
|
---|
1462 | exit
|
---|
1463 | fi
|
---|
1464 |
|
---|
1465 | ## ------------------------ ##
|
---|
1466 | ## Autoconf initialization. ##
|
---|
1467 | ## ------------------------ ##
|
---|
1468 |
|
---|
1469 | # ac_fn_cxx_try_compile LINENO
|
---|
1470 | # ----------------------------
|
---|
1471 | # Try to compile conftest.$ac_ext, and return whether this succeeded.
|
---|
1472 | ac_fn_cxx_try_compile ()
|
---|
1473 | {
|
---|
1474 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1475 | rm -f conftest.$ac_objext
|
---|
1476 | if { { ac_try="$ac_compile"
|
---|
1477 | case "(($ac_try" in
|
---|
1478 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1479 | *) ac_try_echo=$ac_try;;
|
---|
1480 | esac
|
---|
1481 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1482 | $as_echo "$ac_try_echo"; } >&5
|
---|
1483 | (eval "$ac_compile") 2>conftest.err
|
---|
1484 | ac_status=$?
|
---|
1485 | if test -s conftest.err; then
|
---|
1486 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
1487 | cat conftest.er1 >&5
|
---|
1488 | mv -f conftest.er1 conftest.err
|
---|
1489 | fi
|
---|
1490 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1491 | test $ac_status = 0; } && {
|
---|
1492 | test -z "$ac_cxx_werror_flag" ||
|
---|
1493 | test ! -s conftest.err
|
---|
1494 | } && test -s conftest.$ac_objext; then :
|
---|
1495 | ac_retval=0
|
---|
1496 | else
|
---|
1497 | $as_echo "$as_me: failed program was:" >&5
|
---|
1498 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1499 |
|
---|
1500 | ac_retval=1
|
---|
1501 | fi
|
---|
1502 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1503 | as_fn_set_status $ac_retval
|
---|
1504 |
|
---|
1505 | } # ac_fn_cxx_try_compile
|
---|
1506 |
|
---|
1507 | # ac_fn_c_try_compile LINENO
|
---|
1508 | # --------------------------
|
---|
1509 | # Try to compile conftest.$ac_ext, and return whether this succeeded.
|
---|
1510 | ac_fn_c_try_compile ()
|
---|
1511 | {
|
---|
1512 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1513 | rm -f conftest.$ac_objext
|
---|
1514 | if { { ac_try="$ac_compile"
|
---|
1515 | case "(($ac_try" in
|
---|
1516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1517 | *) ac_try_echo=$ac_try;;
|
---|
1518 | esac
|
---|
1519 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1520 | $as_echo "$ac_try_echo"; } >&5
|
---|
1521 | (eval "$ac_compile") 2>conftest.err
|
---|
1522 | ac_status=$?
|
---|
1523 | if test -s conftest.err; then
|
---|
1524 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
1525 | cat conftest.er1 >&5
|
---|
1526 | mv -f conftest.er1 conftest.err
|
---|
1527 | fi
|
---|
1528 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1529 | test $ac_status = 0; } && {
|
---|
1530 | test -z "$ac_c_werror_flag" ||
|
---|
1531 | test ! -s conftest.err
|
---|
1532 | } && test -s conftest.$ac_objext; then :
|
---|
1533 | ac_retval=0
|
---|
1534 | else
|
---|
1535 | $as_echo "$as_me: failed program was:" >&5
|
---|
1536 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1537 |
|
---|
1538 | ac_retval=1
|
---|
1539 | fi
|
---|
1540 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1541 | as_fn_set_status $ac_retval
|
---|
1542 |
|
---|
1543 | } # ac_fn_c_try_compile
|
---|
1544 |
|
---|
1545 | # ac_fn_c_try_cpp LINENO
|
---|
1546 | # ----------------------
|
---|
1547 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
|
---|
1548 | ac_fn_c_try_cpp ()
|
---|
1549 | {
|
---|
1550 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1551 | if { { ac_try="$ac_cpp conftest.$ac_ext"
|
---|
1552 | case "(($ac_try" in
|
---|
1553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1554 | *) ac_try_echo=$ac_try;;
|
---|
1555 | esac
|
---|
1556 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1557 | $as_echo "$ac_try_echo"; } >&5
|
---|
1558 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
|
---|
1559 | ac_status=$?
|
---|
1560 | if test -s conftest.err; then
|
---|
1561 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
1562 | cat conftest.er1 >&5
|
---|
1563 | mv -f conftest.er1 conftest.err
|
---|
1564 | fi
|
---|
1565 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1566 | test $ac_status = 0; } > conftest.i && {
|
---|
1567 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
1568 | test ! -s conftest.err
|
---|
1569 | }; then :
|
---|
1570 | ac_retval=0
|
---|
1571 | else
|
---|
1572 | $as_echo "$as_me: failed program was:" >&5
|
---|
1573 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1574 |
|
---|
1575 | ac_retval=1
|
---|
1576 | fi
|
---|
1577 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1578 | as_fn_set_status $ac_retval
|
---|
1579 |
|
---|
1580 | } # ac_fn_c_try_cpp
|
---|
1581 |
|
---|
1582 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
|
---|
1583 | # -------------------------------------------------------
|
---|
1584 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using
|
---|
1585 | # the include files in INCLUDES and setting the cache variable VAR
|
---|
1586 | # accordingly.
|
---|
1587 | ac_fn_c_check_header_mongrel ()
|
---|
1588 | {
|
---|
1589 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1590 | if eval \${$3+:} false; then :
|
---|
1591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1592 | $as_echo_n "checking for $2... " >&6; }
|
---|
1593 | if eval \${$3+:} false; then :
|
---|
1594 | $as_echo_n "(cached) " >&6
|
---|
1595 | fi
|
---|
1596 | eval ac_res=\$$3
|
---|
1597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1598 | $as_echo "$ac_res" >&6; }
|
---|
1599 | else
|
---|
1600 | # Is the header compilable?
|
---|
1601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
|
---|
1602 | $as_echo_n "checking $2 usability... " >&6; }
|
---|
1603 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1604 | /* end confdefs.h. */
|
---|
1605 | $4
|
---|
1606 | #include <$2>
|
---|
1607 | _ACEOF
|
---|
1608 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1609 | ac_header_compiler=yes
|
---|
1610 | else
|
---|
1611 | ac_header_compiler=no
|
---|
1612 | fi
|
---|
1613 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
|
---|
1615 | $as_echo "$ac_header_compiler" >&6; }
|
---|
1616 |
|
---|
1617 | # Is the header present?
|
---|
1618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
|
---|
1619 | $as_echo_n "checking $2 presence... " >&6; }
|
---|
1620 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1621 | /* end confdefs.h. */
|
---|
1622 | #include <$2>
|
---|
1623 | _ACEOF
|
---|
1624 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
1625 | ac_header_preproc=yes
|
---|
1626 | else
|
---|
1627 | ac_header_preproc=no
|
---|
1628 | fi
|
---|
1629 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
1630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
|
---|
1631 | $as_echo "$ac_header_preproc" >&6; }
|
---|
1632 |
|
---|
1633 | # So? What about this header?
|
---|
1634 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
|
---|
1635 | yes:no: )
|
---|
1636 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
1637 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
1638 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
|
---|
1639 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
|
---|
1640 | ;;
|
---|
1641 | no:yes:* )
|
---|
1642 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
|
---|
1643 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
|
---|
1644 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
|
---|
1645 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
|
---|
1646 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
|
---|
1647 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
|
---|
1648 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
|
---|
1649 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
1650 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
|
---|
1651 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
|
---|
1652 | ;;
|
---|
1653 | esac
|
---|
1654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1655 | $as_echo_n "checking for $2... " >&6; }
|
---|
1656 | if eval \${$3+:} false; then :
|
---|
1657 | $as_echo_n "(cached) " >&6
|
---|
1658 | else
|
---|
1659 | eval "$3=\$ac_header_compiler"
|
---|
1660 | fi
|
---|
1661 | eval ac_res=\$$3
|
---|
1662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1663 | $as_echo "$ac_res" >&6; }
|
---|
1664 | fi
|
---|
1665 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1666 |
|
---|
1667 | } # ac_fn_c_check_header_mongrel
|
---|
1668 |
|
---|
1669 | # ac_fn_c_try_run LINENO
|
---|
1670 | # ----------------------
|
---|
1671 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
|
---|
1672 | # that executables *can* be run.
|
---|
1673 | ac_fn_c_try_run ()
|
---|
1674 | {
|
---|
1675 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1676 | if { { ac_try="$ac_link"
|
---|
1677 | case "(($ac_try" in
|
---|
1678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1679 | *) ac_try_echo=$ac_try;;
|
---|
1680 | esac
|
---|
1681 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1682 | $as_echo "$ac_try_echo"; } >&5
|
---|
1683 | (eval "$ac_link") 2>&5
|
---|
1684 | ac_status=$?
|
---|
1685 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1686 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
|
---|
1687 | { { case "(($ac_try" in
|
---|
1688 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1689 | *) ac_try_echo=$ac_try;;
|
---|
1690 | esac
|
---|
1691 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1692 | $as_echo "$ac_try_echo"; } >&5
|
---|
1693 | (eval "$ac_try") 2>&5
|
---|
1694 | ac_status=$?
|
---|
1695 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1696 | test $ac_status = 0; }; }; then :
|
---|
1697 | ac_retval=0
|
---|
1698 | else
|
---|
1699 | $as_echo "$as_me: program exited with status $ac_status" >&5
|
---|
1700 | $as_echo "$as_me: failed program was:" >&5
|
---|
1701 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1702 |
|
---|
1703 | ac_retval=$ac_status
|
---|
1704 | fi
|
---|
1705 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
---|
1706 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1707 | as_fn_set_status $ac_retval
|
---|
1708 |
|
---|
1709 | } # ac_fn_c_try_run
|
---|
1710 |
|
---|
1711 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
|
---|
1712 | # -------------------------------------------------------
|
---|
1713 | # Tests whether HEADER exists and can be compiled using the include files in
|
---|
1714 | # INCLUDES, setting the cache variable VAR accordingly.
|
---|
1715 | ac_fn_c_check_header_compile ()
|
---|
1716 | {
|
---|
1717 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1719 | $as_echo_n "checking for $2... " >&6; }
|
---|
1720 | if eval \${$3+:} false; then :
|
---|
1721 | $as_echo_n "(cached) " >&6
|
---|
1722 | else
|
---|
1723 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1724 | /* end confdefs.h. */
|
---|
1725 | $4
|
---|
1726 | #include <$2>
|
---|
1727 | _ACEOF
|
---|
1728 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1729 | eval "$3=yes"
|
---|
1730 | else
|
---|
1731 | eval "$3=no"
|
---|
1732 | fi
|
---|
1733 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1734 | fi
|
---|
1735 | eval ac_res=\$$3
|
---|
1736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1737 | $as_echo "$ac_res" >&6; }
|
---|
1738 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1739 |
|
---|
1740 | } # ac_fn_c_check_header_compile
|
---|
1741 |
|
---|
1742 | # ac_fn_c_try_link LINENO
|
---|
1743 | # -----------------------
|
---|
1744 | # Try to link conftest.$ac_ext, and return whether this succeeded.
|
---|
1745 | ac_fn_c_try_link ()
|
---|
1746 | {
|
---|
1747 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1748 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
1749 | if { { ac_try="$ac_link"
|
---|
1750 | case "(($ac_try" in
|
---|
1751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1752 | *) ac_try_echo=$ac_try;;
|
---|
1753 | esac
|
---|
1754 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1755 | $as_echo "$ac_try_echo"; } >&5
|
---|
1756 | (eval "$ac_link") 2>conftest.err
|
---|
1757 | ac_status=$?
|
---|
1758 | if test -s conftest.err; then
|
---|
1759 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
1760 | cat conftest.er1 >&5
|
---|
1761 | mv -f conftest.er1 conftest.err
|
---|
1762 | fi
|
---|
1763 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1764 | test $ac_status = 0; } && {
|
---|
1765 | test -z "$ac_c_werror_flag" ||
|
---|
1766 | test ! -s conftest.err
|
---|
1767 | } && test -s conftest$ac_exeext && {
|
---|
1768 | test "$cross_compiling" = yes ||
|
---|
1769 | test -x conftest$ac_exeext
|
---|
1770 | }; then :
|
---|
1771 | ac_retval=0
|
---|
1772 | else
|
---|
1773 | $as_echo "$as_me: failed program was:" >&5
|
---|
1774 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1775 |
|
---|
1776 | ac_retval=1
|
---|
1777 | fi
|
---|
1778 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
|
---|
1779 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
|
---|
1780 | # interfere with the next link command; also delete a directory that is
|
---|
1781 | # left behind by Apple's compiler. We do this before executing the actions.
|
---|
1782 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
---|
1783 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1784 | as_fn_set_status $ac_retval
|
---|
1785 |
|
---|
1786 | } # ac_fn_c_try_link
|
---|
1787 |
|
---|
1788 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
|
---|
1789 | # -------------------------------------------
|
---|
1790 | # Tests whether TYPE exists after having included INCLUDES, setting cache
|
---|
1791 | # variable VAR accordingly.
|
---|
1792 | ac_fn_c_check_type ()
|
---|
1793 | {
|
---|
1794 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1796 | $as_echo_n "checking for $2... " >&6; }
|
---|
1797 | if eval \${$3+:} false; then :
|
---|
1798 | $as_echo_n "(cached) " >&6
|
---|
1799 | else
|
---|
1800 | eval "$3=no"
|
---|
1801 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1802 | /* end confdefs.h. */
|
---|
1803 | $4
|
---|
1804 | int
|
---|
1805 | main ()
|
---|
1806 | {
|
---|
1807 | if (sizeof ($2))
|
---|
1808 | return 0;
|
---|
1809 | ;
|
---|
1810 | return 0;
|
---|
1811 | }
|
---|
1812 | _ACEOF
|
---|
1813 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1814 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1815 | /* end confdefs.h. */
|
---|
1816 | $4
|
---|
1817 | int
|
---|
1818 | main ()
|
---|
1819 | {
|
---|
1820 | if (sizeof (($2)))
|
---|
1821 | return 0;
|
---|
1822 | ;
|
---|
1823 | return 0;
|
---|
1824 | }
|
---|
1825 | _ACEOF
|
---|
1826 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1827 |
|
---|
1828 | else
|
---|
1829 | eval "$3=yes"
|
---|
1830 | fi
|
---|
1831 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1832 | fi
|
---|
1833 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1834 | fi
|
---|
1835 | eval ac_res=\$$3
|
---|
1836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1837 | $as_echo "$ac_res" >&6; }
|
---|
1838 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1839 |
|
---|
1840 | } # ac_fn_c_check_type
|
---|
1841 |
|
---|
1842 | # ac_fn_c_check_func LINENO FUNC VAR
|
---|
1843 | # ----------------------------------
|
---|
1844 | # Tests whether FUNC exists, setting the cache variable VAR accordingly
|
---|
1845 | ac_fn_c_check_func ()
|
---|
1846 | {
|
---|
1847 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1849 | $as_echo_n "checking for $2... " >&6; }
|
---|
1850 | if eval \${$3+:} false; then :
|
---|
1851 | $as_echo_n "(cached) " >&6
|
---|
1852 | else
|
---|
1853 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1854 | /* end confdefs.h. */
|
---|
1855 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
|
---|
1856 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
1857 | #define $2 innocuous_$2
|
---|
1858 |
|
---|
1859 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
1860 | which can conflict with char $2 (); below.
|
---|
1861 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
1862 | <limits.h> exists even on freestanding compilers. */
|
---|
1863 |
|
---|
1864 | #ifdef __STDC__
|
---|
1865 | # include <limits.h>
|
---|
1866 | #else
|
---|
1867 | # include <assert.h>
|
---|
1868 | #endif
|
---|
1869 |
|
---|
1870 | #undef $2
|
---|
1871 |
|
---|
1872 | /* Override any GCC internal prototype to avoid an error.
|
---|
1873 | Use char because int might match the return type of a GCC
|
---|
1874 | builtin and then its argument prototype would still apply. */
|
---|
1875 | #ifdef __cplusplus
|
---|
1876 | extern "C"
|
---|
1877 | #endif
|
---|
1878 | char $2 ();
|
---|
1879 | /* The GNU C library defines this for functions which it implements
|
---|
1880 | to always fail with ENOSYS. Some functions are actually named
|
---|
1881 | something starting with __ and the normal name is an alias. */
|
---|
1882 | #if defined __stub_$2 || defined __stub___$2
|
---|
1883 | choke me
|
---|
1884 | #endif
|
---|
1885 |
|
---|
1886 | int
|
---|
1887 | main ()
|
---|
1888 | {
|
---|
1889 | return $2 ();
|
---|
1890 | ;
|
---|
1891 | return 0;
|
---|
1892 | }
|
---|
1893 | _ACEOF
|
---|
1894 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
1895 | eval "$3=yes"
|
---|
1896 | else
|
---|
1897 | eval "$3=no"
|
---|
1898 | fi
|
---|
1899 | rm -f core conftest.err conftest.$ac_objext \
|
---|
1900 | conftest$ac_exeext conftest.$ac_ext
|
---|
1901 | fi
|
---|
1902 | eval ac_res=\$$3
|
---|
1903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1904 | $as_echo "$ac_res" >&6; }
|
---|
1905 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1906 |
|
---|
1907 | } # ac_fn_c_check_func
|
---|
1908 | cat >config.log <<_ACEOF
|
---|
1909 | This file contains any messages produced by compilers while
|
---|
1910 | running configure, to aid debugging if configure makes a mistake.
|
---|
1911 |
|
---|
1912 | It was created by $as_me, which was
|
---|
1913 | generated by GNU Autoconf 2.69. Invocation command line was
|
---|
1914 |
|
---|
1915 | $ $0 $@
|
---|
1916 |
|
---|
1917 | _ACEOF
|
---|
1918 | exec 5>>config.log
|
---|
1919 | {
|
---|
1920 | cat <<_ASUNAME
|
---|
1921 | ## --------- ##
|
---|
1922 | ## Platform. ##
|
---|
1923 | ## --------- ##
|
---|
1924 |
|
---|
1925 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
1926 | uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
---|
1927 | uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
---|
1928 | uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
---|
1929 | uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
---|
1930 |
|
---|
1931 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
---|
1932 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
---|
1933 |
|
---|
1934 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
---|
1935 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
---|
1936 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
---|
1937 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
|
---|
1938 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
---|
1939 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
---|
1940 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
---|
1941 |
|
---|
1942 | _ASUNAME
|
---|
1943 |
|
---|
1944 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1945 | for as_dir in $PATH
|
---|
1946 | do
|
---|
1947 | IFS=$as_save_IFS
|
---|
1948 | test -z "$as_dir" && as_dir=.
|
---|
1949 | $as_echo "PATH: $as_dir"
|
---|
1950 | done
|
---|
1951 | IFS=$as_save_IFS
|
---|
1952 |
|
---|
1953 | } >&5
|
---|
1954 |
|
---|
1955 | cat >&5 <<_ACEOF
|
---|
1956 |
|
---|
1957 |
|
---|
1958 | ## ----------- ##
|
---|
1959 | ## Core tests. ##
|
---|
1960 | ## ----------- ##
|
---|
1961 |
|
---|
1962 | _ACEOF
|
---|
1963 |
|
---|
1964 |
|
---|
1965 | # Keep a trace of the command line.
|
---|
1966 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
1967 | # Strip out --silent because we don't want to record it for future runs.
|
---|
1968 | # Also quote any args containing shell meta-characters.
|
---|
1969 | # Make two passes to allow for proper duplicate-argument suppression.
|
---|
1970 | ac_configure_args=
|
---|
1971 | ac_configure_args0=
|
---|
1972 | ac_configure_args1=
|
---|
1973 | ac_must_keep_next=false
|
---|
1974 | for ac_pass in 1 2
|
---|
1975 | do
|
---|
1976 | for ac_arg
|
---|
1977 | do
|
---|
1978 | case $ac_arg in
|
---|
1979 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
---|
1980 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
1981 | | -silent | --silent | --silen | --sile | --sil)
|
---|
1982 | continue ;;
|
---|
1983 | *\'*)
|
---|
1984 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
1985 | esac
|
---|
1986 | case $ac_pass in
|
---|
1987 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
|
---|
1988 | 2)
|
---|
1989 | as_fn_append ac_configure_args1 " '$ac_arg'"
|
---|
1990 | if test $ac_must_keep_next = true; then
|
---|
1991 | ac_must_keep_next=false # Got value, back to normal.
|
---|
1992 | else
|
---|
1993 | case $ac_arg in
|
---|
1994 | *=* | --config-cache | -C | -disable-* | --disable-* \
|
---|
1995 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
---|
1996 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
---|
1997 | | -with-* | --with-* | -without-* | --without-* | --x)
|
---|
1998 | case "$ac_configure_args0 " in
|
---|
1999 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
---|
2000 | esac
|
---|
2001 | ;;
|
---|
2002 | -* ) ac_must_keep_next=true ;;
|
---|
2003 | esac
|
---|
2004 | fi
|
---|
2005 | as_fn_append ac_configure_args " '$ac_arg'"
|
---|
2006 | ;;
|
---|
2007 | esac
|
---|
2008 | done
|
---|
2009 | done
|
---|
2010 | { ac_configure_args0=; unset ac_configure_args0;}
|
---|
2011 | { ac_configure_args1=; unset ac_configure_args1;}
|
---|
2012 |
|
---|
2013 | # When interrupted or exit'd, cleanup temporary files, and complete
|
---|
2014 | # config.log. We remove comments because anyway the quotes in there
|
---|
2015 | # would cause problems or look ugly.
|
---|
2016 | # WARNING: Use '\'' to represent an apostrophe within the trap.
|
---|
2017 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
|
---|
2018 | trap 'exit_status=$?
|
---|
2019 | # Save into config.log some information that might help in debugging.
|
---|
2020 | {
|
---|
2021 | echo
|
---|
2022 |
|
---|
2023 | $as_echo "## ---------------- ##
|
---|
2024 | ## Cache variables. ##
|
---|
2025 | ## ---------------- ##"
|
---|
2026 | echo
|
---|
2027 | # The following way of writing the cache mishandles newlines in values,
|
---|
2028 | (
|
---|
2029 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
|
---|
2030 | eval ac_val=\$$ac_var
|
---|
2031 | case $ac_val in #(
|
---|
2032 | *${as_nl}*)
|
---|
2033 | case $ac_var in #(
|
---|
2034 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
---|
2035 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
---|
2036 | esac
|
---|
2037 | case $ac_var in #(
|
---|
2038 | _ | IFS | as_nl) ;; #(
|
---|
2039 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
|
---|
2040 | *) { eval $ac_var=; unset $ac_var;} ;;
|
---|
2041 | esac ;;
|
---|
2042 | esac
|
---|
2043 | done
|
---|
2044 | (set) 2>&1 |
|
---|
2045 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
|
---|
2046 | *${as_nl}ac_space=\ *)
|
---|
2047 | sed -n \
|
---|
2048 | "s/'\''/'\''\\\\'\'''\''/g;
|
---|
2049 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
|
---|
2050 | ;; #(
|
---|
2051 | *)
|
---|
2052 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
---|
2053 | ;;
|
---|
2054 | esac |
|
---|
2055 | sort
|
---|
2056 | )
|
---|
2057 | echo
|
---|
2058 |
|
---|
2059 | $as_echo "## ----------------- ##
|
---|
2060 | ## Output variables. ##
|
---|
2061 | ## ----------------- ##"
|
---|
2062 | echo
|
---|
2063 | for ac_var in $ac_subst_vars
|
---|
2064 | do
|
---|
2065 | eval ac_val=\$$ac_var
|
---|
2066 | case $ac_val in
|
---|
2067 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
---|
2068 | esac
|
---|
2069 | $as_echo "$ac_var='\''$ac_val'\''"
|
---|
2070 | done | sort
|
---|
2071 | echo
|
---|
2072 |
|
---|
2073 | if test -n "$ac_subst_files"; then
|
---|
2074 | $as_echo "## ------------------- ##
|
---|
2075 | ## File substitutions. ##
|
---|
2076 | ## ------------------- ##"
|
---|
2077 | echo
|
---|
2078 | for ac_var in $ac_subst_files
|
---|
2079 | do
|
---|
2080 | eval ac_val=\$$ac_var
|
---|
2081 | case $ac_val in
|
---|
2082 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
---|
2083 | esac
|
---|
2084 | $as_echo "$ac_var='\''$ac_val'\''"
|
---|
2085 | done | sort
|
---|
2086 | echo
|
---|
2087 | fi
|
---|
2088 |
|
---|
2089 | if test -s confdefs.h; then
|
---|
2090 | $as_echo "## ----------- ##
|
---|
2091 | ## confdefs.h. ##
|
---|
2092 | ## ----------- ##"
|
---|
2093 | echo
|
---|
2094 | cat confdefs.h
|
---|
2095 | echo
|
---|
2096 | fi
|
---|
2097 | test "$ac_signal" != 0 &&
|
---|
2098 | $as_echo "$as_me: caught signal $ac_signal"
|
---|
2099 | $as_echo "$as_me: exit $exit_status"
|
---|
2100 | } >&5
|
---|
2101 | rm -f core *.core core.conftest.* &&
|
---|
2102 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
|
---|
2103 | exit $exit_status
|
---|
2104 | ' 0
|
---|
2105 | for ac_signal in 1 2 13 15; do
|
---|
2106 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
|
---|
2107 | done
|
---|
2108 | ac_signal=0
|
---|
2109 |
|
---|
2110 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
2111 | rm -f -r conftest* confdefs.h
|
---|
2112 |
|
---|
2113 | $as_echo "/* confdefs.h */" > confdefs.h
|
---|
2114 |
|
---|
2115 | # Predefined preprocessor variables.
|
---|
2116 |
|
---|
2117 | cat >>confdefs.h <<_ACEOF
|
---|
2118 | #define PACKAGE_NAME "$PACKAGE_NAME"
|
---|
2119 | _ACEOF
|
---|
2120 |
|
---|
2121 | cat >>confdefs.h <<_ACEOF
|
---|
2122 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
---|
2123 | _ACEOF
|
---|
2124 |
|
---|
2125 | cat >>confdefs.h <<_ACEOF
|
---|
2126 | #define PACKAGE_VERSION "$PACKAGE_VERSION"
|
---|
2127 | _ACEOF
|
---|
2128 |
|
---|
2129 | cat >>confdefs.h <<_ACEOF
|
---|
2130 | #define PACKAGE_STRING "$PACKAGE_STRING"
|
---|
2131 | _ACEOF
|
---|
2132 |
|
---|
2133 | cat >>confdefs.h <<_ACEOF
|
---|
2134 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
---|
2135 | _ACEOF
|
---|
2136 |
|
---|
2137 | cat >>confdefs.h <<_ACEOF
|
---|
2138 | #define PACKAGE_URL "$PACKAGE_URL"
|
---|
2139 | _ACEOF
|
---|
2140 |
|
---|
2141 |
|
---|
2142 | # Let the site file select an alternate cache file if it wants to.
|
---|
2143 | # Prefer an explicitly selected file to automatically selected ones.
|
---|
2144 | ac_site_file1=NONE
|
---|
2145 | ac_site_file2=NONE
|
---|
2146 | if test -n "$CONFIG_SITE"; then
|
---|
2147 | # We do not want a PATH search for config.site.
|
---|
2148 | case $CONFIG_SITE in #((
|
---|
2149 | -*) ac_site_file1=./$CONFIG_SITE;;
|
---|
2150 | */*) ac_site_file1=$CONFIG_SITE;;
|
---|
2151 | *) ac_site_file1=./$CONFIG_SITE;;
|
---|
2152 | esac
|
---|
2153 | elif test "x$prefix" != xNONE; then
|
---|
2154 | ac_site_file1=$prefix/share/config.site
|
---|
2155 | ac_site_file2=$prefix/etc/config.site
|
---|
2156 | else
|
---|
2157 | ac_site_file1=$ac_default_prefix/share/config.site
|
---|
2158 | ac_site_file2=$ac_default_prefix/etc/config.site
|
---|
2159 | fi
|
---|
2160 | for ac_site_file in "$ac_site_file1" "$ac_site_file2"
|
---|
2161 | do
|
---|
2162 | test "x$ac_site_file" = xNONE && continue
|
---|
2163 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
|
---|
2164 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
|
---|
2165 | $as_echo "$as_me: loading site script $ac_site_file" >&6;}
|
---|
2166 | sed 's/^/| /' "$ac_site_file" >&5
|
---|
2167 | . "$ac_site_file" \
|
---|
2168 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2169 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2170 | as_fn_error $? "failed to load site script $ac_site_file
|
---|
2171 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
2172 | fi
|
---|
2173 | done
|
---|
2174 |
|
---|
2175 | if test -r "$cache_file"; then
|
---|
2176 | # Some versions of bash will fail to source /dev/null (special files
|
---|
2177 | # actually), so we avoid doing that. DJGPP emulates it as a regular file.
|
---|
2178 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then
|
---|
2179 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
|
---|
2180 | $as_echo "$as_me: loading cache $cache_file" >&6;}
|
---|
2181 | case $cache_file in
|
---|
2182 | [\\/]* | ?:[\\/]* ) . "$cache_file";;
|
---|
2183 | *) . "./$cache_file";;
|
---|
2184 | esac
|
---|
2185 | fi
|
---|
2186 | else
|
---|
2187 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
|
---|
2188 | $as_echo "$as_me: creating cache $cache_file" >&6;}
|
---|
2189 | >$cache_file
|
---|
2190 | fi
|
---|
2191 |
|
---|
2192 | # Check that the precious variables saved in the cache have kept the same
|
---|
2193 | # value.
|
---|
2194 | ac_cache_corrupted=false
|
---|
2195 | for ac_var in $ac_precious_vars; do
|
---|
2196 | eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
---|
2197 | eval ac_new_set=\$ac_env_${ac_var}_set
|
---|
2198 | eval ac_old_val=\$ac_cv_env_${ac_var}_value
|
---|
2199 | eval ac_new_val=\$ac_env_${ac_var}_value
|
---|
2200 | case $ac_old_set,$ac_new_set in
|
---|
2201 | set,)
|
---|
2202 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
---|
2203 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
---|
2204 | ac_cache_corrupted=: ;;
|
---|
2205 | ,set)
|
---|
2206 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
|
---|
2207 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
---|
2208 | ac_cache_corrupted=: ;;
|
---|
2209 | ,);;
|
---|
2210 | *)
|
---|
2211 | if test "x$ac_old_val" != "x$ac_new_val"; then
|
---|
2212 | # differences in whitespace do not lead to failure.
|
---|
2213 | ac_old_val_w=`echo x $ac_old_val`
|
---|
2214 | ac_new_val_w=`echo x $ac_new_val`
|
---|
2215 | if test "$ac_old_val_w" != "$ac_new_val_w"; then
|
---|
2216 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
|
---|
2217 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
---|
2218 | ac_cache_corrupted=:
|
---|
2219 | else
|
---|
2220 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
|
---|
2221 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
|
---|
2222 | eval $ac_var=\$ac_old_val
|
---|
2223 | fi
|
---|
2224 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
|
---|
2225 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
|
---|
2226 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
|
---|
2227 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
|
---|
2228 | fi;;
|
---|
2229 | esac
|
---|
2230 | # Pass precious variables to config.status.
|
---|
2231 | if test "$ac_new_set" = set; then
|
---|
2232 | case $ac_new_val in
|
---|
2233 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
2234 | *) ac_arg=$ac_var=$ac_new_val ;;
|
---|
2235 | esac
|
---|
2236 | case " $ac_configure_args " in
|
---|
2237 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
---|
2238 | *) as_fn_append ac_configure_args " '$ac_arg'" ;;
|
---|
2239 | esac
|
---|
2240 | fi
|
---|
2241 | done
|
---|
2242 | if $ac_cache_corrupted; then
|
---|
2243 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2244 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2245 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
|
---|
2246 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
---|
2247 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
|
---|
2248 | fi
|
---|
2249 | ## -------------------- ##
|
---|
2250 | ## Main body of script. ##
|
---|
2251 | ## -------------------- ##
|
---|
2252 |
|
---|
2253 | ac_ext=c
|
---|
2254 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2255 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2256 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2257 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
2258 |
|
---|
2259 |
|
---|
2260 | ac_config_headers="$ac_config_headers config.h"
|
---|
2261 |
|
---|
2262 |
|
---|
2263 | ac_aux_dir=
|
---|
2264 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
|
---|
2265 | if test -f "$ac_dir/install-sh"; then
|
---|
2266 | ac_aux_dir=$ac_dir
|
---|
2267 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
2268 | break
|
---|
2269 | elif test -f "$ac_dir/install.sh"; then
|
---|
2270 | ac_aux_dir=$ac_dir
|
---|
2271 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
2272 | break
|
---|
2273 | elif test -f "$ac_dir/shtool"; then
|
---|
2274 | ac_aux_dir=$ac_dir
|
---|
2275 | ac_install_sh="$ac_aux_dir/shtool install -c"
|
---|
2276 | break
|
---|
2277 | fi
|
---|
2278 | done
|
---|
2279 | if test -z "$ac_aux_dir"; then
|
---|
2280 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
|
---|
2281 | fi
|
---|
2282 |
|
---|
2283 | # These three variables are undocumented and unsupported,
|
---|
2284 | # and are intended to be withdrawn in a future Autoconf release.
|
---|
2285 | # They can cause serious problems if a builder's source tree is in a directory
|
---|
2286 | # whose full name contains unusual characters.
|
---|
2287 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
|
---|
2288 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
|
---|
2289 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
|
---|
2290 |
|
---|
2291 |
|
---|
2292 | # Make sure we can run config.sub.
|
---|
2293 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
|
---|
2294 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
|
---|
2295 |
|
---|
2296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
|
---|
2297 | $as_echo_n "checking build system type... " >&6; }
|
---|
2298 | if ${ac_cv_build+:} false; then :
|
---|
2299 | $as_echo_n "(cached) " >&6
|
---|
2300 | else
|
---|
2301 | ac_build_alias=$build_alias
|
---|
2302 | test "x$ac_build_alias" = x &&
|
---|
2303 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
|
---|
2304 | test "x$ac_build_alias" = x &&
|
---|
2305 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
|
---|
2306 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
|
---|
2307 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
|
---|
2308 |
|
---|
2309 | fi
|
---|
2310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
|
---|
2311 | $as_echo "$ac_cv_build" >&6; }
|
---|
2312 | case $ac_cv_build in
|
---|
2313 | *-*-*) ;;
|
---|
2314 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
|
---|
2315 | esac
|
---|
2316 | build=$ac_cv_build
|
---|
2317 | ac_save_IFS=$IFS; IFS='-'
|
---|
2318 | set x $ac_cv_build
|
---|
2319 | shift
|
---|
2320 | build_cpu=$1
|
---|
2321 | build_vendor=$2
|
---|
2322 | shift; shift
|
---|
2323 | # Remember, the first character of IFS is used to create $*,
|
---|
2324 | # except with old shells:
|
---|
2325 | build_os=$*
|
---|
2326 | IFS=$ac_save_IFS
|
---|
2327 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
|
---|
2328 |
|
---|
2329 |
|
---|
2330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
|
---|
2331 | $as_echo_n "checking host system type... " >&6; }
|
---|
2332 | if ${ac_cv_host+:} false; then :
|
---|
2333 | $as_echo_n "(cached) " >&6
|
---|
2334 | else
|
---|
2335 | if test "x$host_alias" = x; then
|
---|
2336 | ac_cv_host=$ac_cv_build
|
---|
2337 | else
|
---|
2338 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
|
---|
2339 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
|
---|
2340 | fi
|
---|
2341 |
|
---|
2342 | fi
|
---|
2343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
|
---|
2344 | $as_echo "$ac_cv_host" >&6; }
|
---|
2345 | case $ac_cv_host in
|
---|
2346 | *-*-*) ;;
|
---|
2347 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
|
---|
2348 | esac
|
---|
2349 | host=$ac_cv_host
|
---|
2350 | ac_save_IFS=$IFS; IFS='-'
|
---|
2351 | set x $ac_cv_host
|
---|
2352 | shift
|
---|
2353 | host_cpu=$1
|
---|
2354 | host_vendor=$2
|
---|
2355 | shift; shift
|
---|
2356 | # Remember, the first character of IFS is used to create $*,
|
---|
2357 | # except with old shells:
|
---|
2358 | host_os=$*
|
---|
2359 | IFS=$ac_save_IFS
|
---|
2360 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
|
---|
2361 |
|
---|
2362 |
|
---|
2363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
|
---|
2364 | $as_echo_n "checking target system type... " >&6; }
|
---|
2365 | if ${ac_cv_target+:} false; then :
|
---|
2366 | $as_echo_n "(cached) " >&6
|
---|
2367 | else
|
---|
2368 | if test "x$target_alias" = x; then
|
---|
2369 | ac_cv_target=$ac_cv_host
|
---|
2370 | else
|
---|
2371 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
|
---|
2372 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
|
---|
2373 | fi
|
---|
2374 |
|
---|
2375 | fi
|
---|
2376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
|
---|
2377 | $as_echo "$ac_cv_target" >&6; }
|
---|
2378 | case $ac_cv_target in
|
---|
2379 | *-*-*) ;;
|
---|
2380 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
|
---|
2381 | esac
|
---|
2382 | target=$ac_cv_target
|
---|
2383 | ac_save_IFS=$IFS; IFS='-'
|
---|
2384 | set x $ac_cv_target
|
---|
2385 | shift
|
---|
2386 | target_cpu=$1
|
---|
2387 | target_vendor=$2
|
---|
2388 | shift; shift
|
---|
2389 | # Remember, the first character of IFS is used to create $*,
|
---|
2390 | # except with old shells:
|
---|
2391 | target_os=$*
|
---|
2392 | IFS=$ac_save_IFS
|
---|
2393 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
|
---|
2394 |
|
---|
2395 |
|
---|
2396 | # The aliases save the names the user supplied, while $host etc.
|
---|
2397 | # will get canonicalized.
|
---|
2398 | test -n "$target_alias" &&
|
---|
2399 | test "$program_prefix$program_suffix$program_transform_name" = \
|
---|
2400 | NONENONEs,x,x, &&
|
---|
2401 | program_prefix=${target_alias}-
|
---|
2402 |
|
---|
2403 | test "$program_prefix" != NONE &&
|
---|
2404 | program_transform_name="s&^&$program_prefix&;$program_transform_name"
|
---|
2405 | # Use a double $ so make ignores it.
|
---|
2406 | test "$program_suffix" != NONE &&
|
---|
2407 | program_transform_name="s&\$&$program_suffix&;$program_transform_name"
|
---|
2408 | # Double any \ or $.
|
---|
2409 | # By default was `s,x,x', remove it if useless.
|
---|
2410 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
|
---|
2411 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
|
---|
2412 |
|
---|
2413 |
|
---|
2414 | PACKAGE=mg
|
---|
2415 | VERSION=1.2
|
---|
2416 |
|
---|
2417 | cat >>confdefs.h <<_ACEOF
|
---|
2418 | #define PACKAGE "$PACKAGE"
|
---|
2419 | _ACEOF
|
---|
2420 |
|
---|
2421 | cat >>confdefs.h <<_ACEOF
|
---|
2422 | #define VERSION "$VERSION"
|
---|
2423 | _ACEOF
|
---|
2424 |
|
---|
2425 |
|
---|
2426 |
|
---|
2427 |
|
---|
2428 | # Check whether --enable-java was given.
|
---|
2429 | if test "${enable_java+set}" = set; then :
|
---|
2430 | enableval=$enable_java; ENABLE_JAVA=$enableval
|
---|
2431 | else
|
---|
2432 | ENABLE_JAVA=yes
|
---|
2433 | fi
|
---|
2434 |
|
---|
2435 | if test $ENABLE_JAVA = "yes" -o $ENABLE_JAVA = "1" ; then
|
---|
2436 | ENABLE_JAVA=1
|
---|
2437 | if test "x$JAVA_HOME" != "x" ; then
|
---|
2438 | echo "Detected JAVA_HOME is set, however this will not be used during compilation"
|
---|
2439 | echo "To control the version of 'javac' and 'java' set environment variables JAVAC"
|
---|
2440 | echo "and JAVA respectively"
|
---|
2441 | export JAVA_HOME=
|
---|
2442 | fi
|
---|
2443 | else
|
---|
2444 | ENABLE_JAVA=0
|
---|
2445 | fi
|
---|
2446 |
|
---|
2447 |
|
---|
2448 | if test -z "$ARCH_DEP_FLAGS" ; then
|
---|
2449 | ARCH_DEP_FLAGS=
|
---|
2450 | fi
|
---|
2451 |
|
---|
2452 |
|
---|
2453 |
|
---|
2454 |
|
---|
2455 | ac_ext=cpp
|
---|
2456 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
2457 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2458 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2459 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
2460 | if test -z "$CXX"; then
|
---|
2461 | if test -n "$CCC"; then
|
---|
2462 | CXX=$CCC
|
---|
2463 | else
|
---|
2464 | if test -n "$ac_tool_prefix"; then
|
---|
2465 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
|
---|
2466 | do
|
---|
2467 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
2468 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
2469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2470 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2471 | if ${ac_cv_prog_CXX+:} false; then :
|
---|
2472 | $as_echo_n "(cached) " >&6
|
---|
2473 | else
|
---|
2474 | if test -n "$CXX"; then
|
---|
2475 | ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
---|
2476 | else
|
---|
2477 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2478 | for as_dir in $PATH
|
---|
2479 | do
|
---|
2480 | IFS=$as_save_IFS
|
---|
2481 | test -z "$as_dir" && as_dir=.
|
---|
2482 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2483 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2484 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
|
---|
2485 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2486 | break 2
|
---|
2487 | fi
|
---|
2488 | done
|
---|
2489 | done
|
---|
2490 | IFS=$as_save_IFS
|
---|
2491 |
|
---|
2492 | fi
|
---|
2493 | fi
|
---|
2494 | CXX=$ac_cv_prog_CXX
|
---|
2495 | if test -n "$CXX"; then
|
---|
2496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
|
---|
2497 | $as_echo "$CXX" >&6; }
|
---|
2498 | else
|
---|
2499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2500 | $as_echo "no" >&6; }
|
---|
2501 | fi
|
---|
2502 |
|
---|
2503 |
|
---|
2504 | test -n "$CXX" && break
|
---|
2505 | done
|
---|
2506 | fi
|
---|
2507 | if test -z "$CXX"; then
|
---|
2508 | ac_ct_CXX=$CXX
|
---|
2509 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
|
---|
2510 | do
|
---|
2511 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
2512 | set dummy $ac_prog; ac_word=$2
|
---|
2513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2514 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2515 | if ${ac_cv_prog_ac_ct_CXX+:} false; then :
|
---|
2516 | $as_echo_n "(cached) " >&6
|
---|
2517 | else
|
---|
2518 | if test -n "$ac_ct_CXX"; then
|
---|
2519 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
|
---|
2520 | else
|
---|
2521 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2522 | for as_dir in $PATH
|
---|
2523 | do
|
---|
2524 | IFS=$as_save_IFS
|
---|
2525 | test -z "$as_dir" && as_dir=.
|
---|
2526 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2527 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2528 | ac_cv_prog_ac_ct_CXX="$ac_prog"
|
---|
2529 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2530 | break 2
|
---|
2531 | fi
|
---|
2532 | done
|
---|
2533 | done
|
---|
2534 | IFS=$as_save_IFS
|
---|
2535 |
|
---|
2536 | fi
|
---|
2537 | fi
|
---|
2538 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
|
---|
2539 | if test -n "$ac_ct_CXX"; then
|
---|
2540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
|
---|
2541 | $as_echo "$ac_ct_CXX" >&6; }
|
---|
2542 | else
|
---|
2543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2544 | $as_echo "no" >&6; }
|
---|
2545 | fi
|
---|
2546 |
|
---|
2547 |
|
---|
2548 | test -n "$ac_ct_CXX" && break
|
---|
2549 | done
|
---|
2550 |
|
---|
2551 | if test "x$ac_ct_CXX" = x; then
|
---|
2552 | CXX="g++"
|
---|
2553 | else
|
---|
2554 | case $cross_compiling:$ac_tool_warned in
|
---|
2555 | yes:)
|
---|
2556 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
2557 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
2558 | ac_tool_warned=yes ;;
|
---|
2559 | esac
|
---|
2560 | CXX=$ac_ct_CXX
|
---|
2561 | fi
|
---|
2562 | fi
|
---|
2563 |
|
---|
2564 | fi
|
---|
2565 | fi
|
---|
2566 | # Provide some information about the compiler.
|
---|
2567 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
|
---|
2568 | set X $ac_compile
|
---|
2569 | ac_compiler=$2
|
---|
2570 | for ac_option in --version -v -V -qversion; do
|
---|
2571 | { { ac_try="$ac_compiler $ac_option >&5"
|
---|
2572 | case "(($ac_try" in
|
---|
2573 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2574 | *) ac_try_echo=$ac_try;;
|
---|
2575 | esac
|
---|
2576 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
2577 | $as_echo "$ac_try_echo"; } >&5
|
---|
2578 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err
|
---|
2579 | ac_status=$?
|
---|
2580 | if test -s conftest.err; then
|
---|
2581 | sed '10a\
|
---|
2582 | ... rest of stderr output deleted ...
|
---|
2583 | 10q' conftest.err >conftest.er1
|
---|
2584 | cat conftest.er1 >&5
|
---|
2585 | fi
|
---|
2586 | rm -f conftest.er1 conftest.err
|
---|
2587 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
2588 | test $ac_status = 0; }
|
---|
2589 | done
|
---|
2590 |
|
---|
2591 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
2592 | /* end confdefs.h. */
|
---|
2593 |
|
---|
2594 | int
|
---|
2595 | main ()
|
---|
2596 | {
|
---|
2597 |
|
---|
2598 | ;
|
---|
2599 | return 0;
|
---|
2600 | }
|
---|
2601 | _ACEOF
|
---|
2602 | ac_clean_files_save=$ac_clean_files
|
---|
2603 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
|
---|
2604 | # Try to create an executable without -o first, disregard a.out.
|
---|
2605 | # It will help us diagnose broken compilers, and finding out an intuition
|
---|
2606 | # of exeext.
|
---|
2607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
|
---|
2608 | $as_echo_n "checking whether the C++ compiler works... " >&6; }
|
---|
2609 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
---|
2610 |
|
---|
2611 | # The possible output files:
|
---|
2612 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
|
---|
2613 |
|
---|
2614 | ac_rmfiles=
|
---|
2615 | for ac_file in $ac_files
|
---|
2616 | do
|
---|
2617 | case $ac_file in
|
---|
2618 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
---|
2619 | * ) ac_rmfiles="$ac_rmfiles $ac_file";;
|
---|
2620 | esac
|
---|
2621 | done
|
---|
2622 | rm -f $ac_rmfiles
|
---|
2623 |
|
---|
2624 | if { { ac_try="$ac_link_default"
|
---|
2625 | case "(($ac_try" in
|
---|
2626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2627 | *) ac_try_echo=$ac_try;;
|
---|
2628 | esac
|
---|
2629 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
2630 | $as_echo "$ac_try_echo"; } >&5
|
---|
2631 | (eval "$ac_link_default") 2>&5
|
---|
2632 | ac_status=$?
|
---|
2633 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
2634 | test $ac_status = 0; }; then :
|
---|
2635 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
|
---|
2636 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
|
---|
2637 | # in a Makefile. We should not override ac_cv_exeext if it was cached,
|
---|
2638 | # so that the user can short-circuit this test for compilers unknown to
|
---|
2639 | # Autoconf.
|
---|
2640 | for ac_file in $ac_files ''
|
---|
2641 | do
|
---|
2642 | test -f "$ac_file" || continue
|
---|
2643 | case $ac_file in
|
---|
2644 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
|
---|
2645 | ;;
|
---|
2646 | [ab].out )
|
---|
2647 | # We found the default executable, but exeext='' is most
|
---|
2648 | # certainly right.
|
---|
2649 | break;;
|
---|
2650 | *.* )
|
---|
2651 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
|
---|
2652 | then :; else
|
---|
2653 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
2654 | fi
|
---|
2655 | # We set ac_cv_exeext here because the later test for it is not
|
---|
2656 | # safe: cross compilers may not add the suffix if given an `-o'
|
---|
2657 | # argument, so we may need to know it at that point already.
|
---|
2658 | # Even if this section looks crufty: it has the advantage of
|
---|
2659 | # actually working.
|
---|
2660 | break;;
|
---|
2661 | * )
|
---|
2662 | break;;
|
---|
2663 | esac
|
---|
2664 | done
|
---|
2665 | test "$ac_cv_exeext" = no && ac_cv_exeext=
|
---|
2666 |
|
---|
2667 | else
|
---|
2668 | ac_file=''
|
---|
2669 | fi
|
---|
2670 | if test -z "$ac_file"; then :
|
---|
2671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2672 | $as_echo "no" >&6; }
|
---|
2673 | $as_echo "$as_me: failed program was:" >&5
|
---|
2674 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2675 |
|
---|
2676 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2677 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2678 | as_fn_error 77 "C++ compiler cannot create executables
|
---|
2679 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
2680 | else
|
---|
2681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
2682 | $as_echo "yes" >&6; }
|
---|
2683 | fi
|
---|
2684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
|
---|
2685 | $as_echo_n "checking for C++ compiler default output file name... " >&6; }
|
---|
2686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
|
---|
2687 | $as_echo "$ac_file" >&6; }
|
---|
2688 | ac_exeext=$ac_cv_exeext
|
---|
2689 |
|
---|
2690 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
|
---|
2691 | ac_clean_files=$ac_clean_files_save
|
---|
2692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
|
---|
2693 | $as_echo_n "checking for suffix of executables... " >&6; }
|
---|
2694 | if { { ac_try="$ac_link"
|
---|
2695 | case "(($ac_try" in
|
---|
2696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2697 | *) ac_try_echo=$ac_try;;
|
---|
2698 | esac
|
---|
2699 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
2700 | $as_echo "$ac_try_echo"; } >&5
|
---|
2701 | (eval "$ac_link") 2>&5
|
---|
2702 | ac_status=$?
|
---|
2703 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
2704 | test $ac_status = 0; }; then :
|
---|
2705 | # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
---|
2706 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
---|
2707 | # work properly (i.e., refer to `conftest.exe'), while it won't with
|
---|
2708 | # `rm'.
|
---|
2709 | for ac_file in conftest.exe conftest conftest.*; do
|
---|
2710 | test -f "$ac_file" || continue
|
---|
2711 | case $ac_file in
|
---|
2712 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
---|
2713 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
2714 | break;;
|
---|
2715 | * ) break;;
|
---|
2716 | esac
|
---|
2717 | done
|
---|
2718 | else
|
---|
2719 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2720 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2721 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link
|
---|
2722 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
2723 | fi
|
---|
2724 | rm -f conftest conftest$ac_cv_exeext
|
---|
2725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
|
---|
2726 | $as_echo "$ac_cv_exeext" >&6; }
|
---|
2727 |
|
---|
2728 | rm -f conftest.$ac_ext
|
---|
2729 | EXEEXT=$ac_cv_exeext
|
---|
2730 | ac_exeext=$EXEEXT
|
---|
2731 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
2732 | /* end confdefs.h. */
|
---|
2733 | #include <stdio.h>
|
---|
2734 | int
|
---|
2735 | main ()
|
---|
2736 | {
|
---|
2737 | FILE *f = fopen ("conftest.out", "w");
|
---|
2738 | return ferror (f) || fclose (f) != 0;
|
---|
2739 |
|
---|
2740 | ;
|
---|
2741 | return 0;
|
---|
2742 | }
|
---|
2743 | _ACEOF
|
---|
2744 | ac_clean_files="$ac_clean_files conftest.out"
|
---|
2745 | # Check that the compiler produces executables we can run. If not, either
|
---|
2746 | # the compiler is broken, or we cross compile.
|
---|
2747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
|
---|
2748 | $as_echo_n "checking whether we are cross compiling... " >&6; }
|
---|
2749 | if test "$cross_compiling" != yes; then
|
---|
2750 | { { ac_try="$ac_link"
|
---|
2751 | case "(($ac_try" in
|
---|
2752 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2753 | *) ac_try_echo=$ac_try;;
|
---|
2754 | esac
|
---|
2755 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
2756 | $as_echo "$ac_try_echo"; } >&5
|
---|
2757 | (eval "$ac_link") 2>&5
|
---|
2758 | ac_status=$?
|
---|
2759 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
2760 | test $ac_status = 0; }
|
---|
2761 | if { ac_try='./conftest$ac_cv_exeext'
|
---|
2762 | { { case "(($ac_try" in
|
---|
2763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2764 | *) ac_try_echo=$ac_try;;
|
---|
2765 | esac
|
---|
2766 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
2767 | $as_echo "$ac_try_echo"; } >&5
|
---|
2768 | (eval "$ac_try") 2>&5
|
---|
2769 | ac_status=$?
|
---|
2770 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
2771 | test $ac_status = 0; }; }; then
|
---|
2772 | cross_compiling=no
|
---|
2773 | else
|
---|
2774 | if test "$cross_compiling" = maybe; then
|
---|
2775 | cross_compiling=yes
|
---|
2776 | else
|
---|
2777 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2778 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2779 | as_fn_error $? "cannot run C++ compiled programs.
|
---|
2780 | If you meant to cross compile, use \`--host'.
|
---|
2781 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
2782 | fi
|
---|
2783 | fi
|
---|
2784 | fi
|
---|
2785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
|
---|
2786 | $as_echo "$cross_compiling" >&6; }
|
---|
2787 |
|
---|
2788 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
|
---|
2789 | ac_clean_files=$ac_clean_files_save
|
---|
2790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
|
---|
2791 | $as_echo_n "checking for suffix of object files... " >&6; }
|
---|
2792 | if ${ac_cv_objext+:} false; then :
|
---|
2793 | $as_echo_n "(cached) " >&6
|
---|
2794 | else
|
---|
2795 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
2796 | /* end confdefs.h. */
|
---|
2797 |
|
---|
2798 | int
|
---|
2799 | main ()
|
---|
2800 | {
|
---|
2801 |
|
---|
2802 | ;
|
---|
2803 | return 0;
|
---|
2804 | }
|
---|
2805 | _ACEOF
|
---|
2806 | rm -f conftest.o conftest.obj
|
---|
2807 | if { { ac_try="$ac_compile"
|
---|
2808 | case "(($ac_try" in
|
---|
2809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2810 | *) ac_try_echo=$ac_try;;
|
---|
2811 | esac
|
---|
2812 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
2813 | $as_echo "$ac_try_echo"; } >&5
|
---|
2814 | (eval "$ac_compile") 2>&5
|
---|
2815 | ac_status=$?
|
---|
2816 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
2817 | test $ac_status = 0; }; then :
|
---|
2818 | for ac_file in conftest.o conftest.obj conftest.*; do
|
---|
2819 | test -f "$ac_file" || continue;
|
---|
2820 | case $ac_file in
|
---|
2821 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
|
---|
2822 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
---|
2823 | break;;
|
---|
2824 | esac
|
---|
2825 | done
|
---|
2826 | else
|
---|
2827 | $as_echo "$as_me: failed program was:" >&5
|
---|
2828 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2829 |
|
---|
2830 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2831 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2832 | as_fn_error $? "cannot compute suffix of object files: cannot compile
|
---|
2833 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
2834 | fi
|
---|
2835 | rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
---|
2836 | fi
|
---|
2837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
|
---|
2838 | $as_echo "$ac_cv_objext" >&6; }
|
---|
2839 | OBJEXT=$ac_cv_objext
|
---|
2840 | ac_objext=$OBJEXT
|
---|
2841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
|
---|
2842 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
|
---|
2843 | if ${ac_cv_cxx_compiler_gnu+:} false; then :
|
---|
2844 | $as_echo_n "(cached) " >&6
|
---|
2845 | else
|
---|
2846 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
2847 | /* end confdefs.h. */
|
---|
2848 |
|
---|
2849 | int
|
---|
2850 | main ()
|
---|
2851 | {
|
---|
2852 | #ifndef __GNUC__
|
---|
2853 | choke me
|
---|
2854 | #endif
|
---|
2855 |
|
---|
2856 | ;
|
---|
2857 | return 0;
|
---|
2858 | }
|
---|
2859 | _ACEOF
|
---|
2860 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
2861 | ac_compiler_gnu=yes
|
---|
2862 | else
|
---|
2863 | ac_compiler_gnu=no
|
---|
2864 | fi
|
---|
2865 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2866 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
|
---|
2867 |
|
---|
2868 | fi
|
---|
2869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
|
---|
2870 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
|
---|
2871 | if test $ac_compiler_gnu = yes; then
|
---|
2872 | GXX=yes
|
---|
2873 | else
|
---|
2874 | GXX=
|
---|
2875 | fi
|
---|
2876 | ac_test_CXXFLAGS=${CXXFLAGS+set}
|
---|
2877 | ac_save_CXXFLAGS=$CXXFLAGS
|
---|
2878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
|
---|
2879 | $as_echo_n "checking whether $CXX accepts -g... " >&6; }
|
---|
2880 | if ${ac_cv_prog_cxx_g+:} false; then :
|
---|
2881 | $as_echo_n "(cached) " >&6
|
---|
2882 | else
|
---|
2883 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag
|
---|
2884 | ac_cxx_werror_flag=yes
|
---|
2885 | ac_cv_prog_cxx_g=no
|
---|
2886 | CXXFLAGS="-g"
|
---|
2887 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
2888 | /* end confdefs.h. */
|
---|
2889 |
|
---|
2890 | int
|
---|
2891 | main ()
|
---|
2892 | {
|
---|
2893 |
|
---|
2894 | ;
|
---|
2895 | return 0;
|
---|
2896 | }
|
---|
2897 | _ACEOF
|
---|
2898 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
2899 | ac_cv_prog_cxx_g=yes
|
---|
2900 | else
|
---|
2901 | CXXFLAGS=""
|
---|
2902 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
2903 | /* end confdefs.h. */
|
---|
2904 |
|
---|
2905 | int
|
---|
2906 | main ()
|
---|
2907 | {
|
---|
2908 |
|
---|
2909 | ;
|
---|
2910 | return 0;
|
---|
2911 | }
|
---|
2912 | _ACEOF
|
---|
2913 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
2914 |
|
---|
2915 | else
|
---|
2916 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag
|
---|
2917 | CXXFLAGS="-g"
|
---|
2918 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
2919 | /* end confdefs.h. */
|
---|
2920 |
|
---|
2921 | int
|
---|
2922 | main ()
|
---|
2923 | {
|
---|
2924 |
|
---|
2925 | ;
|
---|
2926 | return 0;
|
---|
2927 | }
|
---|
2928 | _ACEOF
|
---|
2929 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
2930 | ac_cv_prog_cxx_g=yes
|
---|
2931 | fi
|
---|
2932 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2933 | fi
|
---|
2934 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2935 | fi
|
---|
2936 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2937 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag
|
---|
2938 | fi
|
---|
2939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
|
---|
2940 | $as_echo "$ac_cv_prog_cxx_g" >&6; }
|
---|
2941 | if test "$ac_test_CXXFLAGS" = set; then
|
---|
2942 | CXXFLAGS=$ac_save_CXXFLAGS
|
---|
2943 | elif test $ac_cv_prog_cxx_g = yes; then
|
---|
2944 | if test "$GXX" = yes; then
|
---|
2945 | CXXFLAGS="-g -O2"
|
---|
2946 | else
|
---|
2947 | CXXFLAGS="-g"
|
---|
2948 | fi
|
---|
2949 | else
|
---|
2950 | if test "$GXX" = yes; then
|
---|
2951 | CXXFLAGS="-O2"
|
---|
2952 | else
|
---|
2953 | CXXFLAGS=
|
---|
2954 | fi
|
---|
2955 | fi
|
---|
2956 | ac_ext=c
|
---|
2957 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2958 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2959 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2960 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
2961 |
|
---|
2962 | for ac_prog in gawk mawk nawk awk
|
---|
2963 | do
|
---|
2964 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
2965 | set dummy $ac_prog; ac_word=$2
|
---|
2966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2967 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2968 | if ${ac_cv_prog_AWK+:} false; then :
|
---|
2969 | $as_echo_n "(cached) " >&6
|
---|
2970 | else
|
---|
2971 | if test -n "$AWK"; then
|
---|
2972 | ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
---|
2973 | else
|
---|
2974 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2975 | for as_dir in $PATH
|
---|
2976 | do
|
---|
2977 | IFS=$as_save_IFS
|
---|
2978 | test -z "$as_dir" && as_dir=.
|
---|
2979 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2980 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2981 | ac_cv_prog_AWK="$ac_prog"
|
---|
2982 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2983 | break 2
|
---|
2984 | fi
|
---|
2985 | done
|
---|
2986 | done
|
---|
2987 | IFS=$as_save_IFS
|
---|
2988 |
|
---|
2989 | fi
|
---|
2990 | fi
|
---|
2991 | AWK=$ac_cv_prog_AWK
|
---|
2992 | if test -n "$AWK"; then
|
---|
2993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
|
---|
2994 | $as_echo "$AWK" >&6; }
|
---|
2995 | else
|
---|
2996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2997 | $as_echo "no" >&6; }
|
---|
2998 | fi
|
---|
2999 |
|
---|
3000 |
|
---|
3001 | test -n "$AWK" && break
|
---|
3002 | done
|
---|
3003 |
|
---|
3004 | for ac_prog in 'bison -y' byacc
|
---|
3005 | do
|
---|
3006 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
3007 | set dummy $ac_prog; ac_word=$2
|
---|
3008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3009 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3010 | if ${ac_cv_prog_YACC+:} false; then :
|
---|
3011 | $as_echo_n "(cached) " >&6
|
---|
3012 | else
|
---|
3013 | if test -n "$YACC"; then
|
---|
3014 | ac_cv_prog_YACC="$YACC" # Let the user override the test.
|
---|
3015 | else
|
---|
3016 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3017 | for as_dir in $PATH
|
---|
3018 | do
|
---|
3019 | IFS=$as_save_IFS
|
---|
3020 | test -z "$as_dir" && as_dir=.
|
---|
3021 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3022 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3023 | ac_cv_prog_YACC="$ac_prog"
|
---|
3024 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3025 | break 2
|
---|
3026 | fi
|
---|
3027 | done
|
---|
3028 | done
|
---|
3029 | IFS=$as_save_IFS
|
---|
3030 |
|
---|
3031 | fi
|
---|
3032 | fi
|
---|
3033 | YACC=$ac_cv_prog_YACC
|
---|
3034 | if test -n "$YACC"; then
|
---|
3035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
|
---|
3036 | $as_echo "$YACC" >&6; }
|
---|
3037 | else
|
---|
3038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3039 | $as_echo "no" >&6; }
|
---|
3040 | fi
|
---|
3041 |
|
---|
3042 |
|
---|
3043 | test -n "$YACC" && break
|
---|
3044 | done
|
---|
3045 | test -n "$YACC" || YACC="yacc"
|
---|
3046 |
|
---|
3047 | ac_ext=c
|
---|
3048 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3049 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3050 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3051 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3052 | if test -n "$ac_tool_prefix"; then
|
---|
3053 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
---|
3054 | set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
---|
3055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3056 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3057 | if ${ac_cv_prog_CC+:} false; then :
|
---|
3058 | $as_echo_n "(cached) " >&6
|
---|
3059 | else
|
---|
3060 | if test -n "$CC"; then
|
---|
3061 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
3062 | else
|
---|
3063 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3064 | for as_dir in $PATH
|
---|
3065 | do
|
---|
3066 | IFS=$as_save_IFS
|
---|
3067 | test -z "$as_dir" && as_dir=.
|
---|
3068 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3069 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3070 | ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
---|
3071 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3072 | break 2
|
---|
3073 | fi
|
---|
3074 | done
|
---|
3075 | done
|
---|
3076 | IFS=$as_save_IFS
|
---|
3077 |
|
---|
3078 | fi
|
---|
3079 | fi
|
---|
3080 | CC=$ac_cv_prog_CC
|
---|
3081 | if test -n "$CC"; then
|
---|
3082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
3083 | $as_echo "$CC" >&6; }
|
---|
3084 | else
|
---|
3085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3086 | $as_echo "no" >&6; }
|
---|
3087 | fi
|
---|
3088 |
|
---|
3089 |
|
---|
3090 | fi
|
---|
3091 | if test -z "$ac_cv_prog_CC"; then
|
---|
3092 | ac_ct_CC=$CC
|
---|
3093 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
3094 | set dummy gcc; ac_word=$2
|
---|
3095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3096 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3097 | if ${ac_cv_prog_ac_ct_CC+:} false; then :
|
---|
3098 | $as_echo_n "(cached) " >&6
|
---|
3099 | else
|
---|
3100 | if test -n "$ac_ct_CC"; then
|
---|
3101 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
3102 | else
|
---|
3103 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3104 | for as_dir in $PATH
|
---|
3105 | do
|
---|
3106 | IFS=$as_save_IFS
|
---|
3107 | test -z "$as_dir" && as_dir=.
|
---|
3108 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3109 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3110 | ac_cv_prog_ac_ct_CC="gcc"
|
---|
3111 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3112 | break 2
|
---|
3113 | fi
|
---|
3114 | done
|
---|
3115 | done
|
---|
3116 | IFS=$as_save_IFS
|
---|
3117 |
|
---|
3118 | fi
|
---|
3119 | fi
|
---|
3120 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
3121 | if test -n "$ac_ct_CC"; then
|
---|
3122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
---|
3123 | $as_echo "$ac_ct_CC" >&6; }
|
---|
3124 | else
|
---|
3125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3126 | $as_echo "no" >&6; }
|
---|
3127 | fi
|
---|
3128 |
|
---|
3129 | if test "x$ac_ct_CC" = x; then
|
---|
3130 | CC=""
|
---|
3131 | else
|
---|
3132 | case $cross_compiling:$ac_tool_warned in
|
---|
3133 | yes:)
|
---|
3134 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
3135 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
3136 | ac_tool_warned=yes ;;
|
---|
3137 | esac
|
---|
3138 | CC=$ac_ct_CC
|
---|
3139 | fi
|
---|
3140 | else
|
---|
3141 | CC="$ac_cv_prog_CC"
|
---|
3142 | fi
|
---|
3143 |
|
---|
3144 | if test -z "$CC"; then
|
---|
3145 | if test -n "$ac_tool_prefix"; then
|
---|
3146 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
---|
3147 | set dummy ${ac_tool_prefix}cc; ac_word=$2
|
---|
3148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3149 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3150 | if ${ac_cv_prog_CC+:} false; then :
|
---|
3151 | $as_echo_n "(cached) " >&6
|
---|
3152 | else
|
---|
3153 | if test -n "$CC"; then
|
---|
3154 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
3155 | else
|
---|
3156 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3157 | for as_dir in $PATH
|
---|
3158 | do
|
---|
3159 | IFS=$as_save_IFS
|
---|
3160 | test -z "$as_dir" && as_dir=.
|
---|
3161 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3162 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3163 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
---|
3164 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3165 | break 2
|
---|
3166 | fi
|
---|
3167 | done
|
---|
3168 | done
|
---|
3169 | IFS=$as_save_IFS
|
---|
3170 |
|
---|
3171 | fi
|
---|
3172 | fi
|
---|
3173 | CC=$ac_cv_prog_CC
|
---|
3174 | if test -n "$CC"; then
|
---|
3175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
3176 | $as_echo "$CC" >&6; }
|
---|
3177 | else
|
---|
3178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3179 | $as_echo "no" >&6; }
|
---|
3180 | fi
|
---|
3181 |
|
---|
3182 |
|
---|
3183 | fi
|
---|
3184 | fi
|
---|
3185 | if test -z "$CC"; then
|
---|
3186 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
3187 | set dummy cc; ac_word=$2
|
---|
3188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3189 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3190 | if ${ac_cv_prog_CC+:} false; then :
|
---|
3191 | $as_echo_n "(cached) " >&6
|
---|
3192 | else
|
---|
3193 | if test -n "$CC"; then
|
---|
3194 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
3195 | else
|
---|
3196 | ac_prog_rejected=no
|
---|
3197 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3198 | for as_dir in $PATH
|
---|
3199 | do
|
---|
3200 | IFS=$as_save_IFS
|
---|
3201 | test -z "$as_dir" && as_dir=.
|
---|
3202 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3203 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3204 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
---|
3205 | ac_prog_rejected=yes
|
---|
3206 | continue
|
---|
3207 | fi
|
---|
3208 | ac_cv_prog_CC="cc"
|
---|
3209 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3210 | break 2
|
---|
3211 | fi
|
---|
3212 | done
|
---|
3213 | done
|
---|
3214 | IFS=$as_save_IFS
|
---|
3215 |
|
---|
3216 | if test $ac_prog_rejected = yes; then
|
---|
3217 | # We found a bogon in the path, so make sure we never use it.
|
---|
3218 | set dummy $ac_cv_prog_CC
|
---|
3219 | shift
|
---|
3220 | if test $# != 0; then
|
---|
3221 | # We chose a different compiler from the bogus one.
|
---|
3222 | # However, it has the same basename, so the bogon will be chosen
|
---|
3223 | # first if we set CC to just the basename; use the full file name.
|
---|
3224 | shift
|
---|
3225 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
---|
3226 | fi
|
---|
3227 | fi
|
---|
3228 | fi
|
---|
3229 | fi
|
---|
3230 | CC=$ac_cv_prog_CC
|
---|
3231 | if test -n "$CC"; then
|
---|
3232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
3233 | $as_echo "$CC" >&6; }
|
---|
3234 | else
|
---|
3235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3236 | $as_echo "no" >&6; }
|
---|
3237 | fi
|
---|
3238 |
|
---|
3239 |
|
---|
3240 | fi
|
---|
3241 | if test -z "$CC"; then
|
---|
3242 | if test -n "$ac_tool_prefix"; then
|
---|
3243 | for ac_prog in cl.exe
|
---|
3244 | do
|
---|
3245 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
3246 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
3247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3248 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3249 | if ${ac_cv_prog_CC+:} false; then :
|
---|
3250 | $as_echo_n "(cached) " >&6
|
---|
3251 | else
|
---|
3252 | if test -n "$CC"; then
|
---|
3253 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
3254 | else
|
---|
3255 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3256 | for as_dir in $PATH
|
---|
3257 | do
|
---|
3258 | IFS=$as_save_IFS
|
---|
3259 | test -z "$as_dir" && as_dir=.
|
---|
3260 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3261 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3262 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
---|
3263 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3264 | break 2
|
---|
3265 | fi
|
---|
3266 | done
|
---|
3267 | done
|
---|
3268 | IFS=$as_save_IFS
|
---|
3269 |
|
---|
3270 | fi
|
---|
3271 | fi
|
---|
3272 | CC=$ac_cv_prog_CC
|
---|
3273 | if test -n "$CC"; then
|
---|
3274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
3275 | $as_echo "$CC" >&6; }
|
---|
3276 | else
|
---|
3277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3278 | $as_echo "no" >&6; }
|
---|
3279 | fi
|
---|
3280 |
|
---|
3281 |
|
---|
3282 | test -n "$CC" && break
|
---|
3283 | done
|
---|
3284 | fi
|
---|
3285 | if test -z "$CC"; then
|
---|
3286 | ac_ct_CC=$CC
|
---|
3287 | for ac_prog in cl.exe
|
---|
3288 | do
|
---|
3289 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
3290 | set dummy $ac_prog; ac_word=$2
|
---|
3291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3292 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3293 | if ${ac_cv_prog_ac_ct_CC+:} false; then :
|
---|
3294 | $as_echo_n "(cached) " >&6
|
---|
3295 | else
|
---|
3296 | if test -n "$ac_ct_CC"; then
|
---|
3297 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
3298 | else
|
---|
3299 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3300 | for as_dir in $PATH
|
---|
3301 | do
|
---|
3302 | IFS=$as_save_IFS
|
---|
3303 | test -z "$as_dir" && as_dir=.
|
---|
3304 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3305 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3306 | ac_cv_prog_ac_ct_CC="$ac_prog"
|
---|
3307 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3308 | break 2
|
---|
3309 | fi
|
---|
3310 | done
|
---|
3311 | done
|
---|
3312 | IFS=$as_save_IFS
|
---|
3313 |
|
---|
3314 | fi
|
---|
3315 | fi
|
---|
3316 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
3317 | if test -n "$ac_ct_CC"; then
|
---|
3318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
---|
3319 | $as_echo "$ac_ct_CC" >&6; }
|
---|
3320 | else
|
---|
3321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3322 | $as_echo "no" >&6; }
|
---|
3323 | fi
|
---|
3324 |
|
---|
3325 |
|
---|
3326 | test -n "$ac_ct_CC" && break
|
---|
3327 | done
|
---|
3328 |
|
---|
3329 | if test "x$ac_ct_CC" = x; then
|
---|
3330 | CC=""
|
---|
3331 | else
|
---|
3332 | case $cross_compiling:$ac_tool_warned in
|
---|
3333 | yes:)
|
---|
3334 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
3335 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
3336 | ac_tool_warned=yes ;;
|
---|
3337 | esac
|
---|
3338 | CC=$ac_ct_CC
|
---|
3339 | fi
|
---|
3340 | fi
|
---|
3341 |
|
---|
3342 | fi
|
---|
3343 |
|
---|
3344 |
|
---|
3345 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
3346 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
3347 | as_fn_error $? "no acceptable C compiler found in \$PATH
|
---|
3348 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
3349 |
|
---|
3350 | # Provide some information about the compiler.
|
---|
3351 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
|
---|
3352 | set X $ac_compile
|
---|
3353 | ac_compiler=$2
|
---|
3354 | for ac_option in --version -v -V -qversion; do
|
---|
3355 | { { ac_try="$ac_compiler $ac_option >&5"
|
---|
3356 | case "(($ac_try" in
|
---|
3357 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3358 | *) ac_try_echo=$ac_try;;
|
---|
3359 | esac
|
---|
3360 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
3361 | $as_echo "$ac_try_echo"; } >&5
|
---|
3362 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err
|
---|
3363 | ac_status=$?
|
---|
3364 | if test -s conftest.err; then
|
---|
3365 | sed '10a\
|
---|
3366 | ... rest of stderr output deleted ...
|
---|
3367 | 10q' conftest.err >conftest.er1
|
---|
3368 | cat conftest.er1 >&5
|
---|
3369 | fi
|
---|
3370 | rm -f conftest.er1 conftest.err
|
---|
3371 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
3372 | test $ac_status = 0; }
|
---|
3373 | done
|
---|
3374 |
|
---|
3375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
|
---|
3376 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
|
---|
3377 | if ${ac_cv_c_compiler_gnu+:} false; then :
|
---|
3378 | $as_echo_n "(cached) " >&6
|
---|
3379 | else
|
---|
3380 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3381 | /* end confdefs.h. */
|
---|
3382 |
|
---|
3383 | int
|
---|
3384 | main ()
|
---|
3385 | {
|
---|
3386 | #ifndef __GNUC__
|
---|
3387 | choke me
|
---|
3388 | #endif
|
---|
3389 |
|
---|
3390 | ;
|
---|
3391 | return 0;
|
---|
3392 | }
|
---|
3393 | _ACEOF
|
---|
3394 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3395 | ac_compiler_gnu=yes
|
---|
3396 | else
|
---|
3397 | ac_compiler_gnu=no
|
---|
3398 | fi
|
---|
3399 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3400 | ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
---|
3401 |
|
---|
3402 | fi
|
---|
3403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
|
---|
3404 | $as_echo "$ac_cv_c_compiler_gnu" >&6; }
|
---|
3405 | if test $ac_compiler_gnu = yes; then
|
---|
3406 | GCC=yes
|
---|
3407 | else
|
---|
3408 | GCC=
|
---|
3409 | fi
|
---|
3410 | ac_test_CFLAGS=${CFLAGS+set}
|
---|
3411 | ac_save_CFLAGS=$CFLAGS
|
---|
3412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
|
---|
3413 | $as_echo_n "checking whether $CC accepts -g... " >&6; }
|
---|
3414 | if ${ac_cv_prog_cc_g+:} false; then :
|
---|
3415 | $as_echo_n "(cached) " >&6
|
---|
3416 | else
|
---|
3417 | ac_save_c_werror_flag=$ac_c_werror_flag
|
---|
3418 | ac_c_werror_flag=yes
|
---|
3419 | ac_cv_prog_cc_g=no
|
---|
3420 | CFLAGS="-g"
|
---|
3421 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3422 | /* end confdefs.h. */
|
---|
3423 |
|
---|
3424 | int
|
---|
3425 | main ()
|
---|
3426 | {
|
---|
3427 |
|
---|
3428 | ;
|
---|
3429 | return 0;
|
---|
3430 | }
|
---|
3431 | _ACEOF
|
---|
3432 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3433 | ac_cv_prog_cc_g=yes
|
---|
3434 | else
|
---|
3435 | CFLAGS=""
|
---|
3436 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3437 | /* end confdefs.h. */
|
---|
3438 |
|
---|
3439 | int
|
---|
3440 | main ()
|
---|
3441 | {
|
---|
3442 |
|
---|
3443 | ;
|
---|
3444 | return 0;
|
---|
3445 | }
|
---|
3446 | _ACEOF
|
---|
3447 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3448 |
|
---|
3449 | else
|
---|
3450 | ac_c_werror_flag=$ac_save_c_werror_flag
|
---|
3451 | CFLAGS="-g"
|
---|
3452 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3453 | /* end confdefs.h. */
|
---|
3454 |
|
---|
3455 | int
|
---|
3456 | main ()
|
---|
3457 | {
|
---|
3458 |
|
---|
3459 | ;
|
---|
3460 | return 0;
|
---|
3461 | }
|
---|
3462 | _ACEOF
|
---|
3463 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3464 | ac_cv_prog_cc_g=yes
|
---|
3465 | fi
|
---|
3466 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3467 | fi
|
---|
3468 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3469 | fi
|
---|
3470 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3471 | ac_c_werror_flag=$ac_save_c_werror_flag
|
---|
3472 | fi
|
---|
3473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
|
---|
3474 | $as_echo "$ac_cv_prog_cc_g" >&6; }
|
---|
3475 | if test "$ac_test_CFLAGS" = set; then
|
---|
3476 | CFLAGS=$ac_save_CFLAGS
|
---|
3477 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
3478 | if test "$GCC" = yes; then
|
---|
3479 | CFLAGS="-g -O2"
|
---|
3480 | else
|
---|
3481 | CFLAGS="-g"
|
---|
3482 | fi
|
---|
3483 | else
|
---|
3484 | if test "$GCC" = yes; then
|
---|
3485 | CFLAGS="-O2"
|
---|
3486 | else
|
---|
3487 | CFLAGS=
|
---|
3488 | fi
|
---|
3489 | fi
|
---|
3490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
|
---|
3491 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
|
---|
3492 | if ${ac_cv_prog_cc_c89+:} false; then :
|
---|
3493 | $as_echo_n "(cached) " >&6
|
---|
3494 | else
|
---|
3495 | ac_cv_prog_cc_c89=no
|
---|
3496 | ac_save_CC=$CC
|
---|
3497 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3498 | /* end confdefs.h. */
|
---|
3499 | #include <stdarg.h>
|
---|
3500 | #include <stdio.h>
|
---|
3501 | struct stat;
|
---|
3502 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
---|
3503 | struct buf { int x; };
|
---|
3504 | FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
---|
3505 | static char *e (p, i)
|
---|
3506 | char **p;
|
---|
3507 | int i;
|
---|
3508 | {
|
---|
3509 | return p[i];
|
---|
3510 | }
|
---|
3511 | static char *f (char * (*g) (char **, int), char **p, ...)
|
---|
3512 | {
|
---|
3513 | char *s;
|
---|
3514 | va_list v;
|
---|
3515 | va_start (v,p);
|
---|
3516 | s = g (p, va_arg (v,int));
|
---|
3517 | va_end (v);
|
---|
3518 | return s;
|
---|
3519 | }
|
---|
3520 |
|
---|
3521 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
---|
3522 | function prototypes and stuff, but not '\xHH' hex character constants.
|
---|
3523 | These don't provoke an error unfortunately, instead are silently treated
|
---|
3524 | as 'x'. The following induces an error, until -std is added to get
|
---|
3525 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
---|
3526 | array size at least. It's necessary to write '\x00'==0 to get something
|
---|
3527 | that's true only with -std. */
|
---|
3528 | int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
---|
3529 |
|
---|
3530 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|
---|
3531 | inside strings and character constants. */
|
---|
3532 | #define FOO(x) 'x'
|
---|
3533 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
---|
3534 |
|
---|
3535 | int test (int i, double x);
|
---|
3536 | struct s1 {int (*f) (int a);};
|
---|
3537 | struct s2 {int (*f) (double a);};
|
---|
3538 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
---|
3539 | int argc;
|
---|
3540 | char **argv;
|
---|
3541 | int
|
---|
3542 | main ()
|
---|
3543 | {
|
---|
3544 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
---|
3545 | ;
|
---|
3546 | return 0;
|
---|
3547 | }
|
---|
3548 | _ACEOF
|
---|
3549 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
|
---|
3550 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
---|
3551 | do
|
---|
3552 | CC="$ac_save_CC $ac_arg"
|
---|
3553 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3554 | ac_cv_prog_cc_c89=$ac_arg
|
---|
3555 | fi
|
---|
3556 | rm -f core conftest.err conftest.$ac_objext
|
---|
3557 | test "x$ac_cv_prog_cc_c89" != "xno" && break
|
---|
3558 | done
|
---|
3559 | rm -f conftest.$ac_ext
|
---|
3560 | CC=$ac_save_CC
|
---|
3561 |
|
---|
3562 | fi
|
---|
3563 | # AC_CACHE_VAL
|
---|
3564 | case "x$ac_cv_prog_cc_c89" in
|
---|
3565 | x)
|
---|
3566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
|
---|
3567 | $as_echo "none needed" >&6; } ;;
|
---|
3568 | xno)
|
---|
3569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
|
---|
3570 | $as_echo "unsupported" >&6; } ;;
|
---|
3571 | *)
|
---|
3572 | CC="$CC $ac_cv_prog_cc_c89"
|
---|
3573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
|
---|
3574 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
|
---|
3575 | esac
|
---|
3576 | if test "x$ac_cv_prog_cc_c89" != xno; then :
|
---|
3577 |
|
---|
3578 | fi
|
---|
3579 |
|
---|
3580 | ac_ext=c
|
---|
3581 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3582 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3583 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3584 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3585 |
|
---|
3586 | # Find a good install program. We prefer a C program (faster),
|
---|
3587 | # so one script is as good as another. But avoid the broken or
|
---|
3588 | # incompatible versions:
|
---|
3589 | # SysV /etc/install, /usr/sbin/install
|
---|
3590 | # SunOS /usr/etc/install
|
---|
3591 | # IRIX /sbin/install
|
---|
3592 | # AIX /bin/install
|
---|
3593 | # AmigaOS /C/install, which installs bootblocks on floppy discs
|
---|
3594 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
3595 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
3596 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
3597 | # OS/2's system install, which has a completely different semantic
|
---|
3598 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
3599 | # Reject install programs that cannot install multiple files.
|
---|
3600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
|
---|
3601 | $as_echo_n "checking for a BSD-compatible install... " >&6; }
|
---|
3602 | if test -z "$INSTALL"; then
|
---|
3603 | if ${ac_cv_path_install+:} false; then :
|
---|
3604 | $as_echo_n "(cached) " >&6
|
---|
3605 | else
|
---|
3606 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3607 | for as_dir in $PATH
|
---|
3608 | do
|
---|
3609 | IFS=$as_save_IFS
|
---|
3610 | test -z "$as_dir" && as_dir=.
|
---|
3611 | # Account for people who put trailing slashes in PATH elements.
|
---|
3612 | case $as_dir/ in #((
|
---|
3613 | ./ | .// | /[cC]/* | \
|
---|
3614 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
---|
3615 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
|
---|
3616 | /usr/ucb/* ) ;;
|
---|
3617 | *)
|
---|
3618 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
3619 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
3620 | # by default.
|
---|
3621 | for ac_prog in ginstall scoinst install; do
|
---|
3622 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3623 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
|
---|
3624 | if test $ac_prog = install &&
|
---|
3625 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
3626 | # AIX install. It has an incompatible calling convention.
|
---|
3627 | :
|
---|
3628 | elif test $ac_prog = install &&
|
---|
3629 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
3630 | # program-specific install script used by HP pwplus--don't use.
|
---|
3631 | :
|
---|
3632 | else
|
---|
3633 | rm -rf conftest.one conftest.two conftest.dir
|
---|
3634 | echo one > conftest.one
|
---|
3635 | echo two > conftest.two
|
---|
3636 | mkdir conftest.dir
|
---|
3637 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
|
---|
3638 | test -s conftest.one && test -s conftest.two &&
|
---|
3639 | test -s conftest.dir/conftest.one &&
|
---|
3640 | test -s conftest.dir/conftest.two
|
---|
3641 | then
|
---|
3642 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
---|
3643 | break 3
|
---|
3644 | fi
|
---|
3645 | fi
|
---|
3646 | fi
|
---|
3647 | done
|
---|
3648 | done
|
---|
3649 | ;;
|
---|
3650 | esac
|
---|
3651 |
|
---|
3652 | done
|
---|
3653 | IFS=$as_save_IFS
|
---|
3654 |
|
---|
3655 | rm -rf conftest.one conftest.two conftest.dir
|
---|
3656 |
|
---|
3657 | fi
|
---|
3658 | if test "${ac_cv_path_install+set}" = set; then
|
---|
3659 | INSTALL=$ac_cv_path_install
|
---|
3660 | else
|
---|
3661 | # As a last resort, use the slow shell script. Don't cache a
|
---|
3662 | # value for INSTALL within a source directory, because that will
|
---|
3663 | # break other packages using the cache if that directory is
|
---|
3664 | # removed, or if the value is a relative name.
|
---|
3665 | INSTALL=$ac_install_sh
|
---|
3666 | fi
|
---|
3667 | fi
|
---|
3668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
|
---|
3669 | $as_echo "$INSTALL" >&6; }
|
---|
3670 |
|
---|
3671 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
3672 | # It thinks the first close brace ends the variable substitution.
|
---|
3673 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
3674 |
|
---|
3675 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
---|
3676 |
|
---|
3677 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
3678 |
|
---|
3679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
|
---|
3680 | $as_echo_n "checking whether ln -s works... " >&6; }
|
---|
3681 | LN_S=$as_ln_s
|
---|
3682 | if test "$LN_S" = "ln -s"; then
|
---|
3683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
3684 | $as_echo "yes" >&6; }
|
---|
3685 | else
|
---|
3686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
|
---|
3687 | $as_echo "no, using $LN_S" >&6; }
|
---|
3688 | fi
|
---|
3689 |
|
---|
3690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
---|
3691 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
|
---|
3692 | set x ${MAKE-make}
|
---|
3693 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
|
---|
3694 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
|
---|
3695 | $as_echo_n "(cached) " >&6
|
---|
3696 | else
|
---|
3697 | cat >conftest.make <<\_ACEOF
|
---|
3698 | SHELL = /bin/sh
|
---|
3699 | all:
|
---|
3700 | @echo '@@@%%%=$(MAKE)=@@@%%%'
|
---|
3701 | _ACEOF
|
---|
3702 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
|
---|
3703 | case `${MAKE-make} -f conftest.make 2>/dev/null` in
|
---|
3704 | *@@@%%%=?*=@@@%%%*)
|
---|
3705 | eval ac_cv_prog_make_${ac_make}_set=yes;;
|
---|
3706 | *)
|
---|
3707 | eval ac_cv_prog_make_${ac_make}_set=no;;
|
---|
3708 | esac
|
---|
3709 | rm -f conftest.make
|
---|
3710 | fi
|
---|
3711 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
|
---|
3712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
3713 | $as_echo "yes" >&6; }
|
---|
3714 | SET_MAKE=
|
---|
3715 | else
|
---|
3716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3717 | $as_echo "no" >&6; }
|
---|
3718 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
3719 | fi
|
---|
3720 |
|
---|
3721 | if test -n "$ac_tool_prefix"; then
|
---|
3722 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
3723 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
3724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3725 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3726 | if ${ac_cv_prog_RANLIB+:} false; then :
|
---|
3727 | $as_echo_n "(cached) " >&6
|
---|
3728 | else
|
---|
3729 | if test -n "$RANLIB"; then
|
---|
3730 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
3731 | else
|
---|
3732 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3733 | for as_dir in $PATH
|
---|
3734 | do
|
---|
3735 | IFS=$as_save_IFS
|
---|
3736 | test -z "$as_dir" && as_dir=.
|
---|
3737 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3738 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3739 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
3740 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3741 | break 2
|
---|
3742 | fi
|
---|
3743 | done
|
---|
3744 | done
|
---|
3745 | IFS=$as_save_IFS
|
---|
3746 |
|
---|
3747 | fi
|
---|
3748 | fi
|
---|
3749 | RANLIB=$ac_cv_prog_RANLIB
|
---|
3750 | if test -n "$RANLIB"; then
|
---|
3751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
|
---|
3752 | $as_echo "$RANLIB" >&6; }
|
---|
3753 | else
|
---|
3754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3755 | $as_echo "no" >&6; }
|
---|
3756 | fi
|
---|
3757 |
|
---|
3758 |
|
---|
3759 | fi
|
---|
3760 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
3761 | ac_ct_RANLIB=$RANLIB
|
---|
3762 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
3763 | set dummy ranlib; ac_word=$2
|
---|
3764 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3765 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3766 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
|
---|
3767 | $as_echo_n "(cached) " >&6
|
---|
3768 | else
|
---|
3769 | if test -n "$ac_ct_RANLIB"; then
|
---|
3770 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
---|
3771 | else
|
---|
3772 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3773 | for as_dir in $PATH
|
---|
3774 | do
|
---|
3775 | IFS=$as_save_IFS
|
---|
3776 | test -z "$as_dir" && as_dir=.
|
---|
3777 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3778 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3779 | ac_cv_prog_ac_ct_RANLIB="ranlib"
|
---|
3780 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3781 | break 2
|
---|
3782 | fi
|
---|
3783 | done
|
---|
3784 | done
|
---|
3785 | IFS=$as_save_IFS
|
---|
3786 |
|
---|
3787 | fi
|
---|
3788 | fi
|
---|
3789 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
---|
3790 | if test -n "$ac_ct_RANLIB"; then
|
---|
3791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
|
---|
3792 | $as_echo "$ac_ct_RANLIB" >&6; }
|
---|
3793 | else
|
---|
3794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3795 | $as_echo "no" >&6; }
|
---|
3796 | fi
|
---|
3797 |
|
---|
3798 | if test "x$ac_ct_RANLIB" = x; then
|
---|
3799 | RANLIB=":"
|
---|
3800 | else
|
---|
3801 | case $cross_compiling:$ac_tool_warned in
|
---|
3802 | yes:)
|
---|
3803 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
3804 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
3805 | ac_tool_warned=yes ;;
|
---|
3806 | esac
|
---|
3807 | RANLIB=$ac_ct_RANLIB
|
---|
3808 | fi
|
---|
3809 | else
|
---|
3810 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
3811 | fi
|
---|
3812 |
|
---|
3813 | if test $ENABLE_JAVA = "1" ; then
|
---|
3814 |
|
---|
3815 |
|
---|
3816 | if test "x$JAVA" = x ; then
|
---|
3817 | if test x$JAVAPREFIX = x; then
|
---|
3818 | test x$JAVA = x && for ac_prog in java$EXEEXT
|
---|
3819 | do
|
---|
3820 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
3821 | set dummy $ac_prog; ac_word=$2
|
---|
3822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3823 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3824 | if ${ac_cv_prog_JAVA+:} false; then :
|
---|
3825 | $as_echo_n "(cached) " >&6
|
---|
3826 | else
|
---|
3827 | if test -n "$JAVA"; then
|
---|
3828 | ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
|
---|
3829 | else
|
---|
3830 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3831 | for as_dir in $PATH
|
---|
3832 | do
|
---|
3833 | IFS=$as_save_IFS
|
---|
3834 | test -z "$as_dir" && as_dir=.
|
---|
3835 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3836 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3837 | ac_cv_prog_JAVA="$ac_prog"
|
---|
3838 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3839 | break 2
|
---|
3840 | fi
|
---|
3841 | done
|
---|
3842 | done
|
---|
3843 | IFS=$as_save_IFS
|
---|
3844 |
|
---|
3845 | fi
|
---|
3846 | fi
|
---|
3847 | JAVA=$ac_cv_prog_JAVA
|
---|
3848 | if test -n "$JAVA"; then
|
---|
3849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
|
---|
3850 | $as_echo "$JAVA" >&6; }
|
---|
3851 | else
|
---|
3852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3853 | $as_echo "no" >&6; }
|
---|
3854 | fi
|
---|
3855 |
|
---|
3856 |
|
---|
3857 | test -n "$JAVA" && break
|
---|
3858 | done
|
---|
3859 |
|
---|
3860 | else
|
---|
3861 | test x$JAVA = x && for ac_prog in java$EXEEXT
|
---|
3862 | do
|
---|
3863 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
3864 | set dummy $ac_prog; ac_word=$2
|
---|
3865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3866 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3867 | if ${ac_cv_prog_JAVA+:} false; then :
|
---|
3868 | $as_echo_n "(cached) " >&6
|
---|
3869 | else
|
---|
3870 | if test -n "$JAVA"; then
|
---|
3871 | ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
|
---|
3872 | else
|
---|
3873 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3874 | for as_dir in $PATH
|
---|
3875 | do
|
---|
3876 | IFS=$as_save_IFS
|
---|
3877 | test -z "$as_dir" && as_dir=.
|
---|
3878 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3879 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3880 | ac_cv_prog_JAVA="$ac_prog"
|
---|
3881 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3882 | break 2
|
---|
3883 | fi
|
---|
3884 | done
|
---|
3885 | done
|
---|
3886 | IFS=$as_save_IFS
|
---|
3887 |
|
---|
3888 | fi
|
---|
3889 | fi
|
---|
3890 | JAVA=$ac_cv_prog_JAVA
|
---|
3891 | if test -n "$JAVA"; then
|
---|
3892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
|
---|
3893 | $as_echo "$JAVA" >&6; }
|
---|
3894 | else
|
---|
3895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3896 | $as_echo "no" >&6; }
|
---|
3897 | fi
|
---|
3898 |
|
---|
3899 |
|
---|
3900 | test -n "$JAVA" && break
|
---|
3901 | done
|
---|
3902 | test -n "$JAVA" || JAVA="$JAVAPREFIX"
|
---|
3903 |
|
---|
3904 | fi
|
---|
3905 | test x$JAVA = x && as_fn_error $? "no acceptable Java virtual machine found in \$PATH" "$LINENO" 5
|
---|
3906 | fi
|
---|
3907 |
|
---|
3908 |
|
---|
3909 | # Extract the first word of "uudecode$EXEEXT", so it can be a program name with args.
|
---|
3910 | set dummy uudecode$EXEEXT; ac_word=$2
|
---|
3911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3912 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3913 | if ${ac_cv_prog_uudecode+:} false; then :
|
---|
3914 | $as_echo_n "(cached) " >&6
|
---|
3915 | else
|
---|
3916 | if test -n "$uudecode"; then
|
---|
3917 | ac_cv_prog_uudecode="$uudecode" # Let the user override the test.
|
---|
3918 | else
|
---|
3919 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3920 | for as_dir in $PATH
|
---|
3921 | do
|
---|
3922 | IFS=$as_save_IFS
|
---|
3923 | test -z "$as_dir" && as_dir=.
|
---|
3924 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3925 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3926 | ac_cv_prog_uudecode="yes"
|
---|
3927 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3928 | break 2
|
---|
3929 | fi
|
---|
3930 | done
|
---|
3931 | done
|
---|
3932 | IFS=$as_save_IFS
|
---|
3933 |
|
---|
3934 | fi
|
---|
3935 | fi
|
---|
3936 | uudecode=$ac_cv_prog_uudecode
|
---|
3937 | if test -n "$uudecode"; then
|
---|
3938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $uudecode" >&5
|
---|
3939 | $as_echo "$uudecode" >&6; }
|
---|
3940 | else
|
---|
3941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3942 | $as_echo "no" >&6; }
|
---|
3943 | fi
|
---|
3944 |
|
---|
3945 |
|
---|
3946 | if test x$uudecode = xyes; then
|
---|
3947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if uudecode can decode base 64 file" >&5
|
---|
3948 | $as_echo_n "checking if uudecode can decode base 64 file... " >&6; }
|
---|
3949 | if ${ac_cv_prog_uudecode_base64+:} false; then :
|
---|
3950 | $as_echo_n "(cached) " >&6
|
---|
3951 | else
|
---|
3952 |
|
---|
3953 | cat << \EOF > Test.uue
|
---|
3954 | begin-base64 644 Test.class
|
---|
3955 | yv66vgADAC0AFQcAAgEABFRlc3QHAAQBABBqYXZhL2xhbmcvT2JqZWN0AQAE
|
---|
3956 | bWFpbgEAFihbTGphdmEvbGFuZy9TdHJpbmc7KVYBAARDb2RlAQAPTGluZU51
|
---|
3957 | bWJlclRhYmxlDAAKAAsBAARleGl0AQAEKEkpVgoADQAJBwAOAQAQamF2YS9s
|
---|
3958 | YW5nL1N5c3RlbQEABjxpbml0PgEAAygpVgwADwAQCgADABEBAApTb3VyY2VG
|
---|
3959 | aWxlAQAJVGVzdC5qYXZhACEAAQADAAAAAAACAAkABQAGAAEABwAAACEAAQAB
|
---|
3960 | AAAABQO4AAyxAAAAAQAIAAAACgACAAAACgAEAAsAAQAPABAAAQAHAAAAIQAB
|
---|
3961 | AAEAAAAFKrcAErEAAAABAAgAAAAKAAIAAAAEAAQABAABABMAAAACABQ=
|
---|
3962 | ====
|
---|
3963 | EOF
|
---|
3964 | if uudecode$EXEEXT Test.uue; then
|
---|
3965 | ac_cv_prog_uudecode_base64=yes
|
---|
3966 | else
|
---|
3967 | echo "configure: 3967: uudecode had trouble decoding base 64 file 'Test.uue'" >&5
|
---|
3968 | echo "configure: failed file was:" >&5
|
---|
3969 | cat Test.uue >&5
|
---|
3970 | ac_cv_prog_uudecode_base64=no
|
---|
3971 | fi
|
---|
3972 | rm -f Test.uue
|
---|
3973 | fi
|
---|
3974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_uudecode_base64" >&5
|
---|
3975 | $as_echo "$ac_cv_prog_uudecode_base64" >&6; }
|
---|
3976 | fi
|
---|
3977 | if test x$ac_cv_prog_uudecode_base64 != xyes; then
|
---|
3978 | rm -f Test.class
|
---|
3979 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: I have to compile Test.class from scratch" >&5
|
---|
3980 | $as_echo "$as_me: WARNING: I have to compile Test.class from scratch" >&2;}
|
---|
3981 | if test x$ac_cv_prog_javac_works = xno; then
|
---|
3982 | as_fn_error $? "Cannot compile java source. $JAVAC does not work properly" "$LINENO" 5
|
---|
3983 | fi
|
---|
3984 | if test x$ac_cv_prog_javac_works = x; then
|
---|
3985 |
|
---|
3986 | if test "x$JAVAC" = x ; then
|
---|
3987 | if test "x$JAVAPREFIX" = x; then
|
---|
3988 | test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
|
---|
3989 | do
|
---|
3990 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
3991 | set dummy $ac_prog; ac_word=$2
|
---|
3992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3993 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3994 | if ${ac_cv_prog_JAVAC+:} false; then :
|
---|
3995 | $as_echo_n "(cached) " >&6
|
---|
3996 | else
|
---|
3997 | if test -n "$JAVAC"; then
|
---|
3998 | ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
|
---|
3999 | else
|
---|
4000 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4001 | for as_dir in $PATH
|
---|
4002 | do
|
---|
4003 | IFS=$as_save_IFS
|
---|
4004 | test -z "$as_dir" && as_dir=.
|
---|
4005 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4006 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
4007 | ac_cv_prog_JAVAC="$ac_prog"
|
---|
4008 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
4009 | break 2
|
---|
4010 | fi
|
---|
4011 | done
|
---|
4012 | done
|
---|
4013 | IFS=$as_save_IFS
|
---|
4014 |
|
---|
4015 | fi
|
---|
4016 | fi
|
---|
4017 | JAVAC=$ac_cv_prog_JAVAC
|
---|
4018 | if test -n "$JAVAC"; then
|
---|
4019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
|
---|
4020 | $as_echo "$JAVAC" >&6; }
|
---|
4021 | else
|
---|
4022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4023 | $as_echo "no" >&6; }
|
---|
4024 | fi
|
---|
4025 |
|
---|
4026 |
|
---|
4027 | test -n "$JAVAC" && break
|
---|
4028 | done
|
---|
4029 |
|
---|
4030 | else
|
---|
4031 | test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
|
---|
4032 | do
|
---|
4033 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
4034 | set dummy $ac_prog; ac_word=$2
|
---|
4035 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
4036 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
4037 | if ${ac_cv_prog_JAVAC+:} false; then :
|
---|
4038 | $as_echo_n "(cached) " >&6
|
---|
4039 | else
|
---|
4040 | if test -n "$JAVAC"; then
|
---|
4041 | ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
|
---|
4042 | else
|
---|
4043 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4044 | for as_dir in $PATH
|
---|
4045 | do
|
---|
4046 | IFS=$as_save_IFS
|
---|
4047 | test -z "$as_dir" && as_dir=.
|
---|
4048 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4049 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
4050 | ac_cv_prog_JAVAC="$ac_prog"
|
---|
4051 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
4052 | break 2
|
---|
4053 | fi
|
---|
4054 | done
|
---|
4055 | done
|
---|
4056 | IFS=$as_save_IFS
|
---|
4057 |
|
---|
4058 | fi
|
---|
4059 | fi
|
---|
4060 | JAVAC=$ac_cv_prog_JAVAC
|
---|
4061 | if test -n "$JAVAC"; then
|
---|
4062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
|
---|
4063 | $as_echo "$JAVAC" >&6; }
|
---|
4064 | else
|
---|
4065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4066 | $as_echo "no" >&6; }
|
---|
4067 | fi
|
---|
4068 |
|
---|
4069 |
|
---|
4070 | test -n "$JAVAC" && break
|
---|
4071 | done
|
---|
4072 | test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
|
---|
4073 |
|
---|
4074 | fi
|
---|
4075 | test "x$JAVAC" = x && as_fn_error $? "no acceptable Java compiler found in \$PATH" "$LINENO" 5
|
---|
4076 | else
|
---|
4077 | echo "Checking for javac... $JAVAC"
|
---|
4078 | fi
|
---|
4079 |
|
---|
4080 |
|
---|
4081 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5
|
---|
4082 | $as_echo_n "checking if $JAVAC works... " >&6; }
|
---|
4083 | if ${ac_cv_prog_javac_works+:} false; then :
|
---|
4084 | $as_echo_n "(cached) " >&6
|
---|
4085 | else
|
---|
4086 |
|
---|
4087 | JAVA_TEST=Test.java
|
---|
4088 | CLASS_TEST=Test.class
|
---|
4089 | cat << \EOF > $JAVA_TEST
|
---|
4090 | /* #line 4090 "configure" */
|
---|
4091 | public class Test {
|
---|
4092 | }
|
---|
4093 | EOF
|
---|
4094 | if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
|
---|
4095 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
---|
4096 | (eval $ac_try) 2>&5
|
---|
4097 | ac_status=$?
|
---|
4098 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
4099 | test $ac_status = 0; }; } >/dev/null 2>&1; then
|
---|
4100 | ac_cv_prog_javac_works=yes
|
---|
4101 | else
|
---|
4102 | as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
|
---|
4103 | echo "configure: failed program was:" >&5
|
---|
4104 | cat $JAVA_TEST >&5
|
---|
4105 | fi
|
---|
4106 | rm -f $JAVA_TEST $CLASS_TEST
|
---|
4107 |
|
---|
4108 | fi
|
---|
4109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5
|
---|
4110 | $as_echo "$ac_cv_prog_javac_works" >&6; }
|
---|
4111 |
|
---|
4112 |
|
---|
4113 |
|
---|
4114 | fi
|
---|
4115 | fi
|
---|
4116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVA works" >&5
|
---|
4117 | $as_echo_n "checking if $JAVA works... " >&6; }
|
---|
4118 | if ${ac_cv_prog_java_works+:} false; then :
|
---|
4119 | $as_echo_n "(cached) " >&6
|
---|
4120 | else
|
---|
4121 |
|
---|
4122 | JAVA_TEST=Test.java
|
---|
4123 | CLASS_TEST=Test.class
|
---|
4124 | TEST=Test
|
---|
4125 | cat << \EOF > $JAVA_TEST
|
---|
4126 | /* [#]line 4126 "configure" */
|
---|
4127 | public class Test {
|
---|
4128 | public static void main (String args[]) {
|
---|
4129 | System.exit (0);
|
---|
4130 | } }
|
---|
4131 | EOF
|
---|
4132 | if test x$ac_cv_prog_uudecode_base64 != xyes; then
|
---|
4133 | if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
|
---|
4134 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
---|
4135 | (eval $ac_try) 2>&5
|
---|
4136 | ac_status=$?
|
---|
4137 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
4138 | test $ac_status = 0; }; } && test -s $CLASS_TEST; then
|
---|
4139 | :
|
---|
4140 | else
|
---|
4141 | echo "configure: failed program was:" >&5
|
---|
4142 | cat $JAVA_TEST >&5
|
---|
4143 | as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
|
---|
4144 | fi
|
---|
4145 | fi
|
---|
4146 | if { ac_try='$JAVA $JAVAFLAGS $TEST'
|
---|
4147 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
---|
4148 | (eval $ac_try) 2>&5
|
---|
4149 | ac_status=$?
|
---|
4150 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
4151 | test $ac_status = 0; }; } >/dev/null 2>&1; then
|
---|
4152 | ac_cv_prog_java_works=yes
|
---|
4153 | else
|
---|
4154 | echo "configure: failed program was:" >&5
|
---|
4155 | cat $JAVA_TEST >&5
|
---|
4156 | as_fn_error $? "The Java VM $JAVA failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
|
---|
4157 | fi
|
---|
4158 | rm -fr $JAVA_TEST $CLASS_TEST Test.uue
|
---|
4159 |
|
---|
4160 | fi
|
---|
4161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_java_works" >&5
|
---|
4162 | $as_echo "$ac_cv_prog_java_works" >&6; }
|
---|
4163 |
|
---|
4164 |
|
---|
4165 |
|
---|
4166 |
|
---|
4167 | if test "x$JAVAC" = x ; then
|
---|
4168 | if test "x$JAVAPREFIX" = x; then
|
---|
4169 | test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
|
---|
4170 | do
|
---|
4171 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
4172 | set dummy $ac_prog; ac_word=$2
|
---|
4173 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
4174 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
4175 | if ${ac_cv_prog_JAVAC+:} false; then :
|
---|
4176 | $as_echo_n "(cached) " >&6
|
---|
4177 | else
|
---|
4178 | if test -n "$JAVAC"; then
|
---|
4179 | ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
|
---|
4180 | else
|
---|
4181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4182 | for as_dir in $PATH
|
---|
4183 | do
|
---|
4184 | IFS=$as_save_IFS
|
---|
4185 | test -z "$as_dir" && as_dir=.
|
---|
4186 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4187 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
4188 | ac_cv_prog_JAVAC="$ac_prog"
|
---|
4189 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
4190 | break 2
|
---|
4191 | fi
|
---|
4192 | done
|
---|
4193 | done
|
---|
4194 | IFS=$as_save_IFS
|
---|
4195 |
|
---|
4196 | fi
|
---|
4197 | fi
|
---|
4198 | JAVAC=$ac_cv_prog_JAVAC
|
---|
4199 | if test -n "$JAVAC"; then
|
---|
4200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
|
---|
4201 | $as_echo "$JAVAC" >&6; }
|
---|
4202 | else
|
---|
4203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4204 | $as_echo "no" >&6; }
|
---|
4205 | fi
|
---|
4206 |
|
---|
4207 |
|
---|
4208 | test -n "$JAVAC" && break
|
---|
4209 | done
|
---|
4210 |
|
---|
4211 | else
|
---|
4212 | test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
|
---|
4213 | do
|
---|
4214 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
4215 | set dummy $ac_prog; ac_word=$2
|
---|
4216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
4217 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
4218 | if ${ac_cv_prog_JAVAC+:} false; then :
|
---|
4219 | $as_echo_n "(cached) " >&6
|
---|
4220 | else
|
---|
4221 | if test -n "$JAVAC"; then
|
---|
4222 | ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
|
---|
4223 | else
|
---|
4224 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4225 | for as_dir in $PATH
|
---|
4226 | do
|
---|
4227 | IFS=$as_save_IFS
|
---|
4228 | test -z "$as_dir" && as_dir=.
|
---|
4229 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4230 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
4231 | ac_cv_prog_JAVAC="$ac_prog"
|
---|
4232 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
4233 | break 2
|
---|
4234 | fi
|
---|
4235 | done
|
---|
4236 | done
|
---|
4237 | IFS=$as_save_IFS
|
---|
4238 |
|
---|
4239 | fi
|
---|
4240 | fi
|
---|
4241 | JAVAC=$ac_cv_prog_JAVAC
|
---|
4242 | if test -n "$JAVAC"; then
|
---|
4243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
|
---|
4244 | $as_echo "$JAVAC" >&6; }
|
---|
4245 | else
|
---|
4246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4247 | $as_echo "no" >&6; }
|
---|
4248 | fi
|
---|
4249 |
|
---|
4250 |
|
---|
4251 | test -n "$JAVAC" && break
|
---|
4252 | done
|
---|
4253 | test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
|
---|
4254 |
|
---|
4255 | fi
|
---|
4256 | test "x$JAVAC" = x && as_fn_error $? "no acceptable Java compiler found in \$PATH" "$LINENO" 5
|
---|
4257 | else
|
---|
4258 | echo "Checking for javac... $JAVAC"
|
---|
4259 | fi
|
---|
4260 |
|
---|
4261 |
|
---|
4262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5
|
---|
4263 | $as_echo_n "checking if $JAVAC works... " >&6; }
|
---|
4264 | if ${ac_cv_prog_javac_works+:} false; then :
|
---|
4265 | $as_echo_n "(cached) " >&6
|
---|
4266 | else
|
---|
4267 |
|
---|
4268 | JAVA_TEST=Test.java
|
---|
4269 | CLASS_TEST=Test.class
|
---|
4270 | cat << \EOF > $JAVA_TEST
|
---|
4271 | /* #line 4271 "configure" */
|
---|
4272 | public class Test {
|
---|
4273 | }
|
---|
4274 | EOF
|
---|
4275 | if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
|
---|
4276 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
---|
4277 | (eval $ac_try) 2>&5
|
---|
4278 | ac_status=$?
|
---|
4279 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
4280 | test $ac_status = 0; }; } >/dev/null 2>&1; then
|
---|
4281 | ac_cv_prog_javac_works=yes
|
---|
4282 | else
|
---|
4283 | as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
|
---|
4284 | echo "configure: failed program was:" >&5
|
---|
4285 | cat $JAVA_TEST >&5
|
---|
4286 | fi
|
---|
4287 | rm -f $JAVA_TEST $CLASS_TEST
|
---|
4288 |
|
---|
4289 | fi
|
---|
4290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5
|
---|
4291 | $as_echo "$ac_cv_prog_javac_works" >&6; }
|
---|
4292 |
|
---|
4293 |
|
---|
4294 |
|
---|
4295 | fi
|
---|
4296 |
|
---|
4297 |
|
---|
4298 | ac_ext=c
|
---|
4299 | ac_cpp='$CPP $CPPFLAGS'
|
---|
4300 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
4301 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
4302 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
4303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
|
---|
4304 | $as_echo_n "checking how to run the C preprocessor... " >&6; }
|
---|
4305 | # On Suns, sometimes $CPP names a directory.
|
---|
4306 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
4307 | CPP=
|
---|
4308 | fi
|
---|
4309 | if test -z "$CPP"; then
|
---|
4310 | if ${ac_cv_prog_CPP+:} false; then :
|
---|
4311 | $as_echo_n "(cached) " >&6
|
---|
4312 | else
|
---|
4313 | # Double quotes because CPP needs to be expanded
|
---|
4314 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
---|
4315 | do
|
---|
4316 | ac_preproc_ok=false
|
---|
4317 | for ac_c_preproc_warn_flag in '' yes
|
---|
4318 | do
|
---|
4319 | # Use a header file that comes with gcc, so configuring glibc
|
---|
4320 | # with a fresh cross-compiler works.
|
---|
4321 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
4322 | # <limits.h> exists even on freestanding compilers.
|
---|
4323 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
4324 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
4325 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4326 | /* end confdefs.h. */
|
---|
4327 | #ifdef __STDC__
|
---|
4328 | # include <limits.h>
|
---|
4329 | #else
|
---|
4330 | # include <assert.h>
|
---|
4331 | #endif
|
---|
4332 | Syntax error
|
---|
4333 | _ACEOF
|
---|
4334 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
4335 |
|
---|
4336 | else
|
---|
4337 | # Broken: fails on valid input.
|
---|
4338 | continue
|
---|
4339 | fi
|
---|
4340 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
4341 |
|
---|
4342 | # OK, works on sane cases. Now check whether nonexistent headers
|
---|
4343 | # can be detected and how.
|
---|
4344 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4345 | /* end confdefs.h. */
|
---|
4346 | #include <ac_nonexistent.h>
|
---|
4347 | _ACEOF
|
---|
4348 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
4349 | # Broken: success on invalid input.
|
---|
4350 | continue
|
---|
4351 | else
|
---|
4352 | # Passes both tests.
|
---|
4353 | ac_preproc_ok=:
|
---|
4354 | break
|
---|
4355 | fi
|
---|
4356 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
4357 |
|
---|
4358 | done
|
---|
4359 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
4360 | rm -f conftest.i conftest.err conftest.$ac_ext
|
---|
4361 | if $ac_preproc_ok; then :
|
---|
4362 | break
|
---|
4363 | fi
|
---|
4364 |
|
---|
4365 | done
|
---|
4366 | ac_cv_prog_CPP=$CPP
|
---|
4367 |
|
---|
4368 | fi
|
---|
4369 | CPP=$ac_cv_prog_CPP
|
---|
4370 | else
|
---|
4371 | ac_cv_prog_CPP=$CPP
|
---|
4372 | fi
|
---|
4373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
|
---|
4374 | $as_echo "$CPP" >&6; }
|
---|
4375 | ac_preproc_ok=false
|
---|
4376 | for ac_c_preproc_warn_flag in '' yes
|
---|
4377 | do
|
---|
4378 | # Use a header file that comes with gcc, so configuring glibc
|
---|
4379 | # with a fresh cross-compiler works.
|
---|
4380 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
4381 | # <limits.h> exists even on freestanding compilers.
|
---|
4382 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
4383 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
4384 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4385 | /* end confdefs.h. */
|
---|
4386 | #ifdef __STDC__
|
---|
4387 | # include <limits.h>
|
---|
4388 | #else
|
---|
4389 | # include <assert.h>
|
---|
4390 | #endif
|
---|
4391 | Syntax error
|
---|
4392 | _ACEOF
|
---|
4393 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
4394 |
|
---|
4395 | else
|
---|
4396 | # Broken: fails on valid input.
|
---|
4397 | continue
|
---|
4398 | fi
|
---|
4399 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
4400 |
|
---|
4401 | # OK, works on sane cases. Now check whether nonexistent headers
|
---|
4402 | # can be detected and how.
|
---|
4403 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4404 | /* end confdefs.h. */
|
---|
4405 | #include <ac_nonexistent.h>
|
---|
4406 | _ACEOF
|
---|
4407 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
4408 | # Broken: success on invalid input.
|
---|
4409 | continue
|
---|
4410 | else
|
---|
4411 | # Passes both tests.
|
---|
4412 | ac_preproc_ok=:
|
---|
4413 | break
|
---|
4414 | fi
|
---|
4415 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
4416 |
|
---|
4417 | done
|
---|
4418 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
4419 | rm -f conftest.i conftest.err conftest.$ac_ext
|
---|
4420 | if $ac_preproc_ok; then :
|
---|
4421 |
|
---|
4422 | else
|
---|
4423 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
4424 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
4425 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
|
---|
4426 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
4427 | fi
|
---|
4428 |
|
---|
4429 | ac_ext=c
|
---|
4430 | ac_cpp='$CPP $CPPFLAGS'
|
---|
4431 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
4432 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
4433 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
4434 |
|
---|
4435 |
|
---|
4436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
|
---|
4437 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
|
---|
4438 | if ${ac_cv_path_GREP+:} false; then :
|
---|
4439 | $as_echo_n "(cached) " >&6
|
---|
4440 | else
|
---|
4441 | if test -z "$GREP"; then
|
---|
4442 | ac_path_GREP_found=false
|
---|
4443 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
4444 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4445 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
4446 | do
|
---|
4447 | IFS=$as_save_IFS
|
---|
4448 | test -z "$as_dir" && as_dir=.
|
---|
4449 | for ac_prog in grep ggrep; do
|
---|
4450 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4451 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
|
---|
4452 | as_fn_executable_p "$ac_path_GREP" || continue
|
---|
4453 | # Check for GNU ac_path_GREP and select it if it is found.
|
---|
4454 | # Check for GNU $ac_path_GREP
|
---|
4455 | case `"$ac_path_GREP" --version 2>&1` in
|
---|
4456 | *GNU*)
|
---|
4457 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
|
---|
4458 | *)
|
---|
4459 | ac_count=0
|
---|
4460 | $as_echo_n 0123456789 >"conftest.in"
|
---|
4461 | while :
|
---|
4462 | do
|
---|
4463 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
4464 | mv "conftest.tmp" "conftest.in"
|
---|
4465 | cp "conftest.in" "conftest.nl"
|
---|
4466 | $as_echo 'GREP' >> "conftest.nl"
|
---|
4467 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
4468 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
4469 | as_fn_arith $ac_count + 1 && ac_count=$as_val
|
---|
4470 | if test $ac_count -gt ${ac_path_GREP_max-0}; then
|
---|
4471 | # Best one so far, save it but keep looking for a better one
|
---|
4472 | ac_cv_path_GREP="$ac_path_GREP"
|
---|
4473 | ac_path_GREP_max=$ac_count
|
---|
4474 | fi
|
---|
4475 | # 10*(2^10) chars as input seems more than enough
|
---|
4476 | test $ac_count -gt 10 && break
|
---|
4477 | done
|
---|
4478 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
4479 | esac
|
---|
4480 |
|
---|
4481 | $ac_path_GREP_found && break 3
|
---|
4482 | done
|
---|
4483 | done
|
---|
4484 | done
|
---|
4485 | IFS=$as_save_IFS
|
---|
4486 | if test -z "$ac_cv_path_GREP"; then
|
---|
4487 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
---|
4488 | fi
|
---|
4489 | else
|
---|
4490 | ac_cv_path_GREP=$GREP
|
---|
4491 | fi
|
---|
4492 |
|
---|
4493 | fi
|
---|
4494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
|
---|
4495 | $as_echo "$ac_cv_path_GREP" >&6; }
|
---|
4496 | GREP="$ac_cv_path_GREP"
|
---|
4497 |
|
---|
4498 |
|
---|
4499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
|
---|
4500 | $as_echo_n "checking for egrep... " >&6; }
|
---|
4501 | if ${ac_cv_path_EGREP+:} false; then :
|
---|
4502 | $as_echo_n "(cached) " >&6
|
---|
4503 | else
|
---|
4504 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
|
---|
4505 | then ac_cv_path_EGREP="$GREP -E"
|
---|
4506 | else
|
---|
4507 | if test -z "$EGREP"; then
|
---|
4508 | ac_path_EGREP_found=false
|
---|
4509 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
4510 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4511 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
4512 | do
|
---|
4513 | IFS=$as_save_IFS
|
---|
4514 | test -z "$as_dir" && as_dir=.
|
---|
4515 | for ac_prog in egrep; do
|
---|
4516 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4517 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
|
---|
4518 | as_fn_executable_p "$ac_path_EGREP" || continue
|
---|
4519 | # Check for GNU ac_path_EGREP and select it if it is found.
|
---|
4520 | # Check for GNU $ac_path_EGREP
|
---|
4521 | case `"$ac_path_EGREP" --version 2>&1` in
|
---|
4522 | *GNU*)
|
---|
4523 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
|
---|
4524 | *)
|
---|
4525 | ac_count=0
|
---|
4526 | $as_echo_n 0123456789 >"conftest.in"
|
---|
4527 | while :
|
---|
4528 | do
|
---|
4529 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
4530 | mv "conftest.tmp" "conftest.in"
|
---|
4531 | cp "conftest.in" "conftest.nl"
|
---|
4532 | $as_echo 'EGREP' >> "conftest.nl"
|
---|
4533 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
4534 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
4535 | as_fn_arith $ac_count + 1 && ac_count=$as_val
|
---|
4536 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then
|
---|
4537 | # Best one so far, save it but keep looking for a better one
|
---|
4538 | ac_cv_path_EGREP="$ac_path_EGREP"
|
---|
4539 | ac_path_EGREP_max=$ac_count
|
---|
4540 | fi
|
---|
4541 | # 10*(2^10) chars as input seems more than enough
|
---|
4542 | test $ac_count -gt 10 && break
|
---|
4543 | done
|
---|
4544 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
4545 | esac
|
---|
4546 |
|
---|
4547 | $ac_path_EGREP_found && break 3
|
---|
4548 | done
|
---|
4549 | done
|
---|
4550 | done
|
---|
4551 | IFS=$as_save_IFS
|
---|
4552 | if test -z "$ac_cv_path_EGREP"; then
|
---|
4553 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
---|
4554 | fi
|
---|
4555 | else
|
---|
4556 | ac_cv_path_EGREP=$EGREP
|
---|
4557 | fi
|
---|
4558 |
|
---|
4559 | fi
|
---|
4560 | fi
|
---|
4561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
|
---|
4562 | $as_echo "$ac_cv_path_EGREP" >&6; }
|
---|
4563 | EGREP="$ac_cv_path_EGREP"
|
---|
4564 |
|
---|
4565 |
|
---|
4566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
|
---|
4567 | $as_echo_n "checking for ANSI C header files... " >&6; }
|
---|
4568 | if ${ac_cv_header_stdc+:} false; then :
|
---|
4569 | $as_echo_n "(cached) " >&6
|
---|
4570 | else
|
---|
4571 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4572 | /* end confdefs.h. */
|
---|
4573 | #include <stdlib.h>
|
---|
4574 | #include <stdarg.h>
|
---|
4575 | #include <string.h>
|
---|
4576 | #include <float.h>
|
---|
4577 |
|
---|
4578 | int
|
---|
4579 | main ()
|
---|
4580 | {
|
---|
4581 |
|
---|
4582 | ;
|
---|
4583 | return 0;
|
---|
4584 | }
|
---|
4585 | _ACEOF
|
---|
4586 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
4587 | ac_cv_header_stdc=yes
|
---|
4588 | else
|
---|
4589 | ac_cv_header_stdc=no
|
---|
4590 | fi
|
---|
4591 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4592 |
|
---|
4593 | if test $ac_cv_header_stdc = yes; then
|
---|
4594 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
4595 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4596 | /* end confdefs.h. */
|
---|
4597 | #include <string.h>
|
---|
4598 |
|
---|
4599 | _ACEOF
|
---|
4600 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
4601 | $EGREP "memchr" >/dev/null 2>&1; then :
|
---|
4602 |
|
---|
4603 | else
|
---|
4604 | ac_cv_header_stdc=no
|
---|
4605 | fi
|
---|
4606 | rm -f conftest*
|
---|
4607 |
|
---|
4608 | fi
|
---|
4609 |
|
---|
4610 | if test $ac_cv_header_stdc = yes; then
|
---|
4611 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
4612 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4613 | /* end confdefs.h. */
|
---|
4614 | #include <stdlib.h>
|
---|
4615 |
|
---|
4616 | _ACEOF
|
---|
4617 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
4618 | $EGREP "free" >/dev/null 2>&1; then :
|
---|
4619 |
|
---|
4620 | else
|
---|
4621 | ac_cv_header_stdc=no
|
---|
4622 | fi
|
---|
4623 | rm -f conftest*
|
---|
4624 |
|
---|
4625 | fi
|
---|
4626 |
|
---|
4627 | if test $ac_cv_header_stdc = yes; then
|
---|
4628 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
4629 | if test "$cross_compiling" = yes; then :
|
---|
4630 | :
|
---|
4631 | else
|
---|
4632 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4633 | /* end confdefs.h. */
|
---|
4634 | #include <ctype.h>
|
---|
4635 | #include <stdlib.h>
|
---|
4636 | #if ((' ' & 0x0FF) == 0x020)
|
---|
4637 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
4638 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
4639 | #else
|
---|
4640 | # define ISLOWER(c) \
|
---|
4641 | (('a' <= (c) && (c) <= 'i') \
|
---|
4642 | || ('j' <= (c) && (c) <= 'r') \
|
---|
4643 | || ('s' <= (c) && (c) <= 'z'))
|
---|
4644 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
4645 | #endif
|
---|
4646 |
|
---|
4647 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
4648 | int
|
---|
4649 | main ()
|
---|
4650 | {
|
---|
4651 | int i;
|
---|
4652 | for (i = 0; i < 256; i++)
|
---|
4653 | if (XOR (islower (i), ISLOWER (i))
|
---|
4654 | || toupper (i) != TOUPPER (i))
|
---|
4655 | return 2;
|
---|
4656 | return 0;
|
---|
4657 | }
|
---|
4658 | _ACEOF
|
---|
4659 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
4660 |
|
---|
4661 | else
|
---|
4662 | ac_cv_header_stdc=no
|
---|
4663 | fi
|
---|
4664 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
4665 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
4666 | fi
|
---|
4667 |
|
---|
4668 | fi
|
---|
4669 | fi
|
---|
4670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
|
---|
4671 | $as_echo "$ac_cv_header_stdc" >&6; }
|
---|
4672 | if test $ac_cv_header_stdc = yes; then
|
---|
4673 |
|
---|
4674 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h
|
---|
4675 |
|
---|
4676 | fi
|
---|
4677 |
|
---|
4678 | # On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
---|
4679 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
---|
4680 | inttypes.h stdint.h unistd.h
|
---|
4681 | do :
|
---|
4682 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
4683 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
|
---|
4684 | "
|
---|
4685 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
|
---|
4686 | cat >>confdefs.h <<_ACEOF
|
---|
4687 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
4688 | _ACEOF
|
---|
4689 |
|
---|
4690 | fi
|
---|
4691 |
|
---|
4692 | done
|
---|
4693 |
|
---|
4694 |
|
---|
4695 |
|
---|
4696 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
|
---|
4697 | if test "x$ac_cv_header_minix_config_h" = xyes; then :
|
---|
4698 | MINIX=yes
|
---|
4699 | else
|
---|
4700 | MINIX=
|
---|
4701 | fi
|
---|
4702 |
|
---|
4703 |
|
---|
4704 | if test "$MINIX" = yes; then
|
---|
4705 |
|
---|
4706 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
|
---|
4707 |
|
---|
4708 |
|
---|
4709 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
|
---|
4710 |
|
---|
4711 |
|
---|
4712 | $as_echo "#define _MINIX 1" >>confdefs.h
|
---|
4713 |
|
---|
4714 | fi
|
---|
4715 |
|
---|
4716 |
|
---|
4717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
|
---|
4718 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
|
---|
4719 | if ${ac_cv_safe_to_define___extensions__+:} false; then :
|
---|
4720 | $as_echo_n "(cached) " >&6
|
---|
4721 | else
|
---|
4722 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4723 | /* end confdefs.h. */
|
---|
4724 |
|
---|
4725 | # define __EXTENSIONS__ 1
|
---|
4726 | $ac_includes_default
|
---|
4727 | int
|
---|
4728 | main ()
|
---|
4729 | {
|
---|
4730 |
|
---|
4731 | ;
|
---|
4732 | return 0;
|
---|
4733 | }
|
---|
4734 | _ACEOF
|
---|
4735 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
4736 | ac_cv_safe_to_define___extensions__=yes
|
---|
4737 | else
|
---|
4738 | ac_cv_safe_to_define___extensions__=no
|
---|
4739 | fi
|
---|
4740 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4741 | fi
|
---|
4742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
|
---|
4743 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
|
---|
4744 | test $ac_cv_safe_to_define___extensions__ = yes &&
|
---|
4745 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
|
---|
4746 |
|
---|
4747 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
|
---|
4748 |
|
---|
4749 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
|
---|
4750 |
|
---|
4751 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
|
---|
4752 |
|
---|
4753 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
|
---|
4754 |
|
---|
4755 |
|
---|
4756 |
|
---|
4757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
|
---|
4758 | $as_echo_n "checking for library containing strerror... " >&6; }
|
---|
4759 | if ${ac_cv_search_strerror+:} false; then :
|
---|
4760 | $as_echo_n "(cached) " >&6
|
---|
4761 | else
|
---|
4762 | ac_func_search_save_LIBS=$LIBS
|
---|
4763 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4764 | /* end confdefs.h. */
|
---|
4765 |
|
---|
4766 | /* Override any GCC internal prototype to avoid an error.
|
---|
4767 | Use char because int might match the return type of a GCC
|
---|
4768 | builtin and then its argument prototype would still apply. */
|
---|
4769 | #ifdef __cplusplus
|
---|
4770 | extern "C"
|
---|
4771 | #endif
|
---|
4772 | char strerror ();
|
---|
4773 | int
|
---|
4774 | main ()
|
---|
4775 | {
|
---|
4776 | return strerror ();
|
---|
4777 | ;
|
---|
4778 | return 0;
|
---|
4779 | }
|
---|
4780 | _ACEOF
|
---|
4781 | for ac_lib in '' cposix; do
|
---|
4782 | if test -z "$ac_lib"; then
|
---|
4783 | ac_res="none required"
|
---|
4784 | else
|
---|
4785 | ac_res=-l$ac_lib
|
---|
4786 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
4787 | fi
|
---|
4788 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
4789 | ac_cv_search_strerror=$ac_res
|
---|
4790 | fi
|
---|
4791 | rm -f core conftest.err conftest.$ac_objext \
|
---|
4792 | conftest$ac_exeext
|
---|
4793 | if ${ac_cv_search_strerror+:} false; then :
|
---|
4794 | break
|
---|
4795 | fi
|
---|
4796 | done
|
---|
4797 | if ${ac_cv_search_strerror+:} false; then :
|
---|
4798 |
|
---|
4799 | else
|
---|
4800 | ac_cv_search_strerror=no
|
---|
4801 | fi
|
---|
4802 | rm conftest.$ac_ext
|
---|
4803 | LIBS=$ac_func_search_save_LIBS
|
---|
4804 | fi
|
---|
4805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
|
---|
4806 | $as_echo "$ac_cv_search_strerror" >&6; }
|
---|
4807 | ac_res=$ac_cv_search_strerror
|
---|
4808 | if test "$ac_res" != no; then :
|
---|
4809 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
4810 |
|
---|
4811 | fi
|
---|
4812 |
|
---|
4813 |
|
---|
4814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
|
---|
4815 | $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
|
---|
4816 | if ${ac_cv_prog_cc_stdc+:} false; then :
|
---|
4817 | $as_echo_n "(cached) " >&6
|
---|
4818 | else
|
---|
4819 | ac_cv_prog_cc_stdc=no
|
---|
4820 | ac_save_CFLAGS="$CFLAGS"
|
---|
4821 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
4822 | # breaks some systems' header files.
|
---|
4823 | # AIX -qlanglvl=ansi
|
---|
4824 | # Ultrix and OSF/1 -std1
|
---|
4825 | # HP-UX -Aa -D_HPUX_SOURCE
|
---|
4826 | # SVR4 -Xc
|
---|
4827 | for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
|
---|
4828 | do
|
---|
4829 | CFLAGS="$ac_save_CFLAGS $ac_arg"
|
---|
4830 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4831 | /* end confdefs.h. */
|
---|
4832 | #if !defined(__STDC__) || __STDC__ != 1
|
---|
4833 | choke me
|
---|
4834 | #endif
|
---|
4835 |
|
---|
4836 | int
|
---|
4837 | main ()
|
---|
4838 | {
|
---|
4839 | int test (int i, double x);
|
---|
4840 | struct s1 {int (*f) (int a);};
|
---|
4841 | struct s2 {int (*f) (double a);};
|
---|
4842 | ;
|
---|
4843 | return 0;
|
---|
4844 | }
|
---|
4845 | _ACEOF
|
---|
4846 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
4847 | ac_cv_prog_cc_stdc="$ac_arg"; break
|
---|
4848 | fi
|
---|
4849 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4850 | done
|
---|
4851 | CFLAGS="$ac_save_CFLAGS"
|
---|
4852 |
|
---|
4853 | fi
|
---|
4854 |
|
---|
4855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
|
---|
4856 | $as_echo "$ac_cv_prog_cc_stdc" >&6; }
|
---|
4857 | case "x$ac_cv_prog_cc_stdc" in
|
---|
4858 | x|xno) ;;
|
---|
4859 | *) CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
4860 | esac
|
---|
4861 |
|
---|
4862 |
|
---|
4863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
|
---|
4864 | $as_echo_n "checking for function prototypes... " >&6; }
|
---|
4865 | if test "$ac_cv_prog_cc_stdc" != no; then
|
---|
4866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
4867 | $as_echo "yes" >&6; }
|
---|
4868 | $as_echo "#define PROTOTYPES 1" >>confdefs.h
|
---|
4869 |
|
---|
4870 | U= ANSI2KNR=
|
---|
4871 | else
|
---|
4872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4873 | $as_echo "no" >&6; }
|
---|
4874 | U=_ ANSI2KNR=ansi2knr
|
---|
4875 | fi
|
---|
4876 |
|
---|
4877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
|
---|
4878 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
|
---|
4879 | if ${ac_cv_c_const+:} false; then :
|
---|
4880 | $as_echo_n "(cached) " >&6
|
---|
4881 | else
|
---|
4882 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4883 | /* end confdefs.h. */
|
---|
4884 |
|
---|
4885 | int
|
---|
4886 | main ()
|
---|
4887 | {
|
---|
4888 |
|
---|
4889 | #ifndef __cplusplus
|
---|
4890 | /* Ultrix mips cc rejects this sort of thing. */
|
---|
4891 | typedef int charset[2];
|
---|
4892 | const charset cs = { 0, 0 };
|
---|
4893 | /* SunOS 4.1.1 cc rejects this. */
|
---|
4894 | char const *const *pcpcc;
|
---|
4895 | char **ppc;
|
---|
4896 | /* NEC SVR4.0.2 mips cc rejects this. */
|
---|
4897 | struct point {int x, y;};
|
---|
4898 | static struct point const zero = {0,0};
|
---|
4899 | /* AIX XL C 1.02.0.0 rejects this.
|
---|
4900 | It does not let you subtract one const X* pointer from another in
|
---|
4901 | an arm of an if-expression whose if-part is not a constant
|
---|
4902 | expression */
|
---|
4903 | const char *g = "string";
|
---|
4904 | pcpcc = &g + (g ? g-g : 0);
|
---|
4905 | /* HPUX 7.0 cc rejects these. */
|
---|
4906 | ++pcpcc;
|
---|
4907 | ppc = (char**) pcpcc;
|
---|
4908 | pcpcc = (char const *const *) ppc;
|
---|
4909 | { /* SCO 3.2v4 cc rejects this sort of thing. */
|
---|
4910 | char tx;
|
---|
4911 | char *t = &tx;
|
---|
4912 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
---|
4913 |
|
---|
4914 | *t++ = 0;
|
---|
4915 | if (s) return 0;
|
---|
4916 | }
|
---|
4917 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
---|
4918 | int x[] = {25, 17};
|
---|
4919 | const int *foo = &x[0];
|
---|
4920 | ++foo;
|
---|
4921 | }
|
---|
4922 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
---|
4923 | typedef const int *iptr;
|
---|
4924 | iptr p = 0;
|
---|
4925 | ++p;
|
---|
4926 | }
|
---|
4927 | { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
|
---|
4928 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
---|
4929 | struct s { int j; const int *ap[3]; } bx;
|
---|
4930 | struct s *b = &bx; b->j = 5;
|
---|
4931 | }
|
---|
4932 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
---|
4933 | const int foo = 10;
|
---|
4934 | if (!foo) return 0;
|
---|
4935 | }
|
---|
4936 | return !cs[0] && !zero.x;
|
---|
4937 | #endif
|
---|
4938 |
|
---|
4939 | ;
|
---|
4940 | return 0;
|
---|
4941 | }
|
---|
4942 | _ACEOF
|
---|
4943 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
4944 | ac_cv_c_const=yes
|
---|
4945 | else
|
---|
4946 | ac_cv_c_const=no
|
---|
4947 | fi
|
---|
4948 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4949 | fi
|
---|
4950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
|
---|
4951 | $as_echo "$ac_cv_c_const" >&6; }
|
---|
4952 | if test $ac_cv_c_const = no; then
|
---|
4953 |
|
---|
4954 | $as_echo "#define const /**/" >>confdefs.h
|
---|
4955 |
|
---|
4956 | fi
|
---|
4957 |
|
---|
4958 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
|
---|
4959 | if test "x$ac_cv_type_off_t" = xyes; then :
|
---|
4960 |
|
---|
4961 | else
|
---|
4962 |
|
---|
4963 | cat >>confdefs.h <<_ACEOF
|
---|
4964 | #define off_t long int
|
---|
4965 | _ACEOF
|
---|
4966 |
|
---|
4967 | fi
|
---|
4968 |
|
---|
4969 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
|
---|
4970 | if test "x$ac_cv_type_size_t" = xyes; then :
|
---|
4971 |
|
---|
4972 | else
|
---|
4973 |
|
---|
4974 | cat >>confdefs.h <<_ACEOF
|
---|
4975 | #define size_t unsigned int
|
---|
4976 | _ACEOF
|
---|
4977 |
|
---|
4978 | fi
|
---|
4979 |
|
---|
4980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
|
---|
4981 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
|
---|
4982 | if ${ac_cv_header_time+:} false; then :
|
---|
4983 | $as_echo_n "(cached) " >&6
|
---|
4984 | else
|
---|
4985 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4986 | /* end confdefs.h. */
|
---|
4987 | #include <sys/types.h>
|
---|
4988 | #include <sys/time.h>
|
---|
4989 | #include <time.h>
|
---|
4990 |
|
---|
4991 | int
|
---|
4992 | main ()
|
---|
4993 | {
|
---|
4994 | if ((struct tm *) 0)
|
---|
4995 | return 0;
|
---|
4996 | ;
|
---|
4997 | return 0;
|
---|
4998 | }
|
---|
4999 | _ACEOF
|
---|
5000 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
5001 | ac_cv_header_time=yes
|
---|
5002 | else
|
---|
5003 | ac_cv_header_time=no
|
---|
5004 | fi
|
---|
5005 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5006 | fi
|
---|
5007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
|
---|
5008 | $as_echo "$ac_cv_header_time" >&6; }
|
---|
5009 | if test $ac_cv_header_time = yes; then
|
---|
5010 |
|
---|
5011 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
|
---|
5012 |
|
---|
5013 | fi
|
---|
5014 |
|
---|
5015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
|
---|
5016 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
|
---|
5017 | if ${ac_cv_struct_tm+:} false; then :
|
---|
5018 | $as_echo_n "(cached) " >&6
|
---|
5019 | else
|
---|
5020 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5021 | /* end confdefs.h. */
|
---|
5022 | #include <sys/types.h>
|
---|
5023 | #include <time.h>
|
---|
5024 |
|
---|
5025 | int
|
---|
5026 | main ()
|
---|
5027 | {
|
---|
5028 | struct tm tm;
|
---|
5029 | int *p = &tm.tm_sec;
|
---|
5030 | return !p;
|
---|
5031 | ;
|
---|
5032 | return 0;
|
---|
5033 | }
|
---|
5034 | _ACEOF
|
---|
5035 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
5036 | ac_cv_struct_tm=time.h
|
---|
5037 | else
|
---|
5038 | ac_cv_struct_tm=sys/time.h
|
---|
5039 | fi
|
---|
5040 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5041 | fi
|
---|
5042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
|
---|
5043 | $as_echo "$ac_cv_struct_tm" >&6; }
|
---|
5044 | if test $ac_cv_struct_tm = sys/time.h; then
|
---|
5045 |
|
---|
5046 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
|
---|
5047 |
|
---|
5048 | fi
|
---|
5049 |
|
---|
5050 |
|
---|
5051 | if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
|
---|
5052 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5053 | /* end confdefs.h. */
|
---|
5054 | #include <stdio.h>
|
---|
5055 |
|
---|
5056 | int
|
---|
5057 | main ()
|
---|
5058 | {
|
---|
5059 | FILE *rubbish = popen("yes", "r");
|
---|
5060 | ;
|
---|
5061 | return 0;
|
---|
5062 | }
|
---|
5063 | _ACEOF
|
---|
5064 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
5065 |
|
---|
5066 | else
|
---|
5067 | CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa'
|
---|
5068 | fi
|
---|
5069 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5070 | fi
|
---|
5071 |
|
---|
5072 |
|
---|
5073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
|
---|
5074 | $as_echo_n "checking for main in -lm... " >&6; }
|
---|
5075 | if ${ac_cv_lib_m_main+:} false; then :
|
---|
5076 | $as_echo_n "(cached) " >&6
|
---|
5077 | else
|
---|
5078 | ac_check_lib_save_LIBS=$LIBS
|
---|
5079 | LIBS="-lm $LIBS"
|
---|
5080 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5081 | /* end confdefs.h. */
|
---|
5082 |
|
---|
5083 |
|
---|
5084 | int
|
---|
5085 | main ()
|
---|
5086 | {
|
---|
5087 | return main ();
|
---|
5088 | ;
|
---|
5089 | return 0;
|
---|
5090 | }
|
---|
5091 | _ACEOF
|
---|
5092 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5093 | ac_cv_lib_m_main=yes
|
---|
5094 | else
|
---|
5095 | ac_cv_lib_m_main=no
|
---|
5096 | fi
|
---|
5097 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5098 | conftest$ac_exeext conftest.$ac_ext
|
---|
5099 | LIBS=$ac_check_lib_save_LIBS
|
---|
5100 | fi
|
---|
5101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
|
---|
5102 | $as_echo "$ac_cv_lib_m_main" >&6; }
|
---|
5103 | if test "x$ac_cv_lib_m_main" = xyes; then :
|
---|
5104 | cat >>confdefs.h <<_ACEOF
|
---|
5105 | #define HAVE_LIBM 1
|
---|
5106 | _ACEOF
|
---|
5107 |
|
---|
5108 | LIBS="-lm $LIBS"
|
---|
5109 |
|
---|
5110 | fi
|
---|
5111 |
|
---|
5112 |
|
---|
5113 | ac_header_dirent=no
|
---|
5114 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
|
---|
5115 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
|
---|
5116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
|
---|
5117 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
|
---|
5118 | if eval \${$as_ac_Header+:} false; then :
|
---|
5119 | $as_echo_n "(cached) " >&6
|
---|
5120 | else
|
---|
5121 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5122 | /* end confdefs.h. */
|
---|
5123 | #include <sys/types.h>
|
---|
5124 | #include <$ac_hdr>
|
---|
5125 |
|
---|
5126 | int
|
---|
5127 | main ()
|
---|
5128 | {
|
---|
5129 | if ((DIR *) 0)
|
---|
5130 | return 0;
|
---|
5131 | ;
|
---|
5132 | return 0;
|
---|
5133 | }
|
---|
5134 | _ACEOF
|
---|
5135 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
5136 | eval "$as_ac_Header=yes"
|
---|
5137 | else
|
---|
5138 | eval "$as_ac_Header=no"
|
---|
5139 | fi
|
---|
5140 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5141 | fi
|
---|
5142 | eval ac_res=\$$as_ac_Header
|
---|
5143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
5144 | $as_echo "$ac_res" >&6; }
|
---|
5145 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
|
---|
5146 | cat >>confdefs.h <<_ACEOF
|
---|
5147 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
|
---|
5148 | _ACEOF
|
---|
5149 |
|
---|
5150 | ac_header_dirent=$ac_hdr; break
|
---|
5151 | fi
|
---|
5152 |
|
---|
5153 | done
|
---|
5154 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
---|
5155 | if test $ac_header_dirent = dirent.h; then
|
---|
5156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
|
---|
5157 | $as_echo_n "checking for library containing opendir... " >&6; }
|
---|
5158 | if ${ac_cv_search_opendir+:} false; then :
|
---|
5159 | $as_echo_n "(cached) " >&6
|
---|
5160 | else
|
---|
5161 | ac_func_search_save_LIBS=$LIBS
|
---|
5162 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5163 | /* end confdefs.h. */
|
---|
5164 |
|
---|
5165 | /* Override any GCC internal prototype to avoid an error.
|
---|
5166 | Use char because int might match the return type of a GCC
|
---|
5167 | builtin and then its argument prototype would still apply. */
|
---|
5168 | #ifdef __cplusplus
|
---|
5169 | extern "C"
|
---|
5170 | #endif
|
---|
5171 | char opendir ();
|
---|
5172 | int
|
---|
5173 | main ()
|
---|
5174 | {
|
---|
5175 | return opendir ();
|
---|
5176 | ;
|
---|
5177 | return 0;
|
---|
5178 | }
|
---|
5179 | _ACEOF
|
---|
5180 | for ac_lib in '' dir; do
|
---|
5181 | if test -z "$ac_lib"; then
|
---|
5182 | ac_res="none required"
|
---|
5183 | else
|
---|
5184 | ac_res=-l$ac_lib
|
---|
5185 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
5186 | fi
|
---|
5187 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5188 | ac_cv_search_opendir=$ac_res
|
---|
5189 | fi
|
---|
5190 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5191 | conftest$ac_exeext
|
---|
5192 | if ${ac_cv_search_opendir+:} false; then :
|
---|
5193 | break
|
---|
5194 | fi
|
---|
5195 | done
|
---|
5196 | if ${ac_cv_search_opendir+:} false; then :
|
---|
5197 |
|
---|
5198 | else
|
---|
5199 | ac_cv_search_opendir=no
|
---|
5200 | fi
|
---|
5201 | rm conftest.$ac_ext
|
---|
5202 | LIBS=$ac_func_search_save_LIBS
|
---|
5203 | fi
|
---|
5204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
|
---|
5205 | $as_echo "$ac_cv_search_opendir" >&6; }
|
---|
5206 | ac_res=$ac_cv_search_opendir
|
---|
5207 | if test "$ac_res" != no; then :
|
---|
5208 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
5209 |
|
---|
5210 | fi
|
---|
5211 |
|
---|
5212 | else
|
---|
5213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
|
---|
5214 | $as_echo_n "checking for library containing opendir... " >&6; }
|
---|
5215 | if ${ac_cv_search_opendir+:} false; then :
|
---|
5216 | $as_echo_n "(cached) " >&6
|
---|
5217 | else
|
---|
5218 | ac_func_search_save_LIBS=$LIBS
|
---|
5219 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5220 | /* end confdefs.h. */
|
---|
5221 |
|
---|
5222 | /* Override any GCC internal prototype to avoid an error.
|
---|
5223 | Use char because int might match the return type of a GCC
|
---|
5224 | builtin and then its argument prototype would still apply. */
|
---|
5225 | #ifdef __cplusplus
|
---|
5226 | extern "C"
|
---|
5227 | #endif
|
---|
5228 | char opendir ();
|
---|
5229 | int
|
---|
5230 | main ()
|
---|
5231 | {
|
---|
5232 | return opendir ();
|
---|
5233 | ;
|
---|
5234 | return 0;
|
---|
5235 | }
|
---|
5236 | _ACEOF
|
---|
5237 | for ac_lib in '' x; do
|
---|
5238 | if test -z "$ac_lib"; then
|
---|
5239 | ac_res="none required"
|
---|
5240 | else
|
---|
5241 | ac_res=-l$ac_lib
|
---|
5242 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
5243 | fi
|
---|
5244 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5245 | ac_cv_search_opendir=$ac_res
|
---|
5246 | fi
|
---|
5247 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5248 | conftest$ac_exeext
|
---|
5249 | if ${ac_cv_search_opendir+:} false; then :
|
---|
5250 | break
|
---|
5251 | fi
|
---|
5252 | done
|
---|
5253 | if ${ac_cv_search_opendir+:} false; then :
|
---|
5254 |
|
---|
5255 | else
|
---|
5256 | ac_cv_search_opendir=no
|
---|
5257 | fi
|
---|
5258 | rm conftest.$ac_ext
|
---|
5259 | LIBS=$ac_func_search_save_LIBS
|
---|
5260 | fi
|
---|
5261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
|
---|
5262 | $as_echo "$ac_cv_search_opendir" >&6; }
|
---|
5263 | ac_res=$ac_cv_search_opendir
|
---|
5264 | if test "$ac_res" != no; then :
|
---|
5265 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
5266 |
|
---|
5267 | fi
|
---|
5268 |
|
---|
5269 | fi
|
---|
5270 |
|
---|
5271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
|
---|
5272 | $as_echo_n "checking for ANSI C header files... " >&6; }
|
---|
5273 | if ${ac_cv_header_stdc+:} false; then :
|
---|
5274 | $as_echo_n "(cached) " >&6
|
---|
5275 | else
|
---|
5276 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5277 | /* end confdefs.h. */
|
---|
5278 | #include <stdlib.h>
|
---|
5279 | #include <stdarg.h>
|
---|
5280 | #include <string.h>
|
---|
5281 | #include <float.h>
|
---|
5282 |
|
---|
5283 | int
|
---|
5284 | main ()
|
---|
5285 | {
|
---|
5286 |
|
---|
5287 | ;
|
---|
5288 | return 0;
|
---|
5289 | }
|
---|
5290 | _ACEOF
|
---|
5291 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
5292 | ac_cv_header_stdc=yes
|
---|
5293 | else
|
---|
5294 | ac_cv_header_stdc=no
|
---|
5295 | fi
|
---|
5296 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5297 |
|
---|
5298 | if test $ac_cv_header_stdc = yes; then
|
---|
5299 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
5300 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5301 | /* end confdefs.h. */
|
---|
5302 | #include <string.h>
|
---|
5303 |
|
---|
5304 | _ACEOF
|
---|
5305 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5306 | $EGREP "memchr" >/dev/null 2>&1; then :
|
---|
5307 |
|
---|
5308 | else
|
---|
5309 | ac_cv_header_stdc=no
|
---|
5310 | fi
|
---|
5311 | rm -f conftest*
|
---|
5312 |
|
---|
5313 | fi
|
---|
5314 |
|
---|
5315 | if test $ac_cv_header_stdc = yes; then
|
---|
5316 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
5317 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5318 | /* end confdefs.h. */
|
---|
5319 | #include <stdlib.h>
|
---|
5320 |
|
---|
5321 | _ACEOF
|
---|
5322 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5323 | $EGREP "free" >/dev/null 2>&1; then :
|
---|
5324 |
|
---|
5325 | else
|
---|
5326 | ac_cv_header_stdc=no
|
---|
5327 | fi
|
---|
5328 | rm -f conftest*
|
---|
5329 |
|
---|
5330 | fi
|
---|
5331 |
|
---|
5332 | if test $ac_cv_header_stdc = yes; then
|
---|
5333 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
5334 | if test "$cross_compiling" = yes; then :
|
---|
5335 | :
|
---|
5336 | else
|
---|
5337 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5338 | /* end confdefs.h. */
|
---|
5339 | #include <ctype.h>
|
---|
5340 | #include <stdlib.h>
|
---|
5341 | #if ((' ' & 0x0FF) == 0x020)
|
---|
5342 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
5343 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
5344 | #else
|
---|
5345 | # define ISLOWER(c) \
|
---|
5346 | (('a' <= (c) && (c) <= 'i') \
|
---|
5347 | || ('j' <= (c) && (c) <= 'r') \
|
---|
5348 | || ('s' <= (c) && (c) <= 'z'))
|
---|
5349 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
5350 | #endif
|
---|
5351 |
|
---|
5352 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
5353 | int
|
---|
5354 | main ()
|
---|
5355 | {
|
---|
5356 | int i;
|
---|
5357 | for (i = 0; i < 256; i++)
|
---|
5358 | if (XOR (islower (i), ISLOWER (i))
|
---|
5359 | || toupper (i) != TOUPPER (i))
|
---|
5360 | return 2;
|
---|
5361 | return 0;
|
---|
5362 | }
|
---|
5363 | _ACEOF
|
---|
5364 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
5365 |
|
---|
5366 | else
|
---|
5367 | ac_cv_header_stdc=no
|
---|
5368 | fi
|
---|
5369 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
5370 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
5371 | fi
|
---|
5372 |
|
---|
5373 | fi
|
---|
5374 | fi
|
---|
5375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
|
---|
5376 | $as_echo "$ac_cv_header_stdc" >&6; }
|
---|
5377 | if test $ac_cv_header_stdc = yes; then
|
---|
5378 |
|
---|
5379 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h
|
---|
5380 |
|
---|
5381 | fi
|
---|
5382 |
|
---|
5383 | for ac_header in fcntl.h limits.h sys/time.h unistd.h string.h memory.h sys/procfs.h
|
---|
5384 | do :
|
---|
5385 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
5386 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
|
---|
5387 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
|
---|
5388 | cat >>confdefs.h <<_ACEOF
|
---|
5389 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
5390 | _ACEOF
|
---|
5391 |
|
---|
5392 | fi
|
---|
5393 |
|
---|
5394 | done
|
---|
5395 |
|
---|
5396 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5397 | /* end confdefs.h. */
|
---|
5398 | #include <stdio.h>
|
---|
5399 |
|
---|
5400 | _ACEOF
|
---|
5401 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5402 | $EGREP "fread" >/dev/null 2>&1; then :
|
---|
5403 | $as_echo "#define HAVE_FREAD_DECL 1" >>confdefs.h
|
---|
5404 |
|
---|
5405 | fi
|
---|
5406 | rm -f conftest*
|
---|
5407 |
|
---|
5408 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5409 | /* end confdefs.h. */
|
---|
5410 | #include <stdio.h>
|
---|
5411 |
|
---|
5412 | _ACEOF
|
---|
5413 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5414 | $EGREP "fgetc" >/dev/null 2>&1; then :
|
---|
5415 | $as_echo "#define HAVE_FGETC_DECL 1" >>confdefs.h
|
---|
5416 |
|
---|
5417 | fi
|
---|
5418 | rm -f conftest*
|
---|
5419 |
|
---|
5420 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5421 | /* end confdefs.h. */
|
---|
5422 | #include <sys/procfs.h>
|
---|
5423 |
|
---|
5424 | _ACEOF
|
---|
5425 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5426 | $EGREP "pr_brksize" >/dev/null 2>&1; then :
|
---|
5427 | $as_echo "#define HAVE_PR_BRKSIZE 1" >>confdefs.h
|
---|
5428 |
|
---|
5429 | fi
|
---|
5430 | rm -f conftest*
|
---|
5431 |
|
---|
5432 |
|
---|
5433 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
---|
5434 | # for constant arguments. Useless!
|
---|
5435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
|
---|
5436 | $as_echo_n "checking for working alloca.h... " >&6; }
|
---|
5437 | if ${ac_cv_working_alloca_h+:} false; then :
|
---|
5438 | $as_echo_n "(cached) " >&6
|
---|
5439 | else
|
---|
5440 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5441 | /* end confdefs.h. */
|
---|
5442 | #include <alloca.h>
|
---|
5443 | int
|
---|
5444 | main ()
|
---|
5445 | {
|
---|
5446 | char *p = (char *) alloca (2 * sizeof (int));
|
---|
5447 | if (p) return 0;
|
---|
5448 | ;
|
---|
5449 | return 0;
|
---|
5450 | }
|
---|
5451 | _ACEOF
|
---|
5452 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5453 | ac_cv_working_alloca_h=yes
|
---|
5454 | else
|
---|
5455 | ac_cv_working_alloca_h=no
|
---|
5456 | fi
|
---|
5457 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5458 | conftest$ac_exeext conftest.$ac_ext
|
---|
5459 | fi
|
---|
5460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
|
---|
5461 | $as_echo "$ac_cv_working_alloca_h" >&6; }
|
---|
5462 | if test $ac_cv_working_alloca_h = yes; then
|
---|
5463 |
|
---|
5464 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
|
---|
5465 |
|
---|
5466 | fi
|
---|
5467 |
|
---|
5468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
|
---|
5469 | $as_echo_n "checking for alloca... " >&6; }
|
---|
5470 | if ${ac_cv_func_alloca_works+:} false; then :
|
---|
5471 | $as_echo_n "(cached) " >&6
|
---|
5472 | else
|
---|
5473 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5474 | /* end confdefs.h. */
|
---|
5475 | #ifdef __GNUC__
|
---|
5476 | # define alloca __builtin_alloca
|
---|
5477 | #else
|
---|
5478 | # ifdef _MSC_VER
|
---|
5479 | # include <malloc.h>
|
---|
5480 | # define alloca _alloca
|
---|
5481 | # else
|
---|
5482 | # ifdef HAVE_ALLOCA_H
|
---|
5483 | # include <alloca.h>
|
---|
5484 | # else
|
---|
5485 | # ifdef _AIX
|
---|
5486 | #pragma alloca
|
---|
5487 | # else
|
---|
5488 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
---|
5489 | void *alloca (size_t);
|
---|
5490 | # endif
|
---|
5491 | # endif
|
---|
5492 | # endif
|
---|
5493 | # endif
|
---|
5494 | #endif
|
---|
5495 |
|
---|
5496 | int
|
---|
5497 | main ()
|
---|
5498 | {
|
---|
5499 | char *p = (char *) alloca (1);
|
---|
5500 | if (p) return 0;
|
---|
5501 | ;
|
---|
5502 | return 0;
|
---|
5503 | }
|
---|
5504 | _ACEOF
|
---|
5505 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5506 | ac_cv_func_alloca_works=yes
|
---|
5507 | else
|
---|
5508 | ac_cv_func_alloca_works=no
|
---|
5509 | fi
|
---|
5510 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5511 | conftest$ac_exeext conftest.$ac_ext
|
---|
5512 | fi
|
---|
5513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
|
---|
5514 | $as_echo "$ac_cv_func_alloca_works" >&6; }
|
---|
5515 |
|
---|
5516 | if test $ac_cv_func_alloca_works = yes; then
|
---|
5517 |
|
---|
5518 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
|
---|
5519 |
|
---|
5520 | else
|
---|
5521 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
---|
5522 | # that cause trouble. Some versions do not even contain alloca or
|
---|
5523 | # contain a buggy version. If you still want to use their alloca,
|
---|
5524 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
---|
5525 |
|
---|
5526 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
|
---|
5527 |
|
---|
5528 | $as_echo "#define C_ALLOCA 1" >>confdefs.h
|
---|
5529 |
|
---|
5530 |
|
---|
5531 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
|
---|
5532 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
|
---|
5533 | if ${ac_cv_os_cray+:} false; then :
|
---|
5534 | $as_echo_n "(cached) " >&6
|
---|
5535 | else
|
---|
5536 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5537 | /* end confdefs.h. */
|
---|
5538 | #if defined CRAY && ! defined CRAY2
|
---|
5539 | webecray
|
---|
5540 | #else
|
---|
5541 | wenotbecray
|
---|
5542 | #endif
|
---|
5543 |
|
---|
5544 | _ACEOF
|
---|
5545 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5546 | $EGREP "webecray" >/dev/null 2>&1; then :
|
---|
5547 | ac_cv_os_cray=yes
|
---|
5548 | else
|
---|
5549 | ac_cv_os_cray=no
|
---|
5550 | fi
|
---|
5551 | rm -f conftest*
|
---|
5552 |
|
---|
5553 | fi
|
---|
5554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
|
---|
5555 | $as_echo "$ac_cv_os_cray" >&6; }
|
---|
5556 | if test $ac_cv_os_cray = yes; then
|
---|
5557 | for ac_func in _getb67 GETB67 getb67; do
|
---|
5558 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
5559 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
---|
5560 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
|
---|
5561 |
|
---|
5562 | cat >>confdefs.h <<_ACEOF
|
---|
5563 | #define CRAY_STACKSEG_END $ac_func
|
---|
5564 | _ACEOF
|
---|
5565 |
|
---|
5566 | break
|
---|
5567 | fi
|
---|
5568 |
|
---|
5569 | done
|
---|
5570 | fi
|
---|
5571 |
|
---|
5572 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
|
---|
5573 | $as_echo_n "checking stack direction for C alloca... " >&6; }
|
---|
5574 | if ${ac_cv_c_stack_direction+:} false; then :
|
---|
5575 | $as_echo_n "(cached) " >&6
|
---|
5576 | else
|
---|
5577 | if test "$cross_compiling" = yes; then :
|
---|
5578 | ac_cv_c_stack_direction=0
|
---|
5579 | else
|
---|
5580 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5581 | /* end confdefs.h. */
|
---|
5582 | $ac_includes_default
|
---|
5583 | int
|
---|
5584 | find_stack_direction (int *addr, int depth)
|
---|
5585 | {
|
---|
5586 | int dir, dummy = 0;
|
---|
5587 | if (! addr)
|
---|
5588 | addr = &dummy;
|
---|
5589 | *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
|
---|
5590 | dir = depth ? find_stack_direction (addr, depth - 1) : 0;
|
---|
5591 | return dir + dummy;
|
---|
5592 | }
|
---|
5593 |
|
---|
5594 | int
|
---|
5595 | main (int argc, char **argv)
|
---|
5596 | {
|
---|
5597 | return find_stack_direction (0, argc + !argv + 20) < 0;
|
---|
5598 | }
|
---|
5599 | _ACEOF
|
---|
5600 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
5601 | ac_cv_c_stack_direction=1
|
---|
5602 | else
|
---|
5603 | ac_cv_c_stack_direction=-1
|
---|
5604 | fi
|
---|
5605 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
5606 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
5607 | fi
|
---|
5608 |
|
---|
5609 | fi
|
---|
5610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
|
---|
5611 | $as_echo "$ac_cv_c_stack_direction" >&6; }
|
---|
5612 | cat >>confdefs.h <<_ACEOF
|
---|
5613 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
---|
5614 | _ACEOF
|
---|
5615 |
|
---|
5616 |
|
---|
5617 | fi
|
---|
5618 |
|
---|
5619 | if test $ac_cv_c_compiler_gnu = yes; then
|
---|
5620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
|
---|
5621 | $as_echo_n "checking whether $CC needs -traditional... " >&6; }
|
---|
5622 | if ${ac_cv_prog_gcc_traditional+:} false; then :
|
---|
5623 | $as_echo_n "(cached) " >&6
|
---|
5624 | else
|
---|
5625 | ac_pattern="Autoconf.*'x'"
|
---|
5626 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5627 | /* end confdefs.h. */
|
---|
5628 | #include <sgtty.h>
|
---|
5629 | Autoconf TIOCGETP
|
---|
5630 | _ACEOF
|
---|
5631 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5632 | $EGREP "$ac_pattern" >/dev/null 2>&1; then :
|
---|
5633 | ac_cv_prog_gcc_traditional=yes
|
---|
5634 | else
|
---|
5635 | ac_cv_prog_gcc_traditional=no
|
---|
5636 | fi
|
---|
5637 | rm -f conftest*
|
---|
5638 |
|
---|
5639 |
|
---|
5640 | if test $ac_cv_prog_gcc_traditional = no; then
|
---|
5641 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5642 | /* end confdefs.h. */
|
---|
5643 | #include <termio.h>
|
---|
5644 | Autoconf TCGETA
|
---|
5645 | _ACEOF
|
---|
5646 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5647 | $EGREP "$ac_pattern" >/dev/null 2>&1; then :
|
---|
5648 | ac_cv_prog_gcc_traditional=yes
|
---|
5649 | fi
|
---|
5650 | rm -f conftest*
|
---|
5651 |
|
---|
5652 | fi
|
---|
5653 | fi
|
---|
5654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
|
---|
5655 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
|
---|
5656 | if test $ac_cv_prog_gcc_traditional = yes; then
|
---|
5657 | CC="$CC -traditional"
|
---|
5658 | fi
|
---|
5659 | fi
|
---|
5660 |
|
---|
5661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
|
---|
5662 | $as_echo_n "checking return type of signal handlers... " >&6; }
|
---|
5663 | if ${ac_cv_type_signal+:} false; then :
|
---|
5664 | $as_echo_n "(cached) " >&6
|
---|
5665 | else
|
---|
5666 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5667 | /* end confdefs.h. */
|
---|
5668 | #include <sys/types.h>
|
---|
5669 | #include <signal.h>
|
---|
5670 |
|
---|
5671 | int
|
---|
5672 | main ()
|
---|
5673 | {
|
---|
5674 | return *(signal (0, 0)) (0) == 1;
|
---|
5675 | ;
|
---|
5676 | return 0;
|
---|
5677 | }
|
---|
5678 | _ACEOF
|
---|
5679 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
5680 | ac_cv_type_signal=int
|
---|
5681 | else
|
---|
5682 | ac_cv_type_signal=void
|
---|
5683 | fi
|
---|
5684 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5685 | fi
|
---|
5686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
|
---|
5687 | $as_echo "$ac_cv_type_signal" >&6; }
|
---|
5688 |
|
---|
5689 | cat >>confdefs.h <<_ACEOF
|
---|
5690 | #define RETSIGTYPE $ac_cv_type_signal
|
---|
5691 | _ACEOF
|
---|
5692 |
|
---|
5693 |
|
---|
5694 | for ac_func in vprintf
|
---|
5695 | do :
|
---|
5696 | ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
|
---|
5697 | if test "x$ac_cv_func_vprintf" = xyes; then :
|
---|
5698 | cat >>confdefs.h <<_ACEOF
|
---|
5699 | #define HAVE_VPRINTF 1
|
---|
5700 | _ACEOF
|
---|
5701 |
|
---|
5702 | ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
|
---|
5703 | if test "x$ac_cv_func__doprnt" = xyes; then :
|
---|
5704 |
|
---|
5705 | $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
|
---|
5706 |
|
---|
5707 | fi
|
---|
5708 |
|
---|
5709 | fi
|
---|
5710 | done
|
---|
5711 |
|
---|
5712 |
|
---|
5713 | for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize
|
---|
5714 | do :
|
---|
5715 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
5716 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
---|
5717 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
|
---|
5718 | cat >>confdefs.h <<_ACEOF
|
---|
5719 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
5720 | _ACEOF
|
---|
5721 |
|
---|
5722 | fi
|
---|
5723 | done
|
---|
5724 |
|
---|
5725 | ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
|
---|
5726 | if test "x$ac_cv_func_ftruncate" = xyes; then :
|
---|
5727 | $as_echo "#define HAVE_FTRUNCATE 1" >>confdefs.h
|
---|
5728 |
|
---|
5729 | else
|
---|
5730 | case " $LIBOBJS " in
|
---|
5731 | *" ftruncate.$ac_objext "* ) ;;
|
---|
5732 | *) LIBOBJS="$LIBOBJS ftruncate.$ac_objext"
|
---|
5733 | ;;
|
---|
5734 | esac
|
---|
5735 |
|
---|
5736 | fi
|
---|
5737 |
|
---|
5738 | ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
|
---|
5739 | if test "x$ac_cv_func_strstr" = xyes; then :
|
---|
5740 | $as_echo "#define HAVE_STRSTR 1" >>confdefs.h
|
---|
5741 |
|
---|
5742 | else
|
---|
5743 | case " $LIBOBJS " in
|
---|
5744 | *" strstr.$ac_objext "* ) ;;
|
---|
5745 | *) LIBOBJS="$LIBOBJS strstr.$ac_objext"
|
---|
5746 | ;;
|
---|
5747 | esac
|
---|
5748 |
|
---|
5749 | fi
|
---|
5750 |
|
---|
5751 | ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
|
---|
5752 | if test "x$ac_cv_func_strcasecmp" = xyes; then :
|
---|
5753 | $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
|
---|
5754 |
|
---|
5755 | else
|
---|
5756 | case " $LIBOBJS " in
|
---|
5757 | *" strcasecmp.$ac_objext "* ) ;;
|
---|
5758 | *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
|
---|
5759 | ;;
|
---|
5760 | esac
|
---|
5761 |
|
---|
5762 | fi
|
---|
5763 |
|
---|
5764 |
|
---|
5765 |
|
---|
5766 |
|
---|
5767 | # *** Custom checking (based on GNU tar configure.in) ***
|
---|
5768 | # ---------------------------------------------------------------------------
|
---|
5769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HP-UX needing gmalloc" >&5
|
---|
5770 | $as_echo_n "checking for HP-UX needing gmalloc... " >&6; }
|
---|
5771 | if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
|
---|
5772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
5773 | $as_echo "yes" >&6; }
|
---|
5774 | case " $LIBOBJS " in
|
---|
5775 | *" gmalloc.$ac_objext "* ) ;;
|
---|
5776 | *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext"
|
---|
5777 | ;;
|
---|
5778 | esac
|
---|
5779 |
|
---|
5780 | $as_echo "#define HAVE_VALLOC 1" >>confdefs.h
|
---|
5781 |
|
---|
5782 | else
|
---|
5783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5784 | $as_echo "no" >&6; }
|
---|
5785 | for ac_func in valloc
|
---|
5786 | do :
|
---|
5787 | ac_fn_c_check_func "$LINENO" "valloc" "ac_cv_func_valloc"
|
---|
5788 | if test "x$ac_cv_func_valloc" = xyes; then :
|
---|
5789 | cat >>confdefs.h <<_ACEOF
|
---|
5790 | #define HAVE_VALLOC 1
|
---|
5791 | _ACEOF
|
---|
5792 |
|
---|
5793 | fi
|
---|
5794 | done
|
---|
5795 |
|
---|
5796 | fi
|
---|
5797 |
|
---|
5798 | # we need to set an extended JNI path for Mac OS/Darwin, as jni.h is on
|
---|
5799 | # a non-standard Path
|
---|
5800 | # is there a better way to do this??
|
---|
5801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OS to set JNI options" >&5
|
---|
5802 | $as_echo_n "checking for OS to set JNI options... " >&6; }
|
---|
5803 | # set defaults
|
---|
5804 | JNIINC=""
|
---|
5805 | JNIPREFIX="lib"
|
---|
5806 | JNISUFFIX="so"
|
---|
5807 | JNICFLAGS=""
|
---|
5808 | JNILDFLAGS="-shared"
|
---|
5809 |
|
---|
5810 | if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
|
---|
5811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5
|
---|
5812 | $as_echo "Darwin" >&6; }
|
---|
5813 | JNIINC="-I\$(JAVA_HOME)/include/darwin -I\$(JAVA_HOME)/include "
|
---|
5814 | JNISUFFIX="jnilib"
|
---|
5815 | JNILDFLAGS="-dynamiclib -fno-common -single_module -framework JavaNativeFoundation"
|
---|
5816 | fi
|
---|
5817 | if test "`(uname -s) 2> /dev/null`" = 'SunOS'; then
|
---|
5818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris" >&5
|
---|
5819 | $as_echo "Solaris" >&6; }
|
---|
5820 | JNIINC="-I\$(JAVA_HOME)/include/solaris "
|
---|
5821 | fi
|
---|
5822 | if test "`(uname -s) 2> /dev/null`" = 'Linux'; then
|
---|
5823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux" >&5
|
---|
5824 | $as_echo "Linux" >&6; }
|
---|
5825 | JNIINC="-I\$(JAVA_HOME)/include/linux -I\$(JAVA_HOME)/include "
|
---|
5826 | fi
|
---|
5827 |
|
---|
5828 | if test "x$crossOS" != "x" ; then
|
---|
5829 | if test "$crossOS" = "windows" ; then
|
---|
5830 | JNIINC="-I../../java-windows-include/win32 -I../../java-windows-include "
|
---|
5831 | JNICFLAGS="-Wall -D_JNI_IMPLEMENTATION_ -Wl,--kill-at"
|
---|
5832 | JNIPREFIX=""
|
---|
5833 | JNISUFFIX="dll"
|
---|
5834 | fi
|
---|
5835 | fi
|
---|
5836 |
|
---|
5837 |
|
---|
5838 |
|
---|
5839 |
|
---|
5840 |
|
---|
5841 |
|
---|
5842 |
|
---|
5843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
|
---|
5844 | $as_echo_n "checking if malloc debugging is wanted... " >&6; }
|
---|
5845 |
|
---|
5846 | # Check whether --with-dmalloc was given.
|
---|
5847 | if test "${with_dmalloc+set}" = set; then :
|
---|
5848 | withval=$with_dmalloc; if test "$withval" = yes; then
|
---|
5849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
5850 | $as_echo "yes" >&6; }
|
---|
5851 | $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
|
---|
5852 |
|
---|
5853 | LIBS="$LIBS -ldmalloc"
|
---|
5854 | LDFLAGS="$LDFLAGS -g"
|
---|
5855 | else
|
---|
5856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5857 | $as_echo "no" >&6; }
|
---|
5858 | fi
|
---|
5859 | else
|
---|
5860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5861 | $as_echo "no" >&6; }
|
---|
5862 | fi
|
---|
5863 |
|
---|
5864 |
|
---|
5865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which of rx or regex is wanted" >&5
|
---|
5866 | $as_echo_n "checking which of rx or regex is wanted... " >&6; }
|
---|
5867 |
|
---|
5868 | # Check whether --with-regex was given.
|
---|
5869 | if test "${with_regex+set}" = set; then :
|
---|
5870 | withval=$with_regex; if test "$withval" = yes; then
|
---|
5871 | ac_with_regex=1
|
---|
5872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: regex" >&5
|
---|
5873 | $as_echo "regex" >&6; }
|
---|
5874 | $as_echo "#define WITH_REGEX 1" >>confdefs.h
|
---|
5875 |
|
---|
5876 | case " $LIBOBJS " in
|
---|
5877 | *" regex.$ac_objext "* ) ;;
|
---|
5878 | *) LIBOBJS="$LIBOBJS regex.$ac_objext"
|
---|
5879 | ;;
|
---|
5880 | esac
|
---|
5881 |
|
---|
5882 | fi
|
---|
5883 | fi
|
---|
5884 |
|
---|
5885 | if test -z "$ac_with_regex"; then
|
---|
5886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: rx" >&5
|
---|
5887 | $as_echo "rx" >&6; }
|
---|
5888 | ac_fn_c_check_func "$LINENO" "re_rx_search" "ac_cv_func_re_rx_search"
|
---|
5889 | if test "x$ac_cv_func_re_rx_search" = xyes; then :
|
---|
5890 |
|
---|
5891 | else
|
---|
5892 | case " $LIBOBJS " in
|
---|
5893 | *" rx.$ac_objext "* ) ;;
|
---|
5894 | *) LIBOBJS="$LIBOBJS rx.$ac_objext"
|
---|
5895 | ;;
|
---|
5896 | esac
|
---|
5897 |
|
---|
5898 | fi
|
---|
5899 |
|
---|
5900 | fi
|
---|
5901 |
|
---|
5902 |
|
---|
5903 | # text for endianness
|
---|
5904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
|
---|
5905 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
|
---|
5906 | if ${ac_cv_c_bigendian+:} false; then :
|
---|
5907 | $as_echo_n "(cached) " >&6
|
---|
5908 | else
|
---|
5909 | ac_cv_c_bigendian=unknown
|
---|
5910 | # See if we're dealing with a universal compiler.
|
---|
5911 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5912 | /* end confdefs.h. */
|
---|
5913 | #ifndef __APPLE_CC__
|
---|
5914 | not a universal capable compiler
|
---|
5915 | #endif
|
---|
5916 | typedef int dummy;
|
---|
5917 |
|
---|
5918 | _ACEOF
|
---|
5919 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
5920 |
|
---|
5921 | # Check for potential -arch flags. It is not universal unless
|
---|
5922 | # there are at least two -arch flags with different values.
|
---|
5923 | ac_arch=
|
---|
5924 | ac_prev=
|
---|
5925 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
|
---|
5926 | if test -n "$ac_prev"; then
|
---|
5927 | case $ac_word in
|
---|
5928 | i?86 | x86_64 | ppc | ppc64)
|
---|
5929 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
|
---|
5930 | ac_arch=$ac_word
|
---|
5931 | else
|
---|
5932 | ac_cv_c_bigendian=universal
|
---|
5933 | break
|
---|
5934 | fi
|
---|
5935 | ;;
|
---|
5936 | esac
|
---|
5937 | ac_prev=
|
---|
5938 | elif test "x$ac_word" = "x-arch"; then
|
---|
5939 | ac_prev=arch
|
---|
5940 | fi
|
---|
5941 | done
|
---|
5942 | fi
|
---|
5943 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5944 | if test $ac_cv_c_bigendian = unknown; then
|
---|
5945 | # See if sys/param.h defines the BYTE_ORDER macro.
|
---|
5946 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5947 | /* end confdefs.h. */
|
---|
5948 | #include <sys/types.h>
|
---|
5949 | #include <sys/param.h>
|
---|
5950 |
|
---|
5951 | int
|
---|
5952 | main ()
|
---|
5953 | {
|
---|
5954 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
|
---|
5955 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
|
---|
5956 | && LITTLE_ENDIAN)
|
---|
5957 | bogus endian macros
|
---|
5958 | #endif
|
---|
5959 |
|
---|
5960 | ;
|
---|
5961 | return 0;
|
---|
5962 | }
|
---|
5963 | _ACEOF
|
---|
5964 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
5965 | # It does; now see whether it defined to BIG_ENDIAN or not.
|
---|
5966 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5967 | /* end confdefs.h. */
|
---|
5968 | #include <sys/types.h>
|
---|
5969 | #include <sys/param.h>
|
---|
5970 |
|
---|
5971 | int
|
---|
5972 | main ()
|
---|
5973 | {
|
---|
5974 | #if BYTE_ORDER != BIG_ENDIAN
|
---|
5975 | not big endian
|
---|
5976 | #endif
|
---|
5977 |
|
---|
5978 | ;
|
---|
5979 | return 0;
|
---|
5980 | }
|
---|
5981 | _ACEOF
|
---|
5982 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
5983 | ac_cv_c_bigendian=yes
|
---|
5984 | else
|
---|
5985 | ac_cv_c_bigendian=no
|
---|
5986 | fi
|
---|
5987 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5988 | fi
|
---|
5989 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5990 | fi
|
---|
5991 | if test $ac_cv_c_bigendian = unknown; then
|
---|
5992 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
|
---|
5993 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5994 | /* end confdefs.h. */
|
---|
5995 | #include <limits.h>
|
---|
5996 |
|
---|
5997 | int
|
---|
5998 | main ()
|
---|
5999 | {
|
---|
6000 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
|
---|
6001 | bogus endian macros
|
---|
6002 | #endif
|
---|
6003 |
|
---|
6004 | ;
|
---|
6005 | return 0;
|
---|
6006 | }
|
---|
6007 | _ACEOF
|
---|
6008 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
6009 | # It does; now see whether it defined to _BIG_ENDIAN or not.
|
---|
6010 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6011 | /* end confdefs.h. */
|
---|
6012 | #include <limits.h>
|
---|
6013 |
|
---|
6014 | int
|
---|
6015 | main ()
|
---|
6016 | {
|
---|
6017 | #ifndef _BIG_ENDIAN
|
---|
6018 | not big endian
|
---|
6019 | #endif
|
---|
6020 |
|
---|
6021 | ;
|
---|
6022 | return 0;
|
---|
6023 | }
|
---|
6024 | _ACEOF
|
---|
6025 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
6026 | ac_cv_c_bigendian=yes
|
---|
6027 | else
|
---|
6028 | ac_cv_c_bigendian=no
|
---|
6029 | fi
|
---|
6030 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6031 | fi
|
---|
6032 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6033 | fi
|
---|
6034 | if test $ac_cv_c_bigendian = unknown; then
|
---|
6035 | # Compile a test program.
|
---|
6036 | if test "$cross_compiling" = yes; then :
|
---|
6037 | # Try to guess by grepping values from an object file.
|
---|
6038 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6039 | /* end confdefs.h. */
|
---|
6040 | short int ascii_mm[] =
|
---|
6041 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
|
---|
6042 | short int ascii_ii[] =
|
---|
6043 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
|
---|
6044 | int use_ascii (int i) {
|
---|
6045 | return ascii_mm[i] + ascii_ii[i];
|
---|
6046 | }
|
---|
6047 | short int ebcdic_ii[] =
|
---|
6048 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
|
---|
6049 | short int ebcdic_mm[] =
|
---|
6050 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
|
---|
6051 | int use_ebcdic (int i) {
|
---|
6052 | return ebcdic_mm[i] + ebcdic_ii[i];
|
---|
6053 | }
|
---|
6054 | extern int foo;
|
---|
6055 |
|
---|
6056 | int
|
---|
6057 | main ()
|
---|
6058 | {
|
---|
6059 | return use_ascii (foo) == use_ebcdic (foo);
|
---|
6060 | ;
|
---|
6061 | return 0;
|
---|
6062 | }
|
---|
6063 | _ACEOF
|
---|
6064 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
6065 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
|
---|
6066 | ac_cv_c_bigendian=yes
|
---|
6067 | fi
|
---|
6068 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
|
---|
6069 | if test "$ac_cv_c_bigendian" = unknown; then
|
---|
6070 | ac_cv_c_bigendian=no
|
---|
6071 | else
|
---|
6072 | # finding both strings is unlikely to happen, but who knows?
|
---|
6073 | ac_cv_c_bigendian=unknown
|
---|
6074 | fi
|
---|
6075 | fi
|
---|
6076 | fi
|
---|
6077 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6078 | else
|
---|
6079 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6080 | /* end confdefs.h. */
|
---|
6081 | $ac_includes_default
|
---|
6082 | int
|
---|
6083 | main ()
|
---|
6084 | {
|
---|
6085 |
|
---|
6086 | /* Are we little or big endian? From Harbison&Steele. */
|
---|
6087 | union
|
---|
6088 | {
|
---|
6089 | long int l;
|
---|
6090 | char c[sizeof (long int)];
|
---|
6091 | } u;
|
---|
6092 | u.l = 1;
|
---|
6093 | return u.c[sizeof (long int) - 1] == 1;
|
---|
6094 |
|
---|
6095 | ;
|
---|
6096 | return 0;
|
---|
6097 | }
|
---|
6098 | _ACEOF
|
---|
6099 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
6100 | ac_cv_c_bigendian=no
|
---|
6101 | else
|
---|
6102 | ac_cv_c_bigendian=yes
|
---|
6103 | fi
|
---|
6104 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
6105 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
6106 | fi
|
---|
6107 |
|
---|
6108 | fi
|
---|
6109 | fi
|
---|
6110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
|
---|
6111 | $as_echo "$ac_cv_c_bigendian" >&6; }
|
---|
6112 | case $ac_cv_c_bigendian in #(
|
---|
6113 | yes)
|
---|
6114 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
|
---|
6115 | ;; #(
|
---|
6116 | no)
|
---|
6117 | ;; #(
|
---|
6118 | universal)
|
---|
6119 |
|
---|
6120 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
|
---|
6121 |
|
---|
6122 | ;; #(
|
---|
6123 | *)
|
---|
6124 | as_fn_error $? "unknown endianness
|
---|
6125 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
|
---|
6126 | esac
|
---|
6127 |
|
---|
6128 |
|
---|
6129 | # ---------------------------------------------------------------------------
|
---|
6130 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
6131 | case " $LIBOBJS " in
|
---|
6132 | *" xmalloc.$ac_objext "* ) ;;
|
---|
6133 | *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext"
|
---|
6134 | ;;
|
---|
6135 | esac
|
---|
6136 |
|
---|
6137 | case " $LIBOBJS " in
|
---|
6138 | *" error.$ac_objext "* ) ;;
|
---|
6139 | *) LIBOBJS="$LIBOBJS error.$ac_objext"
|
---|
6140 | ;;
|
---|
6141 | esac
|
---|
6142 |
|
---|
6143 | fi
|
---|
6144 |
|
---|
6145 |
|
---|
6146 | # ---------------------------------------------------------------------------
|
---|
6147 |
|
---|
6148 | ac_config_files="$ac_config_files Makefile src/text/Makefile lib/Makefile jni/Makefile java/org/greenstone/mg/Makefile"
|
---|
6149 |
|
---|
6150 | ac_config_commands="$ac_config_commands default"
|
---|
6151 |
|
---|
6152 | cat >confcache <<\_ACEOF
|
---|
6153 | # This file is a shell script that caches the results of configure
|
---|
6154 | # tests run on this system so they can be shared between configure
|
---|
6155 | # scripts and configure runs, see configure's option --config-cache.
|
---|
6156 | # It is not useful on other systems. If it contains results you don't
|
---|
6157 | # want to keep, you may remove or edit it.
|
---|
6158 | #
|
---|
6159 | # config.status only pays attention to the cache file if you give it
|
---|
6160 | # the --recheck option to rerun configure.
|
---|
6161 | #
|
---|
6162 | # `ac_cv_env_foo' variables (set or unset) will be overridden when
|
---|
6163 | # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
---|
6164 | # following values.
|
---|
6165 |
|
---|
6166 | _ACEOF
|
---|
6167 |
|
---|
6168 | # The following way of writing the cache mishandles newlines in values,
|
---|
6169 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
6170 | # So, we kill variables containing newlines.
|
---|
6171 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
6172 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
6173 | (
|
---|
6174 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
|
---|
6175 | eval ac_val=\$$ac_var
|
---|
6176 | case $ac_val in #(
|
---|
6177 | *${as_nl}*)
|
---|
6178 | case $ac_var in #(
|
---|
6179 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
---|
6180 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
---|
6181 | esac
|
---|
6182 | case $ac_var in #(
|
---|
6183 | _ | IFS | as_nl) ;; #(
|
---|
6184 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
|
---|
6185 | *) { eval $ac_var=; unset $ac_var;} ;;
|
---|
6186 | esac ;;
|
---|
6187 | esac
|
---|
6188 | done
|
---|
6189 |
|
---|
6190 | (set) 2>&1 |
|
---|
6191 | case $as_nl`(ac_space=' '; set) 2>&1` in #(
|
---|
6192 | *${as_nl}ac_space=\ *)
|
---|
6193 | # `set' does not quote correctly, so add quotes: double-quote
|
---|
6194 | # substitution turns \\\\ into \\, and sed turns \\ into \.
|
---|
6195 | sed -n \
|
---|
6196 | "s/'/'\\\\''/g;
|
---|
6197 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
---|
6198 | ;; #(
|
---|
6199 | *)
|
---|
6200 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
6201 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
---|
6202 | ;;
|
---|
6203 | esac |
|
---|
6204 | sort
|
---|
6205 | ) |
|
---|
6206 | sed '
|
---|
6207 | /^ac_cv_env_/b end
|
---|
6208 | t clear
|
---|
6209 | :clear
|
---|
6210 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
---|
6211 | t end
|
---|
6212 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
---|
6213 | :end' >>confcache
|
---|
6214 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
|
---|
6215 | if test -w "$cache_file"; then
|
---|
6216 | if test "x$cache_file" != "x/dev/null"; then
|
---|
6217 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
|
---|
6218 | $as_echo "$as_me: updating cache $cache_file" >&6;}
|
---|
6219 | if test ! -f "$cache_file" || test -h "$cache_file"; then
|
---|
6220 | cat confcache >"$cache_file"
|
---|
6221 | else
|
---|
6222 | case $cache_file in #(
|
---|
6223 | */* | ?:*)
|
---|
6224 | mv -f confcache "$cache_file"$$ &&
|
---|
6225 | mv -f "$cache_file"$$ "$cache_file" ;; #(
|
---|
6226 | *)
|
---|
6227 | mv -f confcache "$cache_file" ;;
|
---|
6228 | esac
|
---|
6229 | fi
|
---|
6230 | fi
|
---|
6231 | else
|
---|
6232 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
|
---|
6233 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
|
---|
6234 | fi
|
---|
6235 | fi
|
---|
6236 | rm -f confcache
|
---|
6237 |
|
---|
6238 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
6239 | # Let make expand exec_prefix.
|
---|
6240 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
6241 |
|
---|
6242 | DEFS=-DHAVE_CONFIG_H
|
---|
6243 |
|
---|
6244 | ac_libobjs=
|
---|
6245 | ac_ltlibobjs=
|
---|
6246 | U=
|
---|
6247 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
---|
6248 | # 1. Remove the extension, and $U if already installed.
|
---|
6249 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
|
---|
6250 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
|
---|
6251 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
|
---|
6252 | # will be set to the directory where LIBOBJS objects are built.
|
---|
6253 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
|
---|
6254 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
|
---|
6255 | done
|
---|
6256 | LIBOBJS=$ac_libobjs
|
---|
6257 |
|
---|
6258 | LTLIBOBJS=$ac_ltlibobjs
|
---|
6259 |
|
---|
6260 |
|
---|
6261 |
|
---|
6262 |
|
---|
6263 | : "${CONFIG_STATUS=./config.status}"
|
---|
6264 | ac_write_fail=0
|
---|
6265 | ac_clean_files_save=$ac_clean_files
|
---|
6266 | ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
---|
6267 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
|
---|
6268 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
---|
6269 | as_write_fail=0
|
---|
6270 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
|
---|
6271 | #! $SHELL
|
---|
6272 | # Generated by $as_me.
|
---|
6273 | # Run this file to recreate the current configuration.
|
---|
6274 | # Compiler output produced by configure, useful for debugging
|
---|
6275 | # configure, is in config.log if it exists.
|
---|
6276 |
|
---|
6277 | debug=false
|
---|
6278 | ac_cs_recheck=false
|
---|
6279 | ac_cs_silent=false
|
---|
6280 |
|
---|
6281 | SHELL=\${CONFIG_SHELL-$SHELL}
|
---|
6282 | export SHELL
|
---|
6283 | _ASEOF
|
---|
6284 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
|
---|
6285 | ## -------------------- ##
|
---|
6286 | ## M4sh Initialization. ##
|
---|
6287 | ## -------------------- ##
|
---|
6288 |
|
---|
6289 | # Be more Bourne compatible
|
---|
6290 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
6291 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
|
---|
6292 | emulate sh
|
---|
6293 | NULLCMD=:
|
---|
6294 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
|
---|
6295 | # is contrary to our usage. Disable this feature.
|
---|
6296 | alias -g '${1+"$@"}'='"$@"'
|
---|
6297 | setopt NO_GLOB_SUBST
|
---|
6298 | else
|
---|
6299 | case `(set -o) 2>/dev/null` in #(
|
---|
6300 | *posix*) :
|
---|
6301 | set -o posix ;; #(
|
---|
6302 | *) :
|
---|
6303 | ;;
|
---|
6304 | esac
|
---|
6305 | fi
|
---|
6306 |
|
---|
6307 |
|
---|
6308 | as_nl='
|
---|
6309 | '
|
---|
6310 | export as_nl
|
---|
6311 | # Printing a long string crashes Solaris 7 /usr/bin/printf.
|
---|
6312 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
---|
6313 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
6314 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
6315 | # Prefer a ksh shell builtin over an external printf program on Solaris,
|
---|
6316 | # but without wasting forks for bash or zsh.
|
---|
6317 | if test -z "$BASH_VERSION$ZSH_VERSION" \
|
---|
6318 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
6319 | as_echo='print -r --'
|
---|
6320 | as_echo_n='print -rn --'
|
---|
6321 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
6322 | as_echo='printf %s\n'
|
---|
6323 | as_echo_n='printf %s'
|
---|
6324 | else
|
---|
6325 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
|
---|
6326 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
|
---|
6327 | as_echo_n='/usr/ucb/echo -n'
|
---|
6328 | else
|
---|
6329 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
|
---|
6330 | as_echo_n_body='eval
|
---|
6331 | arg=$1;
|
---|
6332 | case $arg in #(
|
---|
6333 | *"$as_nl"*)
|
---|
6334 | expr "X$arg" : "X\\(.*\\)$as_nl";
|
---|
6335 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
|
---|
6336 | esac;
|
---|
6337 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
|
---|
6338 | '
|
---|
6339 | export as_echo_n_body
|
---|
6340 | as_echo_n='sh -c $as_echo_n_body as_echo'
|
---|
6341 | fi
|
---|
6342 | export as_echo_body
|
---|
6343 | as_echo='sh -c $as_echo_body as_echo'
|
---|
6344 | fi
|
---|
6345 |
|
---|
6346 | # The user is always right.
|
---|
6347 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
6348 | PATH_SEPARATOR=:
|
---|
6349 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
|
---|
6350 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
|
---|
6351 | PATH_SEPARATOR=';'
|
---|
6352 | }
|
---|
6353 | fi
|
---|
6354 |
|
---|
6355 |
|
---|
6356 | # IFS
|
---|
6357 | # We need space, tab and new line, in precisely that order. Quoting is
|
---|
6358 | # there to prevent editors from complaining about space-tab.
|
---|
6359 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
---|
6360 | # splitting by setting IFS to empty value.)
|
---|
6361 | IFS=" "" $as_nl"
|
---|
6362 |
|
---|
6363 | # Find who we are. Look in the path if we contain no directory separator.
|
---|
6364 | as_myself=
|
---|
6365 | case $0 in #((
|
---|
6366 | *[\\/]* ) as_myself=$0 ;;
|
---|
6367 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
6368 | for as_dir in $PATH
|
---|
6369 | do
|
---|
6370 | IFS=$as_save_IFS
|
---|
6371 | test -z "$as_dir" && as_dir=.
|
---|
6372 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
6373 | done
|
---|
6374 | IFS=$as_save_IFS
|
---|
6375 |
|
---|
6376 | ;;
|
---|
6377 | esac
|
---|
6378 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
6379 | # in which case we are not to be found in the path.
|
---|
6380 | if test "x$as_myself" = x; then
|
---|
6381 | as_myself=$0
|
---|
6382 | fi
|
---|
6383 | if test ! -f "$as_myself"; then
|
---|
6384 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
---|
6385 | exit 1
|
---|
6386 | fi
|
---|
6387 |
|
---|
6388 | # Unset variables that we do not need and which cause bugs (e.g. in
|
---|
6389 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
|
---|
6390 | # suppresses any "Segmentation fault" message there. '((' could
|
---|
6391 | # trigger a bug in pdksh 5.2.14.
|
---|
6392 | for as_var in BASH_ENV ENV MAIL MAILPATH
|
---|
6393 | do eval test x\${$as_var+set} = xset \
|
---|
6394 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
|
---|
6395 | done
|
---|
6396 | PS1='$ '
|
---|
6397 | PS2='> '
|
---|
6398 | PS4='+ '
|
---|
6399 |
|
---|
6400 | # NLS nuisances.
|
---|
6401 | LC_ALL=C
|
---|
6402 | export LC_ALL
|
---|
6403 | LANGUAGE=C
|
---|
6404 | export LANGUAGE
|
---|
6405 |
|
---|
6406 | # CDPATH.
|
---|
6407 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
---|
6408 |
|
---|
6409 |
|
---|
6410 | # as_fn_error STATUS ERROR [LINENO LOG_FD]
|
---|
6411 | # ----------------------------------------
|
---|
6412 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
|
---|
6413 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
|
---|
6414 | # script with STATUS, using 1 if that was 0.
|
---|
6415 | as_fn_error ()
|
---|
6416 | {
|
---|
6417 | as_status=$1; test $as_status -eq 0 && as_status=1
|
---|
6418 | if test "$4"; then
|
---|
6419 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
6420 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
|
---|
6421 | fi
|
---|
6422 | $as_echo "$as_me: error: $2" >&2
|
---|
6423 | as_fn_exit $as_status
|
---|
6424 | } # as_fn_error
|
---|
6425 |
|
---|
6426 |
|
---|
6427 | # as_fn_set_status STATUS
|
---|
6428 | # -----------------------
|
---|
6429 | # Set $? to STATUS, without forking.
|
---|
6430 | as_fn_set_status ()
|
---|
6431 | {
|
---|
6432 | return $1
|
---|
6433 | } # as_fn_set_status
|
---|
6434 |
|
---|
6435 | # as_fn_exit STATUS
|
---|
6436 | # -----------------
|
---|
6437 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
|
---|
6438 | as_fn_exit ()
|
---|
6439 | {
|
---|
6440 | set +e
|
---|
6441 | as_fn_set_status $1
|
---|
6442 | exit $1
|
---|
6443 | } # as_fn_exit
|
---|
6444 |
|
---|
6445 | # as_fn_unset VAR
|
---|
6446 | # ---------------
|
---|
6447 | # Portably unset VAR.
|
---|
6448 | as_fn_unset ()
|
---|
6449 | {
|
---|
6450 | { eval $1=; unset $1;}
|
---|
6451 | }
|
---|
6452 | as_unset=as_fn_unset
|
---|
6453 | # as_fn_append VAR VALUE
|
---|
6454 | # ----------------------
|
---|
6455 | # Append the text in VALUE to the end of the definition contained in VAR. Take
|
---|
6456 | # advantage of any shell optimizations that allow amortized linear growth over
|
---|
6457 | # repeated appends, instead of the typical quadratic growth present in naive
|
---|
6458 | # implementations.
|
---|
6459 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
|
---|
6460 | eval 'as_fn_append ()
|
---|
6461 | {
|
---|
6462 | eval $1+=\$2
|
---|
6463 | }'
|
---|
6464 | else
|
---|
6465 | as_fn_append ()
|
---|
6466 | {
|
---|
6467 | eval $1=\$$1\$2
|
---|
6468 | }
|
---|
6469 | fi # as_fn_append
|
---|
6470 |
|
---|
6471 | # as_fn_arith ARG...
|
---|
6472 | # ------------------
|
---|
6473 | # Perform arithmetic evaluation on the ARGs, and store the result in the
|
---|
6474 | # global $as_val. Take advantage of shells that can avoid forks. The arguments
|
---|
6475 | # must be portable across $(()) and expr.
|
---|
6476 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
|
---|
6477 | eval 'as_fn_arith ()
|
---|
6478 | {
|
---|
6479 | as_val=$(( $* ))
|
---|
6480 | }'
|
---|
6481 | else
|
---|
6482 | as_fn_arith ()
|
---|
6483 | {
|
---|
6484 | as_val=`expr "$@" || test $? -eq 1`
|
---|
6485 | }
|
---|
6486 | fi # as_fn_arith
|
---|
6487 |
|
---|
6488 |
|
---|
6489 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
6490 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
6491 | as_expr=expr
|
---|
6492 | else
|
---|
6493 | as_expr=false
|
---|
6494 | fi
|
---|
6495 |
|
---|
6496 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
---|
6497 | as_basename=basename
|
---|
6498 | else
|
---|
6499 | as_basename=false
|
---|
6500 | fi
|
---|
6501 |
|
---|
6502 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
---|
6503 | as_dirname=dirname
|
---|
6504 | else
|
---|
6505 | as_dirname=false
|
---|
6506 | fi
|
---|
6507 |
|
---|
6508 | as_me=`$as_basename -- "$0" ||
|
---|
6509 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
6510 | X"$0" : 'X\(//\)$' \| \
|
---|
6511 | X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
6512 | $as_echo X/"$0" |
|
---|
6513 | sed '/^.*\/\([^/][^/]*\)\/*$/{
|
---|
6514 | s//\1/
|
---|
6515 | q
|
---|
6516 | }
|
---|
6517 | /^X\/\(\/\/\)$/{
|
---|
6518 | s//\1/
|
---|
6519 | q
|
---|
6520 | }
|
---|
6521 | /^X\/\(\/\).*/{
|
---|
6522 | s//\1/
|
---|
6523 | q
|
---|
6524 | }
|
---|
6525 | s/.*/./; q'`
|
---|
6526 |
|
---|
6527 | # Avoid depending upon Character Ranges.
|
---|
6528 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
6529 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
6530 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
6531 | as_cr_digits='0123456789'
|
---|
6532 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
6533 |
|
---|
6534 | ECHO_C= ECHO_N= ECHO_T=
|
---|
6535 | case `echo -n x` in #(((((
|
---|
6536 | -n*)
|
---|
6537 | case `echo 'xy\c'` in
|
---|
6538 | *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
---|
6539 | xy) ECHO_C='\c';;
|
---|
6540 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
|
---|
6541 | ECHO_T=' ';;
|
---|
6542 | esac;;
|
---|
6543 | *)
|
---|
6544 | ECHO_N='-n';;
|
---|
6545 | esac
|
---|
6546 |
|
---|
6547 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
6548 | if test -d conf$$.dir; then
|
---|
6549 | rm -f conf$$.dir/conf$$.file
|
---|
6550 | else
|
---|
6551 | rm -f conf$$.dir
|
---|
6552 | mkdir conf$$.dir 2>/dev/null
|
---|
6553 | fi
|
---|
6554 | if (echo >conf$$.file) 2>/dev/null; then
|
---|
6555 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
6556 | as_ln_s='ln -s'
|
---|
6557 | # ... but there are two gotchas:
|
---|
6558 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
---|
6559 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
---|
6560 | # In both cases, we have to default to `cp -pR'.
|
---|
6561 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
---|
6562 | as_ln_s='cp -pR'
|
---|
6563 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
6564 | as_ln_s=ln
|
---|
6565 | else
|
---|
6566 | as_ln_s='cp -pR'
|
---|
6567 | fi
|
---|
6568 | else
|
---|
6569 | as_ln_s='cp -pR'
|
---|
6570 | fi
|
---|
6571 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
---|
6572 | rmdir conf$$.dir 2>/dev/null
|
---|
6573 |
|
---|
6574 |
|
---|
6575 | # as_fn_mkdir_p
|
---|
6576 | # -------------
|
---|
6577 | # Create "$as_dir" as a directory, including parents if necessary.
|
---|
6578 | as_fn_mkdir_p ()
|
---|
6579 | {
|
---|
6580 |
|
---|
6581 | case $as_dir in #(
|
---|
6582 | -*) as_dir=./$as_dir;;
|
---|
6583 | esac
|
---|
6584 | test -d "$as_dir" || eval $as_mkdir_p || {
|
---|
6585 | as_dirs=
|
---|
6586 | while :; do
|
---|
6587 | case $as_dir in #(
|
---|
6588 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
|
---|
6589 | *) as_qdir=$as_dir;;
|
---|
6590 | esac
|
---|
6591 | as_dirs="'$as_qdir' $as_dirs"
|
---|
6592 | as_dir=`$as_dirname -- "$as_dir" ||
|
---|
6593 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
6594 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
6595 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
6596 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
6597 | $as_echo X"$as_dir" |
|
---|
6598 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
6599 | s//\1/
|
---|
6600 | q
|
---|
6601 | }
|
---|
6602 | /^X\(\/\/\)[^/].*/{
|
---|
6603 | s//\1/
|
---|
6604 | q
|
---|
6605 | }
|
---|
6606 | /^X\(\/\/\)$/{
|
---|
6607 | s//\1/
|
---|
6608 | q
|
---|
6609 | }
|
---|
6610 | /^X\(\/\).*/{
|
---|
6611 | s//\1/
|
---|
6612 | q
|
---|
6613 | }
|
---|
6614 | s/.*/./; q'`
|
---|
6615 | test -d "$as_dir" && break
|
---|
6616 | done
|
---|
6617 | test -z "$as_dirs" || eval "mkdir $as_dirs"
|
---|
6618 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
|
---|
6619 |
|
---|
6620 |
|
---|
6621 | } # as_fn_mkdir_p
|
---|
6622 | if mkdir -p . 2>/dev/null; then
|
---|
6623 | as_mkdir_p='mkdir -p "$as_dir"'
|
---|
6624 | else
|
---|
6625 | test -d ./-p && rmdir ./-p
|
---|
6626 | as_mkdir_p=false
|
---|
6627 | fi
|
---|
6628 |
|
---|
6629 |
|
---|
6630 | # as_fn_executable_p FILE
|
---|
6631 | # -----------------------
|
---|
6632 | # Test if FILE is an executable regular file.
|
---|
6633 | as_fn_executable_p ()
|
---|
6634 | {
|
---|
6635 | test -f "$1" && test -x "$1"
|
---|
6636 | } # as_fn_executable_p
|
---|
6637 | as_test_x='test -x'
|
---|
6638 | as_executable_p=as_fn_executable_p
|
---|
6639 |
|
---|
6640 | # Sed expression to map a string onto a valid CPP name.
|
---|
6641 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
6642 |
|
---|
6643 | # Sed expression to map a string onto a valid variable name.
|
---|
6644 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
6645 |
|
---|
6646 |
|
---|
6647 | exec 6>&1
|
---|
6648 | ## ----------------------------------- ##
|
---|
6649 | ## Main body of $CONFIG_STATUS script. ##
|
---|
6650 | ## ----------------------------------- ##
|
---|
6651 | _ASEOF
|
---|
6652 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
|
---|
6653 |
|
---|
6654 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
6655 | # Save the log message, to keep $0 and so on meaningful, and to
|
---|
6656 | # report actual input values of CONFIG_FILES etc. instead of their
|
---|
6657 | # values after options handling.
|
---|
6658 | ac_log="
|
---|
6659 | This file was extended by $as_me, which was
|
---|
6660 | generated by GNU Autoconf 2.69. Invocation command line was
|
---|
6661 |
|
---|
6662 | CONFIG_FILES = $CONFIG_FILES
|
---|
6663 | CONFIG_HEADERS = $CONFIG_HEADERS
|
---|
6664 | CONFIG_LINKS = $CONFIG_LINKS
|
---|
6665 | CONFIG_COMMANDS = $CONFIG_COMMANDS
|
---|
6666 | $ $0 $@
|
---|
6667 |
|
---|
6668 | on `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
6669 | "
|
---|
6670 |
|
---|
6671 | _ACEOF
|
---|
6672 |
|
---|
6673 | case $ac_config_files in *"
|
---|
6674 | "*) set x $ac_config_files; shift; ac_config_files=$*;;
|
---|
6675 | esac
|
---|
6676 |
|
---|
6677 | case $ac_config_headers in *"
|
---|
6678 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
|
---|
6679 | esac
|
---|
6680 |
|
---|
6681 |
|
---|
6682 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
6683 | # Files that config.status was made for.
|
---|
6684 | config_files="$ac_config_files"
|
---|
6685 | config_headers="$ac_config_headers"
|
---|
6686 | config_commands="$ac_config_commands"
|
---|
6687 |
|
---|
6688 | _ACEOF
|
---|
6689 |
|
---|
6690 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
6691 | ac_cs_usage="\
|
---|
6692 | \`$as_me' instantiates files and other configuration actions
|
---|
6693 | from templates according to the current configuration. Unless the files
|
---|
6694 | and actions are specified as TAGs, all are instantiated by default.
|
---|
6695 |
|
---|
6696 | Usage: $0 [OPTION]... [TAG]...
|
---|
6697 |
|
---|
6698 | -h, --help print this help, then exit
|
---|
6699 | -V, --version print version number and configuration settings, then exit
|
---|
6700 | --config print configuration, then exit
|
---|
6701 | -q, --quiet, --silent
|
---|
6702 | do not print progress messages
|
---|
6703 | -d, --debug don't remove temporary files
|
---|
6704 | --recheck update $as_me by reconfiguring in the same conditions
|
---|
6705 | --file=FILE[:TEMPLATE]
|
---|
6706 | instantiate the configuration file FILE
|
---|
6707 | --header=FILE[:TEMPLATE]
|
---|
6708 | instantiate the configuration header FILE
|
---|
6709 |
|
---|
6710 | Configuration files:
|
---|
6711 | $config_files
|
---|
6712 |
|
---|
6713 | Configuration headers:
|
---|
6714 | $config_headers
|
---|
6715 |
|
---|
6716 | Configuration commands:
|
---|
6717 | $config_commands
|
---|
6718 |
|
---|
6719 | Report bugs to the package provider."
|
---|
6720 |
|
---|
6721 | _ACEOF
|
---|
6722 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
6723 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
|
---|
6724 | ac_cs_version="\\
|
---|
6725 | config.status
|
---|
6726 | configured by $0, generated by GNU Autoconf 2.69,
|
---|
6727 | with options \\"\$ac_cs_config\\"
|
---|
6728 |
|
---|
6729 | Copyright (C) 2012 Free Software Foundation, Inc.
|
---|
6730 | This config.status script is free software; the Free Software Foundation
|
---|
6731 | gives unlimited permission to copy, distribute and modify it."
|
---|
6732 |
|
---|
6733 | ac_pwd='$ac_pwd'
|
---|
6734 | srcdir='$srcdir'
|
---|
6735 | INSTALL='$INSTALL'
|
---|
6736 | AWK='$AWK'
|
---|
6737 | test -n "\$AWK" || AWK=awk
|
---|
6738 | _ACEOF
|
---|
6739 |
|
---|
6740 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
6741 | # The default lists apply if the user does not specify any file.
|
---|
6742 | ac_need_defaults=:
|
---|
6743 | while test $# != 0
|
---|
6744 | do
|
---|
6745 | case $1 in
|
---|
6746 | --*=?*)
|
---|
6747 | ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
---|
6748 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
|
---|
6749 | ac_shift=:
|
---|
6750 | ;;
|
---|
6751 | --*=)
|
---|
6752 | ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
---|
6753 | ac_optarg=
|
---|
6754 | ac_shift=:
|
---|
6755 | ;;
|
---|
6756 | *)
|
---|
6757 | ac_option=$1
|
---|
6758 | ac_optarg=$2
|
---|
6759 | ac_shift=shift
|
---|
6760 | ;;
|
---|
6761 | esac
|
---|
6762 |
|
---|
6763 | case $ac_option in
|
---|
6764 | # Handling of the options.
|
---|
6765 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
6766 | ac_cs_recheck=: ;;
|
---|
6767 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
|
---|
6768 | $as_echo "$ac_cs_version"; exit ;;
|
---|
6769 | --config | --confi | --conf | --con | --co | --c )
|
---|
6770 | $as_echo "$ac_cs_config"; exit ;;
|
---|
6771 | --debug | --debu | --deb | --de | --d | -d )
|
---|
6772 | debug=: ;;
|
---|
6773 | --file | --fil | --fi | --f )
|
---|
6774 | $ac_shift
|
---|
6775 | case $ac_optarg in
|
---|
6776 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
6777 | '') as_fn_error $? "missing file argument" ;;
|
---|
6778 | esac
|
---|
6779 | as_fn_append CONFIG_FILES " '$ac_optarg'"
|
---|
6780 | ac_need_defaults=false;;
|
---|
6781 | --header | --heade | --head | --hea )
|
---|
6782 | $ac_shift
|
---|
6783 | case $ac_optarg in
|
---|
6784 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
6785 | esac
|
---|
6786 | as_fn_append CONFIG_HEADERS " '$ac_optarg'"
|
---|
6787 | ac_need_defaults=false;;
|
---|
6788 | --he | --h)
|
---|
6789 | # Conflict between --help and --header
|
---|
6790 | as_fn_error $? "ambiguous option: \`$1'
|
---|
6791 | Try \`$0 --help' for more information.";;
|
---|
6792 | --help | --hel | -h )
|
---|
6793 | $as_echo "$ac_cs_usage"; exit ;;
|
---|
6794 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
6795 | | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
---|
6796 | ac_cs_silent=: ;;
|
---|
6797 |
|
---|
6798 | # This is an error.
|
---|
6799 | -*) as_fn_error $? "unrecognized option: \`$1'
|
---|
6800 | Try \`$0 --help' for more information." ;;
|
---|
6801 |
|
---|
6802 | *) as_fn_append ac_config_targets " $1"
|
---|
6803 | ac_need_defaults=false ;;
|
---|
6804 |
|
---|
6805 | esac
|
---|
6806 | shift
|
---|
6807 | done
|
---|
6808 |
|
---|
6809 | ac_configure_extra_args=
|
---|
6810 |
|
---|
6811 | if $ac_cs_silent; then
|
---|
6812 | exec 6>/dev/null
|
---|
6813 | ac_configure_extra_args="$ac_configure_extra_args --silent"
|
---|
6814 | fi
|
---|
6815 |
|
---|
6816 | _ACEOF
|
---|
6817 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
6818 | if \$ac_cs_recheck; then
|
---|
6819 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
---|
6820 | shift
|
---|
6821 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
|
---|
6822 | CONFIG_SHELL='$SHELL'
|
---|
6823 | export CONFIG_SHELL
|
---|
6824 | exec "\$@"
|
---|
6825 | fi
|
---|
6826 |
|
---|
6827 | _ACEOF
|
---|
6828 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
6829 | exec 5>>config.log
|
---|
6830 | {
|
---|
6831 | echo
|
---|
6832 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
---|
6833 | ## Running $as_me. ##
|
---|
6834 | _ASBOX
|
---|
6835 | $as_echo "$ac_log"
|
---|
6836 | } >&5
|
---|
6837 |
|
---|
6838 | _ACEOF
|
---|
6839 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
6840 | _ACEOF
|
---|
6841 |
|
---|
6842 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
6843 |
|
---|
6844 | # Handling of arguments.
|
---|
6845 | for ac_config_target in $ac_config_targets
|
---|
6846 | do
|
---|
6847 | case $ac_config_target in
|
---|
6848 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
---|
6849 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
---|
6850 | "src/text/Makefile") CONFIG_FILES="$CONFIG_FILES src/text/Makefile" ;;
|
---|
6851 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
|
---|
6852 | "jni/Makefile") CONFIG_FILES="$CONFIG_FILES jni/Makefile" ;;
|
---|
6853 | "java/org/greenstone/mg/Makefile") CONFIG_FILES="$CONFIG_FILES java/org/greenstone/mg/Makefile" ;;
|
---|
6854 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
|
---|
6855 |
|
---|
6856 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
|
---|
6857 | esac
|
---|
6858 | done
|
---|
6859 |
|
---|
6860 |
|
---|
6861 | # If the user did not use the arguments to specify the items to instantiate,
|
---|
6862 | # then the envvar interface is used. Set only those that are not.
|
---|
6863 | # We use the long form for the default assignment because of an extremely
|
---|
6864 | # bizarre bug on SunOS 4.1.3.
|
---|
6865 | if $ac_need_defaults; then
|
---|
6866 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
---|
6867 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
---|
6868 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
|
---|
6869 | fi
|
---|
6870 |
|
---|
6871 | # Have a temporary directory for convenience. Make it in the build tree
|
---|
6872 | # simply because there is no reason against having it here, and in addition,
|
---|
6873 | # creating and moving files from /tmp can sometimes cause problems.
|
---|
6874 | # Hook for its removal unless debugging.
|
---|
6875 | # Note that there is a small window in which the directory will not be cleaned:
|
---|
6876 | # after its creation but before its name has been assigned to `$tmp'.
|
---|
6877 | $debug ||
|
---|
6878 | {
|
---|
6879 | tmp= ac_tmp=
|
---|
6880 | trap 'exit_status=$?
|
---|
6881 | : "${ac_tmp:=$tmp}"
|
---|
6882 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
|
---|
6883 | ' 0
|
---|
6884 | trap 'as_fn_exit 1' 1 2 13 15
|
---|
6885 | }
|
---|
6886 | # Create a (secure) tmp directory for tmp files.
|
---|
6887 |
|
---|
6888 | {
|
---|
6889 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
|
---|
6890 | test -d "$tmp"
|
---|
6891 | } ||
|
---|
6892 | {
|
---|
6893 | tmp=./conf$$-$RANDOM
|
---|
6894 | (umask 077 && mkdir "$tmp")
|
---|
6895 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
|
---|
6896 | ac_tmp=$tmp
|
---|
6897 |
|
---|
6898 | # Set up the scripts for CONFIG_FILES section.
|
---|
6899 | # No need to generate them if there are no CONFIG_FILES.
|
---|
6900 | # This happens for instance with `./config.status config.h'.
|
---|
6901 | if test -n "$CONFIG_FILES"; then
|
---|
6902 |
|
---|
6903 |
|
---|
6904 | ac_cr=`echo X | tr X '\015'`
|
---|
6905 | # On cygwin, bash can eat \r inside `` if the user requested igncr.
|
---|
6906 | # But we know of no other shell where ac_cr would be empty at this
|
---|
6907 | # point, so we can use a bashism as a fallback.
|
---|
6908 | if test "x$ac_cr" = x; then
|
---|
6909 | eval ac_cr=\$\'\\r\'
|
---|
6910 | fi
|
---|
6911 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
|
---|
6912 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
|
---|
6913 | ac_cs_awk_cr='\\r'
|
---|
6914 | else
|
---|
6915 | ac_cs_awk_cr=$ac_cr
|
---|
6916 | fi
|
---|
6917 |
|
---|
6918 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
|
---|
6919 | _ACEOF
|
---|
6920 |
|
---|
6921 |
|
---|
6922 | {
|
---|
6923 | echo "cat >conf$$subs.awk <<_ACEOF" &&
|
---|
6924 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
|
---|
6925 | echo "_ACEOF"
|
---|
6926 | } >conf$$subs.sh ||
|
---|
6927 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
6928 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
|
---|
6929 | ac_delim='%!_!# '
|
---|
6930 | for ac_last_try in false false false false false :; do
|
---|
6931 | . ./conf$$subs.sh ||
|
---|
6932 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
6933 |
|
---|
6934 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
|
---|
6935 | if test $ac_delim_n = $ac_delim_num; then
|
---|
6936 | break
|
---|
6937 | elif $ac_last_try; then
|
---|
6938 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
6939 | else
|
---|
6940 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
---|
6941 | fi
|
---|
6942 | done
|
---|
6943 | rm -f conf$$subs.sh
|
---|
6944 |
|
---|
6945 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
6946 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
|
---|
6947 | _ACEOF
|
---|
6948 | sed -n '
|
---|
6949 | h
|
---|
6950 | s/^/S["/; s/!.*/"]=/
|
---|
6951 | p
|
---|
6952 | g
|
---|
6953 | s/^[^!]*!//
|
---|
6954 | :repl
|
---|
6955 | t repl
|
---|
6956 | s/'"$ac_delim"'$//
|
---|
6957 | t delim
|
---|
6958 | :nl
|
---|
6959 | h
|
---|
6960 | s/\(.\{148\}\)..*/\1/
|
---|
6961 | t more1
|
---|
6962 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
|
---|
6963 | p
|
---|
6964 | n
|
---|
6965 | b repl
|
---|
6966 | :more1
|
---|
6967 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/
|
---|
6968 | p
|
---|
6969 | g
|
---|
6970 | s/.\{148\}//
|
---|
6971 | t nl
|
---|
6972 | :delim
|
---|
6973 | h
|
---|
6974 | s/\(.\{148\}\)..*/\1/
|
---|
6975 | t more2
|
---|
6976 | s/["\\]/\\&/g; s/^/"/; s/$/"/
|
---|
6977 | p
|
---|
6978 | b
|
---|
6979 | :more2
|
---|
6980 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/
|
---|
6981 | p
|
---|
6982 | g
|
---|
6983 | s/.\{148\}//
|
---|
6984 | t delim
|
---|
6985 | ' <conf$$subs.awk | sed '
|
---|
6986 | /^[^""]/{
|
---|
6987 | N
|
---|
6988 | s/\n//
|
---|
6989 | }
|
---|
6990 | ' >>$CONFIG_STATUS || ac_write_fail=1
|
---|
6991 | rm -f conf$$subs.awk
|
---|
6992 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
6993 | _ACAWK
|
---|
6994 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
|
---|
6995 | for (key in S) S_is_set[key] = 1
|
---|
6996 | FS = ""
|
---|
6997 |
|
---|
6998 | }
|
---|
6999 | {
|
---|
7000 | line = $ 0
|
---|
7001 | nfields = split(line, field, "@")
|
---|
7002 | substed = 0
|
---|
7003 | len = length(field[1])
|
---|
7004 | for (i = 2; i < nfields; i++) {
|
---|
7005 | key = field[i]
|
---|
7006 | keylen = length(key)
|
---|
7007 | if (S_is_set[key]) {
|
---|
7008 | value = S[key]
|
---|
7009 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
|
---|
7010 | len += length(value) + length(field[++i])
|
---|
7011 | substed = 1
|
---|
7012 | } else
|
---|
7013 | len += 1 + keylen
|
---|
7014 | }
|
---|
7015 |
|
---|
7016 | print line
|
---|
7017 | }
|
---|
7018 |
|
---|
7019 | _ACAWK
|
---|
7020 | _ACEOF
|
---|
7021 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7022 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
|
---|
7023 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
|
---|
7024 | else
|
---|
7025 | cat
|
---|
7026 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
|
---|
7027 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
|
---|
7028 | _ACEOF
|
---|
7029 |
|
---|
7030 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
|
---|
7031 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
|
---|
7032 | # trailing colons and then remove the whole line if VPATH becomes empty
|
---|
7033 | # (actually we leave an empty line to preserve line numbers).
|
---|
7034 | if test "x$srcdir" = x.; then
|
---|
7035 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
|
---|
7036 | h
|
---|
7037 | s///
|
---|
7038 | s/^/:/
|
---|
7039 | s/[ ]*$/:/
|
---|
7040 | s/:\$(srcdir):/:/g
|
---|
7041 | s/:\${srcdir}:/:/g
|
---|
7042 | s/:@srcdir@:/:/g
|
---|
7043 | s/^:*//
|
---|
7044 | s/:*$//
|
---|
7045 | x
|
---|
7046 | s/\(=[ ]*\).*/\1/
|
---|
7047 | G
|
---|
7048 | s/\n//
|
---|
7049 | s/^[^=]*=[ ]*$//
|
---|
7050 | }'
|
---|
7051 | fi
|
---|
7052 |
|
---|
7053 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7054 | fi # test -n "$CONFIG_FILES"
|
---|
7055 |
|
---|
7056 | # Set up the scripts for CONFIG_HEADERS section.
|
---|
7057 | # No need to generate them if there are no CONFIG_HEADERS.
|
---|
7058 | # This happens for instance with `./config.status Makefile'.
|
---|
7059 | if test -n "$CONFIG_HEADERS"; then
|
---|
7060 | cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
|
---|
7061 | BEGIN {
|
---|
7062 | _ACEOF
|
---|
7063 |
|
---|
7064 | # Transform confdefs.h into an awk script `defines.awk', embedded as
|
---|
7065 | # here-document in config.status, that substitutes the proper values into
|
---|
7066 | # config.h.in to produce config.h.
|
---|
7067 |
|
---|
7068 | # Create a delimiter string that does not exist in confdefs.h, to ease
|
---|
7069 | # handling of long lines.
|
---|
7070 | ac_delim='%!_!# '
|
---|
7071 | for ac_last_try in false false :; do
|
---|
7072 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
|
---|
7073 | if test -z "$ac_tt"; then
|
---|
7074 | break
|
---|
7075 | elif $ac_last_try; then
|
---|
7076 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
|
---|
7077 | else
|
---|
7078 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
---|
7079 | fi
|
---|
7080 | done
|
---|
7081 |
|
---|
7082 | # For the awk script, D is an array of macro values keyed by name,
|
---|
7083 | # likewise P contains macro parameters if any. Preserve backslash
|
---|
7084 | # newline sequences.
|
---|
7085 |
|
---|
7086 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
|
---|
7087 | sed -n '
|
---|
7088 | s/.\{148\}/&'"$ac_delim"'/g
|
---|
7089 | t rset
|
---|
7090 | :rset
|
---|
7091 | s/^[ ]*#[ ]*define[ ][ ]*/ /
|
---|
7092 | t def
|
---|
7093 | d
|
---|
7094 | :def
|
---|
7095 | s/\\$//
|
---|
7096 | t bsnl
|
---|
7097 | s/["\\]/\\&/g
|
---|
7098 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
|
---|
7099 | D["\1"]=" \3"/p
|
---|
7100 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
|
---|
7101 | d
|
---|
7102 | :bsnl
|
---|
7103 | s/["\\]/\\&/g
|
---|
7104 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
|
---|
7105 | D["\1"]=" \3\\\\\\n"\\/p
|
---|
7106 | t cont
|
---|
7107 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
|
---|
7108 | t cont
|
---|
7109 | d
|
---|
7110 | :cont
|
---|
7111 | n
|
---|
7112 | s/.\{148\}/&'"$ac_delim"'/g
|
---|
7113 | t clear
|
---|
7114 | :clear
|
---|
7115 | s/\\$//
|
---|
7116 | t bsnlc
|
---|
7117 | s/["\\]/\\&/g; s/^/"/; s/$/"/p
|
---|
7118 | d
|
---|
7119 | :bsnlc
|
---|
7120 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
|
---|
7121 | b cont
|
---|
7122 | ' <confdefs.h | sed '
|
---|
7123 | s/'"$ac_delim"'/"\\\
|
---|
7124 | "/g' >>$CONFIG_STATUS || ac_write_fail=1
|
---|
7125 |
|
---|
7126 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
7127 | for (key in D) D_is_set[key] = 1
|
---|
7128 | FS = ""
|
---|
7129 | }
|
---|
7130 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
|
---|
7131 | line = \$ 0
|
---|
7132 | split(line, arg, " ")
|
---|
7133 | if (arg[1] == "#") {
|
---|
7134 | defundef = arg[2]
|
---|
7135 | mac1 = arg[3]
|
---|
7136 | } else {
|
---|
7137 | defundef = substr(arg[1], 2)
|
---|
7138 | mac1 = arg[2]
|
---|
7139 | }
|
---|
7140 | split(mac1, mac2, "(") #)
|
---|
7141 | macro = mac2[1]
|
---|
7142 | prefix = substr(line, 1, index(line, defundef) - 1)
|
---|
7143 | if (D_is_set[macro]) {
|
---|
7144 | # Preserve the white space surrounding the "#".
|
---|
7145 | print prefix "define", macro P[macro] D[macro]
|
---|
7146 | next
|
---|
7147 | } else {
|
---|
7148 | # Replace #undef with comments. This is necessary, for example,
|
---|
7149 | # in the case of _POSIX_SOURCE, which is predefined and required
|
---|
7150 | # on some systems where configure will not decide to define it.
|
---|
7151 | if (defundef == "undef") {
|
---|
7152 | print "/*", prefix defundef, macro, "*/"
|
---|
7153 | next
|
---|
7154 | }
|
---|
7155 | }
|
---|
7156 | }
|
---|
7157 | { print }
|
---|
7158 | _ACAWK
|
---|
7159 | _ACEOF
|
---|
7160 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7161 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
|
---|
7162 | fi # test -n "$CONFIG_HEADERS"
|
---|
7163 |
|
---|
7164 |
|
---|
7165 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
|
---|
7166 | shift
|
---|
7167 | for ac_tag
|
---|
7168 | do
|
---|
7169 | case $ac_tag in
|
---|
7170 | :[FHLC]) ac_mode=$ac_tag; continue;;
|
---|
7171 | esac
|
---|
7172 | case $ac_mode$ac_tag in
|
---|
7173 | :[FHL]*:*);;
|
---|
7174 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
|
---|
7175 | :[FH]-) ac_tag=-:-;;
|
---|
7176 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
|
---|
7177 | esac
|
---|
7178 | ac_save_IFS=$IFS
|
---|
7179 | IFS=:
|
---|
7180 | set x $ac_tag
|
---|
7181 | IFS=$ac_save_IFS
|
---|
7182 | shift
|
---|
7183 | ac_file=$1
|
---|
7184 | shift
|
---|
7185 |
|
---|
7186 | case $ac_mode in
|
---|
7187 | :L) ac_source=$1;;
|
---|
7188 | :[FH])
|
---|
7189 | ac_file_inputs=
|
---|
7190 | for ac_f
|
---|
7191 | do
|
---|
7192 | case $ac_f in
|
---|
7193 | -) ac_f="$ac_tmp/stdin";;
|
---|
7194 | *) # Look for the file first in the build tree, then in the source tree
|
---|
7195 | # (if the path is not absolute). The absolute path cannot be DOS-style,
|
---|
7196 | # because $ac_f cannot contain `:'.
|
---|
7197 | test -f "$ac_f" ||
|
---|
7198 | case $ac_f in
|
---|
7199 | [\\/$]*) false;;
|
---|
7200 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
|
---|
7201 | esac ||
|
---|
7202 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
|
---|
7203 | esac
|
---|
7204 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
|
---|
7205 | as_fn_append ac_file_inputs " '$ac_f'"
|
---|
7206 | done
|
---|
7207 |
|
---|
7208 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
7209 | # use $as_me), people would be surprised to read:
|
---|
7210 | # /* config.h. Generated by config.status. */
|
---|
7211 | configure_input='Generated from '`
|
---|
7212 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
|
---|
7213 | `' by configure.'
|
---|
7214 | if test x"$ac_file" != x-; then
|
---|
7215 | configure_input="$ac_file. $configure_input"
|
---|
7216 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
|
---|
7217 | $as_echo "$as_me: creating $ac_file" >&6;}
|
---|
7218 | fi
|
---|
7219 | # Neutralize special characters interpreted by sed in replacement strings.
|
---|
7220 | case $configure_input in #(
|
---|
7221 | *\&* | *\|* | *\\* )
|
---|
7222 | ac_sed_conf_input=`$as_echo "$configure_input" |
|
---|
7223 | sed 's/[\\\\&|]/\\\\&/g'`;; #(
|
---|
7224 | *) ac_sed_conf_input=$configure_input;;
|
---|
7225 | esac
|
---|
7226 |
|
---|
7227 | case $ac_tag in
|
---|
7228 | *:-:* | *:-) cat >"$ac_tmp/stdin" \
|
---|
7229 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
|
---|
7230 | esac
|
---|
7231 | ;;
|
---|
7232 | esac
|
---|
7233 |
|
---|
7234 | ac_dir=`$as_dirname -- "$ac_file" ||
|
---|
7235 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
7236 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
7237 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
7238 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
7239 | $as_echo X"$ac_file" |
|
---|
7240 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
7241 | s//\1/
|
---|
7242 | q
|
---|
7243 | }
|
---|
7244 | /^X\(\/\/\)[^/].*/{
|
---|
7245 | s//\1/
|
---|
7246 | q
|
---|
7247 | }
|
---|
7248 | /^X\(\/\/\)$/{
|
---|
7249 | s//\1/
|
---|
7250 | q
|
---|
7251 | }
|
---|
7252 | /^X\(\/\).*/{
|
---|
7253 | s//\1/
|
---|
7254 | q
|
---|
7255 | }
|
---|
7256 | s/.*/./; q'`
|
---|
7257 | as_dir="$ac_dir"; as_fn_mkdir_p
|
---|
7258 | ac_builddir=.
|
---|
7259 |
|
---|
7260 | case "$ac_dir" in
|
---|
7261 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
7262 | *)
|
---|
7263 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
|
---|
7264 | # A ".." for each directory in $ac_dir_suffix.
|
---|
7265 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
---|
7266 | case $ac_top_builddir_sub in
|
---|
7267 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
7268 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
7269 | esac ;;
|
---|
7270 | esac
|
---|
7271 | ac_abs_top_builddir=$ac_pwd
|
---|
7272 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
7273 | # for backward compatibility:
|
---|
7274 | ac_top_builddir=$ac_top_build_prefix
|
---|
7275 |
|
---|
7276 | case $srcdir in
|
---|
7277 | .) # We are building in place.
|
---|
7278 | ac_srcdir=.
|
---|
7279 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
7280 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
7281 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
7282 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
7283 | ac_top_srcdir=$srcdir
|
---|
7284 | ac_abs_top_srcdir=$srcdir ;;
|
---|
7285 | *) # Relative name.
|
---|
7286 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
7287 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
7288 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
7289 | esac
|
---|
7290 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
7291 |
|
---|
7292 |
|
---|
7293 | case $ac_mode in
|
---|
7294 | :F)
|
---|
7295 | #
|
---|
7296 | # CONFIG_FILE
|
---|
7297 | #
|
---|
7298 |
|
---|
7299 | case $INSTALL in
|
---|
7300 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
---|
7301 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
|
---|
7302 | esac
|
---|
7303 | _ACEOF
|
---|
7304 |
|
---|
7305 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7306 | # If the template does not know about datarootdir, expand it.
|
---|
7307 | # FIXME: This hack should be removed a few years after 2.60.
|
---|
7308 | ac_datarootdir_hack=; ac_datarootdir_seen=
|
---|
7309 | ac_sed_dataroot='
|
---|
7310 | /datarootdir/ {
|
---|
7311 | p
|
---|
7312 | q
|
---|
7313 | }
|
---|
7314 | /@datadir@/p
|
---|
7315 | /@docdir@/p
|
---|
7316 | /@infodir@/p
|
---|
7317 | /@localedir@/p
|
---|
7318 | /@mandir@/p'
|
---|
7319 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
|
---|
7320 | *datarootdir*) ac_datarootdir_seen=yes;;
|
---|
7321 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
|
---|
7322 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
|
---|
7323 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
|
---|
7324 | _ACEOF
|
---|
7325 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
7326 | ac_datarootdir_hack='
|
---|
7327 | s&@datadir@&$datadir&g
|
---|
7328 | s&@docdir@&$docdir&g
|
---|
7329 | s&@infodir@&$infodir&g
|
---|
7330 | s&@localedir@&$localedir&g
|
---|
7331 | s&@mandir@&$mandir&g
|
---|
7332 | s&\\\${datarootdir}&$datarootdir&g' ;;
|
---|
7333 | esac
|
---|
7334 | _ACEOF
|
---|
7335 |
|
---|
7336 | # Neutralize VPATH when `$srcdir' = `.'.
|
---|
7337 | # Shell code in configure.ac might set extrasub.
|
---|
7338 | # FIXME: do we really want to maintain this feature?
|
---|
7339 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
7340 | ac_sed_extra="$ac_vpsub
|
---|
7341 | $extrasub
|
---|
7342 | _ACEOF
|
---|
7343 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7344 | :t
|
---|
7345 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
---|
7346 | s|@configure_input@|$ac_sed_conf_input|;t t
|
---|
7347 | s&@top_builddir@&$ac_top_builddir_sub&;t t
|
---|
7348 | s&@top_build_prefix@&$ac_top_build_prefix&;t t
|
---|
7349 | s&@srcdir@&$ac_srcdir&;t t
|
---|
7350 | s&@abs_srcdir@&$ac_abs_srcdir&;t t
|
---|
7351 | s&@top_srcdir@&$ac_top_srcdir&;t t
|
---|
7352 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
|
---|
7353 | s&@builddir@&$ac_builddir&;t t
|
---|
7354 | s&@abs_builddir@&$ac_abs_builddir&;t t
|
---|
7355 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
|
---|
7356 | s&@INSTALL@&$ac_INSTALL&;t t
|
---|
7357 | $ac_datarootdir_hack
|
---|
7358 | "
|
---|
7359 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
|
---|
7360 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
7361 |
|
---|
7362 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
|
---|
7363 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
|
---|
7364 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
|
---|
7365 | "$ac_tmp/out"`; test -z "$ac_out"; } &&
|
---|
7366 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
---|
7367 | which seems to be undefined. Please make sure it is defined" >&5
|
---|
7368 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
---|
7369 | which seems to be undefined. Please make sure it is defined" >&2;}
|
---|
7370 |
|
---|
7371 | rm -f "$ac_tmp/stdin"
|
---|
7372 | case $ac_file in
|
---|
7373 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
|
---|
7374 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
|
---|
7375 | esac \
|
---|
7376 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
7377 | ;;
|
---|
7378 | :H)
|
---|
7379 | #
|
---|
7380 | # CONFIG_HEADER
|
---|
7381 | #
|
---|
7382 | if test x"$ac_file" != x-; then
|
---|
7383 | {
|
---|
7384 | $as_echo "/* $configure_input */" \
|
---|
7385 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
|
---|
7386 | } >"$ac_tmp/config.h" \
|
---|
7387 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
7388 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
|
---|
7389 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
|
---|
7390 | $as_echo "$as_me: $ac_file is unchanged" >&6;}
|
---|
7391 | else
|
---|
7392 | rm -f "$ac_file"
|
---|
7393 | mv "$ac_tmp/config.h" "$ac_file" \
|
---|
7394 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
7395 | fi
|
---|
7396 | else
|
---|
7397 | $as_echo "/* $configure_input */" \
|
---|
7398 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
|
---|
7399 | || as_fn_error $? "could not create -" "$LINENO" 5
|
---|
7400 | fi
|
---|
7401 | ;;
|
---|
7402 |
|
---|
7403 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
|
---|
7404 | $as_echo "$as_me: executing $ac_file commands" >&6;}
|
---|
7405 | ;;
|
---|
7406 | esac
|
---|
7407 |
|
---|
7408 |
|
---|
7409 | case $ac_file$ac_mode in
|
---|
7410 | "default":C) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
|
---|
7411 |
|
---|
7412 | esac
|
---|
7413 | done # for ac_tag
|
---|
7414 |
|
---|
7415 |
|
---|
7416 | as_fn_exit 0
|
---|
7417 | _ACEOF
|
---|
7418 | ac_clean_files=$ac_clean_files_save
|
---|
7419 |
|
---|
7420 | test $ac_write_fail = 0 ||
|
---|
7421 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
|
---|
7422 |
|
---|
7423 |
|
---|
7424 | # configure is writing to config.log, and then calls config.status.
|
---|
7425 | # config.status does its own redirection, appending to config.log.
|
---|
7426 | # Unfortunately, on DOS this fails, as config.log is still kept open
|
---|
7427 | # by configure, so config.status won't be able to write to it; its
|
---|
7428 | # output is simply discarded. So we exec the FD to /dev/null,
|
---|
7429 | # effectively closing config.log, so it can be properly (re)opened and
|
---|
7430 | # appended to by config.status. When coming back to configure, we
|
---|
7431 | # need to make the FD available again.
|
---|
7432 | if test "$no_create" != yes; then
|
---|
7433 | ac_cs_success=:
|
---|
7434 | ac_config_status_args=
|
---|
7435 | test "$silent" = yes &&
|
---|
7436 | ac_config_status_args="$ac_config_status_args --quiet"
|
---|
7437 | exec 5>/dev/null
|
---|
7438 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
---|
7439 | exec 5>>config.log
|
---|
7440 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
---|
7441 | # would make configure fail if this is the last instruction.
|
---|
7442 | $ac_cs_success || as_fn_exit 1
|
---|
7443 | fi
|
---|
7444 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
|
---|
7445 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
|
---|
7446 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
|
---|
7447 | fi
|
---|
7448 |
|
---|
7449 |
|
---|
7450 | # To prevent timestamp problems causing bool_parser.c to be generated from bool_parser.y
|
---|
7451 | touch src/text/bool_parser.c
|
---|