1 | #! /bin/sh |
---|
2 | # Guess values for system-dependent variables and create Makefiles. |
---|
3 | # Generated by GNU Autoconf 2.68 for cfa-cc 1.0.0. |
---|
4 | # |
---|
5 | # Report bugs to <cforall@plg.uwaterloo.ca>. |
---|
6 | # |
---|
7 | # |
---|
8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
---|
9 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software |
---|
10 | # Foundation, Inc. |
---|
11 | # |
---|
12 | # |
---|
13 | # This configure script is free software; the Free Software Foundation |
---|
14 | # gives unlimited permission to copy, distribute and modify it. |
---|
15 | ## -------------------- ## |
---|
16 | ## M4sh Initialization. ## |
---|
17 | ## -------------------- ## |
---|
18 | |
---|
19 | # Be more Bourne compatible |
---|
20 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
21 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
---|
22 | emulate sh |
---|
23 | NULLCMD=: |
---|
24 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
---|
25 | # is contrary to our usage. Disable this feature. |
---|
26 | alias -g '${1+"$@"}'='"$@"' |
---|
27 | setopt NO_GLOB_SUBST |
---|
28 | else |
---|
29 | case `(set -o) 2>/dev/null` in #( |
---|
30 | *posix*) : |
---|
31 | set -o posix ;; #( |
---|
32 | *) : |
---|
33 | ;; |
---|
34 | esac |
---|
35 | fi |
---|
36 | |
---|
37 | |
---|
38 | as_nl=' |
---|
39 | ' |
---|
40 | export as_nl |
---|
41 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
---|
42 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
---|
43 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
44 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
45 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
---|
46 | # but without wasting forks for bash or zsh. |
---|
47 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
---|
48 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
49 | as_echo='print -r --' |
---|
50 | as_echo_n='print -rn --' |
---|
51 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
52 | as_echo='printf %s\n' |
---|
53 | as_echo_n='printf %s' |
---|
54 | else |
---|
55 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
---|
56 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
---|
57 | as_echo_n='/usr/ucb/echo -n' |
---|
58 | else |
---|
59 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
---|
60 | as_echo_n_body='eval |
---|
61 | arg=$1; |
---|
62 | case $arg in #( |
---|
63 | *"$as_nl"*) |
---|
64 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
---|
65 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
---|
66 | esac; |
---|
67 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
---|
68 | ' |
---|
69 | export as_echo_n_body |
---|
70 | as_echo_n='sh -c $as_echo_n_body as_echo' |
---|
71 | fi |
---|
72 | export as_echo_body |
---|
73 | as_echo='sh -c $as_echo_body as_echo' |
---|
74 | fi |
---|
75 | |
---|
76 | # The user is always right. |
---|
77 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
78 | PATH_SEPARATOR=: |
---|
79 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
---|
80 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
---|
81 | PATH_SEPARATOR=';' |
---|
82 | } |
---|
83 | fi |
---|
84 | |
---|
85 | |
---|
86 | # IFS |
---|
87 | # We need space, tab and new line, in precisely that order. Quoting is |
---|
88 | # there to prevent editors from complaining about space-tab. |
---|
89 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
---|
90 | # splitting by setting IFS to empty value.) |
---|
91 | IFS=" "" $as_nl" |
---|
92 | |
---|
93 | # Find who we are. Look in the path if we contain no directory separator. |
---|
94 | as_myself= |
---|
95 | case $0 in #(( |
---|
96 | *[\\/]* ) as_myself=$0 ;; |
---|
97 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
98 | for as_dir in $PATH |
---|
99 | do |
---|
100 | IFS=$as_save_IFS |
---|
101 | test -z "$as_dir" && as_dir=. |
---|
102 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
103 | done |
---|
104 | IFS=$as_save_IFS |
---|
105 | |
---|
106 | ;; |
---|
107 | esac |
---|
108 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
109 | # in which case we are not to be found in the path. |
---|
110 | if test "x$as_myself" = x; then |
---|
111 | as_myself=$0 |
---|
112 | fi |
---|
113 | if test ! -f "$as_myself"; then |
---|
114 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
115 | exit 1 |
---|
116 | fi |
---|
117 | |
---|
118 | # Unset variables that we do not need and which cause bugs (e.g. in |
---|
119 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
---|
120 | # suppresses any "Segmentation fault" message there. '((' could |
---|
121 | # trigger a bug in pdksh 5.2.14. |
---|
122 | for as_var in BASH_ENV ENV MAIL MAILPATH |
---|
123 | do eval test x\${$as_var+set} = xset \ |
---|
124 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
---|
125 | done |
---|
126 | PS1='$ ' |
---|
127 | PS2='> ' |
---|
128 | PS4='+ ' |
---|
129 | |
---|
130 | # NLS nuisances. |
---|
131 | LC_ALL=C |
---|
132 | export LC_ALL |
---|
133 | LANGUAGE=C |
---|
134 | export LANGUAGE |
---|
135 | |
---|
136 | # CDPATH. |
---|
137 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
---|
138 | |
---|
139 | if test "x$CONFIG_SHELL" = x; then |
---|
140 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
---|
141 | emulate sh |
---|
142 | NULLCMD=: |
---|
143 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
---|
144 | # is contrary to our usage. Disable this feature. |
---|
145 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
---|
146 | setopt NO_GLOB_SUBST |
---|
147 | else |
---|
148 | case \`(set -o) 2>/dev/null\` in #( |
---|
149 | *posix*) : |
---|
150 | set -o posix ;; #( |
---|
151 | *) : |
---|
152 | ;; |
---|
153 | esac |
---|
154 | fi |
---|
155 | " |
---|
156 | as_required="as_fn_return () { (exit \$1); } |
---|
157 | as_fn_success () { as_fn_return 0; } |
---|
158 | as_fn_failure () { as_fn_return 1; } |
---|
159 | as_fn_ret_success () { return 0; } |
---|
160 | as_fn_ret_failure () { return 1; } |
---|
161 | |
---|
162 | exitcode=0 |
---|
163 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
---|
164 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
---|
165 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
---|
166 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
---|
167 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
---|
168 | |
---|
169 | else |
---|
170 | exitcode=1; echo positional parameters were not saved. |
---|
171 | fi |
---|
172 | test x\$exitcode = x0 || exit 1" |
---|
173 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
---|
174 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
---|
175 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
---|
176 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
---|
177 | test \$(( 1 + 1 )) = 2 || exit 1" |
---|
178 | if (eval "$as_required") 2>/dev/null; then : |
---|
179 | as_have_required=yes |
---|
180 | else |
---|
181 | as_have_required=no |
---|
182 | fi |
---|
183 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
---|
184 | |
---|
185 | else |
---|
186 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
187 | as_found=false |
---|
188 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
189 | do |
---|
190 | IFS=$as_save_IFS |
---|
191 | test -z "$as_dir" && as_dir=. |
---|
192 | as_found=: |
---|
193 | case $as_dir in #( |
---|
194 | /*) |
---|
195 | for as_base in sh bash ksh sh5; do |
---|
196 | # Try only shells that exist, to save several forks. |
---|
197 | as_shell=$as_dir/$as_base |
---|
198 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
---|
199 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
---|
200 | CONFIG_SHELL=$as_shell as_have_required=yes |
---|
201 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
---|
202 | break 2 |
---|
203 | fi |
---|
204 | fi |
---|
205 | done;; |
---|
206 | esac |
---|
207 | as_found=false |
---|
208 | done |
---|
209 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
---|
210 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
---|
211 | CONFIG_SHELL=$SHELL as_have_required=yes |
---|
212 | fi; } |
---|
213 | IFS=$as_save_IFS |
---|
214 | |
---|
215 | |
---|
216 | if test "x$CONFIG_SHELL" != x; then : |
---|
217 | # We cannot yet assume a decent shell, so we have to provide a |
---|
218 | # neutralization value for shells without unset; and this also |
---|
219 | # works around shells that cannot unset nonexistent variables. |
---|
220 | # Preserve -v and -x to the replacement shell. |
---|
221 | BASH_ENV=/dev/null |
---|
222 | ENV=/dev/null |
---|
223 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
---|
224 | export CONFIG_SHELL |
---|
225 | case $- in # (((( |
---|
226 | *v*x* | *x*v* ) as_opts=-vx ;; |
---|
227 | *v* ) as_opts=-v ;; |
---|
228 | *x* ) as_opts=-x ;; |
---|
229 | * ) as_opts= ;; |
---|
230 | esac |
---|
231 | exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} |
---|
232 | fi |
---|
233 | |
---|
234 | if test x$as_have_required = xno; then : |
---|
235 | $as_echo "$0: This script requires a shell more modern than all" |
---|
236 | $as_echo "$0: the shells that I found on your system." |
---|
237 | if test x${ZSH_VERSION+set} = xset ; then |
---|
238 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
---|
239 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
---|
240 | else |
---|
241 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
---|
242 | $0: cforall@plg.uwaterloo.ca about your system, including |
---|
243 | $0: any error possibly output before this message. Then |
---|
244 | $0: install a modern shell, or manually run the script |
---|
245 | $0: under such a shell if you do have one." |
---|
246 | fi |
---|
247 | exit 1 |
---|
248 | fi |
---|
249 | fi |
---|
250 | fi |
---|
251 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
252 | export SHELL |
---|
253 | # Unset more variables known to interfere with behavior of common tools. |
---|
254 | CLICOLOR_FORCE= GREP_OPTIONS= |
---|
255 | unset CLICOLOR_FORCE GREP_OPTIONS |
---|
256 | |
---|
257 | ## --------------------- ## |
---|
258 | ## M4sh Shell Functions. ## |
---|
259 | ## --------------------- ## |
---|
260 | # as_fn_unset VAR |
---|
261 | # --------------- |
---|
262 | # Portably unset VAR. |
---|
263 | as_fn_unset () |
---|
264 | { |
---|
265 | { eval $1=; unset $1;} |
---|
266 | } |
---|
267 | as_unset=as_fn_unset |
---|
268 | |
---|
269 | # as_fn_set_status STATUS |
---|
270 | # ----------------------- |
---|
271 | # Set $? to STATUS, without forking. |
---|
272 | as_fn_set_status () |
---|
273 | { |
---|
274 | return $1 |
---|
275 | } # as_fn_set_status |
---|
276 | |
---|
277 | # as_fn_exit STATUS |
---|
278 | # ----------------- |
---|
279 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
---|
280 | as_fn_exit () |
---|
281 | { |
---|
282 | set +e |
---|
283 | as_fn_set_status $1 |
---|
284 | exit $1 |
---|
285 | } # as_fn_exit |
---|
286 | |
---|
287 | # as_fn_mkdir_p |
---|
288 | # ------------- |
---|
289 | # Create "$as_dir" as a directory, including parents if necessary. |
---|
290 | as_fn_mkdir_p () |
---|
291 | { |
---|
292 | |
---|
293 | case $as_dir in #( |
---|
294 | -*) as_dir=./$as_dir;; |
---|
295 | esac |
---|
296 | test -d "$as_dir" || eval $as_mkdir_p || { |
---|
297 | as_dirs= |
---|
298 | while :; do |
---|
299 | case $as_dir in #( |
---|
300 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
---|
301 | *) as_qdir=$as_dir;; |
---|
302 | esac |
---|
303 | as_dirs="'$as_qdir' $as_dirs" |
---|
304 | as_dir=`$as_dirname -- "$as_dir" || |
---|
305 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
306 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
307 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
308 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
---|
309 | $as_echo X"$as_dir" | |
---|
310 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
311 | s//\1/ |
---|
312 | q |
---|
313 | } |
---|
314 | /^X\(\/\/\)[^/].*/{ |
---|
315 | s//\1/ |
---|
316 | q |
---|
317 | } |
---|
318 | /^X\(\/\/\)$/{ |
---|
319 | s//\1/ |
---|
320 | q |
---|
321 | } |
---|
322 | /^X\(\/\).*/{ |
---|
323 | s//\1/ |
---|
324 | q |
---|
325 | } |
---|
326 | s/.*/./; q'` |
---|
327 | test -d "$as_dir" && break |
---|
328 | done |
---|
329 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
---|
330 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
---|
331 | |
---|
332 | |
---|
333 | } # as_fn_mkdir_p |
---|
334 | # as_fn_append VAR VALUE |
---|
335 | # ---------------------- |
---|
336 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
---|
337 | # advantage of any shell optimizations that allow amortized linear growth over |
---|
338 | # repeated appends, instead of the typical quadratic growth present in naive |
---|
339 | # implementations. |
---|
340 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
---|
341 | eval 'as_fn_append () |
---|
342 | { |
---|
343 | eval $1+=\$2 |
---|
344 | }' |
---|
345 | else |
---|
346 | as_fn_append () |
---|
347 | { |
---|
348 | eval $1=\$$1\$2 |
---|
349 | } |
---|
350 | fi # as_fn_append |
---|
351 | |
---|
352 | # as_fn_arith ARG... |
---|
353 | # ------------------ |
---|
354 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
---|
355 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
---|
356 | # must be portable across $(()) and expr. |
---|
357 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
---|
358 | eval 'as_fn_arith () |
---|
359 | { |
---|
360 | as_val=$(( $* )) |
---|
361 | }' |
---|
362 | else |
---|
363 | as_fn_arith () |
---|
364 | { |
---|
365 | as_val=`expr "$@" || test $? -eq 1` |
---|
366 | } |
---|
367 | fi # as_fn_arith |
---|
368 | |
---|
369 | |
---|
370 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
---|
371 | # ---------------------------------------- |
---|
372 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
---|
373 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
---|
374 | # script with STATUS, using 1 if that was 0. |
---|
375 | as_fn_error () |
---|
376 | { |
---|
377 | as_status=$1; test $as_status -eq 0 && as_status=1 |
---|
378 | if test "$4"; then |
---|
379 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
380 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
---|
381 | fi |
---|
382 | $as_echo "$as_me: error: $2" >&2 |
---|
383 | as_fn_exit $as_status |
---|
384 | } # as_fn_error |
---|
385 | |
---|
386 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
387 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
388 | as_expr=expr |
---|
389 | else |
---|
390 | as_expr=false |
---|
391 | fi |
---|
392 | |
---|
393 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
394 | as_basename=basename |
---|
395 | else |
---|
396 | as_basename=false |
---|
397 | fi |
---|
398 | |
---|
399 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
400 | as_dirname=dirname |
---|
401 | else |
---|
402 | as_dirname=false |
---|
403 | fi |
---|
404 | |
---|
405 | as_me=`$as_basename -- "$0" || |
---|
406 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
407 | X"$0" : 'X\(//\)$' \| \ |
---|
408 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
409 | $as_echo X/"$0" | |
---|
410 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
411 | s//\1/ |
---|
412 | q |
---|
413 | } |
---|
414 | /^X\/\(\/\/\)$/{ |
---|
415 | s//\1/ |
---|
416 | q |
---|
417 | } |
---|
418 | /^X\/\(\/\).*/{ |
---|
419 | s//\1/ |
---|
420 | q |
---|
421 | } |
---|
422 | s/.*/./; q'` |
---|
423 | |
---|
424 | # Avoid depending upon Character Ranges. |
---|
425 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
426 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
427 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
428 | as_cr_digits='0123456789' |
---|
429 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
430 | |
---|
431 | |
---|
432 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
---|
433 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
---|
434 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
---|
435 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
---|
436 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
---|
437 | sed -n ' |
---|
438 | p |
---|
439 | /[$]LINENO/= |
---|
440 | ' <$as_myself | |
---|
441 | sed ' |
---|
442 | s/[$]LINENO.*/&-/ |
---|
443 | t lineno |
---|
444 | b |
---|
445 | :lineno |
---|
446 | N |
---|
447 | :loop |
---|
448 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
---|
449 | t loop |
---|
450 | s/-\n.*// |
---|
451 | ' >$as_me.lineno && |
---|
452 | chmod +x "$as_me.lineno" || |
---|
453 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
---|
454 | |
---|
455 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
456 | # (the dirname of $[0] is not the place where we might find the |
---|
457 | # original and so on. Autoconf is especially sensitive to this). |
---|
458 | . "./$as_me.lineno" |
---|
459 | # Exit status is that of the last command. |
---|
460 | exit |
---|
461 | } |
---|
462 | |
---|
463 | ECHO_C= ECHO_N= ECHO_T= |
---|
464 | case `echo -n x` in #((((( |
---|
465 | -n*) |
---|
466 | case `echo 'xy\c'` in |
---|
467 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
468 | xy) ECHO_C='\c';; |
---|
469 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
---|
470 | ECHO_T=' ';; |
---|
471 | esac;; |
---|
472 | *) |
---|
473 | ECHO_N='-n';; |
---|
474 | esac |
---|
475 | |
---|
476 | rm -f conf$$ conf$$.exe conf$$.file |
---|
477 | if test -d conf$$.dir; then |
---|
478 | rm -f conf$$.dir/conf$$.file |
---|
479 | else |
---|
480 | rm -f conf$$.dir |
---|
481 | mkdir conf$$.dir 2>/dev/null |
---|
482 | fi |
---|
483 | if (echo >conf$$.file) 2>/dev/null; then |
---|
484 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
485 | as_ln_s='ln -s' |
---|
486 | # ... but there are two gotchas: |
---|
487 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
488 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
489 | # In both cases, we have to default to `cp -p'. |
---|
490 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
491 | as_ln_s='cp -p' |
---|
492 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
493 | as_ln_s=ln |
---|
494 | else |
---|
495 | as_ln_s='cp -p' |
---|
496 | fi |
---|
497 | else |
---|
498 | as_ln_s='cp -p' |
---|
499 | fi |
---|
500 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
501 | rmdir conf$$.dir 2>/dev/null |
---|
502 | |
---|
503 | if mkdir -p . 2>/dev/null; then |
---|
504 | as_mkdir_p='mkdir -p "$as_dir"' |
---|
505 | else |
---|
506 | test -d ./-p && rmdir ./-p |
---|
507 | as_mkdir_p=false |
---|
508 | fi |
---|
509 | |
---|
510 | if test -x / >/dev/null 2>&1; then |
---|
511 | as_test_x='test -x' |
---|
512 | else |
---|
513 | if ls -dL / >/dev/null 2>&1; then |
---|
514 | as_ls_L_option=L |
---|
515 | else |
---|
516 | as_ls_L_option= |
---|
517 | fi |
---|
518 | as_test_x=' |
---|
519 | eval sh -c '\'' |
---|
520 | if test -d "$1"; then |
---|
521 | test -d "$1/."; |
---|
522 | else |
---|
523 | case $1 in #( |
---|
524 | -*)set "./$1";; |
---|
525 | esac; |
---|
526 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
---|
527 | ???[sx]*):;;*)false;;esac;fi |
---|
528 | '\'' sh |
---|
529 | ' |
---|
530 | fi |
---|
531 | as_executable_p=$as_test_x |
---|
532 | |
---|
533 | # Sed expression to map a string onto a valid CPP name. |
---|
534 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
535 | |
---|
536 | # Sed expression to map a string onto a valid variable name. |
---|
537 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
538 | |
---|
539 | |
---|
540 | test -n "$DJDIR" || exec 7<&0 </dev/null |
---|
541 | exec 6>&1 |
---|
542 | |
---|
543 | # Name of the host. |
---|
544 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
---|
545 | # so uname gets run too. |
---|
546 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
547 | |
---|
548 | # |
---|
549 | # Initializations. |
---|
550 | # |
---|
551 | ac_default_prefix=/usr/local |
---|
552 | ac_clean_files= |
---|
553 | ac_config_libobj_dir=. |
---|
554 | LIBOBJS= |
---|
555 | cross_compiling=no |
---|
556 | subdirs= |
---|
557 | MFLAGS= |
---|
558 | MAKEFLAGS= |
---|
559 | |
---|
560 | # Identity of this package. |
---|
561 | PACKAGE_NAME='cfa-cc' |
---|
562 | PACKAGE_TARNAME='cfa-cc' |
---|
563 | PACKAGE_VERSION='1.0.0' |
---|
564 | PACKAGE_STRING='cfa-cc 1.0.0' |
---|
565 | PACKAGE_BUGREPORT='cforall@plg.uwaterloo.ca' |
---|
566 | PACKAGE_URL='' |
---|
567 | |
---|
568 | ac_unique_file="src/main.cc" |
---|
569 | # Factoring default headers for most tests. |
---|
570 | ac_includes_default="\ |
---|
571 | #include <stdio.h> |
---|
572 | #ifdef HAVE_SYS_TYPES_H |
---|
573 | # include <sys/types.h> |
---|
574 | #endif |
---|
575 | #ifdef HAVE_SYS_STAT_H |
---|
576 | # include <sys/stat.h> |
---|
577 | #endif |
---|
578 | #ifdef STDC_HEADERS |
---|
579 | # include <stdlib.h> |
---|
580 | # include <stddef.h> |
---|
581 | #else |
---|
582 | # ifdef HAVE_STDLIB_H |
---|
583 | # include <stdlib.h> |
---|
584 | # endif |
---|
585 | #endif |
---|
586 | #ifdef HAVE_STRING_H |
---|
587 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
---|
588 | # include <memory.h> |
---|
589 | # endif |
---|
590 | # include <string.h> |
---|
591 | #endif |
---|
592 | #ifdef HAVE_STRINGS_H |
---|
593 | # include <strings.h> |
---|
594 | #endif |
---|
595 | #ifdef HAVE_INTTYPES_H |
---|
596 | # include <inttypes.h> |
---|
597 | #endif |
---|
598 | #ifdef HAVE_STDINT_H |
---|
599 | # include <stdint.h> |
---|
600 | #endif |
---|
601 | #ifdef HAVE_UNISTD_H |
---|
602 | # include <unistd.h> |
---|
603 | #endif" |
---|
604 | |
---|
605 | ac_subst_vars='am__EXEEXT_FALSE |
---|
606 | am__EXEEXT_TRUE |
---|
607 | LTLIBOBJS |
---|
608 | LIBOBJS |
---|
609 | ALLOCA |
---|
610 | EGREP |
---|
611 | GREP |
---|
612 | CPP |
---|
613 | am__fastdepCC_FALSE |
---|
614 | am__fastdepCC_TRUE |
---|
615 | CCDEPMODE |
---|
616 | ac_ct_CC |
---|
617 | CFLAGS |
---|
618 | CC |
---|
619 | am__fastdepCXX_FALSE |
---|
620 | am__fastdepCXX_TRUE |
---|
621 | CXXDEPMODE |
---|
622 | am__nodep |
---|
623 | AMDEPBACKSLASH |
---|
624 | AMDEP_FALSE |
---|
625 | AMDEP_TRUE |
---|
626 | am__quote |
---|
627 | am__include |
---|
628 | DEPDIR |
---|
629 | OBJEXT |
---|
630 | EXEEXT |
---|
631 | ac_ct_CXX |
---|
632 | CPPFLAGS |
---|
633 | LDFLAGS |
---|
634 | CXXFLAGS |
---|
635 | CXX |
---|
636 | CFA_LIBDIR |
---|
637 | CFA_BINDIR |
---|
638 | CFA_INCDIR |
---|
639 | CFA_PREFIX |
---|
640 | BACKEND_CC |
---|
641 | GCC_PATH |
---|
642 | am__untar |
---|
643 | am__tar |
---|
644 | AMTAR |
---|
645 | am__leading_dot |
---|
646 | SET_MAKE |
---|
647 | AWK |
---|
648 | mkdir_p |
---|
649 | MKDIR_P |
---|
650 | INSTALL_STRIP_PROGRAM |
---|
651 | STRIP |
---|
652 | install_sh |
---|
653 | MAKEINFO |
---|
654 | AUTOHEADER |
---|
655 | AUTOMAKE |
---|
656 | AUTOCONF |
---|
657 | ACLOCAL |
---|
658 | VERSION |
---|
659 | PACKAGE |
---|
660 | CYGPATH_W |
---|
661 | am__isrc |
---|
662 | INSTALL_DATA |
---|
663 | INSTALL_SCRIPT |
---|
664 | INSTALL_PROGRAM |
---|
665 | target_alias |
---|
666 | host_alias |
---|
667 | build_alias |
---|
668 | LIBS |
---|
669 | ECHO_T |
---|
670 | ECHO_N |
---|
671 | ECHO_C |
---|
672 | DEFS |
---|
673 | mandir |
---|
674 | localedir |
---|
675 | libdir |
---|
676 | psdir |
---|
677 | pdfdir |
---|
678 | dvidir |
---|
679 | htmldir |
---|
680 | infodir |
---|
681 | docdir |
---|
682 | oldincludedir |
---|
683 | includedir |
---|
684 | localstatedir |
---|
685 | sharedstatedir |
---|
686 | sysconfdir |
---|
687 | datadir |
---|
688 | datarootdir |
---|
689 | libexecdir |
---|
690 | sbindir |
---|
691 | bindir |
---|
692 | program_transform_name |
---|
693 | prefix |
---|
694 | exec_prefix |
---|
695 | PACKAGE_URL |
---|
696 | PACKAGE_BUGREPORT |
---|
697 | PACKAGE_STRING |
---|
698 | PACKAGE_VERSION |
---|
699 | PACKAGE_TARNAME |
---|
700 | PACKAGE_NAME |
---|
701 | PATH_SEPARATOR |
---|
702 | SHELL' |
---|
703 | ac_subst_files='' |
---|
704 | ac_user_opts=' |
---|
705 | enable_option_checking |
---|
706 | with_backend_compiler |
---|
707 | enable_dependency_tracking |
---|
708 | ' |
---|
709 | ac_precious_vars='build_alias |
---|
710 | host_alias |
---|
711 | target_alias |
---|
712 | CXX |
---|
713 | CXXFLAGS |
---|
714 | LDFLAGS |
---|
715 | LIBS |
---|
716 | CPPFLAGS |
---|
717 | CCC |
---|
718 | CC |
---|
719 | CFLAGS |
---|
720 | CPP' |
---|
721 | |
---|
722 | |
---|
723 | # Initialize some variables set by options. |
---|
724 | ac_init_help= |
---|
725 | ac_init_version=false |
---|
726 | ac_unrecognized_opts= |
---|
727 | ac_unrecognized_sep= |
---|
728 | # The variables have the same names as the options, with |
---|
729 | # dashes changed to underlines. |
---|
730 | cache_file=/dev/null |
---|
731 | exec_prefix=NONE |
---|
732 | no_create= |
---|
733 | no_recursion= |
---|
734 | prefix=NONE |
---|
735 | program_prefix=NONE |
---|
736 | program_suffix=NONE |
---|
737 | program_transform_name=s,x,x, |
---|
738 | silent= |
---|
739 | site= |
---|
740 | srcdir= |
---|
741 | verbose= |
---|
742 | x_includes=NONE |
---|
743 | x_libraries=NONE |
---|
744 | |
---|
745 | # Installation directory options. |
---|
746 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
747 | # and all the variables that are supposed to be based on exec_prefix |
---|
748 | # by default will actually change. |
---|
749 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
750 | # (The list follows the same order as the GNU Coding Standards.) |
---|
751 | bindir='${exec_prefix}/bin' |
---|
752 | sbindir='${exec_prefix}/sbin' |
---|
753 | libexecdir='${exec_prefix}/libexec' |
---|
754 | datarootdir='${prefix}/share' |
---|
755 | datadir='${datarootdir}' |
---|
756 | sysconfdir='${prefix}/etc' |
---|
757 | sharedstatedir='${prefix}/com' |
---|
758 | localstatedir='${prefix}/var' |
---|
759 | includedir='${prefix}/include' |
---|
760 | oldincludedir='/usr/include' |
---|
761 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
---|
762 | infodir='${datarootdir}/info' |
---|
763 | htmldir='${docdir}' |
---|
764 | dvidir='${docdir}' |
---|
765 | pdfdir='${docdir}' |
---|
766 | psdir='${docdir}' |
---|
767 | libdir='${exec_prefix}/lib' |
---|
768 | localedir='${datarootdir}/locale' |
---|
769 | mandir='${datarootdir}/man' |
---|
770 | |
---|
771 | ac_prev= |
---|
772 | ac_dashdash= |
---|
773 | for ac_option |
---|
774 | do |
---|
775 | # If the previous option needs an argument, assign it. |
---|
776 | if test -n "$ac_prev"; then |
---|
777 | eval $ac_prev=\$ac_option |
---|
778 | ac_prev= |
---|
779 | continue |
---|
780 | fi |
---|
781 | |
---|
782 | case $ac_option in |
---|
783 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
---|
784 | *=) ac_optarg= ;; |
---|
785 | *) ac_optarg=yes ;; |
---|
786 | esac |
---|
787 | |
---|
788 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
789 | |
---|
790 | case $ac_dashdash$ac_option in |
---|
791 | --) |
---|
792 | ac_dashdash=yes ;; |
---|
793 | |
---|
794 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
795 | ac_prev=bindir ;; |
---|
796 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
797 | bindir=$ac_optarg ;; |
---|
798 | |
---|
799 | -build | --build | --buil | --bui | --bu) |
---|
800 | ac_prev=build_alias ;; |
---|
801 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
802 | build_alias=$ac_optarg ;; |
---|
803 | |
---|
804 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
805 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
806 | ac_prev=cache_file ;; |
---|
807 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
808 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
809 | cache_file=$ac_optarg ;; |
---|
810 | |
---|
811 | --config-cache | -C) |
---|
812 | cache_file=config.cache ;; |
---|
813 | |
---|
814 | -datadir | --datadir | --datadi | --datad) |
---|
815 | ac_prev=datadir ;; |
---|
816 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
---|
817 | datadir=$ac_optarg ;; |
---|
818 | |
---|
819 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
---|
820 | | --dataroo | --dataro | --datar) |
---|
821 | ac_prev=datarootdir ;; |
---|
822 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
---|
823 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
---|
824 | datarootdir=$ac_optarg ;; |
---|
825 | |
---|
826 | -disable-* | --disable-*) |
---|
827 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
828 | # Reject names that are not valid shell variable names. |
---|
829 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
830 | as_fn_error $? "invalid feature name: $ac_useropt" |
---|
831 | ac_useropt_orig=$ac_useropt |
---|
832 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
833 | case $ac_user_opts in |
---|
834 | *" |
---|
835 | "enable_$ac_useropt" |
---|
836 | "*) ;; |
---|
837 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
---|
838 | ac_unrecognized_sep=', ';; |
---|
839 | esac |
---|
840 | eval enable_$ac_useropt=no ;; |
---|
841 | |
---|
842 | -docdir | --docdir | --docdi | --doc | --do) |
---|
843 | ac_prev=docdir ;; |
---|
844 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
---|
845 | docdir=$ac_optarg ;; |
---|
846 | |
---|
847 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
---|
848 | ac_prev=dvidir ;; |
---|
849 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
---|
850 | dvidir=$ac_optarg ;; |
---|
851 | |
---|
852 | -enable-* | --enable-*) |
---|
853 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
854 | # Reject names that are not valid shell variable names. |
---|
855 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
856 | as_fn_error $? "invalid feature name: $ac_useropt" |
---|
857 | ac_useropt_orig=$ac_useropt |
---|
858 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
859 | case $ac_user_opts in |
---|
860 | *" |
---|
861 | "enable_$ac_useropt" |
---|
862 | "*) ;; |
---|
863 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
---|
864 | ac_unrecognized_sep=', ';; |
---|
865 | esac |
---|
866 | eval enable_$ac_useropt=\$ac_optarg ;; |
---|
867 | |
---|
868 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
869 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
870 | | --exec | --exe | --ex) |
---|
871 | ac_prev=exec_prefix ;; |
---|
872 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
873 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
874 | | --exec=* | --exe=* | --ex=*) |
---|
875 | exec_prefix=$ac_optarg ;; |
---|
876 | |
---|
877 | -gas | --gas | --ga | --g) |
---|
878 | # Obsolete; use --with-gas. |
---|
879 | with_gas=yes ;; |
---|
880 | |
---|
881 | -help | --help | --hel | --he | -h) |
---|
882 | ac_init_help=long ;; |
---|
883 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
884 | ac_init_help=recursive ;; |
---|
885 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
886 | ac_init_help=short ;; |
---|
887 | |
---|
888 | -host | --host | --hos | --ho) |
---|
889 | ac_prev=host_alias ;; |
---|
890 | -host=* | --host=* | --hos=* | --ho=*) |
---|
891 | host_alias=$ac_optarg ;; |
---|
892 | |
---|
893 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
---|
894 | ac_prev=htmldir ;; |
---|
895 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
---|
896 | | --ht=*) |
---|
897 | htmldir=$ac_optarg ;; |
---|
898 | |
---|
899 | -includedir | --includedir | --includedi | --included | --include \ |
---|
900 | | --includ | --inclu | --incl | --inc) |
---|
901 | ac_prev=includedir ;; |
---|
902 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
903 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
904 | includedir=$ac_optarg ;; |
---|
905 | |
---|
906 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
907 | ac_prev=infodir ;; |
---|
908 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
909 | infodir=$ac_optarg ;; |
---|
910 | |
---|
911 | -libdir | --libdir | --libdi | --libd) |
---|
912 | ac_prev=libdir ;; |
---|
913 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
914 | libdir=$ac_optarg ;; |
---|
915 | |
---|
916 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
917 | | --libexe | --libex | --libe) |
---|
918 | ac_prev=libexecdir ;; |
---|
919 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
920 | | --libexe=* | --libex=* | --libe=*) |
---|
921 | libexecdir=$ac_optarg ;; |
---|
922 | |
---|
923 | -localedir | --localedir | --localedi | --localed | --locale) |
---|
924 | ac_prev=localedir ;; |
---|
925 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
---|
926 | localedir=$ac_optarg ;; |
---|
927 | |
---|
928 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
929 | | --localstate | --localstat | --localsta | --localst | --locals) |
---|
930 | ac_prev=localstatedir ;; |
---|
931 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
932 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
---|
933 | localstatedir=$ac_optarg ;; |
---|
934 | |
---|
935 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
936 | ac_prev=mandir ;; |
---|
937 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
938 | mandir=$ac_optarg ;; |
---|
939 | |
---|
940 | -nfp | --nfp | --nf) |
---|
941 | # Obsolete; use --without-fp. |
---|
942 | with_fp=no ;; |
---|
943 | |
---|
944 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
945 | | --no-cr | --no-c | -n) |
---|
946 | no_create=yes ;; |
---|
947 | |
---|
948 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
949 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
950 | no_recursion=yes ;; |
---|
951 | |
---|
952 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
953 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
954 | | --oldin | --oldi | --old | --ol | --o) |
---|
955 | ac_prev=oldincludedir ;; |
---|
956 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
957 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
958 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
959 | oldincludedir=$ac_optarg ;; |
---|
960 | |
---|
961 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
962 | ac_prev=prefix ;; |
---|
963 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
964 | prefix=$ac_optarg ;; |
---|
965 | |
---|
966 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
967 | | --program-pre | --program-pr | --program-p) |
---|
968 | ac_prev=program_prefix ;; |
---|
969 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
970 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
971 | program_prefix=$ac_optarg ;; |
---|
972 | |
---|
973 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
974 | | --program-suf | --program-su | --program-s) |
---|
975 | ac_prev=program_suffix ;; |
---|
976 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
977 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
978 | program_suffix=$ac_optarg ;; |
---|
979 | |
---|
980 | -program-transform-name | --program-transform-name \ |
---|
981 | | --program-transform-nam | --program-transform-na \ |
---|
982 | | --program-transform-n | --program-transform- \ |
---|
983 | | --program-transform | --program-transfor \ |
---|
984 | | --program-transfo | --program-transf \ |
---|
985 | | --program-trans | --program-tran \ |
---|
986 | | --progr-tra | --program-tr | --program-t) |
---|
987 | ac_prev=program_transform_name ;; |
---|
988 | -program-transform-name=* | --program-transform-name=* \ |
---|
989 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
990 | | --program-transform-n=* | --program-transform-=* \ |
---|
991 | | --program-transform=* | --program-transfor=* \ |
---|
992 | | --program-transfo=* | --program-transf=* \ |
---|
993 | | --program-trans=* | --program-tran=* \ |
---|
994 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
995 | program_transform_name=$ac_optarg ;; |
---|
996 | |
---|
997 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
---|
998 | ac_prev=pdfdir ;; |
---|
999 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
---|
1000 | pdfdir=$ac_optarg ;; |
---|
1001 | |
---|
1002 | -psdir | --psdir | --psdi | --psd | --ps) |
---|
1003 | ac_prev=psdir ;; |
---|
1004 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
---|
1005 | psdir=$ac_optarg ;; |
---|
1006 | |
---|
1007 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1008 | | -silent | --silent | --silen | --sile | --sil) |
---|
1009 | silent=yes ;; |
---|
1010 | |
---|
1011 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
1012 | ac_prev=sbindir ;; |
---|
1013 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
1014 | | --sbi=* | --sb=*) |
---|
1015 | sbindir=$ac_optarg ;; |
---|
1016 | |
---|
1017 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
1018 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
1019 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
1020 | | --sha | --sh) |
---|
1021 | ac_prev=sharedstatedir ;; |
---|
1022 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
1023 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
1024 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
1025 | | --sha=* | --sh=*) |
---|
1026 | sharedstatedir=$ac_optarg ;; |
---|
1027 | |
---|
1028 | -site | --site | --sit) |
---|
1029 | ac_prev=site ;; |
---|
1030 | -site=* | --site=* | --sit=*) |
---|
1031 | site=$ac_optarg ;; |
---|
1032 | |
---|
1033 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
1034 | ac_prev=srcdir ;; |
---|
1035 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
1036 | srcdir=$ac_optarg ;; |
---|
1037 | |
---|
1038 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
1039 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
1040 | ac_prev=sysconfdir ;; |
---|
1041 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
1042 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
1043 | sysconfdir=$ac_optarg ;; |
---|
1044 | |
---|
1045 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
1046 | ac_prev=target_alias ;; |
---|
1047 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
1048 | target_alias=$ac_optarg ;; |
---|
1049 | |
---|
1050 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
1051 | verbose=yes ;; |
---|
1052 | |
---|
1053 | -version | --version | --versio | --versi | --vers | -V) |
---|
1054 | ac_init_version=: ;; |
---|
1055 | |
---|
1056 | -with-* | --with-*) |
---|
1057 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
1058 | # Reject names that are not valid shell variable names. |
---|
1059 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
1060 | as_fn_error $? "invalid package name: $ac_useropt" |
---|
1061 | ac_useropt_orig=$ac_useropt |
---|
1062 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
1063 | case $ac_user_opts in |
---|
1064 | *" |
---|
1065 | "with_$ac_useropt" |
---|
1066 | "*) ;; |
---|
1067 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
---|
1068 | ac_unrecognized_sep=', ';; |
---|
1069 | esac |
---|
1070 | eval with_$ac_useropt=\$ac_optarg ;; |
---|
1071 | |
---|
1072 | -without-* | --without-*) |
---|
1073 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
1074 | # Reject names that are not valid shell variable names. |
---|
1075 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
1076 | as_fn_error $? "invalid package name: $ac_useropt" |
---|
1077 | ac_useropt_orig=$ac_useropt |
---|
1078 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
1079 | case $ac_user_opts in |
---|
1080 | *" |
---|
1081 | "with_$ac_useropt" |
---|
1082 | "*) ;; |
---|
1083 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
---|
1084 | ac_unrecognized_sep=', ';; |
---|
1085 | esac |
---|
1086 | eval with_$ac_useropt=no ;; |
---|
1087 | |
---|
1088 | --x) |
---|
1089 | # Obsolete; use --with-x. |
---|
1090 | with_x=yes ;; |
---|
1091 | |
---|
1092 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
1093 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
1094 | ac_prev=x_includes ;; |
---|
1095 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
1096 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
1097 | x_includes=$ac_optarg ;; |
---|
1098 | |
---|
1099 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
1100 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
1101 | ac_prev=x_libraries ;; |
---|
1102 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
1103 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
1104 | x_libraries=$ac_optarg ;; |
---|
1105 | |
---|
1106 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
---|
1107 | Try \`$0 --help' for more information" |
---|
1108 | ;; |
---|
1109 | |
---|
1110 | *=*) |
---|
1111 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
1112 | # Reject names that are not valid shell variable names. |
---|
1113 | case $ac_envvar in #( |
---|
1114 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
---|
1115 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
---|
1116 | esac |
---|
1117 | eval $ac_envvar=\$ac_optarg |
---|
1118 | export $ac_envvar ;; |
---|
1119 | |
---|
1120 | *) |
---|
1121 | # FIXME: should be removed in autoconf 3.0. |
---|
1122 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
1123 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
1124 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
1125 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
---|
1126 | ;; |
---|
1127 | |
---|
1128 | esac |
---|
1129 | done |
---|
1130 | |
---|
1131 | if test -n "$ac_prev"; then |
---|
1132 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
1133 | as_fn_error $? "missing argument to $ac_option" |
---|
1134 | fi |
---|
1135 | |
---|
1136 | if test -n "$ac_unrecognized_opts"; then |
---|
1137 | case $enable_option_checking in |
---|
1138 | no) ;; |
---|
1139 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
---|
1140 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
---|
1141 | esac |
---|
1142 | fi |
---|
1143 | |
---|
1144 | # Check all directory arguments for consistency. |
---|
1145 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
---|
1146 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
---|
1147 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
---|
1148 | libdir localedir mandir |
---|
1149 | do |
---|
1150 | eval ac_val=\$$ac_var |
---|
1151 | # Remove trailing slashes. |
---|
1152 | case $ac_val in |
---|
1153 | */ ) |
---|
1154 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
---|
1155 | eval $ac_var=\$ac_val;; |
---|
1156 | esac |
---|
1157 | # Be sure to have absolute directory names. |
---|
1158 | case $ac_val in |
---|
1159 | [\\/$]* | ?:[\\/]* ) continue;; |
---|
1160 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
---|
1161 | esac |
---|
1162 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
---|
1163 | done |
---|
1164 | |
---|
1165 | # There might be people who depend on the old broken behavior: `$host' |
---|
1166 | # used to hold the argument of --host etc. |
---|
1167 | # FIXME: To remove some day. |
---|
1168 | build=$build_alias |
---|
1169 | host=$host_alias |
---|
1170 | target=$target_alias |
---|
1171 | |
---|
1172 | # FIXME: To remove some day. |
---|
1173 | if test "x$host_alias" != x; then |
---|
1174 | if test "x$build_alias" = x; then |
---|
1175 | cross_compiling=maybe |
---|
1176 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. |
---|
1177 | If a cross compiler is detected then cross compile mode will be used" >&2 |
---|
1178 | elif test "x$build_alias" != "x$host_alias"; then |
---|
1179 | cross_compiling=yes |
---|
1180 | fi |
---|
1181 | fi |
---|
1182 | |
---|
1183 | ac_tool_prefix= |
---|
1184 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
1185 | |
---|
1186 | test "$silent" = yes && exec 6>/dev/null |
---|
1187 | |
---|
1188 | |
---|
1189 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
---|
1190 | ac_ls_di=`ls -di .` && |
---|
1191 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
---|
1192 | as_fn_error $? "working directory cannot be determined" |
---|
1193 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
---|
1194 | as_fn_error $? "pwd does not report name of working directory" |
---|
1195 | |
---|
1196 | |
---|
1197 | # Find the source files, if location was not specified. |
---|
1198 | if test -z "$srcdir"; then |
---|
1199 | ac_srcdir_defaulted=yes |
---|
1200 | # Try the directory containing this script, then the parent directory. |
---|
1201 | ac_confdir=`$as_dirname -- "$as_myself" || |
---|
1202 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
1203 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
---|
1204 | X"$as_myself" : 'X\(//\)$' \| \ |
---|
1205 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
---|
1206 | $as_echo X"$as_myself" | |
---|
1207 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
1208 | s//\1/ |
---|
1209 | q |
---|
1210 | } |
---|
1211 | /^X\(\/\/\)[^/].*/{ |
---|
1212 | s//\1/ |
---|
1213 | q |
---|
1214 | } |
---|
1215 | /^X\(\/\/\)$/{ |
---|
1216 | s//\1/ |
---|
1217 | q |
---|
1218 | } |
---|
1219 | /^X\(\/\).*/{ |
---|
1220 | s//\1/ |
---|
1221 | q |
---|
1222 | } |
---|
1223 | s/.*/./; q'` |
---|
1224 | srcdir=$ac_confdir |
---|
1225 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
1226 | srcdir=.. |
---|
1227 | fi |
---|
1228 | else |
---|
1229 | ac_srcdir_defaulted=no |
---|
1230 | fi |
---|
1231 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
1232 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
---|
1233 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
---|
1234 | fi |
---|
1235 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
---|
1236 | ac_abs_confdir=`( |
---|
1237 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
---|
1238 | pwd)` |
---|
1239 | # When building in place, set srcdir=. |
---|
1240 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
---|
1241 | srcdir=. |
---|
1242 | fi |
---|
1243 | # Remove unnecessary trailing slashes from srcdir. |
---|
1244 | # Double slashes in file names in object file debugging info |
---|
1245 | # mess up M-x gdb in Emacs. |
---|
1246 | case $srcdir in |
---|
1247 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
---|
1248 | esac |
---|
1249 | for ac_var in $ac_precious_vars; do |
---|
1250 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
---|
1251 | eval ac_env_${ac_var}_value=\$${ac_var} |
---|
1252 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
---|
1253 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
---|
1254 | done |
---|
1255 | |
---|
1256 | # |
---|
1257 | # Report the --help message. |
---|
1258 | # |
---|
1259 | if test "$ac_init_help" = "long"; then |
---|
1260 | # Omit some internal or obsolete options to make the list less imposing. |
---|
1261 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
1262 | cat <<_ACEOF |
---|
1263 | \`configure' configures cfa-cc 1.0.0 to adapt to many kinds of systems. |
---|
1264 | |
---|
1265 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
1266 | |
---|
1267 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
1268 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
1269 | |
---|
1270 | Defaults for the options are specified in brackets. |
---|
1271 | |
---|
1272 | Configuration: |
---|
1273 | -h, --help display this help and exit |
---|
1274 | --help=short display options specific to this package |
---|
1275 | --help=recursive display the short help of all the included packages |
---|
1276 | -V, --version display version information and exit |
---|
1277 | -q, --quiet, --silent do not print \`checking ...' messages |
---|
1278 | --cache-file=FILE cache test results in FILE [disabled] |
---|
1279 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
1280 | -n, --no-create do not create output files |
---|
1281 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
1282 | |
---|
1283 | Installation directories: |
---|
1284 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
1285 | [$ac_default_prefix] |
---|
1286 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
1287 | [PREFIX] |
---|
1288 | |
---|
1289 | By default, \`make install' will install all the files in |
---|
1290 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
1291 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
1292 | for instance \`--prefix=\$HOME'. |
---|
1293 | |
---|
1294 | For better control, use the options below. |
---|
1295 | |
---|
1296 | Fine tuning of the installation directories: |
---|
1297 | --bindir=DIR user executables [EPREFIX/bin] |
---|
1298 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
1299 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
1300 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
1301 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
1302 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
1303 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
1304 | --includedir=DIR C header files [PREFIX/include] |
---|
1305 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
1306 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
---|
1307 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
---|
1308 | --infodir=DIR info documentation [DATAROOTDIR/info] |
---|
1309 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
---|
1310 | --mandir=DIR man documentation [DATAROOTDIR/man] |
---|
1311 | --docdir=DIR documentation root [DATAROOTDIR/doc/cfa-cc] |
---|
1312 | --htmldir=DIR html documentation [DOCDIR] |
---|
1313 | --dvidir=DIR dvi documentation [DOCDIR] |
---|
1314 | --pdfdir=DIR pdf documentation [DOCDIR] |
---|
1315 | --psdir=DIR ps documentation [DOCDIR] |
---|
1316 | _ACEOF |
---|
1317 | |
---|
1318 | cat <<\_ACEOF |
---|
1319 | |
---|
1320 | Program names: |
---|
1321 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
1322 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
1323 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
---|
1324 | _ACEOF |
---|
1325 | fi |
---|
1326 | |
---|
1327 | if test -n "$ac_init_help"; then |
---|
1328 | case $ac_init_help in |
---|
1329 | short | recursive ) echo "Configuration of cfa-cc 1.0.0:";; |
---|
1330 | esac |
---|
1331 | cat <<\_ACEOF |
---|
1332 | |
---|
1333 | Optional Features: |
---|
1334 | --disable-option-checking ignore unrecognized --enable/--with options |
---|
1335 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
1336 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
1337 | --disable-dependency-tracking speeds up one-time build |
---|
1338 | --enable-dependency-tracking do not reject slow dependency extractors |
---|
1339 | |
---|
1340 | Optional Packages: |
---|
1341 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
1342 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
1343 | --with-backend-compiler=PROGRAM PROGRAM that performs the final code compilation (must be gcc-compatible) |
---|
1344 | |
---|
1345 | Some influential environment variables: |
---|
1346 | CXX C++ compiler command |
---|
1347 | CXXFLAGS C++ compiler flags |
---|
1348 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
1349 | nonstandard directory <lib dir> |
---|
1350 | LIBS libraries to pass to the linker, e.g. -l<library> |
---|
1351 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
---|
1352 | you have headers in a nonstandard directory <include dir> |
---|
1353 | CC C compiler command |
---|
1354 | CFLAGS C compiler flags |
---|
1355 | CPP C preprocessor |
---|
1356 | |
---|
1357 | Use these variables to override the choices made by `configure' or to help |
---|
1358 | it to find libraries and programs with nonstandard names/locations. |
---|
1359 | |
---|
1360 | Report bugs to <cforall@plg.uwaterloo.ca>. |
---|
1361 | _ACEOF |
---|
1362 | ac_status=$? |
---|
1363 | fi |
---|
1364 | |
---|
1365 | if test "$ac_init_help" = "recursive"; then |
---|
1366 | # If there are subdirs, report their specific --help. |
---|
1367 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
1368 | test -d "$ac_dir" || |
---|
1369 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
---|
1370 | continue |
---|
1371 | ac_builddir=. |
---|
1372 | |
---|
1373 | case "$ac_dir" in |
---|
1374 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
1375 | *) |
---|
1376 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
---|
1377 | # A ".." for each directory in $ac_dir_suffix. |
---|
1378 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
---|
1379 | case $ac_top_builddir_sub in |
---|
1380 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
1381 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
1382 | esac ;; |
---|
1383 | esac |
---|
1384 | ac_abs_top_builddir=$ac_pwd |
---|
1385 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
1386 | # for backward compatibility: |
---|
1387 | ac_top_builddir=$ac_top_build_prefix |
---|
1388 | |
---|
1389 | case $srcdir in |
---|
1390 | .) # We are building in place. |
---|
1391 | ac_srcdir=. |
---|
1392 | ac_top_srcdir=$ac_top_builddir_sub |
---|
1393 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
1394 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
1395 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
1396 | ac_top_srcdir=$srcdir |
---|
1397 | ac_abs_top_srcdir=$srcdir ;; |
---|
1398 | *) # Relative name. |
---|
1399 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
1400 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
1401 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
1402 | esac |
---|
1403 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
1404 | |
---|
1405 | cd "$ac_dir" || { ac_status=$?; continue; } |
---|
1406 | # Check for guested configure. |
---|
1407 | if test -f "$ac_srcdir/configure.gnu"; then |
---|
1408 | echo && |
---|
1409 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
---|
1410 | elif test -f "$ac_srcdir/configure"; then |
---|
1411 | echo && |
---|
1412 | $SHELL "$ac_srcdir/configure" --help=recursive |
---|
1413 | else |
---|
1414 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
1415 | fi || ac_status=$? |
---|
1416 | cd "$ac_pwd" || { ac_status=$?; break; } |
---|
1417 | done |
---|
1418 | fi |
---|
1419 | |
---|
1420 | test -n "$ac_init_help" && exit $ac_status |
---|
1421 | if $ac_init_version; then |
---|
1422 | cat <<\_ACEOF |
---|
1423 | cfa-cc configure 1.0.0 |
---|
1424 | generated by GNU Autoconf 2.68 |
---|
1425 | |
---|
1426 | Copyright (C) 2010 Free Software Foundation, Inc. |
---|
1427 | This configure script is free software; the Free Software Foundation |
---|
1428 | gives unlimited permission to copy, distribute and modify it. |
---|
1429 | _ACEOF |
---|
1430 | exit |
---|
1431 | fi |
---|
1432 | |
---|
1433 | ## ------------------------ ## |
---|
1434 | ## Autoconf initialization. ## |
---|
1435 | ## ------------------------ ## |
---|
1436 | |
---|
1437 | # ac_fn_cxx_try_compile LINENO |
---|
1438 | # ---------------------------- |
---|
1439 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
---|
1440 | ac_fn_cxx_try_compile () |
---|
1441 | { |
---|
1442 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1443 | rm -f conftest.$ac_objext |
---|
1444 | if { { ac_try="$ac_compile" |
---|
1445 | case "(($ac_try" in |
---|
1446 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1447 | *) ac_try_echo=$ac_try;; |
---|
1448 | esac |
---|
1449 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1450 | $as_echo "$ac_try_echo"; } >&5 |
---|
1451 | (eval "$ac_compile") 2>conftest.err |
---|
1452 | ac_status=$? |
---|
1453 | if test -s conftest.err; then |
---|
1454 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1455 | cat conftest.er1 >&5 |
---|
1456 | mv -f conftest.er1 conftest.err |
---|
1457 | fi |
---|
1458 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1459 | test $ac_status = 0; } && { |
---|
1460 | test -z "$ac_cxx_werror_flag" || |
---|
1461 | test ! -s conftest.err |
---|
1462 | } && test -s conftest.$ac_objext; then : |
---|
1463 | ac_retval=0 |
---|
1464 | else |
---|
1465 | $as_echo "$as_me: failed program was:" >&5 |
---|
1466 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1467 | |
---|
1468 | ac_retval=1 |
---|
1469 | fi |
---|
1470 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1471 | as_fn_set_status $ac_retval |
---|
1472 | |
---|
1473 | } # ac_fn_cxx_try_compile |
---|
1474 | |
---|
1475 | # ac_fn_c_try_compile LINENO |
---|
1476 | # -------------------------- |
---|
1477 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
---|
1478 | ac_fn_c_try_compile () |
---|
1479 | { |
---|
1480 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1481 | rm -f conftest.$ac_objext |
---|
1482 | if { { ac_try="$ac_compile" |
---|
1483 | case "(($ac_try" in |
---|
1484 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1485 | *) ac_try_echo=$ac_try;; |
---|
1486 | esac |
---|
1487 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1488 | $as_echo "$ac_try_echo"; } >&5 |
---|
1489 | (eval "$ac_compile") 2>conftest.err |
---|
1490 | ac_status=$? |
---|
1491 | if test -s conftest.err; then |
---|
1492 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1493 | cat conftest.er1 >&5 |
---|
1494 | mv -f conftest.er1 conftest.err |
---|
1495 | fi |
---|
1496 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1497 | test $ac_status = 0; } && { |
---|
1498 | test -z "$ac_c_werror_flag" || |
---|
1499 | test ! -s conftest.err |
---|
1500 | } && test -s conftest.$ac_objext; then : |
---|
1501 | ac_retval=0 |
---|
1502 | else |
---|
1503 | $as_echo "$as_me: failed program was:" >&5 |
---|
1504 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1505 | |
---|
1506 | ac_retval=1 |
---|
1507 | fi |
---|
1508 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1509 | as_fn_set_status $ac_retval |
---|
1510 | |
---|
1511 | } # ac_fn_c_try_compile |
---|
1512 | |
---|
1513 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
---|
1514 | # ------------------------------------------- |
---|
1515 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
---|
1516 | # variable VAR accordingly. |
---|
1517 | ac_fn_c_check_type () |
---|
1518 | { |
---|
1519 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1521 | $as_echo_n "checking for $2... " >&6; } |
---|
1522 | if eval \${$3+:} false; then : |
---|
1523 | $as_echo_n "(cached) " >&6 |
---|
1524 | else |
---|
1525 | eval "$3=no" |
---|
1526 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1527 | /* end confdefs.h. */ |
---|
1528 | $4 |
---|
1529 | int |
---|
1530 | main () |
---|
1531 | { |
---|
1532 | if (sizeof ($2)) |
---|
1533 | return 0; |
---|
1534 | ; |
---|
1535 | return 0; |
---|
1536 | } |
---|
1537 | _ACEOF |
---|
1538 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1539 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1540 | /* end confdefs.h. */ |
---|
1541 | $4 |
---|
1542 | int |
---|
1543 | main () |
---|
1544 | { |
---|
1545 | if (sizeof (($2))) |
---|
1546 | return 0; |
---|
1547 | ; |
---|
1548 | return 0; |
---|
1549 | } |
---|
1550 | _ACEOF |
---|
1551 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1552 | |
---|
1553 | else |
---|
1554 | eval "$3=yes" |
---|
1555 | fi |
---|
1556 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1557 | fi |
---|
1558 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1559 | fi |
---|
1560 | eval ac_res=\$$3 |
---|
1561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1562 | $as_echo "$ac_res" >&6; } |
---|
1563 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1564 | |
---|
1565 | } # ac_fn_c_check_type |
---|
1566 | |
---|
1567 | # ac_fn_c_try_cpp LINENO |
---|
1568 | # ---------------------- |
---|
1569 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
---|
1570 | ac_fn_c_try_cpp () |
---|
1571 | { |
---|
1572 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1573 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
---|
1574 | case "(($ac_try" in |
---|
1575 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1576 | *) ac_try_echo=$ac_try;; |
---|
1577 | esac |
---|
1578 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1579 | $as_echo "$ac_try_echo"; } >&5 |
---|
1580 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
---|
1581 | ac_status=$? |
---|
1582 | if test -s conftest.err; then |
---|
1583 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1584 | cat conftest.er1 >&5 |
---|
1585 | mv -f conftest.er1 conftest.err |
---|
1586 | fi |
---|
1587 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1588 | test $ac_status = 0; } > conftest.i && { |
---|
1589 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
1590 | test ! -s conftest.err |
---|
1591 | }; then : |
---|
1592 | ac_retval=0 |
---|
1593 | else |
---|
1594 | $as_echo "$as_me: failed program was:" >&5 |
---|
1595 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1596 | |
---|
1597 | ac_retval=1 |
---|
1598 | fi |
---|
1599 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1600 | as_fn_set_status $ac_retval |
---|
1601 | |
---|
1602 | } # ac_fn_c_try_cpp |
---|
1603 | |
---|
1604 | # ac_fn_c_try_run LINENO |
---|
1605 | # ---------------------- |
---|
1606 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
---|
1607 | # that executables *can* be run. |
---|
1608 | ac_fn_c_try_run () |
---|
1609 | { |
---|
1610 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1611 | if { { ac_try="$ac_link" |
---|
1612 | case "(($ac_try" in |
---|
1613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1614 | *) ac_try_echo=$ac_try;; |
---|
1615 | esac |
---|
1616 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1617 | $as_echo "$ac_try_echo"; } >&5 |
---|
1618 | (eval "$ac_link") 2>&5 |
---|
1619 | ac_status=$? |
---|
1620 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1621 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
---|
1622 | { { case "(($ac_try" in |
---|
1623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1624 | *) ac_try_echo=$ac_try;; |
---|
1625 | esac |
---|
1626 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1627 | $as_echo "$ac_try_echo"; } >&5 |
---|
1628 | (eval "$ac_try") 2>&5 |
---|
1629 | ac_status=$? |
---|
1630 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1631 | test $ac_status = 0; }; }; then : |
---|
1632 | ac_retval=0 |
---|
1633 | else |
---|
1634 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
---|
1635 | $as_echo "$as_me: failed program was:" >&5 |
---|
1636 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1637 | |
---|
1638 | ac_retval=$ac_status |
---|
1639 | fi |
---|
1640 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
1641 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1642 | as_fn_set_status $ac_retval |
---|
1643 | |
---|
1644 | } # ac_fn_c_try_run |
---|
1645 | |
---|
1646 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
---|
1647 | # ------------------------------------------------------- |
---|
1648 | # Tests whether HEADER exists and can be compiled using the include files in |
---|
1649 | # INCLUDES, setting the cache variable VAR accordingly. |
---|
1650 | ac_fn_c_check_header_compile () |
---|
1651 | { |
---|
1652 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1654 | $as_echo_n "checking for $2... " >&6; } |
---|
1655 | if eval \${$3+:} false; then : |
---|
1656 | $as_echo_n "(cached) " >&6 |
---|
1657 | else |
---|
1658 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1659 | /* end confdefs.h. */ |
---|
1660 | $4 |
---|
1661 | #include <$2> |
---|
1662 | _ACEOF |
---|
1663 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1664 | eval "$3=yes" |
---|
1665 | else |
---|
1666 | eval "$3=no" |
---|
1667 | fi |
---|
1668 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1669 | fi |
---|
1670 | eval ac_res=\$$3 |
---|
1671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1672 | $as_echo "$ac_res" >&6; } |
---|
1673 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1674 | |
---|
1675 | } # ac_fn_c_check_header_compile |
---|
1676 | |
---|
1677 | # ac_fn_c_try_link LINENO |
---|
1678 | # ----------------------- |
---|
1679 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
---|
1680 | ac_fn_c_try_link () |
---|
1681 | { |
---|
1682 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1683 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
1684 | if { { ac_try="$ac_link" |
---|
1685 | case "(($ac_try" in |
---|
1686 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1687 | *) ac_try_echo=$ac_try;; |
---|
1688 | esac |
---|
1689 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1690 | $as_echo "$ac_try_echo"; } >&5 |
---|
1691 | (eval "$ac_link") 2>conftest.err |
---|
1692 | ac_status=$? |
---|
1693 | if test -s conftest.err; then |
---|
1694 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1695 | cat conftest.er1 >&5 |
---|
1696 | mv -f conftest.er1 conftest.err |
---|
1697 | fi |
---|
1698 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1699 | test $ac_status = 0; } && { |
---|
1700 | test -z "$ac_c_werror_flag" || |
---|
1701 | test ! -s conftest.err |
---|
1702 | } && test -s conftest$ac_exeext && { |
---|
1703 | test "$cross_compiling" = yes || |
---|
1704 | $as_test_x conftest$ac_exeext |
---|
1705 | }; then : |
---|
1706 | ac_retval=0 |
---|
1707 | else |
---|
1708 | $as_echo "$as_me: failed program was:" >&5 |
---|
1709 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1710 | |
---|
1711 | ac_retval=1 |
---|
1712 | fi |
---|
1713 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
---|
1714 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
---|
1715 | # interfere with the next link command; also delete a directory that is |
---|
1716 | # left behind by Apple's compiler. We do this before executing the actions. |
---|
1717 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
1718 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1719 | as_fn_set_status $ac_retval |
---|
1720 | |
---|
1721 | } # ac_fn_c_try_link |
---|
1722 | |
---|
1723 | # ac_fn_c_check_func LINENO FUNC VAR |
---|
1724 | # ---------------------------------- |
---|
1725 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
---|
1726 | ac_fn_c_check_func () |
---|
1727 | { |
---|
1728 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1730 | $as_echo_n "checking for $2... " >&6; } |
---|
1731 | if eval \${$3+:} false; then : |
---|
1732 | $as_echo_n "(cached) " >&6 |
---|
1733 | else |
---|
1734 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1735 | /* end confdefs.h. */ |
---|
1736 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
---|
1737 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
1738 | #define $2 innocuous_$2 |
---|
1739 | |
---|
1740 | /* System header to define __stub macros and hopefully few prototypes, |
---|
1741 | which can conflict with char $2 (); below. |
---|
1742 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
1743 | <limits.h> exists even on freestanding compilers. */ |
---|
1744 | |
---|
1745 | #ifdef __STDC__ |
---|
1746 | # include <limits.h> |
---|
1747 | #else |
---|
1748 | # include <assert.h> |
---|
1749 | #endif |
---|
1750 | |
---|
1751 | #undef $2 |
---|
1752 | |
---|
1753 | /* Override any GCC internal prototype to avoid an error. |
---|
1754 | Use char because int might match the return type of a GCC |
---|
1755 | builtin and then its argument prototype would still apply. */ |
---|
1756 | #ifdef __cplusplus |
---|
1757 | extern "C" |
---|
1758 | #endif |
---|
1759 | char $2 (); |
---|
1760 | /* The GNU C library defines this for functions which it implements |
---|
1761 | to always fail with ENOSYS. Some functions are actually named |
---|
1762 | something starting with __ and the normal name is an alias. */ |
---|
1763 | #if defined __stub_$2 || defined __stub___$2 |
---|
1764 | choke me |
---|
1765 | #endif |
---|
1766 | |
---|
1767 | int |
---|
1768 | main () |
---|
1769 | { |
---|
1770 | return $2 (); |
---|
1771 | ; |
---|
1772 | return 0; |
---|
1773 | } |
---|
1774 | _ACEOF |
---|
1775 | if ac_fn_c_try_link "$LINENO"; then : |
---|
1776 | eval "$3=yes" |
---|
1777 | else |
---|
1778 | eval "$3=no" |
---|
1779 | fi |
---|
1780 | rm -f core conftest.err conftest.$ac_objext \ |
---|
1781 | conftest$ac_exeext conftest.$ac_ext |
---|
1782 | fi |
---|
1783 | eval ac_res=\$$3 |
---|
1784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1785 | $as_echo "$ac_res" >&6; } |
---|
1786 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1787 | |
---|
1788 | } # ac_fn_c_check_func |
---|
1789 | |
---|
1790 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
---|
1791 | # ------------------------------------------------------- |
---|
1792 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
---|
1793 | # the include files in INCLUDES and setting the cache variable VAR |
---|
1794 | # accordingly. |
---|
1795 | ac_fn_c_check_header_mongrel () |
---|
1796 | { |
---|
1797 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1798 | if eval \${$3+:} false; then : |
---|
1799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1800 | $as_echo_n "checking for $2... " >&6; } |
---|
1801 | if eval \${$3+:} false; then : |
---|
1802 | $as_echo_n "(cached) " >&6 |
---|
1803 | fi |
---|
1804 | eval ac_res=\$$3 |
---|
1805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1806 | $as_echo "$ac_res" >&6; } |
---|
1807 | else |
---|
1808 | # Is the header compilable? |
---|
1809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
---|
1810 | $as_echo_n "checking $2 usability... " >&6; } |
---|
1811 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1812 | /* end confdefs.h. */ |
---|
1813 | $4 |
---|
1814 | #include <$2> |
---|
1815 | _ACEOF |
---|
1816 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1817 | ac_header_compiler=yes |
---|
1818 | else |
---|
1819 | ac_header_compiler=no |
---|
1820 | fi |
---|
1821 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
---|
1823 | $as_echo "$ac_header_compiler" >&6; } |
---|
1824 | |
---|
1825 | # Is the header present? |
---|
1826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
---|
1827 | $as_echo_n "checking $2 presence... " >&6; } |
---|
1828 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1829 | /* end confdefs.h. */ |
---|
1830 | #include <$2> |
---|
1831 | _ACEOF |
---|
1832 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
1833 | ac_header_preproc=yes |
---|
1834 | else |
---|
1835 | ac_header_preproc=no |
---|
1836 | fi |
---|
1837 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
1838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
---|
1839 | $as_echo "$ac_header_preproc" >&6; } |
---|
1840 | |
---|
1841 | # So? What about this header? |
---|
1842 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
---|
1843 | yes:no: ) |
---|
1844 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
1845 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
1846 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
---|
1847 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
---|
1848 | ;; |
---|
1849 | no:yes:* ) |
---|
1850 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
---|
1851 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
---|
1852 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
---|
1853 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
---|
1854 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
---|
1855 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
---|
1856 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
---|
1857 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
1858 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
---|
1859 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
---|
1860 | ( $as_echo "## --------------------------------------- ## |
---|
1861 | ## Report this to cforall@plg.uwaterloo.ca ## |
---|
1862 | ## --------------------------------------- ##" |
---|
1863 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
---|
1864 | ;; |
---|
1865 | esac |
---|
1866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1867 | $as_echo_n "checking for $2... " >&6; } |
---|
1868 | if eval \${$3+:} false; then : |
---|
1869 | $as_echo_n "(cached) " >&6 |
---|
1870 | else |
---|
1871 | eval "$3=\$ac_header_compiler" |
---|
1872 | fi |
---|
1873 | eval ac_res=\$$3 |
---|
1874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1875 | $as_echo "$ac_res" >&6; } |
---|
1876 | fi |
---|
1877 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1878 | |
---|
1879 | } # ac_fn_c_check_header_mongrel |
---|
1880 | |
---|
1881 | # ac_fn_c_find_intX_t LINENO BITS VAR |
---|
1882 | # ----------------------------------- |
---|
1883 | # Finds a signed integer type with width BITS, setting cache variable VAR |
---|
1884 | # accordingly. |
---|
1885 | ac_fn_c_find_intX_t () |
---|
1886 | { |
---|
1887 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 |
---|
1889 | $as_echo_n "checking for int$2_t... " >&6; } |
---|
1890 | if eval \${$3+:} false; then : |
---|
1891 | $as_echo_n "(cached) " >&6 |
---|
1892 | else |
---|
1893 | eval "$3=no" |
---|
1894 | # Order is important - never check a type that is potentially smaller |
---|
1895 | # than half of the expected target width. |
---|
1896 | for ac_type in int$2_t 'int' 'long int' \ |
---|
1897 | 'long long int' 'short int' 'signed char'; do |
---|
1898 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1899 | /* end confdefs.h. */ |
---|
1900 | $ac_includes_default |
---|
1901 | enum { N = $2 / 2 - 1 }; |
---|
1902 | int |
---|
1903 | main () |
---|
1904 | { |
---|
1905 | static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; |
---|
1906 | test_array [0] = 0 |
---|
1907 | |
---|
1908 | ; |
---|
1909 | return 0; |
---|
1910 | } |
---|
1911 | _ACEOF |
---|
1912 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1913 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1914 | /* end confdefs.h. */ |
---|
1915 | $ac_includes_default |
---|
1916 | enum { N = $2 / 2 - 1 }; |
---|
1917 | int |
---|
1918 | main () |
---|
1919 | { |
---|
1920 | static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) |
---|
1921 | < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; |
---|
1922 | test_array [0] = 0 |
---|
1923 | |
---|
1924 | ; |
---|
1925 | return 0; |
---|
1926 | } |
---|
1927 | _ACEOF |
---|
1928 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1929 | |
---|
1930 | else |
---|
1931 | case $ac_type in #( |
---|
1932 | int$2_t) : |
---|
1933 | eval "$3=yes" ;; #( |
---|
1934 | *) : |
---|
1935 | eval "$3=\$ac_type" ;; |
---|
1936 | esac |
---|
1937 | fi |
---|
1938 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1939 | fi |
---|
1940 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1941 | if eval test \"x\$"$3"\" = x"no"; then : |
---|
1942 | |
---|
1943 | else |
---|
1944 | break |
---|
1945 | fi |
---|
1946 | done |
---|
1947 | fi |
---|
1948 | eval ac_res=\$$3 |
---|
1949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1950 | $as_echo "$ac_res" >&6; } |
---|
1951 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1952 | |
---|
1953 | } # ac_fn_c_find_intX_t |
---|
1954 | |
---|
1955 | # ac_fn_c_find_uintX_t LINENO BITS VAR |
---|
1956 | # ------------------------------------ |
---|
1957 | # Finds an unsigned integer type with width BITS, setting cache variable VAR |
---|
1958 | # accordingly. |
---|
1959 | ac_fn_c_find_uintX_t () |
---|
1960 | { |
---|
1961 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 |
---|
1963 | $as_echo_n "checking for uint$2_t... " >&6; } |
---|
1964 | if eval \${$3+:} false; then : |
---|
1965 | $as_echo_n "(cached) " >&6 |
---|
1966 | else |
---|
1967 | eval "$3=no" |
---|
1968 | # Order is important - never check a type that is potentially smaller |
---|
1969 | # than half of the expected target width. |
---|
1970 | for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ |
---|
1971 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
---|
1972 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1973 | /* end confdefs.h. */ |
---|
1974 | $ac_includes_default |
---|
1975 | int |
---|
1976 | main () |
---|
1977 | { |
---|
1978 | static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; |
---|
1979 | test_array [0] = 0 |
---|
1980 | |
---|
1981 | ; |
---|
1982 | return 0; |
---|
1983 | } |
---|
1984 | _ACEOF |
---|
1985 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1986 | case $ac_type in #( |
---|
1987 | uint$2_t) : |
---|
1988 | eval "$3=yes" ;; #( |
---|
1989 | *) : |
---|
1990 | eval "$3=\$ac_type" ;; |
---|
1991 | esac |
---|
1992 | fi |
---|
1993 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1994 | if eval test \"x\$"$3"\" = x"no"; then : |
---|
1995 | |
---|
1996 | else |
---|
1997 | break |
---|
1998 | fi |
---|
1999 | done |
---|
2000 | fi |
---|
2001 | eval ac_res=\$$3 |
---|
2002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
2003 | $as_echo "$ac_res" >&6; } |
---|
2004 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
2005 | |
---|
2006 | } # ac_fn_c_find_uintX_t |
---|
2007 | cat >config.log <<_ACEOF |
---|
2008 | This file contains any messages produced by compilers while |
---|
2009 | running configure, to aid debugging if configure makes a mistake. |
---|
2010 | |
---|
2011 | It was created by cfa-cc $as_me 1.0.0, which was |
---|
2012 | generated by GNU Autoconf 2.68. Invocation command line was |
---|
2013 | |
---|
2014 | $ $0 $@ |
---|
2015 | |
---|
2016 | _ACEOF |
---|
2017 | exec 5>>config.log |
---|
2018 | { |
---|
2019 | cat <<_ASUNAME |
---|
2020 | ## --------- ## |
---|
2021 | ## Platform. ## |
---|
2022 | ## --------- ## |
---|
2023 | |
---|
2024 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
2025 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
2026 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
2027 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
2028 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
2029 | |
---|
2030 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
2031 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
2032 | |
---|
2033 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
2034 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
2035 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
2036 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
---|
2037 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
2038 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
2039 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
2040 | |
---|
2041 | _ASUNAME |
---|
2042 | |
---|
2043 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2044 | for as_dir in $PATH |
---|
2045 | do |
---|
2046 | IFS=$as_save_IFS |
---|
2047 | test -z "$as_dir" && as_dir=. |
---|
2048 | $as_echo "PATH: $as_dir" |
---|
2049 | done |
---|
2050 | IFS=$as_save_IFS |
---|
2051 | |
---|
2052 | } >&5 |
---|
2053 | |
---|
2054 | cat >&5 <<_ACEOF |
---|
2055 | |
---|
2056 | |
---|
2057 | ## ----------- ## |
---|
2058 | ## Core tests. ## |
---|
2059 | ## ----------- ## |
---|
2060 | |
---|
2061 | _ACEOF |
---|
2062 | |
---|
2063 | |
---|
2064 | # Keep a trace of the command line. |
---|
2065 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
2066 | # Strip out --silent because we don't want to record it for future runs. |
---|
2067 | # Also quote any args containing shell meta-characters. |
---|
2068 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
2069 | ac_configure_args= |
---|
2070 | ac_configure_args0= |
---|
2071 | ac_configure_args1= |
---|
2072 | ac_must_keep_next=false |
---|
2073 | for ac_pass in 1 2 |
---|
2074 | do |
---|
2075 | for ac_arg |
---|
2076 | do |
---|
2077 | case $ac_arg in |
---|
2078 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
2079 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
2080 | | -silent | --silent | --silen | --sile | --sil) |
---|
2081 | continue ;; |
---|
2082 | *\'*) |
---|
2083 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
2084 | esac |
---|
2085 | case $ac_pass in |
---|
2086 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
---|
2087 | 2) |
---|
2088 | as_fn_append ac_configure_args1 " '$ac_arg'" |
---|
2089 | if test $ac_must_keep_next = true; then |
---|
2090 | ac_must_keep_next=false # Got value, back to normal. |
---|
2091 | else |
---|
2092 | case $ac_arg in |
---|
2093 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
2094 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
2095 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
2096 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
2097 | case "$ac_configure_args0 " in |
---|
2098 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
2099 | esac |
---|
2100 | ;; |
---|
2101 | -* ) ac_must_keep_next=true ;; |
---|
2102 | esac |
---|
2103 | fi |
---|
2104 | as_fn_append ac_configure_args " '$ac_arg'" |
---|
2105 | ;; |
---|
2106 | esac |
---|
2107 | done |
---|
2108 | done |
---|
2109 | { ac_configure_args0=; unset ac_configure_args0;} |
---|
2110 | { ac_configure_args1=; unset ac_configure_args1;} |
---|
2111 | |
---|
2112 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
2113 | # config.log. We remove comments because anyway the quotes in there |
---|
2114 | # would cause problems or look ugly. |
---|
2115 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
---|
2116 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
---|
2117 | trap 'exit_status=$? |
---|
2118 | # Save into config.log some information that might help in debugging. |
---|
2119 | { |
---|
2120 | echo |
---|
2121 | |
---|
2122 | $as_echo "## ---------------- ## |
---|
2123 | ## Cache variables. ## |
---|
2124 | ## ---------------- ##" |
---|
2125 | echo |
---|
2126 | # The following way of writing the cache mishandles newlines in values, |
---|
2127 | ( |
---|
2128 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
---|
2129 | eval ac_val=\$$ac_var |
---|
2130 | case $ac_val in #( |
---|
2131 | *${as_nl}*) |
---|
2132 | case $ac_var in #( |
---|
2133 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
---|
2134 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
---|
2135 | esac |
---|
2136 | case $ac_var in #( |
---|
2137 | _ | IFS | as_nl) ;; #( |
---|
2138 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
---|
2139 | *) { eval $ac_var=; unset $ac_var;} ;; |
---|
2140 | esac ;; |
---|
2141 | esac |
---|
2142 | done |
---|
2143 | (set) 2>&1 | |
---|
2144 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
---|
2145 | *${as_nl}ac_space=\ *) |
---|
2146 | sed -n \ |
---|
2147 | "s/'\''/'\''\\\\'\'''\''/g; |
---|
2148 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
---|
2149 | ;; #( |
---|
2150 | *) |
---|
2151 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
2152 | ;; |
---|
2153 | esac | |
---|
2154 | sort |
---|
2155 | ) |
---|
2156 | echo |
---|
2157 | |
---|
2158 | $as_echo "## ----------------- ## |
---|
2159 | ## Output variables. ## |
---|
2160 | ## ----------------- ##" |
---|
2161 | echo |
---|
2162 | for ac_var in $ac_subst_vars |
---|
2163 | do |
---|
2164 | eval ac_val=\$$ac_var |
---|
2165 | case $ac_val in |
---|
2166 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
2167 | esac |
---|
2168 | $as_echo "$ac_var='\''$ac_val'\''" |
---|
2169 | done | sort |
---|
2170 | echo |
---|
2171 | |
---|
2172 | if test -n "$ac_subst_files"; then |
---|
2173 | $as_echo "## ------------------- ## |
---|
2174 | ## File substitutions. ## |
---|
2175 | ## ------------------- ##" |
---|
2176 | echo |
---|
2177 | for ac_var in $ac_subst_files |
---|
2178 | do |
---|
2179 | eval ac_val=\$$ac_var |
---|
2180 | case $ac_val in |
---|
2181 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
2182 | esac |
---|
2183 | $as_echo "$ac_var='\''$ac_val'\''" |
---|
2184 | done | sort |
---|
2185 | echo |
---|
2186 | fi |
---|
2187 | |
---|
2188 | if test -s confdefs.h; then |
---|
2189 | $as_echo "## ----------- ## |
---|
2190 | ## confdefs.h. ## |
---|
2191 | ## ----------- ##" |
---|
2192 | echo |
---|
2193 | cat confdefs.h |
---|
2194 | echo |
---|
2195 | fi |
---|
2196 | test "$ac_signal" != 0 && |
---|
2197 | $as_echo "$as_me: caught signal $ac_signal" |
---|
2198 | $as_echo "$as_me: exit $exit_status" |
---|
2199 | } >&5 |
---|
2200 | rm -f core *.core core.conftest.* && |
---|
2201 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
---|
2202 | exit $exit_status |
---|
2203 | ' 0 |
---|
2204 | for ac_signal in 1 2 13 15; do |
---|
2205 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
---|
2206 | done |
---|
2207 | ac_signal=0 |
---|
2208 | |
---|
2209 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
2210 | rm -f -r conftest* confdefs.h |
---|
2211 | |
---|
2212 | $as_echo "/* confdefs.h */" > confdefs.h |
---|
2213 | |
---|
2214 | # Predefined preprocessor variables. |
---|
2215 | |
---|
2216 | cat >>confdefs.h <<_ACEOF |
---|
2217 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
2218 | _ACEOF |
---|
2219 | |
---|
2220 | cat >>confdefs.h <<_ACEOF |
---|
2221 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
2222 | _ACEOF |
---|
2223 | |
---|
2224 | cat >>confdefs.h <<_ACEOF |
---|
2225 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
2226 | _ACEOF |
---|
2227 | |
---|
2228 | cat >>confdefs.h <<_ACEOF |
---|
2229 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
2230 | _ACEOF |
---|
2231 | |
---|
2232 | cat >>confdefs.h <<_ACEOF |
---|
2233 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
2234 | _ACEOF |
---|
2235 | |
---|
2236 | cat >>confdefs.h <<_ACEOF |
---|
2237 | #define PACKAGE_URL "$PACKAGE_URL" |
---|
2238 | _ACEOF |
---|
2239 | |
---|
2240 | |
---|
2241 | # Let the site file select an alternate cache file if it wants to. |
---|
2242 | # Prefer an explicitly selected file to automatically selected ones. |
---|
2243 | ac_site_file1=NONE |
---|
2244 | ac_site_file2=NONE |
---|
2245 | if test -n "$CONFIG_SITE"; then |
---|
2246 | # We do not want a PATH search for config.site. |
---|
2247 | case $CONFIG_SITE in #(( |
---|
2248 | -*) ac_site_file1=./$CONFIG_SITE;; |
---|
2249 | */*) ac_site_file1=$CONFIG_SITE;; |
---|
2250 | *) ac_site_file1=./$CONFIG_SITE;; |
---|
2251 | esac |
---|
2252 | elif test "x$prefix" != xNONE; then |
---|
2253 | ac_site_file1=$prefix/share/config.site |
---|
2254 | ac_site_file2=$prefix/etc/config.site |
---|
2255 | else |
---|
2256 | ac_site_file1=$ac_default_prefix/share/config.site |
---|
2257 | ac_site_file2=$ac_default_prefix/etc/config.site |
---|
2258 | fi |
---|
2259 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
---|
2260 | do |
---|
2261 | test "x$ac_site_file" = xNONE && continue |
---|
2262 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
---|
2263 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
---|
2264 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
2265 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
2266 | . "$ac_site_file" \ |
---|
2267 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2268 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2269 | as_fn_error $? "failed to load site script $ac_site_file |
---|
2270 | See \`config.log' for more details" "$LINENO" 5; } |
---|
2271 | fi |
---|
2272 | done |
---|
2273 | |
---|
2274 | if test -r "$cache_file"; then |
---|
2275 | # Some versions of bash will fail to source /dev/null (special files |
---|
2276 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
---|
2277 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
---|
2278 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
---|
2279 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
---|
2280 | case $cache_file in |
---|
2281 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
---|
2282 | *) . "./$cache_file";; |
---|
2283 | esac |
---|
2284 | fi |
---|
2285 | else |
---|
2286 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
---|
2287 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
---|
2288 | >$cache_file |
---|
2289 | fi |
---|
2290 | |
---|
2291 | # Check that the precious variables saved in the cache have kept the same |
---|
2292 | # value. |
---|
2293 | ac_cache_corrupted=false |
---|
2294 | for ac_var in $ac_precious_vars; do |
---|
2295 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
2296 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
2297 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
---|
2298 | eval ac_new_val=\$ac_env_${ac_var}_value |
---|
2299 | case $ac_old_set,$ac_new_set in |
---|
2300 | set,) |
---|
2301 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
2302 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
2303 | ac_cache_corrupted=: ;; |
---|
2304 | ,set) |
---|
2305 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
---|
2306 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
2307 | ac_cache_corrupted=: ;; |
---|
2308 | ,);; |
---|
2309 | *) |
---|
2310 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
2311 | # differences in whitespace do not lead to failure. |
---|
2312 | ac_old_val_w=`echo x $ac_old_val` |
---|
2313 | ac_new_val_w=`echo x $ac_new_val` |
---|
2314 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
---|
2315 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
2316 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
2317 | ac_cache_corrupted=: |
---|
2318 | else |
---|
2319 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
---|
2320 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
---|
2321 | eval $ac_var=\$ac_old_val |
---|
2322 | fi |
---|
2323 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
---|
2324 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
---|
2325 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
---|
2326 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
---|
2327 | fi;; |
---|
2328 | esac |
---|
2329 | # Pass precious variables to config.status. |
---|
2330 | if test "$ac_new_set" = set; then |
---|
2331 | case $ac_new_val in |
---|
2332 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
2333 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
2334 | esac |
---|
2335 | case " $ac_configure_args " in |
---|
2336 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
2337 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
---|
2338 | esac |
---|
2339 | fi |
---|
2340 | done |
---|
2341 | if $ac_cache_corrupted; then |
---|
2342 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2343 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2344 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
---|
2345 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
2346 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
---|
2347 | fi |
---|
2348 | ## -------------------- ## |
---|
2349 | ## Main body of script. ## |
---|
2350 | ## -------------------- ## |
---|
2351 | |
---|
2352 | ac_ext=c |
---|
2353 | ac_cpp='$CPP $CPPFLAGS' |
---|
2354 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2355 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2356 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2357 | |
---|
2358 | |
---|
2359 | #AM_INIT_AUTOMAKE([foreign]) # do not follow GNU standard |
---|
2360 | am__api_version='1.11' |
---|
2361 | |
---|
2362 | ac_aux_dir= |
---|
2363 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
---|
2364 | if test -f "$ac_dir/install-sh"; then |
---|
2365 | ac_aux_dir=$ac_dir |
---|
2366 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
2367 | break |
---|
2368 | elif test -f "$ac_dir/install.sh"; then |
---|
2369 | ac_aux_dir=$ac_dir |
---|
2370 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
2371 | break |
---|
2372 | elif test -f "$ac_dir/shtool"; then |
---|
2373 | ac_aux_dir=$ac_dir |
---|
2374 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
2375 | break |
---|
2376 | fi |
---|
2377 | done |
---|
2378 | if test -z "$ac_aux_dir"; then |
---|
2379 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
---|
2380 | fi |
---|
2381 | |
---|
2382 | # These three variables are undocumented and unsupported, |
---|
2383 | # and are intended to be withdrawn in a future Autoconf release. |
---|
2384 | # They can cause serious problems if a builder's source tree is in a directory |
---|
2385 | # whose full name contains unusual characters. |
---|
2386 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
---|
2387 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
---|
2388 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
---|
2389 | |
---|
2390 | |
---|
2391 | # Find a good install program. We prefer a C program (faster), |
---|
2392 | # so one script is as good as another. But avoid the broken or |
---|
2393 | # incompatible versions: |
---|
2394 | # SysV /etc/install, /usr/sbin/install |
---|
2395 | # SunOS /usr/etc/install |
---|
2396 | # IRIX /sbin/install |
---|
2397 | # AIX /bin/install |
---|
2398 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
2399 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
2400 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
2401 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
2402 | # OS/2's system install, which has a completely different semantic |
---|
2403 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
2404 | # Reject install programs that cannot install multiple files. |
---|
2405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
---|
2406 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
---|
2407 | if test -z "$INSTALL"; then |
---|
2408 | if ${ac_cv_path_install+:} false; then : |
---|
2409 | $as_echo_n "(cached) " >&6 |
---|
2410 | else |
---|
2411 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2412 | for as_dir in $PATH |
---|
2413 | do |
---|
2414 | IFS=$as_save_IFS |
---|
2415 | test -z "$as_dir" && as_dir=. |
---|
2416 | # Account for people who put trailing slashes in PATH elements. |
---|
2417 | case $as_dir/ in #(( |
---|
2418 | ./ | .// | /[cC]/* | \ |
---|
2419 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
2420 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
---|
2421 | /usr/ucb/* ) ;; |
---|
2422 | *) |
---|
2423 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
2424 | # Don't use installbsd from OSF since it installs stuff as root |
---|
2425 | # by default. |
---|
2426 | for ac_prog in ginstall scoinst install; do |
---|
2427 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2428 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
---|
2429 | if test $ac_prog = install && |
---|
2430 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
2431 | # AIX install. It has an incompatible calling convention. |
---|
2432 | : |
---|
2433 | elif test $ac_prog = install && |
---|
2434 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
2435 | # program-specific install script used by HP pwplus--don't use. |
---|
2436 | : |
---|
2437 | else |
---|
2438 | rm -rf conftest.one conftest.two conftest.dir |
---|
2439 | echo one > conftest.one |
---|
2440 | echo two > conftest.two |
---|
2441 | mkdir conftest.dir |
---|
2442 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
---|
2443 | test -s conftest.one && test -s conftest.two && |
---|
2444 | test -s conftest.dir/conftest.one && |
---|
2445 | test -s conftest.dir/conftest.two |
---|
2446 | then |
---|
2447 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
2448 | break 3 |
---|
2449 | fi |
---|
2450 | fi |
---|
2451 | fi |
---|
2452 | done |
---|
2453 | done |
---|
2454 | ;; |
---|
2455 | esac |
---|
2456 | |
---|
2457 | done |
---|
2458 | IFS=$as_save_IFS |
---|
2459 | |
---|
2460 | rm -rf conftest.one conftest.two conftest.dir |
---|
2461 | |
---|
2462 | fi |
---|
2463 | if test "${ac_cv_path_install+set}" = set; then |
---|
2464 | INSTALL=$ac_cv_path_install |
---|
2465 | else |
---|
2466 | # As a last resort, use the slow shell script. Don't cache a |
---|
2467 | # value for INSTALL within a source directory, because that will |
---|
2468 | # break other packages using the cache if that directory is |
---|
2469 | # removed, or if the value is a relative name. |
---|
2470 | INSTALL=$ac_install_sh |
---|
2471 | fi |
---|
2472 | fi |
---|
2473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
---|
2474 | $as_echo "$INSTALL" >&6; } |
---|
2475 | |
---|
2476 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
2477 | # It thinks the first close brace ends the variable substitution. |
---|
2478 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
2479 | |
---|
2480 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
2481 | |
---|
2482 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
2483 | |
---|
2484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
---|
2485 | $as_echo_n "checking whether build environment is sane... " >&6; } |
---|
2486 | # Just in case |
---|
2487 | sleep 1 |
---|
2488 | echo timestamp > conftest.file |
---|
2489 | # Reject unsafe characters in $srcdir or the absolute working directory |
---|
2490 | # name. Accept space and tab only in the latter. |
---|
2491 | am_lf=' |
---|
2492 | ' |
---|
2493 | case `pwd` in |
---|
2494 | *[\\\"\#\$\&\'\`$am_lf]*) |
---|
2495 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
---|
2496 | esac |
---|
2497 | case $srcdir in |
---|
2498 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
---|
2499 | as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; |
---|
2500 | esac |
---|
2501 | |
---|
2502 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
2503 | # arguments. Must try -L first in case configure is actually a |
---|
2504 | # symlink; some systems play weird games with the mod time of symlinks |
---|
2505 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
2506 | # directory). |
---|
2507 | if ( |
---|
2508 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
---|
2509 | if test "$*" = "X"; then |
---|
2510 | # -L didn't work. |
---|
2511 | set X `ls -t "$srcdir/configure" conftest.file` |
---|
2512 | fi |
---|
2513 | rm -f conftest.file |
---|
2514 | if test "$*" != "X $srcdir/configure conftest.file" \ |
---|
2515 | && test "$*" != "X conftest.file $srcdir/configure"; then |
---|
2516 | |
---|
2517 | # If neither matched, then we have a broken ls. This can happen |
---|
2518 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
2519 | # broken ls alias from the environment. This has actually |
---|
2520 | # happened. Such a system could not be considered "sane". |
---|
2521 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken |
---|
2522 | alias in your environment" "$LINENO" 5 |
---|
2523 | fi |
---|
2524 | |
---|
2525 | test "$2" = conftest.file |
---|
2526 | ) |
---|
2527 | then |
---|
2528 | # Ok. |
---|
2529 | : |
---|
2530 | else |
---|
2531 | as_fn_error $? "newly created file is older than distributed files! |
---|
2532 | Check your system clock" "$LINENO" 5 |
---|
2533 | fi |
---|
2534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
2535 | $as_echo "yes" >&6; } |
---|
2536 | test "$program_prefix" != NONE && |
---|
2537 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
---|
2538 | # Use a double $ so make ignores it. |
---|
2539 | test "$program_suffix" != NONE && |
---|
2540 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
---|
2541 | # Double any \ or $. |
---|
2542 | # By default was `s,x,x', remove it if useless. |
---|
2543 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
---|
2544 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
---|
2545 | |
---|
2546 | # expand $ac_aux_dir to an absolute path |
---|
2547 | am_aux_dir=`cd $ac_aux_dir && pwd` |
---|
2548 | |
---|
2549 | if test x"${MISSING+set}" != xset; then |
---|
2550 | case $am_aux_dir in |
---|
2551 | *\ * | *\ *) |
---|
2552 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
---|
2553 | *) |
---|
2554 | MISSING="\${SHELL} $am_aux_dir/missing" ;; |
---|
2555 | esac |
---|
2556 | fi |
---|
2557 | # Use eval to expand $SHELL |
---|
2558 | if eval "$MISSING --run true"; then |
---|
2559 | am_missing_run="$MISSING --run " |
---|
2560 | else |
---|
2561 | am_missing_run= |
---|
2562 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
---|
2563 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
---|
2564 | fi |
---|
2565 | |
---|
2566 | if test x"${install_sh}" != xset; then |
---|
2567 | case $am_aux_dir in |
---|
2568 | *\ * | *\ *) |
---|
2569 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
---|
2570 | *) |
---|
2571 | install_sh="\${SHELL} $am_aux_dir/install-sh" |
---|
2572 | esac |
---|
2573 | fi |
---|
2574 | |
---|
2575 | # Installed binaries are usually stripped using `strip' when the user |
---|
2576 | # run `make install-strip'. However `strip' might not be the right |
---|
2577 | # tool to use in cross-compilation environments, therefore Automake |
---|
2578 | # will honor the `STRIP' environment variable to overrule this program. |
---|
2579 | if test "$cross_compiling" != no; then |
---|
2580 | if test -n "$ac_tool_prefix"; then |
---|
2581 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
2582 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
2583 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2584 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2585 | if ${ac_cv_prog_STRIP+:} false; then : |
---|
2586 | $as_echo_n "(cached) " >&6 |
---|
2587 | else |
---|
2588 | if test -n "$STRIP"; then |
---|
2589 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
2590 | else |
---|
2591 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2592 | for as_dir in $PATH |
---|
2593 | do |
---|
2594 | IFS=$as_save_IFS |
---|
2595 | test -z "$as_dir" && as_dir=. |
---|
2596 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2597 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2598 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
2599 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2600 | break 2 |
---|
2601 | fi |
---|
2602 | done |
---|
2603 | done |
---|
2604 | IFS=$as_save_IFS |
---|
2605 | |
---|
2606 | fi |
---|
2607 | fi |
---|
2608 | STRIP=$ac_cv_prog_STRIP |
---|
2609 | if test -n "$STRIP"; then |
---|
2610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
---|
2611 | $as_echo "$STRIP" >&6; } |
---|
2612 | else |
---|
2613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2614 | $as_echo "no" >&6; } |
---|
2615 | fi |
---|
2616 | |
---|
2617 | |
---|
2618 | fi |
---|
2619 | if test -z "$ac_cv_prog_STRIP"; then |
---|
2620 | ac_ct_STRIP=$STRIP |
---|
2621 | # Extract the first word of "strip", so it can be a program name with args. |
---|
2622 | set dummy strip; ac_word=$2 |
---|
2623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2624 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2625 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
---|
2626 | $as_echo_n "(cached) " >&6 |
---|
2627 | else |
---|
2628 | if test -n "$ac_ct_STRIP"; then |
---|
2629 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
2630 | else |
---|
2631 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2632 | for as_dir in $PATH |
---|
2633 | do |
---|
2634 | IFS=$as_save_IFS |
---|
2635 | test -z "$as_dir" && as_dir=. |
---|
2636 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2637 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2638 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
2639 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2640 | break 2 |
---|
2641 | fi |
---|
2642 | done |
---|
2643 | done |
---|
2644 | IFS=$as_save_IFS |
---|
2645 | |
---|
2646 | fi |
---|
2647 | fi |
---|
2648 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
2649 | if test -n "$ac_ct_STRIP"; then |
---|
2650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
---|
2651 | $as_echo "$ac_ct_STRIP" >&6; } |
---|
2652 | else |
---|
2653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2654 | $as_echo "no" >&6; } |
---|
2655 | fi |
---|
2656 | |
---|
2657 | if test "x$ac_ct_STRIP" = x; then |
---|
2658 | STRIP=":" |
---|
2659 | else |
---|
2660 | case $cross_compiling:$ac_tool_warned in |
---|
2661 | yes:) |
---|
2662 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
2663 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
2664 | ac_tool_warned=yes ;; |
---|
2665 | esac |
---|
2666 | STRIP=$ac_ct_STRIP |
---|
2667 | fi |
---|
2668 | else |
---|
2669 | STRIP="$ac_cv_prog_STRIP" |
---|
2670 | fi |
---|
2671 | |
---|
2672 | fi |
---|
2673 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
---|
2674 | |
---|
2675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
---|
2676 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
---|
2677 | if test -z "$MKDIR_P"; then |
---|
2678 | if ${ac_cv_path_mkdir+:} false; then : |
---|
2679 | $as_echo_n "(cached) " >&6 |
---|
2680 | else |
---|
2681 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2682 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
---|
2683 | do |
---|
2684 | IFS=$as_save_IFS |
---|
2685 | test -z "$as_dir" && as_dir=. |
---|
2686 | for ac_prog in mkdir gmkdir; do |
---|
2687 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2688 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue |
---|
2689 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
---|
2690 | 'mkdir (GNU coreutils) '* | \ |
---|
2691 | 'mkdir (coreutils) '* | \ |
---|
2692 | 'mkdir (fileutils) '4.1*) |
---|
2693 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
---|
2694 | break 3;; |
---|
2695 | esac |
---|
2696 | done |
---|
2697 | done |
---|
2698 | done |
---|
2699 | IFS=$as_save_IFS |
---|
2700 | |
---|
2701 | fi |
---|
2702 | |
---|
2703 | test -d ./--version && rmdir ./--version |
---|
2704 | if test "${ac_cv_path_mkdir+set}" = set; then |
---|
2705 | MKDIR_P="$ac_cv_path_mkdir -p" |
---|
2706 | else |
---|
2707 | # As a last resort, use the slow shell script. Don't cache a |
---|
2708 | # value for MKDIR_P within a source directory, because that will |
---|
2709 | # break other packages using the cache if that directory is |
---|
2710 | # removed, or if the value is a relative name. |
---|
2711 | MKDIR_P="$ac_install_sh -d" |
---|
2712 | fi |
---|
2713 | fi |
---|
2714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
---|
2715 | $as_echo "$MKDIR_P" >&6; } |
---|
2716 | |
---|
2717 | mkdir_p="$MKDIR_P" |
---|
2718 | case $mkdir_p in |
---|
2719 | [\\/$]* | ?:[\\/]*) ;; |
---|
2720 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
---|
2721 | esac |
---|
2722 | |
---|
2723 | for ac_prog in gawk mawk nawk awk |
---|
2724 | do |
---|
2725 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2726 | set dummy $ac_prog; ac_word=$2 |
---|
2727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2728 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2729 | if ${ac_cv_prog_AWK+:} false; then : |
---|
2730 | $as_echo_n "(cached) " >&6 |
---|
2731 | else |
---|
2732 | if test -n "$AWK"; then |
---|
2733 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
2734 | else |
---|
2735 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2736 | for as_dir in $PATH |
---|
2737 | do |
---|
2738 | IFS=$as_save_IFS |
---|
2739 | test -z "$as_dir" && as_dir=. |
---|
2740 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2741 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2742 | ac_cv_prog_AWK="$ac_prog" |
---|
2743 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2744 | break 2 |
---|
2745 | fi |
---|
2746 | done |
---|
2747 | done |
---|
2748 | IFS=$as_save_IFS |
---|
2749 | |
---|
2750 | fi |
---|
2751 | fi |
---|
2752 | AWK=$ac_cv_prog_AWK |
---|
2753 | if test -n "$AWK"; then |
---|
2754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
---|
2755 | $as_echo "$AWK" >&6; } |
---|
2756 | else |
---|
2757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2758 | $as_echo "no" >&6; } |
---|
2759 | fi |
---|
2760 | |
---|
2761 | |
---|
2762 | test -n "$AWK" && break |
---|
2763 | done |
---|
2764 | |
---|
2765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
2766 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
---|
2767 | set x ${MAKE-make} |
---|
2768 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
---|
2769 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
---|
2770 | $as_echo_n "(cached) " >&6 |
---|
2771 | else |
---|
2772 | cat >conftest.make <<\_ACEOF |
---|
2773 | SHELL = /bin/sh |
---|
2774 | all: |
---|
2775 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
---|
2776 | _ACEOF |
---|
2777 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
---|
2778 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
---|
2779 | *@@@%%%=?*=@@@%%%*) |
---|
2780 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
---|
2781 | *) |
---|
2782 | eval ac_cv_prog_make_${ac_make}_set=no;; |
---|
2783 | esac |
---|
2784 | rm -f conftest.make |
---|
2785 | fi |
---|
2786 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
---|
2787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
2788 | $as_echo "yes" >&6; } |
---|
2789 | SET_MAKE= |
---|
2790 | else |
---|
2791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2792 | $as_echo "no" >&6; } |
---|
2793 | SET_MAKE="MAKE=${MAKE-make}" |
---|
2794 | fi |
---|
2795 | |
---|
2796 | rm -rf .tst 2>/dev/null |
---|
2797 | mkdir .tst 2>/dev/null |
---|
2798 | if test -d .tst; then |
---|
2799 | am__leading_dot=. |
---|
2800 | else |
---|
2801 | am__leading_dot=_ |
---|
2802 | fi |
---|
2803 | rmdir .tst 2>/dev/null |
---|
2804 | |
---|
2805 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
---|
2806 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
---|
2807 | # is not polluted with repeated "-I." |
---|
2808 | am__isrc=' -I$(srcdir)' |
---|
2809 | # test to see if srcdir already configured |
---|
2810 | if test -f $srcdir/config.status; then |
---|
2811 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
---|
2812 | fi |
---|
2813 | fi |
---|
2814 | |
---|
2815 | # test whether we have cygpath |
---|
2816 | if test -z "$CYGPATH_W"; then |
---|
2817 | if (cygpath --version) >/dev/null 2>/dev/null; then |
---|
2818 | CYGPATH_W='cygpath -w' |
---|
2819 | else |
---|
2820 | CYGPATH_W=echo |
---|
2821 | fi |
---|
2822 | fi |
---|
2823 | |
---|
2824 | |
---|
2825 | # Define the identity of the package. |
---|
2826 | PACKAGE='cfa-cc' |
---|
2827 | VERSION='1.0.0' |
---|
2828 | |
---|
2829 | |
---|
2830 | cat >>confdefs.h <<_ACEOF |
---|
2831 | #define PACKAGE "$PACKAGE" |
---|
2832 | _ACEOF |
---|
2833 | |
---|
2834 | |
---|
2835 | cat >>confdefs.h <<_ACEOF |
---|
2836 | #define VERSION "$VERSION" |
---|
2837 | _ACEOF |
---|
2838 | |
---|
2839 | # Some tools Automake needs. |
---|
2840 | |
---|
2841 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
---|
2842 | |
---|
2843 | |
---|
2844 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
---|
2845 | |
---|
2846 | |
---|
2847 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
---|
2848 | |
---|
2849 | |
---|
2850 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
---|
2851 | |
---|
2852 | |
---|
2853 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
---|
2854 | |
---|
2855 | # We need awk for the "check" target. The system "awk" is bad on |
---|
2856 | # some platforms. |
---|
2857 | # Always define AMTAR for backward compatibility. Yes, it's still used |
---|
2858 | # in the wild :-( We should find a proper way to deprecate it ... |
---|
2859 | AMTAR='$${TAR-tar}' |
---|
2860 | |
---|
2861 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
---|
2862 | |
---|
2863 | |
---|
2864 | |
---|
2865 | |
---|
2866 | |
---|
2867 | |
---|
2868 | ac_config_headers="$ac_config_headers config.h" |
---|
2869 | |
---|
2870 | |
---|
2871 | # Installation paths |
---|
2872 | |
---|
2873 | |
---|
2874 | # Check whether --with-backend-compiler was given. |
---|
2875 | if test "${with_backend_compiler+set}" = set; then : |
---|
2876 | withval=$with_backend_compiler; backcompiler=$withval |
---|
2877 | else |
---|
2878 | backcompiler="" |
---|
2879 | fi |
---|
2880 | |
---|
2881 | if test x$backcompiler != x; then |
---|
2882 | cat >>confdefs.h <<_ACEOF |
---|
2883 | #define GCC_PATH "${backcompiler}" |
---|
2884 | _ACEOF |
---|
2885 | |
---|
2886 | BACKEND_CC=${backcompiler} |
---|
2887 | else |
---|
2888 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
2889 | set dummy gcc; ac_word=$2 |
---|
2890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2891 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2892 | if ${ac_cv_path_GCC_PATH+:} false; then : |
---|
2893 | $as_echo_n "(cached) " >&6 |
---|
2894 | else |
---|
2895 | case $GCC_PATH in |
---|
2896 | [\\/]* | ?:[\\/]*) |
---|
2897 | ac_cv_path_GCC_PATH="$GCC_PATH" # Let the user override the test with a path. |
---|
2898 | ;; |
---|
2899 | *) |
---|
2900 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2901 | for as_dir in $PATH |
---|
2902 | do |
---|
2903 | IFS=$as_save_IFS |
---|
2904 | test -z "$as_dir" && as_dir=. |
---|
2905 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2906 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2907 | ac_cv_path_GCC_PATH="$as_dir/$ac_word$ac_exec_ext" |
---|
2908 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2909 | break 2 |
---|
2910 | fi |
---|
2911 | done |
---|
2912 | done |
---|
2913 | IFS=$as_save_IFS |
---|
2914 | |
---|
2915 | test -z "$ac_cv_path_GCC_PATH" && ac_cv_path_GCC_PATH="N/A" |
---|
2916 | ;; |
---|
2917 | esac |
---|
2918 | fi |
---|
2919 | GCC_PATH=$ac_cv_path_GCC_PATH |
---|
2920 | if test -n "$GCC_PATH"; then |
---|
2921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_PATH" >&5 |
---|
2922 | $as_echo "$GCC_PATH" >&6; } |
---|
2923 | else |
---|
2924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2925 | $as_echo "no" >&6; } |
---|
2926 | fi |
---|
2927 | |
---|
2928 | |
---|
2929 | if test "$GCC_PATH" = "N/A"; then |
---|
2930 | as_fn_error $? "some version of gcc is needed. Get it at ftp://ftp.gnu.org" "$LINENO" 5 |
---|
2931 | exit 1 |
---|
2932 | fi |
---|
2933 | |
---|
2934 | cat >>confdefs.h <<_ACEOF |
---|
2935 | #define GCC_PATH "${GCC_PATH}" |
---|
2936 | _ACEOF |
---|
2937 | |
---|
2938 | BACKEND_CC=${GCC_PATH} |
---|
2939 | fi |
---|
2940 | |
---|
2941 | |
---|
2942 | CFA_PREFIX= |
---|
2943 | if test "x$prefix" = "xNONE"; then |
---|
2944 | cfa_prefix=${ac_default_prefix} |
---|
2945 | else |
---|
2946 | cfa_prefix=${prefix} |
---|
2947 | fi |
---|
2948 | |
---|
2949 | cat >>confdefs.h <<_ACEOF |
---|
2950 | #define CFA_PREFIX "${cfa_prefix}" |
---|
2951 | _ACEOF |
---|
2952 | |
---|
2953 | CFA_PREFIX=${cfa_prefix} |
---|
2954 | |
---|
2955 | |
---|
2956 | CFA_INCDIR= |
---|
2957 | if test "$includedir" = '${prefix}/include'; then |
---|
2958 | cfa_incdir="${cfa_prefix}/include" |
---|
2959 | else |
---|
2960 | cfa_incdir=${$includedir} |
---|
2961 | fi |
---|
2962 | |
---|
2963 | cat >>confdefs.h <<_ACEOF |
---|
2964 | #define CFA_INCDIR "${cfa_incdir}" |
---|
2965 | _ACEOF |
---|
2966 | |
---|
2967 | CFA_INCDIR=${cfa_incdir} |
---|
2968 | |
---|
2969 | |
---|
2970 | CFA_BINDIR= |
---|
2971 | if test "$bindir" = '${exec_prefix}/bin'; then |
---|
2972 | cfa_bindir="${cfa_prefix}/bin" |
---|
2973 | else |
---|
2974 | cfa_bindir=${bindir} |
---|
2975 | fi |
---|
2976 | |
---|
2977 | cat >>confdefs.h <<_ACEOF |
---|
2978 | #define CFA_BINDIR "${cfa_bindir}" |
---|
2979 | _ACEOF |
---|
2980 | |
---|
2981 | CFA_BINDIR=${cfa_bindir} |
---|
2982 | |
---|
2983 | |
---|
2984 | CFA_LIBDIR= |
---|
2985 | if test "$libdir" = '${exec_prefix}/lib'; then |
---|
2986 | cfa_libdir=${cfa_prefix}/lib |
---|
2987 | else |
---|
2988 | cfa_libdir=${libdir} |
---|
2989 | fi |
---|
2990 | |
---|
2991 | cat >>confdefs.h <<_ACEOF |
---|
2992 | #define CFA_LIBDIR "${cfa_libdir}" |
---|
2993 | _ACEOF |
---|
2994 | |
---|
2995 | CFA_LIBDIR=${cfa_libdir} |
---|
2996 | |
---|
2997 | |
---|
2998 | # Checks for programs. |
---|
2999 | ac_ext=cpp |
---|
3000 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
3001 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3002 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3003 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
3004 | if test -z "$CXX"; then |
---|
3005 | if test -n "$CCC"; then |
---|
3006 | CXX=$CCC |
---|
3007 | else |
---|
3008 | if test -n "$ac_tool_prefix"; then |
---|
3009 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
---|
3010 | do |
---|
3011 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
3012 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
3013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3014 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3015 | if ${ac_cv_prog_CXX+:} false; then : |
---|
3016 | $as_echo_n "(cached) " >&6 |
---|
3017 | else |
---|
3018 | if test -n "$CXX"; then |
---|
3019 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
3020 | else |
---|
3021 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3022 | for as_dir in $PATH |
---|
3023 | do |
---|
3024 | IFS=$as_save_IFS |
---|
3025 | test -z "$as_dir" && as_dir=. |
---|
3026 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3027 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3028 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
3029 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3030 | break 2 |
---|
3031 | fi |
---|
3032 | done |
---|
3033 | done |
---|
3034 | IFS=$as_save_IFS |
---|
3035 | |
---|
3036 | fi |
---|
3037 | fi |
---|
3038 | CXX=$ac_cv_prog_CXX |
---|
3039 | if test -n "$CXX"; then |
---|
3040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
---|
3041 | $as_echo "$CXX" >&6; } |
---|
3042 | else |
---|
3043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3044 | $as_echo "no" >&6; } |
---|
3045 | fi |
---|
3046 | |
---|
3047 | |
---|
3048 | test -n "$CXX" && break |
---|
3049 | done |
---|
3050 | fi |
---|
3051 | if test -z "$CXX"; then |
---|
3052 | ac_ct_CXX=$CXX |
---|
3053 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
---|
3054 | do |
---|
3055 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3056 | set dummy $ac_prog; ac_word=$2 |
---|
3057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3058 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3059 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
---|
3060 | $as_echo_n "(cached) " >&6 |
---|
3061 | else |
---|
3062 | if test -n "$ac_ct_CXX"; then |
---|
3063 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
3064 | else |
---|
3065 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3066 | for as_dir in $PATH |
---|
3067 | do |
---|
3068 | IFS=$as_save_IFS |
---|
3069 | test -z "$as_dir" && as_dir=. |
---|
3070 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3071 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3072 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
3073 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3074 | break 2 |
---|
3075 | fi |
---|
3076 | done |
---|
3077 | done |
---|
3078 | IFS=$as_save_IFS |
---|
3079 | |
---|
3080 | fi |
---|
3081 | fi |
---|
3082 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
3083 | if test -n "$ac_ct_CXX"; then |
---|
3084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
---|
3085 | $as_echo "$ac_ct_CXX" >&6; } |
---|
3086 | else |
---|
3087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3088 | $as_echo "no" >&6; } |
---|
3089 | fi |
---|
3090 | |
---|
3091 | |
---|
3092 | test -n "$ac_ct_CXX" && break |
---|
3093 | done |
---|
3094 | |
---|
3095 | if test "x$ac_ct_CXX" = x; then |
---|
3096 | CXX="g++" |
---|
3097 | else |
---|
3098 | case $cross_compiling:$ac_tool_warned in |
---|
3099 | yes:) |
---|
3100 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
3101 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
3102 | ac_tool_warned=yes ;; |
---|
3103 | esac |
---|
3104 | CXX=$ac_ct_CXX |
---|
3105 | fi |
---|
3106 | fi |
---|
3107 | |
---|
3108 | fi |
---|
3109 | fi |
---|
3110 | # Provide some information about the compiler. |
---|
3111 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
---|
3112 | set X $ac_compile |
---|
3113 | ac_compiler=$2 |
---|
3114 | for ac_option in --version -v -V -qversion; do |
---|
3115 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
3116 | case "(($ac_try" in |
---|
3117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3118 | *) ac_try_echo=$ac_try;; |
---|
3119 | esac |
---|
3120 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3121 | $as_echo "$ac_try_echo"; } >&5 |
---|
3122 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
3123 | ac_status=$? |
---|
3124 | if test -s conftest.err; then |
---|
3125 | sed '10a\ |
---|
3126 | ... rest of stderr output deleted ... |
---|
3127 | 10q' conftest.err >conftest.er1 |
---|
3128 | cat conftest.er1 >&5 |
---|
3129 | fi |
---|
3130 | rm -f conftest.er1 conftest.err |
---|
3131 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3132 | test $ac_status = 0; } |
---|
3133 | done |
---|
3134 | |
---|
3135 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3136 | /* end confdefs.h. */ |
---|
3137 | |
---|
3138 | int |
---|
3139 | main () |
---|
3140 | { |
---|
3141 | |
---|
3142 | ; |
---|
3143 | return 0; |
---|
3144 | } |
---|
3145 | _ACEOF |
---|
3146 | ac_clean_files_save=$ac_clean_files |
---|
3147 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
---|
3148 | # Try to create an executable without -o first, disregard a.out. |
---|
3149 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
3150 | # of exeext. |
---|
3151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 |
---|
3152 | $as_echo_n "checking whether the C++ compiler works... " >&6; } |
---|
3153 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
3154 | |
---|
3155 | # The possible output files: |
---|
3156 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
---|
3157 | |
---|
3158 | ac_rmfiles= |
---|
3159 | for ac_file in $ac_files |
---|
3160 | do |
---|
3161 | case $ac_file in |
---|
3162 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
3163 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
---|
3164 | esac |
---|
3165 | done |
---|
3166 | rm -f $ac_rmfiles |
---|
3167 | |
---|
3168 | if { { ac_try="$ac_link_default" |
---|
3169 | case "(($ac_try" in |
---|
3170 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3171 | *) ac_try_echo=$ac_try;; |
---|
3172 | esac |
---|
3173 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3174 | $as_echo "$ac_try_echo"; } >&5 |
---|
3175 | (eval "$ac_link_default") 2>&5 |
---|
3176 | ac_status=$? |
---|
3177 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3178 | test $ac_status = 0; }; then : |
---|
3179 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
---|
3180 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
---|
3181 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
---|
3182 | # so that the user can short-circuit this test for compilers unknown to |
---|
3183 | # Autoconf. |
---|
3184 | for ac_file in $ac_files '' |
---|
3185 | do |
---|
3186 | test -f "$ac_file" || continue |
---|
3187 | case $ac_file in |
---|
3188 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
---|
3189 | ;; |
---|
3190 | [ab].out ) |
---|
3191 | # We found the default executable, but exeext='' is most |
---|
3192 | # certainly right. |
---|
3193 | break;; |
---|
3194 | *.* ) |
---|
3195 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
---|
3196 | then :; else |
---|
3197 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
3198 | fi |
---|
3199 | # We set ac_cv_exeext here because the later test for it is not |
---|
3200 | # safe: cross compilers may not add the suffix if given an `-o' |
---|
3201 | # argument, so we may need to know it at that point already. |
---|
3202 | # Even if this section looks crufty: it has the advantage of |
---|
3203 | # actually working. |
---|
3204 | break;; |
---|
3205 | * ) |
---|
3206 | break;; |
---|
3207 | esac |
---|
3208 | done |
---|
3209 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
---|
3210 | |
---|
3211 | else |
---|
3212 | ac_file='' |
---|
3213 | fi |
---|
3214 | if test -z "$ac_file"; then : |
---|
3215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3216 | $as_echo "no" >&6; } |
---|
3217 | $as_echo "$as_me: failed program was:" >&5 |
---|
3218 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3219 | |
---|
3220 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3221 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3222 | as_fn_error 77 "C++ compiler cannot create executables |
---|
3223 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3224 | else |
---|
3225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
3226 | $as_echo "yes" >&6; } |
---|
3227 | fi |
---|
3228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5 |
---|
3229 | $as_echo_n "checking for C++ compiler default output file name... " >&6; } |
---|
3230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
---|
3231 | $as_echo "$ac_file" >&6; } |
---|
3232 | ac_exeext=$ac_cv_exeext |
---|
3233 | |
---|
3234 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
---|
3235 | ac_clean_files=$ac_clean_files_save |
---|
3236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
---|
3237 | $as_echo_n "checking for suffix of executables... " >&6; } |
---|
3238 | if { { ac_try="$ac_link" |
---|
3239 | case "(($ac_try" in |
---|
3240 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3241 | *) ac_try_echo=$ac_try;; |
---|
3242 | esac |
---|
3243 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3244 | $as_echo "$ac_try_echo"; } >&5 |
---|
3245 | (eval "$ac_link") 2>&5 |
---|
3246 | ac_status=$? |
---|
3247 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3248 | test $ac_status = 0; }; then : |
---|
3249 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
3250 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
3251 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
3252 | # `rm'. |
---|
3253 | for ac_file in conftest.exe conftest conftest.*; do |
---|
3254 | test -f "$ac_file" || continue |
---|
3255 | case $ac_file in |
---|
3256 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
3257 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
3258 | break;; |
---|
3259 | * ) break;; |
---|
3260 | esac |
---|
3261 | done |
---|
3262 | else |
---|
3263 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3264 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3265 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
---|
3266 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3267 | fi |
---|
3268 | rm -f conftest conftest$ac_cv_exeext |
---|
3269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
---|
3270 | $as_echo "$ac_cv_exeext" >&6; } |
---|
3271 | |
---|
3272 | rm -f conftest.$ac_ext |
---|
3273 | EXEEXT=$ac_cv_exeext |
---|
3274 | ac_exeext=$EXEEXT |
---|
3275 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3276 | /* end confdefs.h. */ |
---|
3277 | #include <stdio.h> |
---|
3278 | int |
---|
3279 | main () |
---|
3280 | { |
---|
3281 | FILE *f = fopen ("conftest.out", "w"); |
---|
3282 | return ferror (f) || fclose (f) != 0; |
---|
3283 | |
---|
3284 | ; |
---|
3285 | return 0; |
---|
3286 | } |
---|
3287 | _ACEOF |
---|
3288 | ac_clean_files="$ac_clean_files conftest.out" |
---|
3289 | # Check that the compiler produces executables we can run. If not, either |
---|
3290 | # the compiler is broken, or we cross compile. |
---|
3291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
---|
3292 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
---|
3293 | if test "$cross_compiling" != yes; then |
---|
3294 | { { ac_try="$ac_link" |
---|
3295 | case "(($ac_try" in |
---|
3296 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3297 | *) ac_try_echo=$ac_try;; |
---|
3298 | esac |
---|
3299 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3300 | $as_echo "$ac_try_echo"; } >&5 |
---|
3301 | (eval "$ac_link") 2>&5 |
---|
3302 | ac_status=$? |
---|
3303 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3304 | test $ac_status = 0; } |
---|
3305 | if { ac_try='./conftest$ac_cv_exeext' |
---|
3306 | { { case "(($ac_try" in |
---|
3307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3308 | *) ac_try_echo=$ac_try;; |
---|
3309 | esac |
---|
3310 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3311 | $as_echo "$ac_try_echo"; } >&5 |
---|
3312 | (eval "$ac_try") 2>&5 |
---|
3313 | ac_status=$? |
---|
3314 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3315 | test $ac_status = 0; }; }; then |
---|
3316 | cross_compiling=no |
---|
3317 | else |
---|
3318 | if test "$cross_compiling" = maybe; then |
---|
3319 | cross_compiling=yes |
---|
3320 | else |
---|
3321 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3322 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3323 | as_fn_error $? "cannot run C++ compiled programs. |
---|
3324 | If you meant to cross compile, use \`--host'. |
---|
3325 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3326 | fi |
---|
3327 | fi |
---|
3328 | fi |
---|
3329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
---|
3330 | $as_echo "$cross_compiling" >&6; } |
---|
3331 | |
---|
3332 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
---|
3333 | ac_clean_files=$ac_clean_files_save |
---|
3334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
---|
3335 | $as_echo_n "checking for suffix of object files... " >&6; } |
---|
3336 | if ${ac_cv_objext+:} false; then : |
---|
3337 | $as_echo_n "(cached) " >&6 |
---|
3338 | else |
---|
3339 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3340 | /* end confdefs.h. */ |
---|
3341 | |
---|
3342 | int |
---|
3343 | main () |
---|
3344 | { |
---|
3345 | |
---|
3346 | ; |
---|
3347 | return 0; |
---|
3348 | } |
---|
3349 | _ACEOF |
---|
3350 | rm -f conftest.o conftest.obj |
---|
3351 | if { { ac_try="$ac_compile" |
---|
3352 | case "(($ac_try" in |
---|
3353 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3354 | *) ac_try_echo=$ac_try;; |
---|
3355 | esac |
---|
3356 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3357 | $as_echo "$ac_try_echo"; } >&5 |
---|
3358 | (eval "$ac_compile") 2>&5 |
---|
3359 | ac_status=$? |
---|
3360 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3361 | test $ac_status = 0; }; then : |
---|
3362 | for ac_file in conftest.o conftest.obj conftest.*; do |
---|
3363 | test -f "$ac_file" || continue; |
---|
3364 | case $ac_file in |
---|
3365 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
---|
3366 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
3367 | break;; |
---|
3368 | esac |
---|
3369 | done |
---|
3370 | else |
---|
3371 | $as_echo "$as_me: failed program was:" >&5 |
---|
3372 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3373 | |
---|
3374 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3375 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3376 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
---|
3377 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3378 | fi |
---|
3379 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
3380 | fi |
---|
3381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
---|
3382 | $as_echo "$ac_cv_objext" >&6; } |
---|
3383 | OBJEXT=$ac_cv_objext |
---|
3384 | ac_objext=$OBJEXT |
---|
3385 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
---|
3386 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
---|
3387 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
---|
3388 | $as_echo_n "(cached) " >&6 |
---|
3389 | else |
---|
3390 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3391 | /* end confdefs.h. */ |
---|
3392 | |
---|
3393 | int |
---|
3394 | main () |
---|
3395 | { |
---|
3396 | #ifndef __GNUC__ |
---|
3397 | choke me |
---|
3398 | #endif |
---|
3399 | |
---|
3400 | ; |
---|
3401 | return 0; |
---|
3402 | } |
---|
3403 | _ACEOF |
---|
3404 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
3405 | ac_compiler_gnu=yes |
---|
3406 | else |
---|
3407 | ac_compiler_gnu=no |
---|
3408 | fi |
---|
3409 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3410 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
3411 | |
---|
3412 | fi |
---|
3413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
3414 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
---|
3415 | if test $ac_compiler_gnu = yes; then |
---|
3416 | GXX=yes |
---|
3417 | else |
---|
3418 | GXX= |
---|
3419 | fi |
---|
3420 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
3421 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
3422 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
---|
3423 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
---|
3424 | if ${ac_cv_prog_cxx_g+:} false; then : |
---|
3425 | $as_echo_n "(cached) " >&6 |
---|
3426 | else |
---|
3427 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
---|
3428 | ac_cxx_werror_flag=yes |
---|
3429 | ac_cv_prog_cxx_g=no |
---|
3430 | CXXFLAGS="-g" |
---|
3431 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3432 | /* end confdefs.h. */ |
---|
3433 | |
---|
3434 | int |
---|
3435 | main () |
---|
3436 | { |
---|
3437 | |
---|
3438 | ; |
---|
3439 | return 0; |
---|
3440 | } |
---|
3441 | _ACEOF |
---|
3442 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
3443 | ac_cv_prog_cxx_g=yes |
---|
3444 | else |
---|
3445 | CXXFLAGS="" |
---|
3446 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3447 | /* end confdefs.h. */ |
---|
3448 | |
---|
3449 | int |
---|
3450 | main () |
---|
3451 | { |
---|
3452 | |
---|
3453 | ; |
---|
3454 | return 0; |
---|
3455 | } |
---|
3456 | _ACEOF |
---|
3457 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
3458 | |
---|
3459 | else |
---|
3460 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
3461 | CXXFLAGS="-g" |
---|
3462 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3463 | /* end confdefs.h. */ |
---|
3464 | |
---|
3465 | int |
---|
3466 | main () |
---|
3467 | { |
---|
3468 | |
---|
3469 | ; |
---|
3470 | return 0; |
---|
3471 | } |
---|
3472 | _ACEOF |
---|
3473 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
3474 | ac_cv_prog_cxx_g=yes |
---|
3475 | fi |
---|
3476 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3477 | fi |
---|
3478 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3479 | fi |
---|
3480 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3481 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
3482 | fi |
---|
3483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
---|
3484 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
---|
3485 | if test "$ac_test_CXXFLAGS" = set; then |
---|
3486 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
3487 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
3488 | if test "$GXX" = yes; then |
---|
3489 | CXXFLAGS="-g -O2" |
---|
3490 | else |
---|
3491 | CXXFLAGS="-g" |
---|
3492 | fi |
---|
3493 | else |
---|
3494 | if test "$GXX" = yes; then |
---|
3495 | CXXFLAGS="-O2" |
---|
3496 | else |
---|
3497 | CXXFLAGS= |
---|
3498 | fi |
---|
3499 | fi |
---|
3500 | ac_ext=c |
---|
3501 | ac_cpp='$CPP $CPPFLAGS' |
---|
3502 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3503 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3504 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3505 | DEPDIR="${am__leading_dot}deps" |
---|
3506 | |
---|
3507 | ac_config_commands="$ac_config_commands depfiles" |
---|
3508 | |
---|
3509 | |
---|
3510 | am_make=${MAKE-make} |
---|
3511 | cat > confinc << 'END' |
---|
3512 | am__doit: |
---|
3513 | @echo this is the am__doit target |
---|
3514 | .PHONY: am__doit |
---|
3515 | END |
---|
3516 | # If we don't find an include directive, just comment out the code. |
---|
3517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
---|
3518 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
---|
3519 | am__include="#" |
---|
3520 | am__quote= |
---|
3521 | _am_result=none |
---|
3522 | # First try GNU make style include. |
---|
3523 | echo "include confinc" > confmf |
---|
3524 | # Ignore all kinds of additional output from `make'. |
---|
3525 | case `$am_make -s -f confmf 2> /dev/null` in #( |
---|
3526 | *the\ am__doit\ target*) |
---|
3527 | am__include=include |
---|
3528 | am__quote= |
---|
3529 | _am_result=GNU |
---|
3530 | ;; |
---|
3531 | esac |
---|
3532 | # Now try BSD make style include. |
---|
3533 | if test "$am__include" = "#"; then |
---|
3534 | echo '.include "confinc"' > confmf |
---|
3535 | case `$am_make -s -f confmf 2> /dev/null` in #( |
---|
3536 | *the\ am__doit\ target*) |
---|
3537 | am__include=.include |
---|
3538 | am__quote="\"" |
---|
3539 | _am_result=BSD |
---|
3540 | ;; |
---|
3541 | esac |
---|
3542 | fi |
---|
3543 | |
---|
3544 | |
---|
3545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
---|
3546 | $as_echo "$_am_result" >&6; } |
---|
3547 | rm -f confinc confmf |
---|
3548 | |
---|
3549 | # Check whether --enable-dependency-tracking was given. |
---|
3550 | if test "${enable_dependency_tracking+set}" = set; then : |
---|
3551 | enableval=$enable_dependency_tracking; |
---|
3552 | fi |
---|
3553 | |
---|
3554 | if test "x$enable_dependency_tracking" != xno; then |
---|
3555 | am_depcomp="$ac_aux_dir/depcomp" |
---|
3556 | AMDEPBACKSLASH='\' |
---|
3557 | am__nodep='_no' |
---|
3558 | fi |
---|
3559 | if test "x$enable_dependency_tracking" != xno; then |
---|
3560 | AMDEP_TRUE= |
---|
3561 | AMDEP_FALSE='#' |
---|
3562 | else |
---|
3563 | AMDEP_TRUE='#' |
---|
3564 | AMDEP_FALSE= |
---|
3565 | fi |
---|
3566 | |
---|
3567 | |
---|
3568 | |
---|
3569 | depcc="$CXX" am_compiler_list= |
---|
3570 | |
---|
3571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
---|
3572 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
---|
3573 | if ${am_cv_CXX_dependencies_compiler_type+:} false; then : |
---|
3574 | $as_echo_n "(cached) " >&6 |
---|
3575 | else |
---|
3576 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
3577 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
3578 | # making bogus files that we don't know about and never remove. For |
---|
3579 | # instance it was reported that on HP-UX the gcc test will end up |
---|
3580 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
3581 | # in D'. |
---|
3582 | rm -rf conftest.dir |
---|
3583 | mkdir conftest.dir |
---|
3584 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
3585 | # using a relative directory. |
---|
3586 | cp "$am_depcomp" conftest.dir |
---|
3587 | cd conftest.dir |
---|
3588 | # We will build objects and dependencies in a subdirectory because |
---|
3589 | # it helps to detect inapplicable dependency modes. For instance |
---|
3590 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
3591 | # side effect of compilation, but ICC will put the dependencies in |
---|
3592 | # the current directory while Tru64 will put them in the object |
---|
3593 | # directory. |
---|
3594 | mkdir sub |
---|
3595 | |
---|
3596 | am_cv_CXX_dependencies_compiler_type=none |
---|
3597 | if test "$am_compiler_list" = ""; then |
---|
3598 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
3599 | fi |
---|
3600 | am__universal=false |
---|
3601 | case " $depcc " in #( |
---|
3602 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
---|
3603 | esac |
---|
3604 | |
---|
3605 | for depmode in $am_compiler_list; do |
---|
3606 | # Setup a source with many dependencies, because some compilers |
---|
3607 | # like to wrap large dependency lists on column 80 (with \), and |
---|
3608 | # we should not choose a depcomp mode which is confused by this. |
---|
3609 | # |
---|
3610 | # We need to recreate these files for each test, as the compiler may |
---|
3611 | # overwrite some of them when testing with obscure command lines. |
---|
3612 | # This happens at least with the AIX C compiler. |
---|
3613 | : > sub/conftest.c |
---|
3614 | for i in 1 2 3 4 5 6; do |
---|
3615 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
3616 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
3617 | # Solaris 8's {/usr,}/bin/sh. |
---|
3618 | touch sub/conftst$i.h |
---|
3619 | done |
---|
3620 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
3621 | |
---|
3622 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
3623 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
3624 | # handle `-M -o', and we need to detect this. Also, some Intel |
---|
3625 | # versions had trouble with output in subdirs |
---|
3626 | am__obj=sub/conftest.${OBJEXT-o} |
---|
3627 | am__minus_obj="-o $am__obj" |
---|
3628 | case $depmode in |
---|
3629 | gcc) |
---|
3630 | # This depmode causes a compiler race in universal mode. |
---|
3631 | test "$am__universal" = false || continue |
---|
3632 | ;; |
---|
3633 | nosideeffect) |
---|
3634 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
3635 | # only be used when explicitly requested |
---|
3636 | if test "x$enable_dependency_tracking" = xyes; then |
---|
3637 | continue |
---|
3638 | else |
---|
3639 | break |
---|
3640 | fi |
---|
3641 | ;; |
---|
3642 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
---|
3643 | # This compiler won't grok `-c -o', but also, the minuso test has |
---|
3644 | # not run yet. These depmodes are late enough in the game, and |
---|
3645 | # so weak that their functioning should not be impacted. |
---|
3646 | am__obj=conftest.${OBJEXT-o} |
---|
3647 | am__minus_obj= |
---|
3648 | ;; |
---|
3649 | none) break ;; |
---|
3650 | esac |
---|
3651 | if depmode=$depmode \ |
---|
3652 | source=sub/conftest.c object=$am__obj \ |
---|
3653 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
3654 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
---|
3655 | >/dev/null 2>conftest.err && |
---|
3656 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
---|
3657 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
3658 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
---|
3659 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
3660 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
3661 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
3662 | # that says an option was ignored or not supported. |
---|
3663 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
3664 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
3665 | # The diagnosis changed in icc 8.0: |
---|
3666 | # icc: Command line remark: option '-MP' not supported |
---|
3667 | if (grep 'ignoring option' conftest.err || |
---|
3668 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
3669 | am_cv_CXX_dependencies_compiler_type=$depmode |
---|
3670 | break |
---|
3671 | fi |
---|
3672 | fi |
---|
3673 | done |
---|
3674 | |
---|
3675 | cd .. |
---|
3676 | rm -rf conftest.dir |
---|
3677 | else |
---|
3678 | am_cv_CXX_dependencies_compiler_type=none |
---|
3679 | fi |
---|
3680 | |
---|
3681 | fi |
---|
3682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
---|
3683 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } |
---|
3684 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
---|
3685 | |
---|
3686 | if |
---|
3687 | test "x$enable_dependency_tracking" != xno \ |
---|
3688 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
---|
3689 | am__fastdepCXX_TRUE= |
---|
3690 | am__fastdepCXX_FALSE='#' |
---|
3691 | else |
---|
3692 | am__fastdepCXX_TRUE='#' |
---|
3693 | am__fastdepCXX_FALSE= |
---|
3694 | fi |
---|
3695 | |
---|
3696 | |
---|
3697 | for ac_prog in gawk mawk nawk awk |
---|
3698 | do |
---|
3699 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3700 | set dummy $ac_prog; ac_word=$2 |
---|
3701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3702 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3703 | if ${ac_cv_prog_AWK+:} false; then : |
---|
3704 | $as_echo_n "(cached) " >&6 |
---|
3705 | else |
---|
3706 | if test -n "$AWK"; then |
---|
3707 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
3708 | else |
---|
3709 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3710 | for as_dir in $PATH |
---|
3711 | do |
---|
3712 | IFS=$as_save_IFS |
---|
3713 | test -z "$as_dir" && as_dir=. |
---|
3714 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3715 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3716 | ac_cv_prog_AWK="$ac_prog" |
---|
3717 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3718 | break 2 |
---|
3719 | fi |
---|
3720 | done |
---|
3721 | done |
---|
3722 | IFS=$as_save_IFS |
---|
3723 | |
---|
3724 | fi |
---|
3725 | fi |
---|
3726 | AWK=$ac_cv_prog_AWK |
---|
3727 | if test -n "$AWK"; then |
---|
3728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
---|
3729 | $as_echo "$AWK" >&6; } |
---|
3730 | else |
---|
3731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3732 | $as_echo "no" >&6; } |
---|
3733 | fi |
---|
3734 | |
---|
3735 | |
---|
3736 | test -n "$AWK" && break |
---|
3737 | done |
---|
3738 | |
---|
3739 | ac_ext=c |
---|
3740 | ac_cpp='$CPP $CPPFLAGS' |
---|
3741 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3742 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3743 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3744 | if test -n "$ac_tool_prefix"; then |
---|
3745 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
3746 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
3747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3748 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3749 | if ${ac_cv_prog_CC+:} false; then : |
---|
3750 | $as_echo_n "(cached) " >&6 |
---|
3751 | else |
---|
3752 | if test -n "$CC"; then |
---|
3753 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
3754 | else |
---|
3755 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3756 | for as_dir in $PATH |
---|
3757 | do |
---|
3758 | IFS=$as_save_IFS |
---|
3759 | test -z "$as_dir" && as_dir=. |
---|
3760 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3761 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3762 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
3763 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3764 | break 2 |
---|
3765 | fi |
---|
3766 | done |
---|
3767 | done |
---|
3768 | IFS=$as_save_IFS |
---|
3769 | |
---|
3770 | fi |
---|
3771 | fi |
---|
3772 | CC=$ac_cv_prog_CC |
---|
3773 | if test -n "$CC"; then |
---|
3774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
3775 | $as_echo "$CC" >&6; } |
---|
3776 | else |
---|
3777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3778 | $as_echo "no" >&6; } |
---|
3779 | fi |
---|
3780 | |
---|
3781 | |
---|
3782 | fi |
---|
3783 | if test -z "$ac_cv_prog_CC"; then |
---|
3784 | ac_ct_CC=$CC |
---|
3785 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
3786 | set dummy gcc; ac_word=$2 |
---|
3787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3788 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3789 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
---|
3790 | $as_echo_n "(cached) " >&6 |
---|
3791 | else |
---|
3792 | if test -n "$ac_ct_CC"; then |
---|
3793 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
3794 | else |
---|
3795 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3796 | for as_dir in $PATH |
---|
3797 | do |
---|
3798 | IFS=$as_save_IFS |
---|
3799 | test -z "$as_dir" && as_dir=. |
---|
3800 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3801 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3802 | ac_cv_prog_ac_ct_CC="gcc" |
---|
3803 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3804 | break 2 |
---|
3805 | fi |
---|
3806 | done |
---|
3807 | done |
---|
3808 | IFS=$as_save_IFS |
---|
3809 | |
---|
3810 | fi |
---|
3811 | fi |
---|
3812 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
3813 | if test -n "$ac_ct_CC"; then |
---|
3814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
---|
3815 | $as_echo "$ac_ct_CC" >&6; } |
---|
3816 | else |
---|
3817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3818 | $as_echo "no" >&6; } |
---|
3819 | fi |
---|
3820 | |
---|
3821 | if test "x$ac_ct_CC" = x; then |
---|
3822 | CC="" |
---|
3823 | else |
---|
3824 | case $cross_compiling:$ac_tool_warned in |
---|
3825 | yes:) |
---|
3826 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
3827 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
3828 | ac_tool_warned=yes ;; |
---|
3829 | esac |
---|
3830 | CC=$ac_ct_CC |
---|
3831 | fi |
---|
3832 | else |
---|
3833 | CC="$ac_cv_prog_CC" |
---|
3834 | fi |
---|
3835 | |
---|
3836 | if test -z "$CC"; then |
---|
3837 | if test -n "$ac_tool_prefix"; then |
---|
3838 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
3839 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
3840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3841 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3842 | if ${ac_cv_prog_CC+:} false; then : |
---|
3843 | $as_echo_n "(cached) " >&6 |
---|
3844 | else |
---|
3845 | if test -n "$CC"; then |
---|
3846 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
3847 | else |
---|
3848 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3849 | for as_dir in $PATH |
---|
3850 | do |
---|
3851 | IFS=$as_save_IFS |
---|
3852 | test -z "$as_dir" && as_dir=. |
---|
3853 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3854 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3855 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
3856 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3857 | break 2 |
---|
3858 | fi |
---|
3859 | done |
---|
3860 | done |
---|
3861 | IFS=$as_save_IFS |
---|
3862 | |
---|
3863 | fi |
---|
3864 | fi |
---|
3865 | CC=$ac_cv_prog_CC |
---|
3866 | if test -n "$CC"; then |
---|
3867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
3868 | $as_echo "$CC" >&6; } |
---|
3869 | else |
---|
3870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3871 | $as_echo "no" >&6; } |
---|
3872 | fi |
---|
3873 | |
---|
3874 | |
---|
3875 | fi |
---|
3876 | fi |
---|
3877 | if test -z "$CC"; then |
---|
3878 | # Extract the first word of "cc", so it can be a program name with args. |
---|
3879 | set dummy cc; ac_word=$2 |
---|
3880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3881 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3882 | if ${ac_cv_prog_CC+:} false; then : |
---|
3883 | $as_echo_n "(cached) " >&6 |
---|
3884 | else |
---|
3885 | if test -n "$CC"; then |
---|
3886 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
3887 | else |
---|
3888 | ac_prog_rejected=no |
---|
3889 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3890 | for as_dir in $PATH |
---|
3891 | do |
---|
3892 | IFS=$as_save_IFS |
---|
3893 | test -z "$as_dir" && as_dir=. |
---|
3894 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3895 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3896 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
3897 | ac_prog_rejected=yes |
---|
3898 | continue |
---|
3899 | fi |
---|
3900 | ac_cv_prog_CC="cc" |
---|
3901 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3902 | break 2 |
---|
3903 | fi |
---|
3904 | done |
---|
3905 | done |
---|
3906 | IFS=$as_save_IFS |
---|
3907 | |
---|
3908 | if test $ac_prog_rejected = yes; then |
---|
3909 | # We found a bogon in the path, so make sure we never use it. |
---|
3910 | set dummy $ac_cv_prog_CC |
---|
3911 | shift |
---|
3912 | if test $# != 0; then |
---|
3913 | # We chose a different compiler from the bogus one. |
---|
3914 | # However, it has the same basename, so the bogon will be chosen |
---|
3915 | # first if we set CC to just the basename; use the full file name. |
---|
3916 | shift |
---|
3917 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
3918 | fi |
---|
3919 | fi |
---|
3920 | fi |
---|
3921 | fi |
---|
3922 | CC=$ac_cv_prog_CC |
---|
3923 | if test -n "$CC"; then |
---|
3924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
3925 | $as_echo "$CC" >&6; } |
---|
3926 | else |
---|
3927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3928 | $as_echo "no" >&6; } |
---|
3929 | fi |
---|
3930 | |
---|
3931 | |
---|
3932 | fi |
---|
3933 | if test -z "$CC"; then |
---|
3934 | if test -n "$ac_tool_prefix"; then |
---|
3935 | for ac_prog in cl.exe |
---|
3936 | do |
---|
3937 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
3938 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
3939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3940 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3941 | if ${ac_cv_prog_CC+:} false; then : |
---|
3942 | $as_echo_n "(cached) " >&6 |
---|
3943 | else |
---|
3944 | if test -n "$CC"; then |
---|
3945 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
3946 | else |
---|
3947 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3948 | for as_dir in $PATH |
---|
3949 | do |
---|
3950 | IFS=$as_save_IFS |
---|
3951 | test -z "$as_dir" && as_dir=. |
---|
3952 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3953 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3954 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
3955 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3956 | break 2 |
---|
3957 | fi |
---|
3958 | done |
---|
3959 | done |
---|
3960 | IFS=$as_save_IFS |
---|
3961 | |
---|
3962 | fi |
---|
3963 | fi |
---|
3964 | CC=$ac_cv_prog_CC |
---|
3965 | if test -n "$CC"; then |
---|
3966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
3967 | $as_echo "$CC" >&6; } |
---|
3968 | else |
---|
3969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3970 | $as_echo "no" >&6; } |
---|
3971 | fi |
---|
3972 | |
---|
3973 | |
---|
3974 | test -n "$CC" && break |
---|
3975 | done |
---|
3976 | fi |
---|
3977 | if test -z "$CC"; then |
---|
3978 | ac_ct_CC=$CC |
---|
3979 | for ac_prog in cl.exe |
---|
3980 | do |
---|
3981 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3982 | set dummy $ac_prog; ac_word=$2 |
---|
3983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3984 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3985 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
---|
3986 | $as_echo_n "(cached) " >&6 |
---|
3987 | else |
---|
3988 | if test -n "$ac_ct_CC"; then |
---|
3989 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
3990 | else |
---|
3991 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3992 | for as_dir in $PATH |
---|
3993 | do |
---|
3994 | IFS=$as_save_IFS |
---|
3995 | test -z "$as_dir" && as_dir=. |
---|
3996 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3997 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3998 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
3999 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4000 | break 2 |
---|
4001 | fi |
---|
4002 | done |
---|
4003 | done |
---|
4004 | IFS=$as_save_IFS |
---|
4005 | |
---|
4006 | fi |
---|
4007 | fi |
---|
4008 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
4009 | if test -n "$ac_ct_CC"; then |
---|
4010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
---|
4011 | $as_echo "$ac_ct_CC" >&6; } |
---|
4012 | else |
---|
4013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4014 | $as_echo "no" >&6; } |
---|
4015 | fi |
---|
4016 | |
---|
4017 | |
---|
4018 | test -n "$ac_ct_CC" && break |
---|
4019 | done |
---|
4020 | |
---|
4021 | if test "x$ac_ct_CC" = x; then |
---|
4022 | CC="" |
---|
4023 | else |
---|
4024 | case $cross_compiling:$ac_tool_warned in |
---|
4025 | yes:) |
---|
4026 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
4027 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
4028 | ac_tool_warned=yes ;; |
---|
4029 | esac |
---|
4030 | CC=$ac_ct_CC |
---|
4031 | fi |
---|
4032 | fi |
---|
4033 | |
---|
4034 | fi |
---|
4035 | |
---|
4036 | |
---|
4037 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
4038 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
4039 | as_fn_error $? "no acceptable C compiler found in \$PATH |
---|
4040 | See \`config.log' for more details" "$LINENO" 5; } |
---|
4041 | |
---|
4042 | # Provide some information about the compiler. |
---|
4043 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
---|
4044 | set X $ac_compile |
---|
4045 | ac_compiler=$2 |
---|
4046 | for ac_option in --version -v -V -qversion; do |
---|
4047 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
4048 | case "(($ac_try" in |
---|
4049 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4050 | *) ac_try_echo=$ac_try;; |
---|
4051 | esac |
---|
4052 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
4053 | $as_echo "$ac_try_echo"; } >&5 |
---|
4054 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
4055 | ac_status=$? |
---|
4056 | if test -s conftest.err; then |
---|
4057 | sed '10a\ |
---|
4058 | ... rest of stderr output deleted ... |
---|
4059 | 10q' conftest.err >conftest.er1 |
---|
4060 | cat conftest.er1 >&5 |
---|
4061 | fi |
---|
4062 | rm -f conftest.er1 conftest.err |
---|
4063 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
4064 | test $ac_status = 0; } |
---|
4065 | done |
---|
4066 | |
---|
4067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
---|
4068 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
---|
4069 | if ${ac_cv_c_compiler_gnu+:} false; then : |
---|
4070 | $as_echo_n "(cached) " >&6 |
---|
4071 | else |
---|
4072 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4073 | /* end confdefs.h. */ |
---|
4074 | |
---|
4075 | int |
---|
4076 | main () |
---|
4077 | { |
---|
4078 | #ifndef __GNUC__ |
---|
4079 | choke me |
---|
4080 | #endif |
---|
4081 | |
---|
4082 | ; |
---|
4083 | return 0; |
---|
4084 | } |
---|
4085 | _ACEOF |
---|
4086 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4087 | ac_compiler_gnu=yes |
---|
4088 | else |
---|
4089 | ac_compiler_gnu=no |
---|
4090 | fi |
---|
4091 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4092 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
4093 | |
---|
4094 | fi |
---|
4095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
---|
4096 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
---|
4097 | if test $ac_compiler_gnu = yes; then |
---|
4098 | GCC=yes |
---|
4099 | else |
---|
4100 | GCC= |
---|
4101 | fi |
---|
4102 | ac_test_CFLAGS=${CFLAGS+set} |
---|
4103 | ac_save_CFLAGS=$CFLAGS |
---|
4104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
---|
4105 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
---|
4106 | if ${ac_cv_prog_cc_g+:} false; then : |
---|
4107 | $as_echo_n "(cached) " >&6 |
---|
4108 | else |
---|
4109 | ac_save_c_werror_flag=$ac_c_werror_flag |
---|
4110 | ac_c_werror_flag=yes |
---|
4111 | ac_cv_prog_cc_g=no |
---|
4112 | CFLAGS="-g" |
---|
4113 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4114 | /* end confdefs.h. */ |
---|
4115 | |
---|
4116 | int |
---|
4117 | main () |
---|
4118 | { |
---|
4119 | |
---|
4120 | ; |
---|
4121 | return 0; |
---|
4122 | } |
---|
4123 | _ACEOF |
---|
4124 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4125 | ac_cv_prog_cc_g=yes |
---|
4126 | else |
---|
4127 | CFLAGS="" |
---|
4128 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4129 | /* end confdefs.h. */ |
---|
4130 | |
---|
4131 | int |
---|
4132 | main () |
---|
4133 | { |
---|
4134 | |
---|
4135 | ; |
---|
4136 | return 0; |
---|
4137 | } |
---|
4138 | _ACEOF |
---|
4139 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4140 | |
---|
4141 | else |
---|
4142 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
4143 | CFLAGS="-g" |
---|
4144 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4145 | /* end confdefs.h. */ |
---|
4146 | |
---|
4147 | int |
---|
4148 | main () |
---|
4149 | { |
---|
4150 | |
---|
4151 | ; |
---|
4152 | return 0; |
---|
4153 | } |
---|
4154 | _ACEOF |
---|
4155 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4156 | ac_cv_prog_cc_g=yes |
---|
4157 | fi |
---|
4158 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4159 | fi |
---|
4160 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4161 | fi |
---|
4162 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4163 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
4164 | fi |
---|
4165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
---|
4166 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
---|
4167 | if test "$ac_test_CFLAGS" = set; then |
---|
4168 | CFLAGS=$ac_save_CFLAGS |
---|
4169 | elif test $ac_cv_prog_cc_g = yes; then |
---|
4170 | if test "$GCC" = yes; then |
---|
4171 | CFLAGS="-g -O2" |
---|
4172 | else |
---|
4173 | CFLAGS="-g" |
---|
4174 | fi |
---|
4175 | else |
---|
4176 | if test "$GCC" = yes; then |
---|
4177 | CFLAGS="-O2" |
---|
4178 | else |
---|
4179 | CFLAGS= |
---|
4180 | fi |
---|
4181 | fi |
---|
4182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
---|
4183 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
---|
4184 | if ${ac_cv_prog_cc_c89+:} false; then : |
---|
4185 | $as_echo_n "(cached) " >&6 |
---|
4186 | else |
---|
4187 | ac_cv_prog_cc_c89=no |
---|
4188 | ac_save_CC=$CC |
---|
4189 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4190 | /* end confdefs.h. */ |
---|
4191 | #include <stdarg.h> |
---|
4192 | #include <stdio.h> |
---|
4193 | #include <sys/types.h> |
---|
4194 | #include <sys/stat.h> |
---|
4195 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
4196 | struct buf { int x; }; |
---|
4197 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
4198 | static char *e (p, i) |
---|
4199 | char **p; |
---|
4200 | int i; |
---|
4201 | { |
---|
4202 | return p[i]; |
---|
4203 | } |
---|
4204 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
4205 | { |
---|
4206 | char *s; |
---|
4207 | va_list v; |
---|
4208 | va_start (v,p); |
---|
4209 | s = g (p, va_arg (v,int)); |
---|
4210 | va_end (v); |
---|
4211 | return s; |
---|
4212 | } |
---|
4213 | |
---|
4214 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
4215 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
4216 | These don't provoke an error unfortunately, instead are silently treated |
---|
4217 | as 'x'. The following induces an error, until -std is added to get |
---|
4218 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
4219 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
4220 | that's true only with -std. */ |
---|
4221 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
4222 | |
---|
4223 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
---|
4224 | inside strings and character constants. */ |
---|
4225 | #define FOO(x) 'x' |
---|
4226 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
---|
4227 | |
---|
4228 | int test (int i, double x); |
---|
4229 | struct s1 {int (*f) (int a);}; |
---|
4230 | struct s2 {int (*f) (double a);}; |
---|
4231 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
4232 | int argc; |
---|
4233 | char **argv; |
---|
4234 | int |
---|
4235 | main () |
---|
4236 | { |
---|
4237 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
4238 | ; |
---|
4239 | return 0; |
---|
4240 | } |
---|
4241 | _ACEOF |
---|
4242 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
---|
4243 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
4244 | do |
---|
4245 | CC="$ac_save_CC $ac_arg" |
---|
4246 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4247 | ac_cv_prog_cc_c89=$ac_arg |
---|
4248 | fi |
---|
4249 | rm -f core conftest.err conftest.$ac_objext |
---|
4250 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
---|
4251 | done |
---|
4252 | rm -f conftest.$ac_ext |
---|
4253 | CC=$ac_save_CC |
---|
4254 | |
---|
4255 | fi |
---|
4256 | # AC_CACHE_VAL |
---|
4257 | case "x$ac_cv_prog_cc_c89" in |
---|
4258 | x) |
---|
4259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
---|
4260 | $as_echo "none needed" >&6; } ;; |
---|
4261 | xno) |
---|
4262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
---|
4263 | $as_echo "unsupported" >&6; } ;; |
---|
4264 | *) |
---|
4265 | CC="$CC $ac_cv_prog_cc_c89" |
---|
4266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
---|
4267 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
---|
4268 | esac |
---|
4269 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
---|
4270 | |
---|
4271 | fi |
---|
4272 | |
---|
4273 | ac_ext=c |
---|
4274 | ac_cpp='$CPP $CPPFLAGS' |
---|
4275 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4276 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4277 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4278 | |
---|
4279 | depcc="$CC" am_compiler_list= |
---|
4280 | |
---|
4281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
---|
4282 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
---|
4283 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
---|
4284 | $as_echo_n "(cached) " >&6 |
---|
4285 | else |
---|
4286 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
4287 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
4288 | # making bogus files that we don't know about and never remove. For |
---|
4289 | # instance it was reported that on HP-UX the gcc test will end up |
---|
4290 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
4291 | # in D'. |
---|
4292 | rm -rf conftest.dir |
---|
4293 | mkdir conftest.dir |
---|
4294 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
4295 | # using a relative directory. |
---|
4296 | cp "$am_depcomp" conftest.dir |
---|
4297 | cd conftest.dir |
---|
4298 | # We will build objects and dependencies in a subdirectory because |
---|
4299 | # it helps to detect inapplicable dependency modes. For instance |
---|
4300 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
4301 | # side effect of compilation, but ICC will put the dependencies in |
---|
4302 | # the current directory while Tru64 will put them in the object |
---|
4303 | # directory. |
---|
4304 | mkdir sub |
---|
4305 | |
---|
4306 | am_cv_CC_dependencies_compiler_type=none |
---|
4307 | if test "$am_compiler_list" = ""; then |
---|
4308 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
4309 | fi |
---|
4310 | am__universal=false |
---|
4311 | case " $depcc " in #( |
---|
4312 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
---|
4313 | esac |
---|
4314 | |
---|
4315 | for depmode in $am_compiler_list; do |
---|
4316 | # Setup a source with many dependencies, because some compilers |
---|
4317 | # like to wrap large dependency lists on column 80 (with \), and |
---|
4318 | # we should not choose a depcomp mode which is confused by this. |
---|
4319 | # |
---|
4320 | # We need to recreate these files for each test, as the compiler may |
---|
4321 | # overwrite some of them when testing with obscure command lines. |
---|
4322 | # This happens at least with the AIX C compiler. |
---|
4323 | : > sub/conftest.c |
---|
4324 | for i in 1 2 3 4 5 6; do |
---|
4325 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
4326 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
4327 | # Solaris 8's {/usr,}/bin/sh. |
---|
4328 | touch sub/conftst$i.h |
---|
4329 | done |
---|
4330 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
4331 | |
---|
4332 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
4333 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
4334 | # handle `-M -o', and we need to detect this. Also, some Intel |
---|
4335 | # versions had trouble with output in subdirs |
---|
4336 | am__obj=sub/conftest.${OBJEXT-o} |
---|
4337 | am__minus_obj="-o $am__obj" |
---|
4338 | case $depmode in |
---|
4339 | gcc) |
---|
4340 | # This depmode causes a compiler race in universal mode. |
---|
4341 | test "$am__universal" = false || continue |
---|
4342 | ;; |
---|
4343 | nosideeffect) |
---|
4344 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
4345 | # only be used when explicitly requested |
---|
4346 | if test "x$enable_dependency_tracking" = xyes; then |
---|
4347 | continue |
---|
4348 | else |
---|
4349 | break |
---|
4350 | fi |
---|
4351 | ;; |
---|
4352 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
---|
4353 | # This compiler won't grok `-c -o', but also, the minuso test has |
---|
4354 | # not run yet. These depmodes are late enough in the game, and |
---|
4355 | # so weak that their functioning should not be impacted. |
---|
4356 | am__obj=conftest.${OBJEXT-o} |
---|
4357 | am__minus_obj= |
---|
4358 | ;; |
---|
4359 | none) break ;; |
---|
4360 | esac |
---|
4361 | if depmode=$depmode \ |
---|
4362 | source=sub/conftest.c object=$am__obj \ |
---|
4363 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
4364 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
---|
4365 | >/dev/null 2>conftest.err && |
---|
4366 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
---|
4367 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
4368 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
---|
4369 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
4370 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
4371 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
4372 | # that says an option was ignored or not supported. |
---|
4373 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
4374 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
4375 | # The diagnosis changed in icc 8.0: |
---|
4376 | # icc: Command line remark: option '-MP' not supported |
---|
4377 | if (grep 'ignoring option' conftest.err || |
---|
4378 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
4379 | am_cv_CC_dependencies_compiler_type=$depmode |
---|
4380 | break |
---|
4381 | fi |
---|
4382 | fi |
---|
4383 | done |
---|
4384 | |
---|
4385 | cd .. |
---|
4386 | rm -rf conftest.dir |
---|
4387 | else |
---|
4388 | am_cv_CC_dependencies_compiler_type=none |
---|
4389 | fi |
---|
4390 | |
---|
4391 | fi |
---|
4392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
---|
4393 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
---|
4394 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
---|
4395 | |
---|
4396 | if |
---|
4397 | test "x$enable_dependency_tracking" != xno \ |
---|
4398 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
---|
4399 | am__fastdepCC_TRUE= |
---|
4400 | am__fastdepCC_FALSE='#' |
---|
4401 | else |
---|
4402 | am__fastdepCC_TRUE='#' |
---|
4403 | am__fastdepCC_FALSE= |
---|
4404 | fi |
---|
4405 | |
---|
4406 | |
---|
4407 | |
---|
4408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
4409 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
---|
4410 | set x ${MAKE-make} |
---|
4411 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
---|
4412 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
---|
4413 | $as_echo_n "(cached) " >&6 |
---|
4414 | else |
---|
4415 | cat >conftest.make <<\_ACEOF |
---|
4416 | SHELL = /bin/sh |
---|
4417 | all: |
---|
4418 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
---|
4419 | _ACEOF |
---|
4420 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
---|
4421 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
---|
4422 | *@@@%%%=?*=@@@%%%*) |
---|
4423 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
---|
4424 | *) |
---|
4425 | eval ac_cv_prog_make_${ac_make}_set=no;; |
---|
4426 | esac |
---|
4427 | rm -f conftest.make |
---|
4428 | fi |
---|
4429 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
---|
4430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
4431 | $as_echo "yes" >&6; } |
---|
4432 | SET_MAKE= |
---|
4433 | else |
---|
4434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4435 | $as_echo "no" >&6; } |
---|
4436 | SET_MAKE="MAKE=${MAKE-make}" |
---|
4437 | fi |
---|
4438 | |
---|
4439 | |
---|
4440 | # Checks for libraries. |
---|
4441 | |
---|
4442 | # Checks for header files. |
---|
4443 | |
---|
4444 | ac_ext=c |
---|
4445 | ac_cpp='$CPP $CPPFLAGS' |
---|
4446 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4447 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4448 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4449 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
---|
4450 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
---|
4451 | # On Suns, sometimes $CPP names a directory. |
---|
4452 | if test -n "$CPP" && test -d "$CPP"; then |
---|
4453 | CPP= |
---|
4454 | fi |
---|
4455 | if test -z "$CPP"; then |
---|
4456 | if ${ac_cv_prog_CPP+:} false; then : |
---|
4457 | $as_echo_n "(cached) " >&6 |
---|
4458 | else |
---|
4459 | # Double quotes because CPP needs to be expanded |
---|
4460 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
4461 | do |
---|
4462 | ac_preproc_ok=false |
---|
4463 | for ac_c_preproc_warn_flag in '' yes |
---|
4464 | do |
---|
4465 | # Use a header file that comes with gcc, so configuring glibc |
---|
4466 | # with a fresh cross-compiler works. |
---|
4467 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
4468 | # <limits.h> exists even on freestanding compilers. |
---|
4469 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
4470 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
4471 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4472 | /* end confdefs.h. */ |
---|
4473 | #ifdef __STDC__ |
---|
4474 | # include <limits.h> |
---|
4475 | #else |
---|
4476 | # include <assert.h> |
---|
4477 | #endif |
---|
4478 | Syntax error |
---|
4479 | _ACEOF |
---|
4480 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
4481 | |
---|
4482 | else |
---|
4483 | # Broken: fails on valid input. |
---|
4484 | continue |
---|
4485 | fi |
---|
4486 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
4487 | |
---|
4488 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
4489 | # can be detected and how. |
---|
4490 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4491 | /* end confdefs.h. */ |
---|
4492 | #include <ac_nonexistent.h> |
---|
4493 | _ACEOF |
---|
4494 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
4495 | # Broken: success on invalid input. |
---|
4496 | continue |
---|
4497 | else |
---|
4498 | # Passes both tests. |
---|
4499 | ac_preproc_ok=: |
---|
4500 | break |
---|
4501 | fi |
---|
4502 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
4503 | |
---|
4504 | done |
---|
4505 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
4506 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
4507 | if $ac_preproc_ok; then : |
---|
4508 | break |
---|
4509 | fi |
---|
4510 | |
---|
4511 | done |
---|
4512 | ac_cv_prog_CPP=$CPP |
---|
4513 | |
---|
4514 | fi |
---|
4515 | CPP=$ac_cv_prog_CPP |
---|
4516 | else |
---|
4517 | ac_cv_prog_CPP=$CPP |
---|
4518 | fi |
---|
4519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
---|
4520 | $as_echo "$CPP" >&6; } |
---|
4521 | ac_preproc_ok=false |
---|
4522 | for ac_c_preproc_warn_flag in '' yes |
---|
4523 | do |
---|
4524 | # Use a header file that comes with gcc, so configuring glibc |
---|
4525 | # with a fresh cross-compiler works. |
---|
4526 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
4527 | # <limits.h> exists even on freestanding compilers. |
---|
4528 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
4529 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
4530 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4531 | /* end confdefs.h. */ |
---|
4532 | #ifdef __STDC__ |
---|
4533 | # include <limits.h> |
---|
4534 | #else |
---|
4535 | # include <assert.h> |
---|
4536 | #endif |
---|
4537 | Syntax error |
---|
4538 | _ACEOF |
---|
4539 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
4540 | |
---|
4541 | else |
---|
4542 | # Broken: fails on valid input. |
---|
4543 | continue |
---|
4544 | fi |
---|
4545 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
4546 | |
---|
4547 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
4548 | # can be detected and how. |
---|
4549 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4550 | /* end confdefs.h. */ |
---|
4551 | #include <ac_nonexistent.h> |
---|
4552 | _ACEOF |
---|
4553 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
4554 | # Broken: success on invalid input. |
---|
4555 | continue |
---|
4556 | else |
---|
4557 | # Passes both tests. |
---|
4558 | ac_preproc_ok=: |
---|
4559 | break |
---|
4560 | fi |
---|
4561 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
4562 | |
---|
4563 | done |
---|
4564 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
4565 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
4566 | if $ac_preproc_ok; then : |
---|
4567 | |
---|
4568 | else |
---|
4569 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
4570 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
4571 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
---|
4572 | See \`config.log' for more details" "$LINENO" 5; } |
---|
4573 | fi |
---|
4574 | |
---|
4575 | ac_ext=c |
---|
4576 | ac_cpp='$CPP $CPPFLAGS' |
---|
4577 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4578 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4579 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4580 | |
---|
4581 | |
---|
4582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
---|
4583 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
---|
4584 | if ${ac_cv_path_GREP+:} false; then : |
---|
4585 | $as_echo_n "(cached) " >&6 |
---|
4586 | else |
---|
4587 | if test -z "$GREP"; then |
---|
4588 | ac_path_GREP_found=false |
---|
4589 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
4590 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4591 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
4592 | do |
---|
4593 | IFS=$as_save_IFS |
---|
4594 | test -z "$as_dir" && as_dir=. |
---|
4595 | for ac_prog in grep ggrep; do |
---|
4596 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4597 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
4598 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
---|
4599 | # Check for GNU ac_path_GREP and select it if it is found. |
---|
4600 | # Check for GNU $ac_path_GREP |
---|
4601 | case `"$ac_path_GREP" --version 2>&1` in |
---|
4602 | *GNU*) |
---|
4603 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
---|
4604 | *) |
---|
4605 | ac_count=0 |
---|
4606 | $as_echo_n 0123456789 >"conftest.in" |
---|
4607 | while : |
---|
4608 | do |
---|
4609 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
4610 | mv "conftest.tmp" "conftest.in" |
---|
4611 | cp "conftest.in" "conftest.nl" |
---|
4612 | $as_echo 'GREP' >> "conftest.nl" |
---|
4613 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
4614 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
4615 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
---|
4616 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
---|
4617 | # Best one so far, save it but keep looking for a better one |
---|
4618 | ac_cv_path_GREP="$ac_path_GREP" |
---|
4619 | ac_path_GREP_max=$ac_count |
---|
4620 | fi |
---|
4621 | # 10*(2^10) chars as input seems more than enough |
---|
4622 | test $ac_count -gt 10 && break |
---|
4623 | done |
---|
4624 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
4625 | esac |
---|
4626 | |
---|
4627 | $ac_path_GREP_found && break 3 |
---|
4628 | done |
---|
4629 | done |
---|
4630 | done |
---|
4631 | IFS=$as_save_IFS |
---|
4632 | if test -z "$ac_cv_path_GREP"; then |
---|
4633 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
---|
4634 | fi |
---|
4635 | else |
---|
4636 | ac_cv_path_GREP=$GREP |
---|
4637 | fi |
---|
4638 | |
---|
4639 | fi |
---|
4640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
---|
4641 | $as_echo "$ac_cv_path_GREP" >&6; } |
---|
4642 | GREP="$ac_cv_path_GREP" |
---|
4643 | |
---|
4644 | |
---|
4645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
---|
4646 | $as_echo_n "checking for egrep... " >&6; } |
---|
4647 | if ${ac_cv_path_EGREP+:} false; then : |
---|
4648 | $as_echo_n "(cached) " >&6 |
---|
4649 | else |
---|
4650 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
---|
4651 | then ac_cv_path_EGREP="$GREP -E" |
---|
4652 | else |
---|
4653 | if test -z "$EGREP"; then |
---|
4654 | ac_path_EGREP_found=false |
---|
4655 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
4656 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4657 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
4658 | do |
---|
4659 | IFS=$as_save_IFS |
---|
4660 | test -z "$as_dir" && as_dir=. |
---|
4661 | for ac_prog in egrep; do |
---|
4662 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4663 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
4664 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
---|
4665 | # Check for GNU ac_path_EGREP and select it if it is found. |
---|
4666 | # Check for GNU $ac_path_EGREP |
---|
4667 | case `"$ac_path_EGREP" --version 2>&1` in |
---|
4668 | *GNU*) |
---|
4669 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
---|
4670 | *) |
---|
4671 | ac_count=0 |
---|
4672 | $as_echo_n 0123456789 >"conftest.in" |
---|
4673 | while : |
---|
4674 | do |
---|
4675 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
4676 | mv "conftest.tmp" "conftest.in" |
---|
4677 | cp "conftest.in" "conftest.nl" |
---|
4678 | $as_echo 'EGREP' >> "conftest.nl" |
---|
4679 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
4680 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
4681 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
---|
4682 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
---|
4683 | # Best one so far, save it but keep looking for a better one |
---|
4684 | ac_cv_path_EGREP="$ac_path_EGREP" |
---|
4685 | ac_path_EGREP_max=$ac_count |
---|
4686 | fi |
---|
4687 | # 10*(2^10) chars as input seems more than enough |
---|
4688 | test $ac_count -gt 10 && break |
---|
4689 | done |
---|
4690 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
4691 | esac |
---|
4692 | |
---|
4693 | $ac_path_EGREP_found && break 3 |
---|
4694 | done |
---|
4695 | done |
---|
4696 | done |
---|
4697 | IFS=$as_save_IFS |
---|
4698 | if test -z "$ac_cv_path_EGREP"; then |
---|
4699 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
---|
4700 | fi |
---|
4701 | else |
---|
4702 | ac_cv_path_EGREP=$EGREP |
---|
4703 | fi |
---|
4704 | |
---|
4705 | fi |
---|
4706 | fi |
---|
4707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
---|
4708 | $as_echo "$ac_cv_path_EGREP" >&6; } |
---|
4709 | EGREP="$ac_cv_path_EGREP" |
---|
4710 | |
---|
4711 | |
---|
4712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
---|
4713 | $as_echo_n "checking for ANSI C header files... " >&6; } |
---|
4714 | if ${ac_cv_header_stdc+:} false; then : |
---|
4715 | $as_echo_n "(cached) " >&6 |
---|
4716 | else |
---|
4717 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4718 | /* end confdefs.h. */ |
---|
4719 | #include <stdlib.h> |
---|
4720 | #include <stdarg.h> |
---|
4721 | #include <string.h> |
---|
4722 | #include <float.h> |
---|
4723 | |
---|
4724 | int |
---|
4725 | main () |
---|
4726 | { |
---|
4727 | |
---|
4728 | ; |
---|
4729 | return 0; |
---|
4730 | } |
---|
4731 | _ACEOF |
---|
4732 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4733 | ac_cv_header_stdc=yes |
---|
4734 | else |
---|
4735 | ac_cv_header_stdc=no |
---|
4736 | fi |
---|
4737 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4738 | |
---|
4739 | if test $ac_cv_header_stdc = yes; then |
---|
4740 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
4741 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4742 | /* end confdefs.h. */ |
---|
4743 | #include <string.h> |
---|
4744 | |
---|
4745 | _ACEOF |
---|
4746 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
4747 | $EGREP "memchr" >/dev/null 2>&1; then : |
---|
4748 | |
---|
4749 | else |
---|
4750 | ac_cv_header_stdc=no |
---|
4751 | fi |
---|
4752 | rm -f conftest* |
---|
4753 | |
---|
4754 | fi |
---|
4755 | |
---|
4756 | if test $ac_cv_header_stdc = yes; then |
---|
4757 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
4758 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4759 | /* end confdefs.h. */ |
---|
4760 | #include <stdlib.h> |
---|
4761 | |
---|
4762 | _ACEOF |
---|
4763 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
4764 | $EGREP "free" >/dev/null 2>&1; then : |
---|
4765 | |
---|
4766 | else |
---|
4767 | ac_cv_header_stdc=no |
---|
4768 | fi |
---|
4769 | rm -f conftest* |
---|
4770 | |
---|
4771 | fi |
---|
4772 | |
---|
4773 | if test $ac_cv_header_stdc = yes; then |
---|
4774 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
4775 | if test "$cross_compiling" = yes; then : |
---|
4776 | : |
---|
4777 | else |
---|
4778 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4779 | /* end confdefs.h. */ |
---|
4780 | #include <ctype.h> |
---|
4781 | #include <stdlib.h> |
---|
4782 | #if ((' ' & 0x0FF) == 0x020) |
---|
4783 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
4784 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
4785 | #else |
---|
4786 | # define ISLOWER(c) \ |
---|
4787 | (('a' <= (c) && (c) <= 'i') \ |
---|
4788 | || ('j' <= (c) && (c) <= 'r') \ |
---|
4789 | || ('s' <= (c) && (c) <= 'z')) |
---|
4790 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
4791 | #endif |
---|
4792 | |
---|
4793 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
4794 | int |
---|
4795 | main () |
---|
4796 | { |
---|
4797 | int i; |
---|
4798 | for (i = 0; i < 256; i++) |
---|
4799 | if (XOR (islower (i), ISLOWER (i)) |
---|
4800 | || toupper (i) != TOUPPER (i)) |
---|
4801 | return 2; |
---|
4802 | return 0; |
---|
4803 | } |
---|
4804 | _ACEOF |
---|
4805 | if ac_fn_c_try_run "$LINENO"; then : |
---|
4806 | |
---|
4807 | else |
---|
4808 | ac_cv_header_stdc=no |
---|
4809 | fi |
---|
4810 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
4811 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
4812 | fi |
---|
4813 | |
---|
4814 | fi |
---|
4815 | fi |
---|
4816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
---|
4817 | $as_echo "$ac_cv_header_stdc" >&6; } |
---|
4818 | if test $ac_cv_header_stdc = yes; then |
---|
4819 | |
---|
4820 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
---|
4821 | |
---|
4822 | fi |
---|
4823 | |
---|
4824 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
4825 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
4826 | inttypes.h stdint.h unistd.h |
---|
4827 | do : |
---|
4828 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4829 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
---|
4830 | " |
---|
4831 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
---|
4832 | cat >>confdefs.h <<_ACEOF |
---|
4833 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4834 | _ACEOF |
---|
4835 | |
---|
4836 | fi |
---|
4837 | |
---|
4838 | done |
---|
4839 | |
---|
4840 | |
---|
4841 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
---|
4842 | if test "x$ac_cv_type_size_t" = xyes; then : |
---|
4843 | |
---|
4844 | else |
---|
4845 | |
---|
4846 | cat >>confdefs.h <<_ACEOF |
---|
4847 | #define size_t unsigned int |
---|
4848 | _ACEOF |
---|
4849 | |
---|
4850 | fi |
---|
4851 | |
---|
4852 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
---|
4853 | # for constant arguments. Useless! |
---|
4854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 |
---|
4855 | $as_echo_n "checking for working alloca.h... " >&6; } |
---|
4856 | if ${ac_cv_working_alloca_h+:} false; then : |
---|
4857 | $as_echo_n "(cached) " >&6 |
---|
4858 | else |
---|
4859 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4860 | /* end confdefs.h. */ |
---|
4861 | #include <alloca.h> |
---|
4862 | int |
---|
4863 | main () |
---|
4864 | { |
---|
4865 | char *p = (char *) alloca (2 * sizeof (int)); |
---|
4866 | if (p) return 0; |
---|
4867 | ; |
---|
4868 | return 0; |
---|
4869 | } |
---|
4870 | _ACEOF |
---|
4871 | if ac_fn_c_try_link "$LINENO"; then : |
---|
4872 | ac_cv_working_alloca_h=yes |
---|
4873 | else |
---|
4874 | ac_cv_working_alloca_h=no |
---|
4875 | fi |
---|
4876 | rm -f core conftest.err conftest.$ac_objext \ |
---|
4877 | conftest$ac_exeext conftest.$ac_ext |
---|
4878 | fi |
---|
4879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
---|
4880 | $as_echo "$ac_cv_working_alloca_h" >&6; } |
---|
4881 | if test $ac_cv_working_alloca_h = yes; then |
---|
4882 | |
---|
4883 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
---|
4884 | |
---|
4885 | fi |
---|
4886 | |
---|
4887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
---|
4888 | $as_echo_n "checking for alloca... " >&6; } |
---|
4889 | if ${ac_cv_func_alloca_works+:} false; then : |
---|
4890 | $as_echo_n "(cached) " >&6 |
---|
4891 | else |
---|
4892 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4893 | /* end confdefs.h. */ |
---|
4894 | #ifdef __GNUC__ |
---|
4895 | # define alloca __builtin_alloca |
---|
4896 | #else |
---|
4897 | # ifdef _MSC_VER |
---|
4898 | # include <malloc.h> |
---|
4899 | # define alloca _alloca |
---|
4900 | # else |
---|
4901 | # ifdef HAVE_ALLOCA_H |
---|
4902 | # include <alloca.h> |
---|
4903 | # else |
---|
4904 | # ifdef _AIX |
---|
4905 | #pragma alloca |
---|
4906 | # else |
---|
4907 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
---|
4908 | void *alloca (size_t); |
---|
4909 | # endif |
---|
4910 | # endif |
---|
4911 | # endif |
---|
4912 | # endif |
---|
4913 | #endif |
---|
4914 | |
---|
4915 | int |
---|
4916 | main () |
---|
4917 | { |
---|
4918 | char *p = (char *) alloca (1); |
---|
4919 | if (p) return 0; |
---|
4920 | ; |
---|
4921 | return 0; |
---|
4922 | } |
---|
4923 | _ACEOF |
---|
4924 | if ac_fn_c_try_link "$LINENO"; then : |
---|
4925 | ac_cv_func_alloca_works=yes |
---|
4926 | else |
---|
4927 | ac_cv_func_alloca_works=no |
---|
4928 | fi |
---|
4929 | rm -f core conftest.err conftest.$ac_objext \ |
---|
4930 | conftest$ac_exeext conftest.$ac_ext |
---|
4931 | fi |
---|
4932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 |
---|
4933 | $as_echo "$ac_cv_func_alloca_works" >&6; } |
---|
4934 | |
---|
4935 | if test $ac_cv_func_alloca_works = yes; then |
---|
4936 | |
---|
4937 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
---|
4938 | |
---|
4939 | else |
---|
4940 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
---|
4941 | # that cause trouble. Some versions do not even contain alloca or |
---|
4942 | # contain a buggy version. If you still want to use their alloca, |
---|
4943 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
---|
4944 | |
---|
4945 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
---|
4946 | |
---|
4947 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
---|
4948 | |
---|
4949 | |
---|
4950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
---|
4951 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } |
---|
4952 | if ${ac_cv_os_cray+:} false; then : |
---|
4953 | $as_echo_n "(cached) " >&6 |
---|
4954 | else |
---|
4955 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4956 | /* end confdefs.h. */ |
---|
4957 | #if defined CRAY && ! defined CRAY2 |
---|
4958 | webecray |
---|
4959 | #else |
---|
4960 | wenotbecray |
---|
4961 | #endif |
---|
4962 | |
---|
4963 | _ACEOF |
---|
4964 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
4965 | $EGREP "webecray" >/dev/null 2>&1; then : |
---|
4966 | ac_cv_os_cray=yes |
---|
4967 | else |
---|
4968 | ac_cv_os_cray=no |
---|
4969 | fi |
---|
4970 | rm -f conftest* |
---|
4971 | |
---|
4972 | fi |
---|
4973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 |
---|
4974 | $as_echo "$ac_cv_os_cray" >&6; } |
---|
4975 | if test $ac_cv_os_cray = yes; then |
---|
4976 | for ac_func in _getb67 GETB67 getb67; do |
---|
4977 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
4978 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
---|
4979 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
---|
4980 | |
---|
4981 | cat >>confdefs.h <<_ACEOF |
---|
4982 | #define CRAY_STACKSEG_END $ac_func |
---|
4983 | _ACEOF |
---|
4984 | |
---|
4985 | break |
---|
4986 | fi |
---|
4987 | |
---|
4988 | done |
---|
4989 | fi |
---|
4990 | |
---|
4991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
---|
4992 | $as_echo_n "checking stack direction for C alloca... " >&6; } |
---|
4993 | if ${ac_cv_c_stack_direction+:} false; then : |
---|
4994 | $as_echo_n "(cached) " >&6 |
---|
4995 | else |
---|
4996 | if test "$cross_compiling" = yes; then : |
---|
4997 | ac_cv_c_stack_direction=0 |
---|
4998 | else |
---|
4999 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5000 | /* end confdefs.h. */ |
---|
5001 | $ac_includes_default |
---|
5002 | int |
---|
5003 | find_stack_direction () |
---|
5004 | { |
---|
5005 | static char *addr = 0; |
---|
5006 | auto char dummy; |
---|
5007 | if (addr == 0) |
---|
5008 | { |
---|
5009 | addr = &dummy; |
---|
5010 | return find_stack_direction (); |
---|
5011 | } |
---|
5012 | else |
---|
5013 | return (&dummy > addr) ? 1 : -1; |
---|
5014 | } |
---|
5015 | |
---|
5016 | int |
---|
5017 | main () |
---|
5018 | { |
---|
5019 | return find_stack_direction () < 0; |
---|
5020 | } |
---|
5021 | _ACEOF |
---|
5022 | if ac_fn_c_try_run "$LINENO"; then : |
---|
5023 | ac_cv_c_stack_direction=1 |
---|
5024 | else |
---|
5025 | ac_cv_c_stack_direction=-1 |
---|
5026 | fi |
---|
5027 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
5028 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
5029 | fi |
---|
5030 | |
---|
5031 | fi |
---|
5032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
---|
5033 | $as_echo "$ac_cv_c_stack_direction" >&6; } |
---|
5034 | cat >>confdefs.h <<_ACEOF |
---|
5035 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
---|
5036 | _ACEOF |
---|
5037 | |
---|
5038 | |
---|
5039 | fi |
---|
5040 | |
---|
5041 | for ac_header in fenv.h float.h inttypes.h libintl.h limits.h malloc.h stddef.h stdlib.h string.h unistd.h |
---|
5042 | do : |
---|
5043 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5044 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
---|
5045 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
---|
5046 | cat >>confdefs.h <<_ACEOF |
---|
5047 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5048 | _ACEOF |
---|
5049 | |
---|
5050 | fi |
---|
5051 | |
---|
5052 | done |
---|
5053 | |
---|
5054 | |
---|
5055 | # Checks for typedefs, structures, and compiler characteristics. |
---|
5056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 |
---|
5057 | $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } |
---|
5058 | if ${ac_cv_header_stdbool_h+:} false; then : |
---|
5059 | $as_echo_n "(cached) " >&6 |
---|
5060 | else |
---|
5061 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5062 | /* end confdefs.h. */ |
---|
5063 | |
---|
5064 | #include <stdbool.h> |
---|
5065 | #ifndef bool |
---|
5066 | "error: bool is not defined" |
---|
5067 | #endif |
---|
5068 | #ifndef false |
---|
5069 | "error: false is not defined" |
---|
5070 | #endif |
---|
5071 | #if false |
---|
5072 | "error: false is not 0" |
---|
5073 | #endif |
---|
5074 | #ifndef true |
---|
5075 | "error: true is not defined" |
---|
5076 | #endif |
---|
5077 | #if true != 1 |
---|
5078 | "error: true is not 1" |
---|
5079 | #endif |
---|
5080 | #ifndef __bool_true_false_are_defined |
---|
5081 | "error: __bool_true_false_are_defined is not defined" |
---|
5082 | #endif |
---|
5083 | |
---|
5084 | struct s { _Bool s: 1; _Bool t; } s; |
---|
5085 | |
---|
5086 | char a[true == 1 ? 1 : -1]; |
---|
5087 | char b[false == 0 ? 1 : -1]; |
---|
5088 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
---|
5089 | char d[(bool) 0.5 == true ? 1 : -1]; |
---|
5090 | /* See body of main program for 'e'. */ |
---|
5091 | char f[(_Bool) 0.0 == false ? 1 : -1]; |
---|
5092 | char g[true]; |
---|
5093 | char h[sizeof (_Bool)]; |
---|
5094 | char i[sizeof s.t]; |
---|
5095 | enum { j = false, k = true, l = false * true, m = true * 256 }; |
---|
5096 | /* The following fails for |
---|
5097 | HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ |
---|
5098 | _Bool n[m]; |
---|
5099 | char o[sizeof n == m * sizeof n[0] ? 1 : -1]; |
---|
5100 | char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; |
---|
5101 | /* Catch a bug in an HP-UX C compiler. See |
---|
5102 | http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html |
---|
5103 | http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html |
---|
5104 | */ |
---|
5105 | _Bool q = true; |
---|
5106 | _Bool *pq = &q; |
---|
5107 | |
---|
5108 | int |
---|
5109 | main () |
---|
5110 | { |
---|
5111 | |
---|
5112 | bool e = &s; |
---|
5113 | *pq |= q; |
---|
5114 | *pq |= ! q; |
---|
5115 | /* Refer to every declared value, to avoid compiler optimizations. */ |
---|
5116 | return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l |
---|
5117 | + !m + !n + !o + !p + !q + !pq); |
---|
5118 | |
---|
5119 | ; |
---|
5120 | return 0; |
---|
5121 | } |
---|
5122 | _ACEOF |
---|
5123 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
5124 | ac_cv_header_stdbool_h=yes |
---|
5125 | else |
---|
5126 | ac_cv_header_stdbool_h=no |
---|
5127 | fi |
---|
5128 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5129 | fi |
---|
5130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 |
---|
5131 | $as_echo "$ac_cv_header_stdbool_h" >&6; } |
---|
5132 | ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" |
---|
5133 | if test "x$ac_cv_type__Bool" = xyes; then : |
---|
5134 | |
---|
5135 | cat >>confdefs.h <<_ACEOF |
---|
5136 | #define HAVE__BOOL 1 |
---|
5137 | _ACEOF |
---|
5138 | |
---|
5139 | |
---|
5140 | fi |
---|
5141 | |
---|
5142 | if test $ac_cv_header_stdbool_h = yes; then |
---|
5143 | |
---|
5144 | $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h |
---|
5145 | |
---|
5146 | fi |
---|
5147 | |
---|
5148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
---|
5149 | $as_echo_n "checking for inline... " >&6; } |
---|
5150 | if ${ac_cv_c_inline+:} false; then : |
---|
5151 | $as_echo_n "(cached) " >&6 |
---|
5152 | else |
---|
5153 | ac_cv_c_inline=no |
---|
5154 | for ac_kw in inline __inline__ __inline; do |
---|
5155 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5156 | /* end confdefs.h. */ |
---|
5157 | #ifndef __cplusplus |
---|
5158 | typedef int foo_t; |
---|
5159 | static $ac_kw foo_t static_foo () {return 0; } |
---|
5160 | $ac_kw foo_t foo () {return 0; } |
---|
5161 | #endif |
---|
5162 | |
---|
5163 | _ACEOF |
---|
5164 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
5165 | ac_cv_c_inline=$ac_kw |
---|
5166 | fi |
---|
5167 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5168 | test "$ac_cv_c_inline" != no && break |
---|
5169 | done |
---|
5170 | |
---|
5171 | fi |
---|
5172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
---|
5173 | $as_echo "$ac_cv_c_inline" >&6; } |
---|
5174 | |
---|
5175 | case $ac_cv_c_inline in |
---|
5176 | inline | yes) ;; |
---|
5177 | *) |
---|
5178 | case $ac_cv_c_inline in |
---|
5179 | no) ac_val=;; |
---|
5180 | *) ac_val=$ac_cv_c_inline;; |
---|
5181 | esac |
---|
5182 | cat >>confdefs.h <<_ACEOF |
---|
5183 | #ifndef __cplusplus |
---|
5184 | #define inline $ac_val |
---|
5185 | #endif |
---|
5186 | _ACEOF |
---|
5187 | ;; |
---|
5188 | esac |
---|
5189 | |
---|
5190 | ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" |
---|
5191 | case $ac_cv_c_int16_t in #( |
---|
5192 | no|yes) ;; #( |
---|
5193 | *) |
---|
5194 | |
---|
5195 | cat >>confdefs.h <<_ACEOF |
---|
5196 | #define int16_t $ac_cv_c_int16_t |
---|
5197 | _ACEOF |
---|
5198 | ;; |
---|
5199 | esac |
---|
5200 | |
---|
5201 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" |
---|
5202 | case $ac_cv_c_int32_t in #( |
---|
5203 | no|yes) ;; #( |
---|
5204 | *) |
---|
5205 | |
---|
5206 | cat >>confdefs.h <<_ACEOF |
---|
5207 | #define int32_t $ac_cv_c_int32_t |
---|
5208 | _ACEOF |
---|
5209 | ;; |
---|
5210 | esac |
---|
5211 | |
---|
5212 | ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t" |
---|
5213 | case $ac_cv_c_int8_t in #( |
---|
5214 | no|yes) ;; #( |
---|
5215 | *) |
---|
5216 | |
---|
5217 | cat >>confdefs.h <<_ACEOF |
---|
5218 | #define int8_t $ac_cv_c_int8_t |
---|
5219 | _ACEOF |
---|
5220 | ;; |
---|
5221 | esac |
---|
5222 | |
---|
5223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 |
---|
5224 | $as_echo_n "checking for C/C++ restrict keyword... " >&6; } |
---|
5225 | if ${ac_cv_c_restrict+:} false; then : |
---|
5226 | $as_echo_n "(cached) " >&6 |
---|
5227 | else |
---|
5228 | ac_cv_c_restrict=no |
---|
5229 | # The order here caters to the fact that C++ does not require restrict. |
---|
5230 | for ac_kw in __restrict __restrict__ _Restrict restrict; do |
---|
5231 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5232 | /* end confdefs.h. */ |
---|
5233 | typedef int * int_ptr; |
---|
5234 | int foo (int_ptr $ac_kw ip) { |
---|
5235 | return ip[0]; |
---|
5236 | } |
---|
5237 | int |
---|
5238 | main () |
---|
5239 | { |
---|
5240 | int s[1]; |
---|
5241 | int * $ac_kw t = s; |
---|
5242 | t[0] = 0; |
---|
5243 | return foo(t) |
---|
5244 | ; |
---|
5245 | return 0; |
---|
5246 | } |
---|
5247 | _ACEOF |
---|
5248 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
5249 | ac_cv_c_restrict=$ac_kw |
---|
5250 | fi |
---|
5251 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5252 | test "$ac_cv_c_restrict" != no && break |
---|
5253 | done |
---|
5254 | |
---|
5255 | fi |
---|
5256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 |
---|
5257 | $as_echo "$ac_cv_c_restrict" >&6; } |
---|
5258 | |
---|
5259 | case $ac_cv_c_restrict in |
---|
5260 | restrict) ;; |
---|
5261 | no) $as_echo "#define restrict /**/" >>confdefs.h |
---|
5262 | ;; |
---|
5263 | *) cat >>confdefs.h <<_ACEOF |
---|
5264 | #define restrict $ac_cv_c_restrict |
---|
5265 | _ACEOF |
---|
5266 | ;; |
---|
5267 | esac |
---|
5268 | |
---|
5269 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
---|
5270 | if test "x$ac_cv_type_size_t" = xyes; then : |
---|
5271 | |
---|
5272 | else |
---|
5273 | |
---|
5274 | cat >>confdefs.h <<_ACEOF |
---|
5275 | #define size_t unsigned int |
---|
5276 | _ACEOF |
---|
5277 | |
---|
5278 | fi |
---|
5279 | |
---|
5280 | ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" |
---|
5281 | case $ac_cv_c_uint16_t in #( |
---|
5282 | no|yes) ;; #( |
---|
5283 | *) |
---|
5284 | |
---|
5285 | |
---|
5286 | cat >>confdefs.h <<_ACEOF |
---|
5287 | #define uint16_t $ac_cv_c_uint16_t |
---|
5288 | _ACEOF |
---|
5289 | ;; |
---|
5290 | esac |
---|
5291 | |
---|
5292 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" |
---|
5293 | case $ac_cv_c_uint32_t in #( |
---|
5294 | no|yes) ;; #( |
---|
5295 | *) |
---|
5296 | |
---|
5297 | $as_echo "#define _UINT32_T 1" >>confdefs.h |
---|
5298 | |
---|
5299 | |
---|
5300 | cat >>confdefs.h <<_ACEOF |
---|
5301 | #define uint32_t $ac_cv_c_uint32_t |
---|
5302 | _ACEOF |
---|
5303 | ;; |
---|
5304 | esac |
---|
5305 | |
---|
5306 | ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" |
---|
5307 | case $ac_cv_c_uint8_t in #( |
---|
5308 | no|yes) ;; #( |
---|
5309 | *) |
---|
5310 | |
---|
5311 | $as_echo "#define _UINT8_T 1" >>confdefs.h |
---|
5312 | |
---|
5313 | |
---|
5314 | cat >>confdefs.h <<_ACEOF |
---|
5315 | #define uint8_t $ac_cv_c_uint8_t |
---|
5316 | _ACEOF |
---|
5317 | ;; |
---|
5318 | esac |
---|
5319 | |
---|
5320 | |
---|
5321 | # Checks for library functions. |
---|
5322 | for ac_header in stdlib.h |
---|
5323 | do : |
---|
5324 | ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" |
---|
5325 | if test "x$ac_cv_header_stdlib_h" = xyes; then : |
---|
5326 | cat >>confdefs.h <<_ACEOF |
---|
5327 | #define HAVE_STDLIB_H 1 |
---|
5328 | _ACEOF |
---|
5329 | |
---|
5330 | fi |
---|
5331 | |
---|
5332 | done |
---|
5333 | |
---|
5334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 |
---|
5335 | $as_echo_n "checking for GNU libc compatible malloc... " >&6; } |
---|
5336 | if ${ac_cv_func_malloc_0_nonnull+:} false; then : |
---|
5337 | $as_echo_n "(cached) " >&6 |
---|
5338 | else |
---|
5339 | if test "$cross_compiling" = yes; then : |
---|
5340 | ac_cv_func_malloc_0_nonnull=no |
---|
5341 | else |
---|
5342 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5343 | /* end confdefs.h. */ |
---|
5344 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H |
---|
5345 | # include <stdlib.h> |
---|
5346 | #else |
---|
5347 | char *malloc (); |
---|
5348 | #endif |
---|
5349 | |
---|
5350 | int |
---|
5351 | main () |
---|
5352 | { |
---|
5353 | return ! malloc (0); |
---|
5354 | ; |
---|
5355 | return 0; |
---|
5356 | } |
---|
5357 | _ACEOF |
---|
5358 | if ac_fn_c_try_run "$LINENO"; then : |
---|
5359 | ac_cv_func_malloc_0_nonnull=yes |
---|
5360 | else |
---|
5361 | ac_cv_func_malloc_0_nonnull=no |
---|
5362 | fi |
---|
5363 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
5364 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
5365 | fi |
---|
5366 | |
---|
5367 | fi |
---|
5368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 |
---|
5369 | $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } |
---|
5370 | if test $ac_cv_func_malloc_0_nonnull = yes; then : |
---|
5371 | |
---|
5372 | $as_echo "#define HAVE_MALLOC 1" >>confdefs.h |
---|
5373 | |
---|
5374 | else |
---|
5375 | $as_echo "#define HAVE_MALLOC 0" >>confdefs.h |
---|
5376 | |
---|
5377 | case " $LIBOBJS " in |
---|
5378 | *" malloc.$ac_objext "* ) ;; |
---|
5379 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" |
---|
5380 | ;; |
---|
5381 | esac |
---|
5382 | |
---|
5383 | |
---|
5384 | $as_echo "#define malloc rpl_malloc" >>confdefs.h |
---|
5385 | |
---|
5386 | fi |
---|
5387 | |
---|
5388 | |
---|
5389 | for ac_header in stdlib.h |
---|
5390 | do : |
---|
5391 | ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" |
---|
5392 | if test "x$ac_cv_header_stdlib_h" = xyes; then : |
---|
5393 | cat >>confdefs.h <<_ACEOF |
---|
5394 | #define HAVE_STDLIB_H 1 |
---|
5395 | _ACEOF |
---|
5396 | |
---|
5397 | fi |
---|
5398 | |
---|
5399 | done |
---|
5400 | |
---|
5401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5 |
---|
5402 | $as_echo_n "checking for GNU libc compatible realloc... " >&6; } |
---|
5403 | if ${ac_cv_func_realloc_0_nonnull+:} false; then : |
---|
5404 | $as_echo_n "(cached) " >&6 |
---|
5405 | else |
---|
5406 | if test "$cross_compiling" = yes; then : |
---|
5407 | ac_cv_func_realloc_0_nonnull=no |
---|
5408 | else |
---|
5409 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5410 | /* end confdefs.h. */ |
---|
5411 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H |
---|
5412 | # include <stdlib.h> |
---|
5413 | #else |
---|
5414 | char *realloc (); |
---|
5415 | #endif |
---|
5416 | |
---|
5417 | int |
---|
5418 | main () |
---|
5419 | { |
---|
5420 | return ! realloc (0, 0); |
---|
5421 | ; |
---|
5422 | return 0; |
---|
5423 | } |
---|
5424 | _ACEOF |
---|
5425 | if ac_fn_c_try_run "$LINENO"; then : |
---|
5426 | ac_cv_func_realloc_0_nonnull=yes |
---|
5427 | else |
---|
5428 | ac_cv_func_realloc_0_nonnull=no |
---|
5429 | fi |
---|
5430 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
5431 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
5432 | fi |
---|
5433 | |
---|
5434 | fi |
---|
5435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5 |
---|
5436 | $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; } |
---|
5437 | if test $ac_cv_func_realloc_0_nonnull = yes; then : |
---|
5438 | |
---|
5439 | $as_echo "#define HAVE_REALLOC 1" >>confdefs.h |
---|
5440 | |
---|
5441 | else |
---|
5442 | $as_echo "#define HAVE_REALLOC 0" >>confdefs.h |
---|
5443 | |
---|
5444 | case " $LIBOBJS " in |
---|
5445 | *" realloc.$ac_objext "* ) ;; |
---|
5446 | *) LIBOBJS="$LIBOBJS realloc.$ac_objext" |
---|
5447 | ;; |
---|
5448 | esac |
---|
5449 | |
---|
5450 | |
---|
5451 | $as_echo "#define realloc rpl_realloc" >>confdefs.h |
---|
5452 | |
---|
5453 | fi |
---|
5454 | |
---|
5455 | |
---|
5456 | for ac_func in memset putenv strchr strtol |
---|
5457 | do : |
---|
5458 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
5459 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
---|
5460 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
---|
5461 | cat >>confdefs.h <<_ACEOF |
---|
5462 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
5463 | _ACEOF |
---|
5464 | |
---|
5465 | fi |
---|
5466 | done |
---|
5467 | |
---|
5468 | |
---|
5469 | ac_config_files="$ac_config_files Makefile src/Makefile driver/Makefile libcfa/Makefile src/examples/Makefile" |
---|
5470 | |
---|
5471 | |
---|
5472 | cat >confcache <<\_ACEOF |
---|
5473 | # This file is a shell script that caches the results of configure |
---|
5474 | # tests run on this system so they can be shared between configure |
---|
5475 | # scripts and configure runs, see configure's option --config-cache. |
---|
5476 | # It is not useful on other systems. If it contains results you don't |
---|
5477 | # want to keep, you may remove or edit it. |
---|
5478 | # |
---|
5479 | # config.status only pays attention to the cache file if you give it |
---|
5480 | # the --recheck option to rerun configure. |
---|
5481 | # |
---|
5482 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
5483 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
5484 | # following values. |
---|
5485 | |
---|
5486 | _ACEOF |
---|
5487 | |
---|
5488 | # The following way of writing the cache mishandles newlines in values, |
---|
5489 | # but we know of no workaround that is simple, portable, and efficient. |
---|
5490 | # So, we kill variables containing newlines. |
---|
5491 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
5492 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
5493 | ( |
---|
5494 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
---|
5495 | eval ac_val=\$$ac_var |
---|
5496 | case $ac_val in #( |
---|
5497 | *${as_nl}*) |
---|
5498 | case $ac_var in #( |
---|
5499 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
---|
5500 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
---|
5501 | esac |
---|
5502 | case $ac_var in #( |
---|
5503 | _ | IFS | as_nl) ;; #( |
---|
5504 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
---|
5505 | *) { eval $ac_var=; unset $ac_var;} ;; |
---|
5506 | esac ;; |
---|
5507 | esac |
---|
5508 | done |
---|
5509 | |
---|
5510 | (set) 2>&1 | |
---|
5511 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
---|
5512 | *${as_nl}ac_space=\ *) |
---|
5513 | # `set' does not quote correctly, so add quotes: double-quote |
---|
5514 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
---|
5515 | sed -n \ |
---|
5516 | "s/'/'\\\\''/g; |
---|
5517 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
5518 | ;; #( |
---|
5519 | *) |
---|
5520 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
5521 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
5522 | ;; |
---|
5523 | esac | |
---|
5524 | sort |
---|
5525 | ) | |
---|
5526 | sed ' |
---|
5527 | /^ac_cv_env_/b end |
---|
5528 | t clear |
---|
5529 | :clear |
---|
5530 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
5531 | t end |
---|
5532 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
5533 | :end' >>confcache |
---|
5534 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
---|
5535 | if test -w "$cache_file"; then |
---|
5536 | if test "x$cache_file" != "x/dev/null"; then |
---|
5537 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
---|
5538 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
---|
5539 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
---|
5540 | cat confcache >"$cache_file" |
---|
5541 | else |
---|
5542 | case $cache_file in #( |
---|
5543 | */* | ?:*) |
---|
5544 | mv -f confcache "$cache_file"$$ && |
---|
5545 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
---|
5546 | *) |
---|
5547 | mv -f confcache "$cache_file" ;; |
---|
5548 | esac |
---|
5549 | fi |
---|
5550 | fi |
---|
5551 | else |
---|
5552 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
---|
5553 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
---|
5554 | fi |
---|
5555 | fi |
---|
5556 | rm -f confcache |
---|
5557 | |
---|
5558 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
5559 | # Let make expand exec_prefix. |
---|
5560 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
5561 | |
---|
5562 | DEFS=-DHAVE_CONFIG_H |
---|
5563 | |
---|
5564 | ac_libobjs= |
---|
5565 | ac_ltlibobjs= |
---|
5566 | U= |
---|
5567 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
5568 | # 1. Remove the extension, and $U if already installed. |
---|
5569 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
---|
5570 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
---|
5571 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
---|
5572 | # will be set to the directory where LIBOBJS objects are built. |
---|
5573 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
---|
5574 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
---|
5575 | done |
---|
5576 | LIBOBJS=$ac_libobjs |
---|
5577 | |
---|
5578 | LTLIBOBJS=$ac_ltlibobjs |
---|
5579 | |
---|
5580 | |
---|
5581 | if test -n "$EXEEXT"; then |
---|
5582 | am__EXEEXT_TRUE= |
---|
5583 | am__EXEEXT_FALSE='#' |
---|
5584 | else |
---|
5585 | am__EXEEXT_TRUE='#' |
---|
5586 | am__EXEEXT_FALSE= |
---|
5587 | fi |
---|
5588 | |
---|
5589 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
---|
5590 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
---|
5591 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
5592 | fi |
---|
5593 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
---|
5594 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. |
---|
5595 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
5596 | fi |
---|
5597 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
---|
5598 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
---|
5599 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
5600 | fi |
---|
5601 | |
---|
5602 | : "${CONFIG_STATUS=./config.status}" |
---|
5603 | ac_write_fail=0 |
---|
5604 | ac_clean_files_save=$ac_clean_files |
---|
5605 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
5606 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
---|
5607 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
5608 | as_write_fail=0 |
---|
5609 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
---|
5610 | #! $SHELL |
---|
5611 | # Generated by $as_me. |
---|
5612 | # Run this file to recreate the current configuration. |
---|
5613 | # Compiler output produced by configure, useful for debugging |
---|
5614 | # configure, is in config.log if it exists. |
---|
5615 | |
---|
5616 | debug=false |
---|
5617 | ac_cs_recheck=false |
---|
5618 | ac_cs_silent=false |
---|
5619 | |
---|
5620 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
5621 | export SHELL |
---|
5622 | _ASEOF |
---|
5623 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
---|
5624 | ## -------------------- ## |
---|
5625 | ## M4sh Initialization. ## |
---|
5626 | ## -------------------- ## |
---|
5627 | |
---|
5628 | # Be more Bourne compatible |
---|
5629 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
5630 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
---|
5631 | emulate sh |
---|
5632 | NULLCMD=: |
---|
5633 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
---|
5634 | # is contrary to our usage. Disable this feature. |
---|
5635 | alias -g '${1+"$@"}'='"$@"' |
---|
5636 | setopt NO_GLOB_SUBST |
---|
5637 | else |
---|
5638 | case `(set -o) 2>/dev/null` in #( |
---|
5639 | *posix*) : |
---|
5640 | set -o posix ;; #( |
---|
5641 | *) : |
---|
5642 | ;; |
---|
5643 | esac |
---|
5644 | fi |
---|
5645 | |
---|
5646 | |
---|
5647 | as_nl=' |
---|
5648 | ' |
---|
5649 | export as_nl |
---|
5650 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
---|
5651 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
---|
5652 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
5653 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
5654 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
---|
5655 | # but without wasting forks for bash or zsh. |
---|
5656 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
---|
5657 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
5658 | as_echo='print -r --' |
---|
5659 | as_echo_n='print -rn --' |
---|
5660 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
5661 | as_echo='printf %s\n' |
---|
5662 | as_echo_n='printf %s' |
---|
5663 | else |
---|
5664 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
---|
5665 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
---|
5666 | as_echo_n='/usr/ucb/echo -n' |
---|
5667 | else |
---|
5668 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
---|
5669 | as_echo_n_body='eval |
---|
5670 | arg=$1; |
---|
5671 | case $arg in #( |
---|
5672 | *"$as_nl"*) |
---|
5673 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
---|
5674 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
---|
5675 | esac; |
---|
5676 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
---|
5677 | ' |
---|
5678 | export as_echo_n_body |
---|
5679 | as_echo_n='sh -c $as_echo_n_body as_echo' |
---|
5680 | fi |
---|
5681 | export as_echo_body |
---|
5682 | as_echo='sh -c $as_echo_body as_echo' |
---|
5683 | fi |
---|
5684 | |
---|
5685 | # The user is always right. |
---|
5686 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
5687 | PATH_SEPARATOR=: |
---|
5688 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
---|
5689 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
---|
5690 | PATH_SEPARATOR=';' |
---|
5691 | } |
---|
5692 | fi |
---|
5693 | |
---|
5694 | |
---|
5695 | # IFS |
---|
5696 | # We need space, tab and new line, in precisely that order. Quoting is |
---|
5697 | # there to prevent editors from complaining about space-tab. |
---|
5698 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
---|
5699 | # splitting by setting IFS to empty value.) |
---|
5700 | IFS=" "" $as_nl" |
---|
5701 | |
---|
5702 | # Find who we are. Look in the path if we contain no directory separator. |
---|
5703 | as_myself= |
---|
5704 | case $0 in #(( |
---|
5705 | *[\\/]* ) as_myself=$0 ;; |
---|
5706 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5707 | for as_dir in $PATH |
---|
5708 | do |
---|
5709 | IFS=$as_save_IFS |
---|
5710 | test -z "$as_dir" && as_dir=. |
---|
5711 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
5712 | done |
---|
5713 | IFS=$as_save_IFS |
---|
5714 | |
---|
5715 | ;; |
---|
5716 | esac |
---|
5717 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
5718 | # in which case we are not to be found in the path. |
---|
5719 | if test "x$as_myself" = x; then |
---|
5720 | as_myself=$0 |
---|
5721 | fi |
---|
5722 | if test ! -f "$as_myself"; then |
---|
5723 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
5724 | exit 1 |
---|
5725 | fi |
---|
5726 | |
---|
5727 | # Unset variables that we do not need and which cause bugs (e.g. in |
---|
5728 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
---|
5729 | # suppresses any "Segmentation fault" message there. '((' could |
---|
5730 | # trigger a bug in pdksh 5.2.14. |
---|
5731 | for as_var in BASH_ENV ENV MAIL MAILPATH |
---|
5732 | do eval test x\${$as_var+set} = xset \ |
---|
5733 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
---|
5734 | done |
---|
5735 | PS1='$ ' |
---|
5736 | PS2='> ' |
---|
5737 | PS4='+ ' |
---|
5738 | |
---|
5739 | # NLS nuisances. |
---|
5740 | LC_ALL=C |
---|
5741 | export LC_ALL |
---|
5742 | LANGUAGE=C |
---|
5743 | export LANGUAGE |
---|
5744 | |
---|
5745 | # CDPATH. |
---|
5746 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
---|
5747 | |
---|
5748 | |
---|
5749 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
---|
5750 | # ---------------------------------------- |
---|
5751 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
---|
5752 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
---|
5753 | # script with STATUS, using 1 if that was 0. |
---|
5754 | as_fn_error () |
---|
5755 | { |
---|
5756 | as_status=$1; test $as_status -eq 0 && as_status=1 |
---|
5757 | if test "$4"; then |
---|
5758 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
5759 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
---|
5760 | fi |
---|
5761 | $as_echo "$as_me: error: $2" >&2 |
---|
5762 | as_fn_exit $as_status |
---|
5763 | } # as_fn_error |
---|
5764 | |
---|
5765 | |
---|
5766 | # as_fn_set_status STATUS |
---|
5767 | # ----------------------- |
---|
5768 | # Set $? to STATUS, without forking. |
---|
5769 | as_fn_set_status () |
---|
5770 | { |
---|
5771 | return $1 |
---|
5772 | } # as_fn_set_status |
---|
5773 | |
---|
5774 | # as_fn_exit STATUS |
---|
5775 | # ----------------- |
---|
5776 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
---|
5777 | as_fn_exit () |
---|
5778 | { |
---|
5779 | set +e |
---|
5780 | as_fn_set_status $1 |
---|
5781 | exit $1 |
---|
5782 | } # as_fn_exit |
---|
5783 | |
---|
5784 | # as_fn_unset VAR |
---|
5785 | # --------------- |
---|
5786 | # Portably unset VAR. |
---|
5787 | as_fn_unset () |
---|
5788 | { |
---|
5789 | { eval $1=; unset $1;} |
---|
5790 | } |
---|
5791 | as_unset=as_fn_unset |
---|
5792 | # as_fn_append VAR VALUE |
---|
5793 | # ---------------------- |
---|
5794 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
---|
5795 | # advantage of any shell optimizations that allow amortized linear growth over |
---|
5796 | # repeated appends, instead of the typical quadratic growth present in naive |
---|
5797 | # implementations. |
---|
5798 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
---|
5799 | eval 'as_fn_append () |
---|
5800 | { |
---|
5801 | eval $1+=\$2 |
---|
5802 | }' |
---|
5803 | else |
---|
5804 | as_fn_append () |
---|
5805 | { |
---|
5806 | eval $1=\$$1\$2 |
---|
5807 | } |
---|
5808 | fi # as_fn_append |
---|
5809 | |
---|
5810 | # as_fn_arith ARG... |
---|
5811 | # ------------------ |
---|
5812 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
---|
5813 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
---|
5814 | # must be portable across $(()) and expr. |
---|
5815 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
---|
5816 | eval 'as_fn_arith () |
---|
5817 | { |
---|
5818 | as_val=$(( $* )) |
---|
5819 | }' |
---|
5820 | else |
---|
5821 | as_fn_arith () |
---|
5822 | { |
---|
5823 | as_val=`expr "$@" || test $? -eq 1` |
---|
5824 | } |
---|
5825 | fi # as_fn_arith |
---|
5826 | |
---|
5827 | |
---|
5828 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
5829 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
5830 | as_expr=expr |
---|
5831 | else |
---|
5832 | as_expr=false |
---|
5833 | fi |
---|
5834 | |
---|
5835 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
5836 | as_basename=basename |
---|
5837 | else |
---|
5838 | as_basename=false |
---|
5839 | fi |
---|
5840 | |
---|
5841 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
5842 | as_dirname=dirname |
---|
5843 | else |
---|
5844 | as_dirname=false |
---|
5845 | fi |
---|
5846 | |
---|
5847 | as_me=`$as_basename -- "$0" || |
---|
5848 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
5849 | X"$0" : 'X\(//\)$' \| \ |
---|
5850 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
5851 | $as_echo X/"$0" | |
---|
5852 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
5853 | s//\1/ |
---|
5854 | q |
---|
5855 | } |
---|
5856 | /^X\/\(\/\/\)$/{ |
---|
5857 | s//\1/ |
---|
5858 | q |
---|
5859 | } |
---|
5860 | /^X\/\(\/\).*/{ |
---|
5861 | s//\1/ |
---|
5862 | q |
---|
5863 | } |
---|
5864 | s/.*/./; q'` |
---|
5865 | |
---|
5866 | # Avoid depending upon Character Ranges. |
---|
5867 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
5868 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
5869 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
5870 | as_cr_digits='0123456789' |
---|
5871 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
5872 | |
---|
5873 | ECHO_C= ECHO_N= ECHO_T= |
---|
5874 | case `echo -n x` in #((((( |
---|
5875 | -n*) |
---|
5876 | case `echo 'xy\c'` in |
---|
5877 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
5878 | xy) ECHO_C='\c';; |
---|
5879 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
---|
5880 | ECHO_T=' ';; |
---|
5881 | esac;; |
---|
5882 | *) |
---|
5883 | ECHO_N='-n';; |
---|
5884 | esac |
---|
5885 | |
---|
5886 | rm -f conf$$ conf$$.exe conf$$.file |
---|
5887 | if test -d conf$$.dir; then |
---|
5888 | rm -f conf$$.dir/conf$$.file |
---|
5889 | else |
---|
5890 | rm -f conf$$.dir |
---|
5891 | mkdir conf$$.dir 2>/dev/null |
---|
5892 | fi |
---|
5893 | if (echo >conf$$.file) 2>/dev/null; then |
---|
5894 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
5895 | as_ln_s='ln -s' |
---|
5896 | # ... but there are two gotchas: |
---|
5897 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
5898 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
5899 | # In both cases, we have to default to `cp -p'. |
---|
5900 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
5901 | as_ln_s='cp -p' |
---|
5902 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
5903 | as_ln_s=ln |
---|
5904 | else |
---|
5905 | as_ln_s='cp -p' |
---|
5906 | fi |
---|
5907 | else |
---|
5908 | as_ln_s='cp -p' |
---|
5909 | fi |
---|
5910 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
5911 | rmdir conf$$.dir 2>/dev/null |
---|
5912 | |
---|
5913 | |
---|
5914 | # as_fn_mkdir_p |
---|
5915 | # ------------- |
---|
5916 | # Create "$as_dir" as a directory, including parents if necessary. |
---|
5917 | as_fn_mkdir_p () |
---|
5918 | { |
---|
5919 | |
---|
5920 | case $as_dir in #( |
---|
5921 | -*) as_dir=./$as_dir;; |
---|
5922 | esac |
---|
5923 | test -d "$as_dir" || eval $as_mkdir_p || { |
---|
5924 | as_dirs= |
---|
5925 | while :; do |
---|
5926 | case $as_dir in #( |
---|
5927 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
---|
5928 | *) as_qdir=$as_dir;; |
---|
5929 | esac |
---|
5930 | as_dirs="'$as_qdir' $as_dirs" |
---|
5931 | as_dir=`$as_dirname -- "$as_dir" || |
---|
5932 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
5933 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
5934 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
5935 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
---|
5936 | $as_echo X"$as_dir" | |
---|
5937 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
5938 | s//\1/ |
---|
5939 | q |
---|
5940 | } |
---|
5941 | /^X\(\/\/\)[^/].*/{ |
---|
5942 | s//\1/ |
---|
5943 | q |
---|
5944 | } |
---|
5945 | /^X\(\/\/\)$/{ |
---|
5946 | s//\1/ |
---|
5947 | q |
---|
5948 | } |
---|
5949 | /^X\(\/\).*/{ |
---|
5950 | s//\1/ |
---|
5951 | q |
---|
5952 | } |
---|
5953 | s/.*/./; q'` |
---|
5954 | test -d "$as_dir" && break |
---|
5955 | done |
---|
5956 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
---|
5957 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
---|
5958 | |
---|
5959 | |
---|
5960 | } # as_fn_mkdir_p |
---|
5961 | if mkdir -p . 2>/dev/null; then |
---|
5962 | as_mkdir_p='mkdir -p "$as_dir"' |
---|
5963 | else |
---|
5964 | test -d ./-p && rmdir ./-p |
---|
5965 | as_mkdir_p=false |
---|
5966 | fi |
---|
5967 | |
---|
5968 | if test -x / >/dev/null 2>&1; then |
---|
5969 | as_test_x='test -x' |
---|
5970 | else |
---|
5971 | if ls -dL / >/dev/null 2>&1; then |
---|
5972 | as_ls_L_option=L |
---|
5973 | else |
---|
5974 | as_ls_L_option= |
---|
5975 | fi |
---|
5976 | as_test_x=' |
---|
5977 | eval sh -c '\'' |
---|
5978 | if test -d "$1"; then |
---|
5979 | test -d "$1/."; |
---|
5980 | else |
---|
5981 | case $1 in #( |
---|
5982 | -*)set "./$1";; |
---|
5983 | esac; |
---|
5984 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
---|
5985 | ???[sx]*):;;*)false;;esac;fi |
---|
5986 | '\'' sh |
---|
5987 | ' |
---|
5988 | fi |
---|
5989 | as_executable_p=$as_test_x |
---|
5990 | |
---|
5991 | # Sed expression to map a string onto a valid CPP name. |
---|
5992 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
5993 | |
---|
5994 | # Sed expression to map a string onto a valid variable name. |
---|
5995 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
5996 | |
---|
5997 | |
---|
5998 | exec 6>&1 |
---|
5999 | ## ----------------------------------- ## |
---|
6000 | ## Main body of $CONFIG_STATUS script. ## |
---|
6001 | ## ----------------------------------- ## |
---|
6002 | _ASEOF |
---|
6003 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
---|
6004 | |
---|
6005 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6006 | # Save the log message, to keep $0 and so on meaningful, and to |
---|
6007 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
6008 | # values after options handling. |
---|
6009 | ac_log=" |
---|
6010 | This file was extended by cfa-cc $as_me 1.0.0, which was |
---|
6011 | generated by GNU Autoconf 2.68. Invocation command line was |
---|
6012 | |
---|
6013 | CONFIG_FILES = $CONFIG_FILES |
---|
6014 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
6015 | CONFIG_LINKS = $CONFIG_LINKS |
---|
6016 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
6017 | $ $0 $@ |
---|
6018 | |
---|
6019 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
6020 | " |
---|
6021 | |
---|
6022 | _ACEOF |
---|
6023 | |
---|
6024 | case $ac_config_files in *" |
---|
6025 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
---|
6026 | esac |
---|
6027 | |
---|
6028 | case $ac_config_headers in *" |
---|
6029 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
---|
6030 | esac |
---|
6031 | |
---|
6032 | |
---|
6033 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6034 | # Files that config.status was made for. |
---|
6035 | config_files="$ac_config_files" |
---|
6036 | config_headers="$ac_config_headers" |
---|
6037 | config_commands="$ac_config_commands" |
---|
6038 | |
---|
6039 | _ACEOF |
---|
6040 | |
---|
6041 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6042 | ac_cs_usage="\ |
---|
6043 | \`$as_me' instantiates files and other configuration actions |
---|
6044 | from templates according to the current configuration. Unless the files |
---|
6045 | and actions are specified as TAGs, all are instantiated by default. |
---|
6046 | |
---|
6047 | Usage: $0 [OPTION]... [TAG]... |
---|
6048 | |
---|
6049 | -h, --help print this help, then exit |
---|
6050 | -V, --version print version number and configuration settings, then exit |
---|
6051 | --config print configuration, then exit |
---|
6052 | -q, --quiet, --silent |
---|
6053 | do not print progress messages |
---|
6054 | -d, --debug don't remove temporary files |
---|
6055 | --recheck update $as_me by reconfiguring in the same conditions |
---|
6056 | --file=FILE[:TEMPLATE] |
---|
6057 | instantiate the configuration file FILE |
---|
6058 | --header=FILE[:TEMPLATE] |
---|
6059 | instantiate the configuration header FILE |
---|
6060 | |
---|
6061 | Configuration files: |
---|
6062 | $config_files |
---|
6063 | |
---|
6064 | Configuration headers: |
---|
6065 | $config_headers |
---|
6066 | |
---|
6067 | Configuration commands: |
---|
6068 | $config_commands |
---|
6069 | |
---|
6070 | Report bugs to <cforall@plg.uwaterloo.ca>." |
---|
6071 | |
---|
6072 | _ACEOF |
---|
6073 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6074 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
---|
6075 | ac_cs_version="\\ |
---|
6076 | cfa-cc config.status 1.0.0 |
---|
6077 | configured by $0, generated by GNU Autoconf 2.68, |
---|
6078 | with options \\"\$ac_cs_config\\" |
---|
6079 | |
---|
6080 | Copyright (C) 2010 Free Software Foundation, Inc. |
---|
6081 | This config.status script is free software; the Free Software Foundation |
---|
6082 | gives unlimited permission to copy, distribute and modify it." |
---|
6083 | |
---|
6084 | ac_pwd='$ac_pwd' |
---|
6085 | srcdir='$srcdir' |
---|
6086 | INSTALL='$INSTALL' |
---|
6087 | MKDIR_P='$MKDIR_P' |
---|
6088 | AWK='$AWK' |
---|
6089 | test -n "\$AWK" || AWK=awk |
---|
6090 | _ACEOF |
---|
6091 | |
---|
6092 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6093 | # The default lists apply if the user does not specify any file. |
---|
6094 | ac_need_defaults=: |
---|
6095 | while test $# != 0 |
---|
6096 | do |
---|
6097 | case $1 in |
---|
6098 | --*=?*) |
---|
6099 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
---|
6100 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
---|
6101 | ac_shift=: |
---|
6102 | ;; |
---|
6103 | --*=) |
---|
6104 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
---|
6105 | ac_optarg= |
---|
6106 | ac_shift=: |
---|
6107 | ;; |
---|
6108 | *) |
---|
6109 | ac_option=$1 |
---|
6110 | ac_optarg=$2 |
---|
6111 | ac_shift=shift |
---|
6112 | ;; |
---|
6113 | esac |
---|
6114 | |
---|
6115 | case $ac_option in |
---|
6116 | # Handling of the options. |
---|
6117 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
6118 | ac_cs_recheck=: ;; |
---|
6119 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
---|
6120 | $as_echo "$ac_cs_version"; exit ;; |
---|
6121 | --config | --confi | --conf | --con | --co | --c ) |
---|
6122 | $as_echo "$ac_cs_config"; exit ;; |
---|
6123 | --debug | --debu | --deb | --de | --d | -d ) |
---|
6124 | debug=: ;; |
---|
6125 | --file | --fil | --fi | --f ) |
---|
6126 | $ac_shift |
---|
6127 | case $ac_optarg in |
---|
6128 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
6129 | '') as_fn_error $? "missing file argument" ;; |
---|
6130 | esac |
---|
6131 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
---|
6132 | ac_need_defaults=false;; |
---|
6133 | --header | --heade | --head | --hea ) |
---|
6134 | $ac_shift |
---|
6135 | case $ac_optarg in |
---|
6136 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
6137 | esac |
---|
6138 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
---|
6139 | ac_need_defaults=false;; |
---|
6140 | --he | --h) |
---|
6141 | # Conflict between --help and --header |
---|
6142 | as_fn_error $? "ambiguous option: \`$1' |
---|
6143 | Try \`$0 --help' for more information.";; |
---|
6144 | --help | --hel | -h ) |
---|
6145 | $as_echo "$ac_cs_usage"; exit ;; |
---|
6146 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
6147 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
6148 | ac_cs_silent=: ;; |
---|
6149 | |
---|
6150 | # This is an error. |
---|
6151 | -*) as_fn_error $? "unrecognized option: \`$1' |
---|
6152 | Try \`$0 --help' for more information." ;; |
---|
6153 | |
---|
6154 | *) as_fn_append ac_config_targets " $1" |
---|
6155 | ac_need_defaults=false ;; |
---|
6156 | |
---|
6157 | esac |
---|
6158 | shift |
---|
6159 | done |
---|
6160 | |
---|
6161 | ac_configure_extra_args= |
---|
6162 | |
---|
6163 | if $ac_cs_silent; then |
---|
6164 | exec 6>/dev/null |
---|
6165 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
6166 | fi |
---|
6167 | |
---|
6168 | _ACEOF |
---|
6169 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6170 | if \$ac_cs_recheck; then |
---|
6171 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
6172 | shift |
---|
6173 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
---|
6174 | CONFIG_SHELL='$SHELL' |
---|
6175 | export CONFIG_SHELL |
---|
6176 | exec "\$@" |
---|
6177 | fi |
---|
6178 | |
---|
6179 | _ACEOF |
---|
6180 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6181 | exec 5>>config.log |
---|
6182 | { |
---|
6183 | echo |
---|
6184 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
6185 | ## Running $as_me. ## |
---|
6186 | _ASBOX |
---|
6187 | $as_echo "$ac_log" |
---|
6188 | } >&5 |
---|
6189 | |
---|
6190 | _ACEOF |
---|
6191 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6192 | # |
---|
6193 | # INIT-COMMANDS |
---|
6194 | # |
---|
6195 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
---|
6196 | |
---|
6197 | _ACEOF |
---|
6198 | |
---|
6199 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6200 | |
---|
6201 | # Handling of arguments. |
---|
6202 | for ac_config_target in $ac_config_targets |
---|
6203 | do |
---|
6204 | case $ac_config_target in |
---|
6205 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
---|
6206 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
---|
6207 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
6208 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
---|
6209 | "driver/Makefile") CONFIG_FILES="$CONFIG_FILES driver/Makefile" ;; |
---|
6210 | "libcfa/Makefile") CONFIG_FILES="$CONFIG_FILES libcfa/Makefile" ;; |
---|
6211 | "src/examples/Makefile") CONFIG_FILES="$CONFIG_FILES src/examples/Makefile" ;; |
---|
6212 | |
---|
6213 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
---|
6214 | esac |
---|
6215 | done |
---|
6216 | |
---|
6217 | |
---|
6218 | # If the user did not use the arguments to specify the items to instantiate, |
---|
6219 | # then the envvar interface is used. Set only those that are not. |
---|
6220 | # We use the long form for the default assignment because of an extremely |
---|
6221 | # bizarre bug on SunOS 4.1.3. |
---|
6222 | if $ac_need_defaults; then |
---|
6223 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
6224 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
6225 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
---|
6226 | fi |
---|
6227 | |
---|
6228 | # Have a temporary directory for convenience. Make it in the build tree |
---|
6229 | # simply because there is no reason against having it here, and in addition, |
---|
6230 | # creating and moving files from /tmp can sometimes cause problems. |
---|
6231 | # Hook for its removal unless debugging. |
---|
6232 | # Note that there is a small window in which the directory will not be cleaned: |
---|
6233 | # after its creation but before its name has been assigned to `$tmp'. |
---|
6234 | $debug || |
---|
6235 | { |
---|
6236 | tmp= ac_tmp= |
---|
6237 | trap 'exit_status=$? |
---|
6238 | : "${ac_tmp:=$tmp}" |
---|
6239 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
---|
6240 | ' 0 |
---|
6241 | trap 'as_fn_exit 1' 1 2 13 15 |
---|
6242 | } |
---|
6243 | # Create a (secure) tmp directory for tmp files. |
---|
6244 | |
---|
6245 | { |
---|
6246 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
---|
6247 | test -d "$tmp" |
---|
6248 | } || |
---|
6249 | { |
---|
6250 | tmp=./conf$$-$RANDOM |
---|
6251 | (umask 077 && mkdir "$tmp") |
---|
6252 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
---|
6253 | ac_tmp=$tmp |
---|
6254 | |
---|
6255 | # Set up the scripts for CONFIG_FILES section. |
---|
6256 | # No need to generate them if there are no CONFIG_FILES. |
---|
6257 | # This happens for instance with `./config.status config.h'. |
---|
6258 | if test -n "$CONFIG_FILES"; then |
---|
6259 | |
---|
6260 | |
---|
6261 | ac_cr=`echo X | tr X '\015'` |
---|
6262 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
---|
6263 | # But we know of no other shell where ac_cr would be empty at this |
---|
6264 | # point, so we can use a bashism as a fallback. |
---|
6265 | if test "x$ac_cr" = x; then |
---|
6266 | eval ac_cr=\$\'\\r\' |
---|
6267 | fi |
---|
6268 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
---|
6269 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
---|
6270 | ac_cs_awk_cr='\\r' |
---|
6271 | else |
---|
6272 | ac_cs_awk_cr=$ac_cr |
---|
6273 | fi |
---|
6274 | |
---|
6275 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
---|
6276 | _ACEOF |
---|
6277 | |
---|
6278 | |
---|
6279 | { |
---|
6280 | echo "cat >conf$$subs.awk <<_ACEOF" && |
---|
6281 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
---|
6282 | echo "_ACEOF" |
---|
6283 | } >conf$$subs.sh || |
---|
6284 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
6285 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
---|
6286 | ac_delim='%!_!# ' |
---|
6287 | for ac_last_try in false false false false false :; do |
---|
6288 | . ./conf$$subs.sh || |
---|
6289 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
6290 | |
---|
6291 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
---|
6292 | if test $ac_delim_n = $ac_delim_num; then |
---|
6293 | break |
---|
6294 | elif $ac_last_try; then |
---|
6295 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
6296 | else |
---|
6297 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
---|
6298 | fi |
---|
6299 | done |
---|
6300 | rm -f conf$$subs.sh |
---|
6301 | |
---|
6302 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6303 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
---|
6304 | _ACEOF |
---|
6305 | sed -n ' |
---|
6306 | h |
---|
6307 | s/^/S["/; s/!.*/"]=/ |
---|
6308 | p |
---|
6309 | g |
---|
6310 | s/^[^!]*!// |
---|
6311 | :repl |
---|
6312 | t repl |
---|
6313 | s/'"$ac_delim"'$// |
---|
6314 | t delim |
---|
6315 | :nl |
---|
6316 | h |
---|
6317 | s/\(.\{148\}\)..*/\1/ |
---|
6318 | t more1 |
---|
6319 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
---|
6320 | p |
---|
6321 | n |
---|
6322 | b repl |
---|
6323 | :more1 |
---|
6324 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
---|
6325 | p |
---|
6326 | g |
---|
6327 | s/.\{148\}// |
---|
6328 | t nl |
---|
6329 | :delim |
---|
6330 | h |
---|
6331 | s/\(.\{148\}\)..*/\1/ |
---|
6332 | t more2 |
---|
6333 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
---|
6334 | p |
---|
6335 | b |
---|
6336 | :more2 |
---|
6337 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
---|
6338 | p |
---|
6339 | g |
---|
6340 | s/.\{148\}// |
---|
6341 | t delim |
---|
6342 | ' <conf$$subs.awk | sed ' |
---|
6343 | /^[^""]/{ |
---|
6344 | N |
---|
6345 | s/\n// |
---|
6346 | } |
---|
6347 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
---|
6348 | rm -f conf$$subs.awk |
---|
6349 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6350 | _ACAWK |
---|
6351 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
---|
6352 | for (key in S) S_is_set[key] = 1 |
---|
6353 | FS = "" |
---|
6354 | |
---|
6355 | } |
---|
6356 | { |
---|
6357 | line = $ 0 |
---|
6358 | nfields = split(line, field, "@") |
---|
6359 | substed = 0 |
---|
6360 | len = length(field[1]) |
---|
6361 | for (i = 2; i < nfields; i++) { |
---|
6362 | key = field[i] |
---|
6363 | keylen = length(key) |
---|
6364 | if (S_is_set[key]) { |
---|
6365 | value = S[key] |
---|
6366 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
---|
6367 | len += length(value) + length(field[++i]) |
---|
6368 | substed = 1 |
---|
6369 | } else |
---|
6370 | len += 1 + keylen |
---|
6371 | } |
---|
6372 | |
---|
6373 | print line |
---|
6374 | } |
---|
6375 | |
---|
6376 | _ACAWK |
---|
6377 | _ACEOF |
---|
6378 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6379 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
---|
6380 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
---|
6381 | else |
---|
6382 | cat |
---|
6383 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
---|
6384 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
---|
6385 | _ACEOF |
---|
6386 | |
---|
6387 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
---|
6388 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
---|
6389 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
6390 | # (actually we leave an empty line to preserve line numbers). |
---|
6391 | if test "x$srcdir" = x.; then |
---|
6392 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
---|
6393 | h |
---|
6394 | s/// |
---|
6395 | s/^/:/ |
---|
6396 | s/[ ]*$/:/ |
---|
6397 | s/:\$(srcdir):/:/g |
---|
6398 | s/:\${srcdir}:/:/g |
---|
6399 | s/:@srcdir@:/:/g |
---|
6400 | s/^:*// |
---|
6401 | s/:*$// |
---|
6402 | x |
---|
6403 | s/\(=[ ]*\).*/\1/ |
---|
6404 | G |
---|
6405 | s/\n// |
---|
6406 | s/^[^=]*=[ ]*$// |
---|
6407 | }' |
---|
6408 | fi |
---|
6409 | |
---|
6410 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6411 | fi # test -n "$CONFIG_FILES" |
---|
6412 | |
---|
6413 | # Set up the scripts for CONFIG_HEADERS section. |
---|
6414 | # No need to generate them if there are no CONFIG_HEADERS. |
---|
6415 | # This happens for instance with `./config.status Makefile'. |
---|
6416 | if test -n "$CONFIG_HEADERS"; then |
---|
6417 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
---|
6418 | BEGIN { |
---|
6419 | _ACEOF |
---|
6420 | |
---|
6421 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
---|
6422 | # here-document in config.status, that substitutes the proper values into |
---|
6423 | # config.h.in to produce config.h. |
---|
6424 | |
---|
6425 | # Create a delimiter string that does not exist in confdefs.h, to ease |
---|
6426 | # handling of long lines. |
---|
6427 | ac_delim='%!_!# ' |
---|
6428 | for ac_last_try in false false :; do |
---|
6429 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
---|
6430 | if test -z "$ac_tt"; then |
---|
6431 | break |
---|
6432 | elif $ac_last_try; then |
---|
6433 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
---|
6434 | else |
---|
6435 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
---|
6436 | fi |
---|
6437 | done |
---|
6438 | |
---|
6439 | # For the awk script, D is an array of macro values keyed by name, |
---|
6440 | # likewise P contains macro parameters if any. Preserve backslash |
---|
6441 | # newline sequences. |
---|
6442 | |
---|
6443 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
---|
6444 | sed -n ' |
---|
6445 | s/.\{148\}/&'"$ac_delim"'/g |
---|
6446 | t rset |
---|
6447 | :rset |
---|
6448 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
---|
6449 | t def |
---|
6450 | d |
---|
6451 | :def |
---|
6452 | s/\\$// |
---|
6453 | t bsnl |
---|
6454 | s/["\\]/\\&/g |
---|
6455 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
---|
6456 | D["\1"]=" \3"/p |
---|
6457 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
---|
6458 | d |
---|
6459 | :bsnl |
---|
6460 | s/["\\]/\\&/g |
---|
6461 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
---|
6462 | D["\1"]=" \3\\\\\\n"\\/p |
---|
6463 | t cont |
---|
6464 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
---|
6465 | t cont |
---|
6466 | d |
---|
6467 | :cont |
---|
6468 | n |
---|
6469 | s/.\{148\}/&'"$ac_delim"'/g |
---|
6470 | t clear |
---|
6471 | :clear |
---|
6472 | s/\\$// |
---|
6473 | t bsnlc |
---|
6474 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
---|
6475 | d |
---|
6476 | :bsnlc |
---|
6477 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
---|
6478 | b cont |
---|
6479 | ' <confdefs.h | sed ' |
---|
6480 | s/'"$ac_delim"'/"\\\ |
---|
6481 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
---|
6482 | |
---|
6483 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6484 | for (key in D) D_is_set[key] = 1 |
---|
6485 | FS = "" |
---|
6486 | } |
---|
6487 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
---|
6488 | line = \$ 0 |
---|
6489 | split(line, arg, " ") |
---|
6490 | if (arg[1] == "#") { |
---|
6491 | defundef = arg[2] |
---|
6492 | mac1 = arg[3] |
---|
6493 | } else { |
---|
6494 | defundef = substr(arg[1], 2) |
---|
6495 | mac1 = arg[2] |
---|
6496 | } |
---|
6497 | split(mac1, mac2, "(") #) |
---|
6498 | macro = mac2[1] |
---|
6499 | prefix = substr(line, 1, index(line, defundef) - 1) |
---|
6500 | if (D_is_set[macro]) { |
---|
6501 | # Preserve the white space surrounding the "#". |
---|
6502 | print prefix "define", macro P[macro] D[macro] |
---|
6503 | next |
---|
6504 | } else { |
---|
6505 | # Replace #undef with comments. This is necessary, for example, |
---|
6506 | # in the case of _POSIX_SOURCE, which is predefined and required |
---|
6507 | # on some systems where configure will not decide to define it. |
---|
6508 | if (defundef == "undef") { |
---|
6509 | print "/*", prefix defundef, macro, "*/" |
---|
6510 | next |
---|
6511 | } |
---|
6512 | } |
---|
6513 | } |
---|
6514 | { print } |
---|
6515 | _ACAWK |
---|
6516 | _ACEOF |
---|
6517 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6518 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
---|
6519 | fi # test -n "$CONFIG_HEADERS" |
---|
6520 | |
---|
6521 | |
---|
6522 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
---|
6523 | shift |
---|
6524 | for ac_tag |
---|
6525 | do |
---|
6526 | case $ac_tag in |
---|
6527 | :[FHLC]) ac_mode=$ac_tag; continue;; |
---|
6528 | esac |
---|
6529 | case $ac_mode$ac_tag in |
---|
6530 | :[FHL]*:*);; |
---|
6531 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
---|
6532 | :[FH]-) ac_tag=-:-;; |
---|
6533 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
---|
6534 | esac |
---|
6535 | ac_save_IFS=$IFS |
---|
6536 | IFS=: |
---|
6537 | set x $ac_tag |
---|
6538 | IFS=$ac_save_IFS |
---|
6539 | shift |
---|
6540 | ac_file=$1 |
---|
6541 | shift |
---|
6542 | |
---|
6543 | case $ac_mode in |
---|
6544 | :L) ac_source=$1;; |
---|
6545 | :[FH]) |
---|
6546 | ac_file_inputs= |
---|
6547 | for ac_f |
---|
6548 | do |
---|
6549 | case $ac_f in |
---|
6550 | -) ac_f="$ac_tmp/stdin";; |
---|
6551 | *) # Look for the file first in the build tree, then in the source tree |
---|
6552 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
---|
6553 | # because $ac_f cannot contain `:'. |
---|
6554 | test -f "$ac_f" || |
---|
6555 | case $ac_f in |
---|
6556 | [\\/$]*) false;; |
---|
6557 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
---|
6558 | esac || |
---|
6559 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
---|
6560 | esac |
---|
6561 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
---|
6562 | as_fn_append ac_file_inputs " '$ac_f'" |
---|
6563 | done |
---|
6564 | |
---|
6565 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
6566 | # use $as_me), people would be surprised to read: |
---|
6567 | # /* config.h. Generated by config.status. */ |
---|
6568 | configure_input='Generated from '` |
---|
6569 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
---|
6570 | `' by configure.' |
---|
6571 | if test x"$ac_file" != x-; then |
---|
6572 | configure_input="$ac_file. $configure_input" |
---|
6573 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
---|
6574 | $as_echo "$as_me: creating $ac_file" >&6;} |
---|
6575 | fi |
---|
6576 | # Neutralize special characters interpreted by sed in replacement strings. |
---|
6577 | case $configure_input in #( |
---|
6578 | *\&* | *\|* | *\\* ) |
---|
6579 | ac_sed_conf_input=`$as_echo "$configure_input" | |
---|
6580 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
---|
6581 | *) ac_sed_conf_input=$configure_input;; |
---|
6582 | esac |
---|
6583 | |
---|
6584 | case $ac_tag in |
---|
6585 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
---|
6586 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
---|
6587 | esac |
---|
6588 | ;; |
---|
6589 | esac |
---|
6590 | |
---|
6591 | ac_dir=`$as_dirname -- "$ac_file" || |
---|
6592 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
6593 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
6594 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
6595 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
---|
6596 | $as_echo X"$ac_file" | |
---|
6597 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
6598 | s//\1/ |
---|
6599 | q |
---|
6600 | } |
---|
6601 | /^X\(\/\/\)[^/].*/{ |
---|
6602 | s//\1/ |
---|
6603 | q |
---|
6604 | } |
---|
6605 | /^X\(\/\/\)$/{ |
---|
6606 | s//\1/ |
---|
6607 | q |
---|
6608 | } |
---|
6609 | /^X\(\/\).*/{ |
---|
6610 | s//\1/ |
---|
6611 | q |
---|
6612 | } |
---|
6613 | s/.*/./; q'` |
---|
6614 | as_dir="$ac_dir"; as_fn_mkdir_p |
---|
6615 | ac_builddir=. |
---|
6616 | |
---|
6617 | case "$ac_dir" in |
---|
6618 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
6619 | *) |
---|
6620 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
---|
6621 | # A ".." for each directory in $ac_dir_suffix. |
---|
6622 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
---|
6623 | case $ac_top_builddir_sub in |
---|
6624 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
6625 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
6626 | esac ;; |
---|
6627 | esac |
---|
6628 | ac_abs_top_builddir=$ac_pwd |
---|
6629 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
6630 | # for backward compatibility: |
---|
6631 | ac_top_builddir=$ac_top_build_prefix |
---|
6632 | |
---|
6633 | case $srcdir in |
---|
6634 | .) # We are building in place. |
---|
6635 | ac_srcdir=. |
---|
6636 | ac_top_srcdir=$ac_top_builddir_sub |
---|
6637 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
6638 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
6639 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
6640 | ac_top_srcdir=$srcdir |
---|
6641 | ac_abs_top_srcdir=$srcdir ;; |
---|
6642 | *) # Relative name. |
---|
6643 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
6644 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
6645 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
6646 | esac |
---|
6647 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
6648 | |
---|
6649 | |
---|
6650 | case $ac_mode in |
---|
6651 | :F) |
---|
6652 | # |
---|
6653 | # CONFIG_FILE |
---|
6654 | # |
---|
6655 | |
---|
6656 | case $INSTALL in |
---|
6657 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
6658 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
---|
6659 | esac |
---|
6660 | ac_MKDIR_P=$MKDIR_P |
---|
6661 | case $MKDIR_P in |
---|
6662 | [\\/$]* | ?:[\\/]* ) ;; |
---|
6663 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
---|
6664 | esac |
---|
6665 | _ACEOF |
---|
6666 | |
---|
6667 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6668 | # If the template does not know about datarootdir, expand it. |
---|
6669 | # FIXME: This hack should be removed a few years after 2.60. |
---|
6670 | ac_datarootdir_hack=; ac_datarootdir_seen= |
---|
6671 | ac_sed_dataroot=' |
---|
6672 | /datarootdir/ { |
---|
6673 | p |
---|
6674 | q |
---|
6675 | } |
---|
6676 | /@datadir@/p |
---|
6677 | /@docdir@/p |
---|
6678 | /@infodir@/p |
---|
6679 | /@localedir@/p |
---|
6680 | /@mandir@/p' |
---|
6681 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
---|
6682 | *datarootdir*) ac_datarootdir_seen=yes;; |
---|
6683 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
---|
6684 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
---|
6685 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
---|
6686 | _ACEOF |
---|
6687 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6688 | ac_datarootdir_hack=' |
---|
6689 | s&@datadir@&$datadir&g |
---|
6690 | s&@docdir@&$docdir&g |
---|
6691 | s&@infodir@&$infodir&g |
---|
6692 | s&@localedir@&$localedir&g |
---|
6693 | s&@mandir@&$mandir&g |
---|
6694 | s&\\\${datarootdir}&$datarootdir&g' ;; |
---|
6695 | esac |
---|
6696 | _ACEOF |
---|
6697 | |
---|
6698 | # Neutralize VPATH when `$srcdir' = `.'. |
---|
6699 | # Shell code in configure.ac might set extrasub. |
---|
6700 | # FIXME: do we really want to maintain this feature? |
---|
6701 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6702 | ac_sed_extra="$ac_vpsub |
---|
6703 | $extrasub |
---|
6704 | _ACEOF |
---|
6705 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6706 | :t |
---|
6707 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
6708 | s|@configure_input@|$ac_sed_conf_input|;t t |
---|
6709 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
---|
6710 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
---|
6711 | s&@srcdir@&$ac_srcdir&;t t |
---|
6712 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
---|
6713 | s&@top_srcdir@&$ac_top_srcdir&;t t |
---|
6714 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
---|
6715 | s&@builddir@&$ac_builddir&;t t |
---|
6716 | s&@abs_builddir@&$ac_abs_builddir&;t t |
---|
6717 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
---|
6718 | s&@INSTALL@&$ac_INSTALL&;t t |
---|
6719 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
---|
6720 | $ac_datarootdir_hack |
---|
6721 | " |
---|
6722 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
---|
6723 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
6724 | |
---|
6725 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
---|
6726 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
---|
6727 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
---|
6728 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
---|
6729 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
6730 | which seems to be undefined. Please make sure it is defined" >&5 |
---|
6731 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
6732 | which seems to be undefined. Please make sure it is defined" >&2;} |
---|
6733 | |
---|
6734 | rm -f "$ac_tmp/stdin" |
---|
6735 | case $ac_file in |
---|
6736 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
---|
6737 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
---|
6738 | esac \ |
---|
6739 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
6740 | ;; |
---|
6741 | :H) |
---|
6742 | # |
---|
6743 | # CONFIG_HEADER |
---|
6744 | # |
---|
6745 | if test x"$ac_file" != x-; then |
---|
6746 | { |
---|
6747 | $as_echo "/* $configure_input */" \ |
---|
6748 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
---|
6749 | } >"$ac_tmp/config.h" \ |
---|
6750 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
6751 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
---|
6752 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
---|
6753 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
---|
6754 | else |
---|
6755 | rm -f "$ac_file" |
---|
6756 | mv "$ac_tmp/config.h" "$ac_file" \ |
---|
6757 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
6758 | fi |
---|
6759 | else |
---|
6760 | $as_echo "/* $configure_input */" \ |
---|
6761 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
---|
6762 | || as_fn_error $? "could not create -" "$LINENO" 5 |
---|
6763 | fi |
---|
6764 | # Compute "$ac_file"'s index in $config_headers. |
---|
6765 | _am_arg="$ac_file" |
---|
6766 | _am_stamp_count=1 |
---|
6767 | for _am_header in $config_headers :; do |
---|
6768 | case $_am_header in |
---|
6769 | $_am_arg | $_am_arg:* ) |
---|
6770 | break ;; |
---|
6771 | * ) |
---|
6772 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
---|
6773 | esac |
---|
6774 | done |
---|
6775 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
---|
6776 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
6777 | X"$_am_arg" : 'X\(//\)[^/]' \| \ |
---|
6778 | X"$_am_arg" : 'X\(//\)$' \| \ |
---|
6779 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
---|
6780 | $as_echo X"$_am_arg" | |
---|
6781 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
6782 | s//\1/ |
---|
6783 | q |
---|
6784 | } |
---|
6785 | /^X\(\/\/\)[^/].*/{ |
---|
6786 | s//\1/ |
---|
6787 | q |
---|
6788 | } |
---|
6789 | /^X\(\/\/\)$/{ |
---|
6790 | s//\1/ |
---|
6791 | q |
---|
6792 | } |
---|
6793 | /^X\(\/\).*/{ |
---|
6794 | s//\1/ |
---|
6795 | q |
---|
6796 | } |
---|
6797 | s/.*/./; q'`/stamp-h$_am_stamp_count |
---|
6798 | ;; |
---|
6799 | |
---|
6800 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
---|
6801 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
---|
6802 | ;; |
---|
6803 | esac |
---|
6804 | |
---|
6805 | |
---|
6806 | case $ac_file$ac_mode in |
---|
6807 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
---|
6808 | # Autoconf 2.62 quotes --file arguments for eval, but not when files |
---|
6809 | # are listed without --file. Let's play safe and only enable the eval |
---|
6810 | # if we detect the quoting. |
---|
6811 | case $CONFIG_FILES in |
---|
6812 | *\'*) eval set x "$CONFIG_FILES" ;; |
---|
6813 | *) set x $CONFIG_FILES ;; |
---|
6814 | esac |
---|
6815 | shift |
---|
6816 | for mf |
---|
6817 | do |
---|
6818 | # Strip MF so we end up with the name of the file. |
---|
6819 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
---|
6820 | # Check whether this is an Automake generated Makefile or not. |
---|
6821 | # We used to match only the files named `Makefile.in', but |
---|
6822 | # some people rename them; so instead we look at the file content. |
---|
6823 | # Grep'ing the first line is not enough: some people post-process |
---|
6824 | # each Makefile.in and add a new line on top of each file to say so. |
---|
6825 | # Grep'ing the whole file is not good either: AIX grep has a line |
---|
6826 | # limit of 2048, but all sed's we know have understand at least 4000. |
---|
6827 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
---|
6828 | dirpart=`$as_dirname -- "$mf" || |
---|
6829 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
6830 | X"$mf" : 'X\(//\)[^/]' \| \ |
---|
6831 | X"$mf" : 'X\(//\)$' \| \ |
---|
6832 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
---|
6833 | $as_echo X"$mf" | |
---|
6834 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
6835 | s//\1/ |
---|
6836 | q |
---|
6837 | } |
---|
6838 | /^X\(\/\/\)[^/].*/{ |
---|
6839 | s//\1/ |
---|
6840 | q |
---|
6841 | } |
---|
6842 | /^X\(\/\/\)$/{ |
---|
6843 | s//\1/ |
---|
6844 | q |
---|
6845 | } |
---|
6846 | /^X\(\/\).*/{ |
---|
6847 | s//\1/ |
---|
6848 | q |
---|
6849 | } |
---|
6850 | s/.*/./; q'` |
---|
6851 | else |
---|
6852 | continue |
---|
6853 | fi |
---|
6854 | # Extract the definition of DEPDIR, am__include, and am__quote |
---|
6855 | # from the Makefile without running `make'. |
---|
6856 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
---|
6857 | test -z "$DEPDIR" && continue |
---|
6858 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
---|
6859 | test -z "am__include" && continue |
---|
6860 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
---|
6861 | # When using ansi2knr, U may be empty or an underscore; expand it |
---|
6862 | U=`sed -n 's/^U = //p' < "$mf"` |
---|
6863 | # Find all dependency output files, they are included files with |
---|
6864 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
---|
6865 | # simplest approach to changing $(DEPDIR) to its actual value in the |
---|
6866 | # expansion. |
---|
6867 | for file in `sed -n " |
---|
6868 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
---|
6869 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
---|
6870 | # Make sure the directory exists. |
---|
6871 | test -f "$dirpart/$file" && continue |
---|
6872 | fdir=`$as_dirname -- "$file" || |
---|
6873 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
6874 | X"$file" : 'X\(//\)[^/]' \| \ |
---|
6875 | X"$file" : 'X\(//\)$' \| \ |
---|
6876 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
---|
6877 | $as_echo X"$file" | |
---|
6878 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
6879 | s//\1/ |
---|
6880 | q |
---|
6881 | } |
---|
6882 | /^X\(\/\/\)[^/].*/{ |
---|
6883 | s//\1/ |
---|
6884 | q |
---|
6885 | } |
---|
6886 | /^X\(\/\/\)$/{ |
---|
6887 | s//\1/ |
---|
6888 | q |
---|
6889 | } |
---|
6890 | /^X\(\/\).*/{ |
---|
6891 | s//\1/ |
---|
6892 | q |
---|
6893 | } |
---|
6894 | s/.*/./; q'` |
---|
6895 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
---|
6896 | # echo "creating $dirpart/$file" |
---|
6897 | echo '# dummy' > "$dirpart/$file" |
---|
6898 | done |
---|
6899 | done |
---|
6900 | } |
---|
6901 | ;; |
---|
6902 | |
---|
6903 | esac |
---|
6904 | done # for ac_tag |
---|
6905 | |
---|
6906 | |
---|
6907 | as_fn_exit 0 |
---|
6908 | _ACEOF |
---|
6909 | ac_clean_files=$ac_clean_files_save |
---|
6910 | |
---|
6911 | test $ac_write_fail = 0 || |
---|
6912 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
---|
6913 | |
---|
6914 | |
---|
6915 | # configure is writing to config.log, and then calls config.status. |
---|
6916 | # config.status does its own redirection, appending to config.log. |
---|
6917 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
6918 | # by configure, so config.status won't be able to write to it; its |
---|
6919 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
6920 | # effectively closing config.log, so it can be properly (re)opened and |
---|
6921 | # appended to by config.status. When coming back to configure, we |
---|
6922 | # need to make the FD available again. |
---|
6923 | if test "$no_create" != yes; then |
---|
6924 | ac_cs_success=: |
---|
6925 | ac_config_status_args= |
---|
6926 | test "$silent" = yes && |
---|
6927 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
6928 | exec 5>/dev/null |
---|
6929 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
6930 | exec 5>>config.log |
---|
6931 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
6932 | # would make configure fail if this is the last instruction. |
---|
6933 | $ac_cs_success || as_fn_exit 1 |
---|
6934 | fi |
---|
6935 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
---|
6936 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
---|
6937 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
---|
6938 | fi |
---|
6939 | |
---|
6940 | |
---|
6941 | # Final text |
---|
6942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Cforall configuraton completed. Type \"make -j 8 install\"." >&5 |
---|
6943 | $as_echo "Cforall configuraton completed. Type \"make -j 8 install\"." >&6; } |
---|