1 | #! /bin/sh
|
---|
2 | # From configure.in Revision: 26707 .
|
---|
3 | # Guess values for system-dependent variables and create Makefiles.
|
---|
4 | # Generated by GNU Autoconf 2.69.
|
---|
5 | #
|
---|
6 | #
|
---|
7 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
|
---|
8 | #
|
---|
9 | #
|
---|
10 | # This configure script is free software; the Free Software Foundation
|
---|
11 | # gives unlimited permission to copy, distribute and modify it.
|
---|
12 | ## -------------------- ##
|
---|
13 | ## M4sh Initialization. ##
|
---|
14 | ## -------------------- ##
|
---|
15 |
|
---|
16 | # Be more Bourne compatible
|
---|
17 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
18 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
|
---|
19 | emulate sh
|
---|
20 | NULLCMD=:
|
---|
21 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
|
---|
22 | # is contrary to our usage. Disable this feature.
|
---|
23 | alias -g '${1+"$@"}'='"$@"'
|
---|
24 | setopt NO_GLOB_SUBST
|
---|
25 | else
|
---|
26 | case `(set -o) 2>/dev/null` in #(
|
---|
27 | *posix*) :
|
---|
28 | set -o posix ;; #(
|
---|
29 | *) :
|
---|
30 | ;;
|
---|
31 | esac
|
---|
32 | fi
|
---|
33 |
|
---|
34 |
|
---|
35 | as_nl='
|
---|
36 | '
|
---|
37 | export as_nl
|
---|
38 | # Printing a long string crashes Solaris 7 /usr/bin/printf.
|
---|
39 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
---|
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
42 | # Prefer a ksh shell builtin over an external printf program on Solaris,
|
---|
43 | # but without wasting forks for bash or zsh.
|
---|
44 | if test -z "$BASH_VERSION$ZSH_VERSION" \
|
---|
45 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
46 | as_echo='print -r --'
|
---|
47 | as_echo_n='print -rn --'
|
---|
48 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
49 | as_echo='printf %s\n'
|
---|
50 | as_echo_n='printf %s'
|
---|
51 | else
|
---|
52 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
|
---|
53 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
|
---|
54 | as_echo_n='/usr/ucb/echo -n'
|
---|
55 | else
|
---|
56 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
|
---|
57 | as_echo_n_body='eval
|
---|
58 | arg=$1;
|
---|
59 | case $arg in #(
|
---|
60 | *"$as_nl"*)
|
---|
61 | expr "X$arg" : "X\\(.*\\)$as_nl";
|
---|
62 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
|
---|
63 | esac;
|
---|
64 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
|
---|
65 | '
|
---|
66 | export as_echo_n_body
|
---|
67 | as_echo_n='sh -c $as_echo_n_body as_echo'
|
---|
68 | fi
|
---|
69 | export as_echo_body
|
---|
70 | as_echo='sh -c $as_echo_body as_echo'
|
---|
71 | fi
|
---|
72 |
|
---|
73 | # The user is always right.
|
---|
74 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
75 | PATH_SEPARATOR=:
|
---|
76 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
|
---|
77 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
|
---|
78 | PATH_SEPARATOR=';'
|
---|
79 | }
|
---|
80 | fi
|
---|
81 |
|
---|
82 |
|
---|
83 | # IFS
|
---|
84 | # We need space, tab and new line, in precisely that order. Quoting is
|
---|
85 | # there to prevent editors from complaining about space-tab.
|
---|
86 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
---|
87 | # splitting by setting IFS to empty value.)
|
---|
88 | IFS=" "" $as_nl"
|
---|
89 |
|
---|
90 | # Find who we are. Look in the path if we contain no directory separator.
|
---|
91 | as_myself=
|
---|
92 | case $0 in #((
|
---|
93 | *[\\/]* ) as_myself=$0 ;;
|
---|
94 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
95 | for as_dir in $PATH
|
---|
96 | do
|
---|
97 | IFS=$as_save_IFS
|
---|
98 | test -z "$as_dir" && as_dir=.
|
---|
99 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
100 | done
|
---|
101 | IFS=$as_save_IFS
|
---|
102 |
|
---|
103 | ;;
|
---|
104 | esac
|
---|
105 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
106 | # in which case we are not to be found in the path.
|
---|
107 | if test "x$as_myself" = x; then
|
---|
108 | as_myself=$0
|
---|
109 | fi
|
---|
110 | if test ! -f "$as_myself"; then
|
---|
111 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
---|
112 | exit 1
|
---|
113 | fi
|
---|
114 |
|
---|
115 | # Unset variables that we do not need and which cause bugs (e.g. in
|
---|
116 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
|
---|
117 | # suppresses any "Segmentation fault" message there. '((' could
|
---|
118 | # trigger a bug in pdksh 5.2.14.
|
---|
119 | for as_var in BASH_ENV ENV MAIL MAILPATH
|
---|
120 | do eval test x\${$as_var+set} = xset \
|
---|
121 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
|
---|
122 | done
|
---|
123 | PS1='$ '
|
---|
124 | PS2='> '
|
---|
125 | PS4='+ '
|
---|
126 |
|
---|
127 | # NLS nuisances.
|
---|
128 | LC_ALL=C
|
---|
129 | export LC_ALL
|
---|
130 | LANGUAGE=C
|
---|
131 | export LANGUAGE
|
---|
132 |
|
---|
133 | # CDPATH.
|
---|
134 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
---|
135 |
|
---|
136 | # Use a proper internal environment variable to ensure we don't fall
|
---|
137 | # into an infinite loop, continuously re-executing ourselves.
|
---|
138 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
|
---|
139 | _as_can_reexec=no; export _as_can_reexec;
|
---|
140 | # We cannot yet assume a decent shell, so we have to provide a
|
---|
141 | # neutralization value for shells without unset; and this also
|
---|
142 | # works around shells that cannot unset nonexistent variables.
|
---|
143 | # Preserve -v and -x to the replacement shell.
|
---|
144 | BASH_ENV=/dev/null
|
---|
145 | ENV=/dev/null
|
---|
146 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
|
---|
147 | case $- in # ((((
|
---|
148 | *v*x* | *x*v* ) as_opts=-vx ;;
|
---|
149 | *v* ) as_opts=-v ;;
|
---|
150 | *x* ) as_opts=-x ;;
|
---|
151 | * ) as_opts= ;;
|
---|
152 | esac
|
---|
153 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
|
---|
154 | # Admittedly, this is quite paranoid, since all the known shells bail
|
---|
155 | # out after a failed `exec'.
|
---|
156 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
|
---|
157 | as_fn_exit 255
|
---|
158 | fi
|
---|
159 | # We don't want this to propagate to other subprocesses.
|
---|
160 | { _as_can_reexec=; unset _as_can_reexec;}
|
---|
161 | if test "x$CONFIG_SHELL" = x; then
|
---|
162 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
|
---|
163 | emulate sh
|
---|
164 | NULLCMD=:
|
---|
165 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
|
---|
166 | # is contrary to our usage. Disable this feature.
|
---|
167 | alias -g '\${1+\"\$@\"}'='\"\$@\"'
|
---|
168 | setopt NO_GLOB_SUBST
|
---|
169 | else
|
---|
170 | case \`(set -o) 2>/dev/null\` in #(
|
---|
171 | *posix*) :
|
---|
172 | set -o posix ;; #(
|
---|
173 | *) :
|
---|
174 | ;;
|
---|
175 | esac
|
---|
176 | fi
|
---|
177 | "
|
---|
178 | as_required="as_fn_return () { (exit \$1); }
|
---|
179 | as_fn_success () { as_fn_return 0; }
|
---|
180 | as_fn_failure () { as_fn_return 1; }
|
---|
181 | as_fn_ret_success () { return 0; }
|
---|
182 | as_fn_ret_failure () { return 1; }
|
---|
183 |
|
---|
184 | exitcode=0
|
---|
185 | as_fn_success || { exitcode=1; echo as_fn_success failed.; }
|
---|
186 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
|
---|
187 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
|
---|
188 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
|
---|
189 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
|
---|
190 |
|
---|
191 | else
|
---|
192 | exitcode=1; echo positional parameters were not saved.
|
---|
193 | fi
|
---|
194 | test x\$exitcode = x0 || exit 1
|
---|
195 | test -x / || exit 1"
|
---|
196 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
|
---|
197 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
|
---|
198 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
|
---|
199 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
|
---|
200 | test \$(( 1 + 1 )) = 2 || exit 1"
|
---|
201 | if (eval "$as_required") 2>/dev/null; then :
|
---|
202 | as_have_required=yes
|
---|
203 | else
|
---|
204 | as_have_required=no
|
---|
205 | fi
|
---|
206 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
|
---|
207 |
|
---|
208 | else
|
---|
209 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
210 | as_found=false
|
---|
211 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
212 | do
|
---|
213 | IFS=$as_save_IFS
|
---|
214 | test -z "$as_dir" && as_dir=.
|
---|
215 | as_found=:
|
---|
216 | case $as_dir in #(
|
---|
217 | /*)
|
---|
218 | for as_base in sh bash ksh sh5; do
|
---|
219 | # Try only shells that exist, to save several forks.
|
---|
220 | as_shell=$as_dir/$as_base
|
---|
221 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
|
---|
222 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
|
---|
223 | CONFIG_SHELL=$as_shell as_have_required=yes
|
---|
224 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
|
---|
225 | break 2
|
---|
226 | fi
|
---|
227 | fi
|
---|
228 | done;;
|
---|
229 | esac
|
---|
230 | as_found=false
|
---|
231 | done
|
---|
232 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
|
---|
233 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
|
---|
234 | CONFIG_SHELL=$SHELL as_have_required=yes
|
---|
235 | fi; }
|
---|
236 | IFS=$as_save_IFS
|
---|
237 |
|
---|
238 |
|
---|
239 | if test "x$CONFIG_SHELL" != x; then :
|
---|
240 | export CONFIG_SHELL
|
---|
241 | # We cannot yet assume a decent shell, so we have to provide a
|
---|
242 | # neutralization value for shells without unset; and this also
|
---|
243 | # works around shells that cannot unset nonexistent variables.
|
---|
244 | # Preserve -v and -x to the replacement shell.
|
---|
245 | BASH_ENV=/dev/null
|
---|
246 | ENV=/dev/null
|
---|
247 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
|
---|
248 | case $- in # ((((
|
---|
249 | *v*x* | *x*v* ) as_opts=-vx ;;
|
---|
250 | *v* ) as_opts=-v ;;
|
---|
251 | *x* ) as_opts=-x ;;
|
---|
252 | * ) as_opts= ;;
|
---|
253 | esac
|
---|
254 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
|
---|
255 | # Admittedly, this is quite paranoid, since all the known shells bail
|
---|
256 | # out after a failed `exec'.
|
---|
257 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
|
---|
258 | exit 255
|
---|
259 | fi
|
---|
260 |
|
---|
261 | if test x$as_have_required = xno; then :
|
---|
262 | $as_echo "$0: This script requires a shell more modern than all"
|
---|
263 | $as_echo "$0: the shells that I found on your system."
|
---|
264 | if test x${ZSH_VERSION+set} = xset ; then
|
---|
265 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
|
---|
266 | $as_echo "$0: be upgraded to zsh 4.3.4 or later."
|
---|
267 | else
|
---|
268 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
|
---|
269 | $0: including any error possibly output before this
|
---|
270 | $0: message. Then install a modern shell, or manually run
|
---|
271 | $0: the script under such a shell if you do have one."
|
---|
272 | fi
|
---|
273 | exit 1
|
---|
274 | fi
|
---|
275 | fi
|
---|
276 | fi
|
---|
277 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
278 | export SHELL
|
---|
279 | # Unset more variables known to interfere with behavior of common tools.
|
---|
280 | CLICOLOR_FORCE= GREP_OPTIONS=
|
---|
281 | unset CLICOLOR_FORCE GREP_OPTIONS
|
---|
282 |
|
---|
283 | ## --------------------- ##
|
---|
284 | ## M4sh Shell Functions. ##
|
---|
285 | ## --------------------- ##
|
---|
286 | # as_fn_unset VAR
|
---|
287 | # ---------------
|
---|
288 | # Portably unset VAR.
|
---|
289 | as_fn_unset ()
|
---|
290 | {
|
---|
291 | { eval $1=; unset $1;}
|
---|
292 | }
|
---|
293 | as_unset=as_fn_unset
|
---|
294 |
|
---|
295 | # as_fn_set_status STATUS
|
---|
296 | # -----------------------
|
---|
297 | # Set $? to STATUS, without forking.
|
---|
298 | as_fn_set_status ()
|
---|
299 | {
|
---|
300 | return $1
|
---|
301 | } # as_fn_set_status
|
---|
302 |
|
---|
303 | # as_fn_exit STATUS
|
---|
304 | # -----------------
|
---|
305 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
|
---|
306 | as_fn_exit ()
|
---|
307 | {
|
---|
308 | set +e
|
---|
309 | as_fn_set_status $1
|
---|
310 | exit $1
|
---|
311 | } # as_fn_exit
|
---|
312 |
|
---|
313 | # as_fn_mkdir_p
|
---|
314 | # -------------
|
---|
315 | # Create "$as_dir" as a directory, including parents if necessary.
|
---|
316 | as_fn_mkdir_p ()
|
---|
317 | {
|
---|
318 |
|
---|
319 | case $as_dir in #(
|
---|
320 | -*) as_dir=./$as_dir;;
|
---|
321 | esac
|
---|
322 | test -d "$as_dir" || eval $as_mkdir_p || {
|
---|
323 | as_dirs=
|
---|
324 | while :; do
|
---|
325 | case $as_dir in #(
|
---|
326 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
|
---|
327 | *) as_qdir=$as_dir;;
|
---|
328 | esac
|
---|
329 | as_dirs="'$as_qdir' $as_dirs"
|
---|
330 | as_dir=`$as_dirname -- "$as_dir" ||
|
---|
331 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
332 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
333 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
334 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
335 | $as_echo X"$as_dir" |
|
---|
336 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
337 | s//\1/
|
---|
338 | q
|
---|
339 | }
|
---|
340 | /^X\(\/\/\)[^/].*/{
|
---|
341 | s//\1/
|
---|
342 | q
|
---|
343 | }
|
---|
344 | /^X\(\/\/\)$/{
|
---|
345 | s//\1/
|
---|
346 | q
|
---|
347 | }
|
---|
348 | /^X\(\/\).*/{
|
---|
349 | s//\1/
|
---|
350 | q
|
---|
351 | }
|
---|
352 | s/.*/./; q'`
|
---|
353 | test -d "$as_dir" && break
|
---|
354 | done
|
---|
355 | test -z "$as_dirs" || eval "mkdir $as_dirs"
|
---|
356 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
|
---|
357 |
|
---|
358 |
|
---|
359 | } # as_fn_mkdir_p
|
---|
360 |
|
---|
361 | # as_fn_executable_p FILE
|
---|
362 | # -----------------------
|
---|
363 | # Test if FILE is an executable regular file.
|
---|
364 | as_fn_executable_p ()
|
---|
365 | {
|
---|
366 | test -f "$1" && test -x "$1"
|
---|
367 | } # as_fn_executable_p
|
---|
368 | # as_fn_append VAR VALUE
|
---|
369 | # ----------------------
|
---|
370 | # Append the text in VALUE to the end of the definition contained in VAR. Take
|
---|
371 | # advantage of any shell optimizations that allow amortized linear growth over
|
---|
372 | # repeated appends, instead of the typical quadratic growth present in naive
|
---|
373 | # implementations.
|
---|
374 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
|
---|
375 | eval 'as_fn_append ()
|
---|
376 | {
|
---|
377 | eval $1+=\$2
|
---|
378 | }'
|
---|
379 | else
|
---|
380 | as_fn_append ()
|
---|
381 | {
|
---|
382 | eval $1=\$$1\$2
|
---|
383 | }
|
---|
384 | fi # as_fn_append
|
---|
385 |
|
---|
386 | # as_fn_arith ARG...
|
---|
387 | # ------------------
|
---|
388 | # Perform arithmetic evaluation on the ARGs, and store the result in the
|
---|
389 | # global $as_val. Take advantage of shells that can avoid forks. The arguments
|
---|
390 | # must be portable across $(()) and expr.
|
---|
391 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
|
---|
392 | eval 'as_fn_arith ()
|
---|
393 | {
|
---|
394 | as_val=$(( $* ))
|
---|
395 | }'
|
---|
396 | else
|
---|
397 | as_fn_arith ()
|
---|
398 | {
|
---|
399 | as_val=`expr "$@" || test $? -eq 1`
|
---|
400 | }
|
---|
401 | fi # as_fn_arith
|
---|
402 |
|
---|
403 |
|
---|
404 | # as_fn_error STATUS ERROR [LINENO LOG_FD]
|
---|
405 | # ----------------------------------------
|
---|
406 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
|
---|
407 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
|
---|
408 | # script with STATUS, using 1 if that was 0.
|
---|
409 | as_fn_error ()
|
---|
410 | {
|
---|
411 | as_status=$1; test $as_status -eq 0 && as_status=1
|
---|
412 | if test "$4"; then
|
---|
413 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
414 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
|
---|
415 | fi
|
---|
416 | $as_echo "$as_me: error: $2" >&2
|
---|
417 | as_fn_exit $as_status
|
---|
418 | } # as_fn_error
|
---|
419 |
|
---|
420 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
421 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
422 | as_expr=expr
|
---|
423 | else
|
---|
424 | as_expr=false
|
---|
425 | fi
|
---|
426 |
|
---|
427 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
---|
428 | as_basename=basename
|
---|
429 | else
|
---|
430 | as_basename=false
|
---|
431 | fi
|
---|
432 |
|
---|
433 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
---|
434 | as_dirname=dirname
|
---|
435 | else
|
---|
436 | as_dirname=false
|
---|
437 | fi
|
---|
438 |
|
---|
439 | as_me=`$as_basename -- "$0" ||
|
---|
440 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
441 | X"$0" : 'X\(//\)$' \| \
|
---|
442 | X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
443 | $as_echo X/"$0" |
|
---|
444 | sed '/^.*\/\([^/][^/]*\)\/*$/{
|
---|
445 | s//\1/
|
---|
446 | q
|
---|
447 | }
|
---|
448 | /^X\/\(\/\/\)$/{
|
---|
449 | s//\1/
|
---|
450 | q
|
---|
451 | }
|
---|
452 | /^X\/\(\/\).*/{
|
---|
453 | s//\1/
|
---|
454 | q
|
---|
455 | }
|
---|
456 | s/.*/./; q'`
|
---|
457 |
|
---|
458 | # Avoid depending upon Character Ranges.
|
---|
459 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
460 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
461 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
462 | as_cr_digits='0123456789'
|
---|
463 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
464 |
|
---|
465 |
|
---|
466 | as_lineno_1=$LINENO as_lineno_1a=$LINENO
|
---|
467 | as_lineno_2=$LINENO as_lineno_2a=$LINENO
|
---|
468 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
|
---|
469 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
|
---|
470 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
|
---|
471 | sed -n '
|
---|
472 | p
|
---|
473 | /[$]LINENO/=
|
---|
474 | ' <$as_myself |
|
---|
475 | sed '
|
---|
476 | s/[$]LINENO.*/&-/
|
---|
477 | t lineno
|
---|
478 | b
|
---|
479 | :lineno
|
---|
480 | N
|
---|
481 | :loop
|
---|
482 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
|
---|
483 | t loop
|
---|
484 | s/-\n.*//
|
---|
485 | ' >$as_me.lineno &&
|
---|
486 | chmod +x "$as_me.lineno" ||
|
---|
487 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
|
---|
488 |
|
---|
489 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
|
---|
490 | # already done that, so ensure we don't try to do so again and fall
|
---|
491 | # in an infinite loop. This has already happened in practice.
|
---|
492 | _as_can_reexec=no; export _as_can_reexec
|
---|
493 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
494 | # (the dirname of $[0] is not the place where we might find the
|
---|
495 | # original and so on. Autoconf is especially sensitive to this).
|
---|
496 | . "./$as_me.lineno"
|
---|
497 | # Exit status is that of the last command.
|
---|
498 | exit
|
---|
499 | }
|
---|
500 |
|
---|
501 | ECHO_C= ECHO_N= ECHO_T=
|
---|
502 | case `echo -n x` in #(((((
|
---|
503 | -n*)
|
---|
504 | case `echo 'xy\c'` in
|
---|
505 | *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
---|
506 | xy) ECHO_C='\c';;
|
---|
507 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
|
---|
508 | ECHO_T=' ';;
|
---|
509 | esac;;
|
---|
510 | *)
|
---|
511 | ECHO_N='-n';;
|
---|
512 | esac
|
---|
513 |
|
---|
514 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
515 | if test -d conf$$.dir; then
|
---|
516 | rm -f conf$$.dir/conf$$.file
|
---|
517 | else
|
---|
518 | rm -f conf$$.dir
|
---|
519 | mkdir conf$$.dir 2>/dev/null
|
---|
520 | fi
|
---|
521 | if (echo >conf$$.file) 2>/dev/null; then
|
---|
522 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
523 | as_ln_s='ln -s'
|
---|
524 | # ... but there are two gotchas:
|
---|
525 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
---|
526 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
---|
527 | # In both cases, we have to default to `cp -pR'.
|
---|
528 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
---|
529 | as_ln_s='cp -pR'
|
---|
530 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
531 | as_ln_s=ln
|
---|
532 | else
|
---|
533 | as_ln_s='cp -pR'
|
---|
534 | fi
|
---|
535 | else
|
---|
536 | as_ln_s='cp -pR'
|
---|
537 | fi
|
---|
538 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
---|
539 | rmdir conf$$.dir 2>/dev/null
|
---|
540 |
|
---|
541 | if mkdir -p . 2>/dev/null; then
|
---|
542 | as_mkdir_p='mkdir -p "$as_dir"'
|
---|
543 | else
|
---|
544 | test -d ./-p && rmdir ./-p
|
---|
545 | as_mkdir_p=false
|
---|
546 | fi
|
---|
547 |
|
---|
548 | as_test_x='test -x'
|
---|
549 | as_executable_p=as_fn_executable_p
|
---|
550 |
|
---|
551 | # Sed expression to map a string onto a valid CPP name.
|
---|
552 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
553 |
|
---|
554 | # Sed expression to map a string onto a valid variable name.
|
---|
555 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
556 |
|
---|
557 |
|
---|
558 | test -n "$DJDIR" || exec 7<&0 </dev/null
|
---|
559 | exec 6>&1
|
---|
560 |
|
---|
561 | # Name of the host.
|
---|
562 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
|
---|
563 | # so uname gets run too.
|
---|
564 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
565 |
|
---|
566 | #
|
---|
567 | # Initializations.
|
---|
568 | #
|
---|
569 | ac_default_prefix=/usr/local
|
---|
570 | ac_clean_files=
|
---|
571 | ac_config_libobj_dir=.
|
---|
572 | LIBOBJS=
|
---|
573 | cross_compiling=no
|
---|
574 | subdirs=
|
---|
575 | MFLAGS=
|
---|
576 | MAKEFLAGS=
|
---|
577 |
|
---|
578 | # Identity of this package.
|
---|
579 | PACKAGE_NAME=
|
---|
580 | PACKAGE_TARNAME=
|
---|
581 | PACKAGE_VERSION=
|
---|
582 | PACKAGE_STRING=
|
---|
583 | PACKAGE_BUGREPORT=
|
---|
584 | PACKAGE_URL=
|
---|
585 |
|
---|
586 | ac_unique_file="jni/gdbmjava.c"
|
---|
587 | # Factoring default headers for most tests.
|
---|
588 | ac_includes_default="\
|
---|
589 | #include <stdio.h>
|
---|
590 | #ifdef HAVE_SYS_TYPES_H
|
---|
591 | # include <sys/types.h>
|
---|
592 | #endif
|
---|
593 | #ifdef HAVE_SYS_STAT_H
|
---|
594 | # include <sys/stat.h>
|
---|
595 | #endif
|
---|
596 | #ifdef STDC_HEADERS
|
---|
597 | # include <stdlib.h>
|
---|
598 | # include <stddef.h>
|
---|
599 | #else
|
---|
600 | # ifdef HAVE_STDLIB_H
|
---|
601 | # include <stdlib.h>
|
---|
602 | # endif
|
---|
603 | #endif
|
---|
604 | #ifdef HAVE_STRING_H
|
---|
605 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
|
---|
606 | # include <memory.h>
|
---|
607 | # endif
|
---|
608 | # include <string.h>
|
---|
609 | #endif
|
---|
610 | #ifdef HAVE_STRINGS_H
|
---|
611 | # include <strings.h>
|
---|
612 | #endif
|
---|
613 | #ifdef HAVE_INTTYPES_H
|
---|
614 | # include <inttypes.h>
|
---|
615 | #endif
|
---|
616 | #ifdef HAVE_STDINT_H
|
---|
617 | # include <stdint.h>
|
---|
618 | #endif
|
---|
619 | #ifdef HAVE_UNISTD_H
|
---|
620 | # include <unistd.h>
|
---|
621 | #endif"
|
---|
622 |
|
---|
623 | ac_subst_vars='LTLIBOBJS
|
---|
624 | LIBOBJS
|
---|
625 | JNILDFLAGS
|
---|
626 | JNICFLAGS
|
---|
627 | JNISUFFIX
|
---|
628 | JNIPREFIX
|
---|
629 | JNIINC
|
---|
630 | PKG
|
---|
631 | GDBM_INCLUDE
|
---|
632 | GDBM_LIBPATH
|
---|
633 | JAVACFLAGS
|
---|
634 | JAVAC
|
---|
635 | EGREP
|
---|
636 | GREP
|
---|
637 | CPP
|
---|
638 | ARCH_DEP_FLAGS
|
---|
639 | LN_S
|
---|
640 | INSTALL_DATA
|
---|
641 | INSTALL_SCRIPT
|
---|
642 | INSTALL_PROGRAM
|
---|
643 | OBJEXT
|
---|
644 | EXEEXT
|
---|
645 | ac_ct_CC
|
---|
646 | CPPFLAGS
|
---|
647 | LDFLAGS
|
---|
648 | CFLAGS
|
---|
649 | CC
|
---|
650 | target_os
|
---|
651 | target_vendor
|
---|
652 | target_cpu
|
---|
653 | target
|
---|
654 | host_os
|
---|
655 | host_vendor
|
---|
656 | host_cpu
|
---|
657 | host
|
---|
658 | build_os
|
---|
659 | build_vendor
|
---|
660 | build_cpu
|
---|
661 | build
|
---|
662 | target_alias
|
---|
663 | host_alias
|
---|
664 | build_alias
|
---|
665 | LIBS
|
---|
666 | ECHO_T
|
---|
667 | ECHO_N
|
---|
668 | ECHO_C
|
---|
669 | DEFS
|
---|
670 | mandir
|
---|
671 | localedir
|
---|
672 | libdir
|
---|
673 | psdir
|
---|
674 | pdfdir
|
---|
675 | dvidir
|
---|
676 | htmldir
|
---|
677 | infodir
|
---|
678 | docdir
|
---|
679 | oldincludedir
|
---|
680 | includedir
|
---|
681 | runstatedir
|
---|
682 | localstatedir
|
---|
683 | sharedstatedir
|
---|
684 | sysconfdir
|
---|
685 | datadir
|
---|
686 | datarootdir
|
---|
687 | libexecdir
|
---|
688 | sbindir
|
---|
689 | bindir
|
---|
690 | program_transform_name
|
---|
691 | prefix
|
---|
692 | exec_prefix
|
---|
693 | PACKAGE_URL
|
---|
694 | PACKAGE_BUGREPORT
|
---|
695 | PACKAGE_STRING
|
---|
696 | PACKAGE_VERSION
|
---|
697 | PACKAGE_TARNAME
|
---|
698 | PACKAGE_NAME
|
---|
699 | PATH_SEPARATOR
|
---|
700 | SHELL'
|
---|
701 | ac_subst_files=''
|
---|
702 | ac_user_opts='
|
---|
703 | enable_option_checking
|
---|
704 | with_gdbm
|
---|
705 | '
|
---|
706 | ac_precious_vars='build_alias
|
---|
707 | host_alias
|
---|
708 | target_alias
|
---|
709 | CC
|
---|
710 | CFLAGS
|
---|
711 | LDFLAGS
|
---|
712 | LIBS
|
---|
713 | CPPFLAGS
|
---|
714 | CPP'
|
---|
715 |
|
---|
716 |
|
---|
717 | # Initialize some variables set by options.
|
---|
718 | ac_init_help=
|
---|
719 | ac_init_version=false
|
---|
720 | ac_unrecognized_opts=
|
---|
721 | ac_unrecognized_sep=
|
---|
722 | # The variables have the same names as the options, with
|
---|
723 | # dashes changed to underlines.
|
---|
724 | cache_file=/dev/null
|
---|
725 | exec_prefix=NONE
|
---|
726 | no_create=
|
---|
727 | no_recursion=
|
---|
728 | prefix=NONE
|
---|
729 | program_prefix=NONE
|
---|
730 | program_suffix=NONE
|
---|
731 | program_transform_name=s,x,x,
|
---|
732 | silent=
|
---|
733 | site=
|
---|
734 | srcdir=
|
---|
735 | verbose=
|
---|
736 | x_includes=NONE
|
---|
737 | x_libraries=NONE
|
---|
738 |
|
---|
739 | # Installation directory options.
|
---|
740 | # These are left unexpanded so users can "make install exec_prefix=/foo"
|
---|
741 | # and all the variables that are supposed to be based on exec_prefix
|
---|
742 | # by default will actually change.
|
---|
743 | # Use braces instead of parens because sh, perl, etc. also accept them.
|
---|
744 | # (The list follows the same order as the GNU Coding Standards.)
|
---|
745 | bindir='${exec_prefix}/bin'
|
---|
746 | sbindir='${exec_prefix}/sbin'
|
---|
747 | libexecdir='${exec_prefix}/libexec'
|
---|
748 | datarootdir='${prefix}/share'
|
---|
749 | datadir='${datarootdir}'
|
---|
750 | sysconfdir='${prefix}/etc'
|
---|
751 | sharedstatedir='${prefix}/com'
|
---|
752 | localstatedir='${prefix}/var'
|
---|
753 | runstatedir='${localstatedir}/run'
|
---|
754 | includedir='${prefix}/include'
|
---|
755 | oldincludedir='/usr/include'
|
---|
756 | docdir='${datarootdir}/doc/${PACKAGE}'
|
---|
757 | infodir='${datarootdir}/info'
|
---|
758 | htmldir='${docdir}'
|
---|
759 | dvidir='${docdir}'
|
---|
760 | pdfdir='${docdir}'
|
---|
761 | psdir='${docdir}'
|
---|
762 | libdir='${exec_prefix}/lib'
|
---|
763 | localedir='${datarootdir}/locale'
|
---|
764 | mandir='${datarootdir}/man'
|
---|
765 |
|
---|
766 | ac_prev=
|
---|
767 | ac_dashdash=
|
---|
768 | for ac_option
|
---|
769 | do
|
---|
770 | # If the previous option needs an argument, assign it.
|
---|
771 | if test -n "$ac_prev"; then
|
---|
772 | eval $ac_prev=\$ac_option
|
---|
773 | ac_prev=
|
---|
774 | continue
|
---|
775 | fi
|
---|
776 |
|
---|
777 | case $ac_option in
|
---|
778 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
|
---|
779 | *=) ac_optarg= ;;
|
---|
780 | *) ac_optarg=yes ;;
|
---|
781 | esac
|
---|
782 |
|
---|
783 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
784 |
|
---|
785 | case $ac_dashdash$ac_option in
|
---|
786 | --)
|
---|
787 | ac_dashdash=yes ;;
|
---|
788 |
|
---|
789 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
790 | ac_prev=bindir ;;
|
---|
791 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
792 | bindir=$ac_optarg ;;
|
---|
793 |
|
---|
794 | -build | --build | --buil | --bui | --bu)
|
---|
795 | ac_prev=build_alias ;;
|
---|
796 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
797 | build_alias=$ac_optarg ;;
|
---|
798 |
|
---|
799 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
800 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
801 | ac_prev=cache_file ;;
|
---|
802 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
803 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
804 | cache_file=$ac_optarg ;;
|
---|
805 |
|
---|
806 | --config-cache | -C)
|
---|
807 | cache_file=config.cache ;;
|
---|
808 |
|
---|
809 | -datadir | --datadir | --datadi | --datad)
|
---|
810 | ac_prev=datadir ;;
|
---|
811 | -datadir=* | --datadir=* | --datadi=* | --datad=*)
|
---|
812 | datadir=$ac_optarg ;;
|
---|
813 |
|
---|
814 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
|
---|
815 | | --dataroo | --dataro | --datar)
|
---|
816 | ac_prev=datarootdir ;;
|
---|
817 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
|
---|
818 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
|
---|
819 | datarootdir=$ac_optarg ;;
|
---|
820 |
|
---|
821 | -disable-* | --disable-*)
|
---|
822 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
---|
823 | # Reject names that are not valid shell variable names.
|
---|
824 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
825 | as_fn_error $? "invalid feature name: $ac_useropt"
|
---|
826 | ac_useropt_orig=$ac_useropt
|
---|
827 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
828 | case $ac_user_opts in
|
---|
829 | *"
|
---|
830 | "enable_$ac_useropt"
|
---|
831 | "*) ;;
|
---|
832 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
|
---|
833 | ac_unrecognized_sep=', ';;
|
---|
834 | esac
|
---|
835 | eval enable_$ac_useropt=no ;;
|
---|
836 |
|
---|
837 | -docdir | --docdir | --docdi | --doc | --do)
|
---|
838 | ac_prev=docdir ;;
|
---|
839 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
|
---|
840 | docdir=$ac_optarg ;;
|
---|
841 |
|
---|
842 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
|
---|
843 | ac_prev=dvidir ;;
|
---|
844 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
|
---|
845 | dvidir=$ac_optarg ;;
|
---|
846 |
|
---|
847 | -enable-* | --enable-*)
|
---|
848 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
---|
849 | # Reject names that are not valid shell variable names.
|
---|
850 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
851 | as_fn_error $? "invalid feature name: $ac_useropt"
|
---|
852 | ac_useropt_orig=$ac_useropt
|
---|
853 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
854 | case $ac_user_opts in
|
---|
855 | *"
|
---|
856 | "enable_$ac_useropt"
|
---|
857 | "*) ;;
|
---|
858 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
|
---|
859 | ac_unrecognized_sep=', ';;
|
---|
860 | esac
|
---|
861 | eval enable_$ac_useropt=\$ac_optarg ;;
|
---|
862 |
|
---|
863 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
864 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
865 | | --exec | --exe | --ex)
|
---|
866 | ac_prev=exec_prefix ;;
|
---|
867 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
868 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
869 | | --exec=* | --exe=* | --ex=*)
|
---|
870 | exec_prefix=$ac_optarg ;;
|
---|
871 |
|
---|
872 | -gas | --gas | --ga | --g)
|
---|
873 | # Obsolete; use --with-gas.
|
---|
874 | with_gas=yes ;;
|
---|
875 |
|
---|
876 | -help | --help | --hel | --he | -h)
|
---|
877 | ac_init_help=long ;;
|
---|
878 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
---|
879 | ac_init_help=recursive ;;
|
---|
880 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
---|
881 | ac_init_help=short ;;
|
---|
882 |
|
---|
883 | -host | --host | --hos | --ho)
|
---|
884 | ac_prev=host_alias ;;
|
---|
885 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
886 | host_alias=$ac_optarg ;;
|
---|
887 |
|
---|
888 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
|
---|
889 | ac_prev=htmldir ;;
|
---|
890 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
|
---|
891 | | --ht=*)
|
---|
892 | htmldir=$ac_optarg ;;
|
---|
893 |
|
---|
894 | -includedir | --includedir | --includedi | --included | --include \
|
---|
895 | | --includ | --inclu | --incl | --inc)
|
---|
896 | ac_prev=includedir ;;
|
---|
897 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
898 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
899 | includedir=$ac_optarg ;;
|
---|
900 |
|
---|
901 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
902 | ac_prev=infodir ;;
|
---|
903 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
904 | infodir=$ac_optarg ;;
|
---|
905 |
|
---|
906 | -libdir | --libdir | --libdi | --libd)
|
---|
907 | ac_prev=libdir ;;
|
---|
908 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
909 | libdir=$ac_optarg ;;
|
---|
910 |
|
---|
911 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
912 | | --libexe | --libex | --libe)
|
---|
913 | ac_prev=libexecdir ;;
|
---|
914 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
915 | | --libexe=* | --libex=* | --libe=*)
|
---|
916 | libexecdir=$ac_optarg ;;
|
---|
917 |
|
---|
918 | -localedir | --localedir | --localedi | --localed | --locale)
|
---|
919 | ac_prev=localedir ;;
|
---|
920 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
|
---|
921 | localedir=$ac_optarg ;;
|
---|
922 |
|
---|
923 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
924 | | --localstate | --localstat | --localsta | --localst | --locals)
|
---|
925 | ac_prev=localstatedir ;;
|
---|
926 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
927 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
|
---|
928 | localstatedir=$ac_optarg ;;
|
---|
929 |
|
---|
930 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
931 | ac_prev=mandir ;;
|
---|
932 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
933 | mandir=$ac_optarg ;;
|
---|
934 |
|
---|
935 | -nfp | --nfp | --nf)
|
---|
936 | # Obsolete; use --without-fp.
|
---|
937 | with_fp=no ;;
|
---|
938 |
|
---|
939 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
940 | | --no-cr | --no-c | -n)
|
---|
941 | no_create=yes ;;
|
---|
942 |
|
---|
943 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
944 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
945 | no_recursion=yes ;;
|
---|
946 |
|
---|
947 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
948 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
949 | | --oldin | --oldi | --old | --ol | --o)
|
---|
950 | ac_prev=oldincludedir ;;
|
---|
951 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
952 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
953 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
954 | oldincludedir=$ac_optarg ;;
|
---|
955 |
|
---|
956 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
957 | ac_prev=prefix ;;
|
---|
958 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
959 | prefix=$ac_optarg ;;
|
---|
960 |
|
---|
961 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
962 | | --program-pre | --program-pr | --program-p)
|
---|
963 | ac_prev=program_prefix ;;
|
---|
964 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
965 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
966 | program_prefix=$ac_optarg ;;
|
---|
967 |
|
---|
968 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
969 | | --program-suf | --program-su | --program-s)
|
---|
970 | ac_prev=program_suffix ;;
|
---|
971 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
972 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
973 | program_suffix=$ac_optarg ;;
|
---|
974 |
|
---|
975 | -program-transform-name | --program-transform-name \
|
---|
976 | | --program-transform-nam | --program-transform-na \
|
---|
977 | | --program-transform-n | --program-transform- \
|
---|
978 | | --program-transform | --program-transfor \
|
---|
979 | | --program-transfo | --program-transf \
|
---|
980 | | --program-trans | --program-tran \
|
---|
981 | | --progr-tra | --program-tr | --program-t)
|
---|
982 | ac_prev=program_transform_name ;;
|
---|
983 | -program-transform-name=* | --program-transform-name=* \
|
---|
984 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
985 | | --program-transform-n=* | --program-transform-=* \
|
---|
986 | | --program-transform=* | --program-transfor=* \
|
---|
987 | | --program-transfo=* | --program-transf=* \
|
---|
988 | | --program-trans=* | --program-tran=* \
|
---|
989 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
990 | program_transform_name=$ac_optarg ;;
|
---|
991 |
|
---|
992 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
|
---|
993 | ac_prev=pdfdir ;;
|
---|
994 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
|
---|
995 | pdfdir=$ac_optarg ;;
|
---|
996 |
|
---|
997 | -psdir | --psdir | --psdi | --psd | --ps)
|
---|
998 | ac_prev=psdir ;;
|
---|
999 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
|
---|
1000 | psdir=$ac_optarg ;;
|
---|
1001 |
|
---|
1002 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
1003 | | -silent | --silent | --silen | --sile | --sil)
|
---|
1004 | silent=yes ;;
|
---|
1005 |
|
---|
1006 | -runstatedir | --runstatedir | --runstatedi | --runstated \
|
---|
1007 | | --runstate | --runstat | --runsta | --runst | --runs \
|
---|
1008 | | --run | --ru | --r)
|
---|
1009 | ac_prev=runstatedir ;;
|
---|
1010 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
|
---|
1011 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
|
---|
1012 | | --run=* | --ru=* | --r=*)
|
---|
1013 | runstatedir=$ac_optarg ;;
|
---|
1014 |
|
---|
1015 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
1016 | ac_prev=sbindir ;;
|
---|
1017 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
1018 | | --sbi=* | --sb=*)
|
---|
1019 | sbindir=$ac_optarg ;;
|
---|
1020 |
|
---|
1021 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
1022 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
1023 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
1024 | | --sha | --sh)
|
---|
1025 | ac_prev=sharedstatedir ;;
|
---|
1026 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
1027 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
1028 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
1029 | | --sha=* | --sh=*)
|
---|
1030 | sharedstatedir=$ac_optarg ;;
|
---|
1031 |
|
---|
1032 | -site | --site | --sit)
|
---|
1033 | ac_prev=site ;;
|
---|
1034 | -site=* | --site=* | --sit=*)
|
---|
1035 | site=$ac_optarg ;;
|
---|
1036 |
|
---|
1037 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
1038 | ac_prev=srcdir ;;
|
---|
1039 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
1040 | srcdir=$ac_optarg ;;
|
---|
1041 |
|
---|
1042 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
1043 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
1044 | ac_prev=sysconfdir ;;
|
---|
1045 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
1046 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
1047 | sysconfdir=$ac_optarg ;;
|
---|
1048 |
|
---|
1049 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
1050 | ac_prev=target_alias ;;
|
---|
1051 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
1052 | target_alias=$ac_optarg ;;
|
---|
1053 |
|
---|
1054 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
1055 | verbose=yes ;;
|
---|
1056 |
|
---|
1057 | -version | --version | --versio | --versi | --vers | -V)
|
---|
1058 | ac_init_version=: ;;
|
---|
1059 |
|
---|
1060 | -with-* | --with-*)
|
---|
1061 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
---|
1062 | # Reject names that are not valid shell variable names.
|
---|
1063 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
1064 | as_fn_error $? "invalid package name: $ac_useropt"
|
---|
1065 | ac_useropt_orig=$ac_useropt
|
---|
1066 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
1067 | case $ac_user_opts in
|
---|
1068 | *"
|
---|
1069 | "with_$ac_useropt"
|
---|
1070 | "*) ;;
|
---|
1071 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
|
---|
1072 | ac_unrecognized_sep=', ';;
|
---|
1073 | esac
|
---|
1074 | eval with_$ac_useropt=\$ac_optarg ;;
|
---|
1075 |
|
---|
1076 | -without-* | --without-*)
|
---|
1077 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
---|
1078 | # Reject names that are not valid shell variable names.
|
---|
1079 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
1080 | as_fn_error $? "invalid package name: $ac_useropt"
|
---|
1081 | ac_useropt_orig=$ac_useropt
|
---|
1082 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
1083 | case $ac_user_opts in
|
---|
1084 | *"
|
---|
1085 | "with_$ac_useropt"
|
---|
1086 | "*) ;;
|
---|
1087 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
|
---|
1088 | ac_unrecognized_sep=', ';;
|
---|
1089 | esac
|
---|
1090 | eval with_$ac_useropt=no ;;
|
---|
1091 |
|
---|
1092 | --x)
|
---|
1093 | # Obsolete; use --with-x.
|
---|
1094 | with_x=yes ;;
|
---|
1095 |
|
---|
1096 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
1097 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
1098 | ac_prev=x_includes ;;
|
---|
1099 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
1100 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
1101 | x_includes=$ac_optarg ;;
|
---|
1102 |
|
---|
1103 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
1104 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
1105 | ac_prev=x_libraries ;;
|
---|
1106 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
1107 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
1108 | x_libraries=$ac_optarg ;;
|
---|
1109 |
|
---|
1110 | -*) as_fn_error $? "unrecognized option: \`$ac_option'
|
---|
1111 | Try \`$0 --help' for more information"
|
---|
1112 | ;;
|
---|
1113 |
|
---|
1114 | *=*)
|
---|
1115 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
---|
1116 | # Reject names that are not valid shell variable names.
|
---|
1117 | case $ac_envvar in #(
|
---|
1118 | '' | [0-9]* | *[!_$as_cr_alnum]* )
|
---|
1119 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
|
---|
1120 | esac
|
---|
1121 | eval $ac_envvar=\$ac_optarg
|
---|
1122 | export $ac_envvar ;;
|
---|
1123 |
|
---|
1124 | *)
|
---|
1125 | # FIXME: should be removed in autoconf 3.0.
|
---|
1126 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
---|
1127 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
1128 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
---|
1129 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
|
---|
1130 | ;;
|
---|
1131 |
|
---|
1132 | esac
|
---|
1133 | done
|
---|
1134 |
|
---|
1135 | if test -n "$ac_prev"; then
|
---|
1136 | ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
---|
1137 | as_fn_error $? "missing argument to $ac_option"
|
---|
1138 | fi
|
---|
1139 |
|
---|
1140 | if test -n "$ac_unrecognized_opts"; then
|
---|
1141 | case $enable_option_checking in
|
---|
1142 | no) ;;
|
---|
1143 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
|
---|
1144 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
|
---|
1145 | esac
|
---|
1146 | fi
|
---|
1147 |
|
---|
1148 | # Check all directory arguments for consistency.
|
---|
1149 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
|
---|
1150 | datadir sysconfdir sharedstatedir localstatedir includedir \
|
---|
1151 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
|
---|
1152 | libdir localedir mandir runstatedir
|
---|
1153 | do
|
---|
1154 | eval ac_val=\$$ac_var
|
---|
1155 | # Remove trailing slashes.
|
---|
1156 | case $ac_val in
|
---|
1157 | */ )
|
---|
1158 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
|
---|
1159 | eval $ac_var=\$ac_val;;
|
---|
1160 | esac
|
---|
1161 | # Be sure to have absolute directory names.
|
---|
1162 | case $ac_val in
|
---|
1163 | [\\/$]* | ?:[\\/]* ) continue;;
|
---|
1164 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
|
---|
1165 | esac
|
---|
1166 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
|
---|
1167 | done
|
---|
1168 |
|
---|
1169 | # There might be people who depend on the old broken behavior: `$host'
|
---|
1170 | # used to hold the argument of --host etc.
|
---|
1171 | # FIXME: To remove some day.
|
---|
1172 | build=$build_alias
|
---|
1173 | host=$host_alias
|
---|
1174 | target=$target_alias
|
---|
1175 |
|
---|
1176 | # FIXME: To remove some day.
|
---|
1177 | if test "x$host_alias" != x; then
|
---|
1178 | if test "x$build_alias" = x; then
|
---|
1179 | cross_compiling=maybe
|
---|
1180 | elif test "x$build_alias" != "x$host_alias"; then
|
---|
1181 | cross_compiling=yes
|
---|
1182 | fi
|
---|
1183 | fi
|
---|
1184 |
|
---|
1185 | ac_tool_prefix=
|
---|
1186 | test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
---|
1187 |
|
---|
1188 | test "$silent" = yes && exec 6>/dev/null
|
---|
1189 |
|
---|
1190 |
|
---|
1191 | ac_pwd=`pwd` && test -n "$ac_pwd" &&
|
---|
1192 | ac_ls_di=`ls -di .` &&
|
---|
1193 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
|
---|
1194 | as_fn_error $? "working directory cannot be determined"
|
---|
1195 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
|
---|
1196 | as_fn_error $? "pwd does not report name of working directory"
|
---|
1197 |
|
---|
1198 |
|
---|
1199 | # Find the source files, if location was not specified.
|
---|
1200 | if test -z "$srcdir"; then
|
---|
1201 | ac_srcdir_defaulted=yes
|
---|
1202 | # Try the directory containing this script, then the parent directory.
|
---|
1203 | ac_confdir=`$as_dirname -- "$as_myself" ||
|
---|
1204 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
1205 | X"$as_myself" : 'X\(//\)[^/]' \| \
|
---|
1206 | X"$as_myself" : 'X\(//\)$' \| \
|
---|
1207 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
1208 | $as_echo X"$as_myself" |
|
---|
1209 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
1210 | s//\1/
|
---|
1211 | q
|
---|
1212 | }
|
---|
1213 | /^X\(\/\/\)[^/].*/{
|
---|
1214 | s//\1/
|
---|
1215 | q
|
---|
1216 | }
|
---|
1217 | /^X\(\/\/\)$/{
|
---|
1218 | s//\1/
|
---|
1219 | q
|
---|
1220 | }
|
---|
1221 | /^X\(\/\).*/{
|
---|
1222 | s//\1/
|
---|
1223 | q
|
---|
1224 | }
|
---|
1225 | s/.*/./; q'`
|
---|
1226 | srcdir=$ac_confdir
|
---|
1227 | if test ! -r "$srcdir/$ac_unique_file"; then
|
---|
1228 | srcdir=..
|
---|
1229 | fi
|
---|
1230 | else
|
---|
1231 | ac_srcdir_defaulted=no
|
---|
1232 | fi
|
---|
1233 | if test ! -r "$srcdir/$ac_unique_file"; then
|
---|
1234 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
|
---|
1235 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
|
---|
1236 | fi
|
---|
1237 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
|
---|
1238 | ac_abs_confdir=`(
|
---|
1239 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
|
---|
1240 | pwd)`
|
---|
1241 | # When building in place, set srcdir=.
|
---|
1242 | if test "$ac_abs_confdir" = "$ac_pwd"; then
|
---|
1243 | srcdir=.
|
---|
1244 | fi
|
---|
1245 | # Remove unnecessary trailing slashes from srcdir.
|
---|
1246 | # Double slashes in file names in object file debugging info
|
---|
1247 | # mess up M-x gdb in Emacs.
|
---|
1248 | case $srcdir in
|
---|
1249 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
|
---|
1250 | esac
|
---|
1251 | for ac_var in $ac_precious_vars; do
|
---|
1252 | eval ac_env_${ac_var}_set=\${${ac_var}+set}
|
---|
1253 | eval ac_env_${ac_var}_value=\$${ac_var}
|
---|
1254 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
|
---|
1255 | eval ac_cv_env_${ac_var}_value=\$${ac_var}
|
---|
1256 | done
|
---|
1257 |
|
---|
1258 | #
|
---|
1259 | # Report the --help message.
|
---|
1260 | #
|
---|
1261 | if test "$ac_init_help" = "long"; then
|
---|
1262 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
1263 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
1264 | cat <<_ACEOF
|
---|
1265 | \`configure' configures this package to adapt to many kinds of systems.
|
---|
1266 |
|
---|
1267 | Usage: $0 [OPTION]... [VAR=VALUE]...
|
---|
1268 |
|
---|
1269 | To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
---|
1270 | VAR=VALUE. See below for descriptions of some of the useful variables.
|
---|
1271 |
|
---|
1272 | Defaults for the options are specified in brackets.
|
---|
1273 |
|
---|
1274 | Configuration:
|
---|
1275 | -h, --help display this help and exit
|
---|
1276 | --help=short display options specific to this package
|
---|
1277 | --help=recursive display the short help of all the included packages
|
---|
1278 | -V, --version display version information and exit
|
---|
1279 | -q, --quiet, --silent do not print \`checking ...' messages
|
---|
1280 | --cache-file=FILE cache test results in FILE [disabled]
|
---|
1281 | -C, --config-cache alias for \`--cache-file=config.cache'
|
---|
1282 | -n, --no-create do not create output files
|
---|
1283 | --srcdir=DIR find the sources in DIR [configure dir or \`..']
|
---|
1284 |
|
---|
1285 | Installation directories:
|
---|
1286 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
1287 | [$ac_default_prefix]
|
---|
1288 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
1289 | [PREFIX]
|
---|
1290 |
|
---|
1291 | By default, \`make install' will install all the files in
|
---|
1292 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
---|
1293 | an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
---|
1294 | for instance \`--prefix=\$HOME'.
|
---|
1295 |
|
---|
1296 | For better control, use the options below.
|
---|
1297 |
|
---|
1298 | Fine tuning of the installation directories:
|
---|
1299 | --bindir=DIR user executables [EPREFIX/bin]
|
---|
1300 | --sbindir=DIR system admin executables [EPREFIX/sbin]
|
---|
1301 | --libexecdir=DIR program executables [EPREFIX/libexec]
|
---|
1302 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
---|
1303 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
---|
1304 | --localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
---|
1305 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
|
---|
1306 | --libdir=DIR object code libraries [EPREFIX/lib]
|
---|
1307 | --includedir=DIR C header files [PREFIX/include]
|
---|
1308 | --oldincludedir=DIR C header files for non-gcc [/usr/include]
|
---|
1309 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
|
---|
1310 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
|
---|
1311 | --infodir=DIR info documentation [DATAROOTDIR/info]
|
---|
1312 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
|
---|
1313 | --mandir=DIR man documentation [DATAROOTDIR/man]
|
---|
1314 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
|
---|
1315 | --htmldir=DIR html documentation [DOCDIR]
|
---|
1316 | --dvidir=DIR dvi documentation [DOCDIR]
|
---|
1317 | --pdfdir=DIR pdf documentation [DOCDIR]
|
---|
1318 | --psdir=DIR ps documentation [DOCDIR]
|
---|
1319 | _ACEOF
|
---|
1320 |
|
---|
1321 | cat <<\_ACEOF
|
---|
1322 |
|
---|
1323 | System types:
|
---|
1324 | --build=BUILD configure for building on BUILD [guessed]
|
---|
1325 | --host=HOST cross-compile to build programs to run on HOST [BUILD]
|
---|
1326 | --target=TARGET configure for building compilers for TARGET [HOST]
|
---|
1327 | _ACEOF
|
---|
1328 | fi
|
---|
1329 |
|
---|
1330 | if test -n "$ac_init_help"; then
|
---|
1331 |
|
---|
1332 | cat <<\_ACEOF
|
---|
1333 |
|
---|
1334 | Optional Packages:
|
---|
1335 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
1336 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
1337 | --with-gdbm=dir Use local gdbm library and headers
|
---|
1338 |
|
---|
1339 | Some influential environment variables:
|
---|
1340 | CC C compiler command
|
---|
1341 | CFLAGS C compiler flags
|
---|
1342 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
---|
1343 | nonstandard directory <lib dir>
|
---|
1344 | LIBS libraries to pass to the linker, e.g. -l<library>
|
---|
1345 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
|
---|
1346 | you have headers in a nonstandard directory <include dir>
|
---|
1347 | CPP C preprocessor
|
---|
1348 |
|
---|
1349 | Use these variables to override the choices made by `configure' or to help
|
---|
1350 | it to find libraries and programs with nonstandard names/locations.
|
---|
1351 |
|
---|
1352 | Report bugs to the package provider.
|
---|
1353 | _ACEOF
|
---|
1354 | ac_status=$?
|
---|
1355 | fi
|
---|
1356 |
|
---|
1357 | if test "$ac_init_help" = "recursive"; then
|
---|
1358 | # If there are subdirs, report their specific --help.
|
---|
1359 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
---|
1360 | test -d "$ac_dir" ||
|
---|
1361 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
|
---|
1362 | continue
|
---|
1363 | ac_builddir=.
|
---|
1364 |
|
---|
1365 | case "$ac_dir" in
|
---|
1366 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
1367 | *)
|
---|
1368 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
|
---|
1369 | # A ".." for each directory in $ac_dir_suffix.
|
---|
1370 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
---|
1371 | case $ac_top_builddir_sub in
|
---|
1372 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
1373 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
1374 | esac ;;
|
---|
1375 | esac
|
---|
1376 | ac_abs_top_builddir=$ac_pwd
|
---|
1377 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
1378 | # for backward compatibility:
|
---|
1379 | ac_top_builddir=$ac_top_build_prefix
|
---|
1380 |
|
---|
1381 | case $srcdir in
|
---|
1382 | .) # We are building in place.
|
---|
1383 | ac_srcdir=.
|
---|
1384 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
1385 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
1386 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
1387 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
1388 | ac_top_srcdir=$srcdir
|
---|
1389 | ac_abs_top_srcdir=$srcdir ;;
|
---|
1390 | *) # Relative name.
|
---|
1391 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
1392 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
1393 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
1394 | esac
|
---|
1395 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
1396 |
|
---|
1397 | cd "$ac_dir" || { ac_status=$?; continue; }
|
---|
1398 | # Check for guested configure.
|
---|
1399 | if test -f "$ac_srcdir/configure.gnu"; then
|
---|
1400 | echo &&
|
---|
1401 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive
|
---|
1402 | elif test -f "$ac_srcdir/configure"; then
|
---|
1403 | echo &&
|
---|
1404 | $SHELL "$ac_srcdir/configure" --help=recursive
|
---|
1405 | else
|
---|
1406 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
---|
1407 | fi || ac_status=$?
|
---|
1408 | cd "$ac_pwd" || { ac_status=$?; break; }
|
---|
1409 | done
|
---|
1410 | fi
|
---|
1411 |
|
---|
1412 | test -n "$ac_init_help" && exit $ac_status
|
---|
1413 | if $ac_init_version; then
|
---|
1414 | cat <<\_ACEOF
|
---|
1415 | configure
|
---|
1416 | generated by GNU Autoconf 2.69
|
---|
1417 |
|
---|
1418 | Copyright (C) 2012 Free Software Foundation, Inc.
|
---|
1419 | This configure script is free software; the Free Software Foundation
|
---|
1420 | gives unlimited permission to copy, distribute and modify it.
|
---|
1421 | _ACEOF
|
---|
1422 | exit
|
---|
1423 | fi
|
---|
1424 |
|
---|
1425 | ## ------------------------ ##
|
---|
1426 | ## Autoconf initialization. ##
|
---|
1427 | ## ------------------------ ##
|
---|
1428 |
|
---|
1429 | # ac_fn_c_try_compile LINENO
|
---|
1430 | # --------------------------
|
---|
1431 | # Try to compile conftest.$ac_ext, and return whether this succeeded.
|
---|
1432 | ac_fn_c_try_compile ()
|
---|
1433 | {
|
---|
1434 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1435 | rm -f conftest.$ac_objext
|
---|
1436 | if { { ac_try="$ac_compile"
|
---|
1437 | case "(($ac_try" in
|
---|
1438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1439 | *) ac_try_echo=$ac_try;;
|
---|
1440 | esac
|
---|
1441 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1442 | $as_echo "$ac_try_echo"; } >&5
|
---|
1443 | (eval "$ac_compile") 2>conftest.err
|
---|
1444 | ac_status=$?
|
---|
1445 | if test -s conftest.err; then
|
---|
1446 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
1447 | cat conftest.er1 >&5
|
---|
1448 | mv -f conftest.er1 conftest.err
|
---|
1449 | fi
|
---|
1450 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1451 | test $ac_status = 0; } && {
|
---|
1452 | test -z "$ac_c_werror_flag" ||
|
---|
1453 | test ! -s conftest.err
|
---|
1454 | } && test -s conftest.$ac_objext; then :
|
---|
1455 | ac_retval=0
|
---|
1456 | else
|
---|
1457 | $as_echo "$as_me: failed program was:" >&5
|
---|
1458 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1459 |
|
---|
1460 | ac_retval=1
|
---|
1461 | fi
|
---|
1462 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1463 | as_fn_set_status $ac_retval
|
---|
1464 |
|
---|
1465 | } # ac_fn_c_try_compile
|
---|
1466 |
|
---|
1467 | # ac_fn_c_try_run LINENO
|
---|
1468 | # ----------------------
|
---|
1469 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
|
---|
1470 | # that executables *can* be run.
|
---|
1471 | ac_fn_c_try_run ()
|
---|
1472 | {
|
---|
1473 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1474 | if { { ac_try="$ac_link"
|
---|
1475 | case "(($ac_try" in
|
---|
1476 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1477 | *) ac_try_echo=$ac_try;;
|
---|
1478 | esac
|
---|
1479 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1480 | $as_echo "$ac_try_echo"; } >&5
|
---|
1481 | (eval "$ac_link") 2>&5
|
---|
1482 | ac_status=$?
|
---|
1483 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1484 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
|
---|
1485 | { { case "(($ac_try" in
|
---|
1486 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1487 | *) ac_try_echo=$ac_try;;
|
---|
1488 | esac
|
---|
1489 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1490 | $as_echo "$ac_try_echo"; } >&5
|
---|
1491 | (eval "$ac_try") 2>&5
|
---|
1492 | ac_status=$?
|
---|
1493 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1494 | test $ac_status = 0; }; }; then :
|
---|
1495 | ac_retval=0
|
---|
1496 | else
|
---|
1497 | $as_echo "$as_me: program exited with status $ac_status" >&5
|
---|
1498 | $as_echo "$as_me: failed program was:" >&5
|
---|
1499 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1500 |
|
---|
1501 | ac_retval=$ac_status
|
---|
1502 | fi
|
---|
1503 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
---|
1504 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1505 | as_fn_set_status $ac_retval
|
---|
1506 |
|
---|
1507 | } # ac_fn_c_try_run
|
---|
1508 |
|
---|
1509 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
|
---|
1510 | # --------------------------------------------
|
---|
1511 | # Tries to find the compile-time value of EXPR in a program that includes
|
---|
1512 | # INCLUDES, setting VAR accordingly. Returns whether the value could be
|
---|
1513 | # computed
|
---|
1514 | ac_fn_c_compute_int ()
|
---|
1515 | {
|
---|
1516 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1517 | if test "$cross_compiling" = yes; then
|
---|
1518 | # Depending upon the size, compute the lo and hi bounds.
|
---|
1519 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1520 | /* end confdefs.h. */
|
---|
1521 | $4
|
---|
1522 | int
|
---|
1523 | main ()
|
---|
1524 | {
|
---|
1525 | static int test_array [1 - 2 * !(($2) >= 0)];
|
---|
1526 | test_array [0] = 0;
|
---|
1527 | return test_array [0];
|
---|
1528 |
|
---|
1529 | ;
|
---|
1530 | return 0;
|
---|
1531 | }
|
---|
1532 | _ACEOF
|
---|
1533 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1534 | ac_lo=0 ac_mid=0
|
---|
1535 | while :; do
|
---|
1536 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1537 | /* end confdefs.h. */
|
---|
1538 | $4
|
---|
1539 | int
|
---|
1540 | main ()
|
---|
1541 | {
|
---|
1542 | static int test_array [1 - 2 * !(($2) <= $ac_mid)];
|
---|
1543 | test_array [0] = 0;
|
---|
1544 | return test_array [0];
|
---|
1545 |
|
---|
1546 | ;
|
---|
1547 | return 0;
|
---|
1548 | }
|
---|
1549 | _ACEOF
|
---|
1550 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1551 | ac_hi=$ac_mid; break
|
---|
1552 | else
|
---|
1553 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val
|
---|
1554 | if test $ac_lo -le $ac_mid; then
|
---|
1555 | ac_lo= ac_hi=
|
---|
1556 | break
|
---|
1557 | fi
|
---|
1558 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
|
---|
1559 | fi
|
---|
1560 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1561 | done
|
---|
1562 | else
|
---|
1563 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1564 | /* end confdefs.h. */
|
---|
1565 | $4
|
---|
1566 | int
|
---|
1567 | main ()
|
---|
1568 | {
|
---|
1569 | static int test_array [1 - 2 * !(($2) < 0)];
|
---|
1570 | test_array [0] = 0;
|
---|
1571 | return test_array [0];
|
---|
1572 |
|
---|
1573 | ;
|
---|
1574 | return 0;
|
---|
1575 | }
|
---|
1576 | _ACEOF
|
---|
1577 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1578 | ac_hi=-1 ac_mid=-1
|
---|
1579 | while :; do
|
---|
1580 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1581 | /* end confdefs.h. */
|
---|
1582 | $4
|
---|
1583 | int
|
---|
1584 | main ()
|
---|
1585 | {
|
---|
1586 | static int test_array [1 - 2 * !(($2) >= $ac_mid)];
|
---|
1587 | test_array [0] = 0;
|
---|
1588 | return test_array [0];
|
---|
1589 |
|
---|
1590 | ;
|
---|
1591 | return 0;
|
---|
1592 | }
|
---|
1593 | _ACEOF
|
---|
1594 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1595 | ac_lo=$ac_mid; break
|
---|
1596 | else
|
---|
1597 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
|
---|
1598 | if test $ac_mid -le $ac_hi; then
|
---|
1599 | ac_lo= ac_hi=
|
---|
1600 | break
|
---|
1601 | fi
|
---|
1602 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
|
---|
1603 | fi
|
---|
1604 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1605 | done
|
---|
1606 | else
|
---|
1607 | ac_lo= ac_hi=
|
---|
1608 | fi
|
---|
1609 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1610 | fi
|
---|
1611 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1612 | # Binary search between lo and hi bounds.
|
---|
1613 | while test "x$ac_lo" != "x$ac_hi"; do
|
---|
1614 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
|
---|
1615 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1616 | /* end confdefs.h. */
|
---|
1617 | $4
|
---|
1618 | int
|
---|
1619 | main ()
|
---|
1620 | {
|
---|
1621 | static int test_array [1 - 2 * !(($2) <= $ac_mid)];
|
---|
1622 | test_array [0] = 0;
|
---|
1623 | return test_array [0];
|
---|
1624 |
|
---|
1625 | ;
|
---|
1626 | return 0;
|
---|
1627 | }
|
---|
1628 | _ACEOF
|
---|
1629 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1630 | ac_hi=$ac_mid
|
---|
1631 | else
|
---|
1632 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
|
---|
1633 | fi
|
---|
1634 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1635 | done
|
---|
1636 | case $ac_lo in #((
|
---|
1637 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
|
---|
1638 | '') ac_retval=1 ;;
|
---|
1639 | esac
|
---|
1640 | else
|
---|
1641 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1642 | /* end confdefs.h. */
|
---|
1643 | $4
|
---|
1644 | static long int longval () { return $2; }
|
---|
1645 | static unsigned long int ulongval () { return $2; }
|
---|
1646 | #include <stdio.h>
|
---|
1647 | #include <stdlib.h>
|
---|
1648 | int
|
---|
1649 | main ()
|
---|
1650 | {
|
---|
1651 |
|
---|
1652 | FILE *f = fopen ("conftest.val", "w");
|
---|
1653 | if (! f)
|
---|
1654 | return 1;
|
---|
1655 | if (($2) < 0)
|
---|
1656 | {
|
---|
1657 | long int i = longval ();
|
---|
1658 | if (i != ($2))
|
---|
1659 | return 1;
|
---|
1660 | fprintf (f, "%ld", i);
|
---|
1661 | }
|
---|
1662 | else
|
---|
1663 | {
|
---|
1664 | unsigned long int i = ulongval ();
|
---|
1665 | if (i != ($2))
|
---|
1666 | return 1;
|
---|
1667 | fprintf (f, "%lu", i);
|
---|
1668 | }
|
---|
1669 | /* Do not output a trailing newline, as this causes \r\n confusion
|
---|
1670 | on some platforms. */
|
---|
1671 | return ferror (f) || fclose (f) != 0;
|
---|
1672 |
|
---|
1673 | ;
|
---|
1674 | return 0;
|
---|
1675 | }
|
---|
1676 | _ACEOF
|
---|
1677 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
1678 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0
|
---|
1679 | else
|
---|
1680 | ac_retval=1
|
---|
1681 | fi
|
---|
1682 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
1683 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
1684 | rm -f conftest.val
|
---|
1685 |
|
---|
1686 | fi
|
---|
1687 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1688 | as_fn_set_status $ac_retval
|
---|
1689 |
|
---|
1690 | } # ac_fn_c_compute_int
|
---|
1691 |
|
---|
1692 | # ac_fn_c_try_cpp LINENO
|
---|
1693 | # ----------------------
|
---|
1694 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
|
---|
1695 | ac_fn_c_try_cpp ()
|
---|
1696 | {
|
---|
1697 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1698 | if { { ac_try="$ac_cpp conftest.$ac_ext"
|
---|
1699 | case "(($ac_try" in
|
---|
1700 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1701 | *) ac_try_echo=$ac_try;;
|
---|
1702 | esac
|
---|
1703 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1704 | $as_echo "$ac_try_echo"; } >&5
|
---|
1705 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
|
---|
1706 | ac_status=$?
|
---|
1707 | if test -s conftest.err; then
|
---|
1708 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
1709 | cat conftest.er1 >&5
|
---|
1710 | mv -f conftest.er1 conftest.err
|
---|
1711 | fi
|
---|
1712 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1713 | test $ac_status = 0; } > conftest.i && {
|
---|
1714 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
1715 | test ! -s conftest.err
|
---|
1716 | }; then :
|
---|
1717 | ac_retval=0
|
---|
1718 | else
|
---|
1719 | $as_echo "$as_me: failed program was:" >&5
|
---|
1720 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1721 |
|
---|
1722 | ac_retval=1
|
---|
1723 | fi
|
---|
1724 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1725 | as_fn_set_status $ac_retval
|
---|
1726 |
|
---|
1727 | } # ac_fn_c_try_cpp
|
---|
1728 |
|
---|
1729 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
|
---|
1730 | # -------------------------------------------------------
|
---|
1731 | # Tests whether HEADER exists and can be compiled using the include files in
|
---|
1732 | # INCLUDES, setting the cache variable VAR accordingly.
|
---|
1733 | ac_fn_c_check_header_compile ()
|
---|
1734 | {
|
---|
1735 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1737 | $as_echo_n "checking for $2... " >&6; }
|
---|
1738 | if eval \${$3+:} false; then :
|
---|
1739 | $as_echo_n "(cached) " >&6
|
---|
1740 | else
|
---|
1741 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1742 | /* end confdefs.h. */
|
---|
1743 | $4
|
---|
1744 | #include <$2>
|
---|
1745 | _ACEOF
|
---|
1746 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1747 | eval "$3=yes"
|
---|
1748 | else
|
---|
1749 | eval "$3=no"
|
---|
1750 | fi
|
---|
1751 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1752 | fi
|
---|
1753 | eval ac_res=\$$3
|
---|
1754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1755 | $as_echo "$ac_res" >&6; }
|
---|
1756 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1757 |
|
---|
1758 | } # ac_fn_c_check_header_compile
|
---|
1759 |
|
---|
1760 | # ac_fn_c_try_link LINENO
|
---|
1761 | # -----------------------
|
---|
1762 | # Try to link conftest.$ac_ext, and return whether this succeeded.
|
---|
1763 | ac_fn_c_try_link ()
|
---|
1764 | {
|
---|
1765 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1766 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
1767 | if { { ac_try="$ac_link"
|
---|
1768 | case "(($ac_try" in
|
---|
1769 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1770 | *) ac_try_echo=$ac_try;;
|
---|
1771 | esac
|
---|
1772 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1773 | $as_echo "$ac_try_echo"; } >&5
|
---|
1774 | (eval "$ac_link") 2>conftest.err
|
---|
1775 | ac_status=$?
|
---|
1776 | if test -s conftest.err; then
|
---|
1777 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
1778 | cat conftest.er1 >&5
|
---|
1779 | mv -f conftest.er1 conftest.err
|
---|
1780 | fi
|
---|
1781 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1782 | test $ac_status = 0; } && {
|
---|
1783 | test -z "$ac_c_werror_flag" ||
|
---|
1784 | test ! -s conftest.err
|
---|
1785 | } && test -s conftest$ac_exeext && {
|
---|
1786 | test "$cross_compiling" = yes ||
|
---|
1787 | test -x conftest$ac_exeext
|
---|
1788 | }; then :
|
---|
1789 | ac_retval=0
|
---|
1790 | else
|
---|
1791 | $as_echo "$as_me: failed program was:" >&5
|
---|
1792 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1793 |
|
---|
1794 | ac_retval=1
|
---|
1795 | fi
|
---|
1796 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
|
---|
1797 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
|
---|
1798 | # interfere with the next link command; also delete a directory that is
|
---|
1799 | # left behind by Apple's compiler. We do this before executing the actions.
|
---|
1800 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
---|
1801 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1802 | as_fn_set_status $ac_retval
|
---|
1803 |
|
---|
1804 | } # ac_fn_c_try_link
|
---|
1805 | cat >config.log <<_ACEOF
|
---|
1806 | This file contains any messages produced by compilers while
|
---|
1807 | running configure, to aid debugging if configure makes a mistake.
|
---|
1808 |
|
---|
1809 | It was created by $as_me, which was
|
---|
1810 | generated by GNU Autoconf 2.69. Invocation command line was
|
---|
1811 |
|
---|
1812 | $ $0 $@
|
---|
1813 |
|
---|
1814 | _ACEOF
|
---|
1815 | exec 5>>config.log
|
---|
1816 | {
|
---|
1817 | cat <<_ASUNAME
|
---|
1818 | ## --------- ##
|
---|
1819 | ## Platform. ##
|
---|
1820 | ## --------- ##
|
---|
1821 |
|
---|
1822 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
1823 | uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
---|
1824 | uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
---|
1825 | uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
---|
1826 | uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
---|
1827 |
|
---|
1828 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
---|
1829 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
---|
1830 |
|
---|
1831 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
---|
1832 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
---|
1833 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
---|
1834 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
|
---|
1835 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
---|
1836 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
---|
1837 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
---|
1838 |
|
---|
1839 | _ASUNAME
|
---|
1840 |
|
---|
1841 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1842 | for as_dir in $PATH
|
---|
1843 | do
|
---|
1844 | IFS=$as_save_IFS
|
---|
1845 | test -z "$as_dir" && as_dir=.
|
---|
1846 | $as_echo "PATH: $as_dir"
|
---|
1847 | done
|
---|
1848 | IFS=$as_save_IFS
|
---|
1849 |
|
---|
1850 | } >&5
|
---|
1851 |
|
---|
1852 | cat >&5 <<_ACEOF
|
---|
1853 |
|
---|
1854 |
|
---|
1855 | ## ----------- ##
|
---|
1856 | ## Core tests. ##
|
---|
1857 | ## ----------- ##
|
---|
1858 |
|
---|
1859 | _ACEOF
|
---|
1860 |
|
---|
1861 |
|
---|
1862 | # Keep a trace of the command line.
|
---|
1863 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
1864 | # Strip out --silent because we don't want to record it for future runs.
|
---|
1865 | # Also quote any args containing shell meta-characters.
|
---|
1866 | # Make two passes to allow for proper duplicate-argument suppression.
|
---|
1867 | ac_configure_args=
|
---|
1868 | ac_configure_args0=
|
---|
1869 | ac_configure_args1=
|
---|
1870 | ac_must_keep_next=false
|
---|
1871 | for ac_pass in 1 2
|
---|
1872 | do
|
---|
1873 | for ac_arg
|
---|
1874 | do
|
---|
1875 | case $ac_arg in
|
---|
1876 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
---|
1877 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
1878 | | -silent | --silent | --silen | --sile | --sil)
|
---|
1879 | continue ;;
|
---|
1880 | *\'*)
|
---|
1881 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
1882 | esac
|
---|
1883 | case $ac_pass in
|
---|
1884 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
|
---|
1885 | 2)
|
---|
1886 | as_fn_append ac_configure_args1 " '$ac_arg'"
|
---|
1887 | if test $ac_must_keep_next = true; then
|
---|
1888 | ac_must_keep_next=false # Got value, back to normal.
|
---|
1889 | else
|
---|
1890 | case $ac_arg in
|
---|
1891 | *=* | --config-cache | -C | -disable-* | --disable-* \
|
---|
1892 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
---|
1893 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
---|
1894 | | -with-* | --with-* | -without-* | --without-* | --x)
|
---|
1895 | case "$ac_configure_args0 " in
|
---|
1896 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
---|
1897 | esac
|
---|
1898 | ;;
|
---|
1899 | -* ) ac_must_keep_next=true ;;
|
---|
1900 | esac
|
---|
1901 | fi
|
---|
1902 | as_fn_append ac_configure_args " '$ac_arg'"
|
---|
1903 | ;;
|
---|
1904 | esac
|
---|
1905 | done
|
---|
1906 | done
|
---|
1907 | { ac_configure_args0=; unset ac_configure_args0;}
|
---|
1908 | { ac_configure_args1=; unset ac_configure_args1;}
|
---|
1909 |
|
---|
1910 | # When interrupted or exit'd, cleanup temporary files, and complete
|
---|
1911 | # config.log. We remove comments because anyway the quotes in there
|
---|
1912 | # would cause problems or look ugly.
|
---|
1913 | # WARNING: Use '\'' to represent an apostrophe within the trap.
|
---|
1914 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
|
---|
1915 | trap 'exit_status=$?
|
---|
1916 | # Save into config.log some information that might help in debugging.
|
---|
1917 | {
|
---|
1918 | echo
|
---|
1919 |
|
---|
1920 | $as_echo "## ---------------- ##
|
---|
1921 | ## Cache variables. ##
|
---|
1922 | ## ---------------- ##"
|
---|
1923 | echo
|
---|
1924 | # The following way of writing the cache mishandles newlines in values,
|
---|
1925 | (
|
---|
1926 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
|
---|
1927 | eval ac_val=\$$ac_var
|
---|
1928 | case $ac_val in #(
|
---|
1929 | *${as_nl}*)
|
---|
1930 | case $ac_var in #(
|
---|
1931 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
---|
1932 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
---|
1933 | esac
|
---|
1934 | case $ac_var in #(
|
---|
1935 | _ | IFS | as_nl) ;; #(
|
---|
1936 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
|
---|
1937 | *) { eval $ac_var=; unset $ac_var;} ;;
|
---|
1938 | esac ;;
|
---|
1939 | esac
|
---|
1940 | done
|
---|
1941 | (set) 2>&1 |
|
---|
1942 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
|
---|
1943 | *${as_nl}ac_space=\ *)
|
---|
1944 | sed -n \
|
---|
1945 | "s/'\''/'\''\\\\'\'''\''/g;
|
---|
1946 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
|
---|
1947 | ;; #(
|
---|
1948 | *)
|
---|
1949 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
---|
1950 | ;;
|
---|
1951 | esac |
|
---|
1952 | sort
|
---|
1953 | )
|
---|
1954 | echo
|
---|
1955 |
|
---|
1956 | $as_echo "## ----------------- ##
|
---|
1957 | ## Output variables. ##
|
---|
1958 | ## ----------------- ##"
|
---|
1959 | echo
|
---|
1960 | for ac_var in $ac_subst_vars
|
---|
1961 | do
|
---|
1962 | eval ac_val=\$$ac_var
|
---|
1963 | case $ac_val in
|
---|
1964 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
---|
1965 | esac
|
---|
1966 | $as_echo "$ac_var='\''$ac_val'\''"
|
---|
1967 | done | sort
|
---|
1968 | echo
|
---|
1969 |
|
---|
1970 | if test -n "$ac_subst_files"; then
|
---|
1971 | $as_echo "## ------------------- ##
|
---|
1972 | ## File substitutions. ##
|
---|
1973 | ## ------------------- ##"
|
---|
1974 | echo
|
---|
1975 | for ac_var in $ac_subst_files
|
---|
1976 | do
|
---|
1977 | eval ac_val=\$$ac_var
|
---|
1978 | case $ac_val in
|
---|
1979 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
---|
1980 | esac
|
---|
1981 | $as_echo "$ac_var='\''$ac_val'\''"
|
---|
1982 | done | sort
|
---|
1983 | echo
|
---|
1984 | fi
|
---|
1985 |
|
---|
1986 | if test -s confdefs.h; then
|
---|
1987 | $as_echo "## ----------- ##
|
---|
1988 | ## confdefs.h. ##
|
---|
1989 | ## ----------- ##"
|
---|
1990 | echo
|
---|
1991 | cat confdefs.h
|
---|
1992 | echo
|
---|
1993 | fi
|
---|
1994 | test "$ac_signal" != 0 &&
|
---|
1995 | $as_echo "$as_me: caught signal $ac_signal"
|
---|
1996 | $as_echo "$as_me: exit $exit_status"
|
---|
1997 | } >&5
|
---|
1998 | rm -f core *.core core.conftest.* &&
|
---|
1999 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
|
---|
2000 | exit $exit_status
|
---|
2001 | ' 0
|
---|
2002 | for ac_signal in 1 2 13 15; do
|
---|
2003 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
|
---|
2004 | done
|
---|
2005 | ac_signal=0
|
---|
2006 |
|
---|
2007 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
2008 | rm -f -r conftest* confdefs.h
|
---|
2009 |
|
---|
2010 | $as_echo "/* confdefs.h */" > confdefs.h
|
---|
2011 |
|
---|
2012 | # Predefined preprocessor variables.
|
---|
2013 |
|
---|
2014 | cat >>confdefs.h <<_ACEOF
|
---|
2015 | #define PACKAGE_NAME "$PACKAGE_NAME"
|
---|
2016 | _ACEOF
|
---|
2017 |
|
---|
2018 | cat >>confdefs.h <<_ACEOF
|
---|
2019 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
---|
2020 | _ACEOF
|
---|
2021 |
|
---|
2022 | cat >>confdefs.h <<_ACEOF
|
---|
2023 | #define PACKAGE_VERSION "$PACKAGE_VERSION"
|
---|
2024 | _ACEOF
|
---|
2025 |
|
---|
2026 | cat >>confdefs.h <<_ACEOF
|
---|
2027 | #define PACKAGE_STRING "$PACKAGE_STRING"
|
---|
2028 | _ACEOF
|
---|
2029 |
|
---|
2030 | cat >>confdefs.h <<_ACEOF
|
---|
2031 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
---|
2032 | _ACEOF
|
---|
2033 |
|
---|
2034 | cat >>confdefs.h <<_ACEOF
|
---|
2035 | #define PACKAGE_URL "$PACKAGE_URL"
|
---|
2036 | _ACEOF
|
---|
2037 |
|
---|
2038 |
|
---|
2039 | # Let the site file select an alternate cache file if it wants to.
|
---|
2040 | # Prefer an explicitly selected file to automatically selected ones.
|
---|
2041 | ac_site_file1=NONE
|
---|
2042 | ac_site_file2=NONE
|
---|
2043 | if test -n "$CONFIG_SITE"; then
|
---|
2044 | # We do not want a PATH search for config.site.
|
---|
2045 | case $CONFIG_SITE in #((
|
---|
2046 | -*) ac_site_file1=./$CONFIG_SITE;;
|
---|
2047 | */*) ac_site_file1=$CONFIG_SITE;;
|
---|
2048 | *) ac_site_file1=./$CONFIG_SITE;;
|
---|
2049 | esac
|
---|
2050 | elif test "x$prefix" != xNONE; then
|
---|
2051 | ac_site_file1=$prefix/share/config.site
|
---|
2052 | ac_site_file2=$prefix/etc/config.site
|
---|
2053 | else
|
---|
2054 | ac_site_file1=$ac_default_prefix/share/config.site
|
---|
2055 | ac_site_file2=$ac_default_prefix/etc/config.site
|
---|
2056 | fi
|
---|
2057 | for ac_site_file in "$ac_site_file1" "$ac_site_file2"
|
---|
2058 | do
|
---|
2059 | test "x$ac_site_file" = xNONE && continue
|
---|
2060 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
|
---|
2061 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
|
---|
2062 | $as_echo "$as_me: loading site script $ac_site_file" >&6;}
|
---|
2063 | sed 's/^/| /' "$ac_site_file" >&5
|
---|
2064 | . "$ac_site_file" \
|
---|
2065 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2066 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2067 | as_fn_error $? "failed to load site script $ac_site_file
|
---|
2068 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
2069 | fi
|
---|
2070 | done
|
---|
2071 |
|
---|
2072 | if test -r "$cache_file"; then
|
---|
2073 | # Some versions of bash will fail to source /dev/null (special files
|
---|
2074 | # actually), so we avoid doing that. DJGPP emulates it as a regular file.
|
---|
2075 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then
|
---|
2076 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
|
---|
2077 | $as_echo "$as_me: loading cache $cache_file" >&6;}
|
---|
2078 | case $cache_file in
|
---|
2079 | [\\/]* | ?:[\\/]* ) . "$cache_file";;
|
---|
2080 | *) . "./$cache_file";;
|
---|
2081 | esac
|
---|
2082 | fi
|
---|
2083 | else
|
---|
2084 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
|
---|
2085 | $as_echo "$as_me: creating cache $cache_file" >&6;}
|
---|
2086 | >$cache_file
|
---|
2087 | fi
|
---|
2088 |
|
---|
2089 | # Check that the precious variables saved in the cache have kept the same
|
---|
2090 | # value.
|
---|
2091 | ac_cache_corrupted=false
|
---|
2092 | for ac_var in $ac_precious_vars; do
|
---|
2093 | eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
---|
2094 | eval ac_new_set=\$ac_env_${ac_var}_set
|
---|
2095 | eval ac_old_val=\$ac_cv_env_${ac_var}_value
|
---|
2096 | eval ac_new_val=\$ac_env_${ac_var}_value
|
---|
2097 | case $ac_old_set,$ac_new_set in
|
---|
2098 | set,)
|
---|
2099 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
---|
2100 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
---|
2101 | ac_cache_corrupted=: ;;
|
---|
2102 | ,set)
|
---|
2103 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
|
---|
2104 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
---|
2105 | ac_cache_corrupted=: ;;
|
---|
2106 | ,);;
|
---|
2107 | *)
|
---|
2108 | if test "x$ac_old_val" != "x$ac_new_val"; then
|
---|
2109 | # differences in whitespace do not lead to failure.
|
---|
2110 | ac_old_val_w=`echo x $ac_old_val`
|
---|
2111 | ac_new_val_w=`echo x $ac_new_val`
|
---|
2112 | if test "$ac_old_val_w" != "$ac_new_val_w"; then
|
---|
2113 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
|
---|
2114 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
---|
2115 | ac_cache_corrupted=:
|
---|
2116 | else
|
---|
2117 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
|
---|
2118 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
|
---|
2119 | eval $ac_var=\$ac_old_val
|
---|
2120 | fi
|
---|
2121 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
|
---|
2122 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
|
---|
2123 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
|
---|
2124 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
|
---|
2125 | fi;;
|
---|
2126 | esac
|
---|
2127 | # Pass precious variables to config.status.
|
---|
2128 | if test "$ac_new_set" = set; then
|
---|
2129 | case $ac_new_val in
|
---|
2130 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
2131 | *) ac_arg=$ac_var=$ac_new_val ;;
|
---|
2132 | esac
|
---|
2133 | case " $ac_configure_args " in
|
---|
2134 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
---|
2135 | *) as_fn_append ac_configure_args " '$ac_arg'" ;;
|
---|
2136 | esac
|
---|
2137 | fi
|
---|
2138 | done
|
---|
2139 | if $ac_cache_corrupted; then
|
---|
2140 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2141 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2142 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
|
---|
2143 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
---|
2144 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
|
---|
2145 | fi
|
---|
2146 | ## -------------------- ##
|
---|
2147 | ## Main body of script. ##
|
---|
2148 | ## -------------------- ##
|
---|
2149 |
|
---|
2150 | ac_ext=c
|
---|
2151 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2152 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2153 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2154 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
2155 |
|
---|
2156 |
|
---|
2157 |
|
---|
2158 |
|
---|
2159 | # Check whether --with-gdbm was given.
|
---|
2160 | if test "${with_gdbm+set}" = set; then :
|
---|
2161 | withval=$with_gdbm; gdbmdir=$withval
|
---|
2162 | fi
|
---|
2163 |
|
---|
2164 |
|
---|
2165 | ac_aux_dir=
|
---|
2166 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
|
---|
2167 | if test -f "$ac_dir/install-sh"; then
|
---|
2168 | ac_aux_dir=$ac_dir
|
---|
2169 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
2170 | break
|
---|
2171 | elif test -f "$ac_dir/install.sh"; then
|
---|
2172 | ac_aux_dir=$ac_dir
|
---|
2173 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
2174 | break
|
---|
2175 | elif test -f "$ac_dir/shtool"; then
|
---|
2176 | ac_aux_dir=$ac_dir
|
---|
2177 | ac_install_sh="$ac_aux_dir/shtool install -c"
|
---|
2178 | break
|
---|
2179 | fi
|
---|
2180 | done
|
---|
2181 | if test -z "$ac_aux_dir"; then
|
---|
2182 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
|
---|
2183 | fi
|
---|
2184 |
|
---|
2185 | # These three variables are undocumented and unsupported,
|
---|
2186 | # and are intended to be withdrawn in a future Autoconf release.
|
---|
2187 | # They can cause serious problems if a builder's source tree is in a directory
|
---|
2188 | # whose full name contains unusual characters.
|
---|
2189 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
|
---|
2190 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
|
---|
2191 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
|
---|
2192 |
|
---|
2193 |
|
---|
2194 | # Make sure we can run config.sub.
|
---|
2195 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
|
---|
2196 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
|
---|
2197 |
|
---|
2198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
|
---|
2199 | $as_echo_n "checking build system type... " >&6; }
|
---|
2200 | if ${ac_cv_build+:} false; then :
|
---|
2201 | $as_echo_n "(cached) " >&6
|
---|
2202 | else
|
---|
2203 | ac_build_alias=$build_alias
|
---|
2204 | test "x$ac_build_alias" = x &&
|
---|
2205 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
|
---|
2206 | test "x$ac_build_alias" = x &&
|
---|
2207 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
|
---|
2208 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
|
---|
2209 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
|
---|
2210 |
|
---|
2211 | fi
|
---|
2212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
|
---|
2213 | $as_echo "$ac_cv_build" >&6; }
|
---|
2214 | case $ac_cv_build in
|
---|
2215 | *-*-*) ;;
|
---|
2216 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
|
---|
2217 | esac
|
---|
2218 | build=$ac_cv_build
|
---|
2219 | ac_save_IFS=$IFS; IFS='-'
|
---|
2220 | set x $ac_cv_build
|
---|
2221 | shift
|
---|
2222 | build_cpu=$1
|
---|
2223 | build_vendor=$2
|
---|
2224 | shift; shift
|
---|
2225 | # Remember, the first character of IFS is used to create $*,
|
---|
2226 | # except with old shells:
|
---|
2227 | build_os=$*
|
---|
2228 | IFS=$ac_save_IFS
|
---|
2229 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
|
---|
2230 |
|
---|
2231 |
|
---|
2232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
|
---|
2233 | $as_echo_n "checking host system type... " >&6; }
|
---|
2234 | if ${ac_cv_host+:} false; then :
|
---|
2235 | $as_echo_n "(cached) " >&6
|
---|
2236 | else
|
---|
2237 | if test "x$host_alias" = x; then
|
---|
2238 | ac_cv_host=$ac_cv_build
|
---|
2239 | else
|
---|
2240 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
|
---|
2241 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
|
---|
2242 | fi
|
---|
2243 |
|
---|
2244 | fi
|
---|
2245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
|
---|
2246 | $as_echo "$ac_cv_host" >&6; }
|
---|
2247 | case $ac_cv_host in
|
---|
2248 | *-*-*) ;;
|
---|
2249 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
|
---|
2250 | esac
|
---|
2251 | host=$ac_cv_host
|
---|
2252 | ac_save_IFS=$IFS; IFS='-'
|
---|
2253 | set x $ac_cv_host
|
---|
2254 | shift
|
---|
2255 | host_cpu=$1
|
---|
2256 | host_vendor=$2
|
---|
2257 | shift; shift
|
---|
2258 | # Remember, the first character of IFS is used to create $*,
|
---|
2259 | # except with old shells:
|
---|
2260 | host_os=$*
|
---|
2261 | IFS=$ac_save_IFS
|
---|
2262 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
|
---|
2263 |
|
---|
2264 |
|
---|
2265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
|
---|
2266 | $as_echo_n "checking target system type... " >&6; }
|
---|
2267 | if ${ac_cv_target+:} false; then :
|
---|
2268 | $as_echo_n "(cached) " >&6
|
---|
2269 | else
|
---|
2270 | if test "x$target_alias" = x; then
|
---|
2271 | ac_cv_target=$ac_cv_host
|
---|
2272 | else
|
---|
2273 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
|
---|
2274 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
|
---|
2275 | fi
|
---|
2276 |
|
---|
2277 | fi
|
---|
2278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
|
---|
2279 | $as_echo "$ac_cv_target" >&6; }
|
---|
2280 | case $ac_cv_target in
|
---|
2281 | *-*-*) ;;
|
---|
2282 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
|
---|
2283 | esac
|
---|
2284 | target=$ac_cv_target
|
---|
2285 | ac_save_IFS=$IFS; IFS='-'
|
---|
2286 | set x $ac_cv_target
|
---|
2287 | shift
|
---|
2288 | target_cpu=$1
|
---|
2289 | target_vendor=$2
|
---|
2290 | shift; shift
|
---|
2291 | # Remember, the first character of IFS is used to create $*,
|
---|
2292 | # except with old shells:
|
---|
2293 | target_os=$*
|
---|
2294 | IFS=$ac_save_IFS
|
---|
2295 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
|
---|
2296 |
|
---|
2297 |
|
---|
2298 | # The aliases save the names the user supplied, while $host etc.
|
---|
2299 | # will get canonicalized.
|
---|
2300 | test -n "$target_alias" &&
|
---|
2301 | test "$program_prefix$program_suffix$program_transform_name" = \
|
---|
2302 | NONENONEs,x,x, &&
|
---|
2303 | program_prefix=${target_alias}-
|
---|
2304 |
|
---|
2305 |
|
---|
2306 | # TODO: allow the user to specify whether they want a debugging
|
---|
2307 | # library or not?
|
---|
2308 |
|
---|
2309 | # check for compilers and other tools
|
---|
2310 | ac_ext=c
|
---|
2311 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2312 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2313 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2314 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
2315 | if test -n "$ac_tool_prefix"; then
|
---|
2316 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
---|
2317 | set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
---|
2318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2319 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2320 | if ${ac_cv_prog_CC+:} false; then :
|
---|
2321 | $as_echo_n "(cached) " >&6
|
---|
2322 | else
|
---|
2323 | if test -n "$CC"; then
|
---|
2324 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2325 | else
|
---|
2326 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2327 | for as_dir in $PATH
|
---|
2328 | do
|
---|
2329 | IFS=$as_save_IFS
|
---|
2330 | test -z "$as_dir" && as_dir=.
|
---|
2331 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2332 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2333 | ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
---|
2334 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2335 | break 2
|
---|
2336 | fi
|
---|
2337 | done
|
---|
2338 | done
|
---|
2339 | IFS=$as_save_IFS
|
---|
2340 |
|
---|
2341 | fi
|
---|
2342 | fi
|
---|
2343 | CC=$ac_cv_prog_CC
|
---|
2344 | if test -n "$CC"; then
|
---|
2345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
2346 | $as_echo "$CC" >&6; }
|
---|
2347 | else
|
---|
2348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2349 | $as_echo "no" >&6; }
|
---|
2350 | fi
|
---|
2351 |
|
---|
2352 |
|
---|
2353 | fi
|
---|
2354 | if test -z "$ac_cv_prog_CC"; then
|
---|
2355 | ac_ct_CC=$CC
|
---|
2356 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
2357 | set dummy gcc; ac_word=$2
|
---|
2358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2359 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2360 | if ${ac_cv_prog_ac_ct_CC+:} false; then :
|
---|
2361 | $as_echo_n "(cached) " >&6
|
---|
2362 | else
|
---|
2363 | if test -n "$ac_ct_CC"; then
|
---|
2364 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
2365 | else
|
---|
2366 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2367 | for as_dir in $PATH
|
---|
2368 | do
|
---|
2369 | IFS=$as_save_IFS
|
---|
2370 | test -z "$as_dir" && as_dir=.
|
---|
2371 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2372 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2373 | ac_cv_prog_ac_ct_CC="gcc"
|
---|
2374 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2375 | break 2
|
---|
2376 | fi
|
---|
2377 | done
|
---|
2378 | done
|
---|
2379 | IFS=$as_save_IFS
|
---|
2380 |
|
---|
2381 | fi
|
---|
2382 | fi
|
---|
2383 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
2384 | if test -n "$ac_ct_CC"; then
|
---|
2385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
---|
2386 | $as_echo "$ac_ct_CC" >&6; }
|
---|
2387 | else
|
---|
2388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2389 | $as_echo "no" >&6; }
|
---|
2390 | fi
|
---|
2391 |
|
---|
2392 | if test "x$ac_ct_CC" = x; then
|
---|
2393 | CC=""
|
---|
2394 | else
|
---|
2395 | case $cross_compiling:$ac_tool_warned in
|
---|
2396 | yes:)
|
---|
2397 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
2398 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
2399 | ac_tool_warned=yes ;;
|
---|
2400 | esac
|
---|
2401 | CC=$ac_ct_CC
|
---|
2402 | fi
|
---|
2403 | else
|
---|
2404 | CC="$ac_cv_prog_CC"
|
---|
2405 | fi
|
---|
2406 |
|
---|
2407 | if test -z "$CC"; then
|
---|
2408 | if test -n "$ac_tool_prefix"; then
|
---|
2409 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
---|
2410 | set dummy ${ac_tool_prefix}cc; ac_word=$2
|
---|
2411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2412 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2413 | if ${ac_cv_prog_CC+:} false; then :
|
---|
2414 | $as_echo_n "(cached) " >&6
|
---|
2415 | else
|
---|
2416 | if test -n "$CC"; then
|
---|
2417 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2418 | else
|
---|
2419 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2420 | for as_dir in $PATH
|
---|
2421 | do
|
---|
2422 | IFS=$as_save_IFS
|
---|
2423 | test -z "$as_dir" && as_dir=.
|
---|
2424 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2425 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2426 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
---|
2427 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2428 | break 2
|
---|
2429 | fi
|
---|
2430 | done
|
---|
2431 | done
|
---|
2432 | IFS=$as_save_IFS
|
---|
2433 |
|
---|
2434 | fi
|
---|
2435 | fi
|
---|
2436 | CC=$ac_cv_prog_CC
|
---|
2437 | if test -n "$CC"; then
|
---|
2438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
2439 | $as_echo "$CC" >&6; }
|
---|
2440 | else
|
---|
2441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2442 | $as_echo "no" >&6; }
|
---|
2443 | fi
|
---|
2444 |
|
---|
2445 |
|
---|
2446 | fi
|
---|
2447 | fi
|
---|
2448 | if test -z "$CC"; then
|
---|
2449 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
2450 | set dummy cc; ac_word=$2
|
---|
2451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2452 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2453 | if ${ac_cv_prog_CC+:} false; then :
|
---|
2454 | $as_echo_n "(cached) " >&6
|
---|
2455 | else
|
---|
2456 | if test -n "$CC"; then
|
---|
2457 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2458 | else
|
---|
2459 | ac_prog_rejected=no
|
---|
2460 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2461 | for as_dir in $PATH
|
---|
2462 | do
|
---|
2463 | IFS=$as_save_IFS
|
---|
2464 | test -z "$as_dir" && as_dir=.
|
---|
2465 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2466 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2467 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
---|
2468 | ac_prog_rejected=yes
|
---|
2469 | continue
|
---|
2470 | fi
|
---|
2471 | ac_cv_prog_CC="cc"
|
---|
2472 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2473 | break 2
|
---|
2474 | fi
|
---|
2475 | done
|
---|
2476 | done
|
---|
2477 | IFS=$as_save_IFS
|
---|
2478 |
|
---|
2479 | if test $ac_prog_rejected = yes; then
|
---|
2480 | # We found a bogon in the path, so make sure we never use it.
|
---|
2481 | set dummy $ac_cv_prog_CC
|
---|
2482 | shift
|
---|
2483 | if test $# != 0; then
|
---|
2484 | # We chose a different compiler from the bogus one.
|
---|
2485 | # However, it has the same basename, so the bogon will be chosen
|
---|
2486 | # first if we set CC to just the basename; use the full file name.
|
---|
2487 | shift
|
---|
2488 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
---|
2489 | fi
|
---|
2490 | fi
|
---|
2491 | fi
|
---|
2492 | fi
|
---|
2493 | CC=$ac_cv_prog_CC
|
---|
2494 | if test -n "$CC"; then
|
---|
2495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
2496 | $as_echo "$CC" >&6; }
|
---|
2497 | else
|
---|
2498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2499 | $as_echo "no" >&6; }
|
---|
2500 | fi
|
---|
2501 |
|
---|
2502 |
|
---|
2503 | fi
|
---|
2504 | if test -z "$CC"; then
|
---|
2505 | if test -n "$ac_tool_prefix"; then
|
---|
2506 | for ac_prog in cl.exe
|
---|
2507 | do
|
---|
2508 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
2509 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
2510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2511 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2512 | if ${ac_cv_prog_CC+:} false; then :
|
---|
2513 | $as_echo_n "(cached) " >&6
|
---|
2514 | else
|
---|
2515 | if test -n "$CC"; then
|
---|
2516 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2517 | else
|
---|
2518 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2519 | for as_dir in $PATH
|
---|
2520 | do
|
---|
2521 | IFS=$as_save_IFS
|
---|
2522 | test -z "$as_dir" && as_dir=.
|
---|
2523 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2524 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2525 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
---|
2526 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2527 | break 2
|
---|
2528 | fi
|
---|
2529 | done
|
---|
2530 | done
|
---|
2531 | IFS=$as_save_IFS
|
---|
2532 |
|
---|
2533 | fi
|
---|
2534 | fi
|
---|
2535 | CC=$ac_cv_prog_CC
|
---|
2536 | if test -n "$CC"; then
|
---|
2537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
2538 | $as_echo "$CC" >&6; }
|
---|
2539 | else
|
---|
2540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2541 | $as_echo "no" >&6; }
|
---|
2542 | fi
|
---|
2543 |
|
---|
2544 |
|
---|
2545 | test -n "$CC" && break
|
---|
2546 | done
|
---|
2547 | fi
|
---|
2548 | if test -z "$CC"; then
|
---|
2549 | ac_ct_CC=$CC
|
---|
2550 | for ac_prog in cl.exe
|
---|
2551 | do
|
---|
2552 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
2553 | set dummy $ac_prog; ac_word=$2
|
---|
2554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2555 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2556 | if ${ac_cv_prog_ac_ct_CC+:} false; then :
|
---|
2557 | $as_echo_n "(cached) " >&6
|
---|
2558 | else
|
---|
2559 | if test -n "$ac_ct_CC"; then
|
---|
2560 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
2561 | else
|
---|
2562 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2563 | for as_dir in $PATH
|
---|
2564 | do
|
---|
2565 | IFS=$as_save_IFS
|
---|
2566 | test -z "$as_dir" && as_dir=.
|
---|
2567 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2568 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2569 | ac_cv_prog_ac_ct_CC="$ac_prog"
|
---|
2570 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2571 | break 2
|
---|
2572 | fi
|
---|
2573 | done
|
---|
2574 | done
|
---|
2575 | IFS=$as_save_IFS
|
---|
2576 |
|
---|
2577 | fi
|
---|
2578 | fi
|
---|
2579 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
2580 | if test -n "$ac_ct_CC"; then
|
---|
2581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
---|
2582 | $as_echo "$ac_ct_CC" >&6; }
|
---|
2583 | else
|
---|
2584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2585 | $as_echo "no" >&6; }
|
---|
2586 | fi
|
---|
2587 |
|
---|
2588 |
|
---|
2589 | test -n "$ac_ct_CC" && break
|
---|
2590 | done
|
---|
2591 |
|
---|
2592 | if test "x$ac_ct_CC" = x; then
|
---|
2593 | CC=""
|
---|
2594 | else
|
---|
2595 | case $cross_compiling:$ac_tool_warned in
|
---|
2596 | yes:)
|
---|
2597 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
2598 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
2599 | ac_tool_warned=yes ;;
|
---|
2600 | esac
|
---|
2601 | CC=$ac_ct_CC
|
---|
2602 | fi
|
---|
2603 | fi
|
---|
2604 |
|
---|
2605 | fi
|
---|
2606 |
|
---|
2607 |
|
---|
2608 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2609 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2610 | as_fn_error $? "no acceptable C compiler found in \$PATH
|
---|
2611 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
2612 |
|
---|
2613 | # Provide some information about the compiler.
|
---|
2614 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
|
---|
2615 | set X $ac_compile
|
---|
2616 | ac_compiler=$2
|
---|
2617 | for ac_option in --version -v -V -qversion; do
|
---|
2618 | { { ac_try="$ac_compiler $ac_option >&5"
|
---|
2619 | case "(($ac_try" in
|
---|
2620 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2621 | *) ac_try_echo=$ac_try;;
|
---|
2622 | esac
|
---|
2623 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
2624 | $as_echo "$ac_try_echo"; } >&5
|
---|
2625 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err
|
---|
2626 | ac_status=$?
|
---|
2627 | if test -s conftest.err; then
|
---|
2628 | sed '10a\
|
---|
2629 | ... rest of stderr output deleted ...
|
---|
2630 | 10q' conftest.err >conftest.er1
|
---|
2631 | cat conftest.er1 >&5
|
---|
2632 | fi
|
---|
2633 | rm -f conftest.er1 conftest.err
|
---|
2634 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
2635 | test $ac_status = 0; }
|
---|
2636 | done
|
---|
2637 |
|
---|
2638 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
2639 | /* end confdefs.h. */
|
---|
2640 |
|
---|
2641 | int
|
---|
2642 | main ()
|
---|
2643 | {
|
---|
2644 |
|
---|
2645 | ;
|
---|
2646 | return 0;
|
---|
2647 | }
|
---|
2648 | _ACEOF
|
---|
2649 | ac_clean_files_save=$ac_clean_files
|
---|
2650 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
|
---|
2651 | # Try to create an executable without -o first, disregard a.out.
|
---|
2652 | # It will help us diagnose broken compilers, and finding out an intuition
|
---|
2653 | # of exeext.
|
---|
2654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
|
---|
2655 | $as_echo_n "checking whether the C compiler works... " >&6; }
|
---|
2656 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
---|
2657 |
|
---|
2658 | # The possible output files:
|
---|
2659 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
|
---|
2660 |
|
---|
2661 | ac_rmfiles=
|
---|
2662 | for ac_file in $ac_files
|
---|
2663 | do
|
---|
2664 | case $ac_file in
|
---|
2665 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
---|
2666 | * ) ac_rmfiles="$ac_rmfiles $ac_file";;
|
---|
2667 | esac
|
---|
2668 | done
|
---|
2669 | rm -f $ac_rmfiles
|
---|
2670 |
|
---|
2671 | if { { ac_try="$ac_link_default"
|
---|
2672 | case "(($ac_try" in
|
---|
2673 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2674 | *) ac_try_echo=$ac_try;;
|
---|
2675 | esac
|
---|
2676 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
2677 | $as_echo "$ac_try_echo"; } >&5
|
---|
2678 | (eval "$ac_link_default") 2>&5
|
---|
2679 | ac_status=$?
|
---|
2680 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
2681 | test $ac_status = 0; }; then :
|
---|
2682 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
|
---|
2683 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
|
---|
2684 | # in a Makefile. We should not override ac_cv_exeext if it was cached,
|
---|
2685 | # so that the user can short-circuit this test for compilers unknown to
|
---|
2686 | # Autoconf.
|
---|
2687 | for ac_file in $ac_files ''
|
---|
2688 | do
|
---|
2689 | test -f "$ac_file" || continue
|
---|
2690 | case $ac_file in
|
---|
2691 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
|
---|
2692 | ;;
|
---|
2693 | [ab].out )
|
---|
2694 | # We found the default executable, but exeext='' is most
|
---|
2695 | # certainly right.
|
---|
2696 | break;;
|
---|
2697 | *.* )
|
---|
2698 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
|
---|
2699 | then :; else
|
---|
2700 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
2701 | fi
|
---|
2702 | # We set ac_cv_exeext here because the later test for it is not
|
---|
2703 | # safe: cross compilers may not add the suffix if given an `-o'
|
---|
2704 | # argument, so we may need to know it at that point already.
|
---|
2705 | # Even if this section looks crufty: it has the advantage of
|
---|
2706 | # actually working.
|
---|
2707 | break;;
|
---|
2708 | * )
|
---|
2709 | break;;
|
---|
2710 | esac
|
---|
2711 | done
|
---|
2712 | test "$ac_cv_exeext" = no && ac_cv_exeext=
|
---|
2713 |
|
---|
2714 | else
|
---|
2715 | ac_file=''
|
---|
2716 | fi
|
---|
2717 | if test -z "$ac_file"; then :
|
---|
2718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2719 | $as_echo "no" >&6; }
|
---|
2720 | $as_echo "$as_me: failed program was:" >&5
|
---|
2721 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2722 |
|
---|
2723 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2724 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2725 | as_fn_error 77 "C compiler cannot create executables
|
---|
2726 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
2727 | else
|
---|
2728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
2729 | $as_echo "yes" >&6; }
|
---|
2730 | fi
|
---|
2731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
|
---|
2732 | $as_echo_n "checking for C compiler default output file name... " >&6; }
|
---|
2733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
|
---|
2734 | $as_echo "$ac_file" >&6; }
|
---|
2735 | ac_exeext=$ac_cv_exeext
|
---|
2736 |
|
---|
2737 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
|
---|
2738 | ac_clean_files=$ac_clean_files_save
|
---|
2739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
|
---|
2740 | $as_echo_n "checking for suffix of executables... " >&6; }
|
---|
2741 | if { { ac_try="$ac_link"
|
---|
2742 | case "(($ac_try" in
|
---|
2743 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2744 | *) ac_try_echo=$ac_try;;
|
---|
2745 | esac
|
---|
2746 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
2747 | $as_echo "$ac_try_echo"; } >&5
|
---|
2748 | (eval "$ac_link") 2>&5
|
---|
2749 | ac_status=$?
|
---|
2750 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
2751 | test $ac_status = 0; }; then :
|
---|
2752 | # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
---|
2753 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
---|
2754 | # work properly (i.e., refer to `conftest.exe'), while it won't with
|
---|
2755 | # `rm'.
|
---|
2756 | for ac_file in conftest.exe conftest conftest.*; do
|
---|
2757 | test -f "$ac_file" || continue
|
---|
2758 | case $ac_file in
|
---|
2759 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
---|
2760 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
2761 | break;;
|
---|
2762 | * ) break;;
|
---|
2763 | esac
|
---|
2764 | done
|
---|
2765 | else
|
---|
2766 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2767 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2768 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link
|
---|
2769 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
2770 | fi
|
---|
2771 | rm -f conftest conftest$ac_cv_exeext
|
---|
2772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
|
---|
2773 | $as_echo "$ac_cv_exeext" >&6; }
|
---|
2774 |
|
---|
2775 | rm -f conftest.$ac_ext
|
---|
2776 | EXEEXT=$ac_cv_exeext
|
---|
2777 | ac_exeext=$EXEEXT
|
---|
2778 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
2779 | /* end confdefs.h. */
|
---|
2780 | #include <stdio.h>
|
---|
2781 | int
|
---|
2782 | main ()
|
---|
2783 | {
|
---|
2784 | FILE *f = fopen ("conftest.out", "w");
|
---|
2785 | return ferror (f) || fclose (f) != 0;
|
---|
2786 |
|
---|
2787 | ;
|
---|
2788 | return 0;
|
---|
2789 | }
|
---|
2790 | _ACEOF
|
---|
2791 | ac_clean_files="$ac_clean_files conftest.out"
|
---|
2792 | # Check that the compiler produces executables we can run. If not, either
|
---|
2793 | # the compiler is broken, or we cross compile.
|
---|
2794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
|
---|
2795 | $as_echo_n "checking whether we are cross compiling... " >&6; }
|
---|
2796 | if test "$cross_compiling" != yes; then
|
---|
2797 | { { ac_try="$ac_link"
|
---|
2798 | case "(($ac_try" in
|
---|
2799 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2800 | *) ac_try_echo=$ac_try;;
|
---|
2801 | esac
|
---|
2802 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
2803 | $as_echo "$ac_try_echo"; } >&5
|
---|
2804 | (eval "$ac_link") 2>&5
|
---|
2805 | ac_status=$?
|
---|
2806 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
2807 | test $ac_status = 0; }
|
---|
2808 | if { ac_try='./conftest$ac_cv_exeext'
|
---|
2809 | { { case "(($ac_try" in
|
---|
2810 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2811 | *) ac_try_echo=$ac_try;;
|
---|
2812 | esac
|
---|
2813 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
2814 | $as_echo "$ac_try_echo"; } >&5
|
---|
2815 | (eval "$ac_try") 2>&5
|
---|
2816 | ac_status=$?
|
---|
2817 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
2818 | test $ac_status = 0; }; }; then
|
---|
2819 | cross_compiling=no
|
---|
2820 | else
|
---|
2821 | if test "$cross_compiling" = maybe; then
|
---|
2822 | cross_compiling=yes
|
---|
2823 | else
|
---|
2824 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2825 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2826 | as_fn_error $? "cannot run C compiled programs.
|
---|
2827 | If you meant to cross compile, use \`--host'.
|
---|
2828 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
2829 | fi
|
---|
2830 | fi
|
---|
2831 | fi
|
---|
2832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
|
---|
2833 | $as_echo "$cross_compiling" >&6; }
|
---|
2834 |
|
---|
2835 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
|
---|
2836 | ac_clean_files=$ac_clean_files_save
|
---|
2837 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
|
---|
2838 | $as_echo_n "checking for suffix of object files... " >&6; }
|
---|
2839 | if ${ac_cv_objext+:} false; then :
|
---|
2840 | $as_echo_n "(cached) " >&6
|
---|
2841 | else
|
---|
2842 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
2843 | /* end confdefs.h. */
|
---|
2844 |
|
---|
2845 | int
|
---|
2846 | main ()
|
---|
2847 | {
|
---|
2848 |
|
---|
2849 | ;
|
---|
2850 | return 0;
|
---|
2851 | }
|
---|
2852 | _ACEOF
|
---|
2853 | rm -f conftest.o conftest.obj
|
---|
2854 | if { { ac_try="$ac_compile"
|
---|
2855 | case "(($ac_try" in
|
---|
2856 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2857 | *) ac_try_echo=$ac_try;;
|
---|
2858 | esac
|
---|
2859 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
2860 | $as_echo "$ac_try_echo"; } >&5
|
---|
2861 | (eval "$ac_compile") 2>&5
|
---|
2862 | ac_status=$?
|
---|
2863 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
2864 | test $ac_status = 0; }; then :
|
---|
2865 | for ac_file in conftest.o conftest.obj conftest.*; do
|
---|
2866 | test -f "$ac_file" || continue;
|
---|
2867 | case $ac_file in
|
---|
2868 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
|
---|
2869 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
---|
2870 | break;;
|
---|
2871 | esac
|
---|
2872 | done
|
---|
2873 | else
|
---|
2874 | $as_echo "$as_me: failed program was:" >&5
|
---|
2875 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2876 |
|
---|
2877 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2878 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2879 | as_fn_error $? "cannot compute suffix of object files: cannot compile
|
---|
2880 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
2881 | fi
|
---|
2882 | rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
---|
2883 | fi
|
---|
2884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
|
---|
2885 | $as_echo "$ac_cv_objext" >&6; }
|
---|
2886 | OBJEXT=$ac_cv_objext
|
---|
2887 | ac_objext=$OBJEXT
|
---|
2888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
|
---|
2889 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
|
---|
2890 | if ${ac_cv_c_compiler_gnu+:} false; then :
|
---|
2891 | $as_echo_n "(cached) " >&6
|
---|
2892 | else
|
---|
2893 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
2894 | /* end confdefs.h. */
|
---|
2895 |
|
---|
2896 | int
|
---|
2897 | main ()
|
---|
2898 | {
|
---|
2899 | #ifndef __GNUC__
|
---|
2900 | choke me
|
---|
2901 | #endif
|
---|
2902 |
|
---|
2903 | ;
|
---|
2904 | return 0;
|
---|
2905 | }
|
---|
2906 | _ACEOF
|
---|
2907 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
2908 | ac_compiler_gnu=yes
|
---|
2909 | else
|
---|
2910 | ac_compiler_gnu=no
|
---|
2911 | fi
|
---|
2912 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2913 | ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
---|
2914 |
|
---|
2915 | fi
|
---|
2916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
|
---|
2917 | $as_echo "$ac_cv_c_compiler_gnu" >&6; }
|
---|
2918 | if test $ac_compiler_gnu = yes; then
|
---|
2919 | GCC=yes
|
---|
2920 | else
|
---|
2921 | GCC=
|
---|
2922 | fi
|
---|
2923 | ac_test_CFLAGS=${CFLAGS+set}
|
---|
2924 | ac_save_CFLAGS=$CFLAGS
|
---|
2925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
|
---|
2926 | $as_echo_n "checking whether $CC accepts -g... " >&6; }
|
---|
2927 | if ${ac_cv_prog_cc_g+:} false; then :
|
---|
2928 | $as_echo_n "(cached) " >&6
|
---|
2929 | else
|
---|
2930 | ac_save_c_werror_flag=$ac_c_werror_flag
|
---|
2931 | ac_c_werror_flag=yes
|
---|
2932 | ac_cv_prog_cc_g=no
|
---|
2933 | CFLAGS="-g"
|
---|
2934 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
2935 | /* end confdefs.h. */
|
---|
2936 |
|
---|
2937 | int
|
---|
2938 | main ()
|
---|
2939 | {
|
---|
2940 |
|
---|
2941 | ;
|
---|
2942 | return 0;
|
---|
2943 | }
|
---|
2944 | _ACEOF
|
---|
2945 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
2946 | ac_cv_prog_cc_g=yes
|
---|
2947 | else
|
---|
2948 | CFLAGS=""
|
---|
2949 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
2950 | /* end confdefs.h. */
|
---|
2951 |
|
---|
2952 | int
|
---|
2953 | main ()
|
---|
2954 | {
|
---|
2955 |
|
---|
2956 | ;
|
---|
2957 | return 0;
|
---|
2958 | }
|
---|
2959 | _ACEOF
|
---|
2960 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
2961 |
|
---|
2962 | else
|
---|
2963 | ac_c_werror_flag=$ac_save_c_werror_flag
|
---|
2964 | CFLAGS="-g"
|
---|
2965 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
2966 | /* end confdefs.h. */
|
---|
2967 |
|
---|
2968 | int
|
---|
2969 | main ()
|
---|
2970 | {
|
---|
2971 |
|
---|
2972 | ;
|
---|
2973 | return 0;
|
---|
2974 | }
|
---|
2975 | _ACEOF
|
---|
2976 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
2977 | ac_cv_prog_cc_g=yes
|
---|
2978 | fi
|
---|
2979 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2980 | fi
|
---|
2981 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2982 | fi
|
---|
2983 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2984 | ac_c_werror_flag=$ac_save_c_werror_flag
|
---|
2985 | fi
|
---|
2986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
|
---|
2987 | $as_echo "$ac_cv_prog_cc_g" >&6; }
|
---|
2988 | if test "$ac_test_CFLAGS" = set; then
|
---|
2989 | CFLAGS=$ac_save_CFLAGS
|
---|
2990 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
2991 | if test "$GCC" = yes; then
|
---|
2992 | CFLAGS="-g -O2"
|
---|
2993 | else
|
---|
2994 | CFLAGS="-g"
|
---|
2995 | fi
|
---|
2996 | else
|
---|
2997 | if test "$GCC" = yes; then
|
---|
2998 | CFLAGS="-O2"
|
---|
2999 | else
|
---|
3000 | CFLAGS=
|
---|
3001 | fi
|
---|
3002 | fi
|
---|
3003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
|
---|
3004 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
|
---|
3005 | if ${ac_cv_prog_cc_c89+:} false; then :
|
---|
3006 | $as_echo_n "(cached) " >&6
|
---|
3007 | else
|
---|
3008 | ac_cv_prog_cc_c89=no
|
---|
3009 | ac_save_CC=$CC
|
---|
3010 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3011 | /* end confdefs.h. */
|
---|
3012 | #include <stdarg.h>
|
---|
3013 | #include <stdio.h>
|
---|
3014 | struct stat;
|
---|
3015 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
---|
3016 | struct buf { int x; };
|
---|
3017 | FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
---|
3018 | static char *e (p, i)
|
---|
3019 | char **p;
|
---|
3020 | int i;
|
---|
3021 | {
|
---|
3022 | return p[i];
|
---|
3023 | }
|
---|
3024 | static char *f (char * (*g) (char **, int), char **p, ...)
|
---|
3025 | {
|
---|
3026 | char *s;
|
---|
3027 | va_list v;
|
---|
3028 | va_start (v,p);
|
---|
3029 | s = g (p, va_arg (v,int));
|
---|
3030 | va_end (v);
|
---|
3031 | return s;
|
---|
3032 | }
|
---|
3033 |
|
---|
3034 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
---|
3035 | function prototypes and stuff, but not '\xHH' hex character constants.
|
---|
3036 | These don't provoke an error unfortunately, instead are silently treated
|
---|
3037 | as 'x'. The following induces an error, until -std is added to get
|
---|
3038 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
---|
3039 | array size at least. It's necessary to write '\x00'==0 to get something
|
---|
3040 | that's true only with -std. */
|
---|
3041 | int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
---|
3042 |
|
---|
3043 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|
---|
3044 | inside strings and character constants. */
|
---|
3045 | #define FOO(x) 'x'
|
---|
3046 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
---|
3047 |
|
---|
3048 | int test (int i, double x);
|
---|
3049 | struct s1 {int (*f) (int a);};
|
---|
3050 | struct s2 {int (*f) (double a);};
|
---|
3051 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
---|
3052 | int argc;
|
---|
3053 | char **argv;
|
---|
3054 | int
|
---|
3055 | main ()
|
---|
3056 | {
|
---|
3057 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
---|
3058 | ;
|
---|
3059 | return 0;
|
---|
3060 | }
|
---|
3061 | _ACEOF
|
---|
3062 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
|
---|
3063 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
---|
3064 | do
|
---|
3065 | CC="$ac_save_CC $ac_arg"
|
---|
3066 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3067 | ac_cv_prog_cc_c89=$ac_arg
|
---|
3068 | fi
|
---|
3069 | rm -f core conftest.err conftest.$ac_objext
|
---|
3070 | test "x$ac_cv_prog_cc_c89" != "xno" && break
|
---|
3071 | done
|
---|
3072 | rm -f conftest.$ac_ext
|
---|
3073 | CC=$ac_save_CC
|
---|
3074 |
|
---|
3075 | fi
|
---|
3076 | # AC_CACHE_VAL
|
---|
3077 | case "x$ac_cv_prog_cc_c89" in
|
---|
3078 | x)
|
---|
3079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
|
---|
3080 | $as_echo "none needed" >&6; } ;;
|
---|
3081 | xno)
|
---|
3082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
|
---|
3083 | $as_echo "unsupported" >&6; } ;;
|
---|
3084 | *)
|
---|
3085 | CC="$CC $ac_cv_prog_cc_c89"
|
---|
3086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
|
---|
3087 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
|
---|
3088 | esac
|
---|
3089 | if test "x$ac_cv_prog_cc_c89" != xno; then :
|
---|
3090 |
|
---|
3091 | fi
|
---|
3092 |
|
---|
3093 | ac_ext=c
|
---|
3094 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3095 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3096 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3097 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3098 |
|
---|
3099 | # Find a good install program. We prefer a C program (faster),
|
---|
3100 | # so one script is as good as another. But avoid the broken or
|
---|
3101 | # incompatible versions:
|
---|
3102 | # SysV /etc/install, /usr/sbin/install
|
---|
3103 | # SunOS /usr/etc/install
|
---|
3104 | # IRIX /sbin/install
|
---|
3105 | # AIX /bin/install
|
---|
3106 | # AmigaOS /C/install, which installs bootblocks on floppy discs
|
---|
3107 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
3108 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
3109 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
3110 | # OS/2's system install, which has a completely different semantic
|
---|
3111 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
3112 | # Reject install programs that cannot install multiple files.
|
---|
3113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
|
---|
3114 | $as_echo_n "checking for a BSD-compatible install... " >&6; }
|
---|
3115 | if test -z "$INSTALL"; then
|
---|
3116 | if ${ac_cv_path_install+:} false; then :
|
---|
3117 | $as_echo_n "(cached) " >&6
|
---|
3118 | else
|
---|
3119 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3120 | for as_dir in $PATH
|
---|
3121 | do
|
---|
3122 | IFS=$as_save_IFS
|
---|
3123 | test -z "$as_dir" && as_dir=.
|
---|
3124 | # Account for people who put trailing slashes in PATH elements.
|
---|
3125 | case $as_dir/ in #((
|
---|
3126 | ./ | .// | /[cC]/* | \
|
---|
3127 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
---|
3128 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
|
---|
3129 | /usr/ucb/* ) ;;
|
---|
3130 | *)
|
---|
3131 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
3132 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
3133 | # by default.
|
---|
3134 | for ac_prog in ginstall scoinst install; do
|
---|
3135 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3136 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
|
---|
3137 | if test $ac_prog = install &&
|
---|
3138 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
3139 | # AIX install. It has an incompatible calling convention.
|
---|
3140 | :
|
---|
3141 | elif test $ac_prog = install &&
|
---|
3142 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
3143 | # program-specific install script used by HP pwplus--don't use.
|
---|
3144 | :
|
---|
3145 | else
|
---|
3146 | rm -rf conftest.one conftest.two conftest.dir
|
---|
3147 | echo one > conftest.one
|
---|
3148 | echo two > conftest.two
|
---|
3149 | mkdir conftest.dir
|
---|
3150 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
|
---|
3151 | test -s conftest.one && test -s conftest.two &&
|
---|
3152 | test -s conftest.dir/conftest.one &&
|
---|
3153 | test -s conftest.dir/conftest.two
|
---|
3154 | then
|
---|
3155 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
---|
3156 | break 3
|
---|
3157 | fi
|
---|
3158 | fi
|
---|
3159 | fi
|
---|
3160 | done
|
---|
3161 | done
|
---|
3162 | ;;
|
---|
3163 | esac
|
---|
3164 |
|
---|
3165 | done
|
---|
3166 | IFS=$as_save_IFS
|
---|
3167 |
|
---|
3168 | rm -rf conftest.one conftest.two conftest.dir
|
---|
3169 |
|
---|
3170 | fi
|
---|
3171 | if test "${ac_cv_path_install+set}" = set; then
|
---|
3172 | INSTALL=$ac_cv_path_install
|
---|
3173 | else
|
---|
3174 | # As a last resort, use the slow shell script. Don't cache a
|
---|
3175 | # value for INSTALL within a source directory, because that will
|
---|
3176 | # break other packages using the cache if that directory is
|
---|
3177 | # removed, or if the value is a relative name.
|
---|
3178 | INSTALL=$ac_install_sh
|
---|
3179 | fi
|
---|
3180 | fi
|
---|
3181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
|
---|
3182 | $as_echo "$INSTALL" >&6; }
|
---|
3183 |
|
---|
3184 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
3185 | # It thinks the first close brace ends the variable substitution.
|
---|
3186 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
3187 |
|
---|
3188 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
---|
3189 |
|
---|
3190 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
3191 |
|
---|
3192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
|
---|
3193 | $as_echo_n "checking whether ln -s works... " >&6; }
|
---|
3194 | LN_S=$as_ln_s
|
---|
3195 | if test "$LN_S" = "ln -s"; then
|
---|
3196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
3197 | $as_echo "yes" >&6; }
|
---|
3198 | else
|
---|
3199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
|
---|
3200 | $as_echo "no, using $LN_S" >&6; }
|
---|
3201 | fi
|
---|
3202 |
|
---|
3203 |
|
---|
3204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if architecture is 64-bit" >&5
|
---|
3205 | $as_echo_n "checking to see if architecture is 64-bit... " >&6; }
|
---|
3206 | arch_64bit=no
|
---|
3207 | case "$host_cpu" in
|
---|
3208 | x86_64) arch_64bit=yes ;;
|
---|
3209 | esac
|
---|
3210 |
|
---|
3211 | if test "$arch_64bit" = yes; then
|
---|
3212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
3213 | $as_echo "yes" >&6; }
|
---|
3214 | if test -z "$ARCH_DEP_FLAGS" ; then
|
---|
3215 | ARCH_DEP_FLAGS="-fPIC"
|
---|
3216 | gsdlarch='64'
|
---|
3217 | fi
|
---|
3218 | else
|
---|
3219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3220 | $as_echo "no" >&6; }
|
---|
3221 | if test -z "$ARCH_DEP_FLAGS" ; then
|
---|
3222 | ARCH_DEP_FLAGS=
|
---|
3223 | gsdlarch='32'
|
---|
3224 | fi
|
---|
3225 | fi
|
---|
3226 |
|
---|
3227 | export ARCH_DEP_FLAGS
|
---|
3228 |
|
---|
3229 |
|
---|
3230 |
|
---|
3231 | ac_ext=c
|
---|
3232 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3233 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3234 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3235 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
|
---|
3237 | $as_echo_n "checking how to run the C preprocessor... " >&6; }
|
---|
3238 | # On Suns, sometimes $CPP names a directory.
|
---|
3239 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
3240 | CPP=
|
---|
3241 | fi
|
---|
3242 | if test -z "$CPP"; then
|
---|
3243 | if ${ac_cv_prog_CPP+:} false; then :
|
---|
3244 | $as_echo_n "(cached) " >&6
|
---|
3245 | else
|
---|
3246 | # Double quotes because CPP needs to be expanded
|
---|
3247 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
---|
3248 | do
|
---|
3249 | ac_preproc_ok=false
|
---|
3250 | for ac_c_preproc_warn_flag in '' yes
|
---|
3251 | do
|
---|
3252 | # Use a header file that comes with gcc, so configuring glibc
|
---|
3253 | # with a fresh cross-compiler works.
|
---|
3254 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
3255 | # <limits.h> exists even on freestanding compilers.
|
---|
3256 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
3257 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
3258 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3259 | /* end confdefs.h. */
|
---|
3260 | #ifdef __STDC__
|
---|
3261 | # include <limits.h>
|
---|
3262 | #else
|
---|
3263 | # include <assert.h>
|
---|
3264 | #endif
|
---|
3265 | Syntax error
|
---|
3266 | _ACEOF
|
---|
3267 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
3268 |
|
---|
3269 | else
|
---|
3270 | # Broken: fails on valid input.
|
---|
3271 | continue
|
---|
3272 | fi
|
---|
3273 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
3274 |
|
---|
3275 | # OK, works on sane cases. Now check whether nonexistent headers
|
---|
3276 | # can be detected and how.
|
---|
3277 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3278 | /* end confdefs.h. */
|
---|
3279 | #include <ac_nonexistent.h>
|
---|
3280 | _ACEOF
|
---|
3281 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
3282 | # Broken: success on invalid input.
|
---|
3283 | continue
|
---|
3284 | else
|
---|
3285 | # Passes both tests.
|
---|
3286 | ac_preproc_ok=:
|
---|
3287 | break
|
---|
3288 | fi
|
---|
3289 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
3290 |
|
---|
3291 | done
|
---|
3292 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
3293 | rm -f conftest.i conftest.err conftest.$ac_ext
|
---|
3294 | if $ac_preproc_ok; then :
|
---|
3295 | break
|
---|
3296 | fi
|
---|
3297 |
|
---|
3298 | done
|
---|
3299 | ac_cv_prog_CPP=$CPP
|
---|
3300 |
|
---|
3301 | fi
|
---|
3302 | CPP=$ac_cv_prog_CPP
|
---|
3303 | else
|
---|
3304 | ac_cv_prog_CPP=$CPP
|
---|
3305 | fi
|
---|
3306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
|
---|
3307 | $as_echo "$CPP" >&6; }
|
---|
3308 | ac_preproc_ok=false
|
---|
3309 | for ac_c_preproc_warn_flag in '' yes
|
---|
3310 | do
|
---|
3311 | # Use a header file that comes with gcc, so configuring glibc
|
---|
3312 | # with a fresh cross-compiler works.
|
---|
3313 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
3314 | # <limits.h> exists even on freestanding compilers.
|
---|
3315 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
3316 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
3317 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3318 | /* end confdefs.h. */
|
---|
3319 | #ifdef __STDC__
|
---|
3320 | # include <limits.h>
|
---|
3321 | #else
|
---|
3322 | # include <assert.h>
|
---|
3323 | #endif
|
---|
3324 | Syntax error
|
---|
3325 | _ACEOF
|
---|
3326 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
3327 |
|
---|
3328 | else
|
---|
3329 | # Broken: fails on valid input.
|
---|
3330 | continue
|
---|
3331 | fi
|
---|
3332 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
3333 |
|
---|
3334 | # OK, works on sane cases. Now check whether nonexistent headers
|
---|
3335 | # can be detected and how.
|
---|
3336 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3337 | /* end confdefs.h. */
|
---|
3338 | #include <ac_nonexistent.h>
|
---|
3339 | _ACEOF
|
---|
3340 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
3341 | # Broken: success on invalid input.
|
---|
3342 | continue
|
---|
3343 | else
|
---|
3344 | # Passes both tests.
|
---|
3345 | ac_preproc_ok=:
|
---|
3346 | break
|
---|
3347 | fi
|
---|
3348 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
3349 |
|
---|
3350 | done
|
---|
3351 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
3352 | rm -f conftest.i conftest.err conftest.$ac_ext
|
---|
3353 | if $ac_preproc_ok; then :
|
---|
3354 |
|
---|
3355 | else
|
---|
3356 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
3357 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
3358 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
|
---|
3359 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
3360 | fi
|
---|
3361 |
|
---|
3362 | ac_ext=c
|
---|
3363 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3364 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3365 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3366 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3367 |
|
---|
3368 |
|
---|
3369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
|
---|
3370 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
|
---|
3371 | if ${ac_cv_path_GREP+:} false; then :
|
---|
3372 | $as_echo_n "(cached) " >&6
|
---|
3373 | else
|
---|
3374 | if test -z "$GREP"; then
|
---|
3375 | ac_path_GREP_found=false
|
---|
3376 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
3377 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3378 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
3379 | do
|
---|
3380 | IFS=$as_save_IFS
|
---|
3381 | test -z "$as_dir" && as_dir=.
|
---|
3382 | for ac_prog in grep ggrep; do
|
---|
3383 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3384 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
|
---|
3385 | as_fn_executable_p "$ac_path_GREP" || continue
|
---|
3386 | # Check for GNU ac_path_GREP and select it if it is found.
|
---|
3387 | # Check for GNU $ac_path_GREP
|
---|
3388 | case `"$ac_path_GREP" --version 2>&1` in
|
---|
3389 | *GNU*)
|
---|
3390 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
|
---|
3391 | *)
|
---|
3392 | ac_count=0
|
---|
3393 | $as_echo_n 0123456789 >"conftest.in"
|
---|
3394 | while :
|
---|
3395 | do
|
---|
3396 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
3397 | mv "conftest.tmp" "conftest.in"
|
---|
3398 | cp "conftest.in" "conftest.nl"
|
---|
3399 | $as_echo 'GREP' >> "conftest.nl"
|
---|
3400 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
3401 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
3402 | as_fn_arith $ac_count + 1 && ac_count=$as_val
|
---|
3403 | if test $ac_count -gt ${ac_path_GREP_max-0}; then
|
---|
3404 | # Best one so far, save it but keep looking for a better one
|
---|
3405 | ac_cv_path_GREP="$ac_path_GREP"
|
---|
3406 | ac_path_GREP_max=$ac_count
|
---|
3407 | fi
|
---|
3408 | # 10*(2^10) chars as input seems more than enough
|
---|
3409 | test $ac_count -gt 10 && break
|
---|
3410 | done
|
---|
3411 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
3412 | esac
|
---|
3413 |
|
---|
3414 | $ac_path_GREP_found && break 3
|
---|
3415 | done
|
---|
3416 | done
|
---|
3417 | done
|
---|
3418 | IFS=$as_save_IFS
|
---|
3419 | if test -z "$ac_cv_path_GREP"; then
|
---|
3420 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
---|
3421 | fi
|
---|
3422 | else
|
---|
3423 | ac_cv_path_GREP=$GREP
|
---|
3424 | fi
|
---|
3425 |
|
---|
3426 | fi
|
---|
3427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
|
---|
3428 | $as_echo "$ac_cv_path_GREP" >&6; }
|
---|
3429 | GREP="$ac_cv_path_GREP"
|
---|
3430 |
|
---|
3431 |
|
---|
3432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
|
---|
3433 | $as_echo_n "checking for egrep... " >&6; }
|
---|
3434 | if ${ac_cv_path_EGREP+:} false; then :
|
---|
3435 | $as_echo_n "(cached) " >&6
|
---|
3436 | else
|
---|
3437 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
|
---|
3438 | then ac_cv_path_EGREP="$GREP -E"
|
---|
3439 | else
|
---|
3440 | if test -z "$EGREP"; then
|
---|
3441 | ac_path_EGREP_found=false
|
---|
3442 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
3443 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3444 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
3445 | do
|
---|
3446 | IFS=$as_save_IFS
|
---|
3447 | test -z "$as_dir" && as_dir=.
|
---|
3448 | for ac_prog in egrep; do
|
---|
3449 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3450 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
|
---|
3451 | as_fn_executable_p "$ac_path_EGREP" || continue
|
---|
3452 | # Check for GNU ac_path_EGREP and select it if it is found.
|
---|
3453 | # Check for GNU $ac_path_EGREP
|
---|
3454 | case `"$ac_path_EGREP" --version 2>&1` in
|
---|
3455 | *GNU*)
|
---|
3456 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
|
---|
3457 | *)
|
---|
3458 | ac_count=0
|
---|
3459 | $as_echo_n 0123456789 >"conftest.in"
|
---|
3460 | while :
|
---|
3461 | do
|
---|
3462 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
3463 | mv "conftest.tmp" "conftest.in"
|
---|
3464 | cp "conftest.in" "conftest.nl"
|
---|
3465 | $as_echo 'EGREP' >> "conftest.nl"
|
---|
3466 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
3467 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
3468 | as_fn_arith $ac_count + 1 && ac_count=$as_val
|
---|
3469 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then
|
---|
3470 | # Best one so far, save it but keep looking for a better one
|
---|
3471 | ac_cv_path_EGREP="$ac_path_EGREP"
|
---|
3472 | ac_path_EGREP_max=$ac_count
|
---|
3473 | fi
|
---|
3474 | # 10*(2^10) chars as input seems more than enough
|
---|
3475 | test $ac_count -gt 10 && break
|
---|
3476 | done
|
---|
3477 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
3478 | esac
|
---|
3479 |
|
---|
3480 | $ac_path_EGREP_found && break 3
|
---|
3481 | done
|
---|
3482 | done
|
---|
3483 | done
|
---|
3484 | IFS=$as_save_IFS
|
---|
3485 | if test -z "$ac_cv_path_EGREP"; then
|
---|
3486 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
---|
3487 | fi
|
---|
3488 | else
|
---|
3489 | ac_cv_path_EGREP=$EGREP
|
---|
3490 | fi
|
---|
3491 |
|
---|
3492 | fi
|
---|
3493 | fi
|
---|
3494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
|
---|
3495 | $as_echo "$ac_cv_path_EGREP" >&6; }
|
---|
3496 | EGREP="$ac_cv_path_EGREP"
|
---|
3497 |
|
---|
3498 |
|
---|
3499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
|
---|
3500 | $as_echo_n "checking for ANSI C header files... " >&6; }
|
---|
3501 | if ${ac_cv_header_stdc+:} false; then :
|
---|
3502 | $as_echo_n "(cached) " >&6
|
---|
3503 | else
|
---|
3504 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3505 | /* end confdefs.h. */
|
---|
3506 | #include <stdlib.h>
|
---|
3507 | #include <stdarg.h>
|
---|
3508 | #include <string.h>
|
---|
3509 | #include <float.h>
|
---|
3510 |
|
---|
3511 | int
|
---|
3512 | main ()
|
---|
3513 | {
|
---|
3514 |
|
---|
3515 | ;
|
---|
3516 | return 0;
|
---|
3517 | }
|
---|
3518 | _ACEOF
|
---|
3519 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3520 | ac_cv_header_stdc=yes
|
---|
3521 | else
|
---|
3522 | ac_cv_header_stdc=no
|
---|
3523 | fi
|
---|
3524 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3525 |
|
---|
3526 | if test $ac_cv_header_stdc = yes; then
|
---|
3527 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
3528 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3529 | /* end confdefs.h. */
|
---|
3530 | #include <string.h>
|
---|
3531 |
|
---|
3532 | _ACEOF
|
---|
3533 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3534 | $EGREP "memchr" >/dev/null 2>&1; then :
|
---|
3535 |
|
---|
3536 | else
|
---|
3537 | ac_cv_header_stdc=no
|
---|
3538 | fi
|
---|
3539 | rm -f conftest*
|
---|
3540 |
|
---|
3541 | fi
|
---|
3542 |
|
---|
3543 | if test $ac_cv_header_stdc = yes; then
|
---|
3544 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
3545 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3546 | /* end confdefs.h. */
|
---|
3547 | #include <stdlib.h>
|
---|
3548 |
|
---|
3549 | _ACEOF
|
---|
3550 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3551 | $EGREP "free" >/dev/null 2>&1; then :
|
---|
3552 |
|
---|
3553 | else
|
---|
3554 | ac_cv_header_stdc=no
|
---|
3555 | fi
|
---|
3556 | rm -f conftest*
|
---|
3557 |
|
---|
3558 | fi
|
---|
3559 |
|
---|
3560 | if test $ac_cv_header_stdc = yes; then
|
---|
3561 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
3562 | if test "$cross_compiling" = yes; then :
|
---|
3563 | :
|
---|
3564 | else
|
---|
3565 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3566 | /* end confdefs.h. */
|
---|
3567 | #include <ctype.h>
|
---|
3568 | #include <stdlib.h>
|
---|
3569 | #if ((' ' & 0x0FF) == 0x020)
|
---|
3570 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
3571 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
3572 | #else
|
---|
3573 | # define ISLOWER(c) \
|
---|
3574 | (('a' <= (c) && (c) <= 'i') \
|
---|
3575 | || ('j' <= (c) && (c) <= 'r') \
|
---|
3576 | || ('s' <= (c) && (c) <= 'z'))
|
---|
3577 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
3578 | #endif
|
---|
3579 |
|
---|
3580 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
3581 | int
|
---|
3582 | main ()
|
---|
3583 | {
|
---|
3584 | int i;
|
---|
3585 | for (i = 0; i < 256; i++)
|
---|
3586 | if (XOR (islower (i), ISLOWER (i))
|
---|
3587 | || toupper (i) != TOUPPER (i))
|
---|
3588 | return 2;
|
---|
3589 | return 0;
|
---|
3590 | }
|
---|
3591 | _ACEOF
|
---|
3592 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
3593 |
|
---|
3594 | else
|
---|
3595 | ac_cv_header_stdc=no
|
---|
3596 | fi
|
---|
3597 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
3598 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
3599 | fi
|
---|
3600 |
|
---|
3601 | fi
|
---|
3602 | fi
|
---|
3603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
|
---|
3604 | $as_echo "$ac_cv_header_stdc" >&6; }
|
---|
3605 | if test $ac_cv_header_stdc = yes; then
|
---|
3606 |
|
---|
3607 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h
|
---|
3608 |
|
---|
3609 | fi
|
---|
3610 |
|
---|
3611 | # On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
---|
3612 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
---|
3613 | inttypes.h stdint.h unistd.h
|
---|
3614 | do :
|
---|
3615 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
3616 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
|
---|
3617 | "
|
---|
3618 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
|
---|
3619 | cat >>confdefs.h <<_ACEOF
|
---|
3620 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
3621 | _ACEOF
|
---|
3622 |
|
---|
3623 | fi
|
---|
3624 |
|
---|
3625 | done
|
---|
3626 |
|
---|
3627 |
|
---|
3628 | # The cast to long int works around a bug in the HP C Compiler
|
---|
3629 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
---|
3630 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
---|
3631 | # This bug is HP SR number 8606223364.
|
---|
3632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
|
---|
3633 | $as_echo_n "checking size of void *... " >&6; }
|
---|
3634 | if ${ac_cv_sizeof_void_p+:} false; then :
|
---|
3635 | $as_echo_n "(cached) " >&6
|
---|
3636 | else
|
---|
3637 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
|
---|
3638 |
|
---|
3639 | else
|
---|
3640 | if test "$ac_cv_type_void_p" = yes; then
|
---|
3641 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
3642 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
3643 | as_fn_error 77 "cannot compute sizeof (void *)
|
---|
3644 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
3645 | else
|
---|
3646 | ac_cv_sizeof_void_p=0
|
---|
3647 | fi
|
---|
3648 | fi
|
---|
3649 |
|
---|
3650 | fi
|
---|
3651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
|
---|
3652 | $as_echo "$ac_cv_sizeof_void_p" >&6; }
|
---|
3653 |
|
---|
3654 |
|
---|
3655 |
|
---|
3656 | cat >>confdefs.h <<_ACEOF
|
---|
3657 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
|
---|
3658 | _ACEOF
|
---|
3659 |
|
---|
3660 |
|
---|
3661 | # The cast to long int works around a bug in the HP C Compiler
|
---|
3662 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
---|
3663 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
---|
3664 | # This bug is HP SR number 8606223364.
|
---|
3665 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
|
---|
3666 | $as_echo_n "checking size of int... " >&6; }
|
---|
3667 | if ${ac_cv_sizeof_int+:} false; then :
|
---|
3668 | $as_echo_n "(cached) " >&6
|
---|
3669 | else
|
---|
3670 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
|
---|
3671 |
|
---|
3672 | else
|
---|
3673 | if test "$ac_cv_type_int" = yes; then
|
---|
3674 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
3675 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
3676 | as_fn_error 77 "cannot compute sizeof (int)
|
---|
3677 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
3678 | else
|
---|
3679 | ac_cv_sizeof_int=0
|
---|
3680 | fi
|
---|
3681 | fi
|
---|
3682 |
|
---|
3683 | fi
|
---|
3684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
|
---|
3685 | $as_echo "$ac_cv_sizeof_int" >&6; }
|
---|
3686 |
|
---|
3687 |
|
---|
3688 |
|
---|
3689 | cat >>confdefs.h <<_ACEOF
|
---|
3690 | #define SIZEOF_INT $ac_cv_sizeof_int
|
---|
3691 | _ACEOF
|
---|
3692 |
|
---|
3693 |
|
---|
3694 | # The cast to long int works around a bug in the HP C Compiler
|
---|
3695 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
---|
3696 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
---|
3697 | # This bug is HP SR number 8606223364.
|
---|
3698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
|
---|
3699 | $as_echo_n "checking size of long... " >&6; }
|
---|
3700 | if ${ac_cv_sizeof_long+:} false; then :
|
---|
3701 | $as_echo_n "(cached) " >&6
|
---|
3702 | else
|
---|
3703 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
|
---|
3704 |
|
---|
3705 | else
|
---|
3706 | if test "$ac_cv_type_long" = yes; then
|
---|
3707 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
3708 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
3709 | as_fn_error 77 "cannot compute sizeof (long)
|
---|
3710 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
3711 | else
|
---|
3712 | ac_cv_sizeof_long=0
|
---|
3713 | fi
|
---|
3714 | fi
|
---|
3715 |
|
---|
3716 | fi
|
---|
3717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
|
---|
3718 | $as_echo "$ac_cv_sizeof_long" >&6; }
|
---|
3719 |
|
---|
3720 |
|
---|
3721 |
|
---|
3722 | cat >>confdefs.h <<_ACEOF
|
---|
3723 | #define SIZEOF_LONG $ac_cv_sizeof_long
|
---|
3724 | _ACEOF
|
---|
3725 |
|
---|
3726 |
|
---|
3727 |
|
---|
3728 | ######## check for the JDK and tools within the JDK
|
---|
3729 | ######## look in the JAVA_HOME environment variable at configure-time
|
---|
3730 | #AC_MSG_CHECKING([for the JDK])
|
---|
3731 | #if test "z$JAVA_HOME" != z &&
|
---|
3732 | # test -d $JAVA_HOME &&
|
---|
3733 | # (test -d $JAVA_HOME/bin)
|
---|
3734 | ## The following used to be the test, but failed on newer versions of MacOS
|
---|
3735 | ## Cut back to something simpler, and rely on the later tests for JNIINC to confirm
|
---|
3736 | ## files like 'jni.h' can be found
|
---|
3737 | ## test -d $JAVA_HOME &&
|
---|
3738 | ## (test -d $JAVA_HOME/include || test -d $JAVA_HOME/../Headers)
|
---|
3739 | #then
|
---|
3740 | # AC_SUBST(JAVA_HOME)
|
---|
3741 | # AC_MSG_RESULT([found in $JAVA_HOME])
|
---|
3742 | #else
|
---|
3743 | # AC_MSG_ERROR([not found in \$JAVA_HOME])
|
---|
3744 | #fi
|
---|
3745 |
|
---|
3746 | ## TODO: Check for specific header files in the JDK, or
|
---|
3747 | ## functions/definitions within those headers?
|
---|
3748 |
|
---|
3749 | ## TODO: guess which include directory to use under the JDK
|
---|
3750 |
|
---|
3751 | #AC_PATH_PROG(javagdbm_cv_path_javah, javah, missing_javah)
|
---|
3752 | #if test "$javagdbm_cv_path_javah" = missing_javah; then
|
---|
3753 | # AC_MSG_ERROR([javah not found.])
|
---|
3754 | #fi
|
---|
3755 |
|
---|
3756 | #AC_PATH_PROG(javagdbm_cv_path_java, java, missing)
|
---|
3757 | #if test "$javagdbm_cv_path_java" = missing; then
|
---|
3758 | # AC_MSG_ERROR([java not found.])
|
---|
3759 | #fi
|
---|
3760 |
|
---|
3761 | # Replacing the above with a more streamlined test for 'javac'
|
---|
3762 | # This should have the advantage of meaning its not mandated
|
---|
3763 | # that JAVA_HOME must be set for it to locate a javac
|
---|
3764 |
|
---|
3765 |
|
---|
3766 | if test "x$JAVAC" = x ; then
|
---|
3767 | if test "x$JAVAPREFIX" = x; then
|
---|
3768 | test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
|
---|
3769 | do
|
---|
3770 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
3771 | set dummy $ac_prog; ac_word=$2
|
---|
3772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3773 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3774 | if ${ac_cv_prog_JAVAC+:} false; then :
|
---|
3775 | $as_echo_n "(cached) " >&6
|
---|
3776 | else
|
---|
3777 | if test -n "$JAVAC"; then
|
---|
3778 | ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
|
---|
3779 | else
|
---|
3780 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3781 | for as_dir in $PATH
|
---|
3782 | do
|
---|
3783 | IFS=$as_save_IFS
|
---|
3784 | test -z "$as_dir" && as_dir=.
|
---|
3785 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3786 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3787 | ac_cv_prog_JAVAC="$ac_prog"
|
---|
3788 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3789 | break 2
|
---|
3790 | fi
|
---|
3791 | done
|
---|
3792 | done
|
---|
3793 | IFS=$as_save_IFS
|
---|
3794 |
|
---|
3795 | fi
|
---|
3796 | fi
|
---|
3797 | JAVAC=$ac_cv_prog_JAVAC
|
---|
3798 | if test -n "$JAVAC"; then
|
---|
3799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
|
---|
3800 | $as_echo "$JAVAC" >&6; }
|
---|
3801 | else
|
---|
3802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3803 | $as_echo "no" >&6; }
|
---|
3804 | fi
|
---|
3805 |
|
---|
3806 |
|
---|
3807 | test -n "$JAVAC" && break
|
---|
3808 | done
|
---|
3809 |
|
---|
3810 | else
|
---|
3811 | test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
|
---|
3812 | do
|
---|
3813 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
3814 | set dummy $ac_prog; ac_word=$2
|
---|
3815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3816 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3817 | if ${ac_cv_prog_JAVAC+:} false; then :
|
---|
3818 | $as_echo_n "(cached) " >&6
|
---|
3819 | else
|
---|
3820 | if test -n "$JAVAC"; then
|
---|
3821 | ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
|
---|
3822 | else
|
---|
3823 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3824 | for as_dir in $PATH
|
---|
3825 | do
|
---|
3826 | IFS=$as_save_IFS
|
---|
3827 | test -z "$as_dir" && as_dir=.
|
---|
3828 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3829 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3830 | ac_cv_prog_JAVAC="$ac_prog"
|
---|
3831 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3832 | break 2
|
---|
3833 | fi
|
---|
3834 | done
|
---|
3835 | done
|
---|
3836 | IFS=$as_save_IFS
|
---|
3837 |
|
---|
3838 | fi
|
---|
3839 | fi
|
---|
3840 | JAVAC=$ac_cv_prog_JAVAC
|
---|
3841 | if test -n "$JAVAC"; then
|
---|
3842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
|
---|
3843 | $as_echo "$JAVAC" >&6; }
|
---|
3844 | else
|
---|
3845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3846 | $as_echo "no" >&6; }
|
---|
3847 | fi
|
---|
3848 |
|
---|
3849 |
|
---|
3850 | test -n "$JAVAC" && break
|
---|
3851 | done
|
---|
3852 | test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
|
---|
3853 |
|
---|
3854 | fi
|
---|
3855 | test "x$JAVAC" = x && as_fn_error $? "no acceptable Java compiler found in \$PATH" "$LINENO" 5
|
---|
3856 | else
|
---|
3857 | echo "Checking for javac... $JAVAC"
|
---|
3858 | fi
|
---|
3859 |
|
---|
3860 |
|
---|
3861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5
|
---|
3862 | $as_echo_n "checking if $JAVAC works... " >&6; }
|
---|
3863 | if ${ac_cv_prog_javac_works+:} false; then :
|
---|
3864 | $as_echo_n "(cached) " >&6
|
---|
3865 | else
|
---|
3866 |
|
---|
3867 | JAVA_TEST=Test.java
|
---|
3868 | CLASS_TEST=Test.class
|
---|
3869 | cat << \EOF > $JAVA_TEST
|
---|
3870 | /* #line 3870 "configure" */
|
---|
3871 | public class Test {
|
---|
3872 | }
|
---|
3873 | EOF
|
---|
3874 | if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
|
---|
3875 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
---|
3876 | (eval $ac_try) 2>&5
|
---|
3877 | ac_status=$?
|
---|
3878 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
3879 | test $ac_status = 0; }; } >/dev/null 2>&1; then
|
---|
3880 | ac_cv_prog_javac_works=yes
|
---|
3881 | else
|
---|
3882 | as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
|
---|
3883 | echo "configure: failed program was:" >&5
|
---|
3884 | cat $JAVA_TEST >&5
|
---|
3885 | fi
|
---|
3886 | rm -f $JAVA_TEST $CLASS_TEST
|
---|
3887 |
|
---|
3888 | fi
|
---|
3889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5
|
---|
3890 | $as_echo "$ac_cv_prog_javac_works" >&6; }
|
---|
3891 | if test "x$JAVACFLAGS" = x ; then
|
---|
3892 | JAVACFLAGS="-source 1.4 -target 1.4"
|
---|
3893 | fi
|
---|
3894 |
|
---|
3895 |
|
---|
3896 |
|
---|
3897 |
|
---|
3898 | # check for gdbm library
|
---|
3899 | #AC_CHECK_LIB(gdbm, gdbm_open, [javagdbm_cv_lib_gdbm="-lgdbm"],
|
---|
3900 | # [javagdbm_cv_lib_gdbm=no])
|
---|
3901 | #if test "$javagdbm_cv_lib_gdbm" = "no"; then
|
---|
3902 | # AC_MSG_ERROR([no native gdbm library found.])
|
---|
3903 | #fi
|
---|
3904 | #LIBS="$javagdbm_cv_lib_gdbm"
|
---|
3905 |
|
---|
3906 | # gdbm stuff copied from gsdl [kjdon]
|
---|
3907 |
|
---|
3908 |
|
---|
3909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that the GDBM library is available" >&5
|
---|
3910 | $as_echo_n "checking that the GDBM library is available... " >&6; }
|
---|
3911 | if test ! -z "$gdbmdir" ; then
|
---|
3912 | # look in given directory for header file
|
---|
3913 | if test -r $gdbmdir/include/gdbm.h ; then
|
---|
3914 | GDBM_INCLUDE="-I$gdbmdir/include" ;
|
---|
3915 | elif test -r $gdbmdir/gdbm.h ; then
|
---|
3916 | GDBM_INCLUDE="-I$gdbmdir" ;
|
---|
3917 | fi
|
---|
3918 |
|
---|
3919 | # look in given directory for library
|
---|
3920 | if test -r $gdbmdir/libgdbm.a ; then
|
---|
3921 | GDBM_LIBPATH="-L$gdbmdir" ;
|
---|
3922 | elif test -r $gdbmdir/lib/libgdbm.a ; then
|
---|
3923 | GDBM_LIBPATH="-L$gdbmdir/lib" ;
|
---|
3924 | elif test -r $gdbmdir/.libs/libgdbm.a ; then
|
---|
3925 | GDBM_LIBPATH="-L$gdbmdir/.libs" ;
|
---|
3926 | fi
|
---|
3927 |
|
---|
3928 | if test ! -z "$GDBM_LIBPATH" -a ! -z "$GDBM_INCLUDE" ; then
|
---|
3929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbmdir" >&5
|
---|
3930 | $as_echo "$gdbmdir" >&6; } ;
|
---|
3931 | else
|
---|
3932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find gdbm.h and libgdbm.a in $gdbmdir" >&5
|
---|
3933 | $as_echo "can't find gdbm.h and libgdbm.a in $gdbmdir" >&6; };
|
---|
3934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking looking for GDBM library in default locations" >&5
|
---|
3935 | $as_echo_n "checking looking for GDBM library in default locations... " >&6; }
|
---|
3936 | fi
|
---|
3937 | fi
|
---|
3938 |
|
---|
3939 | # look in default path and in /usr/local
|
---|
3940 | if test -z "$GDBM_INCLUDE" ; then
|
---|
3941 | # try in system directory
|
---|
3942 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3943 | /* end confdefs.h. */
|
---|
3944 | #include <gdbm.h>
|
---|
3945 |
|
---|
3946 | int
|
---|
3947 | main ()
|
---|
3948 | {
|
---|
3949 |
|
---|
3950 | ;
|
---|
3951 | return 0;
|
---|
3952 | }
|
---|
3953 | _ACEOF
|
---|
3954 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3955 | success=yes
|
---|
3956 | else
|
---|
3957 | success=no
|
---|
3958 |
|
---|
3959 | fi
|
---|
3960 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3961 |
|
---|
3962 | if test $success = "no"; then
|
---|
3963 | # last chance - look in /usr/local (eg FreeBSD)
|
---|
3964 | GDBM_LIBPATH=-L/usr/local/lib
|
---|
3965 | GDBM_INCLUDE=-I/usr/local/include
|
---|
3966 | ac_save_CXXFLAGS="$CXXFLAGS"
|
---|
3967 | ac_save_LIBS="$LIBS"
|
---|
3968 | CXXFLAGS="$CXXFLAGS -I/usr/local/include"
|
---|
3969 | LIBS="$LIBS -L/usr/local/lib -lgdbm"
|
---|
3970 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3971 | /* end confdefs.h. */
|
---|
3972 | #include <gdbm.h>
|
---|
3973 | #include <stdio.h>
|
---|
3974 |
|
---|
3975 | int
|
---|
3976 | main ()
|
---|
3977 | {
|
---|
3978 | printf("%s",gdbm_version);
|
---|
3979 | ;
|
---|
3980 | return 0;
|
---|
3981 | }
|
---|
3982 | _ACEOF
|
---|
3983 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
3984 | success=/usr/local
|
---|
3985 | else
|
---|
3986 | success=no
|
---|
3987 |
|
---|
3988 | fi
|
---|
3989 | rm -f core conftest.err conftest.$ac_objext \
|
---|
3990 | conftest$ac_exeext conftest.$ac_ext
|
---|
3991 | CXXFLAGS=$ac_save_CXXFLAGS
|
---|
3992 | LIBS=$ac_save_LIBS
|
---|
3993 | fi
|
---|
3994 |
|
---|
3995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $success" >&5
|
---|
3996 | $as_echo "$success" >&6; }
|
---|
3997 | if test $success = "no"; then
|
---|
3998 | as_fn_error $? "GDBM Library not available - cannot install" "$LINENO" 5
|
---|
3999 | fi
|
---|
4000 | fi
|
---|
4001 | $as_echo "#define HAVE_LIBGDBM 1" >>confdefs.h
|
---|
4002 |
|
---|
4003 |
|
---|
4004 |
|
---|
4005 |
|
---|
4006 |
|
---|
4007 | ########## set compiler options
|
---|
4008 | # TODO: is there a more appropriate way to guess which switches to use
|
---|
4009 | # with which systems/compilers?
|
---|
4010 | CFLAGS="-Wall -O2 -fpic"
|
---|
4011 | PKG="au.com.pharos.gdbm"
|
---|
4012 |
|
---|
4013 |
|
---|
4014 |
|
---|
4015 |
|
---|
4016 | # we need to set an extended JNI path for Mac OS/Darwin, as jni.h is on
|
---|
4017 | # a non-standard Path
|
---|
4018 | # is there a better way to do this??
|
---|
4019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OS to set JNI options" >&5
|
---|
4020 | $as_echo_n "checking for OS to set JNI options... " >&6; }
|
---|
4021 | # set defaults
|
---|
4022 | JNIINC=""
|
---|
4023 | JNIPREFIX="lib"
|
---|
4024 | JNISUFFIX="so"
|
---|
4025 | JNICFLAGS=""
|
---|
4026 | JNILDFLAGS="-shared"
|
---|
4027 |
|
---|
4028 | if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
|
---|
4029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5
|
---|
4030 | $as_echo "Darwin" >&6; }
|
---|
4031 | JNIINC="-I/System/Library/Frameworks/JavaVM.framework/Headers/ "
|
---|
4032 | JNISUFFIX="jnilib"
|
---|
4033 | JNILDFLAGS="-dynamiclib -fno-common -single_module -framework JavaVM"
|
---|
4034 | fi
|
---|
4035 | if test "`(uname -s) 2> /dev/null`" = 'SunOS'; then
|
---|
4036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris" >&5
|
---|
4037 | $as_echo "Solaris" >&6; }
|
---|
4038 | JNIINC="-I\$(JAVA_HOME)/include/solaris "
|
---|
4039 | fi
|
---|
4040 | if test "`(uname -s) 2> /dev/null`" = 'Linux'; then
|
---|
4041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux" >&5
|
---|
4042 | $as_echo "Linux" >&6; }
|
---|
4043 | JNIINC="-I\$(JAVA_HOME)/include/linux -I\$(JAVA_HOME)/include "
|
---|
4044 | fi
|
---|
4045 |
|
---|
4046 | if test "x$crossOS" != "x" ; then
|
---|
4047 | if test "$crossOS" = "windows" ; then
|
---|
4048 | JNIINC="-I../java-windows-include/win32 -I../java-windows-include "
|
---|
4049 | JNICFLAGS="-Wall -D_JNI_IMPLEMENTATION_ -Wl,--kill-at"
|
---|
4050 | JNIPREFIX=""
|
---|
4051 | JNISUFFIX="dll"
|
---|
4052 | fi
|
---|
4053 | fi
|
---|
4054 |
|
---|
4055 |
|
---|
4056 |
|
---|
4057 |
|
---|
4058 |
|
---|
4059 |
|
---|
4060 |
|
---|
4061 | # write the output
|
---|
4062 | ac_config_files="$ac_config_files Makefile jni/Makefile java/Makefile"
|
---|
4063 |
|
---|
4064 | cat >confcache <<\_ACEOF
|
---|
4065 | # This file is a shell script that caches the results of configure
|
---|
4066 | # tests run on this system so they can be shared between configure
|
---|
4067 | # scripts and configure runs, see configure's option --config-cache.
|
---|
4068 | # It is not useful on other systems. If it contains results you don't
|
---|
4069 | # want to keep, you may remove or edit it.
|
---|
4070 | #
|
---|
4071 | # config.status only pays attention to the cache file if you give it
|
---|
4072 | # the --recheck option to rerun configure.
|
---|
4073 | #
|
---|
4074 | # `ac_cv_env_foo' variables (set or unset) will be overridden when
|
---|
4075 | # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
---|
4076 | # following values.
|
---|
4077 |
|
---|
4078 | _ACEOF
|
---|
4079 |
|
---|
4080 | # The following way of writing the cache mishandles newlines in values,
|
---|
4081 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
4082 | # So, we kill variables containing newlines.
|
---|
4083 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
4084 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
4085 | (
|
---|
4086 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
|
---|
4087 | eval ac_val=\$$ac_var
|
---|
4088 | case $ac_val in #(
|
---|
4089 | *${as_nl}*)
|
---|
4090 | case $ac_var in #(
|
---|
4091 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
---|
4092 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
---|
4093 | esac
|
---|
4094 | case $ac_var in #(
|
---|
4095 | _ | IFS | as_nl) ;; #(
|
---|
4096 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
|
---|
4097 | *) { eval $ac_var=; unset $ac_var;} ;;
|
---|
4098 | esac ;;
|
---|
4099 | esac
|
---|
4100 | done
|
---|
4101 |
|
---|
4102 | (set) 2>&1 |
|
---|
4103 | case $as_nl`(ac_space=' '; set) 2>&1` in #(
|
---|
4104 | *${as_nl}ac_space=\ *)
|
---|
4105 | # `set' does not quote correctly, so add quotes: double-quote
|
---|
4106 | # substitution turns \\\\ into \\, and sed turns \\ into \.
|
---|
4107 | sed -n \
|
---|
4108 | "s/'/'\\\\''/g;
|
---|
4109 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
---|
4110 | ;; #(
|
---|
4111 | *)
|
---|
4112 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
4113 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
---|
4114 | ;;
|
---|
4115 | esac |
|
---|
4116 | sort
|
---|
4117 | ) |
|
---|
4118 | sed '
|
---|
4119 | /^ac_cv_env_/b end
|
---|
4120 | t clear
|
---|
4121 | :clear
|
---|
4122 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
---|
4123 | t end
|
---|
4124 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
---|
4125 | :end' >>confcache
|
---|
4126 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
|
---|
4127 | if test -w "$cache_file"; then
|
---|
4128 | if test "x$cache_file" != "x/dev/null"; then
|
---|
4129 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
|
---|
4130 | $as_echo "$as_me: updating cache $cache_file" >&6;}
|
---|
4131 | if test ! -f "$cache_file" || test -h "$cache_file"; then
|
---|
4132 | cat confcache >"$cache_file"
|
---|
4133 | else
|
---|
4134 | case $cache_file in #(
|
---|
4135 | */* | ?:*)
|
---|
4136 | mv -f confcache "$cache_file"$$ &&
|
---|
4137 | mv -f "$cache_file"$$ "$cache_file" ;; #(
|
---|
4138 | *)
|
---|
4139 | mv -f confcache "$cache_file" ;;
|
---|
4140 | esac
|
---|
4141 | fi
|
---|
4142 | fi
|
---|
4143 | else
|
---|
4144 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
|
---|
4145 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
|
---|
4146 | fi
|
---|
4147 | fi
|
---|
4148 | rm -f confcache
|
---|
4149 |
|
---|
4150 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
4151 | # Let make expand exec_prefix.
|
---|
4152 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
4153 |
|
---|
4154 | # Transform confdefs.h into DEFS.
|
---|
4155 | # Protect against shell expansion while executing Makefile rules.
|
---|
4156 | # Protect against Makefile macro expansion.
|
---|
4157 | #
|
---|
4158 | # If the first sed substitution is executed (which looks for macros that
|
---|
4159 | # take arguments), then branch to the quote section. Otherwise,
|
---|
4160 | # look for a macro that doesn't take arguments.
|
---|
4161 | ac_script='
|
---|
4162 | :mline
|
---|
4163 | /\\$/{
|
---|
4164 | N
|
---|
4165 | s,\\\n,,
|
---|
4166 | b mline
|
---|
4167 | }
|
---|
4168 | t clear
|
---|
4169 | :clear
|
---|
4170 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
|
---|
4171 | t quote
|
---|
4172 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
|
---|
4173 | t quote
|
---|
4174 | b any
|
---|
4175 | :quote
|
---|
4176 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
|
---|
4177 | s/\[/\\&/g
|
---|
4178 | s/\]/\\&/g
|
---|
4179 | s/\$/$$/g
|
---|
4180 | H
|
---|
4181 | :any
|
---|
4182 | ${
|
---|
4183 | g
|
---|
4184 | s/^\n//
|
---|
4185 | s/\n/ /g
|
---|
4186 | p
|
---|
4187 | }
|
---|
4188 | '
|
---|
4189 | DEFS=`sed -n "$ac_script" confdefs.h`
|
---|
4190 |
|
---|
4191 |
|
---|
4192 | ac_libobjs=
|
---|
4193 | ac_ltlibobjs=
|
---|
4194 | U=
|
---|
4195 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
---|
4196 | # 1. Remove the extension, and $U if already installed.
|
---|
4197 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
|
---|
4198 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
|
---|
4199 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
|
---|
4200 | # will be set to the directory where LIBOBJS objects are built.
|
---|
4201 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
|
---|
4202 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
|
---|
4203 | done
|
---|
4204 | LIBOBJS=$ac_libobjs
|
---|
4205 |
|
---|
4206 | LTLIBOBJS=$ac_ltlibobjs
|
---|
4207 |
|
---|
4208 |
|
---|
4209 |
|
---|
4210 | : "${CONFIG_STATUS=./config.status}"
|
---|
4211 | ac_write_fail=0
|
---|
4212 | ac_clean_files_save=$ac_clean_files
|
---|
4213 | ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
---|
4214 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
|
---|
4215 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
---|
4216 | as_write_fail=0
|
---|
4217 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
|
---|
4218 | #! $SHELL
|
---|
4219 | # Generated by $as_me.
|
---|
4220 | # Run this file to recreate the current configuration.
|
---|
4221 | # Compiler output produced by configure, useful for debugging
|
---|
4222 | # configure, is in config.log if it exists.
|
---|
4223 |
|
---|
4224 | debug=false
|
---|
4225 | ac_cs_recheck=false
|
---|
4226 | ac_cs_silent=false
|
---|
4227 |
|
---|
4228 | SHELL=\${CONFIG_SHELL-$SHELL}
|
---|
4229 | export SHELL
|
---|
4230 | _ASEOF
|
---|
4231 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
|
---|
4232 | ## -------------------- ##
|
---|
4233 | ## M4sh Initialization. ##
|
---|
4234 | ## -------------------- ##
|
---|
4235 |
|
---|
4236 | # Be more Bourne compatible
|
---|
4237 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
4238 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
|
---|
4239 | emulate sh
|
---|
4240 | NULLCMD=:
|
---|
4241 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
|
---|
4242 | # is contrary to our usage. Disable this feature.
|
---|
4243 | alias -g '${1+"$@"}'='"$@"'
|
---|
4244 | setopt NO_GLOB_SUBST
|
---|
4245 | else
|
---|
4246 | case `(set -o) 2>/dev/null` in #(
|
---|
4247 | *posix*) :
|
---|
4248 | set -o posix ;; #(
|
---|
4249 | *) :
|
---|
4250 | ;;
|
---|
4251 | esac
|
---|
4252 | fi
|
---|
4253 |
|
---|
4254 |
|
---|
4255 | as_nl='
|
---|
4256 | '
|
---|
4257 | export as_nl
|
---|
4258 | # Printing a long string crashes Solaris 7 /usr/bin/printf.
|
---|
4259 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
---|
4260 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
4261 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
4262 | # Prefer a ksh shell builtin over an external printf program on Solaris,
|
---|
4263 | # but without wasting forks for bash or zsh.
|
---|
4264 | if test -z "$BASH_VERSION$ZSH_VERSION" \
|
---|
4265 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
4266 | as_echo='print -r --'
|
---|
4267 | as_echo_n='print -rn --'
|
---|
4268 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
4269 | as_echo='printf %s\n'
|
---|
4270 | as_echo_n='printf %s'
|
---|
4271 | else
|
---|
4272 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
|
---|
4273 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
|
---|
4274 | as_echo_n='/usr/ucb/echo -n'
|
---|
4275 | else
|
---|
4276 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
|
---|
4277 | as_echo_n_body='eval
|
---|
4278 | arg=$1;
|
---|
4279 | case $arg in #(
|
---|
4280 | *"$as_nl"*)
|
---|
4281 | expr "X$arg" : "X\\(.*\\)$as_nl";
|
---|
4282 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
|
---|
4283 | esac;
|
---|
4284 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
|
---|
4285 | '
|
---|
4286 | export as_echo_n_body
|
---|
4287 | as_echo_n='sh -c $as_echo_n_body as_echo'
|
---|
4288 | fi
|
---|
4289 | export as_echo_body
|
---|
4290 | as_echo='sh -c $as_echo_body as_echo'
|
---|
4291 | fi
|
---|
4292 |
|
---|
4293 | # The user is always right.
|
---|
4294 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
4295 | PATH_SEPARATOR=:
|
---|
4296 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
|
---|
4297 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
|
---|
4298 | PATH_SEPARATOR=';'
|
---|
4299 | }
|
---|
4300 | fi
|
---|
4301 |
|
---|
4302 |
|
---|
4303 | # IFS
|
---|
4304 | # We need space, tab and new line, in precisely that order. Quoting is
|
---|
4305 | # there to prevent editors from complaining about space-tab.
|
---|
4306 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
---|
4307 | # splitting by setting IFS to empty value.)
|
---|
4308 | IFS=" "" $as_nl"
|
---|
4309 |
|
---|
4310 | # Find who we are. Look in the path if we contain no directory separator.
|
---|
4311 | as_myself=
|
---|
4312 | case $0 in #((
|
---|
4313 | *[\\/]* ) as_myself=$0 ;;
|
---|
4314 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4315 | for as_dir in $PATH
|
---|
4316 | do
|
---|
4317 | IFS=$as_save_IFS
|
---|
4318 | test -z "$as_dir" && as_dir=.
|
---|
4319 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
4320 | done
|
---|
4321 | IFS=$as_save_IFS
|
---|
4322 |
|
---|
4323 | ;;
|
---|
4324 | esac
|
---|
4325 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
4326 | # in which case we are not to be found in the path.
|
---|
4327 | if test "x$as_myself" = x; then
|
---|
4328 | as_myself=$0
|
---|
4329 | fi
|
---|
4330 | if test ! -f "$as_myself"; then
|
---|
4331 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
---|
4332 | exit 1
|
---|
4333 | fi
|
---|
4334 |
|
---|
4335 | # Unset variables that we do not need and which cause bugs (e.g. in
|
---|
4336 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
|
---|
4337 | # suppresses any "Segmentation fault" message there. '((' could
|
---|
4338 | # trigger a bug in pdksh 5.2.14.
|
---|
4339 | for as_var in BASH_ENV ENV MAIL MAILPATH
|
---|
4340 | do eval test x\${$as_var+set} = xset \
|
---|
4341 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
|
---|
4342 | done
|
---|
4343 | PS1='$ '
|
---|
4344 | PS2='> '
|
---|
4345 | PS4='+ '
|
---|
4346 |
|
---|
4347 | # NLS nuisances.
|
---|
4348 | LC_ALL=C
|
---|
4349 | export LC_ALL
|
---|
4350 | LANGUAGE=C
|
---|
4351 | export LANGUAGE
|
---|
4352 |
|
---|
4353 | # CDPATH.
|
---|
4354 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
---|
4355 |
|
---|
4356 |
|
---|
4357 | # as_fn_error STATUS ERROR [LINENO LOG_FD]
|
---|
4358 | # ----------------------------------------
|
---|
4359 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
|
---|
4360 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
|
---|
4361 | # script with STATUS, using 1 if that was 0.
|
---|
4362 | as_fn_error ()
|
---|
4363 | {
|
---|
4364 | as_status=$1; test $as_status -eq 0 && as_status=1
|
---|
4365 | if test "$4"; then
|
---|
4366 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
4367 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
|
---|
4368 | fi
|
---|
4369 | $as_echo "$as_me: error: $2" >&2
|
---|
4370 | as_fn_exit $as_status
|
---|
4371 | } # as_fn_error
|
---|
4372 |
|
---|
4373 |
|
---|
4374 | # as_fn_set_status STATUS
|
---|
4375 | # -----------------------
|
---|
4376 | # Set $? to STATUS, without forking.
|
---|
4377 | as_fn_set_status ()
|
---|
4378 | {
|
---|
4379 | return $1
|
---|
4380 | } # as_fn_set_status
|
---|
4381 |
|
---|
4382 | # as_fn_exit STATUS
|
---|
4383 | # -----------------
|
---|
4384 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
|
---|
4385 | as_fn_exit ()
|
---|
4386 | {
|
---|
4387 | set +e
|
---|
4388 | as_fn_set_status $1
|
---|
4389 | exit $1
|
---|
4390 | } # as_fn_exit
|
---|
4391 |
|
---|
4392 | # as_fn_unset VAR
|
---|
4393 | # ---------------
|
---|
4394 | # Portably unset VAR.
|
---|
4395 | as_fn_unset ()
|
---|
4396 | {
|
---|
4397 | { eval $1=; unset $1;}
|
---|
4398 | }
|
---|
4399 | as_unset=as_fn_unset
|
---|
4400 | # as_fn_append VAR VALUE
|
---|
4401 | # ----------------------
|
---|
4402 | # Append the text in VALUE to the end of the definition contained in VAR. Take
|
---|
4403 | # advantage of any shell optimizations that allow amortized linear growth over
|
---|
4404 | # repeated appends, instead of the typical quadratic growth present in naive
|
---|
4405 | # implementations.
|
---|
4406 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
|
---|
4407 | eval 'as_fn_append ()
|
---|
4408 | {
|
---|
4409 | eval $1+=\$2
|
---|
4410 | }'
|
---|
4411 | else
|
---|
4412 | as_fn_append ()
|
---|
4413 | {
|
---|
4414 | eval $1=\$$1\$2
|
---|
4415 | }
|
---|
4416 | fi # as_fn_append
|
---|
4417 |
|
---|
4418 | # as_fn_arith ARG...
|
---|
4419 | # ------------------
|
---|
4420 | # Perform arithmetic evaluation on the ARGs, and store the result in the
|
---|
4421 | # global $as_val. Take advantage of shells that can avoid forks. The arguments
|
---|
4422 | # must be portable across $(()) and expr.
|
---|
4423 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
|
---|
4424 | eval 'as_fn_arith ()
|
---|
4425 | {
|
---|
4426 | as_val=$(( $* ))
|
---|
4427 | }'
|
---|
4428 | else
|
---|
4429 | as_fn_arith ()
|
---|
4430 | {
|
---|
4431 | as_val=`expr "$@" || test $? -eq 1`
|
---|
4432 | }
|
---|
4433 | fi # as_fn_arith
|
---|
4434 |
|
---|
4435 |
|
---|
4436 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
4437 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
4438 | as_expr=expr
|
---|
4439 | else
|
---|
4440 | as_expr=false
|
---|
4441 | fi
|
---|
4442 |
|
---|
4443 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
---|
4444 | as_basename=basename
|
---|
4445 | else
|
---|
4446 | as_basename=false
|
---|
4447 | fi
|
---|
4448 |
|
---|
4449 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
---|
4450 | as_dirname=dirname
|
---|
4451 | else
|
---|
4452 | as_dirname=false
|
---|
4453 | fi
|
---|
4454 |
|
---|
4455 | as_me=`$as_basename -- "$0" ||
|
---|
4456 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
4457 | X"$0" : 'X\(//\)$' \| \
|
---|
4458 | X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
4459 | $as_echo X/"$0" |
|
---|
4460 | sed '/^.*\/\([^/][^/]*\)\/*$/{
|
---|
4461 | s//\1/
|
---|
4462 | q
|
---|
4463 | }
|
---|
4464 | /^X\/\(\/\/\)$/{
|
---|
4465 | s//\1/
|
---|
4466 | q
|
---|
4467 | }
|
---|
4468 | /^X\/\(\/\).*/{
|
---|
4469 | s//\1/
|
---|
4470 | q
|
---|
4471 | }
|
---|
4472 | s/.*/./; q'`
|
---|
4473 |
|
---|
4474 | # Avoid depending upon Character Ranges.
|
---|
4475 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
4476 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
4477 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
4478 | as_cr_digits='0123456789'
|
---|
4479 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
4480 |
|
---|
4481 | ECHO_C= ECHO_N= ECHO_T=
|
---|
4482 | case `echo -n x` in #(((((
|
---|
4483 | -n*)
|
---|
4484 | case `echo 'xy\c'` in
|
---|
4485 | *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
---|
4486 | xy) ECHO_C='\c';;
|
---|
4487 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
|
---|
4488 | ECHO_T=' ';;
|
---|
4489 | esac;;
|
---|
4490 | *)
|
---|
4491 | ECHO_N='-n';;
|
---|
4492 | esac
|
---|
4493 |
|
---|
4494 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
4495 | if test -d conf$$.dir; then
|
---|
4496 | rm -f conf$$.dir/conf$$.file
|
---|
4497 | else
|
---|
4498 | rm -f conf$$.dir
|
---|
4499 | mkdir conf$$.dir 2>/dev/null
|
---|
4500 | fi
|
---|
4501 | if (echo >conf$$.file) 2>/dev/null; then
|
---|
4502 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
4503 | as_ln_s='ln -s'
|
---|
4504 | # ... but there are two gotchas:
|
---|
4505 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
---|
4506 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
---|
4507 | # In both cases, we have to default to `cp -pR'.
|
---|
4508 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
---|
4509 | as_ln_s='cp -pR'
|
---|
4510 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
4511 | as_ln_s=ln
|
---|
4512 | else
|
---|
4513 | as_ln_s='cp -pR'
|
---|
4514 | fi
|
---|
4515 | else
|
---|
4516 | as_ln_s='cp -pR'
|
---|
4517 | fi
|
---|
4518 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
---|
4519 | rmdir conf$$.dir 2>/dev/null
|
---|
4520 |
|
---|
4521 |
|
---|
4522 | # as_fn_mkdir_p
|
---|
4523 | # -------------
|
---|
4524 | # Create "$as_dir" as a directory, including parents if necessary.
|
---|
4525 | as_fn_mkdir_p ()
|
---|
4526 | {
|
---|
4527 |
|
---|
4528 | case $as_dir in #(
|
---|
4529 | -*) as_dir=./$as_dir;;
|
---|
4530 | esac
|
---|
4531 | test -d "$as_dir" || eval $as_mkdir_p || {
|
---|
4532 | as_dirs=
|
---|
4533 | while :; do
|
---|
4534 | case $as_dir in #(
|
---|
4535 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
|
---|
4536 | *) as_qdir=$as_dir;;
|
---|
4537 | esac
|
---|
4538 | as_dirs="'$as_qdir' $as_dirs"
|
---|
4539 | as_dir=`$as_dirname -- "$as_dir" ||
|
---|
4540 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
4541 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
4542 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
4543 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
4544 | $as_echo X"$as_dir" |
|
---|
4545 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
4546 | s//\1/
|
---|
4547 | q
|
---|
4548 | }
|
---|
4549 | /^X\(\/\/\)[^/].*/{
|
---|
4550 | s//\1/
|
---|
4551 | q
|
---|
4552 | }
|
---|
4553 | /^X\(\/\/\)$/{
|
---|
4554 | s//\1/
|
---|
4555 | q
|
---|
4556 | }
|
---|
4557 | /^X\(\/\).*/{
|
---|
4558 | s//\1/
|
---|
4559 | q
|
---|
4560 | }
|
---|
4561 | s/.*/./; q'`
|
---|
4562 | test -d "$as_dir" && break
|
---|
4563 | done
|
---|
4564 | test -z "$as_dirs" || eval "mkdir $as_dirs"
|
---|
4565 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
|
---|
4566 |
|
---|
4567 |
|
---|
4568 | } # as_fn_mkdir_p
|
---|
4569 | if mkdir -p . 2>/dev/null; then
|
---|
4570 | as_mkdir_p='mkdir -p "$as_dir"'
|
---|
4571 | else
|
---|
4572 | test -d ./-p && rmdir ./-p
|
---|
4573 | as_mkdir_p=false
|
---|
4574 | fi
|
---|
4575 |
|
---|
4576 |
|
---|
4577 | # as_fn_executable_p FILE
|
---|
4578 | # -----------------------
|
---|
4579 | # Test if FILE is an executable regular file.
|
---|
4580 | as_fn_executable_p ()
|
---|
4581 | {
|
---|
4582 | test -f "$1" && test -x "$1"
|
---|
4583 | } # as_fn_executable_p
|
---|
4584 | as_test_x='test -x'
|
---|
4585 | as_executable_p=as_fn_executable_p
|
---|
4586 |
|
---|
4587 | # Sed expression to map a string onto a valid CPP name.
|
---|
4588 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
4589 |
|
---|
4590 | # Sed expression to map a string onto a valid variable name.
|
---|
4591 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
4592 |
|
---|
4593 |
|
---|
4594 | exec 6>&1
|
---|
4595 | ## ----------------------------------- ##
|
---|
4596 | ## Main body of $CONFIG_STATUS script. ##
|
---|
4597 | ## ----------------------------------- ##
|
---|
4598 | _ASEOF
|
---|
4599 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
|
---|
4600 |
|
---|
4601 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
4602 | # Save the log message, to keep $0 and so on meaningful, and to
|
---|
4603 | # report actual input values of CONFIG_FILES etc. instead of their
|
---|
4604 | # values after options handling.
|
---|
4605 | ac_log="
|
---|
4606 | This file was extended by $as_me, which was
|
---|
4607 | generated by GNU Autoconf 2.69. Invocation command line was
|
---|
4608 |
|
---|
4609 | CONFIG_FILES = $CONFIG_FILES
|
---|
4610 | CONFIG_HEADERS = $CONFIG_HEADERS
|
---|
4611 | CONFIG_LINKS = $CONFIG_LINKS
|
---|
4612 | CONFIG_COMMANDS = $CONFIG_COMMANDS
|
---|
4613 | $ $0 $@
|
---|
4614 |
|
---|
4615 | on `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
4616 | "
|
---|
4617 |
|
---|
4618 | _ACEOF
|
---|
4619 |
|
---|
4620 | case $ac_config_files in *"
|
---|
4621 | "*) set x $ac_config_files; shift; ac_config_files=$*;;
|
---|
4622 | esac
|
---|
4623 |
|
---|
4624 |
|
---|
4625 |
|
---|
4626 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
4627 | # Files that config.status was made for.
|
---|
4628 | config_files="$ac_config_files"
|
---|
4629 |
|
---|
4630 | _ACEOF
|
---|
4631 |
|
---|
4632 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
4633 | ac_cs_usage="\
|
---|
4634 | \`$as_me' instantiates files and other configuration actions
|
---|
4635 | from templates according to the current configuration. Unless the files
|
---|
4636 | and actions are specified as TAGs, all are instantiated by default.
|
---|
4637 |
|
---|
4638 | Usage: $0 [OPTION]... [TAG]...
|
---|
4639 |
|
---|
4640 | -h, --help print this help, then exit
|
---|
4641 | -V, --version print version number and configuration settings, then exit
|
---|
4642 | --config print configuration, then exit
|
---|
4643 | -q, --quiet, --silent
|
---|
4644 | do not print progress messages
|
---|
4645 | -d, --debug don't remove temporary files
|
---|
4646 | --recheck update $as_me by reconfiguring in the same conditions
|
---|
4647 | --file=FILE[:TEMPLATE]
|
---|
4648 | instantiate the configuration file FILE
|
---|
4649 |
|
---|
4650 | Configuration files:
|
---|
4651 | $config_files
|
---|
4652 |
|
---|
4653 | Report bugs to the package provider."
|
---|
4654 |
|
---|
4655 | _ACEOF
|
---|
4656 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
4657 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
|
---|
4658 | ac_cs_version="\\
|
---|
4659 | config.status
|
---|
4660 | configured by $0, generated by GNU Autoconf 2.69,
|
---|
4661 | with options \\"\$ac_cs_config\\"
|
---|
4662 |
|
---|
4663 | Copyright (C) 2012 Free Software Foundation, Inc.
|
---|
4664 | This config.status script is free software; the Free Software Foundation
|
---|
4665 | gives unlimited permission to copy, distribute and modify it."
|
---|
4666 |
|
---|
4667 | ac_pwd='$ac_pwd'
|
---|
4668 | srcdir='$srcdir'
|
---|
4669 | INSTALL='$INSTALL'
|
---|
4670 | test -n "\$AWK" || AWK=awk
|
---|
4671 | _ACEOF
|
---|
4672 |
|
---|
4673 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
4674 | # The default lists apply if the user does not specify any file.
|
---|
4675 | ac_need_defaults=:
|
---|
4676 | while test $# != 0
|
---|
4677 | do
|
---|
4678 | case $1 in
|
---|
4679 | --*=?*)
|
---|
4680 | ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
---|
4681 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
|
---|
4682 | ac_shift=:
|
---|
4683 | ;;
|
---|
4684 | --*=)
|
---|
4685 | ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
---|
4686 | ac_optarg=
|
---|
4687 | ac_shift=:
|
---|
4688 | ;;
|
---|
4689 | *)
|
---|
4690 | ac_option=$1
|
---|
4691 | ac_optarg=$2
|
---|
4692 | ac_shift=shift
|
---|
4693 | ;;
|
---|
4694 | esac
|
---|
4695 |
|
---|
4696 | case $ac_option in
|
---|
4697 | # Handling of the options.
|
---|
4698 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
4699 | ac_cs_recheck=: ;;
|
---|
4700 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
|
---|
4701 | $as_echo "$ac_cs_version"; exit ;;
|
---|
4702 | --config | --confi | --conf | --con | --co | --c )
|
---|
4703 | $as_echo "$ac_cs_config"; exit ;;
|
---|
4704 | --debug | --debu | --deb | --de | --d | -d )
|
---|
4705 | debug=: ;;
|
---|
4706 | --file | --fil | --fi | --f )
|
---|
4707 | $ac_shift
|
---|
4708 | case $ac_optarg in
|
---|
4709 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
4710 | '') as_fn_error $? "missing file argument" ;;
|
---|
4711 | esac
|
---|
4712 | as_fn_append CONFIG_FILES " '$ac_optarg'"
|
---|
4713 | ac_need_defaults=false;;
|
---|
4714 | --he | --h | --help | --hel | -h )
|
---|
4715 | $as_echo "$ac_cs_usage"; exit ;;
|
---|
4716 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
4717 | | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
---|
4718 | ac_cs_silent=: ;;
|
---|
4719 |
|
---|
4720 | # This is an error.
|
---|
4721 | -*) as_fn_error $? "unrecognized option: \`$1'
|
---|
4722 | Try \`$0 --help' for more information." ;;
|
---|
4723 |
|
---|
4724 | *) as_fn_append ac_config_targets " $1"
|
---|
4725 | ac_need_defaults=false ;;
|
---|
4726 |
|
---|
4727 | esac
|
---|
4728 | shift
|
---|
4729 | done
|
---|
4730 |
|
---|
4731 | ac_configure_extra_args=
|
---|
4732 |
|
---|
4733 | if $ac_cs_silent; then
|
---|
4734 | exec 6>/dev/null
|
---|
4735 | ac_configure_extra_args="$ac_configure_extra_args --silent"
|
---|
4736 | fi
|
---|
4737 |
|
---|
4738 | _ACEOF
|
---|
4739 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
4740 | if \$ac_cs_recheck; then
|
---|
4741 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
---|
4742 | shift
|
---|
4743 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
|
---|
4744 | CONFIG_SHELL='$SHELL'
|
---|
4745 | export CONFIG_SHELL
|
---|
4746 | exec "\$@"
|
---|
4747 | fi
|
---|
4748 |
|
---|
4749 | _ACEOF
|
---|
4750 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
4751 | exec 5>>config.log
|
---|
4752 | {
|
---|
4753 | echo
|
---|
4754 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
---|
4755 | ## Running $as_me. ##
|
---|
4756 | _ASBOX
|
---|
4757 | $as_echo "$ac_log"
|
---|
4758 | } >&5
|
---|
4759 |
|
---|
4760 | _ACEOF
|
---|
4761 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
4762 | _ACEOF
|
---|
4763 |
|
---|
4764 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
4765 |
|
---|
4766 | # Handling of arguments.
|
---|
4767 | for ac_config_target in $ac_config_targets
|
---|
4768 | do
|
---|
4769 | case $ac_config_target in
|
---|
4770 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
---|
4771 | "jni/Makefile") CONFIG_FILES="$CONFIG_FILES jni/Makefile" ;;
|
---|
4772 | "java/Makefile") CONFIG_FILES="$CONFIG_FILES java/Makefile" ;;
|
---|
4773 |
|
---|
4774 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
|
---|
4775 | esac
|
---|
4776 | done
|
---|
4777 |
|
---|
4778 |
|
---|
4779 | # If the user did not use the arguments to specify the items to instantiate,
|
---|
4780 | # then the envvar interface is used. Set only those that are not.
|
---|
4781 | # We use the long form for the default assignment because of an extremely
|
---|
4782 | # bizarre bug on SunOS 4.1.3.
|
---|
4783 | if $ac_need_defaults; then
|
---|
4784 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
---|
4785 | fi
|
---|
4786 |
|
---|
4787 | # Have a temporary directory for convenience. Make it in the build tree
|
---|
4788 | # simply because there is no reason against having it here, and in addition,
|
---|
4789 | # creating and moving files from /tmp can sometimes cause problems.
|
---|
4790 | # Hook for its removal unless debugging.
|
---|
4791 | # Note that there is a small window in which the directory will not be cleaned:
|
---|
4792 | # after its creation but before its name has been assigned to `$tmp'.
|
---|
4793 | $debug ||
|
---|
4794 | {
|
---|
4795 | tmp= ac_tmp=
|
---|
4796 | trap 'exit_status=$?
|
---|
4797 | : "${ac_tmp:=$tmp}"
|
---|
4798 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
|
---|
4799 | ' 0
|
---|
4800 | trap 'as_fn_exit 1' 1 2 13 15
|
---|
4801 | }
|
---|
4802 | # Create a (secure) tmp directory for tmp files.
|
---|
4803 |
|
---|
4804 | {
|
---|
4805 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
|
---|
4806 | test -d "$tmp"
|
---|
4807 | } ||
|
---|
4808 | {
|
---|
4809 | tmp=./conf$$-$RANDOM
|
---|
4810 | (umask 077 && mkdir "$tmp")
|
---|
4811 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
|
---|
4812 | ac_tmp=$tmp
|
---|
4813 |
|
---|
4814 | # Set up the scripts for CONFIG_FILES section.
|
---|
4815 | # No need to generate them if there are no CONFIG_FILES.
|
---|
4816 | # This happens for instance with `./config.status config.h'.
|
---|
4817 | if test -n "$CONFIG_FILES"; then
|
---|
4818 |
|
---|
4819 |
|
---|
4820 | ac_cr=`echo X | tr X '\015'`
|
---|
4821 | # On cygwin, bash can eat \r inside `` if the user requested igncr.
|
---|
4822 | # But we know of no other shell where ac_cr would be empty at this
|
---|
4823 | # point, so we can use a bashism as a fallback.
|
---|
4824 | if test "x$ac_cr" = x; then
|
---|
4825 | eval ac_cr=\$\'\\r\'
|
---|
4826 | fi
|
---|
4827 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
|
---|
4828 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
|
---|
4829 | ac_cs_awk_cr='\\r'
|
---|
4830 | else
|
---|
4831 | ac_cs_awk_cr=$ac_cr
|
---|
4832 | fi
|
---|
4833 |
|
---|
4834 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
|
---|
4835 | _ACEOF
|
---|
4836 |
|
---|
4837 |
|
---|
4838 | {
|
---|
4839 | echo "cat >conf$$subs.awk <<_ACEOF" &&
|
---|
4840 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
|
---|
4841 | echo "_ACEOF"
|
---|
4842 | } >conf$$subs.sh ||
|
---|
4843 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
4844 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
|
---|
4845 | ac_delim='%!_!# '
|
---|
4846 | for ac_last_try in false false false false false :; do
|
---|
4847 | . ./conf$$subs.sh ||
|
---|
4848 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
4849 |
|
---|
4850 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
|
---|
4851 | if test $ac_delim_n = $ac_delim_num; then
|
---|
4852 | break
|
---|
4853 | elif $ac_last_try; then
|
---|
4854 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
4855 | else
|
---|
4856 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
---|
4857 | fi
|
---|
4858 | done
|
---|
4859 | rm -f conf$$subs.sh
|
---|
4860 |
|
---|
4861 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
4862 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
|
---|
4863 | _ACEOF
|
---|
4864 | sed -n '
|
---|
4865 | h
|
---|
4866 | s/^/S["/; s/!.*/"]=/
|
---|
4867 | p
|
---|
4868 | g
|
---|
4869 | s/^[^!]*!//
|
---|
4870 | :repl
|
---|
4871 | t repl
|
---|
4872 | s/'"$ac_delim"'$//
|
---|
4873 | t delim
|
---|
4874 | :nl
|
---|
4875 | h
|
---|
4876 | s/\(.\{148\}\)..*/\1/
|
---|
4877 | t more1
|
---|
4878 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
|
---|
4879 | p
|
---|
4880 | n
|
---|
4881 | b repl
|
---|
4882 | :more1
|
---|
4883 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/
|
---|
4884 | p
|
---|
4885 | g
|
---|
4886 | s/.\{148\}//
|
---|
4887 | t nl
|
---|
4888 | :delim
|
---|
4889 | h
|
---|
4890 | s/\(.\{148\}\)..*/\1/
|
---|
4891 | t more2
|
---|
4892 | s/["\\]/\\&/g; s/^/"/; s/$/"/
|
---|
4893 | p
|
---|
4894 | b
|
---|
4895 | :more2
|
---|
4896 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/
|
---|
4897 | p
|
---|
4898 | g
|
---|
4899 | s/.\{148\}//
|
---|
4900 | t delim
|
---|
4901 | ' <conf$$subs.awk | sed '
|
---|
4902 | /^[^""]/{
|
---|
4903 | N
|
---|
4904 | s/\n//
|
---|
4905 | }
|
---|
4906 | ' >>$CONFIG_STATUS || ac_write_fail=1
|
---|
4907 | rm -f conf$$subs.awk
|
---|
4908 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
4909 | _ACAWK
|
---|
4910 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
|
---|
4911 | for (key in S) S_is_set[key] = 1
|
---|
4912 | FS = ""
|
---|
4913 |
|
---|
4914 | }
|
---|
4915 | {
|
---|
4916 | line = $ 0
|
---|
4917 | nfields = split(line, field, "@")
|
---|
4918 | substed = 0
|
---|
4919 | len = length(field[1])
|
---|
4920 | for (i = 2; i < nfields; i++) {
|
---|
4921 | key = field[i]
|
---|
4922 | keylen = length(key)
|
---|
4923 | if (S_is_set[key]) {
|
---|
4924 | value = S[key]
|
---|
4925 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
|
---|
4926 | len += length(value) + length(field[++i])
|
---|
4927 | substed = 1
|
---|
4928 | } else
|
---|
4929 | len += 1 + keylen
|
---|
4930 | }
|
---|
4931 |
|
---|
4932 | print line
|
---|
4933 | }
|
---|
4934 |
|
---|
4935 | _ACAWK
|
---|
4936 | _ACEOF
|
---|
4937 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
4938 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
|
---|
4939 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
|
---|
4940 | else
|
---|
4941 | cat
|
---|
4942 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
|
---|
4943 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
|
---|
4944 | _ACEOF
|
---|
4945 |
|
---|
4946 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
|
---|
4947 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
|
---|
4948 | # trailing colons and then remove the whole line if VPATH becomes empty
|
---|
4949 | # (actually we leave an empty line to preserve line numbers).
|
---|
4950 | if test "x$srcdir" = x.; then
|
---|
4951 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
|
---|
4952 | h
|
---|
4953 | s///
|
---|
4954 | s/^/:/
|
---|
4955 | s/[ ]*$/:/
|
---|
4956 | s/:\$(srcdir):/:/g
|
---|
4957 | s/:\${srcdir}:/:/g
|
---|
4958 | s/:@srcdir@:/:/g
|
---|
4959 | s/^:*//
|
---|
4960 | s/:*$//
|
---|
4961 | x
|
---|
4962 | s/\(=[ ]*\).*/\1/
|
---|
4963 | G
|
---|
4964 | s/\n//
|
---|
4965 | s/^[^=]*=[ ]*$//
|
---|
4966 | }'
|
---|
4967 | fi
|
---|
4968 |
|
---|
4969 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
4970 | fi # test -n "$CONFIG_FILES"
|
---|
4971 |
|
---|
4972 |
|
---|
4973 | eval set X " :F $CONFIG_FILES "
|
---|
4974 | shift
|
---|
4975 | for ac_tag
|
---|
4976 | do
|
---|
4977 | case $ac_tag in
|
---|
4978 | :[FHLC]) ac_mode=$ac_tag; continue;;
|
---|
4979 | esac
|
---|
4980 | case $ac_mode$ac_tag in
|
---|
4981 | :[FHL]*:*);;
|
---|
4982 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
|
---|
4983 | :[FH]-) ac_tag=-:-;;
|
---|
4984 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
|
---|
4985 | esac
|
---|
4986 | ac_save_IFS=$IFS
|
---|
4987 | IFS=:
|
---|
4988 | set x $ac_tag
|
---|
4989 | IFS=$ac_save_IFS
|
---|
4990 | shift
|
---|
4991 | ac_file=$1
|
---|
4992 | shift
|
---|
4993 |
|
---|
4994 | case $ac_mode in
|
---|
4995 | :L) ac_source=$1;;
|
---|
4996 | :[FH])
|
---|
4997 | ac_file_inputs=
|
---|
4998 | for ac_f
|
---|
4999 | do
|
---|
5000 | case $ac_f in
|
---|
5001 | -) ac_f="$ac_tmp/stdin";;
|
---|
5002 | *) # Look for the file first in the build tree, then in the source tree
|
---|
5003 | # (if the path is not absolute). The absolute path cannot be DOS-style,
|
---|
5004 | # because $ac_f cannot contain `:'.
|
---|
5005 | test -f "$ac_f" ||
|
---|
5006 | case $ac_f in
|
---|
5007 | [\\/$]*) false;;
|
---|
5008 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
|
---|
5009 | esac ||
|
---|
5010 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
|
---|
5011 | esac
|
---|
5012 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
|
---|
5013 | as_fn_append ac_file_inputs " '$ac_f'"
|
---|
5014 | done
|
---|
5015 |
|
---|
5016 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
5017 | # use $as_me), people would be surprised to read:
|
---|
5018 | # /* config.h. Generated by config.status. */
|
---|
5019 | configure_input='Generated from '`
|
---|
5020 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
|
---|
5021 | `' by configure.'
|
---|
5022 | if test x"$ac_file" != x-; then
|
---|
5023 | configure_input="$ac_file. $configure_input"
|
---|
5024 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
|
---|
5025 | $as_echo "$as_me: creating $ac_file" >&6;}
|
---|
5026 | fi
|
---|
5027 | # Neutralize special characters interpreted by sed in replacement strings.
|
---|
5028 | case $configure_input in #(
|
---|
5029 | *\&* | *\|* | *\\* )
|
---|
5030 | ac_sed_conf_input=`$as_echo "$configure_input" |
|
---|
5031 | sed 's/[\\\\&|]/\\\\&/g'`;; #(
|
---|
5032 | *) ac_sed_conf_input=$configure_input;;
|
---|
5033 | esac
|
---|
5034 |
|
---|
5035 | case $ac_tag in
|
---|
5036 | *:-:* | *:-) cat >"$ac_tmp/stdin" \
|
---|
5037 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
|
---|
5038 | esac
|
---|
5039 | ;;
|
---|
5040 | esac
|
---|
5041 |
|
---|
5042 | ac_dir=`$as_dirname -- "$ac_file" ||
|
---|
5043 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
5044 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
5045 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
5046 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
5047 | $as_echo X"$ac_file" |
|
---|
5048 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
5049 | s//\1/
|
---|
5050 | q
|
---|
5051 | }
|
---|
5052 | /^X\(\/\/\)[^/].*/{
|
---|
5053 | s//\1/
|
---|
5054 | q
|
---|
5055 | }
|
---|
5056 | /^X\(\/\/\)$/{
|
---|
5057 | s//\1/
|
---|
5058 | q
|
---|
5059 | }
|
---|
5060 | /^X\(\/\).*/{
|
---|
5061 | s//\1/
|
---|
5062 | q
|
---|
5063 | }
|
---|
5064 | s/.*/./; q'`
|
---|
5065 | as_dir="$ac_dir"; as_fn_mkdir_p
|
---|
5066 | ac_builddir=.
|
---|
5067 |
|
---|
5068 | case "$ac_dir" in
|
---|
5069 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
5070 | *)
|
---|
5071 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
|
---|
5072 | # A ".." for each directory in $ac_dir_suffix.
|
---|
5073 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
---|
5074 | case $ac_top_builddir_sub in
|
---|
5075 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
5076 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
5077 | esac ;;
|
---|
5078 | esac
|
---|
5079 | ac_abs_top_builddir=$ac_pwd
|
---|
5080 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
5081 | # for backward compatibility:
|
---|
5082 | ac_top_builddir=$ac_top_build_prefix
|
---|
5083 |
|
---|
5084 | case $srcdir in
|
---|
5085 | .) # We are building in place.
|
---|
5086 | ac_srcdir=.
|
---|
5087 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
5088 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
5089 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
5090 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
5091 | ac_top_srcdir=$srcdir
|
---|
5092 | ac_abs_top_srcdir=$srcdir ;;
|
---|
5093 | *) # Relative name.
|
---|
5094 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
5095 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
5096 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
5097 | esac
|
---|
5098 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
5099 |
|
---|
5100 |
|
---|
5101 | case $ac_mode in
|
---|
5102 | :F)
|
---|
5103 | #
|
---|
5104 | # CONFIG_FILE
|
---|
5105 | #
|
---|
5106 |
|
---|
5107 | case $INSTALL in
|
---|
5108 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
---|
5109 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
|
---|
5110 | esac
|
---|
5111 | _ACEOF
|
---|
5112 |
|
---|
5113 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
5114 | # If the template does not know about datarootdir, expand it.
|
---|
5115 | # FIXME: This hack should be removed a few years after 2.60.
|
---|
5116 | ac_datarootdir_hack=; ac_datarootdir_seen=
|
---|
5117 | ac_sed_dataroot='
|
---|
5118 | /datarootdir/ {
|
---|
5119 | p
|
---|
5120 | q
|
---|
5121 | }
|
---|
5122 | /@datadir@/p
|
---|
5123 | /@docdir@/p
|
---|
5124 | /@infodir@/p
|
---|
5125 | /@localedir@/p
|
---|
5126 | /@mandir@/p'
|
---|
5127 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
|
---|
5128 | *datarootdir*) ac_datarootdir_seen=yes;;
|
---|
5129 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
|
---|
5130 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
|
---|
5131 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
|
---|
5132 | _ACEOF
|
---|
5133 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
5134 | ac_datarootdir_hack='
|
---|
5135 | s&@datadir@&$datadir&g
|
---|
5136 | s&@docdir@&$docdir&g
|
---|
5137 | s&@infodir@&$infodir&g
|
---|
5138 | s&@localedir@&$localedir&g
|
---|
5139 | s&@mandir@&$mandir&g
|
---|
5140 | s&\\\${datarootdir}&$datarootdir&g' ;;
|
---|
5141 | esac
|
---|
5142 | _ACEOF
|
---|
5143 |
|
---|
5144 | # Neutralize VPATH when `$srcdir' = `.'.
|
---|
5145 | # Shell code in configure.ac might set extrasub.
|
---|
5146 | # FIXME: do we really want to maintain this feature?
|
---|
5147 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
5148 | ac_sed_extra="$ac_vpsub
|
---|
5149 | $extrasub
|
---|
5150 | _ACEOF
|
---|
5151 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
5152 | :t
|
---|
5153 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
---|
5154 | s|@configure_input@|$ac_sed_conf_input|;t t
|
---|
5155 | s&@top_builddir@&$ac_top_builddir_sub&;t t
|
---|
5156 | s&@top_build_prefix@&$ac_top_build_prefix&;t t
|
---|
5157 | s&@srcdir@&$ac_srcdir&;t t
|
---|
5158 | s&@abs_srcdir@&$ac_abs_srcdir&;t t
|
---|
5159 | s&@top_srcdir@&$ac_top_srcdir&;t t
|
---|
5160 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
|
---|
5161 | s&@builddir@&$ac_builddir&;t t
|
---|
5162 | s&@abs_builddir@&$ac_abs_builddir&;t t
|
---|
5163 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
|
---|
5164 | s&@INSTALL@&$ac_INSTALL&;t t
|
---|
5165 | $ac_datarootdir_hack
|
---|
5166 | "
|
---|
5167 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
|
---|
5168 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
5169 |
|
---|
5170 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
|
---|
5171 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
|
---|
5172 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
|
---|
5173 | "$ac_tmp/out"`; test -z "$ac_out"; } &&
|
---|
5174 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
---|
5175 | which seems to be undefined. Please make sure it is defined" >&5
|
---|
5176 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
---|
5177 | which seems to be undefined. Please make sure it is defined" >&2;}
|
---|
5178 |
|
---|
5179 | rm -f "$ac_tmp/stdin"
|
---|
5180 | case $ac_file in
|
---|
5181 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
|
---|
5182 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
|
---|
5183 | esac \
|
---|
5184 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
5185 | ;;
|
---|
5186 |
|
---|
5187 |
|
---|
5188 |
|
---|
5189 | esac
|
---|
5190 |
|
---|
5191 | done # for ac_tag
|
---|
5192 |
|
---|
5193 |
|
---|
5194 | as_fn_exit 0
|
---|
5195 | _ACEOF
|
---|
5196 | ac_clean_files=$ac_clean_files_save
|
---|
5197 |
|
---|
5198 | test $ac_write_fail = 0 ||
|
---|
5199 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
|
---|
5200 |
|
---|
5201 |
|
---|
5202 | # configure is writing to config.log, and then calls config.status.
|
---|
5203 | # config.status does its own redirection, appending to config.log.
|
---|
5204 | # Unfortunately, on DOS this fails, as config.log is still kept open
|
---|
5205 | # by configure, so config.status won't be able to write to it; its
|
---|
5206 | # output is simply discarded. So we exec the FD to /dev/null,
|
---|
5207 | # effectively closing config.log, so it can be properly (re)opened and
|
---|
5208 | # appended to by config.status. When coming back to configure, we
|
---|
5209 | # need to make the FD available again.
|
---|
5210 | if test "$no_create" != yes; then
|
---|
5211 | ac_cs_success=:
|
---|
5212 | ac_config_status_args=
|
---|
5213 | test "$silent" = yes &&
|
---|
5214 | ac_config_status_args="$ac_config_status_args --quiet"
|
---|
5215 | exec 5>/dev/null
|
---|
5216 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
---|
5217 | exec 5>>config.log
|
---|
5218 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
---|
5219 | # would make configure fail if this is the last instruction.
|
---|
5220 | $ac_cs_success || as_fn_exit 1
|
---|
5221 | fi
|
---|
5222 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
|
---|
5223 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
|
---|
5224 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
|
---|
5225 | fi
|
---|
5226 |
|
---|