1 | #! /bin/sh
|
---|
2 | # Guess values for system-dependent variables and create Makefiles.
|
---|
3 | # Generated by GNU Autoconf 2.67.
|
---|
4 | #
|
---|
5 | #
|
---|
6 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
|
---|
7 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
|
---|
8 | # Foundation, Inc.
|
---|
9 | #
|
---|
10 | #
|
---|
11 | # This configure script is free software; the Free Software Foundation
|
---|
12 | # gives unlimited permission to copy, distribute and modify it.
|
---|
13 | ## -------------------- ##
|
---|
14 | ## M4sh Initialization. ##
|
---|
15 | ## -------------------- ##
|
---|
16 |
|
---|
17 | # Be more Bourne compatible
|
---|
18 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
|
---|
20 | emulate sh
|
---|
21 | NULLCMD=:
|
---|
22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
|
---|
23 | # is contrary to our usage. Disable this feature.
|
---|
24 | alias -g '${1+"$@"}'='"$@"'
|
---|
25 | setopt NO_GLOB_SUBST
|
---|
26 | else
|
---|
27 | case `(set -o) 2>/dev/null` in #(
|
---|
28 | *posix*) :
|
---|
29 | set -o posix ;; #(
|
---|
30 | *) :
|
---|
31 | ;;
|
---|
32 | esac
|
---|
33 | fi
|
---|
34 |
|
---|
35 |
|
---|
36 | as_nl='
|
---|
37 | '
|
---|
38 | export as_nl
|
---|
39 | # Printing a long string crashes Solaris 7 /usr/bin/printf.
|
---|
40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
---|
41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
43 | # Prefer a ksh shell builtin over an external printf program on Solaris,
|
---|
44 | # but without wasting forks for bash or zsh.
|
---|
45 | if test -z "$BASH_VERSION$ZSH_VERSION" \
|
---|
46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
47 | as_echo='print -r --'
|
---|
48 | as_echo_n='print -rn --'
|
---|
49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
50 | as_echo='printf %s\n'
|
---|
51 | as_echo_n='printf %s'
|
---|
52 | else
|
---|
53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
|
---|
54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
|
---|
55 | as_echo_n='/usr/ucb/echo -n'
|
---|
56 | else
|
---|
57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
|
---|
58 | as_echo_n_body='eval
|
---|
59 | arg=$1;
|
---|
60 | case $arg in #(
|
---|
61 | *"$as_nl"*)
|
---|
62 | expr "X$arg" : "X\\(.*\\)$as_nl";
|
---|
63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
|
---|
64 | esac;
|
---|
65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
|
---|
66 | '
|
---|
67 | export as_echo_n_body
|
---|
68 | as_echo_n='sh -c $as_echo_n_body as_echo'
|
---|
69 | fi
|
---|
70 | export as_echo_body
|
---|
71 | as_echo='sh -c $as_echo_body as_echo'
|
---|
72 | fi
|
---|
73 |
|
---|
74 | # The user is always right.
|
---|
75 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
76 | PATH_SEPARATOR=:
|
---|
77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
|
---|
78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
|
---|
79 | PATH_SEPARATOR=';'
|
---|
80 | }
|
---|
81 | fi
|
---|
82 |
|
---|
83 |
|
---|
84 | # IFS
|
---|
85 | # We need space, tab and new line, in precisely that order. Quoting is
|
---|
86 | # there to prevent editors from complaining about space-tab.
|
---|
87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
---|
88 | # splitting by setting IFS to empty value.)
|
---|
89 | IFS=" "" $as_nl"
|
---|
90 |
|
---|
91 | # Find who we are. Look in the path if we contain no directory separator.
|
---|
92 | case $0 in #((
|
---|
93 | *[\\/]* ) as_myself=$0 ;;
|
---|
94 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
95 | for as_dir in $PATH
|
---|
96 | do
|
---|
97 | IFS=$as_save_IFS
|
---|
98 | test -z "$as_dir" && as_dir=.
|
---|
99 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
100 | done
|
---|
101 | IFS=$as_save_IFS
|
---|
102 |
|
---|
103 | ;;
|
---|
104 | esac
|
---|
105 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
106 | # in which case we are not to be found in the path.
|
---|
107 | if test "x$as_myself" = x; then
|
---|
108 | as_myself=$0
|
---|
109 | fi
|
---|
110 | if test ! -f "$as_myself"; then
|
---|
111 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
---|
112 | exit 1
|
---|
113 | fi
|
---|
114 |
|
---|
115 | # Unset variables that we do not need and which cause bugs (e.g. in
|
---|
116 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
|
---|
117 | # suppresses any "Segmentation fault" message there. '((' could
|
---|
118 | # trigger a bug in pdksh 5.2.14.
|
---|
119 | for as_var in BASH_ENV ENV MAIL MAILPATH
|
---|
120 | do eval test x\${$as_var+set} = xset \
|
---|
121 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
|
---|
122 | done
|
---|
123 | PS1='$ '
|
---|
124 | PS2='> '
|
---|
125 | PS4='+ '
|
---|
126 |
|
---|
127 | # NLS nuisances.
|
---|
128 | LC_ALL=C
|
---|
129 | export LC_ALL
|
---|
130 | LANGUAGE=C
|
---|
131 | export LANGUAGE
|
---|
132 |
|
---|
133 | # CDPATH.
|
---|
134 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
---|
135 |
|
---|
136 | if test "x$CONFIG_SHELL" = x; then
|
---|
137 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
|
---|
138 | emulate sh
|
---|
139 | NULLCMD=:
|
---|
140 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
|
---|
141 | # is contrary to our usage. Disable this feature.
|
---|
142 | alias -g '\${1+\"\$@\"}'='\"\$@\"'
|
---|
143 | setopt NO_GLOB_SUBST
|
---|
144 | else
|
---|
145 | case \`(set -o) 2>/dev/null\` in #(
|
---|
146 | *posix*) :
|
---|
147 | set -o posix ;; #(
|
---|
148 | *) :
|
---|
149 | ;;
|
---|
150 | esac
|
---|
151 | fi
|
---|
152 | "
|
---|
153 | as_required="as_fn_return () { (exit \$1); }
|
---|
154 | as_fn_success () { as_fn_return 0; }
|
---|
155 | as_fn_failure () { as_fn_return 1; }
|
---|
156 | as_fn_ret_success () { return 0; }
|
---|
157 | as_fn_ret_failure () { return 1; }
|
---|
158 |
|
---|
159 | exitcode=0
|
---|
160 | as_fn_success || { exitcode=1; echo as_fn_success failed.; }
|
---|
161 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
|
---|
162 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
|
---|
163 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
|
---|
164 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
|
---|
165 |
|
---|
166 | else
|
---|
167 | exitcode=1; echo positional parameters were not saved.
|
---|
168 | fi
|
---|
169 | test x\$exitcode = x0 || exit 1"
|
---|
170 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
|
---|
171 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
|
---|
172 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
|
---|
173 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
|
---|
174 | test \$(( 1 + 1 )) = 2 || exit 1"
|
---|
175 | if (eval "$as_required") 2>/dev/null; then :
|
---|
176 | as_have_required=yes
|
---|
177 | else
|
---|
178 | as_have_required=no
|
---|
179 | fi
|
---|
180 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
|
---|
181 |
|
---|
182 | else
|
---|
183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
184 | as_found=false
|
---|
185 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
186 | do
|
---|
187 | IFS=$as_save_IFS
|
---|
188 | test -z "$as_dir" && as_dir=.
|
---|
189 | as_found=:
|
---|
190 | case $as_dir in #(
|
---|
191 | /*)
|
---|
192 | for as_base in sh bash ksh sh5; do
|
---|
193 | # Try only shells that exist, to save several forks.
|
---|
194 | as_shell=$as_dir/$as_base
|
---|
195 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
|
---|
196 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
|
---|
197 | CONFIG_SHELL=$as_shell as_have_required=yes
|
---|
198 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
|
---|
199 | break 2
|
---|
200 | fi
|
---|
201 | fi
|
---|
202 | done;;
|
---|
203 | esac
|
---|
204 | as_found=false
|
---|
205 | done
|
---|
206 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
|
---|
207 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
|
---|
208 | CONFIG_SHELL=$SHELL as_have_required=yes
|
---|
209 | fi; }
|
---|
210 | IFS=$as_save_IFS
|
---|
211 |
|
---|
212 |
|
---|
213 | if test "x$CONFIG_SHELL" != x; then :
|
---|
214 | # We cannot yet assume a decent shell, so we have to provide a
|
---|
215 | # neutralization value for shells without unset; and this also
|
---|
216 | # works around shells that cannot unset nonexistent variables.
|
---|
217 | BASH_ENV=/dev/null
|
---|
218 | ENV=/dev/null
|
---|
219 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
|
---|
220 | export CONFIG_SHELL
|
---|
221 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
|
---|
222 | fi
|
---|
223 |
|
---|
224 | if test x$as_have_required = xno; then :
|
---|
225 | $as_echo "$0: This script requires a shell more modern than all"
|
---|
226 | $as_echo "$0: the shells that I found on your system."
|
---|
227 | if test x${ZSH_VERSION+set} = xset ; then
|
---|
228 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
|
---|
229 | $as_echo "$0: be upgraded to zsh 4.3.4 or later."
|
---|
230 | else
|
---|
231 | $as_echo "$0: Please tell [email protected] about your system,
|
---|
232 | $0: including any error possibly output before this
|
---|
233 | $0: message. Then install a modern shell, or manually run
|
---|
234 | $0: the script under such a shell if you do have one."
|
---|
235 | fi
|
---|
236 | exit 1
|
---|
237 | fi
|
---|
238 | fi
|
---|
239 | fi
|
---|
240 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
241 | export SHELL
|
---|
242 | # Unset more variables known to interfere with behavior of common tools.
|
---|
243 | CLICOLOR_FORCE= GREP_OPTIONS=
|
---|
244 | unset CLICOLOR_FORCE GREP_OPTIONS
|
---|
245 |
|
---|
246 | ## --------------------- ##
|
---|
247 | ## M4sh Shell Functions. ##
|
---|
248 | ## --------------------- ##
|
---|
249 | # as_fn_unset VAR
|
---|
250 | # ---------------
|
---|
251 | # Portably unset VAR.
|
---|
252 | as_fn_unset ()
|
---|
253 | {
|
---|
254 | { eval $1=; unset $1;}
|
---|
255 | }
|
---|
256 | as_unset=as_fn_unset
|
---|
257 |
|
---|
258 | # as_fn_set_status STATUS
|
---|
259 | # -----------------------
|
---|
260 | # Set $? to STATUS, without forking.
|
---|
261 | as_fn_set_status ()
|
---|
262 | {
|
---|
263 | return $1
|
---|
264 | } # as_fn_set_status
|
---|
265 |
|
---|
266 | # as_fn_exit STATUS
|
---|
267 | # -----------------
|
---|
268 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
|
---|
269 | as_fn_exit ()
|
---|
270 | {
|
---|
271 | set +e
|
---|
272 | as_fn_set_status $1
|
---|
273 | exit $1
|
---|
274 | } # as_fn_exit
|
---|
275 |
|
---|
276 | # as_fn_mkdir_p
|
---|
277 | # -------------
|
---|
278 | # Create "$as_dir" as a directory, including parents if necessary.
|
---|
279 | as_fn_mkdir_p ()
|
---|
280 | {
|
---|
281 |
|
---|
282 | case $as_dir in #(
|
---|
283 | -*) as_dir=./$as_dir;;
|
---|
284 | esac
|
---|
285 | test -d "$as_dir" || eval $as_mkdir_p || {
|
---|
286 | as_dirs=
|
---|
287 | while :; do
|
---|
288 | case $as_dir in #(
|
---|
289 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
|
---|
290 | *) as_qdir=$as_dir;;
|
---|
291 | esac
|
---|
292 | as_dirs="'$as_qdir' $as_dirs"
|
---|
293 | as_dir=`$as_dirname -- "$as_dir" ||
|
---|
294 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
295 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
296 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
297 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
298 | $as_echo X"$as_dir" |
|
---|
299 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
300 | s//\1/
|
---|
301 | q
|
---|
302 | }
|
---|
303 | /^X\(\/\/\)[^/].*/{
|
---|
304 | s//\1/
|
---|
305 | q
|
---|
306 | }
|
---|
307 | /^X\(\/\/\)$/{
|
---|
308 | s//\1/
|
---|
309 | q
|
---|
310 | }
|
---|
311 | /^X\(\/\).*/{
|
---|
312 | s//\1/
|
---|
313 | q
|
---|
314 | }
|
---|
315 | s/.*/./; q'`
|
---|
316 | test -d "$as_dir" && break
|
---|
317 | done
|
---|
318 | test -z "$as_dirs" || eval "mkdir $as_dirs"
|
---|
319 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
|
---|
320 |
|
---|
321 |
|
---|
322 | } # as_fn_mkdir_p
|
---|
323 | # as_fn_append VAR VALUE
|
---|
324 | # ----------------------
|
---|
325 | # Append the text in VALUE to the end of the definition contained in VAR. Take
|
---|
326 | # advantage of any shell optimizations that allow amortized linear growth over
|
---|
327 | # repeated appends, instead of the typical quadratic growth present in naive
|
---|
328 | # implementations.
|
---|
329 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
|
---|
330 | eval 'as_fn_append ()
|
---|
331 | {
|
---|
332 | eval $1+=\$2
|
---|
333 | }'
|
---|
334 | else
|
---|
335 | as_fn_append ()
|
---|
336 | {
|
---|
337 | eval $1=\$$1\$2
|
---|
338 | }
|
---|
339 | fi # as_fn_append
|
---|
340 |
|
---|
341 | # as_fn_arith ARG...
|
---|
342 | # ------------------
|
---|
343 | # Perform arithmetic evaluation on the ARGs, and store the result in the
|
---|
344 | # global $as_val. Take advantage of shells that can avoid forks. The arguments
|
---|
345 | # must be portable across $(()) and expr.
|
---|
346 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
|
---|
347 | eval 'as_fn_arith ()
|
---|
348 | {
|
---|
349 | as_val=$(( $* ))
|
---|
350 | }'
|
---|
351 | else
|
---|
352 | as_fn_arith ()
|
---|
353 | {
|
---|
354 | as_val=`expr "$@" || test $? -eq 1`
|
---|
355 | }
|
---|
356 | fi # as_fn_arith
|
---|
357 |
|
---|
358 |
|
---|
359 | # as_fn_error STATUS ERROR [LINENO LOG_FD]
|
---|
360 | # ----------------------------------------
|
---|
361 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
|
---|
362 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
|
---|
363 | # script with STATUS, using 1 if that was 0.
|
---|
364 | as_fn_error ()
|
---|
365 | {
|
---|
366 | as_status=$1; test $as_status -eq 0 && as_status=1
|
---|
367 | if test "$4"; then
|
---|
368 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
369 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
|
---|
370 | fi
|
---|
371 | $as_echo "$as_me: error: $2" >&2
|
---|
372 | as_fn_exit $as_status
|
---|
373 | } # as_fn_error
|
---|
374 |
|
---|
375 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
376 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
377 | as_expr=expr
|
---|
378 | else
|
---|
379 | as_expr=false
|
---|
380 | fi
|
---|
381 |
|
---|
382 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
---|
383 | as_basename=basename
|
---|
384 | else
|
---|
385 | as_basename=false
|
---|
386 | fi
|
---|
387 |
|
---|
388 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
---|
389 | as_dirname=dirname
|
---|
390 | else
|
---|
391 | as_dirname=false
|
---|
392 | fi
|
---|
393 |
|
---|
394 | as_me=`$as_basename -- "$0" ||
|
---|
395 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
396 | X"$0" : 'X\(//\)$' \| \
|
---|
397 | X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
398 | $as_echo X/"$0" |
|
---|
399 | sed '/^.*\/\([^/][^/]*\)\/*$/{
|
---|
400 | s//\1/
|
---|
401 | q
|
---|
402 | }
|
---|
403 | /^X\/\(\/\/\)$/{
|
---|
404 | s//\1/
|
---|
405 | q
|
---|
406 | }
|
---|
407 | /^X\/\(\/\).*/{
|
---|
408 | s//\1/
|
---|
409 | q
|
---|
410 | }
|
---|
411 | s/.*/./; q'`
|
---|
412 |
|
---|
413 | # Avoid depending upon Character Ranges.
|
---|
414 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
415 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
416 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
417 | as_cr_digits='0123456789'
|
---|
418 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
419 |
|
---|
420 |
|
---|
421 | as_lineno_1=$LINENO as_lineno_1a=$LINENO
|
---|
422 | as_lineno_2=$LINENO as_lineno_2a=$LINENO
|
---|
423 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
|
---|
424 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
|
---|
425 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
|
---|
426 | sed -n '
|
---|
427 | p
|
---|
428 | /[$]LINENO/=
|
---|
429 | ' <$as_myself |
|
---|
430 | sed '
|
---|
431 | s/[$]LINENO.*/&-/
|
---|
432 | t lineno
|
---|
433 | b
|
---|
434 | :lineno
|
---|
435 | N
|
---|
436 | :loop
|
---|
437 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
|
---|
438 | t loop
|
---|
439 | s/-\n.*//
|
---|
440 | ' >$as_me.lineno &&
|
---|
441 | chmod +x "$as_me.lineno" ||
|
---|
442 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
|
---|
443 |
|
---|
444 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
445 | # (the dirname of $[0] is not the place where we might find the
|
---|
446 | # original and so on. Autoconf is especially sensitive to this).
|
---|
447 | . "./$as_me.lineno"
|
---|
448 | # Exit status is that of the last command.
|
---|
449 | exit
|
---|
450 | }
|
---|
451 |
|
---|
452 | ECHO_C= ECHO_N= ECHO_T=
|
---|
453 | case `echo -n x` in #(((((
|
---|
454 | -n*)
|
---|
455 | case `echo 'xy\c'` in
|
---|
456 | *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
---|
457 | xy) ECHO_C='\c';;
|
---|
458 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
|
---|
459 | ECHO_T=' ';;
|
---|
460 | esac;;
|
---|
461 | *)
|
---|
462 | ECHO_N='-n';;
|
---|
463 | esac
|
---|
464 |
|
---|
465 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
466 | if test -d conf$$.dir; then
|
---|
467 | rm -f conf$$.dir/conf$$.file
|
---|
468 | else
|
---|
469 | rm -f conf$$.dir
|
---|
470 | mkdir conf$$.dir 2>/dev/null
|
---|
471 | fi
|
---|
472 | if (echo >conf$$.file) 2>/dev/null; then
|
---|
473 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
474 | as_ln_s='ln -s'
|
---|
475 | # ... but there are two gotchas:
|
---|
476 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
---|
477 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
---|
478 | # In both cases, we have to default to `cp -p'.
|
---|
479 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
---|
480 | as_ln_s='cp -p'
|
---|
481 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
482 | as_ln_s=ln
|
---|
483 | else
|
---|
484 | as_ln_s='cp -p'
|
---|
485 | fi
|
---|
486 | else
|
---|
487 | as_ln_s='cp -p'
|
---|
488 | fi
|
---|
489 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
---|
490 | rmdir conf$$.dir 2>/dev/null
|
---|
491 |
|
---|
492 | if mkdir -p . 2>/dev/null; then
|
---|
493 | as_mkdir_p='mkdir -p "$as_dir"'
|
---|
494 | else
|
---|
495 | test -d ./-p && rmdir ./-p
|
---|
496 | as_mkdir_p=false
|
---|
497 | fi
|
---|
498 |
|
---|
499 | if test -x / >/dev/null 2>&1; then
|
---|
500 | as_test_x='test -x'
|
---|
501 | else
|
---|
502 | if ls -dL / >/dev/null 2>&1; then
|
---|
503 | as_ls_L_option=L
|
---|
504 | else
|
---|
505 | as_ls_L_option=
|
---|
506 | fi
|
---|
507 | as_test_x='
|
---|
508 | eval sh -c '\''
|
---|
509 | if test -d "$1"; then
|
---|
510 | test -d "$1/.";
|
---|
511 | else
|
---|
512 | case $1 in #(
|
---|
513 | -*)set "./$1";;
|
---|
514 | esac;
|
---|
515 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
|
---|
516 | ???[sx]*):;;*)false;;esac;fi
|
---|
517 | '\'' sh
|
---|
518 | '
|
---|
519 | fi
|
---|
520 | as_executable_p=$as_test_x
|
---|
521 |
|
---|
522 | # Sed expression to map a string onto a valid CPP name.
|
---|
523 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
524 |
|
---|
525 | # Sed expression to map a string onto a valid variable name.
|
---|
526 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
527 |
|
---|
528 |
|
---|
529 | test -n "$DJDIR" || exec 7<&0 </dev/null
|
---|
530 | exec 6>&1
|
---|
531 |
|
---|
532 | # Name of the host.
|
---|
533 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
|
---|
534 | # so uname gets run too.
|
---|
535 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
536 |
|
---|
537 | #
|
---|
538 | # Initializations.
|
---|
539 | #
|
---|
540 | ac_default_prefix=/usr/local
|
---|
541 | ac_clean_files=
|
---|
542 | ac_config_libobj_dir=.
|
---|
543 | LIBOBJS=
|
---|
544 | cross_compiling=no
|
---|
545 | subdirs=
|
---|
546 | MFLAGS=
|
---|
547 | MAKEFLAGS=
|
---|
548 |
|
---|
549 | # Identity of this package.
|
---|
550 | PACKAGE_NAME=
|
---|
551 | PACKAGE_TARNAME=
|
---|
552 | PACKAGE_VERSION=
|
---|
553 | PACKAGE_STRING=
|
---|
554 | PACKAGE_BUGREPORT=
|
---|
555 | PACKAGE_URL=
|
---|
556 |
|
---|
557 | # Factoring default headers for most tests.
|
---|
558 | ac_includes_default="\
|
---|
559 | #include <stdio.h>
|
---|
560 | #ifdef HAVE_SYS_TYPES_H
|
---|
561 | # include <sys/types.h>
|
---|
562 | #endif
|
---|
563 | #ifdef HAVE_SYS_STAT_H
|
---|
564 | # include <sys/stat.h>
|
---|
565 | #endif
|
---|
566 | #ifdef STDC_HEADERS
|
---|
567 | # include <stdlib.h>
|
---|
568 | # include <stddef.h>
|
---|
569 | #else
|
---|
570 | # ifdef HAVE_STDLIB_H
|
---|
571 | # include <stdlib.h>
|
---|
572 | # endif
|
---|
573 | #endif
|
---|
574 | #ifdef HAVE_STRING_H
|
---|
575 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
|
---|
576 | # include <memory.h>
|
---|
577 | # endif
|
---|
578 | # include <string.h>
|
---|
579 | #endif
|
---|
580 | #ifdef HAVE_STRINGS_H
|
---|
581 | # include <strings.h>
|
---|
582 | #endif
|
---|
583 | #ifdef HAVE_INTTYPES_H
|
---|
584 | # include <inttypes.h>
|
---|
585 | #endif
|
---|
586 | #ifdef HAVE_STDINT_H
|
---|
587 | # include <stdint.h>
|
---|
588 | #endif
|
---|
589 | #ifdef HAVE_UNISTD_H
|
---|
590 | # include <unistd.h>
|
---|
591 | #endif"
|
---|
592 |
|
---|
593 | enable_option_checking=no
|
---|
594 | ac_subst_vars='LTLIBOBJS
|
---|
595 | subdirs
|
---|
596 | MODULEDIRS
|
---|
597 | gsdlos
|
---|
598 | STATIC
|
---|
599 | LIBOBJS
|
---|
600 | ALLOCA
|
---|
601 | ANSI2KNR
|
---|
602 | U
|
---|
603 | EGREP
|
---|
604 | GREP
|
---|
605 | CPP
|
---|
606 | MICO_VER
|
---|
607 | COMPAT32BITFLAGS
|
---|
608 | RANLIB
|
---|
609 | SET_MAKE
|
---|
610 | LN_S
|
---|
611 | INSTALL_DATA
|
---|
612 | INSTALL_SCRIPT
|
---|
613 | INSTALL_PROGRAM
|
---|
614 | target_os
|
---|
615 | target_vendor
|
---|
616 | target_cpu
|
---|
617 | target
|
---|
618 | host_os
|
---|
619 | host_vendor
|
---|
620 | host_cpu
|
---|
621 | host
|
---|
622 | build_os
|
---|
623 | build_vendor
|
---|
624 | build_cpu
|
---|
625 | build
|
---|
626 | YFLAGS
|
---|
627 | YACC
|
---|
628 | AWK
|
---|
629 | ac_ct_CXX
|
---|
630 | CXXFLAGS
|
---|
631 | CXX
|
---|
632 | OBJEXT
|
---|
633 | EXEEXT
|
---|
634 | ac_ct_CC
|
---|
635 | CPPFLAGS
|
---|
636 | CC
|
---|
637 | CFLAGS
|
---|
638 | LDFLAGS
|
---|
639 | ENABLE_LUCENE
|
---|
640 | ENABLE_MGPP
|
---|
641 | ENABLE_MG
|
---|
642 | ENABLE_JNI
|
---|
643 | USE_APACHE_HTTPD
|
---|
644 | USE_SQLITE
|
---|
645 | ENABLE_ACCENTFOLD
|
---|
646 | USE_GDBM
|
---|
647 | USE_JDBM
|
---|
648 | USE_YAZ
|
---|
649 | USE_Z3950
|
---|
650 | ENABLE_JAVA
|
---|
651 | MICO_DIR
|
---|
652 | USE_CORBA
|
---|
653 | USE_LANGACTION
|
---|
654 | USE_FASTCGI
|
---|
655 | VERSION
|
---|
656 | PACKAGE
|
---|
657 | target_alias
|
---|
658 | host_alias
|
---|
659 | build_alias
|
---|
660 | LIBS
|
---|
661 | ECHO_T
|
---|
662 | ECHO_N
|
---|
663 | ECHO_C
|
---|
664 | DEFS
|
---|
665 | mandir
|
---|
666 | localedir
|
---|
667 | libdir
|
---|
668 | psdir
|
---|
669 | pdfdir
|
---|
670 | dvidir
|
---|
671 | htmldir
|
---|
672 | infodir
|
---|
673 | docdir
|
---|
674 | oldincludedir
|
---|
675 | includedir
|
---|
676 | localstatedir
|
---|
677 | sharedstatedir
|
---|
678 | sysconfdir
|
---|
679 | datadir
|
---|
680 | datarootdir
|
---|
681 | libexecdir
|
---|
682 | sbindir
|
---|
683 | bindir
|
---|
684 | program_transform_name
|
---|
685 | prefix
|
---|
686 | exec_prefix
|
---|
687 | PACKAGE_URL
|
---|
688 | PACKAGE_BUGREPORT
|
---|
689 | PACKAGE_STRING
|
---|
690 | PACKAGE_VERSION
|
---|
691 | PACKAGE_TARNAME
|
---|
692 | PACKAGE_NAME
|
---|
693 | PATH_SEPARATOR
|
---|
694 | SHELL'
|
---|
695 | ac_subst_files=''
|
---|
696 | ac_user_opts='
|
---|
697 | enable_option_checking
|
---|
698 | enable_corba
|
---|
699 | with_micodir
|
---|
700 | enable_java
|
---|
701 | enable_z3950
|
---|
702 | enable_yaz
|
---|
703 | enable_jdbm
|
---|
704 | enable_gdbm
|
---|
705 | enable_accentfold
|
---|
706 | enable_sqlite
|
---|
707 | enable_apache_httpd
|
---|
708 | enable_jni
|
---|
709 | enable_mg
|
---|
710 | enable_mgpp
|
---|
711 | enable_lucene
|
---|
712 | with_dmalloc
|
---|
713 | with_regex
|
---|
714 | '
|
---|
715 | ac_precious_vars='build_alias
|
---|
716 | host_alias
|
---|
717 | target_alias
|
---|
718 | CC
|
---|
719 | CFLAGS
|
---|
720 | LDFLAGS
|
---|
721 | LIBS
|
---|
722 | CPPFLAGS
|
---|
723 | CXX
|
---|
724 | CXXFLAGS
|
---|
725 | CCC
|
---|
726 | YACC
|
---|
727 | YFLAGS
|
---|
728 | CPP'
|
---|
729 | ac_subdirs_all='common-src
|
---|
730 | build-src
|
---|
731 | runtime-src'
|
---|
732 |
|
---|
733 | # Initialize some variables set by options.
|
---|
734 | ac_init_help=
|
---|
735 | ac_init_version=false
|
---|
736 | ac_unrecognized_opts=
|
---|
737 | ac_unrecognized_sep=
|
---|
738 | # The variables have the same names as the options, with
|
---|
739 | # dashes changed to underlines.
|
---|
740 | cache_file=/dev/null
|
---|
741 | exec_prefix=NONE
|
---|
742 | no_create=
|
---|
743 | no_recursion=
|
---|
744 | prefix=NONE
|
---|
745 | program_prefix=NONE
|
---|
746 | program_suffix=NONE
|
---|
747 | program_transform_name=s,x,x,
|
---|
748 | silent=
|
---|
749 | site=
|
---|
750 | srcdir=
|
---|
751 | verbose=
|
---|
752 | x_includes=NONE
|
---|
753 | x_libraries=NONE
|
---|
754 |
|
---|
755 | # Installation directory options.
|
---|
756 | # These are left unexpanded so users can "make install exec_prefix=/foo"
|
---|
757 | # and all the variables that are supposed to be based on exec_prefix
|
---|
758 | # by default will actually change.
|
---|
759 | # Use braces instead of parens because sh, perl, etc. also accept them.
|
---|
760 | # (The list follows the same order as the GNU Coding Standards.)
|
---|
761 | bindir='${exec_prefix}/bin'
|
---|
762 | sbindir='${exec_prefix}/sbin'
|
---|
763 | libexecdir='${exec_prefix}/libexec'
|
---|
764 | datarootdir='${prefix}/share'
|
---|
765 | datadir='${datarootdir}'
|
---|
766 | sysconfdir='${prefix}/etc'
|
---|
767 | sharedstatedir='${prefix}/com'
|
---|
768 | localstatedir='${prefix}/var'
|
---|
769 | includedir='${prefix}/include'
|
---|
770 | oldincludedir='/usr/include'
|
---|
771 | docdir='${datarootdir}/doc/${PACKAGE}'
|
---|
772 | infodir='${datarootdir}/info'
|
---|
773 | htmldir='${docdir}'
|
---|
774 | dvidir='${docdir}'
|
---|
775 | pdfdir='${docdir}'
|
---|
776 | psdir='${docdir}'
|
---|
777 | libdir='${exec_prefix}/lib'
|
---|
778 | localedir='${datarootdir}/locale'
|
---|
779 | mandir='${datarootdir}/man'
|
---|
780 |
|
---|
781 | ac_prev=
|
---|
782 | ac_dashdash=
|
---|
783 | for ac_option
|
---|
784 | do
|
---|
785 | # If the previous option needs an argument, assign it.
|
---|
786 | if test -n "$ac_prev"; then
|
---|
787 | eval $ac_prev=\$ac_option
|
---|
788 | ac_prev=
|
---|
789 | continue
|
---|
790 | fi
|
---|
791 |
|
---|
792 | case $ac_option in
|
---|
793 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
|
---|
794 | *=) ac_optarg= ;;
|
---|
795 | *) ac_optarg=yes ;;
|
---|
796 | esac
|
---|
797 |
|
---|
798 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
799 |
|
---|
800 | case $ac_dashdash$ac_option in
|
---|
801 | --)
|
---|
802 | ac_dashdash=yes ;;
|
---|
803 |
|
---|
804 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
805 | ac_prev=bindir ;;
|
---|
806 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
807 | bindir=$ac_optarg ;;
|
---|
808 |
|
---|
809 | -build | --build | --buil | --bui | --bu)
|
---|
810 | ac_prev=build_alias ;;
|
---|
811 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
812 | build_alias=$ac_optarg ;;
|
---|
813 |
|
---|
814 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
815 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
816 | ac_prev=cache_file ;;
|
---|
817 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
818 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
819 | cache_file=$ac_optarg ;;
|
---|
820 |
|
---|
821 | --config-cache | -C)
|
---|
822 | cache_file=config.cache ;;
|
---|
823 |
|
---|
824 | -datadir | --datadir | --datadi | --datad)
|
---|
825 | ac_prev=datadir ;;
|
---|
826 | -datadir=* | --datadir=* | --datadi=* | --datad=*)
|
---|
827 | datadir=$ac_optarg ;;
|
---|
828 |
|
---|
829 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
|
---|
830 | | --dataroo | --dataro | --datar)
|
---|
831 | ac_prev=datarootdir ;;
|
---|
832 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
|
---|
833 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
|
---|
834 | datarootdir=$ac_optarg ;;
|
---|
835 |
|
---|
836 | -disable-* | --disable-*)
|
---|
837 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
---|
838 | # Reject names that are not valid shell variable names.
|
---|
839 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
840 | as_fn_error $? "invalid feature name: $ac_useropt"
|
---|
841 | ac_useropt_orig=$ac_useropt
|
---|
842 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
843 | case $ac_user_opts in
|
---|
844 | *"
|
---|
845 | "enable_$ac_useropt"
|
---|
846 | "*) ;;
|
---|
847 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
|
---|
848 | ac_unrecognized_sep=', ';;
|
---|
849 | esac
|
---|
850 | eval enable_$ac_useropt=no ;;
|
---|
851 |
|
---|
852 | -docdir | --docdir | --docdi | --doc | --do)
|
---|
853 | ac_prev=docdir ;;
|
---|
854 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
|
---|
855 | docdir=$ac_optarg ;;
|
---|
856 |
|
---|
857 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
|
---|
858 | ac_prev=dvidir ;;
|
---|
859 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
|
---|
860 | dvidir=$ac_optarg ;;
|
---|
861 |
|
---|
862 | -enable-* | --enable-*)
|
---|
863 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
---|
864 | # Reject names that are not valid shell variable names.
|
---|
865 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
866 | as_fn_error $? "invalid feature name: $ac_useropt"
|
---|
867 | ac_useropt_orig=$ac_useropt
|
---|
868 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
869 | case $ac_user_opts in
|
---|
870 | *"
|
---|
871 | "enable_$ac_useropt"
|
---|
872 | "*) ;;
|
---|
873 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
|
---|
874 | ac_unrecognized_sep=', ';;
|
---|
875 | esac
|
---|
876 | eval enable_$ac_useropt=\$ac_optarg ;;
|
---|
877 |
|
---|
878 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
879 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
880 | | --exec | --exe | --ex)
|
---|
881 | ac_prev=exec_prefix ;;
|
---|
882 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
883 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
884 | | --exec=* | --exe=* | --ex=*)
|
---|
885 | exec_prefix=$ac_optarg ;;
|
---|
886 |
|
---|
887 | -gas | --gas | --ga | --g)
|
---|
888 | # Obsolete; use --with-gas.
|
---|
889 | with_gas=yes ;;
|
---|
890 |
|
---|
891 | -help | --help | --hel | --he | -h)
|
---|
892 | ac_init_help=long ;;
|
---|
893 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
---|
894 | ac_init_help=recursive ;;
|
---|
895 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
---|
896 | ac_init_help=short ;;
|
---|
897 |
|
---|
898 | -host | --host | --hos | --ho)
|
---|
899 | ac_prev=host_alias ;;
|
---|
900 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
901 | host_alias=$ac_optarg ;;
|
---|
902 |
|
---|
903 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
|
---|
904 | ac_prev=htmldir ;;
|
---|
905 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
|
---|
906 | | --ht=*)
|
---|
907 | htmldir=$ac_optarg ;;
|
---|
908 |
|
---|
909 | -includedir | --includedir | --includedi | --included | --include \
|
---|
910 | | --includ | --inclu | --incl | --inc)
|
---|
911 | ac_prev=includedir ;;
|
---|
912 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
913 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
914 | includedir=$ac_optarg ;;
|
---|
915 |
|
---|
916 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
917 | ac_prev=infodir ;;
|
---|
918 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
919 | infodir=$ac_optarg ;;
|
---|
920 |
|
---|
921 | -libdir | --libdir | --libdi | --libd)
|
---|
922 | ac_prev=libdir ;;
|
---|
923 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
924 | libdir=$ac_optarg ;;
|
---|
925 |
|
---|
926 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
927 | | --libexe | --libex | --libe)
|
---|
928 | ac_prev=libexecdir ;;
|
---|
929 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
930 | | --libexe=* | --libex=* | --libe=*)
|
---|
931 | libexecdir=$ac_optarg ;;
|
---|
932 |
|
---|
933 | -localedir | --localedir | --localedi | --localed | --locale)
|
---|
934 | ac_prev=localedir ;;
|
---|
935 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
|
---|
936 | localedir=$ac_optarg ;;
|
---|
937 |
|
---|
938 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
939 | | --localstate | --localstat | --localsta | --localst | --locals)
|
---|
940 | ac_prev=localstatedir ;;
|
---|
941 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
942 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
|
---|
943 | localstatedir=$ac_optarg ;;
|
---|
944 |
|
---|
945 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
946 | ac_prev=mandir ;;
|
---|
947 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
948 | mandir=$ac_optarg ;;
|
---|
949 |
|
---|
950 | -nfp | --nfp | --nf)
|
---|
951 | # Obsolete; use --without-fp.
|
---|
952 | with_fp=no ;;
|
---|
953 |
|
---|
954 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
955 | | --no-cr | --no-c | -n)
|
---|
956 | no_create=yes ;;
|
---|
957 |
|
---|
958 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
959 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
960 | no_recursion=yes ;;
|
---|
961 |
|
---|
962 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
963 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
964 | | --oldin | --oldi | --old | --ol | --o)
|
---|
965 | ac_prev=oldincludedir ;;
|
---|
966 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
967 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
968 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
969 | oldincludedir=$ac_optarg ;;
|
---|
970 |
|
---|
971 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
972 | ac_prev=prefix ;;
|
---|
973 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
974 | prefix=$ac_optarg ;;
|
---|
975 |
|
---|
976 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
977 | | --program-pre | --program-pr | --program-p)
|
---|
978 | ac_prev=program_prefix ;;
|
---|
979 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
980 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
981 | program_prefix=$ac_optarg ;;
|
---|
982 |
|
---|
983 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
984 | | --program-suf | --program-su | --program-s)
|
---|
985 | ac_prev=program_suffix ;;
|
---|
986 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
987 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
988 | program_suffix=$ac_optarg ;;
|
---|
989 |
|
---|
990 | -program-transform-name | --program-transform-name \
|
---|
991 | | --program-transform-nam | --program-transform-na \
|
---|
992 | | --program-transform-n | --program-transform- \
|
---|
993 | | --program-transform | --program-transfor \
|
---|
994 | | --program-transfo | --program-transf \
|
---|
995 | | --program-trans | --program-tran \
|
---|
996 | | --progr-tra | --program-tr | --program-t)
|
---|
997 | ac_prev=program_transform_name ;;
|
---|
998 | -program-transform-name=* | --program-transform-name=* \
|
---|
999 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
1000 | | --program-transform-n=* | --program-transform-=* \
|
---|
1001 | | --program-transform=* | --program-transfor=* \
|
---|
1002 | | --program-transfo=* | --program-transf=* \
|
---|
1003 | | --program-trans=* | --program-tran=* \
|
---|
1004 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
1005 | program_transform_name=$ac_optarg ;;
|
---|
1006 |
|
---|
1007 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
|
---|
1008 | ac_prev=pdfdir ;;
|
---|
1009 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
|
---|
1010 | pdfdir=$ac_optarg ;;
|
---|
1011 |
|
---|
1012 | -psdir | --psdir | --psdi | --psd | --ps)
|
---|
1013 | ac_prev=psdir ;;
|
---|
1014 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
|
---|
1015 | psdir=$ac_optarg ;;
|
---|
1016 |
|
---|
1017 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
1018 | | -silent | --silent | --silen | --sile | --sil)
|
---|
1019 | silent=yes ;;
|
---|
1020 |
|
---|
1021 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
1022 | ac_prev=sbindir ;;
|
---|
1023 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
1024 | | --sbi=* | --sb=*)
|
---|
1025 | sbindir=$ac_optarg ;;
|
---|
1026 |
|
---|
1027 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
1028 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
1029 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
1030 | | --sha | --sh)
|
---|
1031 | ac_prev=sharedstatedir ;;
|
---|
1032 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
1033 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
1034 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
1035 | | --sha=* | --sh=*)
|
---|
1036 | sharedstatedir=$ac_optarg ;;
|
---|
1037 |
|
---|
1038 | -site | --site | --sit)
|
---|
1039 | ac_prev=site ;;
|
---|
1040 | -site=* | --site=* | --sit=*)
|
---|
1041 | site=$ac_optarg ;;
|
---|
1042 |
|
---|
1043 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
1044 | ac_prev=srcdir ;;
|
---|
1045 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
1046 | srcdir=$ac_optarg ;;
|
---|
1047 |
|
---|
1048 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
1049 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
1050 | ac_prev=sysconfdir ;;
|
---|
1051 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
1052 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
1053 | sysconfdir=$ac_optarg ;;
|
---|
1054 |
|
---|
1055 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
1056 | ac_prev=target_alias ;;
|
---|
1057 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
1058 | target_alias=$ac_optarg ;;
|
---|
1059 |
|
---|
1060 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
1061 | verbose=yes ;;
|
---|
1062 |
|
---|
1063 | -version | --version | --versio | --versi | --vers | -V)
|
---|
1064 | ac_init_version=: ;;
|
---|
1065 |
|
---|
1066 | -with-* | --with-*)
|
---|
1067 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
---|
1068 | # Reject names that are not valid shell variable names.
|
---|
1069 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
1070 | as_fn_error $? "invalid package name: $ac_useropt"
|
---|
1071 | ac_useropt_orig=$ac_useropt
|
---|
1072 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
1073 | case $ac_user_opts in
|
---|
1074 | *"
|
---|
1075 | "with_$ac_useropt"
|
---|
1076 | "*) ;;
|
---|
1077 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
|
---|
1078 | ac_unrecognized_sep=', ';;
|
---|
1079 | esac
|
---|
1080 | eval with_$ac_useropt=\$ac_optarg ;;
|
---|
1081 |
|
---|
1082 | -without-* | --without-*)
|
---|
1083 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
---|
1084 | # Reject names that are not valid shell variable names.
|
---|
1085 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
1086 | as_fn_error $? "invalid package name: $ac_useropt"
|
---|
1087 | ac_useropt_orig=$ac_useropt
|
---|
1088 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
1089 | case $ac_user_opts in
|
---|
1090 | *"
|
---|
1091 | "with_$ac_useropt"
|
---|
1092 | "*) ;;
|
---|
1093 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
|
---|
1094 | ac_unrecognized_sep=', ';;
|
---|
1095 | esac
|
---|
1096 | eval with_$ac_useropt=no ;;
|
---|
1097 |
|
---|
1098 | --x)
|
---|
1099 | # Obsolete; use --with-x.
|
---|
1100 | with_x=yes ;;
|
---|
1101 |
|
---|
1102 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
1103 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
1104 | ac_prev=x_includes ;;
|
---|
1105 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
1106 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
1107 | x_includes=$ac_optarg ;;
|
---|
1108 |
|
---|
1109 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
1110 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
1111 | ac_prev=x_libraries ;;
|
---|
1112 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
1113 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
1114 | x_libraries=$ac_optarg ;;
|
---|
1115 |
|
---|
1116 | -*) as_fn_error $? "unrecognized option: \`$ac_option'
|
---|
1117 | Try \`$0 --help' for more information"
|
---|
1118 | ;;
|
---|
1119 |
|
---|
1120 | *=*)
|
---|
1121 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
---|
1122 | # Reject names that are not valid shell variable names.
|
---|
1123 | case $ac_envvar in #(
|
---|
1124 | '' | [0-9]* | *[!_$as_cr_alnum]* )
|
---|
1125 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
|
---|
1126 | esac
|
---|
1127 | eval $ac_envvar=\$ac_optarg
|
---|
1128 | export $ac_envvar ;;
|
---|
1129 |
|
---|
1130 | *)
|
---|
1131 | # FIXME: should be removed in autoconf 3.0.
|
---|
1132 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
---|
1133 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
1134 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
---|
1135 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
|
---|
1136 | ;;
|
---|
1137 |
|
---|
1138 | esac
|
---|
1139 | done
|
---|
1140 |
|
---|
1141 | if test -n "$ac_prev"; then
|
---|
1142 | ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
---|
1143 | as_fn_error $? "missing argument to $ac_option"
|
---|
1144 | fi
|
---|
1145 |
|
---|
1146 | if test -n "$ac_unrecognized_opts"; then
|
---|
1147 | case $enable_option_checking in
|
---|
1148 | no) ;;
|
---|
1149 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
|
---|
1150 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
|
---|
1151 | esac
|
---|
1152 | fi
|
---|
1153 |
|
---|
1154 | # Check all directory arguments for consistency.
|
---|
1155 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
|
---|
1156 | datadir sysconfdir sharedstatedir localstatedir includedir \
|
---|
1157 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
|
---|
1158 | libdir localedir mandir
|
---|
1159 | do
|
---|
1160 | eval ac_val=\$$ac_var
|
---|
1161 | # Remove trailing slashes.
|
---|
1162 | case $ac_val in
|
---|
1163 | */ )
|
---|
1164 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
|
---|
1165 | eval $ac_var=\$ac_val;;
|
---|
1166 | esac
|
---|
1167 | # Be sure to have absolute directory names.
|
---|
1168 | case $ac_val in
|
---|
1169 | [\\/$]* | ?:[\\/]* ) continue;;
|
---|
1170 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
|
---|
1171 | esac
|
---|
1172 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
|
---|
1173 | done
|
---|
1174 |
|
---|
1175 | # There might be people who depend on the old broken behavior: `$host'
|
---|
1176 | # used to hold the argument of --host etc.
|
---|
1177 | # FIXME: To remove some day.
|
---|
1178 | build=$build_alias
|
---|
1179 | host=$host_alias
|
---|
1180 | target=$target_alias
|
---|
1181 |
|
---|
1182 | # FIXME: To remove some day.
|
---|
1183 | if test "x$host_alias" != x; then
|
---|
1184 | if test "x$build_alias" = x; then
|
---|
1185 | cross_compiling=maybe
|
---|
1186 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
|
---|
1187 | If a cross compiler is detected then cross compile mode will be used" >&2
|
---|
1188 | elif test "x$build_alias" != "x$host_alias"; then
|
---|
1189 | cross_compiling=yes
|
---|
1190 | fi
|
---|
1191 | fi
|
---|
1192 |
|
---|
1193 | ac_tool_prefix=
|
---|
1194 | test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
---|
1195 |
|
---|
1196 | test "$silent" = yes && exec 6>/dev/null
|
---|
1197 |
|
---|
1198 |
|
---|
1199 | ac_pwd=`pwd` && test -n "$ac_pwd" &&
|
---|
1200 | ac_ls_di=`ls -di .` &&
|
---|
1201 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
|
---|
1202 | as_fn_error $? "working directory cannot be determined"
|
---|
1203 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
|
---|
1204 | as_fn_error $? "pwd does not report name of working directory"
|
---|
1205 |
|
---|
1206 |
|
---|
1207 | # Find the source files, if location was not specified.
|
---|
1208 | if test -z "$srcdir"; then
|
---|
1209 | ac_srcdir_defaulted=yes
|
---|
1210 | # Try the directory containing this script, then the parent directory.
|
---|
1211 | ac_confdir=`$as_dirname -- "$as_myself" ||
|
---|
1212 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
1213 | X"$as_myself" : 'X\(//\)[^/]' \| \
|
---|
1214 | X"$as_myself" : 'X\(//\)$' \| \
|
---|
1215 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
1216 | $as_echo X"$as_myself" |
|
---|
1217 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
1218 | s//\1/
|
---|
1219 | q
|
---|
1220 | }
|
---|
1221 | /^X\(\/\/\)[^/].*/{
|
---|
1222 | s//\1/
|
---|
1223 | q
|
---|
1224 | }
|
---|
1225 | /^X\(\/\/\)$/{
|
---|
1226 | s//\1/
|
---|
1227 | q
|
---|
1228 | }
|
---|
1229 | /^X\(\/\).*/{
|
---|
1230 | s//\1/
|
---|
1231 | q
|
---|
1232 | }
|
---|
1233 | s/.*/./; q'`
|
---|
1234 | srcdir=$ac_confdir
|
---|
1235 | if test ! -r "$srcdir/$ac_unique_file"; then
|
---|
1236 | srcdir=..
|
---|
1237 | fi
|
---|
1238 | else
|
---|
1239 | ac_srcdir_defaulted=no
|
---|
1240 | fi
|
---|
1241 | if test ! -r "$srcdir/$ac_unique_file"; then
|
---|
1242 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
|
---|
1243 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
|
---|
1244 | fi
|
---|
1245 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
|
---|
1246 | ac_abs_confdir=`(
|
---|
1247 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
|
---|
1248 | pwd)`
|
---|
1249 | # When building in place, set srcdir=.
|
---|
1250 | if test "$ac_abs_confdir" = "$ac_pwd"; then
|
---|
1251 | srcdir=.
|
---|
1252 | fi
|
---|
1253 | # Remove unnecessary trailing slashes from srcdir.
|
---|
1254 | # Double slashes in file names in object file debugging info
|
---|
1255 | # mess up M-x gdb in Emacs.
|
---|
1256 | case $srcdir in
|
---|
1257 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
|
---|
1258 | esac
|
---|
1259 | for ac_var in $ac_precious_vars; do
|
---|
1260 | eval ac_env_${ac_var}_set=\${${ac_var}+set}
|
---|
1261 | eval ac_env_${ac_var}_value=\$${ac_var}
|
---|
1262 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
|
---|
1263 | eval ac_cv_env_${ac_var}_value=\$${ac_var}
|
---|
1264 | done
|
---|
1265 |
|
---|
1266 | #
|
---|
1267 | # Report the --help message.
|
---|
1268 | #
|
---|
1269 | if test "$ac_init_help" = "long"; then
|
---|
1270 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
1271 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
1272 | cat <<_ACEOF
|
---|
1273 | \`configure' configures this package to adapt to many kinds of systems.
|
---|
1274 |
|
---|
1275 | Usage: $0 [OPTION]... [VAR=VALUE]...
|
---|
1276 |
|
---|
1277 | To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
---|
1278 | VAR=VALUE. See below for descriptions of some of the useful variables.
|
---|
1279 |
|
---|
1280 | Defaults for the options are specified in brackets.
|
---|
1281 |
|
---|
1282 | Configuration:
|
---|
1283 | -h, --help display this help and exit
|
---|
1284 | --help=short display options specific to this package
|
---|
1285 | --help=recursive display the short help of all the included packages
|
---|
1286 | -V, --version display version information and exit
|
---|
1287 | -q, --quiet, --silent do not print \`checking ...' messages
|
---|
1288 | --cache-file=FILE cache test results in FILE [disabled]
|
---|
1289 | -C, --config-cache alias for \`--cache-file=config.cache'
|
---|
1290 | -n, --no-create do not create output files
|
---|
1291 | --srcdir=DIR find the sources in DIR [configure dir or \`..']
|
---|
1292 |
|
---|
1293 | Installation directories:
|
---|
1294 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
1295 | [$ac_default_prefix]
|
---|
1296 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
1297 | [PREFIX]
|
---|
1298 |
|
---|
1299 | By default, \`make install' will install all the files in
|
---|
1300 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
---|
1301 | an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
---|
1302 | for instance \`--prefix=\$HOME'.
|
---|
1303 |
|
---|
1304 | For better control, use the options below.
|
---|
1305 |
|
---|
1306 | Fine tuning of the installation directories:
|
---|
1307 | --bindir=DIR user executables [EPREFIX/bin]
|
---|
1308 | --sbindir=DIR system admin executables [EPREFIX/sbin]
|
---|
1309 | --libexecdir=DIR program executables [EPREFIX/libexec]
|
---|
1310 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
---|
1311 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
---|
1312 | --localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
---|
1313 | --libdir=DIR object code libraries [EPREFIX/lib]
|
---|
1314 | --includedir=DIR C header files [PREFIX/include]
|
---|
1315 | --oldincludedir=DIR C header files for non-gcc [/usr/include]
|
---|
1316 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
|
---|
1317 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
|
---|
1318 | --infodir=DIR info documentation [DATAROOTDIR/info]
|
---|
1319 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
|
---|
1320 | --mandir=DIR man documentation [DATAROOTDIR/man]
|
---|
1321 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
|
---|
1322 | --htmldir=DIR html documentation [DOCDIR]
|
---|
1323 | --dvidir=DIR dvi documentation [DOCDIR]
|
---|
1324 | --pdfdir=DIR pdf documentation [DOCDIR]
|
---|
1325 | --psdir=DIR ps documentation [DOCDIR]
|
---|
1326 | _ACEOF
|
---|
1327 |
|
---|
1328 | cat <<\_ACEOF
|
---|
1329 |
|
---|
1330 | System types:
|
---|
1331 | --build=BUILD configure for building on BUILD [guessed]
|
---|
1332 | --host=HOST cross-compile to build programs to run on HOST [BUILD]
|
---|
1333 | --target=TARGET configure for building compilers for TARGET [HOST]
|
---|
1334 | _ACEOF
|
---|
1335 | fi
|
---|
1336 |
|
---|
1337 | if test -n "$ac_init_help"; then
|
---|
1338 |
|
---|
1339 | cat <<\_ACEOF
|
---|
1340 |
|
---|
1341 | Optional Features:
|
---|
1342 | --disable-option-checking ignore unrecognized --enable/--with options
|
---|
1343 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
---|
1344 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
---|
1345 | --enable-corba Enable CORBA support
|
---|
1346 | --disable-java Disable Java compilation
|
---|
1347 | --enable-z3950 Enable Z39.50 client support
|
---|
1348 | --disable-yaz Disable YAZ compilation
|
---|
1349 | --disable-jdbm Disable JDBM compilation
|
---|
1350 | --disable-gdbm Disable GDBM compilation
|
---|
1351 | --disable-accentfold Disable Accent Folding for MGPP
|
---|
1352 | --disable-sqlite Disable SQLite support
|
---|
1353 | --enable-apache-httpd Enable Apache httpd support
|
---|
1354 | --enable-jni Enable JNI compilation
|
---|
1355 | --disable-mg Disable MG compilation
|
---|
1356 | --disable-mgpp Disable MGPP compilation
|
---|
1357 | --disable-lucene Disable Lucene compilation
|
---|
1358 |
|
---|
1359 | Optional Packages:
|
---|
1360 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
1361 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
1362 | --with-micodir Use installed MICO directory
|
---|
1363 | --with-dmalloc use dmalloc, as in
|
---|
1364 | ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz
|
---|
1365 | --with-regex use older regex in lieu of GNU rx for matching
|
---|
1366 |
|
---|
1367 | Some influential environment variables:
|
---|
1368 | CC C compiler command
|
---|
1369 | CFLAGS C compiler flags
|
---|
1370 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
---|
1371 | nonstandard directory <lib dir>
|
---|
1372 | LIBS libraries to pass to the linker, e.g. -l<library>
|
---|
1373 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
|
---|
1374 | you have headers in a nonstandard directory <include dir>
|
---|
1375 | CXX C++ compiler command
|
---|
1376 | CXXFLAGS C++ compiler flags
|
---|
1377 | YACC The `Yet Another C Compiler' implementation to use. Defaults to
|
---|
1378 | the first program found out of: `bison -y', `byacc', `yacc'.
|
---|
1379 | YFLAGS The list of arguments that will be passed by default to $YACC.
|
---|
1380 | This script will default YFLAGS to the empty string to avoid a
|
---|
1381 | default value of `-d' given by some make applications.
|
---|
1382 | CPP C preprocessor
|
---|
1383 |
|
---|
1384 | Use these variables to override the choices made by `configure' or to help
|
---|
1385 | it to find libraries and programs with nonstandard names/locations.
|
---|
1386 |
|
---|
1387 | Report bugs to the package provider.
|
---|
1388 | _ACEOF
|
---|
1389 | ac_status=$?
|
---|
1390 | fi
|
---|
1391 |
|
---|
1392 | if test "$ac_init_help" = "recursive"; then
|
---|
1393 | # If there are subdirs, report their specific --help.
|
---|
1394 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
---|
1395 | test -d "$ac_dir" ||
|
---|
1396 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
|
---|
1397 | continue
|
---|
1398 | ac_builddir=.
|
---|
1399 |
|
---|
1400 | case "$ac_dir" in
|
---|
1401 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
1402 | *)
|
---|
1403 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
|
---|
1404 | # A ".." for each directory in $ac_dir_suffix.
|
---|
1405 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
---|
1406 | case $ac_top_builddir_sub in
|
---|
1407 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
1408 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
1409 | esac ;;
|
---|
1410 | esac
|
---|
1411 | ac_abs_top_builddir=$ac_pwd
|
---|
1412 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
1413 | # for backward compatibility:
|
---|
1414 | ac_top_builddir=$ac_top_build_prefix
|
---|
1415 |
|
---|
1416 | case $srcdir in
|
---|
1417 | .) # We are building in place.
|
---|
1418 | ac_srcdir=.
|
---|
1419 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
1420 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
1421 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
1422 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
1423 | ac_top_srcdir=$srcdir
|
---|
1424 | ac_abs_top_srcdir=$srcdir ;;
|
---|
1425 | *) # Relative name.
|
---|
1426 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
1427 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
1428 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
1429 | esac
|
---|
1430 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
1431 |
|
---|
1432 | cd "$ac_dir" || { ac_status=$?; continue; }
|
---|
1433 | # Check for guested configure.
|
---|
1434 | if test -f "$ac_srcdir/configure.gnu"; then
|
---|
1435 | echo &&
|
---|
1436 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive
|
---|
1437 | elif test -f "$ac_srcdir/configure"; then
|
---|
1438 | echo &&
|
---|
1439 | $SHELL "$ac_srcdir/configure" --help=recursive
|
---|
1440 | else
|
---|
1441 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
---|
1442 | fi || ac_status=$?
|
---|
1443 | cd "$ac_pwd" || { ac_status=$?; break; }
|
---|
1444 | done
|
---|
1445 | fi
|
---|
1446 |
|
---|
1447 | test -n "$ac_init_help" && exit $ac_status
|
---|
1448 | if $ac_init_version; then
|
---|
1449 | cat <<\_ACEOF
|
---|
1450 | configure
|
---|
1451 | generated by GNU Autoconf 2.67
|
---|
1452 |
|
---|
1453 | Copyright (C) 2010 Free Software Foundation, Inc.
|
---|
1454 | This configure script is free software; the Free Software Foundation
|
---|
1455 | gives unlimited permission to copy, distribute and modify it.
|
---|
1456 | _ACEOF
|
---|
1457 | exit
|
---|
1458 | fi
|
---|
1459 |
|
---|
1460 | ## ------------------------ ##
|
---|
1461 | ## Autoconf initialization. ##
|
---|
1462 | ## ------------------------ ##
|
---|
1463 |
|
---|
1464 | # ac_fn_c_try_compile LINENO
|
---|
1465 | # --------------------------
|
---|
1466 | # Try to compile conftest.$ac_ext, and return whether this succeeded.
|
---|
1467 | ac_fn_c_try_compile ()
|
---|
1468 | {
|
---|
1469 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1470 | rm -f conftest.$ac_objext
|
---|
1471 | if { { ac_try="$ac_compile"
|
---|
1472 | case "(($ac_try" in
|
---|
1473 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1474 | *) ac_try_echo=$ac_try;;
|
---|
1475 | esac
|
---|
1476 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1477 | $as_echo "$ac_try_echo"; } >&5
|
---|
1478 | (eval "$ac_compile") 2>conftest.err
|
---|
1479 | ac_status=$?
|
---|
1480 | if test -s conftest.err; then
|
---|
1481 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
1482 | cat conftest.er1 >&5
|
---|
1483 | mv -f conftest.er1 conftest.err
|
---|
1484 | fi
|
---|
1485 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1486 | test $ac_status = 0; } && {
|
---|
1487 | test -z "$ac_c_werror_flag" ||
|
---|
1488 | test ! -s conftest.err
|
---|
1489 | } && test -s conftest.$ac_objext; then :
|
---|
1490 | ac_retval=0
|
---|
1491 | else
|
---|
1492 | $as_echo "$as_me: failed program was:" >&5
|
---|
1493 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1494 |
|
---|
1495 | ac_retval=1
|
---|
1496 | fi
|
---|
1497 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
1498 | as_fn_set_status $ac_retval
|
---|
1499 |
|
---|
1500 | } # ac_fn_c_try_compile
|
---|
1501 |
|
---|
1502 | # ac_fn_cxx_try_compile LINENO
|
---|
1503 | # ----------------------------
|
---|
1504 | # Try to compile conftest.$ac_ext, and return whether this succeeded.
|
---|
1505 | ac_fn_cxx_try_compile ()
|
---|
1506 | {
|
---|
1507 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1508 | rm -f conftest.$ac_objext
|
---|
1509 | if { { ac_try="$ac_compile"
|
---|
1510 | case "(($ac_try" in
|
---|
1511 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1512 | *) ac_try_echo=$ac_try;;
|
---|
1513 | esac
|
---|
1514 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1515 | $as_echo "$ac_try_echo"; } >&5
|
---|
1516 | (eval "$ac_compile") 2>conftest.err
|
---|
1517 | ac_status=$?
|
---|
1518 | if test -s conftest.err; then
|
---|
1519 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
1520 | cat conftest.er1 >&5
|
---|
1521 | mv -f conftest.er1 conftest.err
|
---|
1522 | fi
|
---|
1523 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1524 | test $ac_status = 0; } && {
|
---|
1525 | test -z "$ac_cxx_werror_flag" ||
|
---|
1526 | test ! -s conftest.err
|
---|
1527 | } && test -s conftest.$ac_objext; then :
|
---|
1528 | ac_retval=0
|
---|
1529 | else
|
---|
1530 | $as_echo "$as_me: failed program was:" >&5
|
---|
1531 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1532 |
|
---|
1533 | ac_retval=1
|
---|
1534 | fi
|
---|
1535 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
1536 | as_fn_set_status $ac_retval
|
---|
1537 |
|
---|
1538 | } # ac_fn_cxx_try_compile
|
---|
1539 |
|
---|
1540 | # ac_fn_c_try_cpp LINENO
|
---|
1541 | # ----------------------
|
---|
1542 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
|
---|
1543 | ac_fn_c_try_cpp ()
|
---|
1544 | {
|
---|
1545 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1546 | if { { ac_try="$ac_cpp conftest.$ac_ext"
|
---|
1547 | case "(($ac_try" in
|
---|
1548 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1549 | *) ac_try_echo=$ac_try;;
|
---|
1550 | esac
|
---|
1551 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1552 | $as_echo "$ac_try_echo"; } >&5
|
---|
1553 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
|
---|
1554 | ac_status=$?
|
---|
1555 | if test -s conftest.err; then
|
---|
1556 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
1557 | cat conftest.er1 >&5
|
---|
1558 | mv -f conftest.er1 conftest.err
|
---|
1559 | fi
|
---|
1560 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1561 | test $ac_status = 0; } > conftest.i && {
|
---|
1562 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
1563 | test ! -s conftest.err
|
---|
1564 | }; then :
|
---|
1565 | ac_retval=0
|
---|
1566 | else
|
---|
1567 | $as_echo "$as_me: failed program was:" >&5
|
---|
1568 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1569 |
|
---|
1570 | ac_retval=1
|
---|
1571 | fi
|
---|
1572 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
1573 | as_fn_set_status $ac_retval
|
---|
1574 |
|
---|
1575 | } # ac_fn_c_try_cpp
|
---|
1576 |
|
---|
1577 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
|
---|
1578 | # -------------------------------------------------------
|
---|
1579 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using
|
---|
1580 | # the include files in INCLUDES and setting the cache variable VAR
|
---|
1581 | # accordingly.
|
---|
1582 | ac_fn_c_check_header_mongrel ()
|
---|
1583 | {
|
---|
1584 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1585 | if eval "test \"\${$3+set}\"" = set; then :
|
---|
1586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1587 | $as_echo_n "checking for $2... " >&6; }
|
---|
1588 | if eval "test \"\${$3+set}\"" = set; then :
|
---|
1589 | $as_echo_n "(cached) " >&6
|
---|
1590 | fi
|
---|
1591 | eval ac_res=\$$3
|
---|
1592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1593 | $as_echo "$ac_res" >&6; }
|
---|
1594 | else
|
---|
1595 | # Is the header compilable?
|
---|
1596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
|
---|
1597 | $as_echo_n "checking $2 usability... " >&6; }
|
---|
1598 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1599 | /* end confdefs.h. */
|
---|
1600 | $4
|
---|
1601 | #include <$2>
|
---|
1602 | _ACEOF
|
---|
1603 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1604 | ac_header_compiler=yes
|
---|
1605 | else
|
---|
1606 | ac_header_compiler=no
|
---|
1607 | fi
|
---|
1608 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
|
---|
1610 | $as_echo "$ac_header_compiler" >&6; }
|
---|
1611 |
|
---|
1612 | # Is the header present?
|
---|
1613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
|
---|
1614 | $as_echo_n "checking $2 presence... " >&6; }
|
---|
1615 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1616 | /* end confdefs.h. */
|
---|
1617 | #include <$2>
|
---|
1618 | _ACEOF
|
---|
1619 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
1620 | ac_header_preproc=yes
|
---|
1621 | else
|
---|
1622 | ac_header_preproc=no
|
---|
1623 | fi
|
---|
1624 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
1625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
|
---|
1626 | $as_echo "$ac_header_preproc" >&6; }
|
---|
1627 |
|
---|
1628 | # So? What about this header?
|
---|
1629 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
|
---|
1630 | yes:no: )
|
---|
1631 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
1632 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
1633 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
|
---|
1634 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
|
---|
1635 | ;;
|
---|
1636 | no:yes:* )
|
---|
1637 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
|
---|
1638 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
|
---|
1639 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
|
---|
1640 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
|
---|
1641 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
|
---|
1642 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
|
---|
1643 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
|
---|
1644 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
1645 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
|
---|
1646 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
|
---|
1647 | ;;
|
---|
1648 | esac
|
---|
1649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1650 | $as_echo_n "checking for $2... " >&6; }
|
---|
1651 | if eval "test \"\${$3+set}\"" = set; then :
|
---|
1652 | $as_echo_n "(cached) " >&6
|
---|
1653 | else
|
---|
1654 | eval "$3=\$ac_header_compiler"
|
---|
1655 | fi
|
---|
1656 | eval ac_res=\$$3
|
---|
1657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1658 | $as_echo "$ac_res" >&6; }
|
---|
1659 | fi
|
---|
1660 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
1661 |
|
---|
1662 | } # ac_fn_c_check_header_mongrel
|
---|
1663 |
|
---|
1664 | # ac_fn_c_try_run LINENO
|
---|
1665 | # ----------------------
|
---|
1666 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
|
---|
1667 | # that executables *can* be run.
|
---|
1668 | ac_fn_c_try_run ()
|
---|
1669 | {
|
---|
1670 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1671 | if { { ac_try="$ac_link"
|
---|
1672 | case "(($ac_try" in
|
---|
1673 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1674 | *) ac_try_echo=$ac_try;;
|
---|
1675 | esac
|
---|
1676 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1677 | $as_echo "$ac_try_echo"; } >&5
|
---|
1678 | (eval "$ac_link") 2>&5
|
---|
1679 | ac_status=$?
|
---|
1680 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1681 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
|
---|
1682 | { { case "(($ac_try" in
|
---|
1683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1684 | *) ac_try_echo=$ac_try;;
|
---|
1685 | esac
|
---|
1686 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1687 | $as_echo "$ac_try_echo"; } >&5
|
---|
1688 | (eval "$ac_try") 2>&5
|
---|
1689 | ac_status=$?
|
---|
1690 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1691 | test $ac_status = 0; }; }; then :
|
---|
1692 | ac_retval=0
|
---|
1693 | else
|
---|
1694 | $as_echo "$as_me: program exited with status $ac_status" >&5
|
---|
1695 | $as_echo "$as_me: failed program was:" >&5
|
---|
1696 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1697 |
|
---|
1698 | ac_retval=$ac_status
|
---|
1699 | fi
|
---|
1700 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
---|
1701 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
1702 | as_fn_set_status $ac_retval
|
---|
1703 |
|
---|
1704 | } # ac_fn_c_try_run
|
---|
1705 |
|
---|
1706 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
|
---|
1707 | # -------------------------------------------------------
|
---|
1708 | # Tests whether HEADER exists and can be compiled using the include files in
|
---|
1709 | # INCLUDES, setting the cache variable VAR accordingly.
|
---|
1710 | ac_fn_c_check_header_compile ()
|
---|
1711 | {
|
---|
1712 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1714 | $as_echo_n "checking for $2... " >&6; }
|
---|
1715 | if eval "test \"\${$3+set}\"" = set; then :
|
---|
1716 | $as_echo_n "(cached) " >&6
|
---|
1717 | else
|
---|
1718 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1719 | /* end confdefs.h. */
|
---|
1720 | $4
|
---|
1721 | #include <$2>
|
---|
1722 | _ACEOF
|
---|
1723 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1724 | eval "$3=yes"
|
---|
1725 | else
|
---|
1726 | eval "$3=no"
|
---|
1727 | fi
|
---|
1728 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1729 | fi
|
---|
1730 | eval ac_res=\$$3
|
---|
1731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1732 | $as_echo "$ac_res" >&6; }
|
---|
1733 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
1734 |
|
---|
1735 | } # ac_fn_c_check_header_compile
|
---|
1736 |
|
---|
1737 | # ac_fn_c_try_link LINENO
|
---|
1738 | # -----------------------
|
---|
1739 | # Try to link conftest.$ac_ext, and return whether this succeeded.
|
---|
1740 | ac_fn_c_try_link ()
|
---|
1741 | {
|
---|
1742 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1743 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
1744 | if { { ac_try="$ac_link"
|
---|
1745 | case "(($ac_try" in
|
---|
1746 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1747 | *) ac_try_echo=$ac_try;;
|
---|
1748 | esac
|
---|
1749 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1750 | $as_echo "$ac_try_echo"; } >&5
|
---|
1751 | (eval "$ac_link") 2>conftest.err
|
---|
1752 | ac_status=$?
|
---|
1753 | if test -s conftest.err; then
|
---|
1754 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
1755 | cat conftest.er1 >&5
|
---|
1756 | mv -f conftest.er1 conftest.err
|
---|
1757 | fi
|
---|
1758 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1759 | test $ac_status = 0; } && {
|
---|
1760 | test -z "$ac_c_werror_flag" ||
|
---|
1761 | test ! -s conftest.err
|
---|
1762 | } && test -s conftest$ac_exeext && {
|
---|
1763 | test "$cross_compiling" = yes ||
|
---|
1764 | $as_test_x conftest$ac_exeext
|
---|
1765 | }; then :
|
---|
1766 | ac_retval=0
|
---|
1767 | else
|
---|
1768 | $as_echo "$as_me: failed program was:" >&5
|
---|
1769 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1770 |
|
---|
1771 | ac_retval=1
|
---|
1772 | fi
|
---|
1773 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
|
---|
1774 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
|
---|
1775 | # interfere with the next link command; also delete a directory that is
|
---|
1776 | # left behind by Apple's compiler. We do this before executing the actions.
|
---|
1777 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
---|
1778 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
1779 | as_fn_set_status $ac_retval
|
---|
1780 |
|
---|
1781 | } # ac_fn_c_try_link
|
---|
1782 |
|
---|
1783 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
|
---|
1784 | # -------------------------------------------
|
---|
1785 | # Tests whether TYPE exists after having included INCLUDES, setting cache
|
---|
1786 | # variable VAR accordingly.
|
---|
1787 | ac_fn_c_check_type ()
|
---|
1788 | {
|
---|
1789 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1791 | $as_echo_n "checking for $2... " >&6; }
|
---|
1792 | if eval "test \"\${$3+set}\"" = set; then :
|
---|
1793 | $as_echo_n "(cached) " >&6
|
---|
1794 | else
|
---|
1795 | eval "$3=no"
|
---|
1796 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1797 | /* end confdefs.h. */
|
---|
1798 | $4
|
---|
1799 | int
|
---|
1800 | main ()
|
---|
1801 | {
|
---|
1802 | if (sizeof ($2))
|
---|
1803 | return 0;
|
---|
1804 | ;
|
---|
1805 | return 0;
|
---|
1806 | }
|
---|
1807 | _ACEOF
|
---|
1808 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1809 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1810 | /* end confdefs.h. */
|
---|
1811 | $4
|
---|
1812 | int
|
---|
1813 | main ()
|
---|
1814 | {
|
---|
1815 | if (sizeof (($2)))
|
---|
1816 | return 0;
|
---|
1817 | ;
|
---|
1818 | return 0;
|
---|
1819 | }
|
---|
1820 | _ACEOF
|
---|
1821 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1822 |
|
---|
1823 | else
|
---|
1824 | eval "$3=yes"
|
---|
1825 | fi
|
---|
1826 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1827 | fi
|
---|
1828 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1829 | fi
|
---|
1830 | eval ac_res=\$$3
|
---|
1831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1832 | $as_echo "$ac_res" >&6; }
|
---|
1833 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
1834 |
|
---|
1835 | } # ac_fn_c_check_type
|
---|
1836 |
|
---|
1837 | # ac_fn_c_check_func LINENO FUNC VAR
|
---|
1838 | # ----------------------------------
|
---|
1839 | # Tests whether FUNC exists, setting the cache variable VAR accordingly
|
---|
1840 | ac_fn_c_check_func ()
|
---|
1841 | {
|
---|
1842 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1844 | $as_echo_n "checking for $2... " >&6; }
|
---|
1845 | if eval "test \"\${$3+set}\"" = set; then :
|
---|
1846 | $as_echo_n "(cached) " >&6
|
---|
1847 | else
|
---|
1848 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1849 | /* end confdefs.h. */
|
---|
1850 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
|
---|
1851 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
1852 | #define $2 innocuous_$2
|
---|
1853 |
|
---|
1854 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
1855 | which can conflict with char $2 (); below.
|
---|
1856 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
1857 | <limits.h> exists even on freestanding compilers. */
|
---|
1858 |
|
---|
1859 | #ifdef __STDC__
|
---|
1860 | # include <limits.h>
|
---|
1861 | #else
|
---|
1862 | # include <assert.h>
|
---|
1863 | #endif
|
---|
1864 |
|
---|
1865 | #undef $2
|
---|
1866 |
|
---|
1867 | /* Override any GCC internal prototype to avoid an error.
|
---|
1868 | Use char because int might match the return type of a GCC
|
---|
1869 | builtin and then its argument prototype would still apply. */
|
---|
1870 | #ifdef __cplusplus
|
---|
1871 | extern "C"
|
---|
1872 | #endif
|
---|
1873 | char $2 ();
|
---|
1874 | /* The GNU C library defines this for functions which it implements
|
---|
1875 | to always fail with ENOSYS. Some functions are actually named
|
---|
1876 | something starting with __ and the normal name is an alias. */
|
---|
1877 | #if defined __stub_$2 || defined __stub___$2
|
---|
1878 | choke me
|
---|
1879 | #endif
|
---|
1880 |
|
---|
1881 | int
|
---|
1882 | main ()
|
---|
1883 | {
|
---|
1884 | return $2 ();
|
---|
1885 | ;
|
---|
1886 | return 0;
|
---|
1887 | }
|
---|
1888 | _ACEOF
|
---|
1889 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
1890 | eval "$3=yes"
|
---|
1891 | else
|
---|
1892 | eval "$3=no"
|
---|
1893 | fi
|
---|
1894 | rm -f core conftest.err conftest.$ac_objext \
|
---|
1895 | conftest$ac_exeext conftest.$ac_ext
|
---|
1896 | fi
|
---|
1897 | eval ac_res=\$$3
|
---|
1898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1899 | $as_echo "$ac_res" >&6; }
|
---|
1900 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
1901 |
|
---|
1902 | } # ac_fn_c_check_func
|
---|
1903 |
|
---|
1904 | # ac_fn_cxx_try_run LINENO
|
---|
1905 | # ------------------------
|
---|
1906 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
|
---|
1907 | # that executables *can* be run.
|
---|
1908 | ac_fn_cxx_try_run ()
|
---|
1909 | {
|
---|
1910 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1911 | if { { ac_try="$ac_link"
|
---|
1912 | case "(($ac_try" in
|
---|
1913 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1914 | *) ac_try_echo=$ac_try;;
|
---|
1915 | esac
|
---|
1916 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1917 | $as_echo "$ac_try_echo"; } >&5
|
---|
1918 | (eval "$ac_link") 2>&5
|
---|
1919 | ac_status=$?
|
---|
1920 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1921 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
|
---|
1922 | { { case "(($ac_try" in
|
---|
1923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1924 | *) ac_try_echo=$ac_try;;
|
---|
1925 | esac
|
---|
1926 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1927 | $as_echo "$ac_try_echo"; } >&5
|
---|
1928 | (eval "$ac_try") 2>&5
|
---|
1929 | ac_status=$?
|
---|
1930 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1931 | test $ac_status = 0; }; }; then :
|
---|
1932 | ac_retval=0
|
---|
1933 | else
|
---|
1934 | $as_echo "$as_me: program exited with status $ac_status" >&5
|
---|
1935 | $as_echo "$as_me: failed program was:" >&5
|
---|
1936 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1937 |
|
---|
1938 | ac_retval=$ac_status
|
---|
1939 | fi
|
---|
1940 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
---|
1941 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
1942 | as_fn_set_status $ac_retval
|
---|
1943 |
|
---|
1944 | } # ac_fn_cxx_try_run
|
---|
1945 | cat >config.log <<_ACEOF
|
---|
1946 | This file contains any messages produced by compilers while
|
---|
1947 | running configure, to aid debugging if configure makes a mistake.
|
---|
1948 |
|
---|
1949 | It was created by $as_me, which was
|
---|
1950 | generated by GNU Autoconf 2.67. Invocation command line was
|
---|
1951 |
|
---|
1952 | $ $0 $@
|
---|
1953 |
|
---|
1954 | _ACEOF
|
---|
1955 | exec 5>>config.log
|
---|
1956 | {
|
---|
1957 | cat <<_ASUNAME
|
---|
1958 | ## --------- ##
|
---|
1959 | ## Platform. ##
|
---|
1960 | ## --------- ##
|
---|
1961 |
|
---|
1962 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
1963 | uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
---|
1964 | uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
---|
1965 | uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
---|
1966 | uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
---|
1967 |
|
---|
1968 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
---|
1969 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
---|
1970 |
|
---|
1971 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
---|
1972 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
---|
1973 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
---|
1974 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
|
---|
1975 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
---|
1976 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
---|
1977 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
---|
1978 |
|
---|
1979 | _ASUNAME
|
---|
1980 |
|
---|
1981 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1982 | for as_dir in $PATH
|
---|
1983 | do
|
---|
1984 | IFS=$as_save_IFS
|
---|
1985 | test -z "$as_dir" && as_dir=.
|
---|
1986 | $as_echo "PATH: $as_dir"
|
---|
1987 | done
|
---|
1988 | IFS=$as_save_IFS
|
---|
1989 |
|
---|
1990 | } >&5
|
---|
1991 |
|
---|
1992 | cat >&5 <<_ACEOF
|
---|
1993 |
|
---|
1994 |
|
---|
1995 | ## ----------- ##
|
---|
1996 | ## Core tests. ##
|
---|
1997 | ## ----------- ##
|
---|
1998 |
|
---|
1999 | _ACEOF
|
---|
2000 |
|
---|
2001 |
|
---|
2002 | # Keep a trace of the command line.
|
---|
2003 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
2004 | # Strip out --silent because we don't want to record it for future runs.
|
---|
2005 | # Also quote any args containing shell meta-characters.
|
---|
2006 | # Make two passes to allow for proper duplicate-argument suppression.
|
---|
2007 | ac_configure_args=
|
---|
2008 | ac_configure_args0=
|
---|
2009 | ac_configure_args1=
|
---|
2010 | ac_must_keep_next=false
|
---|
2011 | for ac_pass in 1 2
|
---|
2012 | do
|
---|
2013 | for ac_arg
|
---|
2014 | do
|
---|
2015 | case $ac_arg in
|
---|
2016 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
---|
2017 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
2018 | | -silent | --silent | --silen | --sile | --sil)
|
---|
2019 | continue ;;
|
---|
2020 | *\'*)
|
---|
2021 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
2022 | esac
|
---|
2023 | case $ac_pass in
|
---|
2024 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
|
---|
2025 | 2)
|
---|
2026 | as_fn_append ac_configure_args1 " '$ac_arg'"
|
---|
2027 | if test $ac_must_keep_next = true; then
|
---|
2028 | ac_must_keep_next=false # Got value, back to normal.
|
---|
2029 | else
|
---|
2030 | case $ac_arg in
|
---|
2031 | *=* | --config-cache | -C | -disable-* | --disable-* \
|
---|
2032 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
---|
2033 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
---|
2034 | | -with-* | --with-* | -without-* | --without-* | --x)
|
---|
2035 | case "$ac_configure_args0 " in
|
---|
2036 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
---|
2037 | esac
|
---|
2038 | ;;
|
---|
2039 | -* ) ac_must_keep_next=true ;;
|
---|
2040 | esac
|
---|
2041 | fi
|
---|
2042 | as_fn_append ac_configure_args " '$ac_arg'"
|
---|
2043 | ;;
|
---|
2044 | esac
|
---|
2045 | done
|
---|
2046 | done
|
---|
2047 | { ac_configure_args0=; unset ac_configure_args0;}
|
---|
2048 | { ac_configure_args1=; unset ac_configure_args1;}
|
---|
2049 |
|
---|
2050 | # When interrupted or exit'd, cleanup temporary files, and complete
|
---|
2051 | # config.log. We remove comments because anyway the quotes in there
|
---|
2052 | # would cause problems or look ugly.
|
---|
2053 | # WARNING: Use '\'' to represent an apostrophe within the trap.
|
---|
2054 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
|
---|
2055 | trap 'exit_status=$?
|
---|
2056 | # Save into config.log some information that might help in debugging.
|
---|
2057 | {
|
---|
2058 | echo
|
---|
2059 |
|
---|
2060 | $as_echo "## ---------------- ##
|
---|
2061 | ## Cache variables. ##
|
---|
2062 | ## ---------------- ##"
|
---|
2063 | echo
|
---|
2064 | # The following way of writing the cache mishandles newlines in values,
|
---|
2065 | (
|
---|
2066 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
|
---|
2067 | eval ac_val=\$$ac_var
|
---|
2068 | case $ac_val in #(
|
---|
2069 | *${as_nl}*)
|
---|
2070 | case $ac_var in #(
|
---|
2071 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
---|
2072 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
---|
2073 | esac
|
---|
2074 | case $ac_var in #(
|
---|
2075 | _ | IFS | as_nl) ;; #(
|
---|
2076 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
|
---|
2077 | *) { eval $ac_var=; unset $ac_var;} ;;
|
---|
2078 | esac ;;
|
---|
2079 | esac
|
---|
2080 | done
|
---|
2081 | (set) 2>&1 |
|
---|
2082 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
|
---|
2083 | *${as_nl}ac_space=\ *)
|
---|
2084 | sed -n \
|
---|
2085 | "s/'\''/'\''\\\\'\'''\''/g;
|
---|
2086 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
|
---|
2087 | ;; #(
|
---|
2088 | *)
|
---|
2089 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
---|
2090 | ;;
|
---|
2091 | esac |
|
---|
2092 | sort
|
---|
2093 | )
|
---|
2094 | echo
|
---|
2095 |
|
---|
2096 | $as_echo "## ----------------- ##
|
---|
2097 | ## Output variables. ##
|
---|
2098 | ## ----------------- ##"
|
---|
2099 | echo
|
---|
2100 | for ac_var in $ac_subst_vars
|
---|
2101 | do
|
---|
2102 | eval ac_val=\$$ac_var
|
---|
2103 | case $ac_val in
|
---|
2104 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
---|
2105 | esac
|
---|
2106 | $as_echo "$ac_var='\''$ac_val'\''"
|
---|
2107 | done | sort
|
---|
2108 | echo
|
---|
2109 |
|
---|
2110 | if test -n "$ac_subst_files"; then
|
---|
2111 | $as_echo "## ------------------- ##
|
---|
2112 | ## File substitutions. ##
|
---|
2113 | ## ------------------- ##"
|
---|
2114 | echo
|
---|
2115 | for ac_var in $ac_subst_files
|
---|
2116 | do
|
---|
2117 | eval ac_val=\$$ac_var
|
---|
2118 | case $ac_val in
|
---|
2119 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
---|
2120 | esac
|
---|
2121 | $as_echo "$ac_var='\''$ac_val'\''"
|
---|
2122 | done | sort
|
---|
2123 | echo
|
---|
2124 | fi
|
---|
2125 |
|
---|
2126 | if test -s confdefs.h; then
|
---|
2127 | $as_echo "## ----------- ##
|
---|
2128 | ## confdefs.h. ##
|
---|
2129 | ## ----------- ##"
|
---|
2130 | echo
|
---|
2131 | cat confdefs.h
|
---|
2132 | echo
|
---|
2133 | fi
|
---|
2134 | test "$ac_signal" != 0 &&
|
---|
2135 | $as_echo "$as_me: caught signal $ac_signal"
|
---|
2136 | $as_echo "$as_me: exit $exit_status"
|
---|
2137 | } >&5
|
---|
2138 | rm -f core *.core core.conftest.* &&
|
---|
2139 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
|
---|
2140 | exit $exit_status
|
---|
2141 | ' 0
|
---|
2142 | for ac_signal in 1 2 13 15; do
|
---|
2143 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
|
---|
2144 | done
|
---|
2145 | ac_signal=0
|
---|
2146 |
|
---|
2147 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
2148 | rm -f -r conftest* confdefs.h
|
---|
2149 |
|
---|
2150 | $as_echo "/* confdefs.h */" > confdefs.h
|
---|
2151 |
|
---|
2152 | # Predefined preprocessor variables.
|
---|
2153 |
|
---|
2154 | cat >>confdefs.h <<_ACEOF
|
---|
2155 | #define PACKAGE_NAME "$PACKAGE_NAME"
|
---|
2156 | _ACEOF
|
---|
2157 |
|
---|
2158 | cat >>confdefs.h <<_ACEOF
|
---|
2159 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
---|
2160 | _ACEOF
|
---|
2161 |
|
---|
2162 | cat >>confdefs.h <<_ACEOF
|
---|
2163 | #define PACKAGE_VERSION "$PACKAGE_VERSION"
|
---|
2164 | _ACEOF
|
---|
2165 |
|
---|
2166 | cat >>confdefs.h <<_ACEOF
|
---|
2167 | #define PACKAGE_STRING "$PACKAGE_STRING"
|
---|
2168 | _ACEOF
|
---|
2169 |
|
---|
2170 | cat >>confdefs.h <<_ACEOF
|
---|
2171 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
---|
2172 | _ACEOF
|
---|
2173 |
|
---|
2174 | cat >>confdefs.h <<_ACEOF
|
---|
2175 | #define PACKAGE_URL "$PACKAGE_URL"
|
---|
2176 | _ACEOF
|
---|
2177 |
|
---|
2178 |
|
---|
2179 | # Let the site file select an alternate cache file if it wants to.
|
---|
2180 | # Prefer an explicitly selected file to automatically selected ones.
|
---|
2181 | ac_site_file1=NONE
|
---|
2182 | ac_site_file2=NONE
|
---|
2183 | if test -n "$CONFIG_SITE"; then
|
---|
2184 | # We do not want a PATH search for config.site.
|
---|
2185 | case $CONFIG_SITE in #((
|
---|
2186 | -*) ac_site_file1=./$CONFIG_SITE;;
|
---|
2187 | */*) ac_site_file1=$CONFIG_SITE;;
|
---|
2188 | *) ac_site_file1=./$CONFIG_SITE;;
|
---|
2189 | esac
|
---|
2190 | elif test "x$prefix" != xNONE; then
|
---|
2191 | ac_site_file1=$prefix/share/config.site
|
---|
2192 | ac_site_file2=$prefix/etc/config.site
|
---|
2193 | else
|
---|
2194 | ac_site_file1=$ac_default_prefix/share/config.site
|
---|
2195 | ac_site_file2=$ac_default_prefix/etc/config.site
|
---|
2196 | fi
|
---|
2197 | for ac_site_file in "$ac_site_file1" "$ac_site_file2"
|
---|
2198 | do
|
---|
2199 | test "x$ac_site_file" = xNONE && continue
|
---|
2200 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
|
---|
2201 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
|
---|
2202 | $as_echo "$as_me: loading site script $ac_site_file" >&6;}
|
---|
2203 | sed 's/^/| /' "$ac_site_file" >&5
|
---|
2204 | . "$ac_site_file" \
|
---|
2205 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2206 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2207 | as_fn_error $? "failed to load site script $ac_site_file
|
---|
2208 | See \`config.log' for more details" "$LINENO" 5 ; }
|
---|
2209 | fi
|
---|
2210 | done
|
---|
2211 |
|
---|
2212 | if test -r "$cache_file"; then
|
---|
2213 | # Some versions of bash will fail to source /dev/null (special files
|
---|
2214 | # actually), so we avoid doing that. DJGPP emulates it as a regular file.
|
---|
2215 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then
|
---|
2216 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
|
---|
2217 | $as_echo "$as_me: loading cache $cache_file" >&6;}
|
---|
2218 | case $cache_file in
|
---|
2219 | [\\/]* | ?:[\\/]* ) . "$cache_file";;
|
---|
2220 | *) . "./$cache_file";;
|
---|
2221 | esac
|
---|
2222 | fi
|
---|
2223 | else
|
---|
2224 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
|
---|
2225 | $as_echo "$as_me: creating cache $cache_file" >&6;}
|
---|
2226 | >$cache_file
|
---|
2227 | fi
|
---|
2228 |
|
---|
2229 | # Check that the precious variables saved in the cache have kept the same
|
---|
2230 | # value.
|
---|
2231 | ac_cache_corrupted=false
|
---|
2232 | for ac_var in $ac_precious_vars; do
|
---|
2233 | eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
---|
2234 | eval ac_new_set=\$ac_env_${ac_var}_set
|
---|
2235 | eval ac_old_val=\$ac_cv_env_${ac_var}_value
|
---|
2236 | eval ac_new_val=\$ac_env_${ac_var}_value
|
---|
2237 | case $ac_old_set,$ac_new_set in
|
---|
2238 | set,)
|
---|
2239 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
---|
2240 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
---|
2241 | ac_cache_corrupted=: ;;
|
---|
2242 | ,set)
|
---|
2243 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
|
---|
2244 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
---|
2245 | ac_cache_corrupted=: ;;
|
---|
2246 | ,);;
|
---|
2247 | *)
|
---|
2248 | if test "x$ac_old_val" != "x$ac_new_val"; then
|
---|
2249 | # differences in whitespace do not lead to failure.
|
---|
2250 | ac_old_val_w=`echo x $ac_old_val`
|
---|
2251 | ac_new_val_w=`echo x $ac_new_val`
|
---|
2252 | if test "$ac_old_val_w" != "$ac_new_val_w"; then
|
---|
2253 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
|
---|
2254 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
---|
2255 | ac_cache_corrupted=:
|
---|
2256 | else
|
---|
2257 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
|
---|
2258 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
|
---|
2259 | eval $ac_var=\$ac_old_val
|
---|
2260 | fi
|
---|
2261 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
|
---|
2262 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
|
---|
2263 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
|
---|
2264 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
|
---|
2265 | fi;;
|
---|
2266 | esac
|
---|
2267 | # Pass precious variables to config.status.
|
---|
2268 | if test "$ac_new_set" = set; then
|
---|
2269 | case $ac_new_val in
|
---|
2270 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
2271 | *) ac_arg=$ac_var=$ac_new_val ;;
|
---|
2272 | esac
|
---|
2273 | case " $ac_configure_args " in
|
---|
2274 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
---|
2275 | *) as_fn_append ac_configure_args " '$ac_arg'" ;;
|
---|
2276 | esac
|
---|
2277 | fi
|
---|
2278 | done
|
---|
2279 | if $ac_cache_corrupted; then
|
---|
2280 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2281 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2282 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
|
---|
2283 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
---|
2284 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
|
---|
2285 | fi
|
---|
2286 | ## -------------------- ##
|
---|
2287 | ## Main body of script. ##
|
---|
2288 | ## -------------------- ##
|
---|
2289 |
|
---|
2290 | ac_ext=c
|
---|
2291 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2292 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2293 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2294 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
2295 |
|
---|
2296 |
|
---|
2297 | ac_config_headers="$ac_config_headers config.h"
|
---|
2298 |
|
---|
2299 |
|
---|
2300 | PACKAGE=gsdl
|
---|
2301 | VERSION=2.x-svn
|
---|
2302 | cat >>confdefs.h <<_ACEOF
|
---|
2303 | #define PACKAGE "$PACKAGE"
|
---|
2304 | _ACEOF
|
---|
2305 |
|
---|
2306 | cat >>confdefs.h <<_ACEOF
|
---|
2307 | #define VERSION "$VERSION"
|
---|
2308 | _ACEOF
|
---|
2309 |
|
---|
2310 |
|
---|
2311 |
|
---|
2312 |
|
---|
2313 |
|
---|
2314 | USE_FASTCGI=0
|
---|
2315 | if test USE_FASTCGI = 1; then
|
---|
2316 | $as_echo "#define USE_FASTCGI 1" >>confdefs.h
|
---|
2317 |
|
---|
2318 |
|
---|
2319 | fi
|
---|
2320 |
|
---|
2321 | if test USE_LANGACTION = 1; then
|
---|
2322 | $as_echo "#define USE_LANGACTION 1" >>confdefs.h
|
---|
2323 |
|
---|
2324 |
|
---|
2325 | fi
|
---|
2326 |
|
---|
2327 | # Check whether --enable-corba was given.
|
---|
2328 | if test "${enable_corba+set}" = set; then :
|
---|
2329 | enableval=$enable_corba; USE_CORBA=$enableval
|
---|
2330 | else
|
---|
2331 | USE_CORBA=no
|
---|
2332 | fi
|
---|
2333 |
|
---|
2334 | if test $USE_CORBA = "yes" -o $USE_CORBA = "1" ; then
|
---|
2335 | USE_CORBA=1
|
---|
2336 | $as_echo "#define USE_CORBA /**/" >>confdefs.h
|
---|
2337 |
|
---|
2338 | else
|
---|
2339 | USE_CORBA=0
|
---|
2340 | fi
|
---|
2341 |
|
---|
2342 |
|
---|
2343 |
|
---|
2344 | # Check whether --with-micodir was given.
|
---|
2345 | if test "${with_micodir+set}" = set; then :
|
---|
2346 | withval=$with_micodir; MICO_DIR=$withval
|
---|
2347 | else
|
---|
2348 | MICO_DIR="default"
|
---|
2349 | fi
|
---|
2350 |
|
---|
2351 | cat >>confdefs.h <<_ACEOF
|
---|
2352 | #define MICO_DIR "$MICO_DIR"
|
---|
2353 | _ACEOF
|
---|
2354 |
|
---|
2355 |
|
---|
2356 |
|
---|
2357 | # Check whether --enable-java was given.
|
---|
2358 | if test "${enable_java+set}" = set; then :
|
---|
2359 | enableval=$enable_java; ENABLE_JAVA=$enableval
|
---|
2360 | else
|
---|
2361 | ENABLE_JAVA=yes
|
---|
2362 | fi
|
---|
2363 |
|
---|
2364 | if test $ENABLE_JAVA = "yes" -o $ENABLE_JAVA = "1" ; then
|
---|
2365 | ENABLE_JAVA=1
|
---|
2366 | if test "x$JAVA_HOME" != "x" ; then
|
---|
2367 | echo "Detected JAVA_HOME is set, however this will not be used during compilation"
|
---|
2368 | echo "To control the version of 'javac' and 'java' set environment variables JAVAC"
|
---|
2369 | echo "and JAVA respectively"
|
---|
2370 | export JAVA_HOME=
|
---|
2371 | fi
|
---|
2372 | else
|
---|
2373 | ENABLE_JAVA=0
|
---|
2374 | fi
|
---|
2375 |
|
---|
2376 |
|
---|
2377 | # Check whether --enable-z3950 was given.
|
---|
2378 | if test "${enable_z3950+set}" = set; then :
|
---|
2379 | enableval=$enable_z3950; USE_Z3950=$enableval
|
---|
2380 | else
|
---|
2381 | USE_Z3950=no
|
---|
2382 | fi
|
---|
2383 |
|
---|
2384 | if test $USE_Z3950 = "yes" -o $USE_Z3950 = "1" ; then
|
---|
2385 | USE_Z3950=1
|
---|
2386 | $as_echo "#define USE_Z3950 /**/" >>confdefs.h
|
---|
2387 |
|
---|
2388 | else
|
---|
2389 | USE_Z3950=0
|
---|
2390 | fi
|
---|
2391 |
|
---|
2392 |
|
---|
2393 | # Check whether --enable-yaz was given.
|
---|
2394 | if test "${enable_yaz+set}" = set; then :
|
---|
2395 | enableval=$enable_yaz; USE_YAZ=$enableval
|
---|
2396 | else
|
---|
2397 | USE_YAZ=yes
|
---|
2398 | fi
|
---|
2399 |
|
---|
2400 | if test $USE_YAZ = "yes" -o $USE_YAZ = "1" ; then
|
---|
2401 | USE_YAZ=1
|
---|
2402 | $as_echo "#define USE_YAZ /**/" >>confdefs.h
|
---|
2403 |
|
---|
2404 | else
|
---|
2405 | USE_YAZ=0
|
---|
2406 | fi
|
---|
2407 |
|
---|
2408 |
|
---|
2409 | # Check whether --enable-jdbm was given.
|
---|
2410 | if test "${enable_jdbm+set}" = set; then :
|
---|
2411 | enableval=$enable_jdbm; USE_JDBM=$enableval
|
---|
2412 | else
|
---|
2413 | USE_JDBM=yes
|
---|
2414 | fi
|
---|
2415 |
|
---|
2416 | if test $ENABLE_JAVA = "1" -a \( $USE_JDBM = "yes" -o $USE_JDBM = "1" \) ; then
|
---|
2417 | USE_JDBM=1
|
---|
2418 | $as_echo "#define USE_JDBM /**/" >>confdefs.h
|
---|
2419 |
|
---|
2420 | else
|
---|
2421 | USE_JDBM=0
|
---|
2422 | fi
|
---|
2423 |
|
---|
2424 |
|
---|
2425 | # Check whether --enable-gdbm was given.
|
---|
2426 | if test "${enable_gdbm+set}" = set; then :
|
---|
2427 | enableval=$enable_gdbm; USE_GDBM=$enableval
|
---|
2428 | else
|
---|
2429 | USE_GDBM=yes
|
---|
2430 | fi
|
---|
2431 |
|
---|
2432 | if test $USE_GDBM = "yes" -o $USE_GDBM = "1" ; then
|
---|
2433 | USE_GDBM=1
|
---|
2434 | $as_echo "#define USE_GDBM /**/" >>confdefs.h
|
---|
2435 |
|
---|
2436 | else
|
---|
2437 | USE_GDBM=0
|
---|
2438 | fi
|
---|
2439 |
|
---|
2440 |
|
---|
2441 | # Check whether --enable-accentfold was given.
|
---|
2442 | if test "${enable_accentfold+set}" = set; then :
|
---|
2443 | enableval=$enable_accentfold; ENABLE_ACCENTFOLD=$enableval
|
---|
2444 | else
|
---|
2445 | ENABLE_ACCENTFOLD=yes
|
---|
2446 | fi
|
---|
2447 |
|
---|
2448 | if test $ENABLE_ACCENTFOLD = "yes" -o $ENABLE_ACCENTFOLD = "1" ; then
|
---|
2449 | ENABLE_ACCENTFOLD=1
|
---|
2450 | $as_echo "#define ENABLE_ACCENTFOLD /**/" >>confdefs.h
|
---|
2451 |
|
---|
2452 | else
|
---|
2453 | ENABLE_ACCENTFOLD=0
|
---|
2454 | fi
|
---|
2455 |
|
---|
2456 |
|
---|
2457 | # Check whether --enable-sqlite was given.
|
---|
2458 | if test "${enable_sqlite+set}" = set; then :
|
---|
2459 | enableval=$enable_sqlite; USE_SQLITE=$enableval
|
---|
2460 | else
|
---|
2461 | USE_SQLITE=yes
|
---|
2462 | fi
|
---|
2463 |
|
---|
2464 | if test $USE_SQLITE = "yes" -o $USE_SQLITE = "1" ; then
|
---|
2465 | USE_SQLITE=1
|
---|
2466 | $as_echo "#define USE_SQLITE /**/" >>confdefs.h
|
---|
2467 |
|
---|
2468 | else
|
---|
2469 | USE_SQLITE=0
|
---|
2470 | fi
|
---|
2471 |
|
---|
2472 |
|
---|
2473 | if test -d runtime-src; then
|
---|
2474 | # Check whether --enable-apache-httpd was given.
|
---|
2475 | if test "${enable_apache_httpd+set}" = set; then :
|
---|
2476 | enableval=$enable_apache_httpd; USE_APACHE_HTTPD=$enableval
|
---|
2477 | else
|
---|
2478 | USE_APACHE_HTTPD=no
|
---|
2479 | fi
|
---|
2480 |
|
---|
2481 | if test $USE_APACHE_HTTPD = "yes" -o $USE_APACHE_HTTPD = "1" ; then
|
---|
2482 | USE_APACHE_HTTPD=1
|
---|
2483 | $as_echo "#define USE_APACHE_HTTPD /**/" >>confdefs.h
|
---|
2484 |
|
---|
2485 | else
|
---|
2486 | USE_APACHE_HTTPD=0
|
---|
2487 | fi
|
---|
2488 |
|
---|
2489 | fi
|
---|
2490 |
|
---|
2491 | # Check whether --enable-jni was given.
|
---|
2492 | if test "${enable_jni+set}" = set; then :
|
---|
2493 | enableval=$enable_jni; ENABLE_JNI=$enableval
|
---|
2494 | else
|
---|
2495 | ENABLE_JNI=no
|
---|
2496 | fi
|
---|
2497 |
|
---|
2498 | if test $ENABLE_JAVA = "1" -a \( $ENABLE_JNI = "yes" -o $ENABLE_JNI = "1" \) ; then
|
---|
2499 | ENABLE_JNI=1
|
---|
2500 | $as_echo "#define ENABLE_JNI /**/" >>confdefs.h
|
---|
2501 |
|
---|
2502 | else
|
---|
2503 | ENABLE_JNI=0
|
---|
2504 | fi
|
---|
2505 |
|
---|
2506 |
|
---|
2507 | # Check whether --enable-mg was given.
|
---|
2508 | if test "${enable_mg+set}" = set; then :
|
---|
2509 | enableval=$enable_mg; ENABLE_MG=$enableval
|
---|
2510 | else
|
---|
2511 | ENABLE_MG=yes
|
---|
2512 | fi
|
---|
2513 |
|
---|
2514 | if test $ENABLE_MG = "yes" -o $ENABLE_MG = "1" ; then
|
---|
2515 | ENABLE_MG=1
|
---|
2516 | $as_echo "#define ENABLE_MG /**/" >>confdefs.h
|
---|
2517 |
|
---|
2518 | else
|
---|
2519 | ENABLE_MG=0
|
---|
2520 | fi
|
---|
2521 |
|
---|
2522 |
|
---|
2523 |
|
---|
2524 | # Check whether --enable-mgpp was given.
|
---|
2525 | if test "${enable_mgpp+set}" = set; then :
|
---|
2526 | enableval=$enable_mgpp; ENABLE_MGPP=$enableval
|
---|
2527 | else
|
---|
2528 | ENABLE_MGPP=yes
|
---|
2529 | fi
|
---|
2530 |
|
---|
2531 | if test $ENABLE_MGPP = "yes" -o $ENABLE_MGPP = "1" ; then
|
---|
2532 | ENABLE_MGPP=1
|
---|
2533 | $as_echo "#define ENABLE_MGPP /**/" >>confdefs.h
|
---|
2534 |
|
---|
2535 | else
|
---|
2536 | ENABLE_MGPP=0
|
---|
2537 | fi
|
---|
2538 |
|
---|
2539 |
|
---|
2540 | # Check whether --enable-lucene was given.
|
---|
2541 | if test "${enable_lucene+set}" = set; then :
|
---|
2542 | enableval=$enable_lucene; ENABLE_LUCENE=$enableval
|
---|
2543 | else
|
---|
2544 | ENABLE_LUCENE=yes
|
---|
2545 | fi
|
---|
2546 |
|
---|
2547 | if test $ENABLE_JAVA = "1" -a \( $ENABLE_LUCENE = "yes" -o $ENABLE_LUCENE = "1" \) ; then
|
---|
2548 | ENABLE_LUCENE=1
|
---|
2549 | $as_echo "#define ENABLE_LUCENE /**/" >>confdefs.h
|
---|
2550 |
|
---|
2551 | else
|
---|
2552 | ENABLE_LUCENE=0
|
---|
2553 | fi
|
---|
2554 |
|
---|
2555 |
|
---|
2556 |
|
---|
2557 | LDFLAGS=$LDFLAGS
|
---|
2558 |
|
---|
2559 | if test -z "$CFLAGS"; then
|
---|
2560 | CFLAGS=-O2
|
---|
2561 | fi
|
---|
2562 |
|
---|
2563 |
|
---|
2564 |
|
---|
2565 | ac_ext=c
|
---|
2566 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2567 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2568 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2569 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
2570 | if test -n "$ac_tool_prefix"; then
|
---|
2571 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
---|
2572 | set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
---|
2573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2574 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2575 | if test "${ac_cv_prog_CC+set}" = set; then :
|
---|
2576 | $as_echo_n "(cached) " >&6
|
---|
2577 | else
|
---|
2578 | if test -n "$CC"; then
|
---|
2579 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2580 | else
|
---|
2581 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2582 | for as_dir in $PATH
|
---|
2583 | do
|
---|
2584 | IFS=$as_save_IFS
|
---|
2585 | test -z "$as_dir" && as_dir=.
|
---|
2586 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2587 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
2588 | ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
---|
2589 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2590 | break 2
|
---|
2591 | fi
|
---|
2592 | done
|
---|
2593 | done
|
---|
2594 | IFS=$as_save_IFS
|
---|
2595 |
|
---|
2596 | fi
|
---|
2597 | fi
|
---|
2598 | CC=$ac_cv_prog_CC
|
---|
2599 | if test -n "$CC"; then
|
---|
2600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
2601 | $as_echo "$CC" >&6; }
|
---|
2602 | else
|
---|
2603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2604 | $as_echo "no" >&6; }
|
---|
2605 | fi
|
---|
2606 |
|
---|
2607 |
|
---|
2608 | fi
|
---|
2609 | if test -z "$ac_cv_prog_CC"; then
|
---|
2610 | ac_ct_CC=$CC
|
---|
2611 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
2612 | set dummy gcc; ac_word=$2
|
---|
2613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2614 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2615 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
|
---|
2616 | $as_echo_n "(cached) " >&6
|
---|
2617 | else
|
---|
2618 | if test -n "$ac_ct_CC"; then
|
---|
2619 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
2620 | else
|
---|
2621 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2622 | for as_dir in $PATH
|
---|
2623 | do
|
---|
2624 | IFS=$as_save_IFS
|
---|
2625 | test -z "$as_dir" && as_dir=.
|
---|
2626 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2627 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
2628 | ac_cv_prog_ac_ct_CC="gcc"
|
---|
2629 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2630 | break 2
|
---|
2631 | fi
|
---|
2632 | done
|
---|
2633 | done
|
---|
2634 | IFS=$as_save_IFS
|
---|
2635 |
|
---|
2636 | fi
|
---|
2637 | fi
|
---|
2638 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
2639 | if test -n "$ac_ct_CC"; then
|
---|
2640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
---|
2641 | $as_echo "$ac_ct_CC" >&6; }
|
---|
2642 | else
|
---|
2643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2644 | $as_echo "no" >&6; }
|
---|
2645 | fi
|
---|
2646 |
|
---|
2647 | if test "x$ac_ct_CC" = x; then
|
---|
2648 | CC=""
|
---|
2649 | else
|
---|
2650 | case $cross_compiling:$ac_tool_warned in
|
---|
2651 | yes:)
|
---|
2652 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
2653 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
2654 | ac_tool_warned=yes ;;
|
---|
2655 | esac
|
---|
2656 | CC=$ac_ct_CC
|
---|
2657 | fi
|
---|
2658 | else
|
---|
2659 | CC="$ac_cv_prog_CC"
|
---|
2660 | fi
|
---|
2661 |
|
---|
2662 | if test -z "$CC"; then
|
---|
2663 | if test -n "$ac_tool_prefix"; then
|
---|
2664 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
---|
2665 | set dummy ${ac_tool_prefix}cc; ac_word=$2
|
---|
2666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2667 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2668 | if test "${ac_cv_prog_CC+set}" = set; then :
|
---|
2669 | $as_echo_n "(cached) " >&6
|
---|
2670 | else
|
---|
2671 | if test -n "$CC"; then
|
---|
2672 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2673 | else
|
---|
2674 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2675 | for as_dir in $PATH
|
---|
2676 | do
|
---|
2677 | IFS=$as_save_IFS
|
---|
2678 | test -z "$as_dir" && as_dir=.
|
---|
2679 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2680 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
2681 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
---|
2682 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2683 | break 2
|
---|
2684 | fi
|
---|
2685 | done
|
---|
2686 | done
|
---|
2687 | IFS=$as_save_IFS
|
---|
2688 |
|
---|
2689 | fi
|
---|
2690 | fi
|
---|
2691 | CC=$ac_cv_prog_CC
|
---|
2692 | if test -n "$CC"; then
|
---|
2693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
2694 | $as_echo "$CC" >&6; }
|
---|
2695 | else
|
---|
2696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2697 | $as_echo "no" >&6; }
|
---|
2698 | fi
|
---|
2699 |
|
---|
2700 |
|
---|
2701 | fi
|
---|
2702 | fi
|
---|
2703 | if test -z "$CC"; then
|
---|
2704 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
2705 | set dummy cc; ac_word=$2
|
---|
2706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2707 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2708 | if test "${ac_cv_prog_CC+set}" = set; then :
|
---|
2709 | $as_echo_n "(cached) " >&6
|
---|
2710 | else
|
---|
2711 | if test -n "$CC"; then
|
---|
2712 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2713 | else
|
---|
2714 | ac_prog_rejected=no
|
---|
2715 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2716 | for as_dir in $PATH
|
---|
2717 | do
|
---|
2718 | IFS=$as_save_IFS
|
---|
2719 | test -z "$as_dir" && as_dir=.
|
---|
2720 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2721 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
2722 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
---|
2723 | ac_prog_rejected=yes
|
---|
2724 | continue
|
---|
2725 | fi
|
---|
2726 | ac_cv_prog_CC="cc"
|
---|
2727 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2728 | break 2
|
---|
2729 | fi
|
---|
2730 | done
|
---|
2731 | done
|
---|
2732 | IFS=$as_save_IFS
|
---|
2733 |
|
---|
2734 | if test $ac_prog_rejected = yes; then
|
---|
2735 | # We found a bogon in the path, so make sure we never use it.
|
---|
2736 | set dummy $ac_cv_prog_CC
|
---|
2737 | shift
|
---|
2738 | if test $# != 0; then
|
---|
2739 | # We chose a different compiler from the bogus one.
|
---|
2740 | # However, it has the same basename, so the bogon will be chosen
|
---|
2741 | # first if we set CC to just the basename; use the full file name.
|
---|
2742 | shift
|
---|
2743 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
---|
2744 | fi
|
---|
2745 | fi
|
---|
2746 | fi
|
---|
2747 | fi
|
---|
2748 | CC=$ac_cv_prog_CC
|
---|
2749 | if test -n "$CC"; then
|
---|
2750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
2751 | $as_echo "$CC" >&6; }
|
---|
2752 | else
|
---|
2753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2754 | $as_echo "no" >&6; }
|
---|
2755 | fi
|
---|
2756 |
|
---|
2757 |
|
---|
2758 | fi
|
---|
2759 | if test -z "$CC"; then
|
---|
2760 | if test -n "$ac_tool_prefix"; then
|
---|
2761 | for ac_prog in cl.exe
|
---|
2762 | do
|
---|
2763 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
2764 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
2765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2766 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2767 | if test "${ac_cv_prog_CC+set}" = set; then :
|
---|
2768 | $as_echo_n "(cached) " >&6
|
---|
2769 | else
|
---|
2770 | if test -n "$CC"; then
|
---|
2771 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2772 | else
|
---|
2773 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2774 | for as_dir in $PATH
|
---|
2775 | do
|
---|
2776 | IFS=$as_save_IFS
|
---|
2777 | test -z "$as_dir" && as_dir=.
|
---|
2778 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2779 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
2780 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
---|
2781 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2782 | break 2
|
---|
2783 | fi
|
---|
2784 | done
|
---|
2785 | done
|
---|
2786 | IFS=$as_save_IFS
|
---|
2787 |
|
---|
2788 | fi
|
---|
2789 | fi
|
---|
2790 | CC=$ac_cv_prog_CC
|
---|
2791 | if test -n "$CC"; then
|
---|
2792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
2793 | $as_echo "$CC" >&6; }
|
---|
2794 | else
|
---|
2795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2796 | $as_echo "no" >&6; }
|
---|
2797 | fi
|
---|
2798 |
|
---|
2799 |
|
---|
2800 | test -n "$CC" && break
|
---|
2801 | done
|
---|
2802 | fi
|
---|
2803 | if test -z "$CC"; then
|
---|
2804 | ac_ct_CC=$CC
|
---|
2805 | for ac_prog in cl.exe
|
---|
2806 | do
|
---|
2807 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
2808 | set dummy $ac_prog; ac_word=$2
|
---|
2809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2810 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2811 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
|
---|
2812 | $as_echo_n "(cached) " >&6
|
---|
2813 | else
|
---|
2814 | if test -n "$ac_ct_CC"; then
|
---|
2815 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
2816 | else
|
---|
2817 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2818 | for as_dir in $PATH
|
---|
2819 | do
|
---|
2820 | IFS=$as_save_IFS
|
---|
2821 | test -z "$as_dir" && as_dir=.
|
---|
2822 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2823 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
2824 | ac_cv_prog_ac_ct_CC="$ac_prog"
|
---|
2825 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2826 | break 2
|
---|
2827 | fi
|
---|
2828 | done
|
---|
2829 | done
|
---|
2830 | IFS=$as_save_IFS
|
---|
2831 |
|
---|
2832 | fi
|
---|
2833 | fi
|
---|
2834 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
2835 | if test -n "$ac_ct_CC"; then
|
---|
2836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
---|
2837 | $as_echo "$ac_ct_CC" >&6; }
|
---|
2838 | else
|
---|
2839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2840 | $as_echo "no" >&6; }
|
---|
2841 | fi
|
---|
2842 |
|
---|
2843 |
|
---|
2844 | test -n "$ac_ct_CC" && break
|
---|
2845 | done
|
---|
2846 |
|
---|
2847 | if test "x$ac_ct_CC" = x; then
|
---|
2848 | CC=""
|
---|
2849 | else
|
---|
2850 | case $cross_compiling:$ac_tool_warned in
|
---|
2851 | yes:)
|
---|
2852 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
2853 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
2854 | ac_tool_warned=yes ;;
|
---|
2855 | esac
|
---|
2856 | CC=$ac_ct_CC
|
---|
2857 | fi
|
---|
2858 | fi
|
---|
2859 |
|
---|
2860 | fi
|
---|
2861 |
|
---|
2862 |
|
---|
2863 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2864 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2865 | as_fn_error $? "no acceptable C compiler found in \$PATH
|
---|
2866 | See \`config.log' for more details" "$LINENO" 5 ; }
|
---|
2867 |
|
---|
2868 | # Provide some information about the compiler.
|
---|
2869 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
|
---|
2870 | set X $ac_compile
|
---|
2871 | ac_compiler=$2
|
---|
2872 | for ac_option in --version -v -V -qversion; do
|
---|
2873 | { { ac_try="$ac_compiler $ac_option >&5"
|
---|
2874 | case "(($ac_try" in
|
---|
2875 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2876 | *) ac_try_echo=$ac_try;;
|
---|
2877 | esac
|
---|
2878 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
2879 | $as_echo "$ac_try_echo"; } >&5
|
---|
2880 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err
|
---|
2881 | ac_status=$?
|
---|
2882 | if test -s conftest.err; then
|
---|
2883 | sed '10a\
|
---|
2884 | ... rest of stderr output deleted ...
|
---|
2885 | 10q' conftest.err >conftest.er1
|
---|
2886 | cat conftest.er1 >&5
|
---|
2887 | fi
|
---|
2888 | rm -f conftest.er1 conftest.err
|
---|
2889 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
2890 | test $ac_status = 0; }
|
---|
2891 | done
|
---|
2892 |
|
---|
2893 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
2894 | /* end confdefs.h. */
|
---|
2895 |
|
---|
2896 | int
|
---|
2897 | main ()
|
---|
2898 | {
|
---|
2899 |
|
---|
2900 | ;
|
---|
2901 | return 0;
|
---|
2902 | }
|
---|
2903 | _ACEOF
|
---|
2904 | ac_clean_files_save=$ac_clean_files
|
---|
2905 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
|
---|
2906 | # Try to create an executable without -o first, disregard a.out.
|
---|
2907 | # It will help us diagnose broken compilers, and finding out an intuition
|
---|
2908 | # of exeext.
|
---|
2909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
|
---|
2910 | $as_echo_n "checking whether the C compiler works... " >&6; }
|
---|
2911 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
---|
2912 |
|
---|
2913 | # The possible output files:
|
---|
2914 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
|
---|
2915 |
|
---|
2916 | ac_rmfiles=
|
---|
2917 | for ac_file in $ac_files
|
---|
2918 | do
|
---|
2919 | case $ac_file in
|
---|
2920 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
---|
2921 | * ) ac_rmfiles="$ac_rmfiles $ac_file";;
|
---|
2922 | esac
|
---|
2923 | done
|
---|
2924 | rm -f $ac_rmfiles
|
---|
2925 |
|
---|
2926 | if { { ac_try="$ac_link_default"
|
---|
2927 | case "(($ac_try" in
|
---|
2928 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2929 | *) ac_try_echo=$ac_try;;
|
---|
2930 | esac
|
---|
2931 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
2932 | $as_echo "$ac_try_echo"; } >&5
|
---|
2933 | (eval "$ac_link_default") 2>&5
|
---|
2934 | ac_status=$?
|
---|
2935 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
2936 | test $ac_status = 0; }; then :
|
---|
2937 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
|
---|
2938 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
|
---|
2939 | # in a Makefile. We should not override ac_cv_exeext if it was cached,
|
---|
2940 | # so that the user can short-circuit this test for compilers unknown to
|
---|
2941 | # Autoconf.
|
---|
2942 | for ac_file in $ac_files ''
|
---|
2943 | do
|
---|
2944 | test -f "$ac_file" || continue
|
---|
2945 | case $ac_file in
|
---|
2946 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
|
---|
2947 | ;;
|
---|
2948 | [ab].out )
|
---|
2949 | # We found the default executable, but exeext='' is most
|
---|
2950 | # certainly right.
|
---|
2951 | break;;
|
---|
2952 | *.* )
|
---|
2953 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
|
---|
2954 | then :; else
|
---|
2955 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
2956 | fi
|
---|
2957 | # We set ac_cv_exeext here because the later test for it is not
|
---|
2958 | # safe: cross compilers may not add the suffix if given an `-o'
|
---|
2959 | # argument, so we may need to know it at that point already.
|
---|
2960 | # Even if this section looks crufty: it has the advantage of
|
---|
2961 | # actually working.
|
---|
2962 | break;;
|
---|
2963 | * )
|
---|
2964 | break;;
|
---|
2965 | esac
|
---|
2966 | done
|
---|
2967 | test "$ac_cv_exeext" = no && ac_cv_exeext=
|
---|
2968 |
|
---|
2969 | else
|
---|
2970 | ac_file=''
|
---|
2971 | fi
|
---|
2972 | if test -z "$ac_file"; then :
|
---|
2973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2974 | $as_echo "no" >&6; }
|
---|
2975 | $as_echo "$as_me: failed program was:" >&5
|
---|
2976 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2977 |
|
---|
2978 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2979 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2980 | as_fn_error 77 "C compiler cannot create executables
|
---|
2981 | See \`config.log' for more details" "$LINENO" 5 ; }
|
---|
2982 | else
|
---|
2983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
2984 | $as_echo "yes" >&6; }
|
---|
2985 | fi
|
---|
2986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
|
---|
2987 | $as_echo_n "checking for C compiler default output file name... " >&6; }
|
---|
2988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
|
---|
2989 | $as_echo "$ac_file" >&6; }
|
---|
2990 | ac_exeext=$ac_cv_exeext
|
---|
2991 |
|
---|
2992 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
|
---|
2993 | ac_clean_files=$ac_clean_files_save
|
---|
2994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
|
---|
2995 | $as_echo_n "checking for suffix of executables... " >&6; }
|
---|
2996 | if { { ac_try="$ac_link"
|
---|
2997 | case "(($ac_try" in
|
---|
2998 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2999 | *) ac_try_echo=$ac_try;;
|
---|
3000 | esac
|
---|
3001 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
3002 | $as_echo "$ac_try_echo"; } >&5
|
---|
3003 | (eval "$ac_link") 2>&5
|
---|
3004 | ac_status=$?
|
---|
3005 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
3006 | test $ac_status = 0; }; then :
|
---|
3007 | # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
---|
3008 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
---|
3009 | # work properly (i.e., refer to `conftest.exe'), while it won't with
|
---|
3010 | # `rm'.
|
---|
3011 | for ac_file in conftest.exe conftest conftest.*; do
|
---|
3012 | test -f "$ac_file" || continue
|
---|
3013 | case $ac_file in
|
---|
3014 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
---|
3015 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
3016 | break;;
|
---|
3017 | * ) break;;
|
---|
3018 | esac
|
---|
3019 | done
|
---|
3020 | else
|
---|
3021 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
3022 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
3023 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link
|
---|
3024 | See \`config.log' for more details" "$LINENO" 5 ; }
|
---|
3025 | fi
|
---|
3026 | rm -f conftest conftest$ac_cv_exeext
|
---|
3027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
|
---|
3028 | $as_echo "$ac_cv_exeext" >&6; }
|
---|
3029 |
|
---|
3030 | rm -f conftest.$ac_ext
|
---|
3031 | EXEEXT=$ac_cv_exeext
|
---|
3032 | ac_exeext=$EXEEXT
|
---|
3033 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3034 | /* end confdefs.h. */
|
---|
3035 | #include <stdio.h>
|
---|
3036 | int
|
---|
3037 | main ()
|
---|
3038 | {
|
---|
3039 | FILE *f = fopen ("conftest.out", "w");
|
---|
3040 | return ferror (f) || fclose (f) != 0;
|
---|
3041 |
|
---|
3042 | ;
|
---|
3043 | return 0;
|
---|
3044 | }
|
---|
3045 | _ACEOF
|
---|
3046 | ac_clean_files="$ac_clean_files conftest.out"
|
---|
3047 | # Check that the compiler produces executables we can run. If not, either
|
---|
3048 | # the compiler is broken, or we cross compile.
|
---|
3049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
|
---|
3050 | $as_echo_n "checking whether we are cross compiling... " >&6; }
|
---|
3051 | if test "$cross_compiling" != yes; then
|
---|
3052 | { { ac_try="$ac_link"
|
---|
3053 | case "(($ac_try" in
|
---|
3054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3055 | *) ac_try_echo=$ac_try;;
|
---|
3056 | esac
|
---|
3057 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
3058 | $as_echo "$ac_try_echo"; } >&5
|
---|
3059 | (eval "$ac_link") 2>&5
|
---|
3060 | ac_status=$?
|
---|
3061 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
3062 | test $ac_status = 0; }
|
---|
3063 | if { ac_try='./conftest$ac_cv_exeext'
|
---|
3064 | { { case "(($ac_try" in
|
---|
3065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3066 | *) ac_try_echo=$ac_try;;
|
---|
3067 | esac
|
---|
3068 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
3069 | $as_echo "$ac_try_echo"; } >&5
|
---|
3070 | (eval "$ac_try") 2>&5
|
---|
3071 | ac_status=$?
|
---|
3072 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
3073 | test $ac_status = 0; }; }; then
|
---|
3074 | cross_compiling=no
|
---|
3075 | else
|
---|
3076 | if test "$cross_compiling" = maybe; then
|
---|
3077 | cross_compiling=yes
|
---|
3078 | else
|
---|
3079 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
3080 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
3081 | as_fn_error $? "cannot run C compiled programs.
|
---|
3082 | If you meant to cross compile, use \`--host'.
|
---|
3083 | See \`config.log' for more details" "$LINENO" 5 ; }
|
---|
3084 | fi
|
---|
3085 | fi
|
---|
3086 | fi
|
---|
3087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
|
---|
3088 | $as_echo "$cross_compiling" >&6; }
|
---|
3089 |
|
---|
3090 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
|
---|
3091 | ac_clean_files=$ac_clean_files_save
|
---|
3092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
|
---|
3093 | $as_echo_n "checking for suffix of object files... " >&6; }
|
---|
3094 | if test "${ac_cv_objext+set}" = set; then :
|
---|
3095 | $as_echo_n "(cached) " >&6
|
---|
3096 | else
|
---|
3097 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3098 | /* end confdefs.h. */
|
---|
3099 |
|
---|
3100 | int
|
---|
3101 | main ()
|
---|
3102 | {
|
---|
3103 |
|
---|
3104 | ;
|
---|
3105 | return 0;
|
---|
3106 | }
|
---|
3107 | _ACEOF
|
---|
3108 | rm -f conftest.o conftest.obj
|
---|
3109 | if { { ac_try="$ac_compile"
|
---|
3110 | case "(($ac_try" in
|
---|
3111 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3112 | *) ac_try_echo=$ac_try;;
|
---|
3113 | esac
|
---|
3114 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
3115 | $as_echo "$ac_try_echo"; } >&5
|
---|
3116 | (eval "$ac_compile") 2>&5
|
---|
3117 | ac_status=$?
|
---|
3118 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
3119 | test $ac_status = 0; }; then :
|
---|
3120 | for ac_file in conftest.o conftest.obj conftest.*; do
|
---|
3121 | test -f "$ac_file" || continue;
|
---|
3122 | case $ac_file in
|
---|
3123 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
|
---|
3124 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
---|
3125 | break;;
|
---|
3126 | esac
|
---|
3127 | done
|
---|
3128 | else
|
---|
3129 | $as_echo "$as_me: failed program was:" >&5
|
---|
3130 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3131 |
|
---|
3132 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
3133 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
3134 | as_fn_error $? "cannot compute suffix of object files: cannot compile
|
---|
3135 | See \`config.log' for more details" "$LINENO" 5 ; }
|
---|
3136 | fi
|
---|
3137 | rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
---|
3138 | fi
|
---|
3139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
|
---|
3140 | $as_echo "$ac_cv_objext" >&6; }
|
---|
3141 | OBJEXT=$ac_cv_objext
|
---|
3142 | ac_objext=$OBJEXT
|
---|
3143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
|
---|
3144 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
|
---|
3145 | if test "${ac_cv_c_compiler_gnu+set}" = set; then :
|
---|
3146 | $as_echo_n "(cached) " >&6
|
---|
3147 | else
|
---|
3148 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3149 | /* end confdefs.h. */
|
---|
3150 |
|
---|
3151 | int
|
---|
3152 | main ()
|
---|
3153 | {
|
---|
3154 | #ifndef __GNUC__
|
---|
3155 | choke me
|
---|
3156 | #endif
|
---|
3157 |
|
---|
3158 | ;
|
---|
3159 | return 0;
|
---|
3160 | }
|
---|
3161 | _ACEOF
|
---|
3162 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3163 | ac_compiler_gnu=yes
|
---|
3164 | else
|
---|
3165 | ac_compiler_gnu=no
|
---|
3166 | fi
|
---|
3167 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3168 | ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
---|
3169 |
|
---|
3170 | fi
|
---|
3171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
|
---|
3172 | $as_echo "$ac_cv_c_compiler_gnu" >&6; }
|
---|
3173 | if test $ac_compiler_gnu = yes; then
|
---|
3174 | GCC=yes
|
---|
3175 | else
|
---|
3176 | GCC=
|
---|
3177 | fi
|
---|
3178 | ac_test_CFLAGS=${CFLAGS+set}
|
---|
3179 | ac_save_CFLAGS=$CFLAGS
|
---|
3180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
|
---|
3181 | $as_echo_n "checking whether $CC accepts -g... " >&6; }
|
---|
3182 | if test "${ac_cv_prog_cc_g+set}" = set; then :
|
---|
3183 | $as_echo_n "(cached) " >&6
|
---|
3184 | else
|
---|
3185 | ac_save_c_werror_flag=$ac_c_werror_flag
|
---|
3186 | ac_c_werror_flag=yes
|
---|
3187 | ac_cv_prog_cc_g=no
|
---|
3188 | CFLAGS="-g"
|
---|
3189 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3190 | /* end confdefs.h. */
|
---|
3191 |
|
---|
3192 | int
|
---|
3193 | main ()
|
---|
3194 | {
|
---|
3195 |
|
---|
3196 | ;
|
---|
3197 | return 0;
|
---|
3198 | }
|
---|
3199 | _ACEOF
|
---|
3200 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3201 | ac_cv_prog_cc_g=yes
|
---|
3202 | else
|
---|
3203 | CFLAGS=""
|
---|
3204 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3205 | /* end confdefs.h. */
|
---|
3206 |
|
---|
3207 | int
|
---|
3208 | main ()
|
---|
3209 | {
|
---|
3210 |
|
---|
3211 | ;
|
---|
3212 | return 0;
|
---|
3213 | }
|
---|
3214 | _ACEOF
|
---|
3215 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3216 |
|
---|
3217 | else
|
---|
3218 | ac_c_werror_flag=$ac_save_c_werror_flag
|
---|
3219 | CFLAGS="-g"
|
---|
3220 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3221 | /* end confdefs.h. */
|
---|
3222 |
|
---|
3223 | int
|
---|
3224 | main ()
|
---|
3225 | {
|
---|
3226 |
|
---|
3227 | ;
|
---|
3228 | return 0;
|
---|
3229 | }
|
---|
3230 | _ACEOF
|
---|
3231 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3232 | ac_cv_prog_cc_g=yes
|
---|
3233 | fi
|
---|
3234 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3235 | fi
|
---|
3236 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3237 | fi
|
---|
3238 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3239 | ac_c_werror_flag=$ac_save_c_werror_flag
|
---|
3240 | fi
|
---|
3241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
|
---|
3242 | $as_echo "$ac_cv_prog_cc_g" >&6; }
|
---|
3243 | if test "$ac_test_CFLAGS" = set; then
|
---|
3244 | CFLAGS=$ac_save_CFLAGS
|
---|
3245 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
3246 | if test "$GCC" = yes; then
|
---|
3247 | CFLAGS="-g -O2"
|
---|
3248 | else
|
---|
3249 | CFLAGS="-g"
|
---|
3250 | fi
|
---|
3251 | else
|
---|
3252 | if test "$GCC" = yes; then
|
---|
3253 | CFLAGS="-O2"
|
---|
3254 | else
|
---|
3255 | CFLAGS=
|
---|
3256 | fi
|
---|
3257 | fi
|
---|
3258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
|
---|
3259 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
|
---|
3260 | if test "${ac_cv_prog_cc_c89+set}" = set; then :
|
---|
3261 | $as_echo_n "(cached) " >&6
|
---|
3262 | else
|
---|
3263 | ac_cv_prog_cc_c89=no
|
---|
3264 | ac_save_CC=$CC
|
---|
3265 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3266 | /* end confdefs.h. */
|
---|
3267 | #include <stdarg.h>
|
---|
3268 | #include <stdio.h>
|
---|
3269 | #include <sys/types.h>
|
---|
3270 | #include <sys/stat.h>
|
---|
3271 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
---|
3272 | struct buf { int x; };
|
---|
3273 | FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
---|
3274 | static char *e (p, i)
|
---|
3275 | char **p;
|
---|
3276 | int i;
|
---|
3277 | {
|
---|
3278 | return p[i];
|
---|
3279 | }
|
---|
3280 | static char *f (char * (*g) (char **, int), char **p, ...)
|
---|
3281 | {
|
---|
3282 | char *s;
|
---|
3283 | va_list v;
|
---|
3284 | va_start (v,p);
|
---|
3285 | s = g (p, va_arg (v,int));
|
---|
3286 | va_end (v);
|
---|
3287 | return s;
|
---|
3288 | }
|
---|
3289 |
|
---|
3290 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
---|
3291 | function prototypes and stuff, but not '\xHH' hex character constants.
|
---|
3292 | These don't provoke an error unfortunately, instead are silently treated
|
---|
3293 | as 'x'. The following induces an error, until -std is added to get
|
---|
3294 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
---|
3295 | array size at least. It's necessary to write '\x00'==0 to get something
|
---|
3296 | that's true only with -std. */
|
---|
3297 | int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
---|
3298 |
|
---|
3299 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|
---|
3300 | inside strings and character constants. */
|
---|
3301 | #define FOO(x) 'x'
|
---|
3302 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
---|
3303 |
|
---|
3304 | int test (int i, double x);
|
---|
3305 | struct s1 {int (*f) (int a);};
|
---|
3306 | struct s2 {int (*f) (double a);};
|
---|
3307 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
---|
3308 | int argc;
|
---|
3309 | char **argv;
|
---|
3310 | int
|
---|
3311 | main ()
|
---|
3312 | {
|
---|
3313 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
---|
3314 | ;
|
---|
3315 | return 0;
|
---|
3316 | }
|
---|
3317 | _ACEOF
|
---|
3318 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
|
---|
3319 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
---|
3320 | do
|
---|
3321 | CC="$ac_save_CC $ac_arg"
|
---|
3322 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3323 | ac_cv_prog_cc_c89=$ac_arg
|
---|
3324 | fi
|
---|
3325 | rm -f core conftest.err conftest.$ac_objext
|
---|
3326 | test "x$ac_cv_prog_cc_c89" != "xno" && break
|
---|
3327 | done
|
---|
3328 | rm -f conftest.$ac_ext
|
---|
3329 | CC=$ac_save_CC
|
---|
3330 |
|
---|
3331 | fi
|
---|
3332 | # AC_CACHE_VAL
|
---|
3333 | case "x$ac_cv_prog_cc_c89" in
|
---|
3334 | x)
|
---|
3335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
|
---|
3336 | $as_echo "none needed" >&6; } ;;
|
---|
3337 | xno)
|
---|
3338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
|
---|
3339 | $as_echo "unsupported" >&6; } ;;
|
---|
3340 | *)
|
---|
3341 | CC="$CC $ac_cv_prog_cc_c89"
|
---|
3342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
|
---|
3343 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
|
---|
3344 | esac
|
---|
3345 | if test "x$ac_cv_prog_cc_c89" != xno; then :
|
---|
3346 |
|
---|
3347 | fi
|
---|
3348 |
|
---|
3349 | ac_ext=c
|
---|
3350 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3351 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3352 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3353 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3354 |
|
---|
3355 | ac_ext=cpp
|
---|
3356 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
3357 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3358 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3359 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
3360 | if test -z "$CXX"; then
|
---|
3361 | if test -n "$CCC"; then
|
---|
3362 | CXX=$CCC
|
---|
3363 | else
|
---|
3364 | if test -n "$ac_tool_prefix"; then
|
---|
3365 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
|
---|
3366 | do
|
---|
3367 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
3368 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
3369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3370 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3371 | if test "${ac_cv_prog_CXX+set}" = set; then :
|
---|
3372 | $as_echo_n "(cached) " >&6
|
---|
3373 | else
|
---|
3374 | if test -n "$CXX"; then
|
---|
3375 | ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
---|
3376 | else
|
---|
3377 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3378 | for as_dir in $PATH
|
---|
3379 | do
|
---|
3380 | IFS=$as_save_IFS
|
---|
3381 | test -z "$as_dir" && as_dir=.
|
---|
3382 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3383 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
3384 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
|
---|
3385 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3386 | break 2
|
---|
3387 | fi
|
---|
3388 | done
|
---|
3389 | done
|
---|
3390 | IFS=$as_save_IFS
|
---|
3391 |
|
---|
3392 | fi
|
---|
3393 | fi
|
---|
3394 | CXX=$ac_cv_prog_CXX
|
---|
3395 | if test -n "$CXX"; then
|
---|
3396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
|
---|
3397 | $as_echo "$CXX" >&6; }
|
---|
3398 | else
|
---|
3399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3400 | $as_echo "no" >&6; }
|
---|
3401 | fi
|
---|
3402 |
|
---|
3403 |
|
---|
3404 | test -n "$CXX" && break
|
---|
3405 | done
|
---|
3406 | fi
|
---|
3407 | if test -z "$CXX"; then
|
---|
3408 | ac_ct_CXX=$CXX
|
---|
3409 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
|
---|
3410 | do
|
---|
3411 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
3412 | set dummy $ac_prog; ac_word=$2
|
---|
3413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3414 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3415 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
|
---|
3416 | $as_echo_n "(cached) " >&6
|
---|
3417 | else
|
---|
3418 | if test -n "$ac_ct_CXX"; then
|
---|
3419 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
|
---|
3420 | else
|
---|
3421 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3422 | for as_dir in $PATH
|
---|
3423 | do
|
---|
3424 | IFS=$as_save_IFS
|
---|
3425 | test -z "$as_dir" && as_dir=.
|
---|
3426 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3427 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
3428 | ac_cv_prog_ac_ct_CXX="$ac_prog"
|
---|
3429 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3430 | break 2
|
---|
3431 | fi
|
---|
3432 | done
|
---|
3433 | done
|
---|
3434 | IFS=$as_save_IFS
|
---|
3435 |
|
---|
3436 | fi
|
---|
3437 | fi
|
---|
3438 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
|
---|
3439 | if test -n "$ac_ct_CXX"; then
|
---|
3440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
|
---|
3441 | $as_echo "$ac_ct_CXX" >&6; }
|
---|
3442 | else
|
---|
3443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3444 | $as_echo "no" >&6; }
|
---|
3445 | fi
|
---|
3446 |
|
---|
3447 |
|
---|
3448 | test -n "$ac_ct_CXX" && break
|
---|
3449 | done
|
---|
3450 |
|
---|
3451 | if test "x$ac_ct_CXX" = x; then
|
---|
3452 | CXX="g++"
|
---|
3453 | else
|
---|
3454 | case $cross_compiling:$ac_tool_warned in
|
---|
3455 | yes:)
|
---|
3456 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
3457 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
3458 | ac_tool_warned=yes ;;
|
---|
3459 | esac
|
---|
3460 | CXX=$ac_ct_CXX
|
---|
3461 | fi
|
---|
3462 | fi
|
---|
3463 |
|
---|
3464 | fi
|
---|
3465 | fi
|
---|
3466 | # Provide some information about the compiler.
|
---|
3467 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
|
---|
3468 | set X $ac_compile
|
---|
3469 | ac_compiler=$2
|
---|
3470 | for ac_option in --version -v -V -qversion; do
|
---|
3471 | { { ac_try="$ac_compiler $ac_option >&5"
|
---|
3472 | case "(($ac_try" in
|
---|
3473 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3474 | *) ac_try_echo=$ac_try;;
|
---|
3475 | esac
|
---|
3476 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
3477 | $as_echo "$ac_try_echo"; } >&5
|
---|
3478 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err
|
---|
3479 | ac_status=$?
|
---|
3480 | if test -s conftest.err; then
|
---|
3481 | sed '10a\
|
---|
3482 | ... rest of stderr output deleted ...
|
---|
3483 | 10q' conftest.err >conftest.er1
|
---|
3484 | cat conftest.er1 >&5
|
---|
3485 | fi
|
---|
3486 | rm -f conftest.er1 conftest.err
|
---|
3487 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
3488 | test $ac_status = 0; }
|
---|
3489 | done
|
---|
3490 |
|
---|
3491 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
|
---|
3492 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
|
---|
3493 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
|
---|
3494 | $as_echo_n "(cached) " >&6
|
---|
3495 | else
|
---|
3496 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3497 | /* end confdefs.h. */
|
---|
3498 |
|
---|
3499 | int
|
---|
3500 | main ()
|
---|
3501 | {
|
---|
3502 | #ifndef __GNUC__
|
---|
3503 | choke me
|
---|
3504 | #endif
|
---|
3505 |
|
---|
3506 | ;
|
---|
3507 | return 0;
|
---|
3508 | }
|
---|
3509 | _ACEOF
|
---|
3510 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
3511 | ac_compiler_gnu=yes
|
---|
3512 | else
|
---|
3513 | ac_compiler_gnu=no
|
---|
3514 | fi
|
---|
3515 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3516 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
|
---|
3517 |
|
---|
3518 | fi
|
---|
3519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
|
---|
3520 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
|
---|
3521 | if test $ac_compiler_gnu = yes; then
|
---|
3522 | GXX=yes
|
---|
3523 | else
|
---|
3524 | GXX=
|
---|
3525 | fi
|
---|
3526 | ac_test_CXXFLAGS=${CXXFLAGS+set}
|
---|
3527 | ac_save_CXXFLAGS=$CXXFLAGS
|
---|
3528 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
|
---|
3529 | $as_echo_n "checking whether $CXX accepts -g... " >&6; }
|
---|
3530 | if test "${ac_cv_prog_cxx_g+set}" = set; then :
|
---|
3531 | $as_echo_n "(cached) " >&6
|
---|
3532 | else
|
---|
3533 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag
|
---|
3534 | ac_cxx_werror_flag=yes
|
---|
3535 | ac_cv_prog_cxx_g=no
|
---|
3536 | CXXFLAGS="-g"
|
---|
3537 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3538 | /* end confdefs.h. */
|
---|
3539 |
|
---|
3540 | int
|
---|
3541 | main ()
|
---|
3542 | {
|
---|
3543 |
|
---|
3544 | ;
|
---|
3545 | return 0;
|
---|
3546 | }
|
---|
3547 | _ACEOF
|
---|
3548 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
3549 | ac_cv_prog_cxx_g=yes
|
---|
3550 | else
|
---|
3551 | CXXFLAGS=""
|
---|
3552 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3553 | /* end confdefs.h. */
|
---|
3554 |
|
---|
3555 | int
|
---|
3556 | main ()
|
---|
3557 | {
|
---|
3558 |
|
---|
3559 | ;
|
---|
3560 | return 0;
|
---|
3561 | }
|
---|
3562 | _ACEOF
|
---|
3563 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
3564 |
|
---|
3565 | else
|
---|
3566 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag
|
---|
3567 | CXXFLAGS="-g"
|
---|
3568 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3569 | /* end confdefs.h. */
|
---|
3570 |
|
---|
3571 | int
|
---|
3572 | main ()
|
---|
3573 | {
|
---|
3574 |
|
---|
3575 | ;
|
---|
3576 | return 0;
|
---|
3577 | }
|
---|
3578 | _ACEOF
|
---|
3579 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
3580 | ac_cv_prog_cxx_g=yes
|
---|
3581 | fi
|
---|
3582 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3583 | fi
|
---|
3584 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3585 | fi
|
---|
3586 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3587 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag
|
---|
3588 | fi
|
---|
3589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
|
---|
3590 | $as_echo "$ac_cv_prog_cxx_g" >&6; }
|
---|
3591 | if test "$ac_test_CXXFLAGS" = set; then
|
---|
3592 | CXXFLAGS=$ac_save_CXXFLAGS
|
---|
3593 | elif test $ac_cv_prog_cxx_g = yes; then
|
---|
3594 | if test "$GXX" = yes; then
|
---|
3595 | CXXFLAGS="-g -O2"
|
---|
3596 | else
|
---|
3597 | CXXFLAGS="-g"
|
---|
3598 | fi
|
---|
3599 | else
|
---|
3600 | if test "$GXX" = yes; then
|
---|
3601 | CXXFLAGS="-O2"
|
---|
3602 | else
|
---|
3603 | CXXFLAGS=
|
---|
3604 | fi
|
---|
3605 | fi
|
---|
3606 | ac_ext=c
|
---|
3607 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3608 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3609 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3610 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3611 |
|
---|
3612 | for ac_prog in gawk mawk nawk awk
|
---|
3613 | do
|
---|
3614 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
3615 | set dummy $ac_prog; ac_word=$2
|
---|
3616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3617 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3618 | if test "${ac_cv_prog_AWK+set}" = set; then :
|
---|
3619 | $as_echo_n "(cached) " >&6
|
---|
3620 | else
|
---|
3621 | if test -n "$AWK"; then
|
---|
3622 | ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
---|
3623 | else
|
---|
3624 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3625 | for as_dir in $PATH
|
---|
3626 | do
|
---|
3627 | IFS=$as_save_IFS
|
---|
3628 | test -z "$as_dir" && as_dir=.
|
---|
3629 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3630 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
3631 | ac_cv_prog_AWK="$ac_prog"
|
---|
3632 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3633 | break 2
|
---|
3634 | fi
|
---|
3635 | done
|
---|
3636 | done
|
---|
3637 | IFS=$as_save_IFS
|
---|
3638 |
|
---|
3639 | fi
|
---|
3640 | fi
|
---|
3641 | AWK=$ac_cv_prog_AWK
|
---|
3642 | if test -n "$AWK"; then
|
---|
3643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
|
---|
3644 | $as_echo "$AWK" >&6; }
|
---|
3645 | else
|
---|
3646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3647 | $as_echo "no" >&6; }
|
---|
3648 | fi
|
---|
3649 |
|
---|
3650 |
|
---|
3651 | test -n "$AWK" && break
|
---|
3652 | done
|
---|
3653 |
|
---|
3654 | for ac_prog in 'bison -y' byacc
|
---|
3655 | do
|
---|
3656 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
3657 | set dummy $ac_prog; ac_word=$2
|
---|
3658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3659 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3660 | if test "${ac_cv_prog_YACC+set}" = set; then :
|
---|
3661 | $as_echo_n "(cached) " >&6
|
---|
3662 | else
|
---|
3663 | if test -n "$YACC"; then
|
---|
3664 | ac_cv_prog_YACC="$YACC" # Let the user override the test.
|
---|
3665 | else
|
---|
3666 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3667 | for as_dir in $PATH
|
---|
3668 | do
|
---|
3669 | IFS=$as_save_IFS
|
---|
3670 | test -z "$as_dir" && as_dir=.
|
---|
3671 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3672 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
3673 | ac_cv_prog_YACC="$ac_prog"
|
---|
3674 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3675 | break 2
|
---|
3676 | fi
|
---|
3677 | done
|
---|
3678 | done
|
---|
3679 | IFS=$as_save_IFS
|
---|
3680 |
|
---|
3681 | fi
|
---|
3682 | fi
|
---|
3683 | YACC=$ac_cv_prog_YACC
|
---|
3684 | if test -n "$YACC"; then
|
---|
3685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
|
---|
3686 | $as_echo "$YACC" >&6; }
|
---|
3687 | else
|
---|
3688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3689 | $as_echo "no" >&6; }
|
---|
3690 | fi
|
---|
3691 |
|
---|
3692 |
|
---|
3693 | test -n "$YACC" && break
|
---|
3694 | done
|
---|
3695 | test -n "$YACC" || YACC="yacc"
|
---|
3696 |
|
---|
3697 | ac_aux_dir=
|
---|
3698 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
|
---|
3699 | if test -f "$ac_dir/install-sh"; then
|
---|
3700 | ac_aux_dir=$ac_dir
|
---|
3701 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
3702 | break
|
---|
3703 | elif test -f "$ac_dir/install.sh"; then
|
---|
3704 | ac_aux_dir=$ac_dir
|
---|
3705 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
3706 | break
|
---|
3707 | elif test -f "$ac_dir/shtool"; then
|
---|
3708 | ac_aux_dir=$ac_dir
|
---|
3709 | ac_install_sh="$ac_aux_dir/shtool install -c"
|
---|
3710 | break
|
---|
3711 | fi
|
---|
3712 | done
|
---|
3713 | if test -z "$ac_aux_dir"; then
|
---|
3714 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
|
---|
3715 | fi
|
---|
3716 |
|
---|
3717 | # These three variables are undocumented and unsupported,
|
---|
3718 | # and are intended to be withdrawn in a future Autoconf release.
|
---|
3719 | # They can cause serious problems if a builder's source tree is in a directory
|
---|
3720 | # whose full name contains unusual characters.
|
---|
3721 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
|
---|
3722 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
|
---|
3723 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
|
---|
3724 |
|
---|
3725 |
|
---|
3726 | # Make sure we can run config.sub.
|
---|
3727 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
|
---|
3728 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
|
---|
3729 |
|
---|
3730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
|
---|
3731 | $as_echo_n "checking build system type... " >&6; }
|
---|
3732 | if test "${ac_cv_build+set}" = set; then :
|
---|
3733 | $as_echo_n "(cached) " >&6
|
---|
3734 | else
|
---|
3735 | ac_build_alias=$build_alias
|
---|
3736 | test "x$ac_build_alias" = x &&
|
---|
3737 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
|
---|
3738 | test "x$ac_build_alias" = x &&
|
---|
3739 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
|
---|
3740 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
|
---|
3741 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
|
---|
3742 |
|
---|
3743 | fi
|
---|
3744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
|
---|
3745 | $as_echo "$ac_cv_build" >&6; }
|
---|
3746 | case $ac_cv_build in
|
---|
3747 | *-*-*) ;;
|
---|
3748 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
|
---|
3749 | esac
|
---|
3750 | build=$ac_cv_build
|
---|
3751 | ac_save_IFS=$IFS; IFS='-'
|
---|
3752 | set x $ac_cv_build
|
---|
3753 | shift
|
---|
3754 | build_cpu=$1
|
---|
3755 | build_vendor=$2
|
---|
3756 | shift; shift
|
---|
3757 | # Remember, the first character of IFS is used to create $*,
|
---|
3758 | # except with old shells:
|
---|
3759 | build_os=$*
|
---|
3760 | IFS=$ac_save_IFS
|
---|
3761 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
|
---|
3762 |
|
---|
3763 |
|
---|
3764 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
|
---|
3765 | $as_echo_n "checking host system type... " >&6; }
|
---|
3766 | if test "${ac_cv_host+set}" = set; then :
|
---|
3767 | $as_echo_n "(cached) " >&6
|
---|
3768 | else
|
---|
3769 | if test "x$host_alias" = x; then
|
---|
3770 | ac_cv_host=$ac_cv_build
|
---|
3771 | else
|
---|
3772 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
|
---|
3773 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
|
---|
3774 | fi
|
---|
3775 |
|
---|
3776 | fi
|
---|
3777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
|
---|
3778 | $as_echo "$ac_cv_host" >&6; }
|
---|
3779 | case $ac_cv_host in
|
---|
3780 | *-*-*) ;;
|
---|
3781 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
|
---|
3782 | esac
|
---|
3783 | host=$ac_cv_host
|
---|
3784 | ac_save_IFS=$IFS; IFS='-'
|
---|
3785 | set x $ac_cv_host
|
---|
3786 | shift
|
---|
3787 | host_cpu=$1
|
---|
3788 | host_vendor=$2
|
---|
3789 | shift; shift
|
---|
3790 | # Remember, the first character of IFS is used to create $*,
|
---|
3791 | # except with old shells:
|
---|
3792 | host_os=$*
|
---|
3793 | IFS=$ac_save_IFS
|
---|
3794 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
|
---|
3795 |
|
---|
3796 |
|
---|
3797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
|
---|
3798 | $as_echo_n "checking target system type... " >&6; }
|
---|
3799 | if test "${ac_cv_target+set}" = set; then :
|
---|
3800 | $as_echo_n "(cached) " >&6
|
---|
3801 | else
|
---|
3802 | if test "x$target_alias" = x; then
|
---|
3803 | ac_cv_target=$ac_cv_host
|
---|
3804 | else
|
---|
3805 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
|
---|
3806 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
|
---|
3807 | fi
|
---|
3808 |
|
---|
3809 | fi
|
---|
3810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
|
---|
3811 | $as_echo "$ac_cv_target" >&6; }
|
---|
3812 | case $ac_cv_target in
|
---|
3813 | *-*-*) ;;
|
---|
3814 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;;
|
---|
3815 | esac
|
---|
3816 | target=$ac_cv_target
|
---|
3817 | ac_save_IFS=$IFS; IFS='-'
|
---|
3818 | set x $ac_cv_target
|
---|
3819 | shift
|
---|
3820 | target_cpu=$1
|
---|
3821 | target_vendor=$2
|
---|
3822 | shift; shift
|
---|
3823 | # Remember, the first character of IFS is used to create $*,
|
---|
3824 | # except with old shells:
|
---|
3825 | target_os=$*
|
---|
3826 | IFS=$ac_save_IFS
|
---|
3827 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
|
---|
3828 |
|
---|
3829 |
|
---|
3830 | # The aliases save the names the user supplied, while $host etc.
|
---|
3831 | # will get canonicalized.
|
---|
3832 | test -n "$target_alias" &&
|
---|
3833 | test "$program_prefix$program_suffix$program_transform_name" = \
|
---|
3834 | NONENONEs,x,x, &&
|
---|
3835 | program_prefix=${target_alias}-
|
---|
3836 |
|
---|
3837 | # Find a good install program. We prefer a C program (faster),
|
---|
3838 | # so one script is as good as another. But avoid the broken or
|
---|
3839 | # incompatible versions:
|
---|
3840 | # SysV /etc/install, /usr/sbin/install
|
---|
3841 | # SunOS /usr/etc/install
|
---|
3842 | # IRIX /sbin/install
|
---|
3843 | # AIX /bin/install
|
---|
3844 | # AmigaOS /C/install, which installs bootblocks on floppy discs
|
---|
3845 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
3846 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
3847 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
3848 | # OS/2's system install, which has a completely different semantic
|
---|
3849 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
3850 | # Reject install programs that cannot install multiple files.
|
---|
3851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
|
---|
3852 | $as_echo_n "checking for a BSD-compatible install... " >&6; }
|
---|
3853 | if test -z "$INSTALL"; then
|
---|
3854 | if test "${ac_cv_path_install+set}" = set; then :
|
---|
3855 | $as_echo_n "(cached) " >&6
|
---|
3856 | else
|
---|
3857 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3858 | for as_dir in $PATH
|
---|
3859 | do
|
---|
3860 | IFS=$as_save_IFS
|
---|
3861 | test -z "$as_dir" && as_dir=.
|
---|
3862 | # Account for people who put trailing slashes in PATH elements.
|
---|
3863 | case $as_dir/ in #((
|
---|
3864 | ./ | .// | /[cC]/* | \
|
---|
3865 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
---|
3866 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
|
---|
3867 | /usr/ucb/* ) ;;
|
---|
3868 | *)
|
---|
3869 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
3870 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
3871 | # by default.
|
---|
3872 | for ac_prog in ginstall scoinst install; do
|
---|
3873 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3874 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
|
---|
3875 | if test $ac_prog = install &&
|
---|
3876 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
3877 | # AIX install. It has an incompatible calling convention.
|
---|
3878 | :
|
---|
3879 | elif test $ac_prog = install &&
|
---|
3880 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
3881 | # program-specific install script used by HP pwplus--don't use.
|
---|
3882 | :
|
---|
3883 | else
|
---|
3884 | rm -rf conftest.one conftest.two conftest.dir
|
---|
3885 | echo one > conftest.one
|
---|
3886 | echo two > conftest.two
|
---|
3887 | mkdir conftest.dir
|
---|
3888 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
|
---|
3889 | test -s conftest.one && test -s conftest.two &&
|
---|
3890 | test -s conftest.dir/conftest.one &&
|
---|
3891 | test -s conftest.dir/conftest.two
|
---|
3892 | then
|
---|
3893 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
---|
3894 | break 3
|
---|
3895 | fi
|
---|
3896 | fi
|
---|
3897 | fi
|
---|
3898 | done
|
---|
3899 | done
|
---|
3900 | ;;
|
---|
3901 | esac
|
---|
3902 |
|
---|
3903 | done
|
---|
3904 | IFS=$as_save_IFS
|
---|
3905 |
|
---|
3906 | rm -rf conftest.one conftest.two conftest.dir
|
---|
3907 |
|
---|
3908 | fi
|
---|
3909 | if test "${ac_cv_path_install+set}" = set; then
|
---|
3910 | INSTALL=$ac_cv_path_install
|
---|
3911 | else
|
---|
3912 | # As a last resort, use the slow shell script. Don't cache a
|
---|
3913 | # value for INSTALL within a source directory, because that will
|
---|
3914 | # break other packages using the cache if that directory is
|
---|
3915 | # removed, or if the value is a relative name.
|
---|
3916 | INSTALL=$ac_install_sh
|
---|
3917 | fi
|
---|
3918 | fi
|
---|
3919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
|
---|
3920 | $as_echo "$INSTALL" >&6; }
|
---|
3921 |
|
---|
3922 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
3923 | # It thinks the first close brace ends the variable substitution.
|
---|
3924 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
3925 |
|
---|
3926 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
---|
3927 |
|
---|
3928 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
3929 |
|
---|
3930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
|
---|
3931 | $as_echo_n "checking whether ln -s works... " >&6; }
|
---|
3932 | LN_S=$as_ln_s
|
---|
3933 | if test "$LN_S" = "ln -s"; then
|
---|
3934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
3935 | $as_echo "yes" >&6; }
|
---|
3936 | else
|
---|
3937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
|
---|
3938 | $as_echo "no, using $LN_S" >&6; }
|
---|
3939 | fi
|
---|
3940 |
|
---|
3941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
---|
3942 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
|
---|
3943 | set x ${MAKE-make}
|
---|
3944 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
|
---|
3945 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
|
---|
3946 | $as_echo_n "(cached) " >&6
|
---|
3947 | else
|
---|
3948 | cat >conftest.make <<\_ACEOF
|
---|
3949 | SHELL = /bin/sh
|
---|
3950 | all:
|
---|
3951 | @echo '@@@%%%=$(MAKE)=@@@%%%'
|
---|
3952 | _ACEOF
|
---|
3953 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
|
---|
3954 | case `${MAKE-make} -f conftest.make 2>/dev/null` in
|
---|
3955 | *@@@%%%=?*=@@@%%%*)
|
---|
3956 | eval ac_cv_prog_make_${ac_make}_set=yes;;
|
---|
3957 | *)
|
---|
3958 | eval ac_cv_prog_make_${ac_make}_set=no;;
|
---|
3959 | esac
|
---|
3960 | rm -f conftest.make
|
---|
3961 | fi
|
---|
3962 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
|
---|
3963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
3964 | $as_echo "yes" >&6; }
|
---|
3965 | SET_MAKE=
|
---|
3966 | else
|
---|
3967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3968 | $as_echo "no" >&6; }
|
---|
3969 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
3970 | fi
|
---|
3971 |
|
---|
3972 | if test -n "$ac_tool_prefix"; then
|
---|
3973 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
3974 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
3975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3976 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3977 | if test "${ac_cv_prog_RANLIB+set}" = set; then :
|
---|
3978 | $as_echo_n "(cached) " >&6
|
---|
3979 | else
|
---|
3980 | if test -n "$RANLIB"; then
|
---|
3981 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
3982 | else
|
---|
3983 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3984 | for as_dir in $PATH
|
---|
3985 | do
|
---|
3986 | IFS=$as_save_IFS
|
---|
3987 | test -z "$as_dir" && as_dir=.
|
---|
3988 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3989 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
3990 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
3991 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3992 | break 2
|
---|
3993 | fi
|
---|
3994 | done
|
---|
3995 | done
|
---|
3996 | IFS=$as_save_IFS
|
---|
3997 |
|
---|
3998 | fi
|
---|
3999 | fi
|
---|
4000 | RANLIB=$ac_cv_prog_RANLIB
|
---|
4001 | if test -n "$RANLIB"; then
|
---|
4002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
|
---|
4003 | $as_echo "$RANLIB" >&6; }
|
---|
4004 | else
|
---|
4005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4006 | $as_echo "no" >&6; }
|
---|
4007 | fi
|
---|
4008 |
|
---|
4009 |
|
---|
4010 | fi
|
---|
4011 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
4012 | ac_ct_RANLIB=$RANLIB
|
---|
4013 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
4014 | set dummy ranlib; ac_word=$2
|
---|
4015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
4016 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
4017 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
|
---|
4018 | $as_echo_n "(cached) " >&6
|
---|
4019 | else
|
---|
4020 | if test -n "$ac_ct_RANLIB"; then
|
---|
4021 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
---|
4022 | else
|
---|
4023 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4024 | for as_dir in $PATH
|
---|
4025 | do
|
---|
4026 | IFS=$as_save_IFS
|
---|
4027 | test -z "$as_dir" && as_dir=.
|
---|
4028 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4029 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
4030 | ac_cv_prog_ac_ct_RANLIB="ranlib"
|
---|
4031 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
4032 | break 2
|
---|
4033 | fi
|
---|
4034 | done
|
---|
4035 | done
|
---|
4036 | IFS=$as_save_IFS
|
---|
4037 |
|
---|
4038 | fi
|
---|
4039 | fi
|
---|
4040 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
---|
4041 | if test -n "$ac_ct_RANLIB"; then
|
---|
4042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
|
---|
4043 | $as_echo "$ac_ct_RANLIB" >&6; }
|
---|
4044 | else
|
---|
4045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4046 | $as_echo "no" >&6; }
|
---|
4047 | fi
|
---|
4048 |
|
---|
4049 | if test "x$ac_ct_RANLIB" = x; then
|
---|
4050 | RANLIB=":"
|
---|
4051 | else
|
---|
4052 | case $cross_compiling:$ac_tool_warned in
|
---|
4053 | yes:)
|
---|
4054 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
4055 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
4056 | ac_tool_warned=yes ;;
|
---|
4057 | esac
|
---|
4058 | RANLIB=$ac_ct_RANLIB
|
---|
4059 | fi
|
---|
4060 | else
|
---|
4061 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
4062 | fi
|
---|
4063 |
|
---|
4064 |
|
---|
4065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if architecture is 64-bit" >&5
|
---|
4066 | $as_echo_n "checking to see if architecture is 64-bit... " >&6; }
|
---|
4067 | arch_64bit=no
|
---|
4068 | case "$host_cpu" in
|
---|
4069 | x86_64) arch_64bit=yes ;;
|
---|
4070 | esac
|
---|
4071 |
|
---|
4072 | if test "$arch_64bit" = yes; then
|
---|
4073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
4074 | $as_echo "yes" >&6; }
|
---|
4075 | if test -z "$COMPAT32BITFLAGS" ; then
|
---|
4076 | if test "$ENABLE_MG" = "1" -o "$ENABLE_MGPP" = "1" ; then
|
---|
4077 | COMPAT32BITFLAGS="-m32"
|
---|
4078 | fi
|
---|
4079 | fi
|
---|
4080 | else
|
---|
4081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4082 | $as_echo "no" >&6; }
|
---|
4083 | if test -z "$COMPAT32BITFLAGS" ; then
|
---|
4084 | COMPAT32BITFLAGS=
|
---|
4085 | fi
|
---|
4086 | fi
|
---|
4087 |
|
---|
4088 | export COMPAT32BITFLAGS
|
---|
4089 |
|
---|
4090 |
|
---|
4091 |
|
---|
4092 | #moved CORBA MICO directory test to get version of MICO
|
---|
4093 | if test $USE_CORBA = 1; then
|
---|
4094 |
|
---|
4095 | if test $MICO_DIR = "default"; then
|
---|
4096 | #do something
|
---|
4097 | MICO_INC="-I packages/mico/mico/include"
|
---|
4098 | else
|
---|
4099 | #build the micotest program
|
---|
4100 | MICO_INC= ""
|
---|
4101 | if test $MICO_DIR != yes; then
|
---|
4102 | MICO_INC="-I $MICO_DIR"
|
---|
4103 | fi
|
---|
4104 | fi
|
---|
4105 |
|
---|
4106 | #get MICO_VER value
|
---|
4107 | sh -c "$CC -c micotest.cpp -o micotest.o $MICO_INC 2>&1" > /dev/null
|
---|
4108 | sh -c "$CC -o micotest micotest.o -lstdc++ 2>&1" > /dev/null
|
---|
4109 | MICO_VER=`./micotest` || MICO_VER=2.3.5
|
---|
4110 | sh -c "rm micotest"
|
---|
4111 | sh -c "rm micotest.o"
|
---|
4112 |
|
---|
4113 | #do test of MICO_VER
|
---|
4114 | if test MICO_VER != 0; then
|
---|
4115 | $as_echo "#define MICO_VER 1" >>confdefs.h
|
---|
4116 |
|
---|
4117 |
|
---|
4118 | fi
|
---|
4119 | #end USE_CORBA test
|
---|
4120 | fi
|
---|
4121 |
|
---|
4122 |
|
---|
4123 | ac_ext=c
|
---|
4124 | ac_cpp='$CPP $CPPFLAGS'
|
---|
4125 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
4126 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
4127 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
4128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
|
---|
4129 | $as_echo_n "checking how to run the C preprocessor... " >&6; }
|
---|
4130 | # On Suns, sometimes $CPP names a directory.
|
---|
4131 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
4132 | CPP=
|
---|
4133 | fi
|
---|
4134 | if test -z "$CPP"; then
|
---|
4135 | if test "${ac_cv_prog_CPP+set}" = set; then :
|
---|
4136 | $as_echo_n "(cached) " >&6
|
---|
4137 | else
|
---|
4138 | # Double quotes because CPP needs to be expanded
|
---|
4139 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
---|
4140 | do
|
---|
4141 | ac_preproc_ok=false
|
---|
4142 | for ac_c_preproc_warn_flag in '' yes
|
---|
4143 | do
|
---|
4144 | # Use a header file that comes with gcc, so configuring glibc
|
---|
4145 | # with a fresh cross-compiler works.
|
---|
4146 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
4147 | # <limits.h> exists even on freestanding compilers.
|
---|
4148 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
4149 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
4150 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4151 | /* end confdefs.h. */
|
---|
4152 | #ifdef __STDC__
|
---|
4153 | # include <limits.h>
|
---|
4154 | #else
|
---|
4155 | # include <assert.h>
|
---|
4156 | #endif
|
---|
4157 | Syntax error
|
---|
4158 | _ACEOF
|
---|
4159 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
4160 |
|
---|
4161 | else
|
---|
4162 | # Broken: fails on valid input.
|
---|
4163 | continue
|
---|
4164 | fi
|
---|
4165 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
4166 |
|
---|
4167 | # OK, works on sane cases. Now check whether nonexistent headers
|
---|
4168 | # can be detected and how.
|
---|
4169 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4170 | /* end confdefs.h. */
|
---|
4171 | #include <ac_nonexistent.h>
|
---|
4172 | _ACEOF
|
---|
4173 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
4174 | # Broken: success on invalid input.
|
---|
4175 | continue
|
---|
4176 | else
|
---|
4177 | # Passes both tests.
|
---|
4178 | ac_preproc_ok=:
|
---|
4179 | break
|
---|
4180 | fi
|
---|
4181 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
4182 |
|
---|
4183 | done
|
---|
4184 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
4185 | rm -f conftest.i conftest.err conftest.$ac_ext
|
---|
4186 | if $ac_preproc_ok; then :
|
---|
4187 | break
|
---|
4188 | fi
|
---|
4189 |
|
---|
4190 | done
|
---|
4191 | ac_cv_prog_CPP=$CPP
|
---|
4192 |
|
---|
4193 | fi
|
---|
4194 | CPP=$ac_cv_prog_CPP
|
---|
4195 | else
|
---|
4196 | ac_cv_prog_CPP=$CPP
|
---|
4197 | fi
|
---|
4198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
|
---|
4199 | $as_echo "$CPP" >&6; }
|
---|
4200 | ac_preproc_ok=false
|
---|
4201 | for ac_c_preproc_warn_flag in '' yes
|
---|
4202 | do
|
---|
4203 | # Use a header file that comes with gcc, so configuring glibc
|
---|
4204 | # with a fresh cross-compiler works.
|
---|
4205 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
4206 | # <limits.h> exists even on freestanding compilers.
|
---|
4207 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
4208 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
4209 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4210 | /* end confdefs.h. */
|
---|
4211 | #ifdef __STDC__
|
---|
4212 | # include <limits.h>
|
---|
4213 | #else
|
---|
4214 | # include <assert.h>
|
---|
4215 | #endif
|
---|
4216 | Syntax error
|
---|
4217 | _ACEOF
|
---|
4218 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
4219 |
|
---|
4220 | else
|
---|
4221 | # Broken: fails on valid input.
|
---|
4222 | continue
|
---|
4223 | fi
|
---|
4224 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
4225 |
|
---|
4226 | # OK, works on sane cases. Now check whether nonexistent headers
|
---|
4227 | # can be detected and how.
|
---|
4228 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4229 | /* end confdefs.h. */
|
---|
4230 | #include <ac_nonexistent.h>
|
---|
4231 | _ACEOF
|
---|
4232 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
4233 | # Broken: success on invalid input.
|
---|
4234 | continue
|
---|
4235 | else
|
---|
4236 | # Passes both tests.
|
---|
4237 | ac_preproc_ok=:
|
---|
4238 | break
|
---|
4239 | fi
|
---|
4240 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
4241 |
|
---|
4242 | done
|
---|
4243 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
4244 | rm -f conftest.i conftest.err conftest.$ac_ext
|
---|
4245 | if $ac_preproc_ok; then :
|
---|
4246 |
|
---|
4247 | else
|
---|
4248 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
4249 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
4250 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
|
---|
4251 | See \`config.log' for more details" "$LINENO" 5 ; }
|
---|
4252 | fi
|
---|
4253 |
|
---|
4254 | ac_ext=c
|
---|
4255 | ac_cpp='$CPP $CPPFLAGS'
|
---|
4256 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
4257 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
4258 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
4259 |
|
---|
4260 |
|
---|
4261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
|
---|
4262 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
|
---|
4263 | if test "${ac_cv_path_GREP+set}" = set; then :
|
---|
4264 | $as_echo_n "(cached) " >&6
|
---|
4265 | else
|
---|
4266 | if test -z "$GREP"; then
|
---|
4267 | ac_path_GREP_found=false
|
---|
4268 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
4269 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4270 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
4271 | do
|
---|
4272 | IFS=$as_save_IFS
|
---|
4273 | test -z "$as_dir" && as_dir=.
|
---|
4274 | for ac_prog in grep ggrep; do
|
---|
4275 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4276 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
|
---|
4277 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
|
---|
4278 | # Check for GNU ac_path_GREP and select it if it is found.
|
---|
4279 | # Check for GNU $ac_path_GREP
|
---|
4280 | case `"$ac_path_GREP" --version 2>&1` in
|
---|
4281 | *GNU*)
|
---|
4282 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
|
---|
4283 | *)
|
---|
4284 | ac_count=0
|
---|
4285 | $as_echo_n 0123456789 >"conftest.in"
|
---|
4286 | while :
|
---|
4287 | do
|
---|
4288 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
4289 | mv "conftest.tmp" "conftest.in"
|
---|
4290 | cp "conftest.in" "conftest.nl"
|
---|
4291 | $as_echo 'GREP' >> "conftest.nl"
|
---|
4292 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
4293 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
4294 | as_fn_arith $ac_count + 1 && ac_count=$as_val
|
---|
4295 | if test $ac_count -gt ${ac_path_GREP_max-0}; then
|
---|
4296 | # Best one so far, save it but keep looking for a better one
|
---|
4297 | ac_cv_path_GREP="$ac_path_GREP"
|
---|
4298 | ac_path_GREP_max=$ac_count
|
---|
4299 | fi
|
---|
4300 | # 10*(2^10) chars as input seems more than enough
|
---|
4301 | test $ac_count -gt 10 && break
|
---|
4302 | done
|
---|
4303 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
4304 | esac
|
---|
4305 |
|
---|
4306 | $ac_path_GREP_found && break 3
|
---|
4307 | done
|
---|
4308 | done
|
---|
4309 | done
|
---|
4310 | IFS=$as_save_IFS
|
---|
4311 | if test -z "$ac_cv_path_GREP"; then
|
---|
4312 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
---|
4313 | fi
|
---|
4314 | else
|
---|
4315 | ac_cv_path_GREP=$GREP
|
---|
4316 | fi
|
---|
4317 |
|
---|
4318 | fi
|
---|
4319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
|
---|
4320 | $as_echo "$ac_cv_path_GREP" >&6; }
|
---|
4321 | GREP="$ac_cv_path_GREP"
|
---|
4322 |
|
---|
4323 |
|
---|
4324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
|
---|
4325 | $as_echo_n "checking for egrep... " >&6; }
|
---|
4326 | if test "${ac_cv_path_EGREP+set}" = set; then :
|
---|
4327 | $as_echo_n "(cached) " >&6
|
---|
4328 | else
|
---|
4329 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
|
---|
4330 | then ac_cv_path_EGREP="$GREP -E"
|
---|
4331 | else
|
---|
4332 | if test -z "$EGREP"; then
|
---|
4333 | ac_path_EGREP_found=false
|
---|
4334 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
4335 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4336 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
4337 | do
|
---|
4338 | IFS=$as_save_IFS
|
---|
4339 | test -z "$as_dir" && as_dir=.
|
---|
4340 | for ac_prog in egrep; do
|
---|
4341 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4342 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
|
---|
4343 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
|
---|
4344 | # Check for GNU ac_path_EGREP and select it if it is found.
|
---|
4345 | # Check for GNU $ac_path_EGREP
|
---|
4346 | case `"$ac_path_EGREP" --version 2>&1` in
|
---|
4347 | *GNU*)
|
---|
4348 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
|
---|
4349 | *)
|
---|
4350 | ac_count=0
|
---|
4351 | $as_echo_n 0123456789 >"conftest.in"
|
---|
4352 | while :
|
---|
4353 | do
|
---|
4354 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
4355 | mv "conftest.tmp" "conftest.in"
|
---|
4356 | cp "conftest.in" "conftest.nl"
|
---|
4357 | $as_echo 'EGREP' >> "conftest.nl"
|
---|
4358 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
4359 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
4360 | as_fn_arith $ac_count + 1 && ac_count=$as_val
|
---|
4361 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then
|
---|
4362 | # Best one so far, save it but keep looking for a better one
|
---|
4363 | ac_cv_path_EGREP="$ac_path_EGREP"
|
---|
4364 | ac_path_EGREP_max=$ac_count
|
---|
4365 | fi
|
---|
4366 | # 10*(2^10) chars as input seems more than enough
|
---|
4367 | test $ac_count -gt 10 && break
|
---|
4368 | done
|
---|
4369 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
4370 | esac
|
---|
4371 |
|
---|
4372 | $ac_path_EGREP_found && break 3
|
---|
4373 | done
|
---|
4374 | done
|
---|
4375 | done
|
---|
4376 | IFS=$as_save_IFS
|
---|
4377 | if test -z "$ac_cv_path_EGREP"; then
|
---|
4378 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
---|
4379 | fi
|
---|
4380 | else
|
---|
4381 | ac_cv_path_EGREP=$EGREP
|
---|
4382 | fi
|
---|
4383 |
|
---|
4384 | fi
|
---|
4385 | fi
|
---|
4386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
|
---|
4387 | $as_echo "$ac_cv_path_EGREP" >&6; }
|
---|
4388 | EGREP="$ac_cv_path_EGREP"
|
---|
4389 |
|
---|
4390 |
|
---|
4391 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
|
---|
4392 | $as_echo_n "checking for ANSI C header files... " >&6; }
|
---|
4393 | if test "${ac_cv_header_stdc+set}" = set; then :
|
---|
4394 | $as_echo_n "(cached) " >&6
|
---|
4395 | else
|
---|
4396 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4397 | /* end confdefs.h. */
|
---|
4398 | #include <stdlib.h>
|
---|
4399 | #include <stdarg.h>
|
---|
4400 | #include <string.h>
|
---|
4401 | #include <float.h>
|
---|
4402 |
|
---|
4403 | int
|
---|
4404 | main ()
|
---|
4405 | {
|
---|
4406 |
|
---|
4407 | ;
|
---|
4408 | return 0;
|
---|
4409 | }
|
---|
4410 | _ACEOF
|
---|
4411 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
4412 | ac_cv_header_stdc=yes
|
---|
4413 | else
|
---|
4414 | ac_cv_header_stdc=no
|
---|
4415 | fi
|
---|
4416 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4417 |
|
---|
4418 | if test $ac_cv_header_stdc = yes; then
|
---|
4419 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
4420 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4421 | /* end confdefs.h. */
|
---|
4422 | #include <string.h>
|
---|
4423 |
|
---|
4424 | _ACEOF
|
---|
4425 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
4426 | $EGREP "memchr" >/dev/null 2>&1; then :
|
---|
4427 |
|
---|
4428 | else
|
---|
4429 | ac_cv_header_stdc=no
|
---|
4430 | fi
|
---|
4431 | rm -f conftest*
|
---|
4432 |
|
---|
4433 | fi
|
---|
4434 |
|
---|
4435 | if test $ac_cv_header_stdc = yes; then
|
---|
4436 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
4437 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4438 | /* end confdefs.h. */
|
---|
4439 | #include <stdlib.h>
|
---|
4440 |
|
---|
4441 | _ACEOF
|
---|
4442 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
4443 | $EGREP "free" >/dev/null 2>&1; then :
|
---|
4444 |
|
---|
4445 | else
|
---|
4446 | ac_cv_header_stdc=no
|
---|
4447 | fi
|
---|
4448 | rm -f conftest*
|
---|
4449 |
|
---|
4450 | fi
|
---|
4451 |
|
---|
4452 | if test $ac_cv_header_stdc = yes; then
|
---|
4453 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
4454 | if test "$cross_compiling" = yes; then :
|
---|
4455 | :
|
---|
4456 | else
|
---|
4457 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4458 | /* end confdefs.h. */
|
---|
4459 | #include <ctype.h>
|
---|
4460 | #include <stdlib.h>
|
---|
4461 | #if ((' ' & 0x0FF) == 0x020)
|
---|
4462 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
4463 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
4464 | #else
|
---|
4465 | # define ISLOWER(c) \
|
---|
4466 | (('a' <= (c) && (c) <= 'i') \
|
---|
4467 | || ('j' <= (c) && (c) <= 'r') \
|
---|
4468 | || ('s' <= (c) && (c) <= 'z'))
|
---|
4469 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
4470 | #endif
|
---|
4471 |
|
---|
4472 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
4473 | int
|
---|
4474 | main ()
|
---|
4475 | {
|
---|
4476 | int i;
|
---|
4477 | for (i = 0; i < 256; i++)
|
---|
4478 | if (XOR (islower (i), ISLOWER (i))
|
---|
4479 | || toupper (i) != TOUPPER (i))
|
---|
4480 | return 2;
|
---|
4481 | return 0;
|
---|
4482 | }
|
---|
4483 | _ACEOF
|
---|
4484 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
4485 |
|
---|
4486 | else
|
---|
4487 | ac_cv_header_stdc=no
|
---|
4488 | fi
|
---|
4489 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
4490 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
4491 | fi
|
---|
4492 |
|
---|
4493 | fi
|
---|
4494 | fi
|
---|
4495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
|
---|
4496 | $as_echo "$ac_cv_header_stdc" >&6; }
|
---|
4497 | if test $ac_cv_header_stdc = yes; then
|
---|
4498 |
|
---|
4499 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h
|
---|
4500 |
|
---|
4501 | fi
|
---|
4502 |
|
---|
4503 | # On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
---|
4504 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
---|
4505 | inttypes.h stdint.h unistd.h
|
---|
4506 | do :
|
---|
4507 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
4508 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
|
---|
4509 | "
|
---|
4510 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
|
---|
4511 | cat >>confdefs.h <<_ACEOF
|
---|
4512 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
4513 | _ACEOF
|
---|
4514 |
|
---|
4515 | fi
|
---|
4516 |
|
---|
4517 | done
|
---|
4518 |
|
---|
4519 |
|
---|
4520 |
|
---|
4521 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
|
---|
4522 | if test "x$ac_cv_header_minix_config_h" = x""yes; then :
|
---|
4523 | MINIX=yes
|
---|
4524 | else
|
---|
4525 | MINIX=
|
---|
4526 | fi
|
---|
4527 |
|
---|
4528 |
|
---|
4529 | if test "$MINIX" = yes; then
|
---|
4530 |
|
---|
4531 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
|
---|
4532 |
|
---|
4533 |
|
---|
4534 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
|
---|
4535 |
|
---|
4536 |
|
---|
4537 | $as_echo "#define _MINIX 1" >>confdefs.h
|
---|
4538 |
|
---|
4539 | fi
|
---|
4540 |
|
---|
4541 |
|
---|
4542 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
|
---|
4543 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
|
---|
4544 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
|
---|
4545 | $as_echo_n "(cached) " >&6
|
---|
4546 | else
|
---|
4547 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4548 | /* end confdefs.h. */
|
---|
4549 |
|
---|
4550 | # define __EXTENSIONS__ 1
|
---|
4551 | $ac_includes_default
|
---|
4552 | int
|
---|
4553 | main ()
|
---|
4554 | {
|
---|
4555 |
|
---|
4556 | ;
|
---|
4557 | return 0;
|
---|
4558 | }
|
---|
4559 | _ACEOF
|
---|
4560 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
4561 | ac_cv_safe_to_define___extensions__=yes
|
---|
4562 | else
|
---|
4563 | ac_cv_safe_to_define___extensions__=no
|
---|
4564 | fi
|
---|
4565 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4566 | fi
|
---|
4567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
|
---|
4568 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
|
---|
4569 | test $ac_cv_safe_to_define___extensions__ = yes &&
|
---|
4570 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
|
---|
4571 |
|
---|
4572 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
|
---|
4573 |
|
---|
4574 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
|
---|
4575 |
|
---|
4576 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
|
---|
4577 |
|
---|
4578 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
|
---|
4579 |
|
---|
4580 |
|
---|
4581 |
|
---|
4582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
|
---|
4583 | $as_echo_n "checking for library containing strerror... " >&6; }
|
---|
4584 | if test "${ac_cv_search_strerror+set}" = set; then :
|
---|
4585 | $as_echo_n "(cached) " >&6
|
---|
4586 | else
|
---|
4587 | ac_func_search_save_LIBS=$LIBS
|
---|
4588 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4589 | /* end confdefs.h. */
|
---|
4590 |
|
---|
4591 | /* Override any GCC internal prototype to avoid an error.
|
---|
4592 | Use char because int might match the return type of a GCC
|
---|
4593 | builtin and then its argument prototype would still apply. */
|
---|
4594 | #ifdef __cplusplus
|
---|
4595 | extern "C"
|
---|
4596 | #endif
|
---|
4597 | char strerror ();
|
---|
4598 | int
|
---|
4599 | main ()
|
---|
4600 | {
|
---|
4601 | return strerror ();
|
---|
4602 | ;
|
---|
4603 | return 0;
|
---|
4604 | }
|
---|
4605 | _ACEOF
|
---|
4606 | for ac_lib in '' cposix; do
|
---|
4607 | if test -z "$ac_lib"; then
|
---|
4608 | ac_res="none required"
|
---|
4609 | else
|
---|
4610 | ac_res=-l$ac_lib
|
---|
4611 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
4612 | fi
|
---|
4613 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
4614 | ac_cv_search_strerror=$ac_res
|
---|
4615 | fi
|
---|
4616 | rm -f core conftest.err conftest.$ac_objext \
|
---|
4617 | conftest$ac_exeext
|
---|
4618 | if test "${ac_cv_search_strerror+set}" = set; then :
|
---|
4619 | break
|
---|
4620 | fi
|
---|
4621 | done
|
---|
4622 | if test "${ac_cv_search_strerror+set}" = set; then :
|
---|
4623 |
|
---|
4624 | else
|
---|
4625 | ac_cv_search_strerror=no
|
---|
4626 | fi
|
---|
4627 | rm conftest.$ac_ext
|
---|
4628 | LIBS=$ac_func_search_save_LIBS
|
---|
4629 | fi
|
---|
4630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
|
---|
4631 | $as_echo "$ac_cv_search_strerror" >&6; }
|
---|
4632 | ac_res=$ac_cv_search_strerror
|
---|
4633 | if test "$ac_res" != no; then :
|
---|
4634 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
4635 |
|
---|
4636 | fi
|
---|
4637 |
|
---|
4638 |
|
---|
4639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
|
---|
4640 | $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
|
---|
4641 | if test "${ac_cv_prog_cc_stdc+set}" = set; then :
|
---|
4642 | $as_echo_n "(cached) " >&6
|
---|
4643 | else
|
---|
4644 | ac_cv_prog_cc_stdc=no
|
---|
4645 | ac_save_CFLAGS="$CFLAGS"
|
---|
4646 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
4647 | # breaks some systems' header files.
|
---|
4648 | # AIX -qlanglvl=ansi
|
---|
4649 | # Ultrix and OSF/1 -std1
|
---|
4650 | # HP-UX -Aa -D_HPUX_SOURCE
|
---|
4651 | # SVR4 -Xc
|
---|
4652 | for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
|
---|
4653 | do
|
---|
4654 | CFLAGS="$ac_save_CFLAGS $ac_arg"
|
---|
4655 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4656 | /* end confdefs.h. */
|
---|
4657 | #if !defined(__STDC__) || __STDC__ != 1
|
---|
4658 | choke me
|
---|
4659 | #endif
|
---|
4660 |
|
---|
4661 | int
|
---|
4662 | main ()
|
---|
4663 | {
|
---|
4664 | int test (int i, double x);
|
---|
4665 | struct s1 {int (*f) (int a);};
|
---|
4666 | struct s2 {int (*f) (double a);};
|
---|
4667 | ;
|
---|
4668 | return 0;
|
---|
4669 | }
|
---|
4670 | _ACEOF
|
---|
4671 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
4672 | ac_cv_prog_cc_stdc="$ac_arg"; break
|
---|
4673 | fi
|
---|
4674 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4675 | done
|
---|
4676 | CFLAGS="$ac_save_CFLAGS"
|
---|
4677 |
|
---|
4678 | fi
|
---|
4679 |
|
---|
4680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
|
---|
4681 | $as_echo "$ac_cv_prog_cc_stdc" >&6; }
|
---|
4682 | case "x$ac_cv_prog_cc_stdc" in
|
---|
4683 | x|xno) ;;
|
---|
4684 | *) CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
4685 | esac
|
---|
4686 |
|
---|
4687 |
|
---|
4688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
|
---|
4689 | $as_echo_n "checking for function prototypes... " >&6; }
|
---|
4690 | if test "$ac_cv_prog_cc_stdc" != no; then
|
---|
4691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
4692 | $as_echo "yes" >&6; }
|
---|
4693 | $as_echo "#define PROTOTYPES 1" >>confdefs.h
|
---|
4694 |
|
---|
4695 | U= ANSI2KNR=
|
---|
4696 | else
|
---|
4697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4698 | $as_echo "no" >&6; }
|
---|
4699 | U=_ ANSI2KNR=ansi2knr
|
---|
4700 | fi
|
---|
4701 |
|
---|
4702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
|
---|
4703 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
|
---|
4704 | if test "${ac_cv_c_const+set}" = set; then :
|
---|
4705 | $as_echo_n "(cached) " >&6
|
---|
4706 | else
|
---|
4707 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4708 | /* end confdefs.h. */
|
---|
4709 |
|
---|
4710 | int
|
---|
4711 | main ()
|
---|
4712 | {
|
---|
4713 | /* FIXME: Include the comments suggested by Paul. */
|
---|
4714 | #ifndef __cplusplus
|
---|
4715 | /* Ultrix mips cc rejects this. */
|
---|
4716 | typedef int charset[2];
|
---|
4717 | const charset cs;
|
---|
4718 | /* SunOS 4.1.1 cc rejects this. */
|
---|
4719 | char const *const *pcpcc;
|
---|
4720 | char **ppc;
|
---|
4721 | /* NEC SVR4.0.2 mips cc rejects this. */
|
---|
4722 | struct point {int x, y;};
|
---|
4723 | static struct point const zero = {0,0};
|
---|
4724 | /* AIX XL C 1.02.0.0 rejects this.
|
---|
4725 | It does not let you subtract one const X* pointer from another in
|
---|
4726 | an arm of an if-expression whose if-part is not a constant
|
---|
4727 | expression */
|
---|
4728 | const char *g = "string";
|
---|
4729 | pcpcc = &g + (g ? g-g : 0);
|
---|
4730 | /* HPUX 7.0 cc rejects these. */
|
---|
4731 | ++pcpcc;
|
---|
4732 | ppc = (char**) pcpcc;
|
---|
4733 | pcpcc = (char const *const *) ppc;
|
---|
4734 | { /* SCO 3.2v4 cc rejects this. */
|
---|
4735 | char *t;
|
---|
4736 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
---|
4737 |
|
---|
4738 | *t++ = 0;
|
---|
4739 | if (s) return 0;
|
---|
4740 | }
|
---|
4741 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
---|
4742 | int x[] = {25, 17};
|
---|
4743 | const int *foo = &x[0];
|
---|
4744 | ++foo;
|
---|
4745 | }
|
---|
4746 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
---|
4747 | typedef const int *iptr;
|
---|
4748 | iptr p = 0;
|
---|
4749 | ++p;
|
---|
4750 | }
|
---|
4751 | { /* AIX XL C 1.02.0.0 rejects this saying
|
---|
4752 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
---|
4753 | struct s { int j; const int *ap[3]; };
|
---|
4754 | struct s *b; b->j = 5;
|
---|
4755 | }
|
---|
4756 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
---|
4757 | const int foo = 10;
|
---|
4758 | if (!foo) return 0;
|
---|
4759 | }
|
---|
4760 | return !cs[0] && !zero.x;
|
---|
4761 | #endif
|
---|
4762 |
|
---|
4763 | ;
|
---|
4764 | return 0;
|
---|
4765 | }
|
---|
4766 | _ACEOF
|
---|
4767 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
4768 | ac_cv_c_const=yes
|
---|
4769 | else
|
---|
4770 | ac_cv_c_const=no
|
---|
4771 | fi
|
---|
4772 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4773 | fi
|
---|
4774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
|
---|
4775 | $as_echo "$ac_cv_c_const" >&6; }
|
---|
4776 | if test $ac_cv_c_const = no; then
|
---|
4777 |
|
---|
4778 | $as_echo "#define const /**/" >>confdefs.h
|
---|
4779 |
|
---|
4780 | fi
|
---|
4781 |
|
---|
4782 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
|
---|
4783 | if test "x$ac_cv_type_off_t" = x""yes; then :
|
---|
4784 |
|
---|
4785 | else
|
---|
4786 |
|
---|
4787 | cat >>confdefs.h <<_ACEOF
|
---|
4788 | #define off_t long int
|
---|
4789 | _ACEOF
|
---|
4790 |
|
---|
4791 | fi
|
---|
4792 |
|
---|
4793 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
|
---|
4794 | if test "x$ac_cv_type_size_t" = x""yes; then :
|
---|
4795 |
|
---|
4796 | else
|
---|
4797 |
|
---|
4798 | cat >>confdefs.h <<_ACEOF
|
---|
4799 | #define size_t unsigned int
|
---|
4800 | _ACEOF
|
---|
4801 |
|
---|
4802 | fi
|
---|
4803 |
|
---|
4804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
|
---|
4805 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
|
---|
4806 | if test "${ac_cv_header_time+set}" = set; then :
|
---|
4807 | $as_echo_n "(cached) " >&6
|
---|
4808 | else
|
---|
4809 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4810 | /* end confdefs.h. */
|
---|
4811 | #include <sys/types.h>
|
---|
4812 | #include <sys/time.h>
|
---|
4813 | #include <time.h>
|
---|
4814 |
|
---|
4815 | int
|
---|
4816 | main ()
|
---|
4817 | {
|
---|
4818 | if ((struct tm *) 0)
|
---|
4819 | return 0;
|
---|
4820 | ;
|
---|
4821 | return 0;
|
---|
4822 | }
|
---|
4823 | _ACEOF
|
---|
4824 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
4825 | ac_cv_header_time=yes
|
---|
4826 | else
|
---|
4827 | ac_cv_header_time=no
|
---|
4828 | fi
|
---|
4829 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4830 | fi
|
---|
4831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
|
---|
4832 | $as_echo "$ac_cv_header_time" >&6; }
|
---|
4833 | if test $ac_cv_header_time = yes; then
|
---|
4834 |
|
---|
4835 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
|
---|
4836 |
|
---|
4837 | fi
|
---|
4838 |
|
---|
4839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
|
---|
4840 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
|
---|
4841 | if test "${ac_cv_struct_tm+set}" = set; then :
|
---|
4842 | $as_echo_n "(cached) " >&6
|
---|
4843 | else
|
---|
4844 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4845 | /* end confdefs.h. */
|
---|
4846 | #include <sys/types.h>
|
---|
4847 | #include <time.h>
|
---|
4848 |
|
---|
4849 | int
|
---|
4850 | main ()
|
---|
4851 | {
|
---|
4852 | struct tm tm;
|
---|
4853 | int *p = &tm.tm_sec;
|
---|
4854 | return !p;
|
---|
4855 | ;
|
---|
4856 | return 0;
|
---|
4857 | }
|
---|
4858 | _ACEOF
|
---|
4859 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
4860 | ac_cv_struct_tm=time.h
|
---|
4861 | else
|
---|
4862 | ac_cv_struct_tm=sys/time.h
|
---|
4863 | fi
|
---|
4864 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4865 | fi
|
---|
4866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
|
---|
4867 | $as_echo "$ac_cv_struct_tm" >&6; }
|
---|
4868 | if test $ac_cv_struct_tm = sys/time.h; then
|
---|
4869 |
|
---|
4870 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
|
---|
4871 |
|
---|
4872 | fi
|
---|
4873 |
|
---|
4874 |
|
---|
4875 | if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
|
---|
4876 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4877 | /* end confdefs.h. */
|
---|
4878 | #include <stdio.h>
|
---|
4879 |
|
---|
4880 | int
|
---|
4881 | main ()
|
---|
4882 | {
|
---|
4883 | FILE *rubbish = popen("yes", "r");
|
---|
4884 | ;
|
---|
4885 | return 0;
|
---|
4886 | }
|
---|
4887 | _ACEOF
|
---|
4888 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
4889 |
|
---|
4890 | else
|
---|
4891 | CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa'
|
---|
4892 | fi
|
---|
4893 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4894 | fi
|
---|
4895 |
|
---|
4896 |
|
---|
4897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lg" >&5
|
---|
4898 | $as_echo_n "checking for main in -lg... " >&6; }
|
---|
4899 | if test "${ac_cv_lib_g_main+set}" = set; then :
|
---|
4900 | $as_echo_n "(cached) " >&6
|
---|
4901 | else
|
---|
4902 | ac_check_lib_save_LIBS=$LIBS
|
---|
4903 | LIBS="-lg $LIBS"
|
---|
4904 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4905 | /* end confdefs.h. */
|
---|
4906 |
|
---|
4907 |
|
---|
4908 | int
|
---|
4909 | main ()
|
---|
4910 | {
|
---|
4911 | return main ();
|
---|
4912 | ;
|
---|
4913 | return 0;
|
---|
4914 | }
|
---|
4915 | _ACEOF
|
---|
4916 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
4917 | ac_cv_lib_g_main=yes
|
---|
4918 | else
|
---|
4919 | ac_cv_lib_g_main=no
|
---|
4920 | fi
|
---|
4921 | rm -f core conftest.err conftest.$ac_objext \
|
---|
4922 | conftest$ac_exeext conftest.$ac_ext
|
---|
4923 | LIBS=$ac_check_lib_save_LIBS
|
---|
4924 | fi
|
---|
4925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_g_main" >&5
|
---|
4926 | $as_echo "$ac_cv_lib_g_main" >&6; }
|
---|
4927 | if test "x$ac_cv_lib_g_main" = x""yes; then :
|
---|
4928 | cat >>confdefs.h <<_ACEOF
|
---|
4929 | #define HAVE_LIBG 1
|
---|
4930 | _ACEOF
|
---|
4931 |
|
---|
4932 | LIBS="-lg $LIBS"
|
---|
4933 |
|
---|
4934 | fi
|
---|
4935 | ac_cv_lib_g=ac_cv_lib_g_main
|
---|
4936 |
|
---|
4937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
|
---|
4938 | $as_echo_n "checking for main in -lm... " >&6; }
|
---|
4939 | if test "${ac_cv_lib_m_main+set}" = set; then :
|
---|
4940 | $as_echo_n "(cached) " >&6
|
---|
4941 | else
|
---|
4942 | ac_check_lib_save_LIBS=$LIBS
|
---|
4943 | LIBS="-lm $LIBS"
|
---|
4944 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4945 | /* end confdefs.h. */
|
---|
4946 |
|
---|
4947 |
|
---|
4948 | int
|
---|
4949 | main ()
|
---|
4950 | {
|
---|
4951 | return main ();
|
---|
4952 | ;
|
---|
4953 | return 0;
|
---|
4954 | }
|
---|
4955 | _ACEOF
|
---|
4956 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
4957 | ac_cv_lib_m_main=yes
|
---|
4958 | else
|
---|
4959 | ac_cv_lib_m_main=no
|
---|
4960 | fi
|
---|
4961 | rm -f core conftest.err conftest.$ac_objext \
|
---|
4962 | conftest$ac_exeext conftest.$ac_ext
|
---|
4963 | LIBS=$ac_check_lib_save_LIBS
|
---|
4964 | fi
|
---|
4965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
|
---|
4966 | $as_echo "$ac_cv_lib_m_main" >&6; }
|
---|
4967 | if test "x$ac_cv_lib_m_main" = x""yes; then :
|
---|
4968 | cat >>confdefs.h <<_ACEOF
|
---|
4969 | #define HAVE_LIBM 1
|
---|
4970 | _ACEOF
|
---|
4971 |
|
---|
4972 | LIBS="-lm $LIBS"
|
---|
4973 |
|
---|
4974 | fi
|
---|
4975 | ac_cv_lib_m=ac_cv_lib_m_main
|
---|
4976 |
|
---|
4977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypt" >&5
|
---|
4978 | $as_echo_n "checking for main in -lcrypt... " >&6; }
|
---|
4979 | if test "${ac_cv_lib_crypt_main+set}" = set; then :
|
---|
4980 | $as_echo_n "(cached) " >&6
|
---|
4981 | else
|
---|
4982 | ac_check_lib_save_LIBS=$LIBS
|
---|
4983 | LIBS="-lcrypt $LIBS"
|
---|
4984 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4985 | /* end confdefs.h. */
|
---|
4986 |
|
---|
4987 |
|
---|
4988 | int
|
---|
4989 | main ()
|
---|
4990 | {
|
---|
4991 | return main ();
|
---|
4992 | ;
|
---|
4993 | return 0;
|
---|
4994 | }
|
---|
4995 | _ACEOF
|
---|
4996 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
4997 | ac_cv_lib_crypt_main=yes
|
---|
4998 | else
|
---|
4999 | ac_cv_lib_crypt_main=no
|
---|
5000 | fi
|
---|
5001 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5002 | conftest$ac_exeext conftest.$ac_ext
|
---|
5003 | LIBS=$ac_check_lib_save_LIBS
|
---|
5004 | fi
|
---|
5005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_main" >&5
|
---|
5006 | $as_echo "$ac_cv_lib_crypt_main" >&6; }
|
---|
5007 | if test "x$ac_cv_lib_crypt_main" = x""yes; then :
|
---|
5008 | cat >>confdefs.h <<_ACEOF
|
---|
5009 | #define HAVE_LIBCRYPT 1
|
---|
5010 | _ACEOF
|
---|
5011 |
|
---|
5012 | LIBS="-lcrypt $LIBS"
|
---|
5013 |
|
---|
5014 | fi
|
---|
5015 | ac_cv_lib_crypt=ac_cv_lib_crypt_main
|
---|
5016 |
|
---|
5017 | #if test $ENABLE_ACCENTFOLD = 1; then
|
---|
5018 | #AC_HAVE_LIBRARY(iconv)
|
---|
5019 | #fi
|
---|
5020 |
|
---|
5021 | ac_header_dirent=no
|
---|
5022 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
|
---|
5023 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
|
---|
5024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
|
---|
5025 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
|
---|
5026 | if eval "test \"\${$as_ac_Header+set}\"" = set; then :
|
---|
5027 | $as_echo_n "(cached) " >&6
|
---|
5028 | else
|
---|
5029 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5030 | /* end confdefs.h. */
|
---|
5031 | #include <sys/types.h>
|
---|
5032 | #include <$ac_hdr>
|
---|
5033 |
|
---|
5034 | int
|
---|
5035 | main ()
|
---|
5036 | {
|
---|
5037 | if ((DIR *) 0)
|
---|
5038 | return 0;
|
---|
5039 | ;
|
---|
5040 | return 0;
|
---|
5041 | }
|
---|
5042 | _ACEOF
|
---|
5043 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
5044 | eval "$as_ac_Header=yes"
|
---|
5045 | else
|
---|
5046 | eval "$as_ac_Header=no"
|
---|
5047 | fi
|
---|
5048 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5049 | fi
|
---|
5050 | eval ac_res=\$$as_ac_Header
|
---|
5051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
5052 | $as_echo "$ac_res" >&6; }
|
---|
5053 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
|
---|
5054 | cat >>confdefs.h <<_ACEOF
|
---|
5055 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
|
---|
5056 | _ACEOF
|
---|
5057 |
|
---|
5058 | ac_header_dirent=$ac_hdr; break
|
---|
5059 | fi
|
---|
5060 |
|
---|
5061 | done
|
---|
5062 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
---|
5063 | if test $ac_header_dirent = dirent.h; then
|
---|
5064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
|
---|
5065 | $as_echo_n "checking for library containing opendir... " >&6; }
|
---|
5066 | if test "${ac_cv_search_opendir+set}" = set; then :
|
---|
5067 | $as_echo_n "(cached) " >&6
|
---|
5068 | else
|
---|
5069 | ac_func_search_save_LIBS=$LIBS
|
---|
5070 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5071 | /* end confdefs.h. */
|
---|
5072 |
|
---|
5073 | /* Override any GCC internal prototype to avoid an error.
|
---|
5074 | Use char because int might match the return type of a GCC
|
---|
5075 | builtin and then its argument prototype would still apply. */
|
---|
5076 | #ifdef __cplusplus
|
---|
5077 | extern "C"
|
---|
5078 | #endif
|
---|
5079 | char opendir ();
|
---|
5080 | int
|
---|
5081 | main ()
|
---|
5082 | {
|
---|
5083 | return opendir ();
|
---|
5084 | ;
|
---|
5085 | return 0;
|
---|
5086 | }
|
---|
5087 | _ACEOF
|
---|
5088 | for ac_lib in '' dir; do
|
---|
5089 | if test -z "$ac_lib"; then
|
---|
5090 | ac_res="none required"
|
---|
5091 | else
|
---|
5092 | ac_res=-l$ac_lib
|
---|
5093 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
5094 | fi
|
---|
5095 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5096 | ac_cv_search_opendir=$ac_res
|
---|
5097 | fi
|
---|
5098 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5099 | conftest$ac_exeext
|
---|
5100 | if test "${ac_cv_search_opendir+set}" = set; then :
|
---|
5101 | break
|
---|
5102 | fi
|
---|
5103 | done
|
---|
5104 | if test "${ac_cv_search_opendir+set}" = set; then :
|
---|
5105 |
|
---|
5106 | else
|
---|
5107 | ac_cv_search_opendir=no
|
---|
5108 | fi
|
---|
5109 | rm conftest.$ac_ext
|
---|
5110 | LIBS=$ac_func_search_save_LIBS
|
---|
5111 | fi
|
---|
5112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
|
---|
5113 | $as_echo "$ac_cv_search_opendir" >&6; }
|
---|
5114 | ac_res=$ac_cv_search_opendir
|
---|
5115 | if test "$ac_res" != no; then :
|
---|
5116 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
5117 |
|
---|
5118 | fi
|
---|
5119 |
|
---|
5120 | else
|
---|
5121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
|
---|
5122 | $as_echo_n "checking for library containing opendir... " >&6; }
|
---|
5123 | if test "${ac_cv_search_opendir+set}" = set; then :
|
---|
5124 | $as_echo_n "(cached) " >&6
|
---|
5125 | else
|
---|
5126 | ac_func_search_save_LIBS=$LIBS
|
---|
5127 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5128 | /* end confdefs.h. */
|
---|
5129 |
|
---|
5130 | /* Override any GCC internal prototype to avoid an error.
|
---|
5131 | Use char because int might match the return type of a GCC
|
---|
5132 | builtin and then its argument prototype would still apply. */
|
---|
5133 | #ifdef __cplusplus
|
---|
5134 | extern "C"
|
---|
5135 | #endif
|
---|
5136 | char opendir ();
|
---|
5137 | int
|
---|
5138 | main ()
|
---|
5139 | {
|
---|
5140 | return opendir ();
|
---|
5141 | ;
|
---|
5142 | return 0;
|
---|
5143 | }
|
---|
5144 | _ACEOF
|
---|
5145 | for ac_lib in '' x; do
|
---|
5146 | if test -z "$ac_lib"; then
|
---|
5147 | ac_res="none required"
|
---|
5148 | else
|
---|
5149 | ac_res=-l$ac_lib
|
---|
5150 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
5151 | fi
|
---|
5152 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5153 | ac_cv_search_opendir=$ac_res
|
---|
5154 | fi
|
---|
5155 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5156 | conftest$ac_exeext
|
---|
5157 | if test "${ac_cv_search_opendir+set}" = set; then :
|
---|
5158 | break
|
---|
5159 | fi
|
---|
5160 | done
|
---|
5161 | if test "${ac_cv_search_opendir+set}" = set; then :
|
---|
5162 |
|
---|
5163 | else
|
---|
5164 | ac_cv_search_opendir=no
|
---|
5165 | fi
|
---|
5166 | rm conftest.$ac_ext
|
---|
5167 | LIBS=$ac_func_search_save_LIBS
|
---|
5168 | fi
|
---|
5169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
|
---|
5170 | $as_echo "$ac_cv_search_opendir" >&6; }
|
---|
5171 | ac_res=$ac_cv_search_opendir
|
---|
5172 | if test "$ac_res" != no; then :
|
---|
5173 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
5174 |
|
---|
5175 | fi
|
---|
5176 |
|
---|
5177 | fi
|
---|
5178 |
|
---|
5179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
|
---|
5180 | $as_echo_n "checking for ANSI C header files... " >&6; }
|
---|
5181 | if test "${ac_cv_header_stdc+set}" = set; then :
|
---|
5182 | $as_echo_n "(cached) " >&6
|
---|
5183 | else
|
---|
5184 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5185 | /* end confdefs.h. */
|
---|
5186 | #include <stdlib.h>
|
---|
5187 | #include <stdarg.h>
|
---|
5188 | #include <string.h>
|
---|
5189 | #include <float.h>
|
---|
5190 |
|
---|
5191 | int
|
---|
5192 | main ()
|
---|
5193 | {
|
---|
5194 |
|
---|
5195 | ;
|
---|
5196 | return 0;
|
---|
5197 | }
|
---|
5198 | _ACEOF
|
---|
5199 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
5200 | ac_cv_header_stdc=yes
|
---|
5201 | else
|
---|
5202 | ac_cv_header_stdc=no
|
---|
5203 | fi
|
---|
5204 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5205 |
|
---|
5206 | if test $ac_cv_header_stdc = yes; then
|
---|
5207 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
5208 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5209 | /* end confdefs.h. */
|
---|
5210 | #include <string.h>
|
---|
5211 |
|
---|
5212 | _ACEOF
|
---|
5213 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5214 | $EGREP "memchr" >/dev/null 2>&1; then :
|
---|
5215 |
|
---|
5216 | else
|
---|
5217 | ac_cv_header_stdc=no
|
---|
5218 | fi
|
---|
5219 | rm -f conftest*
|
---|
5220 |
|
---|
5221 | fi
|
---|
5222 |
|
---|
5223 | if test $ac_cv_header_stdc = yes; then
|
---|
5224 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
5225 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5226 | /* end confdefs.h. */
|
---|
5227 | #include <stdlib.h>
|
---|
5228 |
|
---|
5229 | _ACEOF
|
---|
5230 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5231 | $EGREP "free" >/dev/null 2>&1; then :
|
---|
5232 |
|
---|
5233 | else
|
---|
5234 | ac_cv_header_stdc=no
|
---|
5235 | fi
|
---|
5236 | rm -f conftest*
|
---|
5237 |
|
---|
5238 | fi
|
---|
5239 |
|
---|
5240 | if test $ac_cv_header_stdc = yes; then
|
---|
5241 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
5242 | if test "$cross_compiling" = yes; then :
|
---|
5243 | :
|
---|
5244 | else
|
---|
5245 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5246 | /* end confdefs.h. */
|
---|
5247 | #include <ctype.h>
|
---|
5248 | #include <stdlib.h>
|
---|
5249 | #if ((' ' & 0x0FF) == 0x020)
|
---|
5250 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
5251 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
5252 | #else
|
---|
5253 | # define ISLOWER(c) \
|
---|
5254 | (('a' <= (c) && (c) <= 'i') \
|
---|
5255 | || ('j' <= (c) && (c) <= 'r') \
|
---|
5256 | || ('s' <= (c) && (c) <= 'z'))
|
---|
5257 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
5258 | #endif
|
---|
5259 |
|
---|
5260 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
5261 | int
|
---|
5262 | main ()
|
---|
5263 | {
|
---|
5264 | int i;
|
---|
5265 | for (i = 0; i < 256; i++)
|
---|
5266 | if (XOR (islower (i), ISLOWER (i))
|
---|
5267 | || toupper (i) != TOUPPER (i))
|
---|
5268 | return 2;
|
---|
5269 | return 0;
|
---|
5270 | }
|
---|
5271 | _ACEOF
|
---|
5272 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
5273 |
|
---|
5274 | else
|
---|
5275 | ac_cv_header_stdc=no
|
---|
5276 | fi
|
---|
5277 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
5278 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
5279 | fi
|
---|
5280 |
|
---|
5281 | fi
|
---|
5282 | fi
|
---|
5283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
|
---|
5284 | $as_echo "$ac_cv_header_stdc" >&6; }
|
---|
5285 | if test $ac_cv_header_stdc = yes; then
|
---|
5286 |
|
---|
5287 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h
|
---|
5288 |
|
---|
5289 | fi
|
---|
5290 |
|
---|
5291 | for ac_header in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h sys/stat.h
|
---|
5292 | do :
|
---|
5293 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
5294 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
|
---|
5295 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
|
---|
5296 | cat >>confdefs.h <<_ACEOF
|
---|
5297 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
5298 | _ACEOF
|
---|
5299 |
|
---|
5300 | fi
|
---|
5301 |
|
---|
5302 | done
|
---|
5303 |
|
---|
5304 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5305 | /* end confdefs.h. */
|
---|
5306 | #include <stdio.h>
|
---|
5307 |
|
---|
5308 | _ACEOF
|
---|
5309 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5310 | $EGREP "fread" >/dev/null 2>&1; then :
|
---|
5311 | $as_echo "#define HAVE_FREAD_DECL 1" >>confdefs.h
|
---|
5312 |
|
---|
5313 | fi
|
---|
5314 | rm -f conftest*
|
---|
5315 |
|
---|
5316 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5317 | /* end confdefs.h. */
|
---|
5318 | #include <stdio.h>
|
---|
5319 |
|
---|
5320 | _ACEOF
|
---|
5321 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5322 | $EGREP "fgetc" >/dev/null 2>&1; then :
|
---|
5323 | $as_echo "#define HAVE_FGETC_DECL 1" >>confdefs.h
|
---|
5324 |
|
---|
5325 | fi
|
---|
5326 | rm -f conftest*
|
---|
5327 |
|
---|
5328 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5329 | /* end confdefs.h. */
|
---|
5330 | #include <sys/procfs.h>
|
---|
5331 |
|
---|
5332 | _ACEOF
|
---|
5333 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5334 | $EGREP "pr_brksize" >/dev/null 2>&1; then :
|
---|
5335 | $as_echo "#define HAVE_PR_BRKSIZE 1" >>confdefs.h
|
---|
5336 |
|
---|
5337 | fi
|
---|
5338 | rm -f conftest*
|
---|
5339 |
|
---|
5340 |
|
---|
5341 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
---|
5342 | # for constant arguments. Useless!
|
---|
5343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
|
---|
5344 | $as_echo_n "checking for working alloca.h... " >&6; }
|
---|
5345 | if test "${ac_cv_working_alloca_h+set}" = set; then :
|
---|
5346 | $as_echo_n "(cached) " >&6
|
---|
5347 | else
|
---|
5348 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5349 | /* end confdefs.h. */
|
---|
5350 | #include <alloca.h>
|
---|
5351 | int
|
---|
5352 | main ()
|
---|
5353 | {
|
---|
5354 | char *p = (char *) alloca (2 * sizeof (int));
|
---|
5355 | if (p) return 0;
|
---|
5356 | ;
|
---|
5357 | return 0;
|
---|
5358 | }
|
---|
5359 | _ACEOF
|
---|
5360 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5361 | ac_cv_working_alloca_h=yes
|
---|
5362 | else
|
---|
5363 | ac_cv_working_alloca_h=no
|
---|
5364 | fi
|
---|
5365 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5366 | conftest$ac_exeext conftest.$ac_ext
|
---|
5367 | fi
|
---|
5368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
|
---|
5369 | $as_echo "$ac_cv_working_alloca_h" >&6; }
|
---|
5370 | if test $ac_cv_working_alloca_h = yes; then
|
---|
5371 |
|
---|
5372 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
|
---|
5373 |
|
---|
5374 | fi
|
---|
5375 |
|
---|
5376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
|
---|
5377 | $as_echo_n "checking for alloca... " >&6; }
|
---|
5378 | if test "${ac_cv_func_alloca_works+set}" = set; then :
|
---|
5379 | $as_echo_n "(cached) " >&6
|
---|
5380 | else
|
---|
5381 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5382 | /* end confdefs.h. */
|
---|
5383 | #ifdef __GNUC__
|
---|
5384 | # define alloca __builtin_alloca
|
---|
5385 | #else
|
---|
5386 | # ifdef _MSC_VER
|
---|
5387 | # include <malloc.h>
|
---|
5388 | # define alloca _alloca
|
---|
5389 | # else
|
---|
5390 | # ifdef HAVE_ALLOCA_H
|
---|
5391 | # include <alloca.h>
|
---|
5392 | # else
|
---|
5393 | # ifdef _AIX
|
---|
5394 | #pragma alloca
|
---|
5395 | # else
|
---|
5396 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
---|
5397 | char *alloca ();
|
---|
5398 | # endif
|
---|
5399 | # endif
|
---|
5400 | # endif
|
---|
5401 | # endif
|
---|
5402 | #endif
|
---|
5403 |
|
---|
5404 | int
|
---|
5405 | main ()
|
---|
5406 | {
|
---|
5407 | char *p = (char *) alloca (1);
|
---|
5408 | if (p) return 0;
|
---|
5409 | ;
|
---|
5410 | return 0;
|
---|
5411 | }
|
---|
5412 | _ACEOF
|
---|
5413 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5414 | ac_cv_func_alloca_works=yes
|
---|
5415 | else
|
---|
5416 | ac_cv_func_alloca_works=no
|
---|
5417 | fi
|
---|
5418 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5419 | conftest$ac_exeext conftest.$ac_ext
|
---|
5420 | fi
|
---|
5421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
|
---|
5422 | $as_echo "$ac_cv_func_alloca_works" >&6; }
|
---|
5423 |
|
---|
5424 | if test $ac_cv_func_alloca_works = yes; then
|
---|
5425 |
|
---|
5426 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
|
---|
5427 |
|
---|
5428 | else
|
---|
5429 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
---|
5430 | # that cause trouble. Some versions do not even contain alloca or
|
---|
5431 | # contain a buggy version. If you still want to use their alloca,
|
---|
5432 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
---|
5433 |
|
---|
5434 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
|
---|
5435 |
|
---|
5436 | $as_echo "#define C_ALLOCA 1" >>confdefs.h
|
---|
5437 |
|
---|
5438 |
|
---|
5439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
|
---|
5440 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
|
---|
5441 | if test "${ac_cv_os_cray+set}" = set; then :
|
---|
5442 | $as_echo_n "(cached) " >&6
|
---|
5443 | else
|
---|
5444 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5445 | /* end confdefs.h. */
|
---|
5446 | #if defined CRAY && ! defined CRAY2
|
---|
5447 | webecray
|
---|
5448 | #else
|
---|
5449 | wenotbecray
|
---|
5450 | #endif
|
---|
5451 |
|
---|
5452 | _ACEOF
|
---|
5453 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5454 | $EGREP "webecray" >/dev/null 2>&1; then :
|
---|
5455 | ac_cv_os_cray=yes
|
---|
5456 | else
|
---|
5457 | ac_cv_os_cray=no
|
---|
5458 | fi
|
---|
5459 | rm -f conftest*
|
---|
5460 |
|
---|
5461 | fi
|
---|
5462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
|
---|
5463 | $as_echo "$ac_cv_os_cray" >&6; }
|
---|
5464 | if test $ac_cv_os_cray = yes; then
|
---|
5465 | for ac_func in _getb67 GETB67 getb67; do
|
---|
5466 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
5467 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
---|
5468 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
|
---|
5469 |
|
---|
5470 | cat >>confdefs.h <<_ACEOF
|
---|
5471 | #define CRAY_STACKSEG_END $ac_func
|
---|
5472 | _ACEOF
|
---|
5473 |
|
---|
5474 | break
|
---|
5475 | fi
|
---|
5476 |
|
---|
5477 | done
|
---|
5478 | fi
|
---|
5479 |
|
---|
5480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
|
---|
5481 | $as_echo_n "checking stack direction for C alloca... " >&6; }
|
---|
5482 | if test "${ac_cv_c_stack_direction+set}" = set; then :
|
---|
5483 | $as_echo_n "(cached) " >&6
|
---|
5484 | else
|
---|
5485 | if test "$cross_compiling" = yes; then :
|
---|
5486 | ac_cv_c_stack_direction=0
|
---|
5487 | else
|
---|
5488 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5489 | /* end confdefs.h. */
|
---|
5490 | $ac_includes_default
|
---|
5491 | int
|
---|
5492 | find_stack_direction ()
|
---|
5493 | {
|
---|
5494 | static char *addr = 0;
|
---|
5495 | auto char dummy;
|
---|
5496 | if (addr == 0)
|
---|
5497 | {
|
---|
5498 | addr = &dummy;
|
---|
5499 | return find_stack_direction ();
|
---|
5500 | }
|
---|
5501 | else
|
---|
5502 | return (&dummy > addr) ? 1 : -1;
|
---|
5503 | }
|
---|
5504 |
|
---|
5505 | int
|
---|
5506 | main ()
|
---|
5507 | {
|
---|
5508 | return find_stack_direction () < 0;
|
---|
5509 | }
|
---|
5510 | _ACEOF
|
---|
5511 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
5512 | ac_cv_c_stack_direction=1
|
---|
5513 | else
|
---|
5514 | ac_cv_c_stack_direction=-1
|
---|
5515 | fi
|
---|
5516 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
5517 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
5518 | fi
|
---|
5519 |
|
---|
5520 | fi
|
---|
5521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
|
---|
5522 | $as_echo "$ac_cv_c_stack_direction" >&6; }
|
---|
5523 | cat >>confdefs.h <<_ACEOF
|
---|
5524 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
---|
5525 | _ACEOF
|
---|
5526 |
|
---|
5527 |
|
---|
5528 | fi
|
---|
5529 |
|
---|
5530 | if test $ac_cv_c_compiler_gnu = yes; then
|
---|
5531 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
|
---|
5532 | $as_echo_n "checking whether $CC needs -traditional... " >&6; }
|
---|
5533 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
|
---|
5534 | $as_echo_n "(cached) " >&6
|
---|
5535 | else
|
---|
5536 | ac_pattern="Autoconf.*'x'"
|
---|
5537 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5538 | /* end confdefs.h. */
|
---|
5539 | #include <sgtty.h>
|
---|
5540 | Autoconf TIOCGETP
|
---|
5541 | _ACEOF
|
---|
5542 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5543 | $EGREP "$ac_pattern" >/dev/null 2>&1; then :
|
---|
5544 | ac_cv_prog_gcc_traditional=yes
|
---|
5545 | else
|
---|
5546 | ac_cv_prog_gcc_traditional=no
|
---|
5547 | fi
|
---|
5548 | rm -f conftest*
|
---|
5549 |
|
---|
5550 |
|
---|
5551 | if test $ac_cv_prog_gcc_traditional = no; then
|
---|
5552 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5553 | /* end confdefs.h. */
|
---|
5554 | #include <termio.h>
|
---|
5555 | Autoconf TCGETA
|
---|
5556 | _ACEOF
|
---|
5557 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5558 | $EGREP "$ac_pattern" >/dev/null 2>&1; then :
|
---|
5559 | ac_cv_prog_gcc_traditional=yes
|
---|
5560 | fi
|
---|
5561 | rm -f conftest*
|
---|
5562 |
|
---|
5563 | fi
|
---|
5564 | fi
|
---|
5565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
|
---|
5566 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
|
---|
5567 | if test $ac_cv_prog_gcc_traditional = yes; then
|
---|
5568 | CC="$CC -traditional"
|
---|
5569 | fi
|
---|
5570 | fi
|
---|
5571 |
|
---|
5572 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
|
---|
5573 | $as_echo_n "checking return type of signal handlers... " >&6; }
|
---|
5574 | if test "${ac_cv_type_signal+set}" = set; then :
|
---|
5575 | $as_echo_n "(cached) " >&6
|
---|
5576 | else
|
---|
5577 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5578 | /* end confdefs.h. */
|
---|
5579 | #include <sys/types.h>
|
---|
5580 | #include <signal.h>
|
---|
5581 |
|
---|
5582 | int
|
---|
5583 | main ()
|
---|
5584 | {
|
---|
5585 | return *(signal (0, 0)) (0) == 1;
|
---|
5586 | ;
|
---|
5587 | return 0;
|
---|
5588 | }
|
---|
5589 | _ACEOF
|
---|
5590 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
5591 | ac_cv_type_signal=int
|
---|
5592 | else
|
---|
5593 | ac_cv_type_signal=void
|
---|
5594 | fi
|
---|
5595 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5596 | fi
|
---|
5597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
|
---|
5598 | $as_echo "$ac_cv_type_signal" >&6; }
|
---|
5599 |
|
---|
5600 | cat >>confdefs.h <<_ACEOF
|
---|
5601 | #define RETSIGTYPE $ac_cv_type_signal
|
---|
5602 | _ACEOF
|
---|
5603 |
|
---|
5604 |
|
---|
5605 | for ac_func in vprintf
|
---|
5606 | do :
|
---|
5607 | ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
|
---|
5608 | if test "x$ac_cv_func_vprintf" = x""yes; then :
|
---|
5609 | cat >>confdefs.h <<_ACEOF
|
---|
5610 | #define HAVE_VPRINTF 1
|
---|
5611 | _ACEOF
|
---|
5612 |
|
---|
5613 | ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
|
---|
5614 | if test "x$ac_cv_func__doprnt" = x""yes; then :
|
---|
5615 |
|
---|
5616 | $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
|
---|
5617 |
|
---|
5618 | fi
|
---|
5619 |
|
---|
5620 | fi
|
---|
5621 | done
|
---|
5622 |
|
---|
5623 |
|
---|
5624 | for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
|
---|
5625 | do :
|
---|
5626 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
5627 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
---|
5628 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
|
---|
5629 | cat >>confdefs.h <<_ACEOF
|
---|
5630 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
5631 | _ACEOF
|
---|
5632 |
|
---|
5633 | fi
|
---|
5634 | done
|
---|
5635 |
|
---|
5636 | ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
|
---|
5637 | if test "x$ac_cv_func_ftruncate" = x""yes; then :
|
---|
5638 | $as_echo "#define HAVE_FTRUNCATE 1" >>confdefs.h
|
---|
5639 |
|
---|
5640 | else
|
---|
5641 | case " $LIBOBJS " in
|
---|
5642 | *" ftruncate.$ac_objext "* ) ;;
|
---|
5643 | *) LIBOBJS="$LIBOBJS ftruncate.$ac_objext"
|
---|
5644 | ;;
|
---|
5645 | esac
|
---|
5646 |
|
---|
5647 | fi
|
---|
5648 |
|
---|
5649 | ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
|
---|
5650 | if test "x$ac_cv_func_strstr" = x""yes; then :
|
---|
5651 | $as_echo "#define HAVE_STRSTR 1" >>confdefs.h
|
---|
5652 |
|
---|
5653 | else
|
---|
5654 | case " $LIBOBJS " in
|
---|
5655 | *" strstr.$ac_objext "* ) ;;
|
---|
5656 | *) LIBOBJS="$LIBOBJS strstr.$ac_objext"
|
---|
5657 | ;;
|
---|
5658 | esac
|
---|
5659 |
|
---|
5660 | fi
|
---|
5661 |
|
---|
5662 | ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
|
---|
5663 | if test "x$ac_cv_func_strcasecmp" = x""yes; then :
|
---|
5664 | $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
|
---|
5665 |
|
---|
5666 | else
|
---|
5667 | case " $LIBOBJS " in
|
---|
5668 | *" strcasecmp.$ac_objext "* ) ;;
|
---|
5669 | *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
|
---|
5670 | ;;
|
---|
5671 | esac
|
---|
5672 |
|
---|
5673 | fi
|
---|
5674 |
|
---|
5675 |
|
---|
5676 |
|
---|
5677 | ac_fn_c_check_func "$LINENO" "textdomain" "ac_cv_func_textdomain"
|
---|
5678 | if test "x$ac_cv_func_textdomain" = x""yes; then :
|
---|
5679 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h
|
---|
5680 |
|
---|
5681 | fi
|
---|
5682 |
|
---|
5683 |
|
---|
5684 | # *** Custom checking (based on GNU tar configure.in) ***
|
---|
5685 | # ---------------------------------------------------------------------------
|
---|
5686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HP-UX needing gmalloc" >&5
|
---|
5687 | $as_echo_n "checking for HP-UX needing gmalloc... " >&6; }
|
---|
5688 | if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
|
---|
5689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
5690 | $as_echo "yes" >&6; }
|
---|
5691 | case " $LIBOBJS " in
|
---|
5692 | *" gmalloc.$ac_objext "* ) ;;
|
---|
5693 | *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext"
|
---|
5694 | ;;
|
---|
5695 | esac
|
---|
5696 |
|
---|
5697 | $as_echo "#define HAVE_VALLOC 1" >>confdefs.h
|
---|
5698 |
|
---|
5699 | else
|
---|
5700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5701 | $as_echo "no" >&6; }
|
---|
5702 | for ac_func in valloc
|
---|
5703 | do :
|
---|
5704 | ac_fn_c_check_func "$LINENO" "valloc" "ac_cv_func_valloc"
|
---|
5705 | if test "x$ac_cv_func_valloc" = x""yes; then :
|
---|
5706 | cat >>confdefs.h <<_ACEOF
|
---|
5707 | #define HAVE_VALLOC 1
|
---|
5708 | _ACEOF
|
---|
5709 |
|
---|
5710 | fi
|
---|
5711 | done
|
---|
5712 |
|
---|
5713 | fi
|
---|
5714 |
|
---|
5715 | # we cannot generate static libraries under Darwin
|
---|
5716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apple MacOS X/Darwin" >&5
|
---|
5717 | $as_echo_n "checking for Apple MacOS X/Darwin... " >&6; }
|
---|
5718 | if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
|
---|
5719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
5720 | $as_echo "yes" >&6; }
|
---|
5721 | STATIC=""
|
---|
5722 | else
|
---|
5723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5724 | $as_echo "no" >&6; }
|
---|
5725 | STATIC="-static "
|
---|
5726 | fi
|
---|
5727 |
|
---|
5728 |
|
---|
5729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
|
---|
5730 | $as_echo_n "checking if malloc debugging is wanted... " >&6; }
|
---|
5731 |
|
---|
5732 | # Check whether --with-dmalloc was given.
|
---|
5733 | if test "${with_dmalloc+set}" = set; then :
|
---|
5734 | withval=$with_dmalloc; if test "$withval" = yes; then
|
---|
5735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
5736 | $as_echo "yes" >&6; }
|
---|
5737 | $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
|
---|
5738 |
|
---|
5739 | LIBS="$LIBS -ldmalloc"
|
---|
5740 | LDFLAGS="$LDFLAGS -g"
|
---|
5741 | else
|
---|
5742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5743 | $as_echo "no" >&6; }
|
---|
5744 | fi
|
---|
5745 | else
|
---|
5746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5747 | $as_echo "no" >&6; }
|
---|
5748 | fi
|
---|
5749 |
|
---|
5750 |
|
---|
5751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which of rx or regex is wanted" >&5
|
---|
5752 | $as_echo_n "checking which of rx or regex is wanted... " >&6; }
|
---|
5753 |
|
---|
5754 | # Check whether --with-regex was given.
|
---|
5755 | if test "${with_regex+set}" = set; then :
|
---|
5756 | withval=$with_regex; if test "$withval" = yes; then
|
---|
5757 | ac_with_regex=1
|
---|
5758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: regex" >&5
|
---|
5759 | $as_echo "regex" >&6; }
|
---|
5760 | $as_echo "#define WITH_REGEX 1" >>confdefs.h
|
---|
5761 |
|
---|
5762 | case " $LIBOBJS " in
|
---|
5763 | *" regex.$ac_objext "* ) ;;
|
---|
5764 | *) LIBOBJS="$LIBOBJS regex.$ac_objext"
|
---|
5765 | ;;
|
---|
5766 | esac
|
---|
5767 |
|
---|
5768 | fi
|
---|
5769 | fi
|
---|
5770 |
|
---|
5771 | if test -z "$ac_with_regex"; then
|
---|
5772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: rx" >&5
|
---|
5773 | $as_echo "rx" >&6; }
|
---|
5774 | ac_fn_c_check_func "$LINENO" "re_rx_search" "ac_cv_func_re_rx_search"
|
---|
5775 | if test "x$ac_cv_func_re_rx_search" = x""yes; then :
|
---|
5776 |
|
---|
5777 | else
|
---|
5778 | case " $LIBOBJS " in
|
---|
5779 | *" rx.$ac_objext "* ) ;;
|
---|
5780 | *) LIBOBJS="$LIBOBJS rx.$ac_objext"
|
---|
5781 | ;;
|
---|
5782 | esac
|
---|
5783 |
|
---|
5784 | fi
|
---|
5785 |
|
---|
5786 | fi
|
---|
5787 |
|
---|
5788 |
|
---|
5789 | # ---------------------------------------------------------------------------
|
---|
5790 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
5791 | case " $LIBOBJS " in
|
---|
5792 | *" xmalloc.$ac_objext "* ) ;;
|
---|
5793 | *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext"
|
---|
5794 | ;;
|
---|
5795 | esac
|
---|
5796 |
|
---|
5797 | case " $LIBOBJS " in
|
---|
5798 | *" error.$ac_objext "* ) ;;
|
---|
5799 | *) LIBOBJS="$LIBOBJS error.$ac_objext"
|
---|
5800 | ;;
|
---|
5801 | esac
|
---|
5802 |
|
---|
5803 | fi
|
---|
5804 |
|
---|
5805 |
|
---|
5806 | # ---------------------------------------------------------------------------
|
---|
5807 |
|
---|
5808 | ac_ext=cpp
|
---|
5809 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
5810 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
5811 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
5812 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
5813 |
|
---|
5814 |
|
---|
5815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that Perl 5 is available" >&5
|
---|
5816 | $as_echo_n "checking that Perl 5 is available... " >&6; }
|
---|
5817 | success="no"
|
---|
5818 | pl_path="$PATH"
|
---|
5819 | IFS="${IFS= }"; pl_save_ifs="$IFS"; IFS=":"
|
---|
5820 | for pl_dir in $pl_path; do
|
---|
5821 | test -z "$pl_dir" && pl_dir=.
|
---|
5822 | if test -x $pl_dir/perl; then
|
---|
5823 | success="yes"
|
---|
5824 | break
|
---|
5825 | fi
|
---|
5826 | done
|
---|
5827 | IFS="$pl_save_ifs"
|
---|
5828 |
|
---|
5829 | if test $success = "yes"; then
|
---|
5830 | try=`perl configtest.pl` || try="0"
|
---|
5831 | try=`expr $try \> 5.000`
|
---|
5832 | if test $try = "1"; then
|
---|
5833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"yes\"" >&5
|
---|
5834 | $as_echo "\"yes\"" >&6; }
|
---|
5835 | else
|
---|
5836 | success="no"
|
---|
5837 | fi
|
---|
5838 | fi
|
---|
5839 |
|
---|
5840 | if test $success = "no"; then
|
---|
5841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5
|
---|
5842 | $as_echo "\"no\"" >&6; }
|
---|
5843 | as_fn_error $? "\"Perl 5 not available - cannot install\"" "$LINENO" 5
|
---|
5844 | fi
|
---|
5845 |
|
---|
5846 | success=no
|
---|
5847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking \"whether STL library has known faults\"" >&5
|
---|
5848 | $as_echo_n "checking \"whether STL library has known faults\"... " >&6; }
|
---|
5849 |
|
---|
5850 |
|
---|
5851 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5852 | /* end confdefs.h. */
|
---|
5853 | #include <vector>
|
---|
5854 |
|
---|
5855 | int
|
---|
5856 | main ()
|
---|
5857 | {
|
---|
5858 |
|
---|
5859 | ;
|
---|
5860 | return 0;
|
---|
5861 | }
|
---|
5862 | _ACEOF
|
---|
5863 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
5864 | success=yes
|
---|
5865 | fi
|
---|
5866 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5867 |
|
---|
5868 | if test $success = "no"; then
|
---|
5869 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5870 | /* end confdefs.h. */
|
---|
5871 | #include <vector.h>
|
---|
5872 |
|
---|
5873 | int
|
---|
5874 | main ()
|
---|
5875 | {
|
---|
5876 |
|
---|
5877 | ;
|
---|
5878 | return 0;
|
---|
5879 | }
|
---|
5880 | _ACEOF
|
---|
5881 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
5882 | success="yes"
|
---|
5883 | fi
|
---|
5884 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5885 | fi
|
---|
5886 |
|
---|
5887 | if test $success = "no"; then
|
---|
5888 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5889 | /* end confdefs.h. */
|
---|
5890 | #include <ospace\\std\\vector>
|
---|
5891 |
|
---|
5892 | int
|
---|
5893 | main ()
|
---|
5894 | {
|
---|
5895 |
|
---|
5896 | ;
|
---|
5897 | return 0;
|
---|
5898 | }
|
---|
5899 | _ACEOF
|
---|
5900 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
5901 | success="yes"
|
---|
5902 | fi
|
---|
5903 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5904 | fi
|
---|
5905 |
|
---|
5906 | if test $success = yes; then
|
---|
5907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5
|
---|
5908 | $as_echo "\"no\"" >&6; }
|
---|
5909 | else
|
---|
5910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"yes\"" >&5
|
---|
5911 | $as_echo "\"yes\"" >&6; }
|
---|
5912 | as_fn_error $? "\"STL Broken - Obtain newer version of GNU C Compiler\"" "$LINENO" 5
|
---|
5913 | fi
|
---|
5914 |
|
---|
5915 | gsdlos=`uname | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
|
---|
5916 | # check for running bash under cygwin
|
---|
5917 | if test "`echo $gsdlos | sed 's/cygwin//'`" != "$gsdlos" ;
|
---|
5918 | then
|
---|
5919 | gsdlos=windows
|
---|
5920 | fi
|
---|
5921 |
|
---|
5922 |
|
---|
5923 | # check for endianness
|
---|
5924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
|
---|
5925 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
|
---|
5926 | if test "${ac_cv_c_bigendian+set}" = set; then :
|
---|
5927 | $as_echo_n "(cached) " >&6
|
---|
5928 | else
|
---|
5929 | ac_cv_c_bigendian=unknown
|
---|
5930 | # See if we're dealing with a universal compiler.
|
---|
5931 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5932 | /* end confdefs.h. */
|
---|
5933 | #ifndef __APPLE_CC__
|
---|
5934 | not a universal capable compiler
|
---|
5935 | #endif
|
---|
5936 | typedef int dummy;
|
---|
5937 |
|
---|
5938 | _ACEOF
|
---|
5939 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
5940 |
|
---|
5941 | # Check for potential -arch flags. It is not universal unless
|
---|
5942 | # there are at least two -arch flags with different values.
|
---|
5943 | ac_arch=
|
---|
5944 | ac_prev=
|
---|
5945 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
|
---|
5946 | if test -n "$ac_prev"; then
|
---|
5947 | case $ac_word in
|
---|
5948 | i?86 | x86_64 | ppc | ppc64)
|
---|
5949 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
|
---|
5950 | ac_arch=$ac_word
|
---|
5951 | else
|
---|
5952 | ac_cv_c_bigendian=universal
|
---|
5953 | break
|
---|
5954 | fi
|
---|
5955 | ;;
|
---|
5956 | esac
|
---|
5957 | ac_prev=
|
---|
5958 | elif test "x$ac_word" = "x-arch"; then
|
---|
5959 | ac_prev=arch
|
---|
5960 | fi
|
---|
5961 | done
|
---|
5962 | fi
|
---|
5963 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5964 | if test $ac_cv_c_bigendian = unknown; then
|
---|
5965 | # See if sys/param.h defines the BYTE_ORDER macro.
|
---|
5966 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5967 | /* end confdefs.h. */
|
---|
5968 | #include <sys/types.h>
|
---|
5969 | #include <sys/param.h>
|
---|
5970 |
|
---|
5971 | int
|
---|
5972 | main ()
|
---|
5973 | {
|
---|
5974 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
|
---|
5975 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
|
---|
5976 | && LITTLE_ENDIAN)
|
---|
5977 | bogus endian macros
|
---|
5978 | #endif
|
---|
5979 |
|
---|
5980 | ;
|
---|
5981 | return 0;
|
---|
5982 | }
|
---|
5983 | _ACEOF
|
---|
5984 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
5985 | # It does; now see whether it defined to BIG_ENDIAN or not.
|
---|
5986 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5987 | /* end confdefs.h. */
|
---|
5988 | #include <sys/types.h>
|
---|
5989 | #include <sys/param.h>
|
---|
5990 |
|
---|
5991 | int
|
---|
5992 | main ()
|
---|
5993 | {
|
---|
5994 | #if BYTE_ORDER != BIG_ENDIAN
|
---|
5995 | not big endian
|
---|
5996 | #endif
|
---|
5997 |
|
---|
5998 | ;
|
---|
5999 | return 0;
|
---|
6000 | }
|
---|
6001 | _ACEOF
|
---|
6002 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
6003 | ac_cv_c_bigendian=yes
|
---|
6004 | else
|
---|
6005 | ac_cv_c_bigendian=no
|
---|
6006 | fi
|
---|
6007 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6008 | fi
|
---|
6009 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6010 | fi
|
---|
6011 | if test $ac_cv_c_bigendian = unknown; then
|
---|
6012 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
|
---|
6013 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6014 | /* end confdefs.h. */
|
---|
6015 | #include <limits.h>
|
---|
6016 |
|
---|
6017 | int
|
---|
6018 | main ()
|
---|
6019 | {
|
---|
6020 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
|
---|
6021 | bogus endian macros
|
---|
6022 | #endif
|
---|
6023 |
|
---|
6024 | ;
|
---|
6025 | return 0;
|
---|
6026 | }
|
---|
6027 | _ACEOF
|
---|
6028 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
6029 | # It does; now see whether it defined to _BIG_ENDIAN or not.
|
---|
6030 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6031 | /* end confdefs.h. */
|
---|
6032 | #include <limits.h>
|
---|
6033 |
|
---|
6034 | int
|
---|
6035 | main ()
|
---|
6036 | {
|
---|
6037 | #ifndef _BIG_ENDIAN
|
---|
6038 | not big endian
|
---|
6039 | #endif
|
---|
6040 |
|
---|
6041 | ;
|
---|
6042 | return 0;
|
---|
6043 | }
|
---|
6044 | _ACEOF
|
---|
6045 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
6046 | ac_cv_c_bigendian=yes
|
---|
6047 | else
|
---|
6048 | ac_cv_c_bigendian=no
|
---|
6049 | fi
|
---|
6050 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6051 | fi
|
---|
6052 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6053 | fi
|
---|
6054 | if test $ac_cv_c_bigendian = unknown; then
|
---|
6055 | # Compile a test program.
|
---|
6056 | if test "$cross_compiling" = yes; then :
|
---|
6057 | # Try to guess by grepping values from an object file.
|
---|
6058 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6059 | /* end confdefs.h. */
|
---|
6060 | short int ascii_mm[] =
|
---|
6061 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
|
---|
6062 | short int ascii_ii[] =
|
---|
6063 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
|
---|
6064 | int use_ascii (int i) {
|
---|
6065 | return ascii_mm[i] + ascii_ii[i];
|
---|
6066 | }
|
---|
6067 | short int ebcdic_ii[] =
|
---|
6068 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
|
---|
6069 | short int ebcdic_mm[] =
|
---|
6070 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
|
---|
6071 | int use_ebcdic (int i) {
|
---|
6072 | return ebcdic_mm[i] + ebcdic_ii[i];
|
---|
6073 | }
|
---|
6074 | extern int foo;
|
---|
6075 |
|
---|
6076 | int
|
---|
6077 | main ()
|
---|
6078 | {
|
---|
6079 | return use_ascii (foo) == use_ebcdic (foo);
|
---|
6080 | ;
|
---|
6081 | return 0;
|
---|
6082 | }
|
---|
6083 | _ACEOF
|
---|
6084 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
6085 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
|
---|
6086 | ac_cv_c_bigendian=yes
|
---|
6087 | fi
|
---|
6088 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
|
---|
6089 | if test "$ac_cv_c_bigendian" = unknown; then
|
---|
6090 | ac_cv_c_bigendian=no
|
---|
6091 | else
|
---|
6092 | # finding both strings is unlikely to happen, but who knows?
|
---|
6093 | ac_cv_c_bigendian=unknown
|
---|
6094 | fi
|
---|
6095 | fi
|
---|
6096 | fi
|
---|
6097 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6098 | else
|
---|
6099 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6100 | /* end confdefs.h. */
|
---|
6101 | $ac_includes_default
|
---|
6102 | int
|
---|
6103 | main ()
|
---|
6104 | {
|
---|
6105 |
|
---|
6106 | /* Are we little or big endian? From Harbison&Steele. */
|
---|
6107 | union
|
---|
6108 | {
|
---|
6109 | long int l;
|
---|
6110 | char c[sizeof (long int)];
|
---|
6111 | } u;
|
---|
6112 | u.l = 1;
|
---|
6113 | return u.c[sizeof (long int) - 1] == 1;
|
---|
6114 |
|
---|
6115 | ;
|
---|
6116 | return 0;
|
---|
6117 | }
|
---|
6118 | _ACEOF
|
---|
6119 | if ac_fn_cxx_try_run "$LINENO"; then :
|
---|
6120 | ac_cv_c_bigendian=no
|
---|
6121 | else
|
---|
6122 | ac_cv_c_bigendian=yes
|
---|
6123 | fi
|
---|
6124 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
6125 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
6126 | fi
|
---|
6127 |
|
---|
6128 | fi
|
---|
6129 | fi
|
---|
6130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
|
---|
6131 | $as_echo "$ac_cv_c_bigendian" >&6; }
|
---|
6132 | case $ac_cv_c_bigendian in #(
|
---|
6133 | yes)
|
---|
6134 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
|
---|
6135 | ;; #(
|
---|
6136 | no)
|
---|
6137 | ;; #(
|
---|
6138 | universal)
|
---|
6139 |
|
---|
6140 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
|
---|
6141 |
|
---|
6142 | ;; #(
|
---|
6143 | *)
|
---|
6144 | as_fn_error $? "unknown endianness
|
---|
6145 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
|
---|
6146 | esac
|
---|
6147 |
|
---|
6148 | # ---------------------------------------------------------------------------
|
---|
6149 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
6150 | case " $LIBOBJS " in
|
---|
6151 | *" xmalloc.o.$ac_objext "* ) ;;
|
---|
6152 | *) LIBOBJS="$LIBOBJS xmalloc.o.$ac_objext"
|
---|
6153 | ;;
|
---|
6154 | esac
|
---|
6155 |
|
---|
6156 | case " $LIBOBJS " in
|
---|
6157 | *" error.$ac_objext "* ) ;;
|
---|
6158 | *) LIBOBJS="$LIBOBJS error.$ac_objext"
|
---|
6159 | ;;
|
---|
6160 | esac
|
---|
6161 |
|
---|
6162 | fi
|
---|
6163 |
|
---|
6164 | # ---------------------------------------------------------------------------
|
---|
6165 |
|
---|
6166 | moduleDirs=""
|
---|
6167 | MODULEDIRS=""
|
---|
6168 | if test -d modules ; then
|
---|
6169 | for x in `find modules -mindepth 1 -maxdepth 2`; do
|
---|
6170 | if test -d "$x"; then
|
---|
6171 | d="$x/Makefile.in"
|
---|
6172 | if test -e "$d"; then
|
---|
6173 | moduleDirs="$moduleDirs $x/Makefile"
|
---|
6174 | MODULEDIRS="$MODULEDIRS $x"
|
---|
6175 | fi
|
---|
6176 | fi
|
---|
6177 | done
|
---|
6178 | echo "Making $moduleDirs in modules directory"
|
---|
6179 |
|
---|
6180 | fi
|
---|
6181 |
|
---|
6182 |
|
---|
6183 | # ---------------------------------------------------------------------------
|
---|
6184 |
|
---|
6185 | # indexers needs a bindir option to get the binaries into the right place
|
---|
6186 | gsdlprefix=`pwd`
|
---|
6187 | ac_configure_args="$ac_configure_args --bindir=$gsdlprefix/bin/$gsdlos --libdir=$gsdlprefix/lib/$gsdlos"
|
---|
6188 |
|
---|
6189 |
|
---|
6190 | subdirs="$subdirs common-src"
|
---|
6191 |
|
---|
6192 | subdirs="$subdirs build-src"
|
---|
6193 |
|
---|
6194 |
|
---|
6195 | # the list of folders in the src folder
|
---|
6196 | srclist="common-src/Makefile \
|
---|
6197 | build-src/Makefile"
|
---|
6198 |
|
---|
6199 | if test -d runtime-src; then
|
---|
6200 | subdirs="$subdirs runtime-src"
|
---|
6201 |
|
---|
6202 | srclist="$srclist \
|
---|
6203 | runtime-src/Makefile"
|
---|
6204 | fi
|
---|
6205 |
|
---|
6206 | ac_config_files="$ac_config_files Makefile $srclist $moduleDirs"
|
---|
6207 |
|
---|
6208 | cat >confcache <<\_ACEOF
|
---|
6209 | # This file is a shell script that caches the results of configure
|
---|
6210 | # tests run on this system so they can be shared between configure
|
---|
6211 | # scripts and configure runs, see configure's option --config-cache.
|
---|
6212 | # It is not useful on other systems. If it contains results you don't
|
---|
6213 | # want to keep, you may remove or edit it.
|
---|
6214 | #
|
---|
6215 | # config.status only pays attention to the cache file if you give it
|
---|
6216 | # the --recheck option to rerun configure.
|
---|
6217 | #
|
---|
6218 | # `ac_cv_env_foo' variables (set or unset) will be overridden when
|
---|
6219 | # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
---|
6220 | # following values.
|
---|
6221 |
|
---|
6222 | _ACEOF
|
---|
6223 |
|
---|
6224 | # The following way of writing the cache mishandles newlines in values,
|
---|
6225 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
6226 | # So, we kill variables containing newlines.
|
---|
6227 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
6228 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
6229 | (
|
---|
6230 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
|
---|
6231 | eval ac_val=\$$ac_var
|
---|
6232 | case $ac_val in #(
|
---|
6233 | *${as_nl}*)
|
---|
6234 | case $ac_var in #(
|
---|
6235 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
---|
6236 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
---|
6237 | esac
|
---|
6238 | case $ac_var in #(
|
---|
6239 | _ | IFS | as_nl) ;; #(
|
---|
6240 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
|
---|
6241 | *) { eval $ac_var=; unset $ac_var;} ;;
|
---|
6242 | esac ;;
|
---|
6243 | esac
|
---|
6244 | done
|
---|
6245 |
|
---|
6246 | (set) 2>&1 |
|
---|
6247 | case $as_nl`(ac_space=' '; set) 2>&1` in #(
|
---|
6248 | *${as_nl}ac_space=\ *)
|
---|
6249 | # `set' does not quote correctly, so add quotes: double-quote
|
---|
6250 | # substitution turns \\\\ into \\, and sed turns \\ into \.
|
---|
6251 | sed -n \
|
---|
6252 | "s/'/'\\\\''/g;
|
---|
6253 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
---|
6254 | ;; #(
|
---|
6255 | *)
|
---|
6256 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
6257 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
---|
6258 | ;;
|
---|
6259 | esac |
|
---|
6260 | sort
|
---|
6261 | ) |
|
---|
6262 | sed '
|
---|
6263 | /^ac_cv_env_/b end
|
---|
6264 | t clear
|
---|
6265 | :clear
|
---|
6266 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
---|
6267 | t end
|
---|
6268 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
---|
6269 | :end' >>confcache
|
---|
6270 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
|
---|
6271 | if test -w "$cache_file"; then
|
---|
6272 | test "x$cache_file" != "x/dev/null" &&
|
---|
6273 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
|
---|
6274 | $as_echo "$as_me: updating cache $cache_file" >&6;}
|
---|
6275 | cat confcache >$cache_file
|
---|
6276 | else
|
---|
6277 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
|
---|
6278 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
|
---|
6279 | fi
|
---|
6280 | fi
|
---|
6281 | rm -f confcache
|
---|
6282 |
|
---|
6283 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
6284 | # Let make expand exec_prefix.
|
---|
6285 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
6286 |
|
---|
6287 | DEFS=-DHAVE_CONFIG_H
|
---|
6288 |
|
---|
6289 | ac_libobjs=
|
---|
6290 | ac_ltlibobjs=
|
---|
6291 | U=
|
---|
6292 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
---|
6293 | # 1. Remove the extension, and $U if already installed.
|
---|
6294 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
|
---|
6295 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
|
---|
6296 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
|
---|
6297 | # will be set to the directory where LIBOBJS objects are built.
|
---|
6298 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
|
---|
6299 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
|
---|
6300 | done
|
---|
6301 | LIBOBJS=$ac_libobjs
|
---|
6302 |
|
---|
6303 | LTLIBOBJS=$ac_ltlibobjs
|
---|
6304 |
|
---|
6305 |
|
---|
6306 |
|
---|
6307 |
|
---|
6308 | : ${CONFIG_STATUS=./config.status}
|
---|
6309 | ac_write_fail=0
|
---|
6310 | ac_clean_files_save=$ac_clean_files
|
---|
6311 | ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
---|
6312 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
|
---|
6313 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
---|
6314 | as_write_fail=0
|
---|
6315 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
|
---|
6316 | #! $SHELL
|
---|
6317 | # Generated by $as_me.
|
---|
6318 | # Run this file to recreate the current configuration.
|
---|
6319 | # Compiler output produced by configure, useful for debugging
|
---|
6320 | # configure, is in config.log if it exists.
|
---|
6321 |
|
---|
6322 | debug=false
|
---|
6323 | ac_cs_recheck=false
|
---|
6324 | ac_cs_silent=false
|
---|
6325 |
|
---|
6326 | SHELL=\${CONFIG_SHELL-$SHELL}
|
---|
6327 | export SHELL
|
---|
6328 | _ASEOF
|
---|
6329 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
|
---|
6330 | ## -------------------- ##
|
---|
6331 | ## M4sh Initialization. ##
|
---|
6332 | ## -------------------- ##
|
---|
6333 |
|
---|
6334 | # Be more Bourne compatible
|
---|
6335 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
6336 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
|
---|
6337 | emulate sh
|
---|
6338 | NULLCMD=:
|
---|
6339 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
|
---|
6340 | # is contrary to our usage. Disable this feature.
|
---|
6341 | alias -g '${1+"$@"}'='"$@"'
|
---|
6342 | setopt NO_GLOB_SUBST
|
---|
6343 | else
|
---|
6344 | case `(set -o) 2>/dev/null` in #(
|
---|
6345 | *posix*) :
|
---|
6346 | set -o posix ;; #(
|
---|
6347 | *) :
|
---|
6348 | ;;
|
---|
6349 | esac
|
---|
6350 | fi
|
---|
6351 |
|
---|
6352 |
|
---|
6353 | as_nl='
|
---|
6354 | '
|
---|
6355 | export as_nl
|
---|
6356 | # Printing a long string crashes Solaris 7 /usr/bin/printf.
|
---|
6357 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
---|
6358 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
6359 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
6360 | # Prefer a ksh shell builtin over an external printf program on Solaris,
|
---|
6361 | # but without wasting forks for bash or zsh.
|
---|
6362 | if test -z "$BASH_VERSION$ZSH_VERSION" \
|
---|
6363 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
6364 | as_echo='print -r --'
|
---|
6365 | as_echo_n='print -rn --'
|
---|
6366 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
6367 | as_echo='printf %s\n'
|
---|
6368 | as_echo_n='printf %s'
|
---|
6369 | else
|
---|
6370 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
|
---|
6371 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
|
---|
6372 | as_echo_n='/usr/ucb/echo -n'
|
---|
6373 | else
|
---|
6374 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
|
---|
6375 | as_echo_n_body='eval
|
---|
6376 | arg=$1;
|
---|
6377 | case $arg in #(
|
---|
6378 | *"$as_nl"*)
|
---|
6379 | expr "X$arg" : "X\\(.*\\)$as_nl";
|
---|
6380 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
|
---|
6381 | esac;
|
---|
6382 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
|
---|
6383 | '
|
---|
6384 | export as_echo_n_body
|
---|
6385 | as_echo_n='sh -c $as_echo_n_body as_echo'
|
---|
6386 | fi
|
---|
6387 | export as_echo_body
|
---|
6388 | as_echo='sh -c $as_echo_body as_echo'
|
---|
6389 | fi
|
---|
6390 |
|
---|
6391 | # The user is always right.
|
---|
6392 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
6393 | PATH_SEPARATOR=:
|
---|
6394 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
|
---|
6395 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
|
---|
6396 | PATH_SEPARATOR=';'
|
---|
6397 | }
|
---|
6398 | fi
|
---|
6399 |
|
---|
6400 |
|
---|
6401 | # IFS
|
---|
6402 | # We need space, tab and new line, in precisely that order. Quoting is
|
---|
6403 | # there to prevent editors from complaining about space-tab.
|
---|
6404 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
---|
6405 | # splitting by setting IFS to empty value.)
|
---|
6406 | IFS=" "" $as_nl"
|
---|
6407 |
|
---|
6408 | # Find who we are. Look in the path if we contain no directory separator.
|
---|
6409 | case $0 in #((
|
---|
6410 | *[\\/]* ) as_myself=$0 ;;
|
---|
6411 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
6412 | for as_dir in $PATH
|
---|
6413 | do
|
---|
6414 | IFS=$as_save_IFS
|
---|
6415 | test -z "$as_dir" && as_dir=.
|
---|
6416 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
6417 | done
|
---|
6418 | IFS=$as_save_IFS
|
---|
6419 |
|
---|
6420 | ;;
|
---|
6421 | esac
|
---|
6422 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
6423 | # in which case we are not to be found in the path.
|
---|
6424 | if test "x$as_myself" = x; then
|
---|
6425 | as_myself=$0
|
---|
6426 | fi
|
---|
6427 | if test ! -f "$as_myself"; then
|
---|
6428 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
---|
6429 | exit 1
|
---|
6430 | fi
|
---|
6431 |
|
---|
6432 | # Unset variables that we do not need and which cause bugs (e.g. in
|
---|
6433 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
|
---|
6434 | # suppresses any "Segmentation fault" message there. '((' could
|
---|
6435 | # trigger a bug in pdksh 5.2.14.
|
---|
6436 | for as_var in BASH_ENV ENV MAIL MAILPATH
|
---|
6437 | do eval test x\${$as_var+set} = xset \
|
---|
6438 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
|
---|
6439 | done
|
---|
6440 | PS1='$ '
|
---|
6441 | PS2='> '
|
---|
6442 | PS4='+ '
|
---|
6443 |
|
---|
6444 | # NLS nuisances.
|
---|
6445 | LC_ALL=C
|
---|
6446 | export LC_ALL
|
---|
6447 | LANGUAGE=C
|
---|
6448 | export LANGUAGE
|
---|
6449 |
|
---|
6450 | # CDPATH.
|
---|
6451 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
---|
6452 |
|
---|
6453 |
|
---|
6454 | # as_fn_error STATUS ERROR [LINENO LOG_FD]
|
---|
6455 | # ----------------------------------------
|
---|
6456 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
|
---|
6457 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
|
---|
6458 | # script with STATUS, using 1 if that was 0.
|
---|
6459 | as_fn_error ()
|
---|
6460 | {
|
---|
6461 | as_status=$1; test $as_status -eq 0 && as_status=1
|
---|
6462 | if test "$4"; then
|
---|
6463 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
6464 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
|
---|
6465 | fi
|
---|
6466 | $as_echo "$as_me: error: $2" >&2
|
---|
6467 | as_fn_exit $as_status
|
---|
6468 | } # as_fn_error
|
---|
6469 |
|
---|
6470 |
|
---|
6471 | # as_fn_set_status STATUS
|
---|
6472 | # -----------------------
|
---|
6473 | # Set $? to STATUS, without forking.
|
---|
6474 | as_fn_set_status ()
|
---|
6475 | {
|
---|
6476 | return $1
|
---|
6477 | } # as_fn_set_status
|
---|
6478 |
|
---|
6479 | # as_fn_exit STATUS
|
---|
6480 | # -----------------
|
---|
6481 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
|
---|
6482 | as_fn_exit ()
|
---|
6483 | {
|
---|
6484 | set +e
|
---|
6485 | as_fn_set_status $1
|
---|
6486 | exit $1
|
---|
6487 | } # as_fn_exit
|
---|
6488 |
|
---|
6489 | # as_fn_unset VAR
|
---|
6490 | # ---------------
|
---|
6491 | # Portably unset VAR.
|
---|
6492 | as_fn_unset ()
|
---|
6493 | {
|
---|
6494 | { eval $1=; unset $1;}
|
---|
6495 | }
|
---|
6496 | as_unset=as_fn_unset
|
---|
6497 | # as_fn_append VAR VALUE
|
---|
6498 | # ----------------------
|
---|
6499 | # Append the text in VALUE to the end of the definition contained in VAR. Take
|
---|
6500 | # advantage of any shell optimizations that allow amortized linear growth over
|
---|
6501 | # repeated appends, instead of the typical quadratic growth present in naive
|
---|
6502 | # implementations.
|
---|
6503 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
|
---|
6504 | eval 'as_fn_append ()
|
---|
6505 | {
|
---|
6506 | eval $1+=\$2
|
---|
6507 | }'
|
---|
6508 | else
|
---|
6509 | as_fn_append ()
|
---|
6510 | {
|
---|
6511 | eval $1=\$$1\$2
|
---|
6512 | }
|
---|
6513 | fi # as_fn_append
|
---|
6514 |
|
---|
6515 | # as_fn_arith ARG...
|
---|
6516 | # ------------------
|
---|
6517 | # Perform arithmetic evaluation on the ARGs, and store the result in the
|
---|
6518 | # global $as_val. Take advantage of shells that can avoid forks. The arguments
|
---|
6519 | # must be portable across $(()) and expr.
|
---|
6520 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
|
---|
6521 | eval 'as_fn_arith ()
|
---|
6522 | {
|
---|
6523 | as_val=$(( $* ))
|
---|
6524 | }'
|
---|
6525 | else
|
---|
6526 | as_fn_arith ()
|
---|
6527 | {
|
---|
6528 | as_val=`expr "$@" || test $? -eq 1`
|
---|
6529 | }
|
---|
6530 | fi # as_fn_arith
|
---|
6531 |
|
---|
6532 |
|
---|
6533 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
6534 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
6535 | as_expr=expr
|
---|
6536 | else
|
---|
6537 | as_expr=false
|
---|
6538 | fi
|
---|
6539 |
|
---|
6540 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
---|
6541 | as_basename=basename
|
---|
6542 | else
|
---|
6543 | as_basename=false
|
---|
6544 | fi
|
---|
6545 |
|
---|
6546 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
---|
6547 | as_dirname=dirname
|
---|
6548 | else
|
---|
6549 | as_dirname=false
|
---|
6550 | fi
|
---|
6551 |
|
---|
6552 | as_me=`$as_basename -- "$0" ||
|
---|
6553 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
6554 | X"$0" : 'X\(//\)$' \| \
|
---|
6555 | X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
6556 | $as_echo X/"$0" |
|
---|
6557 | sed '/^.*\/\([^/][^/]*\)\/*$/{
|
---|
6558 | s//\1/
|
---|
6559 | q
|
---|
6560 | }
|
---|
6561 | /^X\/\(\/\/\)$/{
|
---|
6562 | s//\1/
|
---|
6563 | q
|
---|
6564 | }
|
---|
6565 | /^X\/\(\/\).*/{
|
---|
6566 | s//\1/
|
---|
6567 | q
|
---|
6568 | }
|
---|
6569 | s/.*/./; q'`
|
---|
6570 |
|
---|
6571 | # Avoid depending upon Character Ranges.
|
---|
6572 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
6573 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
6574 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
6575 | as_cr_digits='0123456789'
|
---|
6576 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
6577 |
|
---|
6578 | ECHO_C= ECHO_N= ECHO_T=
|
---|
6579 | case `echo -n x` in #(((((
|
---|
6580 | -n*)
|
---|
6581 | case `echo 'xy\c'` in
|
---|
6582 | *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
---|
6583 | xy) ECHO_C='\c';;
|
---|
6584 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
|
---|
6585 | ECHO_T=' ';;
|
---|
6586 | esac;;
|
---|
6587 | *)
|
---|
6588 | ECHO_N='-n';;
|
---|
6589 | esac
|
---|
6590 |
|
---|
6591 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
6592 | if test -d conf$$.dir; then
|
---|
6593 | rm -f conf$$.dir/conf$$.file
|
---|
6594 | else
|
---|
6595 | rm -f conf$$.dir
|
---|
6596 | mkdir conf$$.dir 2>/dev/null
|
---|
6597 | fi
|
---|
6598 | if (echo >conf$$.file) 2>/dev/null; then
|
---|
6599 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
6600 | as_ln_s='ln -s'
|
---|
6601 | # ... but there are two gotchas:
|
---|
6602 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
---|
6603 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
---|
6604 | # In both cases, we have to default to `cp -p'.
|
---|
6605 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
---|
6606 | as_ln_s='cp -p'
|
---|
6607 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
6608 | as_ln_s=ln
|
---|
6609 | else
|
---|
6610 | as_ln_s='cp -p'
|
---|
6611 | fi
|
---|
6612 | else
|
---|
6613 | as_ln_s='cp -p'
|
---|
6614 | fi
|
---|
6615 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
---|
6616 | rmdir conf$$.dir 2>/dev/null
|
---|
6617 |
|
---|
6618 |
|
---|
6619 | # as_fn_mkdir_p
|
---|
6620 | # -------------
|
---|
6621 | # Create "$as_dir" as a directory, including parents if necessary.
|
---|
6622 | as_fn_mkdir_p ()
|
---|
6623 | {
|
---|
6624 |
|
---|
6625 | case $as_dir in #(
|
---|
6626 | -*) as_dir=./$as_dir;;
|
---|
6627 | esac
|
---|
6628 | test -d "$as_dir" || eval $as_mkdir_p || {
|
---|
6629 | as_dirs=
|
---|
6630 | while :; do
|
---|
6631 | case $as_dir in #(
|
---|
6632 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
|
---|
6633 | *) as_qdir=$as_dir;;
|
---|
6634 | esac
|
---|
6635 | as_dirs="'$as_qdir' $as_dirs"
|
---|
6636 | as_dir=`$as_dirname -- "$as_dir" ||
|
---|
6637 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
6638 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
6639 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
6640 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
6641 | $as_echo X"$as_dir" |
|
---|
6642 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
6643 | s//\1/
|
---|
6644 | q
|
---|
6645 | }
|
---|
6646 | /^X\(\/\/\)[^/].*/{
|
---|
6647 | s//\1/
|
---|
6648 | q
|
---|
6649 | }
|
---|
6650 | /^X\(\/\/\)$/{
|
---|
6651 | s//\1/
|
---|
6652 | q
|
---|
6653 | }
|
---|
6654 | /^X\(\/\).*/{
|
---|
6655 | s//\1/
|
---|
6656 | q
|
---|
6657 | }
|
---|
6658 | s/.*/./; q'`
|
---|
6659 | test -d "$as_dir" && break
|
---|
6660 | done
|
---|
6661 | test -z "$as_dirs" || eval "mkdir $as_dirs"
|
---|
6662 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
|
---|
6663 |
|
---|
6664 |
|
---|
6665 | } # as_fn_mkdir_p
|
---|
6666 | if mkdir -p . 2>/dev/null; then
|
---|
6667 | as_mkdir_p='mkdir -p "$as_dir"'
|
---|
6668 | else
|
---|
6669 | test -d ./-p && rmdir ./-p
|
---|
6670 | as_mkdir_p=false
|
---|
6671 | fi
|
---|
6672 |
|
---|
6673 | if test -x / >/dev/null 2>&1; then
|
---|
6674 | as_test_x='test -x'
|
---|
6675 | else
|
---|
6676 | if ls -dL / >/dev/null 2>&1; then
|
---|
6677 | as_ls_L_option=L
|
---|
6678 | else
|
---|
6679 | as_ls_L_option=
|
---|
6680 | fi
|
---|
6681 | as_test_x='
|
---|
6682 | eval sh -c '\''
|
---|
6683 | if test -d "$1"; then
|
---|
6684 | test -d "$1/.";
|
---|
6685 | else
|
---|
6686 | case $1 in #(
|
---|
6687 | -*)set "./$1";;
|
---|
6688 | esac;
|
---|
6689 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
|
---|
6690 | ???[sx]*):;;*)false;;esac;fi
|
---|
6691 | '\'' sh
|
---|
6692 | '
|
---|
6693 | fi
|
---|
6694 | as_executable_p=$as_test_x
|
---|
6695 |
|
---|
6696 | # Sed expression to map a string onto a valid CPP name.
|
---|
6697 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
6698 |
|
---|
6699 | # Sed expression to map a string onto a valid variable name.
|
---|
6700 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
6701 |
|
---|
6702 |
|
---|
6703 | exec 6>&1
|
---|
6704 | ## ----------------------------------- ##
|
---|
6705 | ## Main body of $CONFIG_STATUS script. ##
|
---|
6706 | ## ----------------------------------- ##
|
---|
6707 | _ASEOF
|
---|
6708 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
|
---|
6709 |
|
---|
6710 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
6711 | # Save the log message, to keep $0 and so on meaningful, and to
|
---|
6712 | # report actual input values of CONFIG_FILES etc. instead of their
|
---|
6713 | # values after options handling.
|
---|
6714 | ac_log="
|
---|
6715 | This file was extended by $as_me, which was
|
---|
6716 | generated by GNU Autoconf 2.67. Invocation command line was
|
---|
6717 |
|
---|
6718 | CONFIG_FILES = $CONFIG_FILES
|
---|
6719 | CONFIG_HEADERS = $CONFIG_HEADERS
|
---|
6720 | CONFIG_LINKS = $CONFIG_LINKS
|
---|
6721 | CONFIG_COMMANDS = $CONFIG_COMMANDS
|
---|
6722 | $ $0 $@
|
---|
6723 |
|
---|
6724 | on `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
6725 | "
|
---|
6726 |
|
---|
6727 | _ACEOF
|
---|
6728 |
|
---|
6729 | case $ac_config_files in *"
|
---|
6730 | "*) set x $ac_config_files; shift; ac_config_files=$*;;
|
---|
6731 | esac
|
---|
6732 |
|
---|
6733 | case $ac_config_headers in *"
|
---|
6734 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
|
---|
6735 | esac
|
---|
6736 |
|
---|
6737 |
|
---|
6738 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
6739 | # Files that config.status was made for.
|
---|
6740 | config_files="$ac_config_files"
|
---|
6741 | config_headers="$ac_config_headers"
|
---|
6742 |
|
---|
6743 | _ACEOF
|
---|
6744 |
|
---|
6745 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
6746 | ac_cs_usage="\
|
---|
6747 | \`$as_me' instantiates files and other configuration actions
|
---|
6748 | from templates according to the current configuration. Unless the files
|
---|
6749 | and actions are specified as TAGs, all are instantiated by default.
|
---|
6750 |
|
---|
6751 | Usage: $0 [OPTION]... [TAG]...
|
---|
6752 |
|
---|
6753 | -h, --help print this help, then exit
|
---|
6754 | -V, --version print version number and configuration settings, then exit
|
---|
6755 | --config print configuration, then exit
|
---|
6756 | -q, --quiet, --silent
|
---|
6757 | do not print progress messages
|
---|
6758 | -d, --debug don't remove temporary files
|
---|
6759 | --recheck update $as_me by reconfiguring in the same conditions
|
---|
6760 | --file=FILE[:TEMPLATE]
|
---|
6761 | instantiate the configuration file FILE
|
---|
6762 | --header=FILE[:TEMPLATE]
|
---|
6763 | instantiate the configuration header FILE
|
---|
6764 |
|
---|
6765 | Configuration files:
|
---|
6766 | $config_files
|
---|
6767 |
|
---|
6768 | Configuration headers:
|
---|
6769 | $config_headers
|
---|
6770 |
|
---|
6771 | Report bugs to the package provider."
|
---|
6772 |
|
---|
6773 | _ACEOF
|
---|
6774 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
6775 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
|
---|
6776 | ac_cs_version="\\
|
---|
6777 | config.status
|
---|
6778 | configured by $0, generated by GNU Autoconf 2.67,
|
---|
6779 | with options \\"\$ac_cs_config\\"
|
---|
6780 |
|
---|
6781 | Copyright (C) 2010 Free Software Foundation, Inc.
|
---|
6782 | This config.status script is free software; the Free Software Foundation
|
---|
6783 | gives unlimited permission to copy, distribute and modify it."
|
---|
6784 |
|
---|
6785 | ac_pwd='$ac_pwd'
|
---|
6786 | srcdir='$srcdir'
|
---|
6787 | INSTALL='$INSTALL'
|
---|
6788 | AWK='$AWK'
|
---|
6789 | test -n "\$AWK" || AWK=awk
|
---|
6790 | _ACEOF
|
---|
6791 |
|
---|
6792 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
6793 | # The default lists apply if the user does not specify any file.
|
---|
6794 | ac_need_defaults=:
|
---|
6795 | while test $# != 0
|
---|
6796 | do
|
---|
6797 | case $1 in
|
---|
6798 | --*=?*)
|
---|
6799 | ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
---|
6800 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
|
---|
6801 | ac_shift=:
|
---|
6802 | ;;
|
---|
6803 | --*=)
|
---|
6804 | ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
---|
6805 | ac_optarg=
|
---|
6806 | ac_shift=:
|
---|
6807 | ;;
|
---|
6808 | *)
|
---|
6809 | ac_option=$1
|
---|
6810 | ac_optarg=$2
|
---|
6811 | ac_shift=shift
|
---|
6812 | ;;
|
---|
6813 | esac
|
---|
6814 |
|
---|
6815 | case $ac_option in
|
---|
6816 | # Handling of the options.
|
---|
6817 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
6818 | ac_cs_recheck=: ;;
|
---|
6819 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
|
---|
6820 | $as_echo "$ac_cs_version"; exit ;;
|
---|
6821 | --config | --confi | --conf | --con | --co | --c )
|
---|
6822 | $as_echo "$ac_cs_config"; exit ;;
|
---|
6823 | --debug | --debu | --deb | --de | --d | -d )
|
---|
6824 | debug=: ;;
|
---|
6825 | --file | --fil | --fi | --f )
|
---|
6826 | $ac_shift
|
---|
6827 | case $ac_optarg in
|
---|
6828 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
6829 | '') as_fn_error $? "missing file argument" ;;
|
---|
6830 | esac
|
---|
6831 | as_fn_append CONFIG_FILES " '$ac_optarg'"
|
---|
6832 | ac_need_defaults=false;;
|
---|
6833 | --header | --heade | --head | --hea )
|
---|
6834 | $ac_shift
|
---|
6835 | case $ac_optarg in
|
---|
6836 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
6837 | esac
|
---|
6838 | as_fn_append CONFIG_HEADERS " '$ac_optarg'"
|
---|
6839 | ac_need_defaults=false;;
|
---|
6840 | --he | --h)
|
---|
6841 | # Conflict between --help and --header
|
---|
6842 | as_fn_error $? "ambiguous option: \`$1'
|
---|
6843 | Try \`$0 --help' for more information.";;
|
---|
6844 | --help | --hel | -h )
|
---|
6845 | $as_echo "$ac_cs_usage"; exit ;;
|
---|
6846 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
6847 | | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
---|
6848 | ac_cs_silent=: ;;
|
---|
6849 |
|
---|
6850 | # This is an error.
|
---|
6851 | -*) as_fn_error $? "unrecognized option: \`$1'
|
---|
6852 | Try \`$0 --help' for more information." ;;
|
---|
6853 |
|
---|
6854 | *) as_fn_append ac_config_targets " $1"
|
---|
6855 | ac_need_defaults=false ;;
|
---|
6856 |
|
---|
6857 | esac
|
---|
6858 | shift
|
---|
6859 | done
|
---|
6860 |
|
---|
6861 | ac_configure_extra_args=
|
---|
6862 |
|
---|
6863 | if $ac_cs_silent; then
|
---|
6864 | exec 6>/dev/null
|
---|
6865 | ac_configure_extra_args="$ac_configure_extra_args --silent"
|
---|
6866 | fi
|
---|
6867 |
|
---|
6868 | _ACEOF
|
---|
6869 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
6870 | if \$ac_cs_recheck; then
|
---|
6871 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
---|
6872 | shift
|
---|
6873 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
|
---|
6874 | CONFIG_SHELL='$SHELL'
|
---|
6875 | export CONFIG_SHELL
|
---|
6876 | exec "\$@"
|
---|
6877 | fi
|
---|
6878 |
|
---|
6879 | _ACEOF
|
---|
6880 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
6881 | exec 5>>config.log
|
---|
6882 | {
|
---|
6883 | echo
|
---|
6884 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
---|
6885 | ## Running $as_me. ##
|
---|
6886 | _ASBOX
|
---|
6887 | $as_echo "$ac_log"
|
---|
6888 | } >&5
|
---|
6889 |
|
---|
6890 | _ACEOF
|
---|
6891 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
6892 | _ACEOF
|
---|
6893 |
|
---|
6894 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
6895 |
|
---|
6896 | # Handling of arguments.
|
---|
6897 | for ac_config_target in $ac_config_targets
|
---|
6898 | do
|
---|
6899 | case $ac_config_target in
|
---|
6900 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
---|
6901 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
---|
6902 | "$srclist") CONFIG_FILES="$CONFIG_FILES $srclist" ;;
|
---|
6903 | "$moduleDirs") CONFIG_FILES="$CONFIG_FILES $moduleDirs" ;;
|
---|
6904 |
|
---|
6905 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
|
---|
6906 | esac
|
---|
6907 | done
|
---|
6908 |
|
---|
6909 |
|
---|
6910 | # If the user did not use the arguments to specify the items to instantiate,
|
---|
6911 | # then the envvar interface is used. Set only those that are not.
|
---|
6912 | # We use the long form for the default assignment because of an extremely
|
---|
6913 | # bizarre bug on SunOS 4.1.3.
|
---|
6914 | if $ac_need_defaults; then
|
---|
6915 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
---|
6916 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
---|
6917 | fi
|
---|
6918 |
|
---|
6919 | # Have a temporary directory for convenience. Make it in the build tree
|
---|
6920 | # simply because there is no reason against having it here, and in addition,
|
---|
6921 | # creating and moving files from /tmp can sometimes cause problems.
|
---|
6922 | # Hook for its removal unless debugging.
|
---|
6923 | # Note that there is a small window in which the directory will not be cleaned:
|
---|
6924 | # after its creation but before its name has been assigned to `$tmp'.
|
---|
6925 | $debug ||
|
---|
6926 | {
|
---|
6927 | tmp=
|
---|
6928 | trap 'exit_status=$?
|
---|
6929 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
|
---|
6930 | ' 0
|
---|
6931 | trap 'as_fn_exit 1' 1 2 13 15
|
---|
6932 | }
|
---|
6933 | # Create a (secure) tmp directory for tmp files.
|
---|
6934 |
|
---|
6935 | {
|
---|
6936 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
|
---|
6937 | test -n "$tmp" && test -d "$tmp"
|
---|
6938 | } ||
|
---|
6939 | {
|
---|
6940 | tmp=./conf$$-$RANDOM
|
---|
6941 | (umask 077 && mkdir "$tmp")
|
---|
6942 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
|
---|
6943 |
|
---|
6944 | # Set up the scripts for CONFIG_FILES section.
|
---|
6945 | # No need to generate them if there are no CONFIG_FILES.
|
---|
6946 | # This happens for instance with `./config.status config.h'.
|
---|
6947 | if test -n "$CONFIG_FILES"; then
|
---|
6948 |
|
---|
6949 |
|
---|
6950 | ac_cr=`echo X | tr X '\015'`
|
---|
6951 | # On cygwin, bash can eat \r inside `` if the user requested igncr.
|
---|
6952 | # But we know of no other shell where ac_cr would be empty at this
|
---|
6953 | # point, so we can use a bashism as a fallback.
|
---|
6954 | if test "x$ac_cr" = x; then
|
---|
6955 | eval ac_cr=\$\'\\r\'
|
---|
6956 | fi
|
---|
6957 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
|
---|
6958 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
|
---|
6959 | ac_cs_awk_cr='\\r'
|
---|
6960 | else
|
---|
6961 | ac_cs_awk_cr=$ac_cr
|
---|
6962 | fi
|
---|
6963 |
|
---|
6964 | echo 'BEGIN {' >"$tmp/subs1.awk" &&
|
---|
6965 | _ACEOF
|
---|
6966 |
|
---|
6967 |
|
---|
6968 | {
|
---|
6969 | echo "cat >conf$$subs.awk <<_ACEOF" &&
|
---|
6970 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
|
---|
6971 | echo "_ACEOF"
|
---|
6972 | } >conf$$subs.sh ||
|
---|
6973 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
6974 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
|
---|
6975 | ac_delim='%!_!# '
|
---|
6976 | for ac_last_try in false false false false false :; do
|
---|
6977 | . ./conf$$subs.sh ||
|
---|
6978 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
6979 |
|
---|
6980 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
|
---|
6981 | if test $ac_delim_n = $ac_delim_num; then
|
---|
6982 | break
|
---|
6983 | elif $ac_last_try; then
|
---|
6984 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
6985 | else
|
---|
6986 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
---|
6987 | fi
|
---|
6988 | done
|
---|
6989 | rm -f conf$$subs.sh
|
---|
6990 |
|
---|
6991 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
6992 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
|
---|
6993 | _ACEOF
|
---|
6994 | sed -n '
|
---|
6995 | h
|
---|
6996 | s/^/S["/; s/!.*/"]=/
|
---|
6997 | p
|
---|
6998 | g
|
---|
6999 | s/^[^!]*!//
|
---|
7000 | :repl
|
---|
7001 | t repl
|
---|
7002 | s/'"$ac_delim"'$//
|
---|
7003 | t delim
|
---|
7004 | :nl
|
---|
7005 | h
|
---|
7006 | s/\(.\{148\}\)..*/\1/
|
---|
7007 | t more1
|
---|
7008 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
|
---|
7009 | p
|
---|
7010 | n
|
---|
7011 | b repl
|
---|
7012 | :more1
|
---|
7013 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/
|
---|
7014 | p
|
---|
7015 | g
|
---|
7016 | s/.\{148\}//
|
---|
7017 | t nl
|
---|
7018 | :delim
|
---|
7019 | h
|
---|
7020 | s/\(.\{148\}\)..*/\1/
|
---|
7021 | t more2
|
---|
7022 | s/["\\]/\\&/g; s/^/"/; s/$/"/
|
---|
7023 | p
|
---|
7024 | b
|
---|
7025 | :more2
|
---|
7026 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/
|
---|
7027 | p
|
---|
7028 | g
|
---|
7029 | s/.\{148\}//
|
---|
7030 | t delim
|
---|
7031 | ' <conf$$subs.awk | sed '
|
---|
7032 | /^[^""]/{
|
---|
7033 | N
|
---|
7034 | s/\n//
|
---|
7035 | }
|
---|
7036 | ' >>$CONFIG_STATUS || ac_write_fail=1
|
---|
7037 | rm -f conf$$subs.awk
|
---|
7038 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
7039 | _ACAWK
|
---|
7040 | cat >>"\$tmp/subs1.awk" <<_ACAWK &&
|
---|
7041 | for (key in S) S_is_set[key] = 1
|
---|
7042 | FS = ""
|
---|
7043 |
|
---|
7044 | }
|
---|
7045 | {
|
---|
7046 | line = $ 0
|
---|
7047 | nfields = split(line, field, "@")
|
---|
7048 | substed = 0
|
---|
7049 | len = length(field[1])
|
---|
7050 | for (i = 2; i < nfields; i++) {
|
---|
7051 | key = field[i]
|
---|
7052 | keylen = length(key)
|
---|
7053 | if (S_is_set[key]) {
|
---|
7054 | value = S[key]
|
---|
7055 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
|
---|
7056 | len += length(value) + length(field[++i])
|
---|
7057 | substed = 1
|
---|
7058 | } else
|
---|
7059 | len += 1 + keylen
|
---|
7060 | }
|
---|
7061 |
|
---|
7062 | print line
|
---|
7063 | }
|
---|
7064 |
|
---|
7065 | _ACAWK
|
---|
7066 | _ACEOF
|
---|
7067 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7068 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
|
---|
7069 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
|
---|
7070 | else
|
---|
7071 | cat
|
---|
7072 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
|
---|
7073 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
|
---|
7074 | _ACEOF
|
---|
7075 |
|
---|
7076 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
|
---|
7077 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
|
---|
7078 | # trailing colons and then remove the whole line if VPATH becomes empty
|
---|
7079 | # (actually we leave an empty line to preserve line numbers).
|
---|
7080 | if test "x$srcdir" = x.; then
|
---|
7081 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
|
---|
7082 | h
|
---|
7083 | s///
|
---|
7084 | s/^/:/
|
---|
7085 | s/[ ]*$/:/
|
---|
7086 | s/:\$(srcdir):/:/g
|
---|
7087 | s/:\${srcdir}:/:/g
|
---|
7088 | s/:@srcdir@:/:/g
|
---|
7089 | s/^:*//
|
---|
7090 | s/:*$//
|
---|
7091 | x
|
---|
7092 | s/\(=[ ]*\).*/\1/
|
---|
7093 | G
|
---|
7094 | s/\n//
|
---|
7095 | s/^[^=]*=[ ]*$//
|
---|
7096 | }'
|
---|
7097 | fi
|
---|
7098 |
|
---|
7099 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7100 | fi # test -n "$CONFIG_FILES"
|
---|
7101 |
|
---|
7102 | # Set up the scripts for CONFIG_HEADERS section.
|
---|
7103 | # No need to generate them if there are no CONFIG_HEADERS.
|
---|
7104 | # This happens for instance with `./config.status Makefile'.
|
---|
7105 | if test -n "$CONFIG_HEADERS"; then
|
---|
7106 | cat >"$tmp/defines.awk" <<\_ACAWK ||
|
---|
7107 | BEGIN {
|
---|
7108 | _ACEOF
|
---|
7109 |
|
---|
7110 | # Transform confdefs.h into an awk script `defines.awk', embedded as
|
---|
7111 | # here-document in config.status, that substitutes the proper values into
|
---|
7112 | # config.h.in to produce config.h.
|
---|
7113 |
|
---|
7114 | # Create a delimiter string that does not exist in confdefs.h, to ease
|
---|
7115 | # handling of long lines.
|
---|
7116 | ac_delim='%!_!# '
|
---|
7117 | for ac_last_try in false false :; do
|
---|
7118 | ac_t=`sed -n "/$ac_delim/p" confdefs.h`
|
---|
7119 | if test -z "$ac_t"; then
|
---|
7120 | break
|
---|
7121 | elif $ac_last_try; then
|
---|
7122 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
|
---|
7123 | else
|
---|
7124 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
---|
7125 | fi
|
---|
7126 | done
|
---|
7127 |
|
---|
7128 | # For the awk script, D is an array of macro values keyed by name,
|
---|
7129 | # likewise P contains macro parameters if any. Preserve backslash
|
---|
7130 | # newline sequences.
|
---|
7131 |
|
---|
7132 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
|
---|
7133 | sed -n '
|
---|
7134 | s/.\{148\}/&'"$ac_delim"'/g
|
---|
7135 | t rset
|
---|
7136 | :rset
|
---|
7137 | s/^[ ]*#[ ]*define[ ][ ]*/ /
|
---|
7138 | t def
|
---|
7139 | d
|
---|
7140 | :def
|
---|
7141 | s/\\$//
|
---|
7142 | t bsnl
|
---|
7143 | s/["\\]/\\&/g
|
---|
7144 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
|
---|
7145 | D["\1"]=" \3"/p
|
---|
7146 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
|
---|
7147 | d
|
---|
7148 | :bsnl
|
---|
7149 | s/["\\]/\\&/g
|
---|
7150 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
|
---|
7151 | D["\1"]=" \3\\\\\\n"\\/p
|
---|
7152 | t cont
|
---|
7153 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
|
---|
7154 | t cont
|
---|
7155 | d
|
---|
7156 | :cont
|
---|
7157 | n
|
---|
7158 | s/.\{148\}/&'"$ac_delim"'/g
|
---|
7159 | t clear
|
---|
7160 | :clear
|
---|
7161 | s/\\$//
|
---|
7162 | t bsnlc
|
---|
7163 | s/["\\]/\\&/g; s/^/"/; s/$/"/p
|
---|
7164 | d
|
---|
7165 | :bsnlc
|
---|
7166 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
|
---|
7167 | b cont
|
---|
7168 | ' <confdefs.h | sed '
|
---|
7169 | s/'"$ac_delim"'/"\\\
|
---|
7170 | "/g' >>$CONFIG_STATUS || ac_write_fail=1
|
---|
7171 |
|
---|
7172 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
7173 | for (key in D) D_is_set[key] = 1
|
---|
7174 | FS = ""
|
---|
7175 | }
|
---|
7176 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
|
---|
7177 | line = \$ 0
|
---|
7178 | split(line, arg, " ")
|
---|
7179 | if (arg[1] == "#") {
|
---|
7180 | defundef = arg[2]
|
---|
7181 | mac1 = arg[3]
|
---|
7182 | } else {
|
---|
7183 | defundef = substr(arg[1], 2)
|
---|
7184 | mac1 = arg[2]
|
---|
7185 | }
|
---|
7186 | split(mac1, mac2, "(") #)
|
---|
7187 | macro = mac2[1]
|
---|
7188 | prefix = substr(line, 1, index(line, defundef) - 1)
|
---|
7189 | if (D_is_set[macro]) {
|
---|
7190 | # Preserve the white space surrounding the "#".
|
---|
7191 | print prefix "define", macro P[macro] D[macro]
|
---|
7192 | next
|
---|
7193 | } else {
|
---|
7194 | # Replace #undef with comments. This is necessary, for example,
|
---|
7195 | # in the case of _POSIX_SOURCE, which is predefined and required
|
---|
7196 | # on some systems where configure will not decide to define it.
|
---|
7197 | if (defundef == "undef") {
|
---|
7198 | print "/*", prefix defundef, macro, "*/"
|
---|
7199 | next
|
---|
7200 | }
|
---|
7201 | }
|
---|
7202 | }
|
---|
7203 | { print }
|
---|
7204 | _ACAWK
|
---|
7205 | _ACEOF
|
---|
7206 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7207 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
|
---|
7208 | fi # test -n "$CONFIG_HEADERS"
|
---|
7209 |
|
---|
7210 |
|
---|
7211 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
|
---|
7212 | shift
|
---|
7213 | for ac_tag
|
---|
7214 | do
|
---|
7215 | case $ac_tag in
|
---|
7216 | :[FHLC]) ac_mode=$ac_tag; continue;;
|
---|
7217 | esac
|
---|
7218 | case $ac_mode$ac_tag in
|
---|
7219 | :[FHL]*:*);;
|
---|
7220 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
|
---|
7221 | :[FH]-) ac_tag=-:-;;
|
---|
7222 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
|
---|
7223 | esac
|
---|
7224 | ac_save_IFS=$IFS
|
---|
7225 | IFS=:
|
---|
7226 | set x $ac_tag
|
---|
7227 | IFS=$ac_save_IFS
|
---|
7228 | shift
|
---|
7229 | ac_file=$1
|
---|
7230 | shift
|
---|
7231 |
|
---|
7232 | case $ac_mode in
|
---|
7233 | :L) ac_source=$1;;
|
---|
7234 | :[FH])
|
---|
7235 | ac_file_inputs=
|
---|
7236 | for ac_f
|
---|
7237 | do
|
---|
7238 | case $ac_f in
|
---|
7239 | -) ac_f="$tmp/stdin";;
|
---|
7240 | *) # Look for the file first in the build tree, then in the source tree
|
---|
7241 | # (if the path is not absolute). The absolute path cannot be DOS-style,
|
---|
7242 | # because $ac_f cannot contain `:'.
|
---|
7243 | test -f "$ac_f" ||
|
---|
7244 | case $ac_f in
|
---|
7245 | [\\/$]*) false;;
|
---|
7246 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
|
---|
7247 | esac ||
|
---|
7248 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
|
---|
7249 | esac
|
---|
7250 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
|
---|
7251 | as_fn_append ac_file_inputs " '$ac_f'"
|
---|
7252 | done
|
---|
7253 |
|
---|
7254 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
7255 | # use $as_me), people would be surprised to read:
|
---|
7256 | # /* config.h. Generated by config.status. */
|
---|
7257 | configure_input='Generated from '`
|
---|
7258 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
|
---|
7259 | `' by configure.'
|
---|
7260 | if test x"$ac_file" != x-; then
|
---|
7261 | configure_input="$ac_file. $configure_input"
|
---|
7262 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
|
---|
7263 | $as_echo "$as_me: creating $ac_file" >&6;}
|
---|
7264 | fi
|
---|
7265 | # Neutralize special characters interpreted by sed in replacement strings.
|
---|
7266 | case $configure_input in #(
|
---|
7267 | *\&* | *\|* | *\\* )
|
---|
7268 | ac_sed_conf_input=`$as_echo "$configure_input" |
|
---|
7269 | sed 's/[\\\\&|]/\\\\&/g'`;; #(
|
---|
7270 | *) ac_sed_conf_input=$configure_input;;
|
---|
7271 | esac
|
---|
7272 |
|
---|
7273 | case $ac_tag in
|
---|
7274 | *:-:* | *:-) cat >"$tmp/stdin" \
|
---|
7275 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
|
---|
7276 | esac
|
---|
7277 | ;;
|
---|
7278 | esac
|
---|
7279 |
|
---|
7280 | ac_dir=`$as_dirname -- "$ac_file" ||
|
---|
7281 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
7282 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
7283 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
7284 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
7285 | $as_echo X"$ac_file" |
|
---|
7286 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
7287 | s//\1/
|
---|
7288 | q
|
---|
7289 | }
|
---|
7290 | /^X\(\/\/\)[^/].*/{
|
---|
7291 | s//\1/
|
---|
7292 | q
|
---|
7293 | }
|
---|
7294 | /^X\(\/\/\)$/{
|
---|
7295 | s//\1/
|
---|
7296 | q
|
---|
7297 | }
|
---|
7298 | /^X\(\/\).*/{
|
---|
7299 | s//\1/
|
---|
7300 | q
|
---|
7301 | }
|
---|
7302 | s/.*/./; q'`
|
---|
7303 | as_dir="$ac_dir"; as_fn_mkdir_p
|
---|
7304 | ac_builddir=.
|
---|
7305 |
|
---|
7306 | case "$ac_dir" in
|
---|
7307 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
7308 | *)
|
---|
7309 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
|
---|
7310 | # A ".." for each directory in $ac_dir_suffix.
|
---|
7311 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
---|
7312 | case $ac_top_builddir_sub in
|
---|
7313 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
7314 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
7315 | esac ;;
|
---|
7316 | esac
|
---|
7317 | ac_abs_top_builddir=$ac_pwd
|
---|
7318 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
7319 | # for backward compatibility:
|
---|
7320 | ac_top_builddir=$ac_top_build_prefix
|
---|
7321 |
|
---|
7322 | case $srcdir in
|
---|
7323 | .) # We are building in place.
|
---|
7324 | ac_srcdir=.
|
---|
7325 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
7326 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
7327 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
7328 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
7329 | ac_top_srcdir=$srcdir
|
---|
7330 | ac_abs_top_srcdir=$srcdir ;;
|
---|
7331 | *) # Relative name.
|
---|
7332 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
7333 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
7334 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
7335 | esac
|
---|
7336 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
7337 |
|
---|
7338 |
|
---|
7339 | case $ac_mode in
|
---|
7340 | :F)
|
---|
7341 | #
|
---|
7342 | # CONFIG_FILE
|
---|
7343 | #
|
---|
7344 |
|
---|
7345 | case $INSTALL in
|
---|
7346 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
---|
7347 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
|
---|
7348 | esac
|
---|
7349 | _ACEOF
|
---|
7350 |
|
---|
7351 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7352 | # If the template does not know about datarootdir, expand it.
|
---|
7353 | # FIXME: This hack should be removed a few years after 2.60.
|
---|
7354 | ac_datarootdir_hack=; ac_datarootdir_seen=
|
---|
7355 | ac_sed_dataroot='
|
---|
7356 | /datarootdir/ {
|
---|
7357 | p
|
---|
7358 | q
|
---|
7359 | }
|
---|
7360 | /@datadir@/p
|
---|
7361 | /@docdir@/p
|
---|
7362 | /@infodir@/p
|
---|
7363 | /@localedir@/p
|
---|
7364 | /@mandir@/p'
|
---|
7365 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
|
---|
7366 | *datarootdir*) ac_datarootdir_seen=yes;;
|
---|
7367 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
|
---|
7368 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
|
---|
7369 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
|
---|
7370 | _ACEOF
|
---|
7371 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
7372 | ac_datarootdir_hack='
|
---|
7373 | s&@datadir@&$datadir&g
|
---|
7374 | s&@docdir@&$docdir&g
|
---|
7375 | s&@infodir@&$infodir&g
|
---|
7376 | s&@localedir@&$localedir&g
|
---|
7377 | s&@mandir@&$mandir&g
|
---|
7378 | s&\\\${datarootdir}&$datarootdir&g' ;;
|
---|
7379 | esac
|
---|
7380 | _ACEOF
|
---|
7381 |
|
---|
7382 | # Neutralize VPATH when `$srcdir' = `.'.
|
---|
7383 | # Shell code in configure.ac might set extrasub.
|
---|
7384 | # FIXME: do we really want to maintain this feature?
|
---|
7385 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
7386 | ac_sed_extra="$ac_vpsub
|
---|
7387 | $extrasub
|
---|
7388 | _ACEOF
|
---|
7389 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7390 | :t
|
---|
7391 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
---|
7392 | s|@configure_input@|$ac_sed_conf_input|;t t
|
---|
7393 | s&@top_builddir@&$ac_top_builddir_sub&;t t
|
---|
7394 | s&@top_build_prefix@&$ac_top_build_prefix&;t t
|
---|
7395 | s&@srcdir@&$ac_srcdir&;t t
|
---|
7396 | s&@abs_srcdir@&$ac_abs_srcdir&;t t
|
---|
7397 | s&@top_srcdir@&$ac_top_srcdir&;t t
|
---|
7398 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
|
---|
7399 | s&@builddir@&$ac_builddir&;t t
|
---|
7400 | s&@abs_builddir@&$ac_abs_builddir&;t t
|
---|
7401 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
|
---|
7402 | s&@INSTALL@&$ac_INSTALL&;t t
|
---|
7403 | $ac_datarootdir_hack
|
---|
7404 | "
|
---|
7405 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
|
---|
7406 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
7407 |
|
---|
7408 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
|
---|
7409 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
|
---|
7410 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
|
---|
7411 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
---|
7412 | which seems to be undefined. Please make sure it is defined" >&5
|
---|
7413 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
---|
7414 | which seems to be undefined. Please make sure it is defined" >&2;}
|
---|
7415 |
|
---|
7416 | rm -f "$tmp/stdin"
|
---|
7417 | case $ac_file in
|
---|
7418 | -) cat "$tmp/out" && rm -f "$tmp/out";;
|
---|
7419 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
|
---|
7420 | esac \
|
---|
7421 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
7422 | ;;
|
---|
7423 | :H)
|
---|
7424 | #
|
---|
7425 | # CONFIG_HEADER
|
---|
7426 | #
|
---|
7427 | if test x"$ac_file" != x-; then
|
---|
7428 | {
|
---|
7429 | $as_echo "/* $configure_input */" \
|
---|
7430 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
|
---|
7431 | } >"$tmp/config.h" \
|
---|
7432 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
7433 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
|
---|
7434 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
|
---|
7435 | $as_echo "$as_me: $ac_file is unchanged" >&6;}
|
---|
7436 | else
|
---|
7437 | rm -f "$ac_file"
|
---|
7438 | mv "$tmp/config.h" "$ac_file" \
|
---|
7439 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
7440 | fi
|
---|
7441 | else
|
---|
7442 | $as_echo "/* $configure_input */" \
|
---|
7443 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
|
---|
7444 | || as_fn_error $? "could not create -" "$LINENO" 5
|
---|
7445 | fi
|
---|
7446 | ;;
|
---|
7447 |
|
---|
7448 |
|
---|
7449 | esac
|
---|
7450 |
|
---|
7451 | done # for ac_tag
|
---|
7452 |
|
---|
7453 |
|
---|
7454 | as_fn_exit 0
|
---|
7455 | _ACEOF
|
---|
7456 | ac_clean_files=$ac_clean_files_save
|
---|
7457 |
|
---|
7458 | test $ac_write_fail = 0 ||
|
---|
7459 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
|
---|
7460 |
|
---|
7461 |
|
---|
7462 | # configure is writing to config.log, and then calls config.status.
|
---|
7463 | # config.status does its own redirection, appending to config.log.
|
---|
7464 | # Unfortunately, on DOS this fails, as config.log is still kept open
|
---|
7465 | # by configure, so config.status won't be able to write to it; its
|
---|
7466 | # output is simply discarded. So we exec the FD to /dev/null,
|
---|
7467 | # effectively closing config.log, so it can be properly (re)opened and
|
---|
7468 | # appended to by config.status. When coming back to configure, we
|
---|
7469 | # need to make the FD available again.
|
---|
7470 | if test "$no_create" != yes; then
|
---|
7471 | ac_cs_success=:
|
---|
7472 | ac_config_status_args=
|
---|
7473 | test "$silent" = yes &&
|
---|
7474 | ac_config_status_args="$ac_config_status_args --quiet"
|
---|
7475 | exec 5>/dev/null
|
---|
7476 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
---|
7477 | exec 5>>config.log
|
---|
7478 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
---|
7479 | # would make configure fail if this is the last instruction.
|
---|
7480 | $ac_cs_success || as_fn_exit 1
|
---|
7481 | fi
|
---|
7482 |
|
---|
7483 | #
|
---|
7484 | # CONFIG_SUBDIRS section.
|
---|
7485 | #
|
---|
7486 | if test "$no_recursion" != yes; then
|
---|
7487 |
|
---|
7488 | # Remove --cache-file, --srcdir, and --disable-option-checking arguments
|
---|
7489 | # so they do not pile up.
|
---|
7490 | ac_sub_configure_args=
|
---|
7491 | ac_prev=
|
---|
7492 | eval "set x $ac_configure_args"
|
---|
7493 | shift
|
---|
7494 | for ac_arg
|
---|
7495 | do
|
---|
7496 | if test -n "$ac_prev"; then
|
---|
7497 | ac_prev=
|
---|
7498 | continue
|
---|
7499 | fi
|
---|
7500 | case $ac_arg in
|
---|
7501 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
7502 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
7503 | ac_prev=cache_file ;;
|
---|
7504 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
7505 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
|
---|
7506 | | --c=*)
|
---|
7507 | ;;
|
---|
7508 | --config-cache | -C)
|
---|
7509 | ;;
|
---|
7510 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
7511 | ac_prev=srcdir ;;
|
---|
7512 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
7513 | ;;
|
---|
7514 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
7515 | ac_prev=prefix ;;
|
---|
7516 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
7517 | ;;
|
---|
7518 | --disable-option-checking)
|
---|
7519 | ;;
|
---|
7520 | *)
|
---|
7521 | case $ac_arg in
|
---|
7522 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
7523 | esac
|
---|
7524 | as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
|
---|
7525 | esac
|
---|
7526 | done
|
---|
7527 |
|
---|
7528 | # Always prepend --prefix to ensure using the same prefix
|
---|
7529 | # in subdir configurations.
|
---|
7530 | ac_arg="--prefix=$prefix"
|
---|
7531 | case $ac_arg in
|
---|
7532 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
7533 | esac
|
---|
7534 | ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
|
---|
7535 |
|
---|
7536 | # Pass --silent
|
---|
7537 | if test "$silent" = yes; then
|
---|
7538 | ac_sub_configure_args="--silent $ac_sub_configure_args"
|
---|
7539 | fi
|
---|
7540 |
|
---|
7541 | # Always prepend --disable-option-checking to silence warnings, since
|
---|
7542 | # different subdirs can have different --enable and --with options.
|
---|
7543 | ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
|
---|
7544 |
|
---|
7545 | ac_popdir=`pwd`
|
---|
7546 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
|
---|
7547 |
|
---|
7548 | # Do not complain, so a configure script can configure whichever
|
---|
7549 | # parts of a large source tree are present.
|
---|
7550 | test -d "$srcdir/$ac_dir" || continue
|
---|
7551 |
|
---|
7552 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
|
---|
7553 | $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
|
---|
7554 | $as_echo "$ac_msg" >&6
|
---|
7555 | as_dir="$ac_dir"; as_fn_mkdir_p
|
---|
7556 | ac_builddir=.
|
---|
7557 |
|
---|
7558 | case "$ac_dir" in
|
---|
7559 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
7560 | *)
|
---|
7561 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
|
---|
7562 | # A ".." for each directory in $ac_dir_suffix.
|
---|
7563 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
---|
7564 | case $ac_top_builddir_sub in
|
---|
7565 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
7566 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
7567 | esac ;;
|
---|
7568 | esac
|
---|
7569 | ac_abs_top_builddir=$ac_pwd
|
---|
7570 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
7571 | # for backward compatibility:
|
---|
7572 | ac_top_builddir=$ac_top_build_prefix
|
---|
7573 |
|
---|
7574 | case $srcdir in
|
---|
7575 | .) # We are building in place.
|
---|
7576 | ac_srcdir=.
|
---|
7577 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
7578 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
7579 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
7580 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
7581 | ac_top_srcdir=$srcdir
|
---|
7582 | ac_abs_top_srcdir=$srcdir ;;
|
---|
7583 | *) # Relative name.
|
---|
7584 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
7585 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
7586 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
7587 | esac
|
---|
7588 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
7589 |
|
---|
7590 |
|
---|
7591 | cd "$ac_dir"
|
---|
7592 |
|
---|
7593 | # Check for guested configure; otherwise get Cygnus style configure.
|
---|
7594 | if test -f "$ac_srcdir/configure.gnu"; then
|
---|
7595 | ac_sub_configure=$ac_srcdir/configure.gnu
|
---|
7596 | elif test -f "$ac_srcdir/configure"; then
|
---|
7597 | ac_sub_configure=$ac_srcdir/configure
|
---|
7598 | elif test -f "$ac_srcdir/configure.in"; then
|
---|
7599 | # This should be Cygnus configure.
|
---|
7600 | ac_sub_configure=$ac_aux_dir/configure
|
---|
7601 | else
|
---|
7602 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
|
---|
7603 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
|
---|
7604 | ac_sub_configure=
|
---|
7605 | fi
|
---|
7606 |
|
---|
7607 | # The recursion is here.
|
---|
7608 | if test -n "$ac_sub_configure"; then
|
---|
7609 | # Make the cache file name correct relative to the subdirectory.
|
---|
7610 | case $cache_file in
|
---|
7611 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
|
---|
7612 | *) # Relative name.
|
---|
7613 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
|
---|
7614 | esac
|
---|
7615 |
|
---|
7616 | { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
|
---|
7617 | $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
|
---|
7618 | # The eval makes quoting arguments work.
|
---|
7619 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
|
---|
7620 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
|
---|
7621 | as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
|
---|
7622 | fi
|
---|
7623 |
|
---|
7624 | cd "$ac_popdir"
|
---|
7625 | done
|
---|
7626 | fi
|
---|
7627 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
|
---|
7628 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
|
---|
7629 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
|
---|
7630 | fi
|
---|
7631 |
|
---|
7632 |
|
---|
7633 |
|
---|